Computer Science ›› 2025, Vol. 52 ›› Issue (6A): 240900073-8.doi: 10.11896/jsjkx.240900073

• Intelligent Medical Engineering • Previous Articles     Next Articles

Research on Electrocardiogram Classification and Recognition Algorithm Based on Transfer Learning

CHEN Qirui1, WANG Baohui1, DAI Chencheng2   

  1. 1 College of Software,Beihang University,Beijing 100191,China
    2 Beijing Anzhen Hospital,Capital Medical University,Beijing 100013,China
  • Online:2025-06-16 Published:2025-06-12
  • About author:DAI Chencheng,born in 1979,Ph.D,Chief Physician,children’s arrhythmia,Beijing anzhen hospital affiliated to ca-pital medical university.

Abstract: As the pace of urban life continues to accelerate,more and more people are troubled by cardiovascular diseases.Electrocardiogram is a key means of diagnosing heart disease,but in the faced of the growing number of patients,limited medical resources cannot meet the huge demand for electrocardiogram interpretation.Therefore,how to use computers to automatically classify and identify electrocardiograms has become an urgent need.This study is based on the clinical data set provided by Anzhen hospital.According to statistics,there are problems in the data set such as small total data,uneven data distribution,and some data are not labeled.Based on this,this paper uses a semi-supervised learning method to label the unlabeled data,and the algorithm labeling accuracy reaches 91.4%.Secondly,this paper uses transfer learning to train the model.The MMD value of the source data set and the target data set used in this paper is 1.99,and the distribution of the two has a high similarity.Compared with other training methods,this algorithm can achieve better learning results on data sets with a small total amount of data and uneven data distribution; on the actual outpatient data set,our method makes model’s accuracy reach 0.973,recall rate reaches 0.866,and F1 value reaches 0.932.Compared with not using transfer learning,accuracy is improved by 0.423,recall rate is improved by 0.274,and F1 value is improved by 0.384.This results show that the algorithm has good generalization ability and adaptability,and can provide strong support for clinical practice.

Key words: ECG, Transfer learning, Semi-supervised learning

CLC Number: 

  • TP312
[1]HANNUNA Y,RAJPURKAR P,HAGHPANAHI M, et al.Cardiologist-level arrhythmia detection and classification in ambulatory electrocardiograms using a deep neural network[J/OL].Nat Med,2019,25:65-69.https://doi.org/10.1038/s41591-018-0268-3.
[2]IVORA A,VISCOR I,NEJEDLY P.et al.QRS detection and classification in Holter ECG data in one inference step[J].Sci Rep,2022,12,12641.
[3]JIANG M M,YU B,ZHANG S,et al.Electrocardiogram Ana-lysis Based on Multiscale Fast Sample Entropy and Random Forest[J].Progress in Modern Biomedicine,2018,8(18):3453-3458.
[4]ZHOU J.Research on ECG abnormality diagnosis based on deep transfer learning[D].Qilu University of Technology.
[5]WANG X,ZHU E Z,AI Z S.Principle of convolutional neural network and its applications in medical imaging diagnosis[J].Chinese Journal of Medical Physics,2022,39(12):1485-1489.
[6]LIMA E M,RIBEIRO A H,PAIXÃO G M M,et al.Deep neural network-estimated electrocardiographic age as a mortality predictor[J].Nat Commun,2021,12(1):5117.
[7]WEIMANN K,CONRAD T O F.Transfer learning for ECGclassification[J].Sci Rep,2021,11,5251.
[8]HE K,ZHANG X,REN S,et al.Deep Residual Learning for Image Recognition[C]//2016 IEEE Conference on Computer Vision and Pattern Recognition(CVPR).Las Vegas,NV,USA,2016:770-778.
[9]SALEEM S,KHANDOKER A H,ALKHODARI M,et al.Atwo-step pre-processing tool to remove Gaussian and ectopic noise for heart rate variability analysis[J].Sci Rep,2022,12,18396.
[10]LI J,PANG S P,XU F.et al.Two-dimensional ECG-based cardiac arrhythmia classification using DSE-ResNet[J].Sci Rep,2022,12,14485.
[11]EONG D U,LIM K M.Combined deep CNN-LSTM network-based multitasking learning architecture for noninvasive continuous blood pressure estimation using difference in ECG-PPG features[J].Sci Rep,2021,11,13539.
[12]RIBEIRO A H,RIBEIRO M H,PAIXÃO G M M,et al.Automatic diagnosis of the 12-lead ECG using a deep neural network[J].Nat Commun,2020,11,1760.
[13]ALARSAN F I,YOUNES M.Analysis and classification ofheart diseases using heartbeat features and machine learning algorithms[J].J Big Data,2019,6:81.
[14]XU J Q,YUAN Z D,LI G P,et al.12-lead electrocardiogram feature extraction method based on wavelet transform [J]. Journal of East China Normal University (Natural Science Edition),2005(2):27-32.
[15]ZHAO C M,MA X H.Electrocardiogram classification based on non-negative matrix decomposition and support vector machine [J].Computer Engineering,2012,38(9):174-176.
[16]JIANG M M,YU B,ZHANG S,et al.Electrocardiogram analysis based on multi-scale fast sample entropy and random forest [J].Progress in Modern Biomedicine,2018,18(18):3453-3458.
[17]CHENG Z Y,ZHANG B L,CAI Y C,et al.Research on prediction and feature analysis of heart disease by integrating random forest and SHAP[J].Intelligent Computers and Applications,2023,13(11):172-179.
[18]LIU Y Q,SONG Y,LI Z M,et al.ECG signal analysis and detection system based on deep learning[J].Journal of Jilin University(Information Science Edition),2023,41(6):1135-1142.
[19]GAO X R,CAO J D,ZHANG J R.An ECG classification method based on deep learning[J].Journal of Nantong University(Natural Science Edition),2023,22(3):17-25.
[20]WEISS K,KHOSHGOFTAAR T M,WANG D D.A survey of transfer learning[J].Journal of Big Data,2016,3(1):1-40.
[21]SU H X,XU X L.Application analysis of deep learning in electrocardiogram classification[J].Biomedical Engineering Research,2020,39(4):419-424.
[22]WANG X,ZHU E Z,AI Z S.Principles of convolutional neural networks and their applications in medical imaging diagnosis [J].Chinese Journal of Medical Physics,2022,39(12):1485-1489.
[23]WANG D H.Multivariate statistical analysis and SPSS application(2nd edition)[M].Shanghai:East China University of Science and Technology Press.2018.02.9G10.
[24]ARTHUR G,KARSTEN M B,MALTE R,et al.A kernelmethod for the two-sample-problem[C]//Proceedings of the Advances in Neural Information Processing Systems.2007:513-520.
[25]余圣波.基于样本差异的多标签迁移学习[D].重庆大学,2016.
[26]CHAPELLE O,SCHOLKOPF B, ZIEN A,et al.Semi-Super-vised Learning[C]//IEEE Transactions on Neural Networks.2009:542-542.
[27]WAGSTAFF K,CARDIE C,ROGERS S,et al.Constrained K-means Clustering with Background Knowledge[C]//Proceedings of the Eighteenth International Conference on Machine Learning.2001:577-584.
[28]FAZAKIS N,KARLOS S,KOTSIANTIS S,et al.A Multi-scheme Semi-supervised Regression Approach[J].Pattern Recognition Letters,2019,125:758-765.
[29]KOSTOPOULOS G,KARLOS S,KOTSIANTIS S,et al.Semi-supervised Regression:A Recent Review[J].Journal of Intelligent & Fuzzy Systems,2018,35(2):1483-1500.
[30]TRIGUERO I,SAEZ J A,LUENGO J,et al.On the Characterization of Noise Filters for Self-training Semi-supervised in Nearest Neighbor Classification[J].Neurocomputing,2014,132:30-41.
[31]SEOK K.Semi-supervised Regression Based on Support Vector Machine[J].Journal of the Korean Data and Information Science Society,2014,25(2):447-454.
[32]OQUAB M,BOTTOU L,LAPTEV I,et al.Learning and transferring mid-level image representations using convolutional neural networks[C]//Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition.2014.
[33]LIU H,WANG Y L,CHEN D,et al.A large-scale multi-label 12-lead electrocardiogram database with standardized diagnostic statements.figshare.Collection[J].https://doi.org/10.6084/m9.figshare.c.5779802.v1,2022.
[34]CLIFFORDG D,LIU C Y,MOOD Y B,et al.Af classificationfrom a short single lead ecg recording[J].The Physionet Computing in Cardiology Challenge,2017.
[35]ZHANG D Y,GENG S J,ZHOU Y,et al.Artificial Intelligence System for Detection and Screening of Cardiac Abnormalities using Electrocardiogram Images[J].arXiv:2302.10301,2023.
[1] HUANG Bocheng, WANG Xiaolong, AN Guocheng, ZHANG Tao. Transmission Line Fault Identification Method Based on Transfer Learning and Improved YOLOv8s [J]. Computer Science, 2025, 52(6A): 240800044-8.
[2] LI Mingjie, HU Yi, YI Zhengming. Flame Image Enhancement with Few Samples Based on Style Weight Modulation Technique [J]. Computer Science, 2025, 52(6A): 240500129-7.
[3] DU Yuanhua, CHEN Pan, ZHOU Nan, SHI Kaibo, CHEN Eryang, ZHANG Yuanpeng. Correntropy Based Multi-view Low-rank Matrix Factorization and Constraint Graph Learning for Multi-view Data Clustering [J]. Computer Science, 2025, 52(6A): 240900131-10.
[4] BAO Shenghong, YAO Youjian, LI Xiaoya, CHEN Wen. Integrated PU Learning Method PUEVD and Its Application in Software Source CodeVulnerability Detection [J]. Computer Science, 2025, 52(6A): 241100144-9.
[5] WANG Xiao, LI Guanxiong, LI Na, YUAN Dongfeng. Semi-supervised Learning Flow Field Prediction Method Based on Gaussian Mixture Discrimination [J]. Computer Science, 2025, 52(6): 88-95.
[6] GONG Zian, GU Zhenghui, CHEN Di. Cross-subject Driver Fatigue Detection Based on Local and Global Feature Integrated Network [J]. Computer Science, 2025, 52(6): 200-210.
[7] WANG Haiyong, DING Gufei. ECG Signal Denoising Method Based on Stationary Wavelet Transform with Hyperbolic TangentThreshold Function [J]. Computer Science, 2025, 52(5): 179-186.
[8] WU You, WANG Jing, LI Peipei, HU Xuegang. Semi-supervised Partial Multi-label Feature Selection [J]. Computer Science, 2025, 52(4): 161-168.
[9] TIAN Qing, KANG Lulu, ZHOU Liangyu. Class-incremental Source-free Domain Adaptation Based on Multi-prototype Replay andAlignment [J]. Computer Science, 2025, 52(3): 206-213.
[10] SHEN Yaxin, GAO Lijian , MAO Qirong. Semi-supervised Sound Event Detection Based on Meta Learning [J]. Computer Science, 2025, 52(3): 222-230.
[11] ZHANG Yusong, XU Shuai, YAN Xingyu, GUAN Donghai, XU Jianqiu. Survey on Cross-city Human Mobility Prediction [J]. Computer Science, 2025, 52(1): 102-119.
[12] TIAN Qing, LU Zhanghu, YANG Hong. Unsupervised Domain Adaptation Based on Entropy Filtering and Class Centroid Optimization [J]. Computer Science, 2024, 51(7): 345-353.
[13] CAO Yan, ZHU Zhenfeng. DRSTN:Deep Residual Soft Thresholding Network [J]. Computer Science, 2024, 51(6A): 230400112-7.
[14] ZHANG Xinrui, YANG Jian, WANG Zhan. Thai Speech Synthesis Based on Cross-language Transfer Learning and Joint Training [J]. Computer Science, 2024, 51(6A): 230500174-7.
[15] TANG Xin, DI Nongyu, YANG Hao, LIU Xin. Optimum Proposal to secGear Based on Skiplist [J]. Computer Science, 2024, 51(6A): 230700030-5.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!