An Empirical Evaluation of Factors Affecting SHAP Explanation of Time Series Classification

Davide Italo Serramazza, Nikos Papadeas, Zahraa Abdallah, Georgiana Ifrim
9/3/2025
cs.AI

No confident code implementation found for this paper.

Abstract

Explainable AI (XAI) has become an increasingly important topic for understanding and attributing the predictions made by complex Time Series Classification (TSC) models. Among attribution methods, SHapley Additive exPlanations (SHAP) is widely regarded as an excellent attribution method; but its computational complexity, which scales exponentially with the number of features, limits its practicality for long time series. To address this, recent studies have shown that aggregating features via segmentation, to compute a single attribution value for a group of consecutive time points, drastically reduces SHAP running time. However, the choice of the optimal segmentation strategy remains an open question. In this work, we investigated eight different Time Series Segmentation algorithms to understand how segment compositions affect the explanation quality. We evaluate these approaches using two established XAI evaluation methodologies: InterpretTime and AUC Difference. Through experiments on both Multivariate (MTS) and Univariate Time Series (UTS), we find that the number of segments has a greater impact on explanation quality than the specific segmentation method. Notably, equal-length segmentation consistently outperforms most of the custom time series segmentation algorithms. Furthermore, we introduce a novel attribution normalisation technique that weights segments by their length and we show that it consistently improves attribution quality.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{serramazza2025empirical,
  title  = {An Empirical Evaluation of Factors Affecting SHAP Explanation of Time Series Classification},
  author = {Davide Italo Serramazza and Nikos Papadeas and Zahraa Abdallah and Georgiana Ifrim},
  year   = {2025},
  eprint = {2509.03649},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.03649v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.03649.svg)](https://codeofpaper.com/paper/2509.03649)

Discussion