Lead-adaptive self-supervised ECG representation model for multi-scenario ECG monitoring
Abstract
Background Electrocardiogram (ECG) is a critical non-invasive tool for the early detection of cardiovascular diseases. However, ECG interpretation remains challenging because of signal complexity, limited medical resources, and heterogeneous monitoring settings. Most deep learning models are still designed for specific tasks and fixed lead configurations, limiting their transfer across clinical and wearable ECG scenarios. Objective This study aims to develop a lead-adaptive self-supervised ECG representation model that supports transferable analysis across representative tasks and lead configurations. Methods The proposed model follows a two-stage framework. First, a VQ-VAE-based ECG tokenizer converts raw ECG segments into morphology-aware waveform tokens and integrates patch and lead-time positional encodings to retain spatiotemporal context. Second, a Masked Autoencoder (MAE) extracts rich representations from unlabeled data, empowered by a novel adaptive-lead training algorithm to generalize across varying lead configurations. Results After pretraining on 178,602 multi-center ECG records, the model was evaluated on nine downstream ECG tasks under representative 1-, 3-, 8-, and 12-lead settings. Compared with a plain MAE baseline, it improved average macro-F1 by +2.56, +4.85, and +12.80 points on broad multi-label, morphology-related, and rhythm-related classification, respectively. Ablation analyses further supported the contributions of ECG tokenization and lead-adaptive pretraining. Conclusions The proposed model improves representation transfer across the evaluated ECG monitoring scenarios. By providing a robust representation backbone for intelligent ECG analysis, it offers a transferable technical solution for clinical ECG interpretation and wearable ECG monitoring, and may reduce the need to develop separate models for each task and lead configuration.
// Source
Authors: Zhiyuan Li, Yuanyuan Tian, Xiaoyang Wei, Mengxiao Wang, Yanrui Jin, Zehua Shi, Tang Xiaohan, Yushun Liu, Liqun Zhao, Chengliang Liu
Institutions: Shanghai Jiao Tong University, Shanghai First People's Hospital, State Key Laboratory of Mechanical System and Vibration