Skip to main content
QUICK REVIEW

[Paper Review] Analysis of a Deep Learning Model for 12-Lead ECG Classification Reveals Learned Features Similar to Diagnostic Criteria

Theresa Bender, Jacqueline Michelle Beinecke|arXiv (Cornell University)|Nov 3, 2022
ECG Monitoring and AnalysisMedicine8 citations
TL;DR

This study applies explainable AI (XAI) methods—integrated gradients and layer-wise relevance propagation—to a pre-trained deep neural network for 12-lead ECG classification, revealing that the model learns features aligned with clinical diagnostic criteria. Key findings show that relevance scores correspond to textbook knowledge: visible P-waves are negative in AF, concordant T-waves are negative in LBBB, and abnormal QRS morphology drives LBBB detection.

ABSTRACT

Despite their remarkable performance, deep neural networks remain unadopted in clinical practice, which is considered to be partially due to their lack in explainability. In this work, we apply attribution methods to a pre-trained deep neural network (DNN) for 12-lead electrocardiography classification to open this "black box" and understand the relationship between model prediction and learned features. We classify data from a public data set and the attribution methods assign a "relevance score" to each sample of the classified signals. This allows analyzing what the network learned during training, for which we propose quantitative methods: average relevance scores over a) classes, b) leads, and c) average beats. The analyses of relevance scores for atrial fibrillation (AF) and left bundle branch block (LBBB) compared to healthy controls show that their mean values a) increase with higher classification probability and correspond to false classifications when around zero, and b) correspond to clinical recommendations regarding which lead to consider. Furthermore, c) visible P-waves and concordant T-waves result in clearly negative relevance scores in AF and LBBB classification, respectively. In summary, our analysis suggests that the DNN learned features similar to cardiology textbook knowledge.

Motivation & Objective

  • To address the clinical adoption barrier of deep learning in ECG analysis by improving model explainability.
  • To investigate whether deep neural networks (DNNs) learn features consistent with established cardiological diagnostic criteria.
  • To develop and validate quantitative methods for analyzing relevance scores across classes, leads, and beats.
  • To compare model behavior across two public ECG databases (CPSC 2018 and PTB-XL) to assess robustness.
  • To evaluate the impact of artifacts on model predictions and relevance attribution.

Proposed method

  • Applied integrated gradients (IG) and layer-wise relevance propagation (LRP) to assign relevance scores to each sample in 12-lead ECG signals.
  • Used pre-trained DNN from Ribeiro et al. for 27-class ECG classification on CPSC 2018 and PTB-XL databases.
  • Proposed three quantitative analysis frameworks: average relevance per class, per lead, and per average beat.
  • Visualized relevance scores as heatmaps and time-series overlays to correlate features with clinical ECG patterns.
  • Validated findings with cardiologists and compared results across databases and XAI methods.
  • Conducted ablation studies on artifacts and temporal patterns in relevance scores.

Experimental results

Research questions

  • RQ1Do the learned features of a DNN for 12-lead ECG classification align with established clinical diagnostic criteria?
  • RQ2How do relevance scores vary across different ECG abnormalities (e.g., AF, LBBB) and leads?
  • RQ3Can quantitative analysis of relevance scores reveal whether the model relies on morphological or temporal features?
  • RQ4How robust are the model’s explanations across different ECG databases with varying patient populations and labeling?
  • RQ5To what extent do artifacts distort the model’s attention and lead to misclassification?

Key findings

  • Relevance scores for atrial fibrillation increase when P-waves are visible, indicating the model treats absent or abnormal P-waves as diagnostic markers.
  • For left bundle branch block (LBBB), relevance scores are highest for abnormal QRS morphology and lowest when T-waves are concordant with QRS, aligning with clinical criteria.
  • The model assigns negative relevance to features that are counter-indicative of disease—e.g., normal P-waves in AF and concordant T-waves in LBBB—confirming alignment with textbook knowledge.
  • Relevance scores for LBBB show strong correspondence to clinical guidelines, particularly in leads V1 and aVL, where abnormal QRS morphology is most diagnostic.
  • False classifications are often associated with relevance scores near zero, suggesting the model fails to attend to key features when noise or artifacts are present.
  • Both IG and LRP methods produce consistent results across databases, with IG yielding more distinct and interpretable heatmaps for clinical interpretation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.