TSHAP: Fast and Exact SHAP for Explaining Time Series Classification and Regression
Abstract
Attribution methods are essential for interpreting time series predictive models by quantifying the relevance of each time step for the prediction. State-of-the-art methods are often based on SHAP, an attribution method developed for tabular data. However, this has several challenges. First, SHAP is expensive to compute, especially for long time series, hence to speed it up it is usually approximated. Second, the impact of the background selection for emulating data ‘missingness’, essential to compute SHAP, remains understudied. Third, SHAP and more generally attribution methods for time series regression are notably lacking. In this paper, we address these limitations and propose TSHAP, a novel SHAP-based attribution method for time series classification and regression. TSHAP leverages a sliding window to group temporal data, enabling the efficient computation of exact SHAP values for each group. We further develop a methodology for the principled selection of background data. We evaluate TSHAP’s performance and robustness using comprehensive experiments on synthetic and real-world time series datasets.
Cite
Text
Le Nguyen and Ifrim. "TSHAP: Fast and Exact SHAP for Explaining Time Series Classification and Regression." European Conference on Machine Learning and Principles and Practice of Knowledge Discovery in Databases, 2025. doi:10.1007/978-3-032-06078-5_4Markdown
[Le Nguyen and Ifrim. "TSHAP: Fast and Exact SHAP for Explaining Time Series Classification and Regression." European Conference on Machine Learning and Principles and Practice of Knowledge Discovery in Databases, 2025.](https://mlanthology.org/ecmlpkdd/2025/nguyen2025ecmlpkdd-tshap/) doi:10.1007/978-3-032-06078-5_4BibTeX
@inproceedings{nguyen2025ecmlpkdd-tshap,
title = {{TSHAP: Fast and Exact SHAP for Explaining Time Series Classification and Regression}},
author = {Le Nguyen, Thach and Ifrim, Georgiana},
booktitle = {European Conference on Machine Learning and Principles and Practice of Knowledge Discovery in Databases},
year = {2025},
pages = {60-77},
doi = {10.1007/978-3-032-06078-5_4},
url = {https://mlanthology.org/ecmlpkdd/2025/nguyen2025ecmlpkdd-tshap/}
}