RISE Lab, Department of Electrical Engineering and Computer Science, University of California, Berkeley, Berkeley.
Department of Medicine, Division of Cardiology, University of California, San Francisco, San Francisco.
JAMA Cardiol. 2021 Nov 1;6(11):1285-1295. doi: 10.1001/jamacardio.2021.2746.
Millions of clinicians rely daily on automated preliminary electrocardiogram (ECG) interpretation. Critical comparisons of machine learning-based automated analysis against clinically accepted standards of care are lacking.
To use readily available 12-lead ECG data to train and apply an explainability technique to a convolutional neural network (CNN) that achieves high performance against clinical standards of care.
DESIGN, SETTING, AND PARTICIPANTS: This cross-sectional study was conducted using data from January 1, 2003, to December 31, 2018. Data were obtained in a commonly available 12-lead ECG format from a single-center tertiary care institution. All patients aged 18 years or older who received ECGs at the University of California, San Francisco, were included, yielding a total of 365 009 patients. Data were analyzed from January 1, 2019, to March 2, 2021.
A CNN was trained to predict the presence of 38 diagnostic classes in 5 categories from 12-lead ECG data. A CNN explainability technique called LIME (Linear Interpretable Model-Agnostic Explanations) was used to visualize ECG segments contributing to CNN diagnoses.
Area under the receiver operating characteristic curve (AUC), sensitivity, and specificity were calculated for the CNN in the holdout test data set against cardiologist clinical diagnoses. For a second validation, 3 electrophysiologists provided consensus committee diagnoses against which the CNN, cardiologist clinical diagnosis, and MUSE (GE Healthcare) automated analysis performance was compared using the F1 score; AUC, sensitivity, and specificity were also calculated for the CNN against the consensus committee.
A total of 992 748 ECGs from 365 009 adult patients (mean [SD] age, 56.2 [17.6] years; 183 600 women [50.3%]; and 175 277 White patients [48.0%]) were included in the analysis. In 91 440 test data set ECGs, the CNN demonstrated an AUC of at least 0.960 for 32 of 38 classes (84.2%). Against the consensus committee diagnoses, the CNN had higher frequency-weighted mean F1 scores than both cardiologists and MUSE in all 5 categories (CNN frequency-weighted F1 score for rhythm, 0.812; conduction, 0.729; chamber diagnosis, 0.598; infarct, 0.674; and other diagnosis, 0.875). For 32 of 38 classes (84.2%), the CNN had AUCs of at least 0.910 and demonstrated comparable F1 scores and higher sensitivity than cardiologists, except for atrial fibrillation (CNN F1 score, 0.847 vs cardiologist F1 score, 0.881), junctional rhythm (0.526 vs 0.727), premature ventricular complex (0.786 vs 0.800), and Wolff-Parkinson-White (0.800 vs 0.842). Compared with MUSE, the CNN had higher F1 scores for all classes except supraventricular tachycardia (CNN F1 score, 0.696 vs MUSE F1 score, 0.714). The LIME technique highlighted physiologically relevant ECG segments.
The results of this cross-sectional study suggest that readily available ECG data can be used to train a CNN algorithm to achieve comparable performance to clinical cardiologists and exceed the performance of MUSE automated analysis for most diagnoses, with some exceptions. The LIME explainability technique applied to CNNs highlights physiologically relevant ECG segments that contribute to the CNN's diagnoses.
数以百万计的临床医生每天都依赖于自动化的初步心电图(ECG)解释。缺乏对基于机器学习的自动分析与临床护理标准的关键比较。
使用现成的 12 导联 ECG 数据来训练和应用解释技术,对卷积神经网络(CNN)进行训练,该网络在符合临床护理标准的性能方面表现出色。
设计、设置和参与者:这项横断面研究使用 2003 年 1 月 1 日至 2018 年 12 月 31 日的数据进行。数据来自单一中心三级医疗机构的常用 12 导联 ECG 格式。包括所有在加利福尼亚大学旧金山分校接受 ECG 的年龄在 18 岁或以上的患者,共 365009 例患者。数据分析于 2019 年 1 月 1 日至 2021 年 3 月 2 日进行。
一个 CNN 被训练来预测 5 个类别中的 38 个诊断类别的存在,来自 12 导联 ECG 数据。使用一种名为 LIME(线性可解释模型不可知的解释)的 CNN 解释技术来可视化对 CNN 诊断有贡献的 ECG 段。
在保留测试数据集的 AUC(接受者操作特征曲线下的面积)、敏感性和特异性方面,与心脏病专家的临床诊断相比,CNN 的表现如何。为了进行第二次验证,3 位电生理学家提供了共识委员会的诊断,与该委员会相比,CNN、心脏病专家的临床诊断和 MUSE(GE Healthcare)自动分析的性能使用 F1 分数进行比较;还计算了 CNN 与共识委员会的 AUC、敏感性和特异性。
在总共 365009 名成年患者(平均[标准差]年龄为 56.2[17.6]岁;女性 183600 人[50.3%];白种人 175277 人[48.0%])的 992748 份 ECG 中进行了分析。在 91440 份测试数据集 ECG 中,CNN 对 38 个类别中的 32 个(84.2%)至少有 0.960 的 AUC。在与共识委员会的诊断相比,CNN 在所有 5 个类别中的频率加权平均 F1 分数均高于心脏病专家和 MUSE,包括节律(CNN 频率加权 F1 分数为 0.812)、传导(0.729)、腔室诊断(0.598)、梗死(0.674)和其他诊断(0.875)。在 38 个类别中的 32 个(84.2%)中,CNN 的 AUC 至少为 0.910,除了心房颤动(CNN 的 F1 分数为 0.847,而心脏病专家的 F1 分数为 0.881)、结性节律(0.526 vs 0.727)、室性早搏(0.786 vs 0.800)和 Wolff-Parkinson-White(0.800 vs 0.842)外,F1 评分与心脏病专家相当,敏感性更高。与 MUSE 相比,除了室上性心动过速(CNN 的 F1 分数为 0.696,而 MUSE 的 F1 分数为 0.714)外,CNN 的 F1 分数更高。LIME 技术突出了生理相关的 ECG 段。
这项横断面研究的结果表明,现成的 ECG 数据可用于训练 CNN 算法,以达到与临床心脏病专家相当的性能,并超过 MUSE 自动分析的大多数诊断性能,除了一些例外。应用于 CNN 的 LIME 解释技术突出了对 CNN 诊断有贡献的生理相关 ECG 段。