Computation-Efficient Semi-Supervised Learning for ECG-based Cardiovascular Diseases Detection

Rushuang Zhou, Zijun Liu, Lei A. Clifton, David A. Clifton, Kannie W. Y. Chan, Yuan-Ting Zhang, Yining DongarXiv 2024 · DOI

TL;DR

This paper introduces CE-SSL, a novel framework that tackles the challenge of detecting cardiovascular diseases (CVDs) from ECG data using deep learning, especially when labeled data is scarce. CE-SSL achieves both high detection accuracy and computational efficiency by combining a unique low-rank adaptation technique with a lightweight semi-supervised learning approach, making advanced ECG analysis more accessible.

What Problem Does This Paper Address?

The widespread adoption of deep learning for automatic CVD detection using ECGs is hampered by a critical issue: the scarcity of labeled ECG data. Training deep learning models effectively requires vast amounts of annotated data, which is expensive and time-consuming to obtain, as it necessitates expert physician review. While pre-trained models offer a solution by transferring knowledge from large datasets to smaller, specialized ones, two major bottlenecks persist:

  1. Performance vs. Efficiency Trade-off: Improving detection accuracy often comes at the cost of significantly increased computational resources (GPU memory, training time, storage). Traditional semi-supervised learning (SSL) methods, while boosting performance, exacerbate this by demanding more computation.
  2. Computational Burden of Fine-tuning: Adapting large pre-trained models, especially with SSL, requires updating many parameters, leading to substantial GPU memory usage and storage needs for each fine-tuned model. Parameter-efficient fine-tuning (PEFT) methods like LoRA help, but often struggle to balance performance and efficiency, or introduce their own computational overheads for optimization.

This paper aims to bridge this gap by proposing a method that delivers high detection performance without sacrificing computational efficiency, a crucial step for clinical deployment.

Methods

CE-SSL introduces a three-pronged approach to address the aforementioned challenges:

  1. Random-Deactivation Low-Rank Adaptation (RD-LoRA): This is the core innovation for efficient model adaptation. Instead of updating all parameters, RD-LoRA freezes the pre-trained weights and injects low-rank matrices for updates. The novelty lies in randomly deactivating these low-rank updates in each trainable layer with a probability p during training. This creates an ensemble of sub-networks, improving robustness and reducing computation. During testing, all low-rank matrices are activated and merged, forming an ensemble model.
  2. One-Shot Rank Allocation: To further optimize the low-rank adaptation, the paper proposes a "one-shot" method to determine the optimal ranks for the update matrices. Unlike methods that iteratively estimate importance, this approach uses a single gradient backward pass to estimate weight importance and allocate ranks. This significantly reduces the computational overhead associated with rank optimization.
  3. Lightweight Semi-Supervised Learning: To leverage abundant unlabeled ECG data, CE-SSL employs a simple yet effective SSL module. This module updates the batch normalization (BN) layers in the convolutional blocks using both labeled and unlabeled data. This helps stabilize statistics and improve generalization without the heavy computational cost of traditional SSL techniques like pseudo-labeling or consistency regularization.

Datasets

The paper utilizes several datasets for its experiments:

  • Pre-training:
    • CODE-15% (for base backbone)
    • CODE-full (for medium and large backbones)
  • Downstream Tasks (for evaluation):
    • Georgia 12-lead ECG Challenge (G12EC)
    • Chapman-Shaoxing
    • Ningbo
    • Physikalisch-Technische Bundesanstalt (PTB-XL)

These datasets are described as large-scale and contain multiple CVD labels, making them suitable for evaluating multi-label classification performance.

Key Insights and Ideas

  • Ensemble through Randomness: The idea of creating an ensemble of models during training by randomly deactivating parts of the adaptation process is a clever way to boost robustness and performance without the explicit overhead of training multiple separate models.
  • "One-Shot" Optimization: The "one-shot" rank allocation is a significant contribution. It addresses the computational bottleneck of existing dynamic rank allocation methods by achieving good results with a single gradient pass, making the adaptation process much faster.
  • BN Layers as the SSL Anchor: Focusing SSL efforts on batch normalization layers is an efficient strategy. It leverages the statistical information in unlabeled data to improve generalization without complex consistency losses or pseudo-labeling mechanisms.
  • Bridging the Performance-Efficiency Dilemma: The paper directly tackles the long-standing trade-off between model performance and computational cost in deep learning, offering a practical solution for resource-constrained environments.

Key Results

  • Superior Performance: CE-SSL consistently outperforms state-of-the-art semi-supervised and parameter-efficient methods across four downstream datasets in terms of macro Fβ=2 scores. For instance, it achieves a 4.1% improvement on the G12EC dataset compared to the second-best model.
  • Computational Efficiency: CE-SSL significantly reduces computational costs. It uses:
  • 66.5% less training time
    • 70.7% less GPU memory footprint
    • 1.8%-5.8% trainable parameters compared to state-of-the-art SSL methods.
  • Scalability: The framework demonstrates effectiveness across different backbone sizes (base, medium, large), maintaining its computational advantage.
  • Robustness to Low-Rank Budgets: Even with very limited parameter budgets (e.g., initial rank r=4), CE-SSL maintains competitive performance while drastically reducing trainable parameters.
  • Ablation Study: The study confirms the significant contribution of each proposed module (random deactivation, one-shot rank allocation, lightweight SSL) to the overall performance and efficiency gains.

Limitations and Future Work

  • Label Scarcity: While CE-SSL excels with limited labeled data, the paper acknowledges that label scarcity is a primary challenge.
  • Class Imbalance: The authors identify class imbalance as another significant limitation in ECG recordings with rare CVDs. This can lead to models biased towards negative predictions, suboptimal classification for rare classes, and is an area for future research.
  • Future Work: The paper suggests that addressing class imbalance is a crucial next step for improving the robustness of CVD detection systems.

Summary updated

BibTeX
@misc{zhou2024computation,
  author = {Rushuang Zhou and Zijun Liu and Lei A. Clifton and David A. Clifton and Kannie W. Y. Chan and Yuan-Ting Zhang and Yining Dong},
  title = {{Computation-Efficient Semi-Supervised Learning for ECG-based Cardiovascular Diseases Detection}},
  year = {2024},
  eprint = {2406.14377},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.14377},
}
Figure