ECG-CL: A Comprehensive Electrocardiogram Interpretation Method Based on Continual Learning

Hongxiang Gao, Xingyao Wang, Zhenghua Chen, Min Wu, Jianqing Li, Chengyu Liu

TL;DR

ECG-CL is a novel framework that combines a multi-resolution CNN architecture with a parameter-isolation-based continual learning strategy to unify ECG waveform segmentation and arrhythmia classification. By enabling efficient knowledge transfer from low-level morphological tasks to high-level diagnostic ones, it achieves state-of-the-art performance while maintaining a small enough footprint for real-time use on wearable devices.

What Problem Does This Paper Address?

Electrocardiogram (ECG) monitoring is the gold standard for early detection of cardiovascular diseases (CVDs). While wearable devices have made data collection easy, interpreting that data still largely requires human experts. Deep learning has stepped in to automate this, but it faces several hurdles:

  1. Task Fragmentation: Most models treat segmentation (identifying P-waves, QRS complexes, etc.) and classification (diagnosing a specific arrhythmia) as entirely separate problems.
  2. Data Scarcity & Inconsistency: Large, well-labeled ECG databases are rare, and different datasets often use inconsistent labels or lead configurations.
  3. Catastrophic Forgetting: When a standard neural network is trained on a new task, it typically "forgets" how to perform previous ones.
  4. Resource Constraints: Deploying multiple specialized models for different tasks is too memory-intensive for wearable hardware.

The authors aim to create a single, "continual learner" that can master a sequence of ECG tasks—moving from simple waveform detection to complex multi-class diagnosis—without losing prior knowledge.

Methods

The researchers proposed two primary innovations:

1. Multi-Resolution Architecture (ECG-MR)

Traditional CNNs often downsample signals quickly, losing fine-grained morphological details. The proposed encoder maintains a high-resolution branch throughout the entire process while progressively adding lower-resolution branches to capture global rhythmic patterns.

  • Segmentation Head: Uses high-resolution features to pinpoint wave locations.
  • Classification Head: Progressively integrates high-resolution morphological data into lower-resolution global contexts to make diagnostic decisions.
Multi-Resolution Architecture Overview

2. ECG Continual Learning (ECG-CL)

To handle multiple tasks without forgetting, the authors adopted a parameter isolation strategy based on the PackNet framework. It follows a three-stage "train-compact-retrain" cycle:

  1. Train: The model learns a task (e.g., QRS segmentation).
  2. Compact: The most important weights for that task are identified and "frozen" (pruned to a specific sparsity).
  3. Retrain: The remaining "released" weights are used to learn the next task (e.g., AFib classification).

This allows the model to share generic features across tasks while dedicating specific parameters to new problems, effectively facilitating knowledge transfer from simple to complex domains.

Datasets

The study utilized a massive array of public databases to simulate real-world learning scenarios:

  • Segmentation: MIT-BIH Arrhythmia (AR), MIT-BIH Noise Stress Test (NSTD), European ST-T (EDB), CPSC2019 QRS, and a specialized 12-lead QRS database.
  • Classification: ICBEB 2018 (9 classes) and PTB-XL (the largest public ECG dataset, featuring 71 classes).

These were used to test three types of incremental learning: cross-domain (segmentation to classification), category-incremental (adding new diseases), and task-incremental (moving from small to large samples).

Key Insights and Ideas

  • Morphology as a Foundation: A key "aha moment" is the confirmation that learning to segment a QRS complex provides "generic features" that significantly boost the accuracy of downstream diagnostic tasks. Clinical knowledge (like QRS duration) is effectively encoded into the model's weights.
  • Resolution Synergy: By not discarding high-resolution data, the model captures subtle morphological abnormalities (like ST-elevation) that are often blurred in standard downsampled architectures.
  • Efficiency for Wearables: Because the model uses binary masks to isolate task-specific parameters, it only needs to be loaded once. It can process 201 single-lead segments per second, making it highly suitable for real-time monitoring on smartwatches.

Key Results

  • Superior Segmentation: On the challenging CPSC2019 dataset (filled with noise and artifacts), ECG-CL achieved an F1-score of 99.12%, outperforming several specialized state-of-the-art models.
  • Boosted Classification: The continual learning approach consistently beat "training from scratch." For instance, on the PTB-XL dataset, the CL mode reached a macro-AUC of 92.73%, compared to 92.18% for a fresh model.
  • Zero Forgetting: Unlike standard fine-tuning, which saw performance on early tasks plummet as new ones were added, the parameter isolation strategy maintained near-perfect retention of original task performance.
Class-specific Macro-AUC Analysis

Limitations and Future Work

The authors identify two main areas for improvement:

  • Backward Transfer: While the model excels at forward transfer (old tasks helping new ones), it does not yet support backward transfer (new tasks helping to refine the model's performance on older tasks).
  • Task-Free Learning: The current system requires explicit "Task IDs" to switch between parameter masks. Future work will focus on "task-free" continual learning, where the model automatically adapts to new data distributions without manual intervention.

Summary updated

BibTeX
@article{gao2023ecg,
  author = {Hongxiang Gao and Xingyao Wang and Zhenghua Chen and Min Wu and Jianqing Li and Chengyu Liu},
  title = {{ECG-CL: A Comprehensive Electrocardiogram Interpretation Method Based on Continual Learning}},
  journal = {IEEE J. Biomed. Health Informatics},
  year = {2023},
  url = {https://openreview.net/forum?id=OyHM2OwlRo},
}
Figure