Source-linked AI summary

Interpretable Deep Learning for Automatic Diagnosis of 12-lead Electrocardiogram

Dongdong Zhang, Xiaohui Yuan, Ping Zhang

arXiv:2010.10328v1cs.LGeess.SP

TL;DR

The paper addresses automatic multilabel diagnosis of cardiac arrhythmias from ECGs amid growing examination volumes and limited cardiologist availability. It develops a 1D CNN for 12-lead ECGs, evaluates it against expert-feature baselines and single-lead inputs, and applies SHAP for interpretation. The model achieved average AUC above 0.95 and an average F1 score of 0.813, outperforming the baseline classifiers.

Abstract

from arXiv · show

Electrocardiogram (ECG) is a widely used reliable, non-invasive approach for cardiovascular disease diagnosis. With the rapid growth of ECG examinations and the insufficiency of cardiologists, accurate and automatic diagnosis of ECG signals has become a hot research topic. Deep learning methods have demonstrated promising results in predictive healthcare tasks. In this paper, we developed a deep neural network for multi-label classification of cardiac arrhythmias in 12-lead ECG recordings. Experiments on a public 12-lead ECG dataset showed the effectiveness of our method. The proposed model achieved an average area under the receiver operating characteristic curve (AUC) of 0.970 and an average F1 score of 0.813. The deep model showed superior performance than 4 machine learning methods learned from extracted expert features. Besides, the deep models trained on single-lead ECGs produce lower performance than using all 12 leads simultaneously. The best-performing leads are lead I, aVR, and V5 among 12 leads. Finally, we employed the SHapley Additive exPlanations (SHAP) method to interpret the model's behavior at both patient level and population level. Our code is freely available at https://github.com/onlyzdd/ecg-diagnosis.

I. INTRODUCTION

The paper develops an interpretable deep neural network for automatic multilabel diagnosis of cardiac arrhythmias from 12-lead ECG recordings. It compares deep learning with expert-feature baselines and examines lead requirements and model behavior.

  • The work addresses ECG interpretation challenges arising from growing examination volumes and limited cardiologist availability.Source: §I · p. 1
  • The study develops a 1D convolutional neural network for multilabel cardiac-arrhythmia classification using 12-lead ECG recordings.Source: §I · p. 1
  • The model outperformed four baseline classifiers trained on expert features.Source: §I · p. 1
  • Single-lead models had F1 scores 4.4% to 11.8% lower than the 12-lead model, with leads I, aVR, and V5 performing best.Source: §I · p. 1
  • SHAP was used to interpret predictions at both patient and population levels.Source: §I · p. 1

II. RELATED WORKS

Prior ECG diagnosis methods fall into two broad categories: traditional pipelines that require engineered features and end-to-end deep learning methods that learn features directly from signals.

  • Existing automatic ECG diagnosis models comprise traditional machine-learning methods and end-to-end deep-learning methods.Source: §II · p. 1, Figure 1 · p. 2
  • Traditional methods use expert-engineered or signal-processed features before training machine-learning classifiers.Source: §II · p. 2
  • Traditional approaches are limited by data quality and domain knowledge and require additional effort for expert-feature extraction.Source: §II · p. 2
  • Prior work applied neural, convolutional, recurrent, and attention-based models to cardiac-arrhythmia detection and 12-lead abnormality diagnosis.Source: §II · p. 2

III. METHODS

The proposed method processes raw 12-lead ECG signals with a residual 1D CNN and produces multilabel predictions for nine diagnostic classes.

C. Evaluation Metrics

The study evaluates each diagnostic class with precision, recall, F1, AUC, and accuracy, then averages metrics across nine classes to assess multilabel performance.

  • Each diagnostic class is evaluated using Precision, Recall, F1 score, AUC, and accuracy score.The classes include one normal class and eight abnormal classes.Source: C. Evaluation Metrics · p. 3
  • Average scores are computed across the nine diagnostic classes for multilabel evaluation.The nine classes comprise one normal and eight abnormal classes.Source: C. Evaluation Metrics · p. 3
  • Average F1 score is used to select the best-performing model, with the final score averaged over classes.Source: C. Evaluation Metrics · p. 3

D. Interpretability

The paper uses SHAP to make deep-learning predictions more interpretable, examining model behavior at both patient and population levels.

  • SHAP is adopted to interpret predictions from the deep model, addressing the limited human traceability of nonlinear black-box decisions.SHAP assigns an additive feature-importance value to each feature for a particular prediction.Source: D. Interpretability · p. 3
  • The model’s interpretability is examined at both patient level and population level using SHAP values.Source: D. Interpretability · p. 4, Figure 3 · p. 4

1) Patient Level Interpretation:

Patient-level interpretation explains contributions for a specific 12-lead ECG, while population-level analysis aggregates these contributions to characterize lead importance across diagnoses.

Patient Level Interpretation

  • For an ECG input x ∈R15000×12, the model produces a nine-class output and a SHAP-value matrix with dimensions 9×15000×12.Each SHAP value represents an input feature’s contribution toward a diagnostic class.Source: 1) Patient Level Interpretation · p. 4

Population Level Interpretation

IV. RESULTS AND DISCUSSION

The study standardizes ECG input length and applies augmentation to address variable recording durations, imbalance, and limited data for arrhythmia diagnosis.

  • ECG recordings are standardized to 15000 samples, corresponding to 30 seconds at 500 Hz, because the network requires equal-length inputs.Recordings longer than 30 seconds are cropped, retaining the last 30 seconds.Source: 1) Data Preprocessing · p. 4
  • Scaling and shifting are used for data augmentation to address severe class imbalance and data insufficiency.The paper states that augmentation can reduce overfitting and encourage robustness against adversarial examples.Source: 2) Data Augmentation · p. 4

3) Training and Evaluation:

The study used 10-fold cross-validation to evaluate a deep model and compare it with expert-feature machine-learning baselines. The deep model achieved strong overall performance but remained weaker for some arrhythmia classes.

Training and evaluation

  • 10-fold cross-validation averaged the deep model’s test performance across repeated training, validation, and testing splits.Each round used 8 folds for training, 1 for validation, and 1 for testing, with class thresholds selected on validation data.Source: 3) Training and Evaluation · p. 4

12-lead model performance

  • 0.813 average F1 score accompanied average AUC and accuracy above 0.95, with precision of 0.821 and recall of 0.812.AF and RBBB exceeded 0.9 F1, whereas STE reached 0.535 F1.Source: B. 12-lead Model Performance · p. 5

Confusion-matrix analysis

  • The model showed low false-negative and high true-negative rates across all 9 classes, but PAC, STD, and STE had high false-negative rates.AF, RBBB, and PVC also showed low false-positive and false-negative rates.Source: B. 12-lead Model Performance · p. 5, Figure 4 · p. 5

Comparison with traditional methods

  • 0.813 average F1 score for the deep model exceeded GBT’s 0.619 and RF’s 0.515 among the expert-feature baselines.The deep model particularly improved IVAB and PAC classification, while baselines struggled with IVAB, PAC, and STE.Source: C. Comparison with Traditional Methods · p. 5

D. Single-lead Model Performance

Single-lead models generally performed worse than the 12-lead model, although some individual leads were especially predictive for particular arrhythmias. Lead I, aVR, and V5 were the strongest single leads overall in the reported comparison.

Single-lead versus 12-lead performance

Best-performing leads

  • Lead I, aVR, and V5 were the top-performing single leads in the comparison.Lead I and lead II also showed very good average performance, while lead I was the best predictive lead for LBBB.Source: D. Single-lead Model Performance · pp. 5–6

Class-specific lead performance

  • 0.94 F1 score for RBBB using lead V1 exceeded the performance of the other individual leads.The authors identified V1 as important for RBBB diagnosis.Source: D. Single-lead Model Performance · p. 6
  • Lead I for LBBB and lead V1 for RBBB outperformed the 12-lead model for those specific diagnostic classes.The authors speculate that unexpected feature interactions may reduce the 12-lead model’s performance in these cases.Source: D. Single-lead Model Performance · p. 6

E. Model Interpretability

The study used SHAP to interpret ECG predictions at patient and population levels. Patient-level explanations highlight influential waveform regions, while population-level analysis summarizes the contribution of each lead to diagnostic classes.

Interpretability approach

  • SHAP explanations were applied to clarify the deep model’s behavior for individual ECG instances and across the population.The method was motivated by the limited traceability of multilayer nonlinear models in clinical applications.Source: E. Model Interpretability · p. 6, Figure 6 · p. 7

Patient-level interpretation

  • At patient level, SHAP highlights waveform regions that contribute to the top-predicted arrhythmia class.The visualizations display only the last 10 seconds of the two most influential leads because of space limitations.Source: E. Model Interpretability · p. 6, Figure 6 · p. 7
  • For atrial fibrillation, highlighted regions included the P wave and R peak, consistent with missing P waves and irregular RR intervals.Other examples emphasized PR intervals for IAVB and sporadic PVC periods.Source: 1) Patient Level Interpretation · p. 6

Population-level interpretation

  • Population-level contribution rates identified leads II, aVR, V1, V2, V5, and V6 as most important on average.V1 and V2 had contribution rates around 0.3 for LBBB and were also important for RBBB.Source: 2) Population Level Interpretation · p. 6
  • Low contribution from leads III and aVL may reflect feature interactions among ECG leads.The paper gives lead III’s relationship to leads II and I as an example of such interaction.Source: 2) Population Level Interpretation · p. 7

V. CONCLUSION

The paper concludes that its 12-lead deep model effectively classified cardiac arrhythmias, outperformed expert-feature baselines, and benefited from lead-level and patient-level SHAP interpretation. The authors identify generalization and adversarial robustness as future directions.

Conclusion

  • The stacked-residual-block deep network effectively performed multilabel classification of cardiac arrhythmias in 12-lead ECG recordings.Performance was evaluated on the CPSC2018 dataset.Source: §V · p. 7
  • The deep model significantly outperformed baseline classifiers trained on expert features.The baselines used engineered features rather than the end-to-end deep representation.Source: §V · p. 7
  • Lead I, aVR, and V5 were the best-performing single leads in the reported experiments.The conclusion also notes SHAP interpretation at patient and population levels.Source: §V · p. 7

Future directions

  • The authors plan to investigate generalization to patients from different ethnicities and robustness to adversarial examples.These topics define the stated future scope of the work.Source: §V · p. 8
Loading 2010.10328v1…