|
基于孪生网络的心电信号智能诊断模型
|
Abstract:
在构建医学心电信号分类模型时,现有数据库中正样本和负样本存在类别不平衡的问题,即正常心电数据往往多于异常心电数据,从而导致所构建的模型会产生一定的偏差,影响模型最终的分类结果。利用现有12导联心电诊断数据集构建心电信号分类模型,结合对比学习的方法,在传统网络基础上利用孪生网络结构对模型进行预训练,每条心电信号分别与其对应的正例和反例进行匹配得到样本对,并将孪生网络提取的判别特征用于下游任务进行分类。实验表明,基于对比学习预训练范式能够更好地提取心电信号特征,对于克服心电数据不平衡问题有显著效果,该方法可有效地利用了大量正样本,因此基于孪生网络结构的预训练模型所提取的特征判别性能优于传统特征提取模型。测试集上的准确率达到了96.55%,假阳性率6.91%,漏诊率仅2%。
In the field of medical ECG signal classification, the issue of class imbalance arises when the existing database contains a higher number of normal ECG data compared to abnormal ECG data. This imbalance can lead to biased models and affect the classification results. To address this problem, we propose a method combining contrastive learning with a siamese network structure to pretrain a model for ECG signal classification. In this study, we utilized a dataset of 12-lead ECG diagnostic data to construct our model. The siamese network structure was employed to pretrain the model, where each ECG signal was matched with its corresponding positive and negative samples to form pairs. The discriminative features extracted by the siamese network were then utilized for downstream classification tasks. Experimental results demonstrate that the pretraining paradigm based on contrastive learning effectively extracts discriminative features from ECG signals and significantly overcomes the issue of data imbalance. This method successfully utilizes a large number of positive samples, resulting in superior discriminative performance of the feature extraction model compared to traditional methods. The accuracy of the test set reached 96.55%, with a false positive rate of 6.91% and a false negative rate of only 2%. Overall, our study demonstrates that utilizing a sia-mese network structure for pretraining, combined with contrastive learning, improves the feature extraction process for ECG signal classification. This approach effectively addresses the issue of data imbalance, resulting in highly accurate classification results.
[1] | Bensaid, A.M., Bouhouch, N., Bouhouch, R., Fellat, R. and Amri, R. (1998) Classification of ECG Patterns Using Fuzzy Rules Derived from ID3-Induced Decision Trees. 1998 Conference of the North American Fuzzy Information Processing Society-NAFIPS (Cat. No. 98TH8353), Pensacola Beach, 20-21 August 1998, 34-38.
https://doi.org/10.1109/NAFIPS.1998.715524 |
[2] | Li, T. and Zhou, M. (2016) ECG Classification Using Wavelet Packet Entropy and Random Forests. Entropy, 18, Article No. 285. https://doi.org/10.3390/e18080285 |
[3] | 方红帏, 赵涛, 佃松宜. 基于三域特征提取和GS-SVM的ECG信号智能分类技术研究[J]. 四川大学学报(自然科学版), 2020, 57(2): 297-303. |
[4] | 许诗雨, 莫思特, 闫惠君, 黄华, 吴锦晖, 张绍敏, 杨林. 基于焦点损失函数的嵌套长短时记忆网络心电信号分类研究. 生物医学工程学杂志, 2022, 39(2): 301-310. |
[5] | 杨春德, 贾竹, 李欣蔚. 基于U-Net++的心电信号识别分类研究[J]. 计算机科学, 2021, 48(10): 121-126. |
[6] | 张坤, 李鑫, 谢学建, 等. 基于深度学习的心律失常检测算法研究[J]. 医疗卫生装备, 2018, 39(12): 6-9, 31. |
[7] | Singh, S., Pandey, S.K., Pawar, U. and Janghel, R.R. (2018) Classification of ECG Arrhythmia Using Recurrent Neural Networks. Procedia Computer Science, 132, 1290-1297. https://doi.org/10.1016/j.procs.2018.05.045 |
[8] | Che, C., Zhang, P., Zhu, M. and Jin, B. (2021) Constrained Transformer Network for ECG Signal Processing and Arrhythmia Classification. BMC Medical Informatics and Decision Making, 21, Article No. 184.
https://doi.org/10.1186/s12911-021-01546-2 |
[9] | Biel, L., Pettersson, O., Philipson, L. and Wide, P. (2001) ECG Analysis: A New Approach in Human Identification. IEEE Transactions on Instrumentation and Measurement, 50, 808-812. https://doi.org/10.1109/19.930458 |
[10] | Liu. X., Wang. H., Li. Z. and Qin, L. (2021) Deep Learning in ECG Diagnosis: A Review. Knowledge-Based Systems, 227, Article ID: 107187. https://doi.org/10.1016/j.knosys.2021.107187 |
[11] | Wagner, P., Strodthoff, N., Bousseljot, R., Samek, W. and Schaeffter, T. (2022). PTB-XL, a Large Publicly Available Electrocardiography Dataset (Version 1.0.2). Physio-Net. |
[12] | Rubel, P., Pani, D., Schloegl, A., et al. (2016) SCP-ECG V3.0: An Enhanced Standard Communication Pro-tocol for Computer-Assisted Electrocardiography. Computing in Cardiology 2016, 43, 309-312.
https://doi.org/10.22489/CinC.2016.090-500 |
[13] | Bromley, J., Bentz, J.W., Guyon, I., et al. (1994) Signature Veri-fication Using a “Siamese” Time Delay Neural Network. In: Guyon, I. and Wang, P.S.P., Eds., Advances in Pattern Recognition Systems Using Neural Network Technologies, Series in Machine Perception and Artificial Intelligence: Vol-ume 7, World Scientific, Singapore, 25-44.
https://doi.org/10.1142/9789812797926_0003 |
[14] | Pei, W., Tax, D.M. and van der Maaten, L. (2016) Modeling Time Series Similarity with Siamese Recurrent Networks. ArXiv Preprint ArXiv: 1603.04713. |
[15] | Hou, L., Jin, X. and Zhao, Z. (2019) Time Series Similarity Measure via Siamese Convolutional Neural Network. 2019 12th International Congress on Image and Signal Processing, BioMedical Engineering and Informatics (CISP-BMEI), Suzhou, 19-21 Oc-tober 2019, 1-6. https://doi.org/10.1109/CISP-BMEI48845.2019.8966048 |
[16] | Hadsell, R., Chopra, S. and LeCun, Y. (2006) Dimensionality Reduction by Learning an Invariant Mapping. 2006 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR’06), New York, 17-22 June 2006, 1735-1742. https://doi.org/10.1109/CVPR.2006.100 |
[17] | Wang, F. and Liu, H. (2021) Understanding the Behaviour of Con-trastive Loss. 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Nashville, 20-25 June 2021, 2495-2504.
https://doi.org/10.1109/CVPR46437.2021.00252 |
[18] | Baloglu, U.B., Talo, M., Yildirim, O., Tan, R.S. and Achar-ya, U.R. (2019) Classification of Myocardial Infarction with Multi-Lead ECG Signals and Deep CNN. Pattern Recogni-tion Letters, 122, 23-30.
https://doi.org/10.1016/j.patrec.2019.02.016 |
[19] | Essa, E. and Xie, X. (2021) An Ensemble of Deep Learn-ing-Based Multi-Model for ECG Heartbeats Arrhythmia Classification. IEEE Access, 9, 103452-103464. https://doi.org/10.1109/ACCESS.2021.3098986 |
[20] | Hendrycks, D., Lee, K. and Mazeika, M. (2019) Using Pre-Training Can Improve Model Robustness and Uncertainty. Proceedings of the 36th International Conference on Machine Learning, Long Beach, 9-15 June 2019, 2712-2721. |