Rongjia Wang , Xunde Dong , Xiuling Liu , Yihai Fang , Jianhong Dou , Yupeng Qiang , Yang Yang , Fei Hu
{"title":"TAC-ECG:一种基于跨模态对比学习和低秩卷积适配器的任务自适应心电图分类方法","authors":"Rongjia Wang , Xunde Dong , Xiuling Liu , Yihai Fang , Jianhong Dou , Yupeng Qiang , Yang Yang , Fei Hu","doi":"10.1016/j.cmpb.2025.108918","DOIUrl":null,"url":null,"abstract":"<div><h3>Background and Objective:</h3><div>Cardiovascular diseases are one of the major health threats to humans. Researchers have proposed numerous deep learning-based methods for the automatic analysis of electrocardiogram (ECG), achieving encouraging results. However, many existing methods are limited to task-specific model training and require retraining or full fine-tuning when confronted with a new ECG classification task, thus lacking flexibility in clinical applications.</div></div><div><h3>Methods:</h3><div>In this study, we propose a <strong>T</strong>ask-<strong>A</strong>daptive <strong>C</strong>lassification method for ECG (TAC-ECG) based on cross-modal contrastive learning and low-rank convolutional adapters. TAC-ECG comprises two main phases. In the first phase, inspired by the Contrastive Language-Image Pre-training, we design the <strong>C</strong>ontrastive <strong>E</strong>CG-<strong>T</strong>ext <strong>P</strong>re-training (CETP) to pre-train a robust ECG encoder. In the second phase, the pre-trained ECG encoder is frozen and integrated with a lightweight plug-in, the <strong>L</strong>ow-<strong>R</strong>ank <strong>C</strong>onvolutional Adapter (LRC-Adapter), forming an extensible ECG classification model. The frozen encoder extracts more discriminative features from the ECG signal, while the LRC-Adapter enables task-specific adaptation. For diverse ECG classification tasks, TAC-ECG only requires training the LRC-Adapter. This mechanism enables TAC-ECG to efficiently perform different ECG classification tasks, significantly reducing resource consumption and deployment costs in multi-tasking scenarios compared to traditional fully fine-tuned methods.</div></div><div><h3>Results:</h3><div>We conducted extensive experiments using six different network architectures as ECG encoders. Specifically, we performed ECG classification experiments on four datasets: CPSC2018, Cinc2017, PTB-XL, and Chapman, targeting 9-category, 3-category, 5-category, and 4-category classifications respectively. The TAC-ECG achieved highly competitive results using only approximately 3% of the trainable parameters and approximately 25% of the total parameters compared to the fully fine-tuned method. These results demonstrates the effectiveness and practicality of the TAC-ECG method.</div></div><div><h3>Conclusion:</h3><div>The TAC-ECG offers a flexible and efficient method for ECG classification, enabling rapid adaptation to diverse tasks and enhancing clinical diagnostic practicality.</div></div>","PeriodicalId":10624,"journal":{"name":"Computer methods and programs in biomedicine","volume":"270 ","pages":"Article 108918"},"PeriodicalIF":4.9000,"publicationDate":"2025-07-05","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"TAC-ECG: A task-adaptive classification method for electrocardiogram based on cross-modal contrastive learning and low-rank convolutional adapter\",\"authors\":\"Rongjia Wang , Xunde Dong , Xiuling Liu , Yihai Fang , Jianhong Dou , Yupeng Qiang , Yang Yang , Fei Hu\",\"doi\":\"10.1016/j.cmpb.2025.108918\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><h3>Background and Objective:</h3><div>Cardiovascular diseases are one of the major health threats to humans. Researchers have proposed numerous deep learning-based methods for the automatic analysis of electrocardiogram (ECG), achieving encouraging results. However, many existing methods are limited to task-specific model training and require retraining or full fine-tuning when confronted with a new ECG classification task, thus lacking flexibility in clinical applications.</div></div><div><h3>Methods:</h3><div>In this study, we propose a <strong>T</strong>ask-<strong>A</strong>daptive <strong>C</strong>lassification method for ECG (TAC-ECG) based on cross-modal contrastive learning and low-rank convolutional adapters. TAC-ECG comprises two main phases. In the first phase, inspired by the Contrastive Language-Image Pre-training, we design the <strong>C</strong>ontrastive <strong>E</strong>CG-<strong>T</strong>ext <strong>P</strong>re-training (CETP) to pre-train a robust ECG encoder. In the second phase, the pre-trained ECG encoder is frozen and integrated with a lightweight plug-in, the <strong>L</strong>ow-<strong>R</strong>ank <strong>C</strong>onvolutional Adapter (LRC-Adapter), forming an extensible ECG classification model. The frozen encoder extracts more discriminative features from the ECG signal, while the LRC-Adapter enables task-specific adaptation. For diverse ECG classification tasks, TAC-ECG only requires training the LRC-Adapter. This mechanism enables TAC-ECG to efficiently perform different ECG classification tasks, significantly reducing resource consumption and deployment costs in multi-tasking scenarios compared to traditional fully fine-tuned methods.</div></div><div><h3>Results:</h3><div>We conducted extensive experiments using six different network architectures as ECG encoders. Specifically, we performed ECG classification experiments on four datasets: CPSC2018, Cinc2017, PTB-XL, and Chapman, targeting 9-category, 3-category, 5-category, and 4-category classifications respectively. The TAC-ECG achieved highly competitive results using only approximately 3% of the trainable parameters and approximately 25% of the total parameters compared to the fully fine-tuned method. These results demonstrates the effectiveness and practicality of the TAC-ECG method.</div></div><div><h3>Conclusion:</h3><div>The TAC-ECG offers a flexible and efficient method for ECG classification, enabling rapid adaptation to diverse tasks and enhancing clinical diagnostic practicality.</div></div>\",\"PeriodicalId\":10624,\"journal\":{\"name\":\"Computer methods and programs in biomedicine\",\"volume\":\"270 \",\"pages\":\"Article 108918\"},\"PeriodicalIF\":4.9000,\"publicationDate\":\"2025-07-05\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Computer methods and programs in biomedicine\",\"FirstCategoryId\":\"5\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S0169260725003359\",\"RegionNum\":2,\"RegionCategory\":\"医学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q1\",\"JCRName\":\"COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Computer methods and programs in biomedicine","FirstCategoryId":"5","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0169260725003359","RegionNum":2,"RegionCategory":"医学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS","Score":null,"Total":0}
TAC-ECG: A task-adaptive classification method for electrocardiogram based on cross-modal contrastive learning and low-rank convolutional adapter
Background and Objective:
Cardiovascular diseases are one of the major health threats to humans. Researchers have proposed numerous deep learning-based methods for the automatic analysis of electrocardiogram (ECG), achieving encouraging results. However, many existing methods are limited to task-specific model training and require retraining or full fine-tuning when confronted with a new ECG classification task, thus lacking flexibility in clinical applications.
Methods:
In this study, we propose a Task-Adaptive Classification method for ECG (TAC-ECG) based on cross-modal contrastive learning and low-rank convolutional adapters. TAC-ECG comprises two main phases. In the first phase, inspired by the Contrastive Language-Image Pre-training, we design the Contrastive ECG-Text Pre-training (CETP) to pre-train a robust ECG encoder. In the second phase, the pre-trained ECG encoder is frozen and integrated with a lightweight plug-in, the Low-Rank Convolutional Adapter (LRC-Adapter), forming an extensible ECG classification model. The frozen encoder extracts more discriminative features from the ECG signal, while the LRC-Adapter enables task-specific adaptation. For diverse ECG classification tasks, TAC-ECG only requires training the LRC-Adapter. This mechanism enables TAC-ECG to efficiently perform different ECG classification tasks, significantly reducing resource consumption and deployment costs in multi-tasking scenarios compared to traditional fully fine-tuned methods.
Results:
We conducted extensive experiments using six different network architectures as ECG encoders. Specifically, we performed ECG classification experiments on four datasets: CPSC2018, Cinc2017, PTB-XL, and Chapman, targeting 9-category, 3-category, 5-category, and 4-category classifications respectively. The TAC-ECG achieved highly competitive results using only approximately 3% of the trainable parameters and approximately 25% of the total parameters compared to the fully fine-tuned method. These results demonstrates the effectiveness and practicality of the TAC-ECG method.
Conclusion:
The TAC-ECG offers a flexible and efficient method for ECG classification, enabling rapid adaptation to diverse tasks and enhancing clinical diagnostic practicality.
期刊介绍:
To encourage the development of formal computing methods, and their application in biomedical research and medical practice, by illustration of fundamental principles in biomedical informatics research; to stimulate basic research into application software design; to report the state of research of biomedical information processing projects; to report new computer methodologies applied in biomedical areas; the eventual distribution of demonstrable software to avoid duplication of effort; to provide a forum for discussion and improvement of existing software; to optimize contact between national organizations and regional user groups by promoting an international exchange of information on formal methods, standards and software in biomedicine.
Computer Methods and Programs in Biomedicine covers computing methodology and software systems derived from computing science for implementation in all aspects of biomedical research and medical practice. It is designed to serve: biochemists; biologists; geneticists; immunologists; neuroscientists; pharmacologists; toxicologists; clinicians; epidemiologists; psychiatrists; psychologists; cardiologists; chemists; (radio)physicists; computer scientists; programmers and systems analysts; biomedical, clinical, electrical and other engineers; teachers of medical informatics and users of educational software.