Classification of 12-lead ECG Signals With Adversarial Multi-Source Domain Generalization

Hosein Hasani, Adeleh Bitarafan, Mahdieh Soleymani Baghshah

Abstract

Automated ECG interpretation often struggles with distribution discrepancy across different clinical environments. This paper presents a deep learning framework that combines a dual-stream CNN-LSTM architecture with adversarial multi-source domain generalization. By utilizing a Gradient Reversal Layer (GRL), the model learns features invariant to recording conditions, focusing instead on universal cardiac pathologies. The approach achieved 5th place in the PhysioNet/Computing in Cardiology Challenge 2020.

Introduction: The Challenge of Distribution Discrepancy

Automated ECG interpretation is a critical goal for modern cardiology. However, models often suffer from poor generalization when deployed in new clinical settings. Differences in hardware, sampling rates, and environmental noise between hospitals create a "distribution discrepancy." While domain adaptation techniques exist, they require data from the target site. This research focuses on domain generalization, aiming to build a model inherently robust to any unseen clinical source by learning domain-invariant features.

Methodology

The authors developed a sophisticated pipeline consisting of three primary components:

1. Dual-Stream Feature Extraction

The architecture employs two parallel CNN paths to capture multi-scale information. One stream uses large kernels for "coarse" global patterns, while the other uses smaller kernels for "fine" local details. These features are then processed by Long Short-Term Memory (LSTM) layers to model the temporal dependencies inherent in cardiac rhythms.

2. Adversarial Domain Generalization

To ensure the model ignores source-specific noise, an adversarial component is integrated. A domain classifier is connected to the feature extractor via a Gradient Reversal Layer (GRL). During training, the GRL forces the network to learn representations that make it impossible to distinguish the source hospital, thereby isolating the underlying cardiac features.

The proposed dual-stream CNN-LSTM architecture with adversarial domain generalization.

3. Data Augmentation

Aggressive augmentation strategies were used to simulate real-world variability, including random low-frequency artifacts (baseline wander), "lead dropout" (randomly zeroing out leads), signal inversion, scaling, and random cropping.

Datasets and Task

The study utilized the PhysioNet/Computing in Cardiology Challenge 2020 dataset, which aggregates ECGs from global sources including CPSC (China), PTB-XL (Germany), and G12EC (Georgia). The model was trained to classify signals into 27 distinct cardiac abnormalities.

Key Insights

  • Noise Robustness: Rather than heavy pre-filtering, the authors allowed the high-capacity model to learn from noisy data, arguing that synthetic noise improves the model's "immune system" against real-world variability.
  • Adversarial Training: Shifting the objective from simple accuracy to maximizing accuracy while minimizing source-specific information is key for medical AI deployment.
  • Multi-Label Weighting: A weighted binary cross-entropy loss was used to prioritize clinically significant labels, aligning with the challenge's specific reward matrix.

Results and Discussion

The model secured 5th place out of 41 teams in the 2020 Challenge. In "leave-one-out" experiments, the adversarial domain generalization approach consistently outperformed standard training, improving scores on unseen datasets.

Performance comparison of the proposed model against other challenge entries across various metrics.

Ablation studies confirmed that the dual-stream approach (coarse + fine) is superior to single-stream architectures, providing a more robust representation of complex cardiac signals.

Conclusion and Future Work

The proposed framework demonstrates the power of adversarial learning for domain generalization in medical signal processing. Future work includes incorporating "unscored" labels through semi-supervised learning and addressing the heterogeneity of global ECG annotation standards to further improve clinical utility.

Summary updated

BibTeX
@inproceedings{hasani2020classification,
  author = {Hosein Hasani and Adeleh Bitarafan and Mahdieh Soleymani Baghshah},
  title = {{Classification of 12-lead ECG Signals With Adversarial Multi-Source Domain Generalization}},
  booktitle = {CinC},
  year = {2020},
  doi = {10.22489/cinc.2020.445},
}
Figure