Submitted:
19 May 2024
Posted:
20 May 2024
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Related Work
2.1. ECG Signal Classification Methods
2.2. Strategies for Handling Imbalanced Datasets
2.3. Interpretability Analysis
2.4. Comparison with Existing Work
3. Materials and Methods
3.1. Dataset Description
3.2. Data Preprocessing
3.3. CNN Architecture Design
3.4. Experiments
3.4.1. Computing Environment
3.4.2. Model Evaluation Indicators
3.4.3. UMAP Dimensionality Reduction Visualization
3.4.4. SHAP Value Analysis
4. Results and Discussion
4.1. Model Training Process
4.2. Model Evaluation Indicators
4.3. Confusion Matrix
4.4. ROC Curve and AUC Value
4.5. Precision-Recall Curve
4.6. UMAP Analysis
4.7. SHAP Interpretability Analysis
4.8. Summary
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Chen, X.; Si, Y.; Zhang, Z.; Yang, W.; Feng, J. Improving Adversarial Robustness of ECG Classification Based on Lipschitz Constraints and Channel Activation Suppression. Sensors (Basel) 2024, 24. [Google Scholar] [CrossRef] [PubMed]
- Din, S.; Qaraqe, M.; Mourad, O.; Qaraqe, K.; Serpedin, E. ECG-based cardiac arrhythmias detection through ensemble learning and fusion of deep spatial-temporal and long-range dependency features. Artif Intell Med 2024, 150, 102818. [Google Scholar] [CrossRef] [PubMed]
- Zhou, F.; Li, J. ECG data enhancement method using generate adversarial networks based on Bi-LSTM and CBAM. Physiol Meas 2024, 45. [Google Scholar] [CrossRef] [PubMed]
- Healthcare Engineering, J.O. Retracted: Online Automatic Diagnosis System of Cardiac Arrhythmias Based on MIT-BIH ECG Database. J Healthc Eng 2023, 2023, 9873656. [Google Scholar] [CrossRef]
- Sengupta, S.; Anastasio, M.A. A Test Statistic Estimation-Based Approach for Establishing Self-Interpretable CNN-Based Binary Classifiers. IEEE Trans Med Imaging 2024, 43, 1753–1765. [Google Scholar] [CrossRef]
- Choukali, M.A.; Amirani, M.C.; Valizadeh, M.; Abbasi, A.; Komeili, M. Pseudo-class part prototype networks for interpretable breast cancer classification. Sci Rep 2024, 14, 10341. [Google Scholar] [CrossRef] [PubMed]
- Sanjana, K.; Sowmya, V.; Gopalakrishnan, E.A.; Soman, K.P. Explainable artificial intelligence for heart rate variability in ECG signal. Healthc Technol Lett 2020, 7, 146–154. [Google Scholar] [CrossRef] [PubMed]
- Armstrong, G.; Martino, C.; Rahman, G.; Gonzalez, A.; Vazquez-Baeza, Y.; Mishne, G.; Knight, R. Uniform Manifold Approximation and Projection (UMAP) Reveals Composite Patterns and Resolves Visualization Artifacts in Microbiome Data. mSystems 2021, 6, e0069121. [Google Scholar] [CrossRef] [PubMed]
- Weijler, L.; Kowarsch, F.; Wodlinger, M.; Reiter, M.; Maurer-Granofszky, M.; Schumich, A.; Dworzak, M.N. UMAP Based Anomaly Detection for Minimal Residual Disease Quantification within Acute Myeloid Leukemia. Cancers (Basel) 2022, 14. [Google Scholar] [CrossRef]
- Du, Y.; Sui, J.; Wang, S.; Fu, R.; Jia, C. Motor intent recognition of multi-feature fusion EEG signals by UMAP algorithm. Med Biol Eng Comput 2023, 61, 2665–2676. [Google Scholar] [CrossRef]
- Wang, X.; Wang, W.; Ren, H.; Li, X.; Wen, Y. Prediction and analysis of risk factors for diabetic retinopathy based on machine learning and interpretable models. Heliyon 2024, 10, e29497. [Google Scholar] [CrossRef] [PubMed]
- Uddin, M.J.; Fan, J. Interpretable Machine Learning Framework to Predict the Glass Transition Temperature of Polymers. Polymers (Basel) 2024, 16. [Google Scholar] [CrossRef] [PubMed]
- Ehiro, T. Feature importance-based interpretation of UMAP-visualized polymer space. Mol Inform 2023, 42, e2300061. [Google Scholar] [CrossRef] [PubMed]
- Ma, K. Integrated hybrid modeling and SHAP (SHapley Additive exPlanations) to predict and explain the adsorption properties of thermoplastic polyurethane (TPU) porous materials. RSC Adv 2024, 14, 10348–10357. [Google Scholar] [CrossRef] [PubMed]
- Mantravadi, A.; Saini, S.; Mittal, S.; Shah, S.; Devi, S.; Singhal, R. CLINet: A novel deep learning network for ECG signal classification. J Electrocardiol 2024, 83, 41–48. [Google Scholar] [CrossRef] [PubMed]
- Mallikarjunamallu, K.; Syed, K. Arrhythmia classification for non-experts using infinite impulse response (IIR)-filter-based machine learning and deep learning models of the electrocardiogram. PeerJ Comput Sci 2024, 10, e1774. [Google Scholar] [CrossRef] [PubMed]
- Lin, M.; Hong, Y.; Hong, S.; Zhang, S. Discrete Wavelet Transform based ECG classification using gcForest: A deep ensemble method. Technol Health Care 2024. [Google Scholar] [CrossRef] [PubMed]
- Mandala, S.; Rizal, A.; Adiwijaya; Nurmaini, S. ; Suci Amini, S.; Almayda Sudarisman, G.; Wen Hau, Y.; Hanan Abdullah, A. An improved method to detect arrhythmia using ensemble learning-based model in multi lead electrocardiogram (ECG). PLoS One 2024, 19, e0297551. [Google Scholar] [CrossRef] [PubMed]
- Lin, L.S.; Kao, C.H.; Li, Y.J.; Chen, H.H.; Chen, H.Y. Improved support vector machine classification for imbalanced medical datasets by novel hybrid sampling combining modified mega-trend-diffusion and bagging extreme learning machine model. Math Biosci Eng 2023, 20, 17672–17701. [Google Scholar] [CrossRef]
- Look, C.S.; Teixayavong, S.; Djarv, T.; Ho, A.F.; Tan, K.B.; Ong, M.E. Improved interpretable machine learning emergency department triage tool addressing class imbalance. Digit Health 2024, 10, 20552076241240910. [Google Scholar] [CrossRef]
- Millarch, A.S.; Bonde, A.; Bonde, M.; Klein, K.V.; Folke, F.; Rudolph, S.S.; Sillesen, M. Assessing optimal methods for transferring machine learning models to low-volume and imbalanced clinical datasets: experiences from predicting outcomes of Danish trauma patients. Front Digit Health 2023, 5, 1249258. [Google Scholar] [CrossRef] [PubMed]
- Wang, L.Z.; Chi, J.F.; Ding, Y.Q.; Yao, H.Y.; Guo, Q.; Yang, H.Q. Transformer fault diagnosis method based on SMOTE and NGO-GBDT. Sci Rep 2024, 14, 7179. [Google Scholar] [CrossRef] [PubMed]
- Ma, F.; Li, H. Online painting image clustering for the mental health of college art students based on improved CNN and SMOTE. PeerJ Comput Sci 2023, 9, e1462. [Google Scholar] [CrossRef]
- Kumari, M.; Subbarao, N. A hybrid resampling algorithms SMOTE and ENN based deep learning models for identification of Marburg virus inhibitors. Future Med Chem 2022, 14, 701–715. [Google Scholar] [CrossRef] [PubMed]
- Wang, W.; Dai, J.; Li, J.; Du, X. Predicting postoperative rehemorrhage in hypertensive intracerebral hemorrhage using noncontrast CT radiomics and clinical data with an interpretable machine learning approach. Sci Rep 2024, 14, 9717. [Google Scholar] [CrossRef] [PubMed]
- El Badisy, I.; BenBrahim, Z.; Khalis, M.; Elansari, S.; ElHitmi, Y.; Abbass, F.; Mellas, N.; El Rhazi, K. Author Correction: Risk factors affecting patients survival with colorectal cancer in Morocco: survival analysis using an interpretable machine learning approach. Sci Rep 2024, 14, 9985. [Google Scholar] [CrossRef] [PubMed]
- Sun, T.; Yue, X.; Zhang, G.; Lin, Q.; Chen, X.; Huang, T.; Li, X.; Liu, W.; Tao, Z. AKIML(pred): An interpretable machine learning model for predicting acute kidney injury within seven days in critically ill patients based on a prospective cohort study. Clin Chim Acta 2024, 559, 119705. [Google Scholar] [CrossRef]
- Attia, Z.I.; Kapa, S.; Lopez-Jimenez, F.; McKie, P.M.; Ladewig, D.J.; Satam, G.; Pellikka, P.A.; Enriquez-Sarano, M.; Noseworthy, P.A.; Munger, T.M.; et al. Screening for cardiac contractile dysfunction using an artificial intelligence-enabled electrocardiogram. Nat Med 2019, 25, 70–74. [Google Scholar] [CrossRef] [PubMed]
- Attia, Z.I.; Harmon, D.M.; Dugan, J.; Manka, L.; Lopez-Jimenez, F.; Lerman, A.; Siontis, K.C.; Noseworthy, P.A.; Yao, X.; Klavetter, E.W.; et al. Prospective evaluation of smartwatch-enabled detection of left ventricular dysfunction. Nat Med 2022, 28, 2497–2503. [Google Scholar] [CrossRef] [PubMed]
- Rashed-Al-Mahfuz, M.; Moni, M.A.; Lio, P.; Islam, S.M.S.; Berkovsky, S.; Khushi, M.; Quinn, J.M.W. Deep convolutional neural networks based ECG beats classification to diagnose cardiovascular conditions. Biomed Eng Lett 2021, 11, 147–162. [Google Scholar] [CrossRef]
- Goldschmied, A.; Sigle, M.; Faller, W.; Heurich, D.; Gawaz, M.; Muller, K.A.L. Preclinical identification of acute coronary syndrome without high sensitivity troponin assays using machine learning algorithms. Sci Rep 2024, 14, 9796. [Google Scholar] [CrossRef]
- Mehari, T.; Sundar, A.; Bosnjakovic, A.; Harris, P.; Williams, S.E.; Loewe, A.; Doessel, O.; Nagel, C.; Strodthoff, N.; Aston, P.J. ECG Feature Importance Rankings: Cardiologists vs. Algorithms. IEEE J Biomed Health Inform 2024, PP. [Google Scholar] [CrossRef] [PubMed]
- Agrawal, A.; Chauhan, A.; Shetty, M.K.; Gupta, M.D.; Gupta, A. ECG-iCOVIDNet: Interpretable AI model to identify changes in the ECG signals of post-COVID subjects. Comput Biol Med 2022, 146, 105540. [Google Scholar] [CrossRef]
- Jekova, I.; Christov, I.; Krasteva, V. Atrioventricular Synchronization for Detection of Atrial Fibrillation and Flutter in One to Twelve ECG Leads Using a Dense Neural Network Classifier. Sensors (Basel) 2022, 22. [Google Scholar] [CrossRef] [PubMed]
- Laskar, M.R.; Pratiher, S.; Dutta, A.K.; Ghosh, N.; Patra, A. A complexity efficient penta-diagonal quantum smoothing filter for bio-medical signal denoising: a study on ECG. Sci Rep 2024, 14, 10580. [Google Scholar] [CrossRef]
- Valente, C.; Wodzinski, M.; Guglielmini, C.; Poser, H.; Chiavegato, D.; Zotti, A.; Venturini, R.; Banzato, T. Development of an artificial intelligence-based method for the diagnosis of the severity of myxomatous mitral valve disease from canine chest radiographs. Front Vet Sci 2023, 10, 1227009. [Google Scholar] [CrossRef] [PubMed]
- Lim, H.S.; Qiu, P. Quantifying Cell-Type-Specific Differences of Single-Cell Datasets Using Uniform Manifold Approximation and Projection for Dimension Reduction and Shapley Additive exPlanations. J Comput Biol 2023, 30, 738–750. [Google Scholar] [CrossRef]
- Nordin, N.; Zainol, Z.; Mohd Noor, M.H.; Chan, L.F. An explainable predictive model for suicide attempt risk using an ensemble learning and Shapley Additive Explanations (SHAP) approach. Asian J Psychiatr 2023, 79, 103316. [Google Scholar] [CrossRef]
- Alkadhim, H.A.; Amin, M.N.; Ahmad, W.; Khan, K.; Nazar, S.; Faraz, M.I.; Imran, M. Evaluating the Strength and Impact of Raw Ingredients of Cement Mortar Incorporating Waste Glass Powder Using Machine Learning and SHapley Additive ExPlanations (SHAP) Methods. Materials (Basel) 2022, 15. [Google Scholar] [CrossRef]
- Adapa, K.; Pillai, M.; Foster, M.; Charguia, N.; Mazur, L. Using Explainable Supervised Machine Learning to Predict Burnout in Healthcare Professionals. Stud Health Technol Inform 2022, 294, 58–62. [Google Scholar] [CrossRef]
- Ntakolia, C.; Priftis, D.; Charakopoulou-Travlou, M.; Rannou, I.; Magklara, K.; Giannopoulou, I.; Kotsis, K.; Serdari, A.; Tsalamanios, E.; Grigoriadou, A.; et al. Correction: Ntakolia et al. An Explainable Machine Learning Approach for COVID-19's Impact on Mood States of Children and Adolescents during the First Lockdown in Greece. Healthcare 2022, 10, 149. Healthcare (Basel) 2022, 10. [Google Scholar] [CrossRef] [PubMed]
- Mohanty, S.D.; Lekan, D.; McCoy, T.P.; Jenkins, M.; Manda, P. Machine learning for predicting readmission risk among the frail: Explainable AI for healthcare. Patterns (N Y) 2022, 3, 100395. [Google Scholar] [CrossRef] [PubMed]
- Rasheed, K.; Qayyum, A.; Ghaly, M.; Al-Fuqaha, A.; Razi, A.; Qadir, J. Explainable, trustworthy, and ethical machine learning for healthcare: A survey. Comput Biol Med 2022, 149, 106043. [Google Scholar] [CrossRef] [PubMed]
- Phillips, G.; Teixeira, H.; Kelly, M.G.; Salas Herrero, F.; Varbiro, G.; Lyche Solheim, A.; Kolada, A.; Free, G.; Poikane, S. Setting nutrient boundaries to protect aquatic communities: The importance of comparing observed and predicted classifications using measures derived from a confusion matrix. Sci Total Environ 2024, 912, 168872. [Google Scholar] [CrossRef] [PubMed]








| Classification | Accuracy | Precision | Recall | F1-score | AUC | AP |
|---|---|---|---|---|---|---|
| NOR | 0.9979 | 0.9982 | 0.9991 | 0.9987 | 0.9986 | 0.9992 |
| PB | 0.9991 | 0.9607 | 0.8741 | 0.9154 | 1.0000 | 0.9999 |
| LBBB | 0.9948 | 0.9953 | 0.9948 | 0.9951 | 1.0000 | 0.9997 |
| RBBB | 0.9934 | 0.9945 | 0.9979 | 0.9962 | 0.9999 | 0.9990 |
| PAC | 0.8741 | 0.9967 | 0.9934 | 0.9950 | 0.9871 | 0.9372 |
| PVC | 0.9809 | 0.9877 | 0.9809 | 0.9843 | 0.9991 | 0.9963 |
| Macro average | 0.9734 | 0.9889 | 0.9734 | 0.9808 | 0.9974 | 0.9885 |
| Weighted average | 0.9866 | 0.9937 | 0.9937 | 0.9937 | 0.9991 | 0.9956 |
| Classification | Accuracy | Precision | Recall | F1-score | AUC | AP |
|---|---|---|---|---|---|---|
| NOR | 0.9968 | 0.9981 | 0.9981 | 0.9981 | 0.9977 | 0.9986 |
| PB | 0.9981 | 0.9527 | 0.8889 | 0.9197 | 1.0000 | 0.9995 |
| LBBB | 0.9902 | 0.9018 | 0.8048 | 0.8505 | 0.9992 | 0.9972 |
| RBBB | 0.9931 | 0.9974 | 0.9902 | 0.9938 | 0.9998 | 0.9986 |
| PAC | 0.8889 | 0.9927 | 0.9968 | 0.9947 | 0.9847 | 0.9323 |
| PVC | 0.9736 | 0.9890 | 0.9931 | 0.9910 | 0.9987 | 0.9934 |
| PFHB | 0.9846 | 0.9783 | 0.9736 | 0.9760 | 0.9999 | 0.9885 |
| NEB | 0.8261 | 0.8571 | 0.6923 | 0.7660 | 0.9855 | 0.8398 |
| AAPB | 0.6923 | 0.9275 | 0.9846 | 0.9552 | 0.9734 | 0.7525 |
| VFB | 0.8048 | 0.8261 | 0.8261 | 0.8261 | 0.9929 | 0.8802 |
| Macro average | 0.9148 | 0.9421 | 0.9148 | 0.9271 | 0.9932 | 0.9381 |
| Weighted average | 0.9131 | 0.9896 | 0.9898 | 0.9897 | 0.9884 | 0.9474 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).