Proceedings

ECG2TOK: ECG Pre-Training with Self-Distillation Semantic Tokenizers

Download BibTeX Cite

Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. AI and Social Good. Pages 9990-9998.

https://doi.org/10.24963/ijcai.2025/1110

Abstract

Self-supervised learning (SSL) has garnered increasing attention in electrocardiogram (ECG) analysis for its effectiveness in resource-limited settings. Existing state-of-the-art SSL methods rely on time-frequency detail reconstruction, but due to the inherent redundancy of ECG signals and individual variability, these approaches often yield suboptimal performance. In contrast, discrete label prediction becomes a superior pre-training objective by encouraging models to efficiently abstract ECG high-level semantics. However, the continuity and significant variability of ECG signals pose a challenge in generating semantically discrete labels. To address this issue, we propose an ECG pretraining framework with a self-distillation semantic tokenizer (ECG2TOK), which maps continuous ECG signals into discrete labels for self-supervised training. Specifically, the tokenizer extracts semantically aware embeddings of ECG by self-distillation and performs online clustering to generate semantically rich discrete labels. Subsequently, the SSL model is trained in conjunction with masking strategies and discrete label prediction to facilitate the abstraction of high-level semantic representations. We evaluate ECG2TOK in six downstream tasks, demonstrating that ECG2TOK efficiently achieves state-of-the-art performance and up to a 30.73% AUC increase in low-resource scenarios. Moreover, visualization experiments demonstrate that the discrete labels generated by ECG2TOK exhibit consistent semantics closely associated with clinical features. Our code is available on https://github.com/YXYanova/ECG2TOK.

  1. PTBXL-Super PTBXL-Sub PTBXL-Form PTBXL-Rhythm CPSC2018 CSN Method 1% 10% 100% 1% 10% 100% 1% 10% 100% 1% 10% 100% 1% 10% 100% 1% 10% 100% random init 70.45 77.09 81.61 55.82 67.60 77.91 55.82 62.54 73.00 46.26 62.36 79.29 54.96 71.47 78.33 47.22 63.17 73.13 SimCLR[Chen et al., 2020] 63.41 69.77 73.53 60.84 68.27 73.39 54.98 56.97 62.52 51.41 69.44 77.73 59.78 68.52 76.54 59.02 67.26 73.20 BYOL[Grill et al., 2020] 71.70 73.83 76.45 57.16 67.44 71.64 48.73 61.63 70.82 41.99 74.40 77.17 60.88 74.42 78.75 54.20 71.92 74.69 BarlowTwins[Zbontar et al., 2021] 71.87 75.96 78.41 62.57 70.84 74.34 52.12 60.39 66.14 50.12 73.54 77.62 55.12 72.75 78.39 60.72 71.64 77.43 MoCo-v3[Chen et al., 2021] 73.19 76.65 78.26 55.88 69.21 76.69 50.32 63.71 71.31 51.38 71.66 74.33 62.13 76.74 75.29 54.61 74.26 77.68 SimSiam[Chen and He, 2021] 73.15 72.70 75.63 62.52 69.31 76.38 55.16 62.91 71.31 49.30 69.47 75.92 58.35 72.89 75.31 58.25 68.61 77.41 TS-TCC[Eldele et al., 2021] 70.73 75.88 78.91 53.54 66.98 77.87 48.04 61.79 71.18 43.34 69.48 78.23 57.07 73.62 78.72 55.26 68.48 76.79 CLOCS[Kiyasseh et al., 2021] 68.94 73.36 76.31 57.94 72.55 76.24 51.97 57.96 72.65 52.38 71.88 76.31 59.59 77.78 77.49 54.38 71.93 76.13 ASTCL[Wang et al., 2023] 72.51 77.31 81.02 61.86 68.77 76.51 44.14 60.93 66.99 52.38 71.98 76.05 57.90 77.01 79.51 56.40 70.87 75.79 CRT[Zhang et al., 2023] 69.68 78.24 77.24 61.98 70.82 78.67 46.41 59.49 68.73 47.44 73.52 74.41 58.01 76.43 82.03 56.21 73.70 78.80 ST-MEM[Na et al., 2024] 61.12 66.87 71.36 54.12 57.86 63.59 55.71 59.99 66.07 51.12 65.44 74.85 59.69 63.32 70.39 59.77 66.87 71.36 HeartLang[Jin et al., 2025] 78.94 85.59 87.52 64.68 79.34 88.91 58.70 63.99 80.23 62.08 76.22 90.34 60.44 66.26 77.87 57.94 68.93 82.49 ECG2TOK(Ours) 81.23 85.68 87.99 72.31 79.42 84.52 55.88 73.78 85.28 81.16 89.41 91.41 68.42 83.41 91.04 72.66 85.14 92.84
  2. [Baevski et al., 2023] Alexei Baevski, Arun Babu, Wei-Ning Hsu, and Michael Auli. Efficient self-supervised learn- ing with contextualized target representations for vision, speech and language. In International Conference on Ma- chine Learning, pages 1416-1429. PMLR, 2023.
  3. [Bao et al., 2021] Hangbo Bao, Li Dong, Songhao Piao, and Furu Wei. Beit: Bert pre-training of image transformers. arXiv preprint arXiv:2106.08254, 2021.
  4. [Chen and He, 2021] Xinlei Chen and Kaiming He. Explor- ing simple siamese representation learning. In Proceed- ings of the IEEE/CVF conference on computer vision and pattern recognition, pages 15750-15758, 2021.
  5. [Chen et al., 2020] Ting Chen, Simon Kornblith, Moham- mad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. In In- ternational conference on machine learning, pages 1597- 1607. PMLR, 2020.
  6. [Chen et al., 2021] Xinlei Chen, Saining Xie, and Kaiming He. An empirical study of training self-supervised vision transformers. In Proceedings of the IEEE/CVF interna- tional conference on computer vision, pages 9640-9649, 2021.
  7. [Clifford, 2002] G Clifford. Signal processing methods for heart rate variability. PhD thesis, Oxford University, UK, 2002.
  8. [Eldele et al., 2021] Emadeldeen Eldele, Mohamed Ragab, Zhenghua Chen, Min Wu, Chee Keong Kwoh, Xiaoli Li, and Cuntai Guan. Time-series representation learning via temporal and contextual contrasting. arXiv preprint arXiv:2106.14112, 2021. IJCAI
  9. [Gow et al., 2023] Brian Gow, Tom Pollard, Larry A Nathanson, Alistair Johnson, Benjamin Moody, Chrystinne Fernandes, Nathaniel Greenbaum, Seth Berkowitz, Dana Moukheiber, Parastou Eslami, et al. Mimic-iv-ecg-diagnostic electrocardiogram matched subset. Type: dataset, 2023.
  10. [Grill et al., 2020] Jean-Bastien Grill, Florian Strub, Flo- rent Altché, Corentin Tallec, Pierre Richemond, Elena Buchatskaya, Carl Doersch, Bernardo Avila Pires, Zhao- han Guo, Mohammad Gheshlaghi Azar, et al. Bootstrap your own latent-a new approach to self-supervised learn- ing. Advances in neural information processing systems, 33:21271-21284, 2020.
  11. [Hsu et al., 2021] Wei-Ning Hsu, Benjamin Bolte, Yao- Hung Hubert Tsai, Kushal Lakhotia, Ruslan Salakhut- dinov, and Abdelrahman Mohamed. Hubert: Self- supervised speech representation learning by masked pre- diction of hidden units. IEEE/ACM transactions on audio, speech, and language processing, 29:3451-3460, 2021.
  12. [Jin et al., 2025] Jiarui Jin, Haoyu Wang, Hongyan Li, Jun Li, Jiahui Pan, and Shenda Hong. Reading your heart: Learning ecg words and sentences via pre-training ecg lan- guage model. arXiv preprint arXiv:2502.10707, 2025.
  13. [Kenton and Toutanova, 2019a] Jacob Devlin Ming- Wei Chang Kenton and Lee Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for lan- guage understanding. In Proceedings of naacL-HLT, volume 1, page 2. Minneapolis, Minnesota, 2019.
  14. [Kenton and Toutanova, 2019b] Jacob Devlin Ming- Wei Chang Kenton and Lee Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for lan- guage understanding. In Proceedings of naacL-HLT, volume 1, page 2. Minneapolis, Minnesota, 2019.
  15. [Kiyasseh et al., 2021] Dani Kiyasseh, Tingting Zhu, and David A Clifton. Clocs: Contrastive learning of car- diac signals across space, time, and patients. In Inter- national Conference on Machine Learning, pages 5606- 5615. PMLR, 2021.
  16. [Krishnan et al., 2022] Rayan Krishnan, Pranav Rajpurkar, and Eric J Topol. Self-supervised learning in medicine and healthcare. Nature Biomedical Engineering, 6(12):1346- 1352, 2022.
  17. [Kyu et al., 2018] Hmwe Hmwe Kyu, Degu Abate, Kalki- dan Hassen Abate, Solomon M Abay, Cristiana Abbafati, Nooshin Abbasi, Hedayat Abbastabar, Foad Abd-Allah, Jemal Abdela, Ahmed Abdelalim, et al. Global, regional, and national disability-adjusted life-years (dalys) for 359 diseases and injuries and healthy life expectancy (hale) for 195 countries and territories, 1990-2017: a systematic analysis for the global burden of disease study 2017. The Lancet, 392(10159):1859-1922, 2018.
  18. [Lai et al., 2023] Jiewei Lai, Huixin Tan, Jinliang Wang, Lei Ji, Jun Guo, Baoshi Han, Yajun Shi, Qianjin Feng, and Wei Yang. Practical intelligent diagnostic algorithm for wearable 12-lead ecg via self-supervised learning on large- scale dataset. Nature Communications, 14(1):3741, 2023.
  19. [Lan et al., 2022] Xiang Lan, Dianwen Ng, Shenda Hong, and Mengling Feng. Intra-inter subject self-supervised learning for multivariate cardiac signals. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 36, pages 4532-4540, 2022.
  20. [Lan, 2019] Zhenzhong Lan. Albert: A lite bert for self- supervised learning of language representations. arXiv preprint arXiv:1909.11942, 2019.
  21. [Liu et al., 2018] Feifei Liu, Chengyu Liu, Lina Zhao, Xi- angyu Zhang, Xiaoling Wu, Xiaoyan Xu, Yulin Liu, Caiyun Ma, Shoushui Wei, Zhiqiang He, et al. An open access database for evaluating the algorithms of electro- cardiogram rhythm and morphology abnormality detec- tion. Journal of Medical Imaging and Health Informatics, 8(7):1368-1373, 2018.
  22. [Liu et al., 2023] Alexander H Liu, Heng-Jui Chang, Michael Auli, Wei-Ning Hsu, and Jim Glass. Dinosr: Self-distillation and online clustering for self-supervised speech representation learning. Advances in Neural Information Processing Systems, 36:58346-58362, 2023.
  23. [Liu et al., 2024] Che Liu, Zhongwei Wan, Cheng Ouyang, Anand Shah, Wenjia Bai, and Rossella Arcucci. Zero- shot ecg classification with multimodal learning and test- time clinical knowledge enhancement. arXiv preprint arXiv:2403.06659, 2024.
  24. [Liu, 2019] Yinhan Liu. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692, 364, 2019.
  25. [Na et al., 2024] Yeongyeon Na, Minje Park, Yunwon Tae, and Sunghoon Joo. Guiding masked representation learn- ing to capture spatio-temporal relationship of electrocar- diogram. arXiv preprint arXiv:2402.09450, 2024.
  26. [Peng et al., 2022] Zhiliang Peng, Li Dong, Hangbo Bao, Qixiang Ye, and Furu Wei. Beit v2: Masked image model- ing with vector-quantized visual tokenizers. arXiv preprint arXiv:2208.06366, 2022.
  27. [Ramesh et al., 2021] Aditya Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray, Chelsea Voss, Alec Radford, Mark Chen, and Ilya Sutskever. Zero-shot text-to-image generation. In International conference on machine learning, pages 8821-8831. Pmlr, 2021.
  28. [Vaswani, 2017] A Vaswani. Attention is all you need. Ad- vances in Neural Information Processing Systems, 2017.
  29. [Wagner et al., 2020] Patrick Wagner, Nils Strodthoff, Ralf- Dieter Bousseljot, Dieter Kreiseler, Fatima I Lunze, Woj- ciech Samek, and Tobias Schaeffter. Ptb-xl, a large pub- licly available electrocardiography dataset. Scientific data, 7(1):1-15, 2020.
  30. [Wang et al., 2023] Ning Wang, Panpan Feng, Zhaoyang Ge, Yanjie Zhou, Bing Zhou, and Zongmin Wang. Adversar- ial spatiotemporal contrastive learning for electrocardio- gram signals. IEEE Transactions on Neural Networks and Learning Systems, 2023.
  31. [Yang and Hong, 2022] Ling Yang and Shenda Hong. Unsu- pervised time-series representation learning with iterative bilinear temporal-spectral fusion. In International confer- ence on machine learning, pages 25038-25054. PMLR, 2022.
  32. [Yuan et al., 2024] Xiaoyan Yuan, Wei Wang, Xiaohe Li, Yuanting Zhang, Xiping Hu, and M Jamal Deen. Catrans- former: A cycle-aware transformer for high-fidelity ecg generation from ppg. IEEE Journal of Biomedical and Health Informatics, 2024.
  33. [Yuan et al., 2025] Xiaoyan Yuan, Wei Wang, Junxin Chen, Kai Fang, Ali Kashif Bashir, Tapas Mondal, Xiping Hu, and M Jamal Deen. Enhancing multi-label ecg classifica- tion via task-guided lead correlations in internet of medical things. IEEE Internet of Things Journal, 2025.
  34. [Zbontar et al., 2021] Jure Zbontar, Li Jing, Ishan Misra, Yann LeCun, and Stéphane Deny. Barlow twins: Self- supervised learning via redundancy reduction. In Inter- national conference on machine learning, pages 12310- 12320. PMLR, 2021.
  35. [Zhang et al., 2022] Huaicheng Zhang, Wenhan Liu, Jiguang Shi, Sheng Chang, Hao Wang, Jin He, and Qijun Huang. Maefe: Masked autoencoders family of electrocardiogram for self-supervised pretraining and transfer learning. IEEE Transactions on Instrumentation and Measurement, 72:1-15, 2022.
  36. [Zhang et al., 2023] Wenrui Zhang, Ling Yang, Shijia Geng, and Shenda Hong. Self-supervised time series represen- tation learning via cross reconstruction transformer. IEEE Transactions on Neural Networks and Learning Systems, 2023.
  37. [Zheng et al., 2020] Jianwei Zheng, Huimin Chu, Daniele Struppa, Jianming Zhang, Sir Magdi Yacoub, Hesham El-Askary, Anthony Chang, Louis Ehwerhemuepha, Is- lam Abudayyeh, Alexander Barrett, et al. Optimal multi- stage arrhythmia classification approach. Scientific re- ports, 10(1):2898, 2020.
  38. [Zheng et al., 2022] J Zheng, H Guo, and H Chu. A large scale 12-lead electrocardiogram database for arrhythmia study (version 1.0. 0). PhysioNet 2022Available online httpphysionet orgcontentecg arrhythmia10 0accessed on, 23, 2022.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards