Scalogram-based explainable deep learning for classifying ischemia-related and conduction-related ECG patterns
Abstract
Ischemic heart disease (IHD) and left bundle branch block (LBBB) can produce overlapping electrocardiogram (ECG) patterns. This study compared time–frequency ECG representations with conventional features and raw ECG images for classification and characterized model behavior. We analyzed 10,788 samples from PTB-XL and CPSC-2018 using study-defined healthy control (HC), IHD, and LBBB groups. Thirty-two morphological, statistical, and frequency-based features were used to train six machine-learning models, while convolutional neural networks (CNNs) were trained using raw ECG images and continuous wavelet transform (CWT) scalograms. A held-out test set comprised 3,237 recordings from distinct PTB-XL participants. Model behavior was examined through single-lead evaluation and frequency-band perturbation; the latter included training and test samples and measured posterior-probability changes after masking frequency-associated image regions. The best scalogram-based models achieved 94% accuracy, compared with 84% for machine learning and 89% for the raw-ECG-image model. V5 and V6 were the highest-performing individual leads. Perturbation revealed greater posterior-probability changes after masking regions corresponding to approximately 1.5–3 and 5–10 Hz in HC and 18–33 Hz in LBBB, whereas IHD showed broader spectral sensitivity. Frequency-region effects were significant within each group (p < 0.001). Scalogram-based CNNs achieved superior performance in classifying the study-defined categories, minimizing cross-misclassification in distinguishing IHD from LBBB. Lead-wise and frequency-band analyses provided complementary quantitative information about model behavior. External and prospective validation is required to establish generalizability and clinical utility.
Keywords
Ischemic heart disease left bundle branch block CNN explainable AI ECG deep learningDownloads
References
World Health Organization. World health statistics 2022: monitoring health for the SDGs, sustainable development goals. Geneva: World Health Organization; 2022. Available from: https://www.who.int/publications/i/item/9789240051157
Ralapanawa U, Sivakanesan R. Epidemiology and the magnitude of coronary artery disease and acute coronary syndrome: a narrative review. J Epidemiol Glob Health. 2021;11(2):169–77. https://doi.org/10.2991/jegh.k.201217.001
Malakar AK, Choudhury D, Halder B, Paul P, Uddin A, Chakraborty S. A review on coronary artery disease, its risk factors, and therapeutics. J Cell Physiol. 2019;234(10):16812–23. https://doi.org/10.1002/jcp.28350
Ahmad FB, Anderson RN. The leading causes of death in the US for 2020. JAMA. 2021;325(18):1829–30. https://doi.org/10.1001/jama.2021.5469
Tsao CW, Aday AW, Almarzooq ZI, Anderson CAM, Arora P, Avery CL, et al. Heart disease and stroke statistics–2023 update: a report from the American Heart Association. Circulation. 2023;147(8):e93–621. https://doi.org/10.1161/cir.0000000000001123
Liu YL, Lin CS, Cheng CC, Lin C. A deep learning algorithm for detecting acute pericarditis by electrocardiogram. J Pers Med. 2022;12(7):1150. https://doi.org/10.3390/jpm12071150
Al-Zaiti SS, Martin-Gill C, Zègre-Hemsey JK, Bouzid Z, Faramand Z, Alrawashdeh MO, et al. Machine learning for ECG diagnosis and risk stratification of occlusion myocardial infarction. Nat Med. 2023;29(7):1804–13. https://doi.org/10.1038/s41591-023-02396-3
Thygesen K, Alpert JS, Jaffe AS, Chaitman BR, Bax JJ, Morrow DA, et al. Fourth universal definition of myocardial infarction (2018). Circulation. 2018;138(20):e618–51. https://doi.org/10.1161/cir.0000000000000617
Macfarlane PW. New ECG criteria for acute myocardial infarction in patients with left bundle branch block. J Am Heart Assoc. 2020;9(14):e017119. https://doi.org/10.1161/jaha.120.017119
Di Marco A, Rodriguez M, Cinca J, Bayes-Genis A, Ortiz-Perez JT, Ariza-Solé A, et al. New electrocardiographic algorithm for the diagnosis of acute myocardial infarction in patients with left bundle branch block. J Am Heart Assoc. 2020;9(14):e015573. https://doi.org/10.1161/jaha.119.015573
Goldberger AL, Amaral LAN, Glass L, Hausdorff JM, Ivanov PC, Mark RG, et al. PhysioBank, PhysioToolkit, and PhysioNet: components of a new research resource for complex physiologic signals. Circulation. 2000;101(23):e215–20. https://doi.org/10.1161/01.cir.101.23.e215
Liu F, Liu C, Zhao L, Zhang X, Wu X, Xu X, et al. An open access database for evaluating the algorithms of electrocardiogram rhythm and morphology abnormality detection. J Med Imaging Health Inform. 2018;8(7):1368–73. https://doi.org/10.1166/jmihi.2018.2442
Wagner P, Strodthoff N, Bousseljot RD, Kreiseler D, Lunze FI, Samek W, et al. PTB-XL, a large publicly available electrocardiography dataset. Sci Data. 2020;7(1):154. https://doi.org/10.1038/s41597-020-0495-6
Padmavathi K, Ramakrishna KS. Classification of ECG signal during atrial fibrillation using autoregressive modeling. Procedia Comput Sci. 2015;46:53–9. https://doi.org/10.1016/j.procs.2015.01.053
Shannon C. A mathematical theory of communication (1948). In: Lewis HR, editor. Ideas that created the future: classic papers of computer science. Cambridge (MA): MIT Press; 2021. p. 121–34. https://doi.org/10.7551/mitpress/12274.003.0014
Dash S, Chon KH, Lu S, Raeder EA. Automatic real time detection of atrial fibrillation. Ann Biomed Eng. 2009;37(9):1701–9. https://doi.org/10.1007/s10439-009-9740-z
Lin Z, Gao Y, Chen Y, Ge Q, Mahara G, Zhang J. Automated detection of myocardial infarction using robust features extracted from 12-lead ECG. Signal Image Video Process. 2020;14(5):857–65. https://doi.org/10.1007/s11760-019-01617-y
Dhar P, Dutta S, Mukherjee V. Cross-wavelet assisted convolution neural network (AlexNet) approach for phonocardiogram signals classification. Biomed Signal Process Control. 2021;63:102142. https://doi.org/10.1016/j.bspc.2020.102142
Uslu S, Ozturk N, Kucukseymen S, Ozdemir S. Left atrial overload detection in ECG using frequency domain features with machine learning and deep learning algorithms. Biomed Signal Process Control. 2023;85:104981. https://doi.org/10.1016/j.bspc.2023.104981
Vapnik V, Chapelle O. Bounds on error expectation for support vector machines. Neural Comput. 2000;12(9):2013–36. https://doi.org/10.1162/089976600300015042
Ishwaran H. The effect of splitting on random forests. Mach Learn. 2015;99(1):75–118. https://doi.org/10.1007/s10994-014-5451-2
Shrestha A, Mahmood A. Review of deep learning algorithms and architectures. IEEE Access. 2019;7:53040–65. https://doi.org/10.1109/access.2019.2912200
Kingma DP, Ba J. Adam: a method for stochastic optimization. arXiv [Preprint]. 2014;arXiv:1412.6980. https://doi.org/10.48550/arXiv.1412.6980
Uslu S, Nüzket T, Gürbüz M, Uysal H. Electrophysiological and kinesiological analysis of deep tendon reflex responses, importance of angular velocity. Med Biol Eng Comput. 2022;60(10):2917–29. https://doi.org/10.1007/s11517-022-02638-5
DeLong ER, DeLong DM, Clarke-Pearson DL. Comparing the areas under two or more correlated receiver operating characteristic curves: a nonparametric approach. Biometrics. 1988;44(3):837–45. https://doi.org/10.2307/2531595
Al-Zaiti S, Macleod R, van Dam P, Smith SW, Birnbaum Y. Emerging ECG methods for acute coronary syndrome detection: recommendations & future opportunities. J Electrocardiol. 2022;74:65–72. https://doi.org/10.1016/j.jelectrocard.2022.08.003
Yao J, Zhou Y, Yao Z, Meng Y, Yu W, Yang X, et al. A novel machine learning-derived four-gene signature predicts STEMI and post-STEMI heart failure. Biomol Biomed. 2024;24(2):423–33. https://doi.org/10.17305/bb.2023.9629
Herring N, Paterson DJ. ECG diagnosis of acute ischaemia and infarction: past, present and future. QJM. 2006;99(4):219–30. https://doi.org/10.1093/qjmed/hcl025
Jager F, Mark RG, Moody GB, Divjak S. Analysis of transient ST segment changes during ambulatory monitoring using the Karhunen–Loève transform. In: Computers in Cardiology 1992. Los Alamitos (CA): IEEE Computer Society Press; 1992. p. 691–4. https://doi.org/10.1109/cic.1992.269339
Adedinsewo D, Carter RE, Attia Z, Johnson P, Kashou AH, Dugan JL, et al. Artificial intelligence-enabled ECG algorithm to identify patients with left ventricular systolic dysfunction presenting to the emergency department with dyspnea. Circ Arrhythm Electrophysiol. 2020;13(8):e008437. https://doi.org/10.1161/CIRCEP.120.008437
McCarthy BD, Beshansky JR, D'Agostino RB, Selker HP. Missed diagnoses of acute myocardial infarction in the emergency department: results from a multicenter study. Ann Emerg Med. 1993;22(3):579–82. https://doi.org/10.1016/s0196-0644(05)81945-6
Masoudi FA, Magid DJ, Vinson DR, Tricomi AJ, Lyons EE, Crounse L, et al. Implications of the failure to identify high-risk electrocardiogram findings for the quality of care of patients with acute myocardial infarction: results of the Emergency Department Quality in Myocardial Infarction (EDQMI) study. Circulation. 2006;114(15):1565–71. https://doi.org/10.1161/CIRCULATIONAHA.106.623652
Wu J, Gale CP, Hall M, Dondo TB, Metcalfe E, Oliver G, et al. Editor's choice – impact of initial hospital diagnosis on mortality for acute myocardial infarction: a national cohort study. Eur Heart J Acute Cardiovasc Care. 2018;7(2):139–48. https://doi.org/10.1177/2048872616661693
Xiong P, Lee SMY, Chan G. Deep learning for detecting and locating myocardial infarction by electrocardiogram: a literature review. Front Cardiovasc Med. 2022;9:860032. https://doi.org/10.3389/fcvm.2022.860032
Acharya UR, Fujita H, Lih OS, Adam M, Tan JH, Chua CK. Automated detection of coronary artery disease using different durations of ECG segments with convolutional neural network. Knowl Based Syst. 2017;132:62–71. https://doi.org/10.1016/j.knosys.2017.06.003
Zhang G, Si Y, Yang W, Wang D. A robust multilevel DWT densely network for cardiovascular disease classification. Sensors (Basel). 2020;20(17):4777. https://doi.org/10.3390/s20174777
Liu W, Huang Q, Chang S, Wang H, He J. Multiple-feature-branch convolutional neural network for myocardial infarction diagnosis using electrocardiogram. Biomed Signal Process Control. 2018;45:22–32. https://doi.org/10.1016/j.bspc.2018.05.013
Makimoto H, Höckmann M, Lin T, Glöckner D, Gerguri S, Clasen L, et al. Performance of a convolutional neural network derived from an ECG database in recognizing myocardial infarction. Sci Rep. 2020;10(1):8445. https://doi.org/10.1038/s41598-020-65105-x
Al-Naami B, Fraihat H, Abu Owida H, Al-Hamad K, De Fazio R, Visconti P. Automated detection of left bundle branch block from ECG signal utilizing the maximal overlap discrete wavelet transform with ANFIS. Computers. 2022;11(6):93. https://doi.org/10.3390/computers11060093
Martín-Yebra A, Martínez JP. Automatic diagnosis of strict left bundle branch block using a wavelet-based approach. PLoS One. 2019;14(2):e0212971. https://doi.org/10.1371/journal.pone.0212971
Macas B, Garrigós J, Martínez JJ, Ferrández JM, Bonomini MP. An explainable machine learning system for left bundle branch block detection and classification. Integr Comput-Aided Eng. 2024;31(1):43–58. https://doi.org/10.3233/ica-230719
Selvaraju RR, Cogswell M, Das A, Vedantam R, Parikh D, Batra D. Grad-CAM: visual explanations from deep networks via gradient-based localization. Int J Comput Vis. 2020;128(2):336–59. https://doi.org/10.1007/s11263-019-01228-7
Siontis KC, Suárez AB, Sehrawat O, Ackerman MJ, Attia ZI, Friedman PA, et al. Saliency maps provide insights into artificial intelligence-based electrocardiography models for detecting hypertrophic cardiomyopathy. J Electrocardiol. 2023;81:286–91. https://doi.org/10.1016/j.jelectrocard.2023.07.002
Sörnmo L, Laguna P. Bioelectrical signal processing in cardiac and neurological applications. Burlington (MA): Elsevier Academic Press; 2005. https://doi.org/10.1016/b978-0-12-437552-9.x5000-4
Chamola V, Hassija V, Sulthana AR, Ghosh D, Dhingra D, Sikdar B. A review of trustworthy and explainable artificial intelligence (XAI). IEEE Access. 2023;11:78994–9015. https://doi.org/10.1109/access.2023.3294569
Salih AM, Galazzo IB, Gkontra P, Rauseo E, Lee AM, Lekadir K, et al. A review of evaluation approaches for explainable AI with applications in cardiology. Artif Intell Rev. 2024;57(9):240. https://doi.org/10.1007/s10462-024-10852-w
Sonaglioni A, Nicolosi GL, Rigamonti E, Lombardo M, Gensini GF, Ambrosio G. Does chest shape influence exercise stress echocardiographic results in patients with suspected coronary artery disease? Intern Emerg Med. 2022;17(1):101–12. https://doi.org/10.1007/s11739-021-02773-1
Sonaglioni A, Rigamonti E, Nicolosi GL, Lombardo M. Appropriate use criteria implementation with modified Haller index for predicting stress echocardiographic results and outcome in a population of patients with suspected coronary artery disease. Int J Cardiovasc Imaging. 2021;37(10):2917–30. https://doi.org/10.1007/s10554-021-02274-4
Clifford GD. ECG statistics, noise, artifacts, and missing data. In: Clifford GD, Azuaje F, McSharry PE, editors. Advanced methods and tools for ECG data analysis. Boston (MA): Artech House; 2006. p. 55–99.
Jang YI, Sim JY, Yang JR, Kwon NK. The optimal selection of mother wavelet function and decomposition level for denoising of DCG signal. Sensors (Basel). 2021;21(5):1851. https://doi.org/10.3390/s21051851
Exarchos TP, Papaloukas C, Fotiadis DI, Michalis LK. An association rule mining-based methodology for automated detection of ischemic ECG beats. IEEE Trans Biomed Eng. 2006;53(8):1531–40. https://doi.org/10.1109/TBME.2006.873753
Goletsis Y, Papaloukas C, Fotiadis DI, Likas A, Michalis LK. Automated ischemic beat classification using genetic algorithms and multicriteria decision analysis. IEEE Trans Biomed Eng. 2004;51(10):1717–25. https://doi.org/10.1109/TBME.2004.828033
Papaloukas C, Fotiadis DI, Likas A, Michalis LK. An ischemia detection method based on artificial neural networks. Artif Intell Med. 2002;24(2):167–78. https://doi.org/10.1016/S0933-3657(01)00100-2
Article files
Additional Files
Publication details
- Citation
- Advance online
- Language
- EN
- License
- CC BY 4.0
- Section
- Research article
How to cite (Vancouver)
Uslu S, Ozdemir S. Scalogram-based explainable deep learning for classifying ischemia-related and conduction-related ECG patterns. Biomol Biomed. 2026. https://doi.org/10.17305/bb.2026.15146





