Skip to main content

Thank you for visiting nature.com. You are using a browser version with limited support for CSS. To obtain the best experience, we recommend you use a more up to date browser (or turn off compatibility mode in Internet Explorer). In the meantime, to ensure continued support, we are displaying the site without styles and JavaScript.

Advertisement

Scientific Reports
  • View all journals
  • Search
  • My Account Login
  • Content Explore content
  • About the journal
  • Publish with us
  • Sign up for alerts
  • RSS feed
  1. nature
  2. scientific reports
  3. articles
  4. article
Time series electrocardiography (ECG) data for early prediction of cardiac arrest
Download PDF
Download PDF
  • Article
  • Open access
  • Published: 18 February 2026

Time series electrocardiography (ECG) data for early prediction of cardiac arrest

  • M. Khurram Umair  ORCID: orcid.org/0009-0008-5394-030X1,
  • Rabbia Waheed  ORCID: orcid.org/0009-0008-4988-74462,
  • Muhammad Faisal Abrar  ORCID: orcid.org/0000-0001-7958-99003,
  • Sikandar Ali  ORCID: orcid.org/0000-0002-2753-86154,5,
  • It Ee Lee  ORCID: orcid.org/0000-0002-0922-88596,7,
  • Salman Jan  ORCID: orcid.org/0000-0002-8250-694X8,9 &
  • …
  • Farah Shaheen10 

Scientific Reports , Article number:  (2026) Cite this article

We are providing an unedited version of this manuscript to give early access to its findings. Before final publication, the manuscript will undergo further editing. Please note there may be errors present which affect the content, and all legal disclaimers apply.

Subjects

  • Cardiology
  • Computational biology and bioinformatics
  • Health care
  • Mathematics and computing
  • Medical research

Abstract

Artificial intelligence is revolutionizing modern healthcare by enabling more precise and predictive diagnostics. In cardiology, AI is playing a vital role by assisting medical practitioners in analyzing complex electrocardiography (ECG) patterns with greater accuracy. As cardiovascular diseases continue to be a leading cause of mortality globally, the early prediction of sudden cardiac arrest remains a significant clinical challenge. This study explores the application of both machine learning (ML) and deep learning (DL) techniques of time series ECG data for the early prediction of life-threatening cardiac events. The analysis confirms that deep learning models excel at detecting intricate patterns by automatically learning features directly from raw data, though they often demand large datasets and substantial computational resources. In contrast, traditional machine learning approaches are more computationally efficient and interpretable, making them a practical choice for resource-constrained environments. Experimental results demonstrate the superior performance of deep learning models, with a Convolutional Neural Network (CNN) achieving an accuracy of 99.89%. Among machine learning models, the Random Forest classifier performed best, achieving an accuracy of 99.06% and highlighting the reliability of ensemble learning methods. These findings demonstrate the significant potential of AI-based ECG analysis to improve early diagnosis and clinical decision making.

Data availability

The MIT BIH Arrhythmia and PTB DB ECG_Datasets are analyzed during this study is publicly available at ECG_Datasets repository https://drive.google.com/drive/folders/1b1\({}_{6} f 3 N S 3 S T J-r b 42 w y S 5 u q 9 N q B_{H} 7 f N\). Further, in case of any issue its also available from the corresponding author on reasonable request.

References

  1. World Health Organization Cardiovascular diseases (CVDs) (2021).

  2. Xiong, W. et al. Multichannel feature fusion network-based technique for heart sound signal classification and recognition. Expert Syst. Appl. 273, 126839 (2025).

    Google Scholar 

  3. Zhu, Y.et al. Identification of necroptosis and immune infiltration in heart failure through bioinformatics analysis. J. Inflamm. Res. 18, 2465–2481 (2025).

  4. Amini, M., Zayeri, F. & Salehi, M. Trend analysis of cardiovascular disease mortality, incidence, and mortality-to-incidence ratio: Results from global burden of disease study 2017. BMC Public Health 21(1), 401 (2021).

  5. Šiaučiūnaitė, V., Vainoras, A., Navickas, Z. & Ragulskis, M. Detection of ischemic episodes based on two consecutive declines in the JT/ST algebraic relationship. Appl. Sci. 11(11), 4805 (2021).

    Google Scholar 

  6. Kennedy, C. E., Aoki, N., Mariscalco, M. & Turley, J. P. Using time series analysis to predict cardiac arrest in a PICU. Pediatr. Crit. Care Med. 16(9), e332–e339 (2015).

    Google Scholar 

  7. Al Hinai, G., Jammoul, S., Vajihi, Z. & Afilalo, J. Deep learning analysis of resting electrocardiograms for the detection of myocardial dysfunction, hypertrophy, and ischaemia: A systematic review. Eur. Heart J. Digit. Health 2(3), 416–423 (2021).

    Google Scholar 

  8. Sengupta, J. Investigation of Deep Learning Models for Analysis of Heart Disorders in Smart Health Care based IoT Environment. J. Smat Internet Things (JSIoT) 2024(01), 01–16 (2024).

    Google Scholar 

  9. Chang, A., Cadaret, L. & Liu, K. Machine learning in electrocardiography and echocardiography: Technological advances in clinical cardiology. Curr. Cardiol. Rep. 22(12), 168 (2020).

    Google Scholar 

  10. Zhou, F.-Y., Jin, L.-P. & Dong, J. Premature ventricular contraction detection combining deep neural networks and rules inference. Artif. Intell. Med. 79, 42–51 (2017).

    Google Scholar 

  11. Jangra, M., Dhull, S., Singh, K., Singh, A. & Cheng, X. O-Wcnn: An optimized integration of spatial and spectral feature map for arrhythmia classification. Complex Intell. Syst. 9, 2685–2698 (2021).

  12. Sakli, N. et al. ResNet-50 for 12-lead electrocardiogram automated diagnosis. Comput. Intell. Neurosci. 2022, 7617551 (2022).

    Google Scholar 

  13. Haleem, M. et al. Time adaptive ECG driven cardiovascular disease detector. Biomed. Signal Process. Control 70, 102968 (2021).

    Google Scholar 

  14. Zhang, X. et al. Automated detection of cardiovascular disease by electrocardiogram signal analysis: A deep learning system. Cardiovasc. Diagn. Ther. 10(2), 227–235 (2020).

    Google Scholar 

  15. Xiao, H. et al. Big data, extracting insights, comprehension, and analytics in cardiology: an overview. J. Healthc. Eng. 2021(1), 6635463 (2021).

    Google Scholar 

  16. Li, C. et al. DeepECG, Image-based electrocardiogram interpretation with deep convolutional neural networks. Biomed. Signal Process. Control 69, 102824 (2021).

    Google Scholar 

  17. Lih, O. et al. Comprehensive electrocardiographic diagnosis based on deep learning. Artif. Intell. Med. 103, 101789 (2020).

    Google Scholar 

  18. Jahmunah, V., Ng, E., San, T. & Acharya, U. Automated detection of coronary artery disease, myocardial infarction and congestive heart failure using GaborCNN model with ECG signals. Comput. Biol. Med. 134, 104457 (2021).

    Google Scholar 

  19. Shen, Y. et al. Risk prediction for cardiovascular disease using ECG data in the China Kadoorie Biobank. Proc. Annu. Int. Conf. IEEE Eng. Med. Biol. Soc., pp. 2419–2422, (2016).

  20. Smigiel, S. ECG classification using orthogonal matching pursuit and machine learning. Sensors 22(13), 4960 (2022).

  21. Wang, D., Meng, Q., Chen, D., Zhang, H. & Xu, L. Automatic detection of arrhythmia based on multi-resolution representation of ECG signal. Sensors 20(6), 1579 (2020).

  22. Sangamesh, H., Cheripelli, R. & Nijaguna, G. S. Reconceiving the edge intelligence based IoT devices for an effective classification of ECG systems. J. Smat Internet Things (JSIoT) 2024(02), 79–92 (2024).

    Google Scholar 

  23. Yildirim, O., Plawiak, P., Tan, R. & Acharya, U. Arrhythmia detection using deep convolutional neural network with long-duration ECG signals. Comput. Biol. Med. 102, 411–420 (2018).

    Google Scholar 

  24. Saboor, A. et al. A method for improving prediction of human heart disease using machine learning algorithms. Mobile Inf. Syst. 2022(1), 1410169 (2022).

    Google Scholar 

  25. Deng, Y. et al. ST-Net: Synthetic ECG tracings for diagnosing various cardiovascular diseases. Biomed. Signal Process. Control 61, 101997 (2020).

    Google Scholar 

  26. Karthik, S., Santhosh, M., Kavitha, M. & Paul, A. Automated deep learning based cardiovascular disease diagnosis using ECG signals. Comput. Syst. Sci. Eng. 42(1), 183–199 (2022).

    Google Scholar 

  27. Ibrahim, L., Mesinovic, M., Yang, K. & Eid, M. Explainable prediction of acute myocardial infarction using machine learning and Shapley values. IEEE Access 8, 210410–210417 (2020).

  28. Ambekar, S. & Phalnikar, R. Disease risk prediction by using convolutional neural network. In: Proc. 4th Int. Conf. Comput. Commun. Control Autom. (ICCUBEA), pp. 1–5, (2018).

  29. Ramprakash, P., Sarumathi, R., Mowriya, R. & Nithyavishnupriya, S. Heart disease prediction using deep neural network. In: Proc. Int. Conf. Inventive Comput. Technol. (ICICT), pp. 666–670 (2020).

  30. Mohan, S., Thirumalai, C. & Srivastava, G. Effective heart disease prediction using hybrid machine learning techniques. IEEE Access 7, 81542–81554 (2019).

  31. Shah, D., Patel, S. & Bharti, S. K. Heart disease prediction using machine learning techniques. SN Comput. Sci. 1(6), 345 (2020).

    Google Scholar 

  32. Yadav, K. K., Sharma, A. & Badholia, A. Heart disease prediction using machine learning techniques. Inf. Technol. Ind. 9(1), 207–214 (2021).

    Google Scholar 

  33. Tama, B. A., Im, S. & Lee, S. Improving an intelligent detection system for coronary heart disease using a two-tier classifier ensemble. Biomed. Res. Int. 2020, 9816142 (2020).

    Google Scholar 

  34. Pan, Y., Fu, M., Cheng, B., Tao, X. & Guo, J. Enhanced deep learning assisted convolutional neural network for heart disease prediction on the Internet of Medical Things platform. IEEE Access 8, 189503–189512 (2020).

  35. Fitriyani, N. L., Syafrudin, M., Alfian, G. & Rhee, J. HDPM: An effective heart disease prediction model for a clinical decision support system. IEEE Access 8, 133034–133050 (2020).

  36. Dai, H., Hwang, H.-G. & Tseng, V. S. Convolutional neural network-based automatic screening tool for cardiovascular diseases using different intervals of ECG signals. Comput. Methods Progr. Biomed. 203, 106035 (2021).

    Google Scholar 

  37. Zacarias, H. et al. ECG forecasting system based on long short-term memory. Bioengineering 11(1), 89 (2024).

  38. Yao, J. et al. Combining rhythm information between heartbeats and BiLSTM-treg algorithm for intelligent beat classification of arrhythmia. J. Healthc. Eng. 2021, 8642576 (2021).

    Google Scholar 

  39. Tadesse, G. et al. DeepMI: Deep multi-lead ECG fusion for identifying myocardial infarction and its occurrence-time. Artif. Intell. Med. 121, 102192 (2021).

    Google Scholar 

  40. Toma, T. I. & Choi, S. A parallel cross convolutional recurrent neural network for automatic imbalanced ECG arrhythmia detection with continuous wavelet transform. Sensors 22(19), 7396 (2022).

  41. Wani, N. A., Kumar, R. & Bedi, J. DeepXplainer: An interpretable deep learning based approach for lung cancer detection using explainable artificial intelligence. Comput. Methods Progr. Biomed. 243, 107879 (2024).

    Google Scholar 

  42. Wani, N. A. et al. Synergizing fusion modeling for accurate cardiac prediction through explainable artificial intelligence. IEEE Trans. Consum. Electron. 71(1), 1504–1512 (2025).

    Google Scholar 

  43. Saharan, S. et al. A deep learning and explainable artificial intelligence based scheme for breast cancer detection. Sci. Rep. 15, 32125 (2025).

    Google Scholar 

  44. Hu, R. et al. A transformer-based deep neural network for arrhythmia detection using continuous ECG signals. Comput. Biol. Med. 144, (2022).

  45. Shi, S. & Liu, W. B2-ViT Net: Broad vision transformer network with broad attention for seizure prediction. IEEE Trans. Neural Syst. Rehabil. Eng. 32, 178–188 (2023).

    Google Scholar 

  46. Jahangir, R. et al. ECG-based heart arrhythmia classification using feature engineering and a hybrid stacked machine learning. BMC Cardiovasc Disord 25, 260 (2025).

    Google Scholar 

Download references

Funding

This research work is supported by the Ministry of Higher Education (MOHE) under the 2023 Translational Research Program for the Energy Sustainability Focus Area (Project ID: MMUE/240001), the 2024 ASEAN IVO (Project ID: 2024-02), and Multimedia University, Malaysia.

Author information

Authors and Affiliations

  1. University of Engineering and Technology, Peshawar, Pakistan

    M. Khurram Umair

  2. National University of Sciences Technology (NUST), Islamabad, Pakistan

    Rabbia Waheed

  3. Department of Software Engineering, College of Computer Science and Engineering University of Hail, Hail City, Saudi Arabia

    Muhammad Faisal Abrar

  4. School of Computing, Engineering and Physical Sciences, University of the West of Scotland, Paisley, PA1 2BE, UK

    Sikandar Ali

  5. Scotland Academy, Wuxi Taihu University, Wuxi, 214064, China

    Sikandar Ali

  6. Faculty of Artificial Intelligence and Engineering, Multimedia University, Cyberjaya, 63100, Malaysia

    It Ee Lee

  7. Centre for Smart Systems and Automation, COE for Robotics and Sensing Technologies, Multimedia University, Cyberjaya, 63100, Selangor, Malaysia

    It Ee Lee

  8. Faculty of Computer Studies, Arab Open University-Bahrain, A’ali, 18211, Bahrain

    Salman Jan

  9. Faculty of Computing and Informatics, Multimedia University, Cyberjaya, 63100, Selangor, Malaysia

    Salman Jan

  10. College of Technical Engineering, The Islamic University, Najaf, 54001, Iraq

    Farah Shaheen

Authors
  1. M. Khurram Umair
    View author publications

    Search author on:PubMed Google Scholar

  2. Rabbia Waheed
    View author publications

    Search author on:PubMed Google Scholar

  3. Muhammad Faisal Abrar
    View author publications

    Search author on:PubMed Google Scholar

  4. Sikandar Ali
    View author publications

    Search author on:PubMed Google Scholar

  5. It Ee Lee
    View author publications

    Search author on:PubMed Google Scholar

  6. Salman Jan
    View author publications

    Search author on:PubMed Google Scholar

  7. Farah Shaheen
    View author publications

    Search author on:PubMed Google Scholar

Contributions

Conceptualization, M.K.U; writing-original draft preparation, M.K.U. and R.W; Administration and Validation, M.F.A., and S.A.; Software, R.W.; Visualization, M.K.U.; Resources, R.W.; Supervision, S.A; Funding, I.E.L; writing-review and editing, M.F.A., F.A, S.A, S. J, and F. S; All authors have read and agreed to the published version of the paper.

Corresponding authors

Correspondence to Sikandar Ali or It Ee Lee.

Ethics declarations

Competing interests

The authors declare no competing interests.

Additional information

Publisher’s note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Umair, M.K., Waheed, R., Abrar, M.F. et al. Time series electrocardiography (ECG) data for early prediction of cardiac arrest. Sci Rep (2026). https://doi.org/10.1038/s41598-026-35788-9

Download citation

  • Received: 21 August 2025

  • Accepted: 08 January 2026

  • Published: 18 February 2026

  • DOI: https://doi.org/10.1038/s41598-026-35788-9

Share this article

Anyone you share the following link with will be able to read this content:

Sorry, a shareable link is not currently available for this article.

Provided by the Springer Nature SharedIt content-sharing initiative

Download PDF

Advertisement

Explore content

  • Research articles
  • News & Comment
  • Collections
  • Subjects
  • Follow us on Facebook
  • Follow us on X
  • Sign up for alerts
  • RSS feed

About the journal

  • About Scientific Reports
  • Contact
  • Journal policies
  • Guide to referees
  • Calls for Papers
  • Editor's Choice
  • Journal highlights
  • Open Access Fees and Funding

Publish with us

  • For authors
  • Language editing services
  • Open access funding
  • Submit manuscript

Search

Advanced search

Quick links

  • Explore articles by subject
  • Find a job
  • Guide to authors
  • Editorial policies

Scientific Reports (Sci Rep)

ISSN 2045-2322 (online)

nature.com sitemap

About Nature Portfolio

  • About us
  • Press releases
  • Press office
  • Contact us

Discover content

  • Journals A-Z
  • Articles by subject
  • protocols.io
  • Nature Index

Publishing policies

  • Nature portfolio policies
  • Open access

Author & Researcher services

  • Reprints & permissions
  • Research data
  • Language editing
  • Scientific editing
  • Nature Masterclasses
  • Research Solutions

Libraries & institutions

  • Librarian service & tools
  • Librarian portal
  • Open research
  • Recommend to library

Advertising & partnerships

  • Advertising
  • Partnerships & Services
  • Media kits
  • Branded content

Professional development

  • Nature Awards
  • Nature Careers
  • Nature Conferences

Regional websites

  • Nature Africa
  • Nature China
  • Nature India
  • Nature Japan
  • Nature Middle East
  • Privacy Policy
  • Use of cookies
  • Legal notice
  • Accessibility statement
  • Terms & Conditions
  • Your US state privacy rights
Springer Nature

© 2026 Springer Nature Limited

Nature Briefing AI and Robotics

Sign up for the Nature Briefing: AI and Robotics newsletter — what matters in AI and robotics research, free to your inbox weekly.

Get the most important science stories of the day, free in your inbox. Sign up for Nature Briefing: AI and Robotics