From Prototypes to Sparse ECG Explanations: SHAP-Driven Counterfactuals for Multivariate Time-Series Multi-class Classification
Not on the map. Why?
Abstract (arXiv)
In eXplainable Artificial Intelligence (XAI), instance-based explanations for time series have gained increasing attention due to their potential for actionable and interpretable insights in domains such as healthcare. Addressing the challenges of explainability of state-of-the-art models, we propose a prototype-driven framework for generating sparse counterfactual explanations tailored to 12-lead ECG classification models. Our method employs SHAP-based thresholds to identify critical signal segments and convert them into interval rules, uses Dynamic Time Warping (DTW) and medoid clustering to extract representative prototypes, and aligns these prototypes to query R-peaks for coherence with the sample being explained. The framework generates counterfactuals that modify only 78% of the original signal while maintaining 81.3% validity across all classes and achieving 43% improvement in temporal stability. We evaluate three variants of our approach, Original, Sparse, and Aligned Sparse, with class-specific performance ranging from 98.9% validity for myocardial infarction (MI) to challenges with hypertrophy (HYP) detection (13.2%). This approach supports near realtime generation (< 1 second) of clinically valid counterfactuals and provides a foundation for interactive explanation platforms. Our findings establish design principles for physiologically-aware counterfactual explanations in AI-based diagnosis systems and outline pathways toward user-controlled explanation interfaces for clinical deployment.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 21 of its 43 references that are in the map. First posted on arXiv 22 Oct 2025.
Builds on
21 of 43 references.
References · 21
- 2017A Unified Approach to Interpreting Model Predictionscited by 6,555
- 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,070
- 2017Axiomatic Attribution for Deep Networkscited by 3,384
- 2017Learning Important Features Through Propagating Activation Differencescited by 1,458
- 2017SmoothGrad: removing noise by adding noisecited by 1,109
- 2019Explaining Machine Learning Classifiers through Diverse Counterfactual Explanationscited by 614
- 2019Interpretable Counterfactual Explanations Guided by Prototypescited by 223
- 2020Instance-based Counterfactual Explanations for Time Series Classificationcited by 64
- 2019Unremarkable AI: Fitting Intelligent Decision Support into Critical, Clinical Decision-Making Processescited by 53
- 2023A Perspective on Explainable Artificial Intelligence Methods: SHAP and LIMEcited by 42
- 2022WindowSHAP: An Efficient Framework for Explaining Time-series Classifiers based on Shapley Valuescited by 24
- 2023Even if Explanations: Prior Work, Desiderata & Benchmarks for Semi-Factual XAIcited by 20
9 more
- 2023Deep Generative Models for Physiological Signals: A Systematic Literature Reviewcited by 7
- 2022Interactive Machine Learning: A State of the Art Reviewcited by 6
- 2023Securing the Digital World: Protecting smart infrastructures and digital industries with Artificial Intelligence (AI)-enabled malware and intrusion detectioncited by 6
- 2021Rule Generation for Classification: Scalability, Interpretability, and Fairnesscited by 4
- 2024Clinicians' Voice: Fundamental Considerations for XAI in Healthcarecited by 3
- 2023Operationalizing Counterfactual Metrics: Incentives, Ranking, and Information Asymmetrycited by 2
- 2023Interpretable ECG Analysis for Myocardial Infarction Detection through Counterfactualscited by 2
- 2025ArrhythmiaVision: Resource-Conscious Deep Learning Models with Visual Explanations for ECG Arrhythmia Classificationcited by 1
- 2025Explaining Time Series Classifiers with PHAR: Rule Extraction and Fusion from Post-hoc Attributionscited by 1
Built on by
Citing papers per year: 2025: 1; 2026: 2.
3 papers.
- 2025Actionable and diverse counterfactual explanations incorporating domain knowledge and plausibility constraintscited by 0
- 2026Counterfactual Transition Graphs: Evaluating Cross-Class Transition Qualitycited by 0
- 2026FCA-Guided Counterfactual Explanations for Multi-Modal Breast Cancer Diagnosis: A Framework Achieving Perfect Validity with Emergent Sparsitycited by 0
- 2026FCA-Guided Counterfactual Explanations for Multi-Modal Breast Cancer Diagnosis: A Framework Achieving Perfect Validity with Emergent Sparsity17 Sep 2026
- 2026Counterfactual Transition Graphs: Evaluating Cross-Class Transition Quality24 Aug 2026
- 2025Actionable and diverse counterfactual explanations incorporating domain knowledge and plausibility constraints25 Nov 2025