Original article

URGERS: Ultra-Lightweight Contrastive Learning Encoder for ECG Processor Supporting Both Authentication and Arhythmia Classification

  • JUNLU ZHOU ,
  • LIANG CHANG ,
  • HAODONG FAN ,
  • HAORAN LI ,
  • YANCHENG CHEN ,
  • SHUISHENG LIN ,
  • JUN ZHOU
Expand
  • School of Information and Communication Engineering, University of Electronic Science and Technology of China, Chengdu 611731, China School of Mathematical Sciences, University of Electronic Science and Technology of China, Chengdu 611731, China
+ CORRESPONDING AUTHOR: LIANG CHANG; JUN ZHOU (e-mail: ; ).

Received date: 2024-10-14

  Revised date: 2024-10-31

  Accepted date: 2024-11-05

  Online published: 2025-01-09

Abstract

Deep learning typically requires large amounts of labeled data and often struggles with generalization, posing challenges for intelligent systems. In the real world, most electrocardiogram (ECG) signals are unlabeled, which limits the use of smart devices in ECG-related applications. Unsupervised learning methods, such as contrastive learning, have emerged as a solution to this constraint. However, most contrastive learning encoders rely on deep neural networks with many parameters, making them unsuitable for hardware implementation. This article introduces a hardware-friendly universal ECG encoder with around 1k parameters based on contrastive learning and a fine-tuning framework for ECG-related tasks. We apply the encoder to a dual-task system for ECG-based arrhythmia classification and authentication, achieving 98.2% and 99.7% accuracy on the MIT-BIH dataset, respectively, with FAR of 0.274 and FRR of 0.707 for authentication. We propose a dynamic averaging template concatenation technique to improve neural network generalization significantly. We also develop an energy-efficient hardware architecture optimized for the entire system, successfully implementing it on an FPGA.

Cite this article

JUNLU ZHOU , LIANG CHANG , HAODONG FAN , HAORAN LI , YANCHENG CHEN , SHUISHENG LIN , JUN ZHOU . URGERS: Ultra-Lightweight Contrastive Learning Encoder for ECG Processor Supporting Both Authentication and Arhythmia Classification[J]. Integrated Circuits and Systems, 2024 , 1(3) : 157 -165 . DOI: 10.23919/ICS.2024.3496614

[1]
“Cardiovascular diseases (CVDs),” World Health Organization, Geneva, Switzerland, 2019. [Online].

[2]
J. Liu et al., “4.5 BioAIP: A reconfigurable biomedical AI processor with adaptive learning for versatile intelligent health monitoring,” in Proc. 2021 IEEE Int. Solid-State Circuits Conf., 2021, vol. 64, pp. 62-64.

[3]
S. M. Abubakar et al., “A 1.92 μA always-on ECG monitoring mixed-signal SoC for implantable medical application,” in Proc. 19th Int. SoC Des. Conf., 2022, pp. 155-156.

[4]
H. Fan, L. Chang, J. Zhou, X. Yang, S. Lin, and J. Zhou, “An ultra-low power time-domain based SNN processor for ECG classification,” in Proc. 2024 IEEE Int. Symp. Circuits Syst., 2024, pp. 1-5.

[5]
L. Chang, S. Yang, Z. Chang, H. Fan, J. Zhou, and J. Zhou, “TDPRO: Time-domain-based computing-in memory engine for ultra-low power ECG processor,” IEEE Trans. Circuits Syst. I, Reg. Papers, vol. 70, no. 10, pp. 3908-3919, Oct. 2023.

[6]
A. N. Uwaechia and D. A. Ramli, “A comprehensive survey on ECG signals as new biometric modality for human authentication: Recent advances and future challenges,” IEEE Access, vol. 9, pp. 97760-97802, 2021.

[7]
G. Wang, D. John, and A. Nag, “Low complexity ECG biometric authentication for IoT edge devices,” in Proc. 2020 IEEE Int. Conf. Integr. Circuits, Technol. Appl., 2020, pp. 145-146.

[8]
M. N. Dar, M. U. Akram, A. Usman, and S. A. Khan, “ECG biometric identification for general population using multiresolution analysis of DWT based features,” in Proc. 2nd Int. Conf. Inf. Secur. Cyber Forensics, 2015, pp. 5-10.

[9]
L. Jing and Y. Tian, “Self-supervised visual feature learning with deep neural networks: A survey,” IEEE Trans. Pattern Anal. Mach. Intell., vol. 43, no. 11, pp. 4037-4058, Nov. 2021.

[10]
H. Chen, G. Wang, G. Zhang, P. Zhang, and H. Yang, “CLECG: A novel contrastive learning framework for electrocardiogram arrhythmia classification,” IEEE Signal Process. Lett., vol. 28, pp. 1993-1997, 2021.

[11]
B. T. Lee, S. T. Kong, Y. Song, and Y. Lee, “Self-supervised learning with electrocardiogram delineation for arrhythmia detection,” in Proc. 43rd Annu. Int. Conf. IEEE Eng. Med. Biol. Soc., 2021, pp. 591-594.

[12]
S. Soltanieh, A. Etemad, and J. Hashemi, “Analysis of augmentations for contrastive ECG representation learning,” in Proc. 2022 Int. Joint Conf. Neural Netw., 2022, pp. 1-10.

[13]
C. T. Wei, M.-E. Hsieh, C.-L. Liu, and V. S. Tseng, “Contrastive heart-beats: Contrastive learning for self-supervised ECG representation and phenotyping,” in Proc. 2022 IEEE Int. Conf. Acoust., Speech, Signal Process., 2022, pp. 1126-1130.

[14]
N. Diamant, E. Reinertsen, S. Song, A. D. Aguirre, C. M. Stultz, and P. Batra, “Patient contrastive learning: A performant, expressive, and practical approach to electrocardiogram modeling,” PLoS Comput. Biol., vol. 18, no. 2, 2022, Art. no. e1009862.

[15]
G. Wang, Q. Wang, G. N. Iyer, A. Nag, and D. John, “Unsupervised pretraining using masked autoencoders for ECG analysis,” in Proc. 2023 IEEE Biomed. Circuits Syst. Conf., 2023, pp. 1-5.

[16]
W. Liu, H. Zhang, S. Chang, H. Wang, J. He, and Q. Huang, “A joint cross-dimensional contrastive learning framework for 12-lead ECGs and its heterogeneous deployment on SoC,” Comput. Biol. Med., vol. 152, 2023, Art. no. 106390.

[17]
R. K. Nath, J. Tervonen, J. Närväinen, K. Pettersson, and J. Mäntyjärvi, “Towards multi-functional ECG smart system based on a client-edge-cloud architecture,” in Proc. 2023 IEEE EMBS Int. Conf. Biomed. Health Inform., 2023, pp. 1-4.

[18]
T. Chen, S. Kornblith, M. Norouzi, and G. Hinton, “A simple framework for contrastive learning of visual representations,” in Proc. Int. Conf. Mach. Learn., 2020, pp. 1597-1607.

[19]
Q. Cai, X. Xu, Y. Zhao, L. Ying, Y. Li, and Y. Lian, “A 1.3 μw event-driven ann core for cardiac arrhythmia classification in wearable sensors,” IEEE Trans. Circuits Syst. II, Exp. Briefs, vol. 68, no. 9,pp. 3123-3127, Sep. 2021.

[20]
S. Yin et al., “A 1.06-μW smart ECG processor in 65-nm CMOS for real-time biometric authentication and personal cardiac monitoring,” IEEE J. Solid-State Circuits, vol. 54, no. 8, pp. 2316-2326, Aug. 2019.

[21]
K. Nezamabadi, N. Sardaripour, B. Haghi, and M. Forouzanfar, “Unsupervised ECG analysis: A review,” IEEE Rev. Biomed. Eng., vol. 16, pp. 208-224, 2022.

[22]
N. Ammour, R. M. Jomaa, M. S. Islam, Y. Bazi, H. Alhichri, and N. Alajlan, “Deep contrastive learning-based model for ECG biometrics,” Appl. Sci., vol. 13, no. 5, 2023, Art. no. 3070.

[23]
J. Xiao et al., “ULECGNET: An ultra-lightweight end-to-end ECG classification neural network,” IEEE J. Biomed. Health Inform., vol. 26, no. 1, pp. 206-217, Jan. 2022.

[24]
S. Woo et al., “Convnext V2:Co-designing and scaling convnets with masked autoencoders,” in Proc. Proc. IEEE/CVF Conf. Comput. Vis. Pattern Recognit., 2023, pp. 16133-16142.

[25]
D. G. Perera and K. F. Li, “Similarity computation using reconfigurable embedded hardware,” in Proc. 8th IEEE Int. Conf. Dependable, Autonomic Secure Comput., 2009, pp. 323-329.

[26]
N. Ibtehaz et al., “EDITH: ECG biometrics aided by deep learning for reliable individual authentication,” IEEE Trans. Emerg. Topics Comput. Intell., vol. 6, no. 4, pp. 928-940, Aug. 2022.

[27]
Testing and Reporting Performance Results of Cardiac Rhythm and ST Segment Measurement Algorithms, Standard ANSI/AAMI EC57: 2012/(R)2020, Jan. 2013. [Online]. Available. http://dx.doi.org/ /10.2345/9781570204784.chl

[28]
J. Liu et al., “An energy-efficient cardiac arrhythmia classification processor using heartbeat difference based classification and event-driven neural network computation with adaptive wake-up,” in Proc. 2022 IEEE Custom Integr. Circuits Conf., 2022, pp. 1-2.

[29]
G. Moody and R. Mark, “The impact of the MIT-BIH arrhythmia database IEEE Eng. Med. Biol. Mag., vol. 20, no. 3, pp. 45-50, May/Jun. 2001.

[30]
R. Mao et al., “An ultra-energy-efficient and high accuracy ECG classification processor with SNN inference assisted by on-chip ANN learning,” IEEE Trans. Biomed. Circuits Syst., vol. 16, no. 5, pp. 832-841, Oct. 2022.

[31]
F. Li, H. Chang, M. Jiang, and Y. Su, “A contrastive learning framework for ECG anomaly detection,” in Proc. 2022 7th Int. Conf. Intell. Comput. Signal Process., 2022, pp. 673-677.

[32]
S. Mangaraj, P. Oraon, S. Ari, A. K. Swain, and K. Mahapatra, “FPGA accelerated convolutional neural network for detection of cardiac arrhythmia,” in Proc. IEEE 4th Int. Conf. VLSI Syst., Archit., Technol. Appl., 2024, pp. 1-6.

[33]
R. Hu, J. Chen, and L. Zhou, “A transformer-based deep neural network for arrhythmia detection using continuous ECG signals,” Comput. Biol. Med., vol. 144, 2022, Art. no. 105325.

[34]
A. Sellami and H. Hwang, “A robust deep convolutional neural network with batch-weighted loss for heartbeat classification,” Expert Syst. Appl., vol. 122, pp. 75-84, 2019.

[35]
S. K. TR and P. TL, “ECG authentication reinforced by pretrained convolutional neural networks,” in Proc. 2023 Int. Conf. Netw., Multimedia Inf. Technol., 2023, pp. 1-6.

[36]
S. Meghna and A. M. Joshi, “Real-time ECG based authentication using hardware accelerated implementation on ZYNQ SOC,” in Proc. 2019 IEEE Int. Symp. Smart Electron. Syst., 2019, pp. 99-104.

[37]
Y. Chu, H. Shen, and K. Huang, “ECG authentication method based on parallel multi-scale one-dimensional residual network with center and margin loss,” IEEE Access, vol. 7, pp. 51598-51607, 2019.

[38]
X. Wang, W. Cai, and M. Wang, “A novel approach for biometric recognition based on ECG feature vectors,” Biomed. Signal Process. Control, vol. 86, 2023, Art. no. 104922.

[39]
T. S. Lugovaya,“Biometric human identification based on electrocardiogram,” M.S. thesis. Fac. Comput. Technol. Inform., Electrotechnical Univ. “LETI”, Saint-Petersburg, Russian Federation, Jun. 2005.

Outlines

/