Abstract 4365993: A novel XAI framework for explainable AI-ECG using generative counterfactual-based XAI

Background: To ensure clinical adoption of artificial intelligence (AI)-electrocardiogram (ECG), it is essential to understand why the AI makes certain predictions. Traditional explainable AI (XAI) methods like saliency maps highlight important ECG segments but often fall short in explaining how specific morphology or rhythm changes influence predictions. Purpose: We propose a generative counterfactual-based explainability (GCX) framework that simulates “how changes” in ECG waveforms affect AI-ECG predictions. Methods: We developed eight AI-ECGs: six for ECG feature regression (P wave, R wave, and T wave amplitudes; PR interval; RR interval; RR variability), one for serum potassium regression, and one for atrial fibrillation (AF) classification. Models were trained using PTB-XL or MIMIC-IV datasets. We applied the GCX framework using a generative AI model (StyleGAN2) to create "positive counterfactual ECGs" (with higher predicted values) and "negative counterfactual ECGs" (with lower predicted values). (Figure 1) By comparing these to the original ECGs, we identified waveform changes that influenced AI predictions. To evaluate consistency, we performed paired t-tests between original and counterfactual ECG features. Results: In all six feature regression models, positive counterfactual ECGs consistently showed increased amplitudes (P, R, T waves), prolonged RR intervals, and greater RR variability. (Figure 2) Negative counterfactuals showed the opposite. For the potassium regression model, positive counterfactual ECGs simulating hyperkalemia displayed increased T wave amplitude, PR prolongation, and QRS widening. Negative counterfactuals resembling hypokalemia showed decreased T wave amplitude, increased P wave amplitude, ST depression, and prominent U waves. In the AF classification model, positive counterfactuals revealed progressive loss of P waves and increased rhythm irregularity. (Figure 2, 3) Across all models, feature changes between original and counterfactual ECGs were statistically significant (paired t-test, p < 0.01), confirming the robustness of the explanations. Conclusion: The GCX framework revealed how AI-ECG models determine predictions based on specific waveform and rhythm changes. These explanations aligned well with established electrophysiological knowledge. By clarifying the "reasoning process", GCX offers a clinically meaningful path toward safer, more transparent, and interpretable deployment of AI-ECG in real-world practice.

Authors

Institutions

Publication Details

Journal
Circulation
Published
2025-11-03
DOI
https://doi.org/10.1161/circ.152.suppl_3.4365993
Primary Topic
ECG Monitoring and Analysis
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Abstract 4365993: A novel XAI framework for explainable AI-ECG using generative counterfactual-based XAI

Hak Seung Lee, Yong‐Yeon Jo, Jong-Hwan Jang, Min Sung Lee et al.
Circulation
ECG Monitoring and Analysis
article

Abstract 4365993: A novel XAI framework for explainable AI-ECG using generative counterfactual-based XAI

Hak Seung Lee, Yong‐Yeon Jo, Jong-Hwan Jang, Min Sung Lee, Sora Kang, Joon‐myoung Kwon, Jeong Min Son
article en

Abstract

Background: To ensure clinical adoption of artificial intelligence (AI)-electrocardiogram (ECG), it is essential to understand why the AI makes certain predictions. Traditional explainable AI (XAI) methods like saliency maps highlight important ECG segments but often fall short in explaining how specific morphology or rhythm changes influence predictions. Purpose: We propose a generative counterfactual-based explainability (GCX) framework that simulates “how changes” in ECG waveforms affect AI-ECG predictions. Methods: We developed eight AI-ECGs: six for ECG feature regression (P wave, R wave, and T wave amplitudes; PR interval; RR interval; RR variability), one for serum potassium regression, and one for atrial fibrillation (AF) classification. Models were trained using PTB-XL or MIMIC-IV datasets. We applied the GCX framework using a generative AI model (StyleGAN2) to create "positive counterfactual ECGs" (with higher predicted values) and "negative counterfactual ECGs" (with lower predicted values). (Figure 1) By comparing these to the original ECGs, we identified waveform changes that influenced AI predictions. To evaluate consistency, we performed paired t-tests between original and counterfactual ECG features. Results: In all six feature regression models, positive counterfactual ECGs consistently showed increased amplitudes (P, R, T waves), prolonged RR intervals, and greater RR variability. (Figure 2) Negative counterfactuals showed the opposite. For the potassium regression model, positive counterfactual ECGs simulating hyperkalemia displayed increased T wave amplitude, PR prolongation, and QRS widening. Negative counterfactuals resembling hypokalemia showed decreased T wave amplitude, increased P wave amplitude, ST depression, and prominent U waves. In the AF classification model, positive counterfactuals revealed progressive loss of P waves and increased rhythm irregularity. (Figure 2, 3) Across all models, feature changes between original and counterfactual ECGs were statistically significant (paired t-test, p < 0.01), confirming the robustness of the explanations. Conclusion: The GCX framework revealed how AI-ECG models determine predictions based on specific waveform and rhythm changes. These explanations aligned well with established electrophysiological knowledge. By clarifying the "reasoning process", GCX offers a clinically meaningful path toward safer, more transparent, and interpretable deployment of AI-ECG in real-world practice.

CirculationVol. 152(Suppl_3)
Seoul Medical Center (KR)
Openalex Percentile: Top 51%
ECG Monitoring and Analysis
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.