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
MM-GradCAM: an improved multimodal GradCAM method with 1D and 2D ECG data for detection of cardiac arrhythmia
Download PDF
Download PDF
  • Article
  • Open access
  • Published: 09 February 2026

MM-GradCAM: an improved multimodal GradCAM method with 1D and 2D ECG data for detection of cardiac arrhythmia

  • Fatma Murat Duranay1,
  • Ender Murat2,
  • Özal Yıldırım3,
  • Yakup Demir1,
  • Ru-San Tan4,5,
  • Niranjana Sampathila6 &
  • …
  • U. Rajendra Acharya7,8 

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

  • 484 Accesses

  • Metrics details

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
  • Diseases
  • Health care
  • Mathematics and computing
  • Medical research

Abstract

As cardiac arrhythmia remains one of the leading causes of death worldwide, early and accurate diagnosis of cardiac arrhythmia is critical to improving patient outcomes. Electrocardiogram (ECG) analysis plays a critical role in the diagnosis of these diseases, and recent advances in deep learning have led to significant advances in automated ECG interpretation. However, the “black box” nature of these models limits clinical confidence and highlights the need for explainable artificial intelligence methods. This study presents an innovative MM-GradCAM method that combines two different data formats, providing explainability for both 1D ECG signal and 2D ECG image data. Using a dataset of more than 10,000 patients, a 17-layer CNN model capable of four-class arrhythmia detection was developed and separate explainability outputs were obtained for each data form. The resulting explainability maps were evaluated by a cardiologist and the interpretability and clinical significance of the model were verified. The signal form achieved 93.07% accuracy, while the image form achieved 97.44% accuracy. As a pioneering approach for explainability in medical diagnosis, MM-GradCAM has the potential to increase reliability and transparency in medical AI applications.

Similar content being viewed by others

Automated multilabel diagnosis on electrocardiographic images and signals

Article Open access 24 March 2022

An explainable deep learning framework for trustworthy arrhythmia detection from ECG signals

Article Open access 11 November 2025

Explaining deep neural networks for knowledge discovery in electrocardiogram analysis

Article Open access 26 May 2021

Data availability

The dataset utilized in this study originates from the article "A 12-lead electrocardiogram database for arrhythmia research covering more than 10,000 patients" published in Scientific Data (Zheng et al., 2020). This dataset includes electrocardiogram (ECG) recordings of 10,646 patients, annotated with rhythm labels and additional cardiovascular conditions by professional experts. The dataset is publicly available and can be accessed via the figshare repository at: https://doi.org/10.6084/m9.figshare.c.4560497.v2

Code availability

All source code and implementations for the MM-GradCAM framework (including 1D CNN, 2D CNN and fusion modules) are publicly available on GitHub at https://github.com/FatmaMurat/MM_GradCAM to enable full transparency and reproducibility of our study.

References

  1. Huang, J., Chen, B., Yao, B. & He, W. ECG arrhythmia classification using STFT-based spectrogram and convolutional neural network. IEEE Access https://doi.org/10.1109/ACCESS.2019.2928017 (2019).

    Google Scholar 

  2. Yao, Q., Wang, R., Fan, X., Liu, J. & Li, Y. Multi-class Arrhythmia detection from 12-lead varied-length ECG using attention-based time-incremental convolutional neural network. Inf. Fusion https://doi.org/10.1016/j.inffus.2019.06.024 (2020).

    Google Scholar 

  3. Hannun, A. Y. et al. Cardiologist-level arrhythmia detection and classification in ambulatory electrocardiograms using a deep neural network. Nat. Med. https://doi.org/10.1038/s41591-018-0268-3 (2019).

    Google Scholar 

  4. Murat, F. et al. Application of deep learning techniques for heartbeats detection using ECG signals-analysis and review. Comput. Biol. Med. 120, 103726. https://doi.org/10.1016/j.compbiomed.2020.103726 (2020).

    Google Scholar 

  5. Yildirim, Ö. A novel wavelet sequences based on deep bidirectional LSTM network model for ECG signal classification. Comput. Biol. Med. https://doi.org/10.1016/j.compbiomed.2018.03.016 (2018).

    Google Scholar 

  6. Jiang, J., Zhang, H., Pi, D. & Dai, C. A novel multi-module neural network system for imbalanced heartbeats classification. Expert Syst. with Appl. X. https://doi.org/10.1016/j.eswax.2019.100003 (2019).

    Google Scholar 

  7. Oh, S. L., Ng, E. Y. K., Tan, R. S. & Acharya, U. R. Automated diagnosis of arrhythmia using combination of CNN and LSTM techniques with variable length heart beats. Comput. Biol. Med. https://doi.org/10.1016/j.compbiomed.2018.06.002 (2018).

    Google Scholar 

  8. Acharya, U. R. et al. Automated detection of arrhythmias using different intervals of tachycardia ECG segments with convolutional neural network. Inf. Sci. (Ny) 405, 81–90. https://doi.org/10.1016/j.ins.2017.04.012 (2017).

    Google Scholar 

  9. Selvaraju, R. R., Cogswell, M., Das, A., Vedantam, R., Parikh, D. & Batra, D. Grad-Cam: Visual explanations from deep networks via gradient-based localization. In Proceedings of the IEEE International Conference on Computer Vision (2017)

  10. Yoo, J., Jun, T. J. & Kim, Y. H. xECGNet: Fine-tuning attention map within convolutional neural network to improve detection and explainability of concurrent cardiac arrhythmias. Comput. Methods Programs Biomed. 208, 106281. https://doi.org/10.1016/j.cmpb.2021.106281 (2021).

    Google Scholar 

  11. Ozturk, T. et al. Automated detection of COVID-19 cases using deep neural networks with X-ray images. Comput. Biol. Med. 121, 103792. https://doi.org/10.1016/j.compbiomed.2020.103792 (2020).

    Google Scholar 

  12. Alhusseini, M. I. et al. Machine learning to classify intracardiac electrical patterns during atrial fibrillation: Machine learning of atrial fibrillation. Circ. Arrhythmia Electrophysiol. 13, E008160. https://doi.org/10.1161/CIRCEP.119.008160 (2020).

    Google Scholar 

  13. Kuo, B. I. et al. Keratoconus screening based on deep learning approach of corneal topography. Transl. Vis Sci. Technol. 9, 1–11. https://doi.org/10.1167/tvst.9.2.53 (2020).

    Google Scholar 

  14. Brunese, L., Mercaldo, F., Reginelli, A. & Santone, A. Explainable deep learning for pulmonary disease and coronavirus COVID-19 detection from X-rays. Comput. Methods Programs Biomed. 196, 105608. https://doi.org/10.1016/j.cmpb.2020.105608 (2020).

    Google Scholar 

  15. Murat-Duranay, F. et al. Arrhythmia detection in multi-channel ECG images: vision transformer and explainable approaches. Knowl.-Based Syst. 331, 114889. https://doi.org/10.1016/j.knosys.2025.114889 (2025).

    Google Scholar 

  16. Wang, J. et al. Automated ECG classification using a non-local convolutional block attention module. Comput. Methods Programs Biomed. https://doi.org/10.1016/j.cmpb.2021.106006 (2021).

    Google Scholar 

  17. Kim, J. K., Jung, S., Park, J. & Han, S. W. Arrhythmia detection model using modified DenseNet for comprehensible Grad-CAM visualization. Biomed. Signal Process. Control. 73, 103408. https://doi.org/10.1016/j.bspc.2021.103408 (2022).

    Google Scholar 

  18. Kondo, T. et al. Prediction of short-term mortality of cardiac care unit patients using image-transformed ECG waveforms. IEEE J. Transl. Eng. Heal. Med. 11, 191–198. https://doi.org/10.1109/JTEHM.2023.3250352 (2023).

    Google Scholar 

  19. Le, K. H. et al. LightX3ECG: A lightweight and eXplainable deep learning system for 3-lead electrocardiogram classification. Biomed. Signal Process. Control. 85, 104963. https://doi.org/10.1016/j.bspc.2023.104963 (2023).

    Google Scholar 

  20. Varandas, R., Gonçalves, B., Gamboa, H. & Vieira, P. Quantified explainability: Convolutional neural network focus assessment in arrhythmia detection. BioMedInformatics 2, 124–138. https://doi.org/10.3390/biomedinformatics2010008 (2022).

    Google Scholar 

  21. Zheng, J. et al. A 12-lead electrocardiogram database for arrhythmia research covering more than 10,000 patients. Sci. Data. https://doi.org/10.1038/s41597-020-0386-x (2020).

    Google Scholar 

  22. Cho, Y. et al. Artificial intelligence algorithm for detecting myocardial infarction using six-lead electrocardiography. Sci. Rep. 10, 1–10. https://doi.org/10.1038/s41598-020-77599-6 (2020).

    Google Scholar 

  23. Hicks, S. A. et al. Explaining deep neural networks for knowledge discovery in electrocardiogram analysis. Sci. Rep. 11, 1–11. https://doi.org/10.1038/s41598-021-90285-5 (2021).

    Google Scholar 

  24. Jahmunah, V., Ng, E. Y. K., Tan, R. S., Oh, S. L. & Acharya, U. R. Explainable detection of myocardial infarction using deep learning models with Grad-CAM technique on ECG signals. Comput. Biol. Med. https://doi.org/10.1016/j.compbiomed.2022.105550 (2022).

    Google Scholar 

  25. Anand, A., Kadian, T., Shetty, M. K. & Gupta, A. Explainable AI decision model for ECG data of cardiac disorders. Biomed. Signal Process. Control. 75, 103584. https://doi.org/10.1016/j.bspc.2022.103584 (2022).

    Google Scholar 

  26. Han, C., Sun, J., Bian, Y., Que, W. & Shi, L. Automated Detection and Localization of Myocardial Infarction With Interpretability Analysis Based on Deep Learning. IEEE Trans. Instrum. Meas. 72, 1–12. https://doi.org/10.1109/TIM.2023.3258521 (2023).

    Google Scholar 

  27. Ma, G. et al. Evaluating and visualizing the contribution of ECG characteristic waveforms for PPG-based blood pressure estimation. Micromachines 13, 1438. https://doi.org/10.3390/mi13091438 (2022).

    Google Scholar 

  28. Sangha, V. et al. Automated multilabel diagnosis on electrocardiographic images and signals. Nat. Commun. https://doi.org/10.1038/s41467-022-29153-3 (2022).

    Google Scholar 

  29. Fang, R., Lu, C. C., Chuang, C. T. & Chang, W. H. A visually interpretable detection method combines 3-D ECG with a multi-VGG neural network for myocardial infarction identification. Comput. Methods Programs Biomed. 219, 106762. https://doi.org/10.1016/j.cmpb.2022.106762 (2022).

    Google Scholar 

  30. Ao, R. & He, G. Image based deep learning in 12-lead ECG diagnosis. Front. Artif. Intell. https://doi.org/10.3389/frai.2022.1087370 (2023).

    Google Scholar 

  31. Makimoto, H. et al. Performance of a convolutional neural network derived from an ECG database in recognizing myocardial infarction. Sci. Rep. 10, 1–9. https://doi.org/10.1038/s41598-020-65105-x (2020).

    Google Scholar 

  32. Singh, P. & Sharma, A. Interpretation and classification of arrhythmia using deep convolutional network. IEEE Trans. Instrum. Meas. 71, 1–12. https://doi.org/10.1109/TIM.2022.3204316 (2022).

    Google Scholar 

  33. Loh, H. W. et al. Deep neural network technique for automated detection of ADHD and CD using ECG signal. Comput. Methods Programs Biomed. 241, 107775. https://doi.org/10.1016/j.cmpb.2023.107775 (2023).

    Google Scholar 

Download references

Funding

Open access funding provided by Manipal Academy of Higher Education, Manipal

Author information

Authors and Affiliations

  1. Department of Electrical and Electronics Engineering, Firat University, Elazığ, Turkey

    Fatma Murat Duranay & Yakup Demir

  2. Department of Cardiology, Health Sciences University Gülhane Training and Research Hospital, Ankara, Turkey

    Ender Murat

  3. Department of Artificial Intelligence and Data Engineering, Faculty of Engineering, Fırat University, Elazığ, Turkey

    Özal Yıldırım

  4. National Heart Centre, Singapore, Singapore

    Ru-San Tan

  5. Duke-NUS Medical School, Singapore, Singapore

    Ru-San Tan

  6. Manipal Institute of Technology, Manipal Academy of Higher Education, Manipal, 576104, India

    Niranjana Sampathila

  7. School of Mathematics, Physics and Computing, University of Southern Queensland, Springfield, Australia

    U. Rajendra Acharya

  8. Centre for Health Research, University of Southern Queensland, Springfield, Australia

    U. Rajendra Acharya

Authors
  1. Fatma Murat Duranay
    View author publications

    Search author on:PubMed Google Scholar

  2. Ender Murat
    View author publications

    Search author on:PubMed Google Scholar

  3. Özal Yıldırım
    View author publications

    Search author on:PubMed Google Scholar

  4. Yakup Demir
    View author publications

    Search author on:PubMed Google Scholar

  5. Ru-San Tan
    View author publications

    Search author on:PubMed Google Scholar

  6. Niranjana Sampathila
    View author publications

    Search author on:PubMed Google Scholar

  7. U. Rajendra Acharya
    View author publications

    Search author on:PubMed Google Scholar

Contributions

F.M.D. prepared and wrote the main manuscript text. E.M. interpreted and discussed the results from the medical perspective. Ö.Y. and Y.D. provided supervisory support during the study. R.-S.T. critically reviewed and refined the medical interpretations. N.S. and U.R.A. provided overall guidance, critical revisions, and expert supervision. All authors read and approved the final manuscript.

Corresponding author

Correspondence to Niranjana Sampathila.

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 4.0 International License, which permits use, sharing, adaptation, 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 changes were made. 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/4.0/.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Murat Duranay, F., Murat, E., Yıldırım, Ö. et al. MM-GradCAM: an improved multimodal GradCAM method with 1D and 2D ECG data for detection of cardiac arrhythmia. Sci Rep (2026). https://doi.org/10.1038/s41598-026-38654-w

Download citation

  • Received: 10 October 2025

  • Accepted: 30 January 2026

  • Published: 09 February 2026

  • DOI: https://doi.org/10.1038/s41598-026-38654-w

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

Keywords

  • ECG classification
  • GradCAM
  • Explainable AI (XAI)
  • Cardiac disorders
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