用原型和SHAP生成可解释的12导联心电图分类反事实,仅修改78%信号仍保持81.3%有效性。
From Prototypes to Sparse ECG Explanations: SHAP-Driven Counterfactuals for Multivariate Time-Series Multi-class Classification
- 基于SHAP与动态时间规整提取关键信号原型,生成稀疏反事实。
- 修改仅78%原始信号,跨类别有效率达81.3%,时间稳定性提升43%。
- 适合临床医生用于理解AI诊断决策,支持实时交互式解释平台。
在可解释人工智能领域,针对时间序列的实例级解释因在医疗等场景中具备可操作性和可读性而日益受到关注。为解决先进模型的可解释性挑战,我们提出一种基于原型的框架,用于生成适配12导联心电图分类模型的稀疏反事实解释。方法结合SHAP阈值识别关键信号段并转化为区间规则,利用动态时间规整(DTW)与中位数聚类提取代表性原型,并将原型对齐至待解释样本的R波峰值以保证生理一致性。该框架生成的反事实仅修改原始信号的78%,同时在所有类别上保持81.3%的有效性,且时间稳定性提升43%。我们评估了三种变体:原始、稀疏与对齐稀疏,不同类别表现各异——心肌梗死(MI)最高达98.9%有效性,而肥厚(HYP)检测仅13.2%。该方法可在<1秒内实现近实时生成,具备临床可用性,为交互式解释平台提供基础。研究确立了面向生理一致性的反事实设计原则,并指明用户可控解释界面在临床部署中的路径。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。