Introduction
Deep learning models have demonstrated remarkable efficacy in classifying cardiac arrhythmias from electrocardiogram (ECG) signals, often matching or exceeding the performance of trained cardiologists. However, these models typically operate as "black boxes," providing little insight into the specific signal features that drive a diagnosis. In a clinical setting, trust is paramount; clinicians need to understand why a model flagged a specific signal—for instance, by identifying the exact premature ventricular contraction (PVC) that triggered a high-risk prediction.
While "feature attribution" methods (which generate heatmaps of importance) are standard in computer vision, their application to 1D, periodic physiological signals like ECGs has not been rigorously benchmarked. This study addresses this gap by systematically evaluating 11 popular attribution methods using customized metrics tailored to the unique structure of heartbeats.
Methodology
The researchers evaluated 11 attribution methods categorized into three groups: backpropagation-based (e.g., Saliency, Integrated Gradients), perturbation-based (e.g., LIME, KernelSHAP), and activation-based (e.g., Grad-CAM). To quantify their effectiveness, the study introduced three primary metrics:
- Localization Score: This measures the Intersection over Union (IoU) between the model's identified "hotspots" and the ground-truth abnormal beats labeled by experts.
- Pointing Game: A binary metric assessing whether the single most important point identified by the model falls within the boundaries of an abnormal beat.
- Degradation Score: This evaluates how significantly the model's confidence drops when "important" segments are removed versus "unimportant" segments.
Experimental Setup
The study utilized the Icentia11K dataset, one of the largest public ECG repositories, containing approximately 2 billion labeled beats from 11,000 patients. The focus was on three classes: Normal beats, Premature Atrial Contractions (PAC), and Premature Ventricular Contractions (PVC). The underlying model was a modified 18-layer ResNet adapted for 1D signals, which achieved a classification accuracy of 90%.
Key Results and Insights
The Dominance of Grad-CAM
Grad-CAM emerged as the superior method across all metrics. It achieved an average score of 0.6924, significantly outperforming the second-best method, Integrated Gradients (0.5825). Notably, Grad-CAM's localization score (0.4848) was nearly double that of most backpropagation-based methods, which typically hovered around 0.20. In the Pointing Game, Grad-CAM correctly identified the abnormality 70.48% of the time.
"Concept" vs. "Pixel"
The researchers attribute Grad-CAM's success to its activation-based nature. By looking at higher-level feature maps in the final layers of the network, Grad-CAM captures the "concept" of an arrhythmia—the overall morphology of the wave—rather than becoming distracted by sample-level noise that often affects gradient-based methods.
Failure of Perturbation Methods
Popular methods like LIME and SHAP performed poorly in this domain. The authors hypothesize that the act of perturbing an ECG signal (e.g., replacing a segment with a mean value) destroys the essential periodic structure and temporal dependencies of the heartbeat, leading to unreliable attribution results.
Conclusion
The study concludes that Grad-CAM is currently the most reliable tool for providing clinicians with interpretable ECG diagnoses. However, the researchers note that future work should focus on developing attribution methods specifically designed for the wave-based, periodic nature of physiological signals, rather than relying solely on adaptations from computer vision. Expanding the scope to more complex arrhythmias, such as Atrial Fibrillation, remains a critical next step for clinical validation.
Summary updated