Proceedings

Semantics-Guided Representation Learning for Long-Tailed ECG Classification

Download BibTeX Cite

Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence. Main Track. Pages 5504-5512.

https://doi.org/10.24963/ijcai.2026/613

Abstract

Deep learning has achieved remarkable success in automated electrocardiogram (ECG) diagnosis. However, the long-tailed distribution of real-world ECG data remains a critical challenge. Existing methods mainly operate at the signal feature level and fail to exploit semantic relationships among diagnostic labels, which limits their ability to effectively recognize rare categories. To address this issue, we propose a Semantics-Guided Representation Learning (SGRL) framework, designed to leverage semantic priors to guide feature learning and thereby correct feature bias under long-tailed distributions. Specifically, we propose a Label Semantic Prompt Adaptation (LSPA) strategy, which introduces ECG-calibrated learnable parameters into label prompts to generate adaptive label semantic embeddings under a semantic-consistency constraint, thereby overcoming the limitations of coarse-grained label prompts in characterizing fine-grained intra-class morphological variations. Subsequently, we propose Semantic-Guided Representation Decorrelation (SGRD) that fuses ECG embeddings with adaptive label semantics and suppresses inter-class semantic correlations to obtain discriminative class semantic anchors, thereby improving tail-class separability. Extensive experiments on multiple public datasets demonstrate the significant superiority of SGRL in long-tailed ECG classification tasks. Our code is available on https://github.com/gfywudi/SGRL.

  1. SPH, NE=0.5645 PhysioNet 2020, NE=0.8176 AUC(Var) F1(Var) Acc(Var) Tail-AUC(Var) AUC(Var) F1(Var) Acc(Var) Tail-AUC(Var) AUC(Var) F1(Var) Acc(Var) Tail-AUC(Var) AGSX [Kalmady et al., 2024] 87.66(0.03) 26.57(0.08) 46.43(0.14) 86.49(0.17) 90.66(0.19) 34.28(0.44) 65.48(0.34) 89.03(0.26) 95.37(0.18) 81.28(0.32) 61.52(0.50) 95.11(0.12) autoformer [Wu et al., 2021] 86.20(0.36) 28.25(0.29) 43.15(0.32) 84.42(0.13) 90.76(0.11) 31.54(0.14) 58.65(0.29) 89.88(0.18) 88.27(0.13) 42.10(0.39) 21.81(0.21) 87.53(0.11) MSDNN [Lai et al., 2023] 88.41(0.09) 28.83(0.33) 46.63(0.32) 83.46(0.26) 92.01(0.33) 34.81(0.26) 65.38(0.45) 90.05(0.47) 94.00(0.29) 60.65(0.28) 35.49(0.25) 94.65(0.10) EffNet [Holmstrom et al., 2024] 80.02(0.63) 14.77(0.87) 42.83(0.95) 79.63(0.48) 78.30(0.47) 10.81(0.69) 45.40(0.54) 78.82(0.32) 90.98(0.28) 73.96(0.57) 56.38(0.76) 92.25(0.22) Densenet [Xiong et al., 2021] 88.34(0.23) 30.07(0.42) 49.37(0.39) 87.23(0.18) 86.14(0.15) 23.60(0.42) 58.60(0.49) 84.89(0.19) 94.35(0.09) 63.92(0.27) 41.10(0.35) 94.61(0.12)
  2. ML-ResNet [Han and Shi, 2020] 86.75(0.14) 23.12(0.32) 44.65(0.24) 85.54(0.09 ) 89.29(0.11) 27.72(0.42) 59.51(0.39) 89.13(0.13) 92.61(0.11) 61.39(0.32) 28.91(0.48) 94.36(0.13)
  3. MLC-CNN [Ge et al., 2021] 81.33(0.23) 19.54(0.43) 41.43(0.44) 79.80(0.10) 88.00(0.17) 23.94(0.27) 49.94(0.25) 88.00(0.11) 67.78(0.46) 24.33(0.39) 12.35(0.29) 63.61(0.17) PatchTST [Nie et al., 2023] 85.30(0.47) 25.83(0.93) 47.94(0.74) 84.09(0.39) 84.79(0.63) 23.74(1.12) 45.69(1.20) 84.50(0.75) 93.82(0.27) 81.16(0.32) 57.46(0.48) 94.60(0.45) ECGFounder [Li et al., 2025] 88.05(0.11) 30.20(0.24) 46.74(0.23) 86.68(0.04) 85.45(0.13) 22.42(0.24) 46.39(0.07) 85.45(0.24) 95.39(0.32) 75.68(0.43) 54.06(0.48) 95.45(0.12) ASL [Ridnik et al., 2021] 87.94(0.07) 28.84(0.19) 48.53(0.23) 86.65(0.11) 87.73(0.21) 29.02(0.52) 48.27(0.68) 86.78(0.29) 94.70(0.31) 81.02(0.85) 62.33(0.52) 95.07(0.21)
  4. Time-LLM [Jin et al., 2024] 85.61(0.20) 26.35(0.42) 43.27(0.49) 85.26(0.24) 83.96(0.12) 21.80(0.32) 44.79(0.37) 82.11(0.21) 93.96(0.15) 81.39(0.34) 62.40(0.49) 94.78(0.21) DeepSMOTE [Dablain et al., 2022] 86.48(0.19) 30.74(0.23) 44.28(0.24) 86.33(0.13) 87.32(0.12) 28.37(0.31) 54.27(0.34) 86.84(0.13) 94.94(0.12) 80.36(0.22) 60.28(0.20) 95.05(0.04)
  5. ADYSN [Sharma and Sunkaria, 2020] 86.83(0.08) 30.38(0.12) 46.68(0.11) 86.61(0.02) 87.19(0.04) 28.72(0.13) 55.72(0.21) 88.43(0.21) 95.06(0.03) 80.51(0.11) 62.10(0.09) 94.91(0.05) ECGAD [Jiang et al., 2024] 87.32(0.15) 31.39(0.12) 47.28(0.24) 87.37(0.40) 91.91(0.13) 34.98(0.41) 63.32(0.42) 90.26(0.20) 95.63(0.12) 81.04(0.43) 62.27(0.41) 95.59(0.14) SGRL (ours) 91.54(0.10)* 38.27(0.24)* 50.03(0.25)* 90.72(0.13)* 95.53(0.06)* 44.84(0.13)* 66.92(0.17)* 95.32(0.09)* 96.30(0.10)* 81.47(0.23) 62.45(0.31) 96.19(0.12*
  6. NE stands for Normalized Entropy, with lower values indicating a higher degree of dataset imbalance. Bold denotes the optimal results and underline represents the second highest. * denotes a significant improvement is found in the T-test experiment at a significance level of 0.05 compared to all baselines.
  7. [Alday et al., 2020] Erick A Perez Alday, Annie Gu, Amit J Shah, Chad Robichaux, An-Kwok Ian Wong, Chengyu Liu, Feifei Liu, Ali Bahrami Rad, Andoni Elola, Salman Seyedi, et al. Classification of 12-lead ecgs: the phys- ionet/computing in cardiology challenge 2020. Physiolog- ical measurement, 41(12):124003, 2020.
  8. [Ansari et al., 2017] Sardar Ansari, Negar Farzaneh, Mar- lena Duda, Kelsey Horan, Hedvig Bille Andersson, Zachary D Goldberger, Brahmajee. K. Nallamothu, and Kayvan Najarian. A review of automated methods for de- tection of myocardial ischemia and infarction using elec- trocardiogram and electronic health records. IEEE Re- views in Biomedical Engineering, 10:264-298, 2017.
  9. [Chen et al., 2024] Yuanyuan Chen, Xiaoqing Guo, Yong Xia, and Yixuan Yuan. Disentangle then calibrate with gradient guidance: A unified framework for common and rare disease diagnosis. IEEE Transactions on Medical Imaging, 43(5):1816-1827, 2024.
  10. [Chen et al., 2025] Qianjiang Chen, Cheng Lian, Bingrong Xu, Quan Zhou, Yixin Su, and Zhigang Zeng. Large language model-assisted multi-scale hierarchical classi- fication of ecg signals. Knowledge-Based Systems, 324:113807, 2025.
  11. [Dablain et al., 2022] Damien Dablain, Bartosz Krawczyk, and Nitesh V Chawla. Deepsmote: Fusing deep learn- ing and smote for imbalanced data. IEEE transactions on neural networks and learning systems, 34(9):6390-6404, 2022.
  12. [El-Ghaish and Eldele, 2024] Hany El-Ghaish and Emadeldeen Eldele. Ecgtransform: Empowering adaptive ecg arrhythmia classification framework with bidirectional transformer. Biomedical Signal Processing and Control, 89:105714, 2024.
  13. [Ge et al., 2021] Zhaoyang Ge, Xiaoheng Jiang, Zhuang Tong, Panpan Feng, Bing Zhou, Mingliang Xu, Zong- min Wang, and Yanwei Pang. Multi-label correlation guided feature fusion network for abnormal ecg diagnosis. Knowledge-Based Systems, 233:107508, 2021.
  14. [Gow et al., 2023] Brian Gow, Tom Pollard, Larry A Nathanson, Alistair Johnson, Benjamin Moody, Chrystinne Fernandes, Nathaniel Greenbaum, Jonathan W Waks, Parastou Eslami, Tanner Carbonati, Ashish Chaud- hari, Elizabeth Herbst, Dana Moukheiber, Seth Berkowitz, Roger Mark, and Steven Horng. MIMIC-IV-ECG: Diag- nostic Electrocardiogram Matched Subset. Type: dataset, 2023.
  15. [Hammad et al., 2022] Mohamed Hammad, Monagi H Alk- inani, Brij B Gupta, and Ahmed A Abd El-Latif. Myocar- dial infarction detection based on deep neural network on imbalanced data. Multimedia Systems, 28(4):1373-1385, 2022.
  16. [Han and Shi, 2020] Chuang Han and Li Shi. Ml-resnet: A novel network to detect and locate myocardial infarction using 12 leads ecg. Computer methods and programs in biomedicine, 185:105138, 2020.
  17. [He et al., 2016] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recog- nition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770-778, 2016.
  18. [Holmstrom et al., 2024] Lauri Holmstrom, Harpriya Chugh, Kotoka Nakamura, Ziana Bhanji, Madison Seifer, Audrey Uy-Evanado, Kyndaron Reinier, David Ouyang, and Sumeet S Chugh. An ecg-based artificial intelligence model for assessment of sudden cardiac death risk. Communications Medicine, 4(1):17, 2024.
  19. [Jahmunah et al., 2023] V Jahmunah, Eddie Yin Kwee Ng, Ru-San Tan, Shu Lih Oh, and U Rajendra Acharya. Uncer- tainty quantification in densenet model using myocardial infarction ecg signals. Computer Methods and Programs in Biomedicine, 229:107308, 2023.
  20. [Jiang et al., 2024] Aofan Jiang, Chaoqin Huang, Qing Cao, Yuchen Xu, Zi Zeng, Kang Chen, Ya Zhang, and Yan- feng Wang. Self-supervised anomaly detection pretrain- ing enhances long-tail ecg diagnosis. arXiv preprint arXiv:2408.17154, 2024.
  21. [Jin et al., 2024] Ming Jin, Shiyu Wang, Lintao Ma, Zhixuan Chu, James Zhang, Xiaoming Shi, Pin-Yu Chen, Yuxuan Liang, Yuan-fang Li, Shirui Pan, et al. Time-llm: Time se- ries forecasting by reprogramming large language models. In International Conference on Learning Representations, pages 1-24, 2024.
  22. [Kalmady et al., 2024] Sunil Vasu Kalmady, Amir Salimi, Weijie Sun, Nariman Sepehrvand, Yousef Nademi, Kevin Bainey, Justin Ezekowitz, Abram Hindle, Finlay McAlis- ter, Russel Greiner, et al. Development and validation of machine learning algorithms based on electrocardiograms for cardiovascular diagnoses at the population level. npj Digital Medicine, 7(1):133, 2024.
  23. [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.
  24. [Li et al., 2022] Wenqiang Li, Yuk Ming Tang, Kai Ming Yu, and Suet To. Slc-gan: An automated myocardial infarction detection model based on generative adversarial networks and convolutional neural networks with single-lead elec- trocardiogram synthesis. Information Sciences, 589:738- 750, 2022.
  25. [Li et al., 2025] Jun Li, Aaron D Aguirre, Valdery Moura Ju- nior, Jiarui Jin, Che Liu, Lanhai Zhong, Chenxi Sun, Gari Clifford, M Brandon Westover, and Shenda Hong. An electrocardiogram foundation model built on over 10 mil- lion recordings. NEJM AI, 2(7), 2025.
  26. [Liu et al., 2022] Hui Liu, Dan Chen, Da Chen, Xiyu Zhang, Huijie Li, Lipan Bian, Minglei Shu, and Yinglong Wang. A large-scale multi-label 12-lead electrocardio- gram database with standardized diagnostic statements. Scientific data, 9(1):272, 2022.
  27. [Liu et al., 2024] Che Liu, Zhongwei Wan, Ouyang Cheng, Anand Shah, Wenjia Bai, and Rossella Arcucci. Zero-shot ecg classification with multimodal learning and test-time clinical knowledge enhancement. In International Confer- ence on Machine Learning, pages 1-13, 2024.
  28. [Nie et al., 2023] Yuqi Nie, Nam H. Nguyen, Phanwadee Sinthong, and Jayant Kalagnanam. A time series is worth 64words: Long-term forecasting with transformers. In International Conference on Learning Representations, pages 1-24, 2023.
  29. [Radford et al., 2021] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agar- wal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from nat- ural language supervision. In International conference on machine learning, pages 8748-8763, 2021.
  30. [Ridnik et al., 2021] Tal Ridnik, Emanuel Ben-Baruch, Na- dav Zamir, Asaf Noy, Itamar Friedman, Matan Protter, and Lihi Zelnik-Manor. Asymmetric loss for multi-label clas- sification. In Proceedings of the IEEE/CVF international conference on computer vision, pages 82-91, 2021.
  31. [Romdhane and Pr, 2020] Taissir Fekih Romdhane and Mo- hamed Atri Pr. Electrocardiogram heartbeat classification based on a deep convolutional neural network and focal loss. Computers in Biology and Medicine, 123:103866, 2020.
  32. [Salloum and Kuo, 2017] Ronald Salloum and C-C Jay Kuo. Ecg-based biometrics using recurrent neural networks. In IEEE International Conference on Acoustics, Speech and Signal Processing, pages 2062-2066, 2017.
  33. [Seki et al., 2025] Tomohisa Seki, Yoshimasa Kawazoe, Hi- romasa Ito, Yu Akagi, Toru Takiguchi, and Kazuhiko Ohe. Assessing the performance of zero-shot visual question answering in multimodal large language models for 12- lead ecg image interpretation. Frontiers in cardiovascular medicine, 12:1458289, 2025.
  34. [Selvaraju et al., 2017] Ramprasaath R Selvaraju, Michael Cogswell, Abhishek Das, Ramakrishna Vedantam, Devi Parikh, and Dhruv Batra. Grad-cam: Visual explanations from deep networks via gradient-based localization. In Proceedings of the IEEE international conference on com- puter vision, pages 618-626, 2017.
  35. [Sharma and Sunkaria, 2020] LD Sharma and RK Sunkaria. Myocardial infarction detection and localization using optimal features based lead specific approach. Irbm, 41(1):58-70, 2020.
  36. [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.
  37. [Wang et al., 2020] Ruxin Wang, Jianping Fan, and Ye Li. Deep multi-scale fusion neural network for multi-class ar- rhythmia detection. IEEE journal of biomedical and health informatics, 24(9):2461-2472, 2020.
  38. [Wu et al., 2021] Haixu Wu, Jiehui Xu, Jianmin Wang, and Mingsheng Long. Autoformer: Decomposition transform- ers with auto-correlation for long-term series forecast- ing. Advances in neural information processing systems, 34:22419-22430, 2021.
  39. [Xia et al., 2023] Yi Xia, Yangyang Xu, Peng Chen, Jun Zhang, and Yongliang Zhang. Generative adversarial net- work with transformer generator for boosting ecg clas- sification. Biomedical Signal Processing and Control, 80:104276, 2023.
  40. [Xiong et al., 2021] Peng Xiong, Yanping Xue, Jieshuo Zhang, Ming Liu, Haiman Du, Hong Zhang, Zeng- guang Hou, Hongrui Wang, and Xiuling Liu. Lo- calization of myocardial infarction with multi-lead ecg based on densenet. Computer Methods and Programs in Biomedicine, 203:106024, 2021.
  41. [Ye et al., 2025] Jiexia Ye, Weiqi Zhang, Ziyue Li, Jia Li, Meng Zhao, and Fugee Tsung. Medualtime: A dual- adapter language model for medical time series-text multi- modal learning. In Proceedings of the Thirty-Fourth Inter- national Joint Conference on Artificial Intelligence, pages 7913-7921, 2025.

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

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