A novel XAI framework for explainable AI-ECG using generative counterfactual XAI (GCX)
Authors:
Open Access
- 2 July 2025
- journal article
- research article
- Published by Springer Nature in Scientific Reports
- Vol. 15 (1) , 1-11
Abstract
Generative Counterfactual Explainable Artificial Intelligence (XAI) offers a novel approach to understanding how AI models interpret electrocardiograms (ECGs). Traditional explanation methods focus on highlighting important ECG segments but often fail to clarify why these segments matter or how their alteration affects model predictions. In contrast, the proposed framework explores “what-if” scenarios, generating counterfactual ECGs that increase or decrease a model’s predictive values. This approach has the potential to increase clinicians’ trust specific changes—such as increased T wave amplitude or PR interval prolongation—influence the model’s decisions. Through a series of validation experiments, the framework demonstrates its ability to produce counterfactual ECGs that closely align with established clinical knowledge, including characteristic alterations associated with potassium imbalances and atrial fibrillation. By clearly visualizing how incremental modifications in ECG morphology and rhythm affect artificial intelligence-applied ECG (AI-ECG) predictions, this generative counterfactual method moves beyond static attribution maps and has the potential to increase clinicians’ trust in AI-ECG systems. As a result, this approach offers a promising path toward enhancing the explainability and clinical reliability of AI-based tools for cardiovascular diagnostics.Keywords
This publication has 26 references indexed in Scilit:
- Artificial Intelligence for Cardiovascular Care—Part 1: AdvancesJACC, 2024
- Electrocardiogram-based deep learning model to screen peripartum cardiomyopathyAmerican Journal of Obstetrics & Gynecology MFM, 2023
- Artificial intelligence cloud platform improves arrhythmia detection from insertable cardiac monitors to 25 cardiac rhythm patterns through multi-label classificationJournal of Electrocardiology, 2023
- Solving the explainable AI conundrum by bridging clinicians’ needs and developers’ goalsnpj Digital Medicine, 2023
- Explaining the black-box smoothly—A counterfactual approachMedical Image Analysis, 2022
- Counterfactuals and causability in explainable artificial intelligence: Theory, algorithms, and applicationsInformation Fusion, 2022
- SciPy 1.0: fundamental algorithms for scientific computing in PythonNature Methods, 2020
- Grad-CAM: Visual Explanations from Deep Networks via Gradient-Based LocalizationInternational Journal of Computer Vision, 2019
- Promoting Trust Between Patients and Physicians in the Era of Artificial IntelligenceJAMA, 2019
- Cardiologist-level arrhythmia detection and classification in ambulatory electrocardiograms using a deep neural networkNature Medicine, 2019