Explaining Black-Box Automated Electrocardiogram Classification to Cardiologists

Derick M. de Oliveira, Antônio H. Ribeiro, João A. O. Pedrosa, Gabriela M. M. Paixão, Wagner Meira Jr.CinC 2020

Introduction

Deep learning has significantly advanced automated electrocardiogram (ECG) analysis. Unlike traditional methods that rely on hand-engineered features, modern "end-to-end" models process raw signal data to output diagnoses. While highly accurate, these models are often opaque "black boxes." A cardiologist might receive a diagnosis of "Atrial Fibrillation" without understanding the underlying reasoning, which hinders clinical trust. This research aims to bridge the transparency gap by translating the internal logic of a 6-million-parameter neural network into familiar clinical terminology.

Methodology: The Noise-Insertion Framework

The authors propose a four-step framework to generate interpretable explanations for deep learning ECG classifiers:

  1. ECG Segmentation: Utilizing tools like Neurokit, the system identifies standard ECG components, including the P-wave, QRS complex, and T-wave.
  2. Baseline Prediction: The raw signal is passed through a pre-trained 1-D ResNet to obtain the initial AI diagnosis.
  3. Noise Insertion: This core innovation involves perturbing specific clinical features (e.g., QRS shape or interval duration) with "realistic" noise while maintaining the rest of the signal's integrity.
  4. Impact Assessment: Through a Monte Carlo approach, the system measures how often the model's diagnosis changes when a specific feature is disturbed. If noise in the QRS complex leads to a loss of the "Bundle Branch Block" diagnosis, that feature is identified as critical.
The four-step explanation framework: (1) Segmentation, (2) Baseline Prediction, (3) Noise Insertion, and (4) Impact Evaluation.

Data and Training

The study leverages a massive dataset from the Telehealth Network of Minas Gerais (TNMG) in Brazil, containing over 2.3 million ECG records from 1.6 million patients. The underlying ResNet model was trained on 98% of this data to classify six specific abnormalities: 1st-degree AV block, RBBB, LBBB, Sinus Bradycardia, Atrial Fibrillation, and Sinus Tachycardia.

Key Results

The explanation method was evaluated using multilabel Area Under the Curve (AUC) scores, which measure the alignment between the AI's "important features" and established clinical reality.

AUC scores for six ECG abnormalities, showing the alignment between identified important features and clinical standards.

The results demonstrate high alignment, with AUC scores exceeding 0.7 for nearly all diagnoses. For instance, in Left Bundle Branch Block (LBBB), the QRS complex was identified as the dominant feature with an impact score of 0.86. Similarly, for Sinus Bradycardia and Tachycardia, Heart Rate and Rhythm features were the primary drivers. The system provides clinicians with both visual bar graphs of feature impact and natural language explanations, such as "Abnormal QRS complex duration."

Discussion and Future Work

By using noise perturbation rather than simple data deletion, the framework ensures signals remain "physiologically plausible," preventing model failure due to unrealistic data artifacts. However, the method is dependent on the accuracy of the initial segmentation. Furthermore, explaining diagnoses based on the absence of features (e.g., missing P-waves in Atrial Fibrillation) remains a challenge. Future research will involve large-scale clinical trials to evaluate the impact of these explanations on real-time diagnostic performance.

Summary updated

BibTeX
@inproceedings{oliveira2020explaining,
  author = {Derick M. de Oliveira and Antônio H. Ribeiro and João A. O. Pedrosa and Gabriela M. M. Paixão and Antônio Luiz P. Ribeiro and Wagner Meira Jr.},
  title = {{Explaining Black-Box Automated Electrocardiogram Classification to Cardiologists}},
  booktitle = {CinC},
  year = {2020},
  doi = {10.22489/cinc.2020.452},
}
Figure