journal article·2025-04-25Open access

Transferring Learned ECG Representations for Deep Neural Network Classification of Atrial Fibrillation with Photoplethysmography

Jayroop Ramesh, Zahra Solatidehkordi, Raafat Aburukba, Assim Sagahyroon, Fadi Aloul

Applied Sciences· Volume 15· Issue 9

Abstract

Atrial fibrillation (AF) is a type of cardiac arrhythmia with a worldwide prevalence of more than 37 million among the adult population. This elusive disease is a major risk factor for ischemic stroke, along with increased rates of significant morbidity and eventual mortality. It is clinically diagnosed using medical-grade electrocardiogram (ECG) sensors in ambulatory settings. The recent emergence of consumer-grade wearables equipped with photoplethysmography (PPG) sensors has exhibited considerable promise for non-intrusive continuous monitoring in free-living conditions. However, the scarcity of large-scale public PPG datasets acquired from wearable devices hinders the development of intelligent automatic AF detection algorithms unaffected by motion artifacts, saturated ambient noise, inter- and intra-subject differences, or limited training data. In this work, we present a deep learning framework that leverages convolutional layers with a bidirectional long short-term memory (CNN-BiLSTM) network and an attention mechanism for effectively classifying raw AF rhythms from normal sinus rhythms (NSR). We derive and feed heart rate variability (HRV) and pulse rate variability (PRV) features as auxiliary inputs to the framework for robustness. A larger teacher model is trained using the MIT-BIH Arrhythmia ECG dataset. Through transfer learning (TL), its learned representation is adapted to a compressed student model (32x smaller) variant by using knowledge distillation (KD) for classifying AF with the UMass and MIMIC-III datasets of PPG signals. This results in the student model yielding average improvements in accuracy, sensitivity, F1 score, and Matthews correlation coefficient of 2.0%, 15.05%, 11.7%, and 9.85%, respectively, across both PPG datasets. Additionally, we employ Gradient-weighted Class Activation Mapping (Grad-CAM) to confer a notion of interpretability to the model decisions. We conclude that through a combination of techniques such as TL and KD, i.e., pre-trained initialization, we can utilize learned ECG concepts for scarcer PPG scenarios. This can reduce resource usage and enable deployment on edge devices.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: ECG Monitoring and Analysis · Non-Invasive Vital Sign Monitoring · EEG and Brain-Computer Interfaces

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Department of Computer Science and Engineering, American University of Sharjah, Sharjah 26666, United Arab Emirates

Funding

Open Access Program from the American University of Sharjah

References (90)

Show source-provided references
1. Olvera Lopez, E., Ballard, B.D., and Jan, A. (2022). Cardiovascular Disease. StatPearls, StatPearls Publishing.
2. (2017, October 17). Cardiovascular Disease. Available online: https://www.nhs.uk/conditions/cardiovascular-disease/.
3. (2024, November 05). Cardiovascular Diseases (CVDs). Available online: https://www.who.int/news-room/fact-sheets/detail/cardiovascular-diseases-(cvds).
4. Heart Disease and Stroke Statistics-2022 Update: A Report From the American Heart Association10.1161/CIR.0000000000001052 ↗
5. European Society of Cardiology: Cardiovascular Disease Statistics 201910.1093/eurheartj/ehz859 ↗
6. Overview of Basic Mechanisms of Cardiac Arrhythmia10.1016/j.ccep.2010.10.012 ↗
7. Lee, E., Choi, E.K., Han, K.D., Lee, H., Choe, W.S., Lee, S.R., Cha, M.J., Lim, W.H., Kim, Y.J., and Oh, S. (2018). Mortality and Causes of Death in Patients with Atrial Fibrillation: A Nationwide Population-Based Study. PLoS ONE, 13.10.1371/journal.pone.0209687 ↗
8. Raising Awareness and Early Detection of Atrial Fibrillation, an Experience Resorting to Mobile Technology Centred on Informed Individuals10.1016/j.sapharm.2019.08.036 ↗
9. Impact of Atrial Fibrillation on the Risk of Death: The Framingham Heart Study10.1161/01.CIR.98.10.946 ↗
10. (2024, November 05). Electrocardiogram (ECG or EKG). Available online: https://www.heart.org/en/health-topics/heart-attack/diagnosing-a-heart-attack/electrocardiogram-ecg-or-ekg.
11. Computer-Aided Diagnosis of Atrial Fibrillation Based on ECG Signals: A Review10.1016/j.ins.2018.07.063 ↗
12. Arrhythmia Detection Using Deep Convolutional Neural Network with Long Duration ECG Signals10.1016/j.compbiomed.2018.09.009 ↗
13. A Deep Convolutional Neural Network Model to Classify Heartbeats10.1016/j.compbiomed.2017.08.022 ↗
14. Kiranyaz, S., Ince, T., and Gabbouj, M. (2017). Personalized Monitoring and Advance Warning System for Cardiac Arrhythmias. Sci. Rep., 7.10.1038/s41598-017-09544-z ↗
15. Zhu, Q., Tian, X., Wong, C.W., and Wu, M. (2019, January 19–22). ECG Reconstruction via PPG: A Pilot Study. Proceedings of the 2019 IEEE EMBS International Conference on Biomedical & Health Informatics (BHI), Chicago, IL, USA.10.1109/BHI.2019.8834612 ↗
16. A Review on Wearable Photoplethysmography Sensors and Their Potential Future Applications in Health Care
17. Combining Ensemble Empirical Mode Decomposition with Spectrum Subtraction Technique for Heart Rate Monitoring Using Wrist-Type Photoplethysmography10.1016/j.bspc.2015.05.006 ↗
18. TROIKA: A General Framework for Heart Rate Monitoring Using Wrist-Type Photoplethysmographic Signals during Intensive Physical Exercise10.1109/TBME.2014.2359372 ↗
19. Paradkar, N., and Chowdhury, S.R. (2017, January 11–15). Cardiac Arrhythmia Detection Using Photoplethysmography. Proceedings of the 2017 39th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), Jeju-do, Republic of Korea.10.1109/EMBC.2017.8036775 ↗
20. Utility of Photoplethysmography for Heart Rate Estimation among Inpatients10.1111/imj.13777 ↗
21. Millán, C.A., Girón, N.A., and Lopez, D.M. (2020). Analysis of Relevant Features from Photoplethysmographic Signals for Atrial Fibrillation Classification. Int. J. Environ. Res. Public Health, 17.10.3390/ijerph17020498 ↗
22. Pinheiro, N., Couceiro, R., Henriques, J., Muehlsteff, J., Quintal, I., Gonçalves, L., and Carvalho, P. (2016, January 17–20). Can PPG Be Used for HRV Analysis?. Proceedings of the 2016 38th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), Orlando, FL, USA.10.1109/EMBC.2016.7591347 ↗
23. Effectiveness of Transfer Learning for Deep Learning-Based Electrocardiogram Analysis10.4258/hir.2021.27.1.19 ↗
24. Photoplethysmograhic Sensors, Potential and Limitations: Is It Time for Regulation? A Comprehensive Review10.1016/j.measurement.2023.113150 ↗
25. Photoplethysmography Based Atrial Fibrillation Detection: A Review10.1038/s41746-019-0207-9 ↗
26. Hinton, G., Vinyals, O., and Dean, J. (2015). Distilling the Knowledge in a Neural Network. arXiv.
27. Dai, R., Das, S., and Bremond, F. (2021, January 10–17). Learning an Augmented RGB Representation with Cross-Modal Knowledge Distillation for Action Detection. Proceedings of the 2021 IEEE/CVF International Conference on Computer Vision (ICCV), Montreal, QC, Canada.10.1109/ICCV48922.2021.01281 ↗
28. Faraone, A., Sigurthorsdottir, H., and Delgado-Gonzalo, R. (2021, January 1–5). Atrial Fibrillation Detection on Low-Power Wearables Using Knowledge Distillation. Proceedings of the Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), Guadalajara, Mexico.10.1109/EMBC46164.2021.9630957 ↗
29. Perslev, M., Jensen, M., Darkner, S., rgen Jennum, P.J., and Igel, C. (2019). U-Time: A Fully Convolutional Network for Time Series Segmentation Applied to Sleep Staging. Proceedings of the Advances in Neural Information Processing Systems, Curran Associates, Inc.
30. Visual-to-EEG Cross-Modal Knowledge Distillation for Continuous Emotion Recognition10.1016/j.patcog.2022.108833 ↗
31. Wu, Q., Sun, Y., Yan, H., and Wu, X. (2020). ECG Signal Classification with Binarized Convolutional Neural Network. Comput. Biol. Med., 121.10.1016/j.compbiomed.2020.103800 ↗
32. A Novel Method for Reducing Arrhythmia Classification from 12-Lead ECG Signals to Single-Lead ECG with Minimal Loss of Accuracy through Teacher-Student Knowledge Distillation10.1016/j.ins.2022.01.030 ↗
33. Lai, Y., Wang, T., Jiang, M., Xu, G., Liang, W., and Castiglione, A. Building Portable ECG Classification Model with Cross-Dimension Knowledge Distillation. Proceedings of the Algorithms and Architectures for Parallel Processing, Lecture Notes in Computer Science.
34. Goldberger, A.L., Goldberger, Z.D., and Shvilkin, A. (2018). Chapter 13—Sinus and Escape Rhythms. Goldberger’s Clinical Electrocardiography, Elsevier. [5th ed.].10.1016/B978-0-323-40169-2.00013-5 ↗
35. Ebbehoj, A., Thunbo, M.Ø., Andersen, O.E., Glindtvad, M.V., and Hulman, A. (2022). Transfer Learning for Non-Image Data in Clinical Research: A Scoping Review. PLoS Digit. Health, 1.10.1371/journal.pdig.0000014 ↗
36. Automated EEG-based Screening of Depression Using Deep Convolutional Neural Network10.1016/j.cmpb.2018.04.012 ↗
37. ECG-based Heartbeat Classification for Arrhythmia Detection: A Survey10.1016/j.cmpb.2015.12.008 ↗
38. Kachuee, M., Fazeli, S., and Sarrafzadeh, M. (2018, January 4–7). ECG Heartbeat Classification: A Deep Transferable Representation. Proceedings of the 2018 IEEE International Conference on Healthcare Informatics (ICHI), New York, NY, USA.10.1109/ICHI.2018.00092 ↗
39. Shen, Y., Voisin, M., Aliamiri, A., Avati, A., Hannun, A., and Ng, A. (2019, January 4–8). Ambulatory Atrial Fibrillation Monitoring Using Wearable Photoplethysmography with Deep Learning. Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining (KDD ’19), Anchorage, AK, USA.10.1145/3292500.3330657 ↗
40. Cardiologist-Level Arrhythmia Detection and Classification in Ambulatory Electrocardiograms Using a Deep Neural Network10.1038/s41591-018-0268-3 ↗
41. Atrial Fibrillation Identification With PPG Signals Using a Combination of Time-Frequency Analysis and Deep Learning10.1109/ACCESS.2020.3025374 ↗
42. BayesBeat: Reliable Atrial Fibrillation Detection from Noisy Photoplethysmography Data10.1145/3517247 ↗
43. Shashikumar, S.P., Shah, A.J., Clifford, G.D., and Nemati, S. (2018). Detection of Paroxysmal Atrial Fibrillation Using Attention-based Bidirectional Recurrent Neural Networks. arXiv.10.1145/3219819.3219912 ↗
44. Aliamiri, A., and Shen, Y. (2018, January 4–7). Deep Learning Based Atrial Fibrillation Detection Using Wearable Photoplethysmography Sensor. Proceedings of the 2018 IEEE EMBS International Conference on Biomedical & Health Informatics (BHI), Las Vegas, NV, USA.10.1109/BHI.2018.8333463 ↗
45. Hartmann, M., Farooq, H., and Imran, A. (July, January 29). Distilled Deep Learning Based Classification of Abnormal Heartbeat Using ECG Data through a Low Cost Edge Device. Proceedings of the 2019 IEEE Symposium on Computers and Communications (ISCC), Barcelona, Spain.10.1109/ISCC47284.2019.8969657 ↗
46. Chauhan, E., Guptha, S., Reddy, L., and Raju, B. (2022). LRH-Net: A Multi-Level Knowledge Distillation Approach for Low-Resource Heart Network. arXiv.10.1007/978-3-031-18523-6_18 ↗
47. A New Method for Detecting Atrial Fibrillation Using R-R Intervals
48. PhysioBank, PhysioToolkit, and PhysioNet: Components of a New Research Resource for Complex Physiologic Signals10.1161/01.CIR.101.23.e215 ↗
49. Bashar, S.K., Han, D., Hajeb-Mohammadalipour, S., Ding, E., Whitcomb, C., McManus, D.D., and Chon, K.H. (2019). Atrial Fibrillation Detection from Wrist Photoplethysmography Signals Using Smartwatches. Sci. Rep., 9.10.1038/s41598-019-49092-2 ↗
50. Han, D., Bashar, S.K., Mohagheghian, F., Ding, E., Whitcomb, C., Mcmanus, D., and Chon, K. (2020). Premature Atrial and Ventricular Contraction Detection Using Photoplethysmographic Data from a Smartwatch. Sensors, 20.10.3390/s20195683 ↗
51. Atrial Fibrillation Monitoring with Wrist-Worn Photoplethysmography-Based Wearables: State-of-the-art Review10.1016/j.cvdhj.2020.03.001 ↗
52. Thirty-Second Gold Standard Definition of Atrial Fibrillation and Its Relationship With Subsequent Arrhythmia Patterns10.1161/CIRCEP.118.006274 ↗
53. Kramer, L., Menon, C., and Elgendi, M. (2022). ECGAssess: A Python-Based Toolbox to Assess ECG Lead Signal Quality. Front. Digit. Health, 4.10.3389/fdgth.2022.847555 ↗
54. Elgendi, M. (2016). Optimal Signal Quality Index for Photoplethysmogram Signals. Bioengineering, 3.10.3390/bioengineering3040021 ↗
55. Charlton, P.H., Bacevicˇius, J., Bonnici, T., Brimicombe, J., Chapman, C., Dymond, A., Emmenis, M.V., Kyriacou, P.A., Marozas, V., and Williams, K. (2024, June 17). The Acceptability of Wearables for Atrial Fibrillation Screening: Interim Analysis of the SAFER Wearables Study. Available online: https://peterhcharlton.github.io/info/datasets.10.22489/CinC.2024.060 ↗
56. Shaffer, F., Meehan, Z.M., and Zerr, C.L. (2020). A Critical Review of Ultra-Short-Term Heart Rate Variability Norms Research. Front. Neurosci., 14.10.3389/fnins.2020.594880 ↗
57. Kalidas, V., and Tamil, L. (2017, January 23–25). Real-Time QRS Detector Using Stationary Wavelet Transform for Automated ECG Analysis. Proceedings of the 2017 IEEE 17th International Conference on Bioinformatics and Bioengineering (BIBE), Washington, DC, USA.10.1109/BIBE.2017.00-12 ↗
58. Elgendi, M., Norton, I., Brearley, M., Abbott, D., and Schuurmans, D. (2013). Systolic Peak Detection in Acceleration Photoplethysmograms Measured from Emergency Responders in Tropical Conditions. PLoS ONE, 8.10.1371/journal.pone.0076585 ↗
59. Shaffer, F., and Ginsberg, J.P. (2017). An Overview of Heart Rate Variability Metrics and Norms. Front. Public Health, 5.10.3389/fpubh.2017.00258 ↗
60. Comparison of Time-Domain, Frequency-Domain and Non-Linear Analysis for Distinguishing Congestive Heart Failure Patients from Normal Sinus Rhythm Subjects10.1016/j.bspc.2018.01.001 ↗
61. Pham, T., Lau, Z.J., Chen, S.H.A., and Makowski, D. (2021). Heart Rate Variability in Psychology: A Review of HRV Indices and an Analysis Tutorial. Sensors, 21.10.20944/preprints202105.0070.v1 ↗
62. Mejía-Mejía, E., Budidha, K., Abay, T.Y., May, J.M., and Kyriacou, P.A. (2020). Heart Rate Variability (HRV) and Pulse Rate Variability (PRV) for the Assessment of Autonomic Responses. Front. Physiol., 11.10.3389/fphys.2020.00779 ↗
63. Fang, X., Liu, H.Y., Wang, Z.Y., Yang, Z., Cheng, T.Y., Hu, C.H., Hao, H.W., Meng, F.G., Guan, Y.G., and Ma, Y.S. (2021). Preoperative Heart Rate Variability During Sleep Predicts Vagus Nerve Stimulation Outcome Better in Patients With Drug-Resistant Epilepsy. Front. Neurol., 12.10.3389/fneur.2021.691328 ↗
64. Henriques, T., Ribeiro, M., Teixeira, A., Castro, L., Antunes, L., and Costa-Santos, C. (2020). Nonlinear Methods Most Applied to Heart-Rate Time Series: A Review. Entropy, 22.10.3390/e22030309 ↗
65. Automated Diagnosis of Arrhythmia Using Combination of CNN and LSTM Techniques with Variable Length Heart Beats10.1016/j.compbiomed.2018.06.002 ↗
66. Alkhodari, M., and Fraiwan, L. (2021). Convolutional and Recurrent Neural Networks for the Detection of Valvular Heart Diseases in Phonocardiogram Recordings. Comput. Methods Programs Biomed., 200.10.1016/j.cmpb.2021.105940 ↗
67. Ramesh, J., Solatidehkordi, Z., Aburukba, R., and Sagahyroon, A. (2021). Atrial Fibrillation Classification with Smart Wearables Using Short-Term Heart Rate Variability and Deep Convolutional Neural Networks. Sensors, 21.10.3390/s21217233 ↗
68. Beyer, L., Zhai, X., Royer, A., Markeeva, L., Anil, R., and Kolesnikov, A. (2021). Knowledge Distillation: A Good Teacher Is Patient and Consistent. arXiv.10.1109/CVPR52688.2022.01065 ↗
69. Array Programming with NumPy10.1038/s41586-020-2649-2 ↗
70. McKinney, W. (July, January 28). Data Structures for Statistical Computing in Python. Proceedings of the Python in Science Conference, Austin, TX, USA.
71. SciPy 1.0: Fundamental Algorithms for Scientific Computing in Python10.1038/s41592-019-0686-2 ↗
72. Scikit-Learn: Machine Learning in Python
73. Matplotlib: A 2D Graphics Environment10.1109/MCSE.2007.55 ↗
74. UMAP: Uniform Manifold Approximation and Projection10.21105/joss.00861 ↗
75. Chollet, F. (2018). Keras: The Python Deep Learning Library, Astrophysics Source Code Library.
76. Abadi, M., Barham, P., Chen, J., Chen, Z., Davis, A., Dean, J., Devin, M., Ghemawat, S., Irving, G., and Isard, M. (2016, January 2–4). TensorFlow: A System for Large-Scale Machine Learning. Proceedings of the 12th USENIX Symposium on Operating Systems Design and Implementation (OSDI 16), Savannah, GA, USA.
77. NeuroKit2: A Python Toolbox for Neurophysiological Signal Processing10.3758/s13428-020-01516-y ↗
78. Chicco, D., and Jurman, G. (2020). The Advantages of the Matthews Correlation Coefficient (MCC) over F1 Score and Accuracy in Binary Classification Evaluation. BMC Genom., 21.10.1186/s12864-019-6413-7 ↗
79. Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localization10.1007/s11263-019-01228-7 ↗
80. Kim, J.K., Jung, S., Park, J., and Han, S.W. (2022). Arrhythmia Detection Model Using Modified DenseNet for Comprehensible Grad-CAM Visualization. Biomed. Signal Process. Control, 73.10.1016/j.bspc.2021.103408 ↗
81. Jahmunah, V., Ng, E.Y.K., Tan, R.S., Oh, S.L., and Acharya, U.R. (2022). Explainable Detection of Myocardial Infarction Using Deep Learning Models with Grad-CAM Technique on ECG Signals. Comput. Biol. Med., 146.10.1016/j.compbiomed.2022.105550 ↗
82. Nguyen, C.V., and Do, C.D. (2024). Transfer Learning in ECG Diagnosis: Is It Effective?. arXiv, 2021.10.55277/ResearchHub.0t7mc9m1 ↗
83. Stanton, S., Izmailov, P., Kirichenko, P., Alemi, A.A., and Wilson, A.G. (2021). Does Knowledge Distillation Really Work?. arXiv.
84. Blood Pressure Estimation Based on PPG and ECG Signals Using Knowledge Distillation10.1007/s13239-023-00695-x ↗
85. Transfer Learning from ECG to PPG for Improved Sleep Staging from Wrist-Worn Wearables10.1088/1361-6579/abf1b0 ↗
86. Foundation Models for Cardiovascular Disease Detection via Biosignals from Digital Stethoscopes10.1038/s44325-024-00027-5 ↗
87. Abbaspourazad, S., Elachqar, O., Miller, A.C., Emrani, S., Nallasamy, U., and Shapiro, I. (2024). Large-Scale Training of Foundation Models for Wearable Biosignals. arXiv.
88. Ding, C., Guo, Z., Chen, Z., Lee, R.J., Rudin, C., and Hu, X. (2024). SiamQuality: A ConvNet-Based Foundation Model for Imperfect Physiological Signals. arXiv.10.1088/1361-6579/ad6747 ↗
89. Gou, J., Yu, B., Maybank, S.J., and Tao, D. (2021). Knowledge Distillation: A Survey. arXiv.10.1007/s11263-021-01453-z ↗
90. Weimann, K., and Conrad, T.O.F. (2021). Transfer Learning for ECG Classification. Sci. Rep., 11.10.1038/s41598-021-84374-8 ↗