[Paper Review] Lead-agnostic Self-supervised Learning for Local and Global Representations of Electrocardiogram
This paper proposes a lead-agnostic self-supervised pre-training method for electrocardiogram (ECG) signals that jointly learns local and global representations using a combination of Wav2Vec 2.0 and CMSC contrastive learning. It introduces random lead masking (RLM) as a data augmentation strategy to improve robustness to arbitrary lead combinations, achieving state-of-the-art performance on ECG arrhythmia classification and patient identification tasks across multiple lead configurations.
In recent years, self-supervised learning methods have shown significant improvement for pre-training with unlabeled data and have proven helpful for electrocardiogram signals. However, most previous pre-training methods for electrocardiogram focused on capturing only global contextual representations. This inhibits the models from learning fruitful representation of electrocardiogram, which results in poor performance on downstream tasks. Additionally, they cannot fine-tune the model with an arbitrary set of electrocardiogram leads unless the models were pre-trained on the same set of leads. In this work, we propose an ECG pre-training method that learns both local and global contextual representations for better generalizability and performance on downstream tasks. In addition, we propose random lead masking as an ECG-specific augmentation method to make our proposed model robust to an arbitrary set of leads. Experimental results on two downstream tasks, cardiac arrhythmia classification and patient identification, show that our proposed approach outperforms other state-of-the-art methods.
Motivation & Objective
- To address the limitation of existing ECG self-supervised methods that focus only on global context and are sensitive to lead configuration.
- To improve model generalization by learning both local and global contextual representations from unlabeled ECG data.
- To enable fine-tuning with any arbitrary subset of leads by introducing a novel data augmentation strategy—random lead masking (RLM).
- To achieve superior performance on downstream tasks such as arrhythmia classification and patient identification across diverse lead combinations.
Proposed method
- Combines Wav2Vec 2.0 and CMSC contrastive learning objectives to jointly learn local and global ECG representations.
- Applies random lead masking (RLM) during pre-training, where leads are randomly masked with a probability of 0.5 to simulate incomplete lead sets.
- Uses masked token prediction for local representations: masked time steps are replaced with a learnable mask token and predicted using quantized features.
- Generates global representations via average-pooling of local representations to maximize agreement between temporally adjacent ECG segments.
- Trains the model using a multi-contrastive loss that combines local contrastive loss and global contrastive loss.
- Employs a convolutional encoder to extract hierarchical features from raw ECG signals before contrastive learning.
Experimental results
Research questions
- RQ1Can joint learning of local and global ECG representations improve performance on downstream tasks compared to models focusing only on global context?
- RQ2Does random lead masking (RLM) enhance model robustness when fine-tuning with arbitrary lead combinations?
- RQ3How does the proposed method compare to state-of-the-art self-supervised ECG pre-training approaches on arrhythmia classification and patient identification?
- RQ4Does the inclusion of ECG-specific augmentations (e.g., baseline shift, noise) improve performance over RLM alone?
Key findings
- The proposed method, W2V+CMSC+RLM, outperforms all state-of-the-art baselines on both arrhythmia classification and patient identification tasks across all lead combinations.
- On the PTB-XL dataset, W2V+CMSC+RLM achieved a macro F1-score of 0.842 on arrhythmia classification, surpassing the next-best method by 2.1 percentage points.
- For patient identification, the model achieved an AUC of 0.968 on the 12-lead setting, significantly outperforming previous methods.
- Random lead masking (RLM) consistently improved performance on classification tasks requiring local context, but slightly reduced performance on identification tasks due to enhanced local representation learning.
- CMSC+RLM showed drastically improved performance over CMSC alone, indicating that RLM enhances the model’s ability to learn patient-specific representations.
- Adding ECG-specific augmentations (e.g., baseline shift) alongside RLM degraded performance, suggesting that RLM alone is more effective for robustness in real-world settings.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.