Multimodality Multi-Lead ECG Arrhythmia Classification using Self-Supervised Learning

Thinh Phan, Duc Le, Patel Brijesh, Donald Adjeroh, Jingxian Wu, Morten Olgaard Jensen, Ngan Le

Introduction

Cardiovascular diseases (CVDs) remain a leading cause of global mortality, necessitating accurate and timely diagnostic tools. The 12-lead electrocardiogram (ECG) is the gold standard for identifying arrhythmias, yet its manual interpretation is time-consuming and subject to human error. While Deep Learning (DL) has shown promise in automating ECG analysis, two primary hurdles persist: the loss of diagnostic information when treating ECGs solely as 1D time-series data, and the "labeling bottleneck"—the high cost and scarcity of expert-annotated datasets.

This paper presents a novel framework, SSL-TSG (Self-Supervised Learning with Time-series, Spectrogram, and Gate fusion), designed to address these limitations. By integrating multimodal data representations and leveraging unlabeled data through self-supervised learning (SSL), the proposed method achieves state-of-the-art performance in multi-lead ECG classification.

Methodology

The SSL-TSG architecture utilizes a dual-stream approach to capture both temporal and spectral features of cardiac rhythms, followed by a sophisticated fusion mechanism.

1. Multimodal Representation

The model processes ECG signals through two distinct "lenses":

  • Time-Series Stream (1D): Raw 12-lead ECG signals are processed using an xresnet1d50 backbone. This stream captures the morphological features of the waveform over time.
  • Spectrogram Stream (2D): To capture frequency-domain information, the raw signals are transformed into time-frequency representations via Short-Time Fourier Transform (STFT). These are processed by an SE-ResNet34 backbone, allowing the model to identify rhythmic patterns and frequency-based anomalies that may be less apparent in the raw time-series.

2. Self-Supervised Learning via Self-Knowledge Distillation

To utilize the vast amounts of unlabeled ECG data available in clinical settings, the authors employ a self-knowledge distillation (Self-KD) framework. This "Student-Teacher" approach involves a student network learning to match the output of a teacher network, where the teacher is an exponential moving average of the student’s own past weights.

The model is trained to remain consistent even when data is perturbed. For the 1D stream, augmentations include "Time Cutout" and Gaussian noise. For the 2D spectrogram stream, "Time Cutout" and "Frequency Cutout" are utilized. This pre-training phase allows the model to learn the underlying "language" of ECGs—understanding normal versus abnormal wave structures—before any diagnostic labels are introduced.

3. Gate Fusion Mechanism

In the final classification stage, the model avoids simple concatenation of features. Instead, it implements a soft attention-based gate fusion. This mechanism allows the model to dynamically weight the importance of the time-series versus the spectrogram features for specific segments of the ECG. This ensures that the most informative modality is prioritized for the final prediction.

Experimental Results

The framework was evaluated using the PhysioNet 2020 dataset, a benchmark containing 43,101 ECG records. The researchers focused on the 25 most common diagnostic classes to ensure a fair comparison with existing literature, utilizing ten-fold cross-validation.

Performance Metrics

The SSL-TSG model significantly outperformed several state-of-the-art methods:

  • AUROC: 96.0% (compared to the 80-87% range of many previous works).
  • F1 Score: 62.1% (a substantial jump over the 25-53% range seen in earlier models).
  • Challenge Metric (ChM): 65.4, the specific scoring metric for the PhysioNet competition.

Key Insights from Ablation Studies

  • The Value of Frequency: Adding the spectrogram modality consistently boosted performance, confirming that some arrhythmias are more clearly characterized in the frequency domain.
  • SSL as a Performance Floor-Raiser: Self-supervised pre-training was the single most impactful factor in improving F1 and AUROC scores, providing a significant performance boost across all metrics.
  • Robustness through Augmentation: Techniques like "Time Cutout" forced the model to learn inter-segment coherence, making it more robust to the variable lengths and noise found in real-world clinical data.

Discussion and Conclusion

The SSL-TSG framework demonstrates that looking at heart rhythms through multiple modalities significantly improves diagnostic accuracy. By addressing the labeling bottleneck through self-supervision and utilizing gate fusion to synthesize temporal and spectral data, the model sets a new standard for automated ECG interpretation.

Despite these gains, some limitations remain. The dual-backbone architecture increases computational complexity, which may impact inference latency in real-time monitoring scenarios. Future work could explore more domain-specific ECG augmentations, such as baseline wander or lead-switching simulations, and further validate the model on more diverse, multi-ethnic populations to ensure global clinical readiness.

Summary updated

BibTeX
@inproceedings{phan2022multimodality,
  author = {Thinh Phan and Duc Le and Patel Brijesh and Donald Adjeroh and Jingxian Wu and Morten Olgaard Jensen and Ngan Le},
  title = {{Multimodality Multi-Lead ECG Arrhythmia Classification using Self-Supervised Learning}},
  booktitle = {BHI},
  year = {2022},
  url = {https://openreview.net/forum?id=Lud94yFkGdY},
}
Figure