Presented at the Computing in Cardiology 2020 conference, this paper details the third-place winning approach for the PhysioNet/Computing in Cardiology Challenge 2020. The team, "HeartBeats," developed a sophisticated deep learning pipeline to automatically classify 27 different cardiac abnormalities from 12-lead electrocardiogram (ECG) signals.
TL;DR
The researchers developed an ensemble of Squeeze-and-Excitation Residual Networks (SE-ResNet) combined with a custom "Sign Loss" function to tackle extreme class imbalance in ECG data. Their hybrid approach, which integrated deep learning with clinical rule-based models, earned them 3rd place out of 41 teams in a global competition.
Problem Statement
Interpreting an ECG—a recording of the heart's electrical activity—is a cornerstone of cardiovascular diagnosis. However, manual interpretation is time-consuming and prone to human error, especially when identifying subtle patterns across multiple leads.
The primary technical challenges in automating this include:
- Data Heterogeneity: Signals come from different sources with varying sampling frequencies and lengths (from 6 seconds to 30 minutes).
- Class Imbalance: Some cardiac conditions are common, while others are extremely rare, leading standard models to ignore the "long tail" of rare abnormalities.
- Label Noise: Large-scale datasets often contain missing or incorrect labels, which can "confuse" a neural network during training.
Methods
The authors employed a multi-stage pipeline that blends modern computer vision architectures with classical signal processing.
- Architecture (SE-ResNet): The core of the system is the SE-ResNet. While a standard ResNet helps gradients flow through deep layers, the "Squeeze-and-Excitation" (SE) blocks allow the model to perform "channel-wise attention." The network learns which ECG leads or feature maps are most important for a specific diagnosis and weights them more heavily.
- The Ensemble Strategy: They trained two separate models—one focusing on the first 10 seconds of a signal and another on the first 30 seconds—and ensembled their outputs to capture both short-term and long-term rhythm patterns.
- Sign Loss: To combat class imbalance, they designed a "multi-label sign loss." This function reduces the penalty for correctly classified samples (especially the abundant "negative" labels), forcing the model to focus its learning effort on misclassified "positive" cases (the rare abnormalities).
- Hybrid Rule-Based Correction: Deep learning models sometimes struggle with simple clinical definitions. The authors added a rule-based classifier specifically for bradycardia (slow heart rate). If the model was unsure, it deferred to a hard-coded rule: if more than 50% of R-R intervals were longer than one second, it flagged bradycardia.
- Preprocessing: They used biorthogonal wavelet transformation for denoising and excluded redundant leads (III, aVR, aVL, aVF) that can be mathematically derived from others, reducing input dimensionality without losing information.
Datasets and Relabelling
The study utilized a massive collection of 43,101 12-lead ECGs from six public sources: CPSC, CPSC2, PTB, PTB-XL, Georgia, and INCART.
Notably, the authors performed Relabelling: they used a baseline model to identify missing labels in the CPSC dataset. If the model predicted a class with >0.8 probability that wasn't in the original label set, they added it. A clinician verified a sample of these new labels, confirming the strategy's validity. They also used an external dataset from the Hefei Hi-tech Cup (40,000 records) for additional validation.
Key Results
The team placed 3rd out of 41 official entries in the global competition. They achieved a challenge validation score of 0.682 and a full test score of 0.514.
As shown in the ablation study (Table 1), the combination of the 10s/30s ensemble plus the rule-based logic (Model 4) consistently outperformed individual models across all test sets.
Discussion and Future Work
A key insight from this work is that pseudo-labeling can effectively clean noisy datasets. By relabeling the CPSC dataset, the authors turned "noise" into useful training signals. Furthermore, the inclusion of a rule-based model for bradycardia highlights that even advanced "black box" models benefit from guardrails based on established clinical logic.
The authors noted that while their ensemble approach was robust, the overall performance was still limited by the sub-optimal label quality of the underlying datasets. Future work may involve 1D U-Net architectures for heartbeat segmentation to improve clinical utility by locating specific abnormalities within the ECG strip.
Summary updated