Introduction
Deep learning has revolutionized medical imaging, yet medical time-series data (such as EEG or ECG) remains a significant challenge. Two primary bottlenecks hinder progress: the "annotation tax," where labeling signals requires rare clinical expertise, and the "manual design trap," where human-designed rules for data augmentation often fail to capture the subtle, complex features of underlying diseases. To address these issues, this paper introduces LMCRD (Learnable Multi-views Contrastive Framework with Reconstruction Discrepancy), a framework that combines generative anomaly detection with an adaptive contrastive learning strategy.
The LMCRD Framework
The LMCRD framework is structured as a three-stage pipeline designed to maximize the utility of both labeled and unlabeled data across different clinical centers.
Stage 1: AE-GAN Knowledge Transfer
The process begins by training a hybrid Autoencoder-GAN on healthy (normal) data from external datasets. This model learns to reconstruct healthy signals. When presented with target patient data, the model's "reconstruction error"—the discrepancy between the input and the generated output—acts as a proxy for disease probability. This discrepancy is used as a feature, providing the model with a "hint" about potential anomalies before classification begins.
Stage 2: Learnable Multi-views Contrastive Framework (LMCF)
Rather than relying on manual distortions (like adding noise or flipping) to create different "views" for contrastive learning, LMCRD utilizes a Multi-Head Attention (MHA) mechanism. This allows the model to learn which parts of the signal are most relevant from various perspectives, effectively automating the data augmentation process.
Stage 3: Hierarchical Contrastive Loss
To ensure the model understands the multi-layered structure of medical recordings, it employs a hierarchical contrastive loss. This loss function contrasts data across four distinct levels: Subject, Trial, Epoch, and Temporal. This ensures that the model recognizes the relationships between multiple trials from a single patient and the temporal windows within those trials.
Experimental Evaluation and Results
The framework was evaluated on three major medical tasks: Alzheimer’s Disease (AD) EEG recordings, Myocardial Infarction (PTB-XL) ECG data, and Parkinson’s Disease (TDBrain) EEG recordings.
Key findings include:
- Superior Performance: LMCRD consistently outperformed seven established baselines, including TS2vec and CLOCS, achieving 93.23% accuracy on the AD dataset with full labels.
- Robustness to Data Scarcity: In scenarios where only 10% of labels were available, the model maintained exceptional performance, reaching 94.67% accuracy on the AD task. This suggests that the self-supervised pre-training is highly effective at capturing essential features without extensive labeling.
- Cross-Center Synergy: The results demonstrate that "normal" data from one hospital can significantly improve the detection of abnormalities in another, mitigating the domain shift problem common in single-center studies.
Conclusion and Future Work
LMCRD offers a robust solution to the data scarcity problem in medical time-series analysis by replacing manual augmentation with learnable views and utilizing reconstruction discrepancy as a diagnostic feature. While the multi-stage process is computationally intensive, its ability to generalize across different medical conditions (heart and brain) marks a significant step forward. Future research will focus on improving the interpretability of the MHA views to help clinicians better understand the specific temporal features driving the model's diagnoses.
Summary updated