TAC-ECG: A task-adaptive classification method for electrocardiogram based on cross-modal contrastive learning and low-rank convolutional adapter

IF 4.9 2区 医学 Q1 COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS
Rongjia Wang , Xunde Dong , Xiuling Liu , Yihai Fang , Jianhong Dou , Yupeng Qiang , Yang Yang , Fei Hu
{"title":"TAC-ECG: A task-adaptive classification method for electrocardiogram based on cross-modal contrastive learning and low-rank convolutional adapter","authors":"Rongjia Wang ,&nbsp;Xunde Dong ,&nbsp;Xiuling Liu ,&nbsp;Yihai Fang ,&nbsp;Jianhong Dou ,&nbsp;Yupeng Qiang ,&nbsp;Yang Yang ,&nbsp;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}
引用次数: 0

Abstract

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.
TAC-ECG:一种基于跨模态对比学习和低秩卷积适配器的任务自适应心电图分类方法
背景与目的:心血管疾病是危害人类健康的主要疾病之一。研究人员提出了许多基于深度学习的心电图自动分析方法,取得了令人鼓舞的结果。然而,现有的许多方法仅限于特定任务的模型训练,在面对新的心电分类任务时需要重新训练或完全微调,因此在临床应用中缺乏灵活性。方法:在本研究中,我们提出了一种基于跨模态对比学习和低秩卷积适配器的心电任务自适应分类方法(TAC-ECG)。TAC-ECG包括两个主要阶段。在第一阶段,受对比语言-图像预训练的启发,我们设计了对比ECG-文本预训练(CETP)来预训练一个鲁棒的心电编码器。在第二阶段,将预先训练好的心电编码器冻结并与轻量级插件低秩卷积适配器(LRC-Adapter)集成,形成可扩展的心电分类模型。冷冻编码器从心电信号中提取更多的判别特征,而LRC-Adapter则实现特定任务的自适应。对于不同的心电分类任务,TAC-ECG只需要训练LRC-Adapter。该机制使TAC-ECG能够高效地执行不同的心电分类任务,与传统的全微调方法相比,显著降低了多任务场景下的资源消耗和部署成本。结果:我们使用六种不同的网络架构作为心电编码器进行了广泛的实验。具体而言,我们在CPSC2018、Cinc2017、pdb - xl和Chapman四个数据集上进行了ECG分类实验,分别针对9类、3类、5类和4类进行分类。与完全微调方法相比,TAC-ECG仅使用约3%的可训练参数和约25%的总参数获得了极具竞争力的结果。这些结果证明了TAC-ECG方法的有效性和实用性。结论:TAC-ECG为心电分类提供了一种灵活高效的方法,可快速适应多种任务,提高临床诊断的实用性。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Computer methods and programs in biomedicine
Computer methods and programs in biomedicine 工程技术-工程:生物医学
CiteScore
12.30
自引率
6.60%
发文量
601
审稿时长
135 days
期刊介绍: 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.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信