From Prototypes to Sparse ECG Explanations: SHAP-Driven Counterfactuals for Multivariate Time-Series Multi-class Classification
Maciej Mozolewski, Bet\"ul Bayrak, Kerstin Bach, Grzegorz J. Nalepa

TL;DR
This paper introduces a SHAP-driven framework for generating sparse, physiologically-aligned counterfactual explanations for multivariate ECG classification, improving interpretability and stability in clinical AI models.
Contribution
It presents a novel prototype-driven, SHAP-based method for creating sparse, physiologically-coherent counterfactual explanations tailored to ECG models, with real-time capabilities.
Findings
Counterfactuals modify 78% of signals while maintaining 81.3% validity
Achieves 43% improvement in temporal stability of explanations
Class-specific validity ranges from 98.9% for MI to 13.2% for HYP
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsExplainable Artificial Intelligence (XAI) · ECG Monitoring and Analysis · Machine Learning in Healthcare
