# Shapelet-based Model-agnostic Counterfactual Local Explanations for Time Series Classification

arXiv: https://arxiv.org/abs/2402.01343 · HTML: https://mlsanity.com/paper/2402.01343/

## Key facts

- Cited by 6 papers in the map (data through 14 Oct 2026).
- Builds on 6 of its 17 references that are in the map.
- First posted on arXiv 2 Feb 2024.

## Builds on (most cited first, 6 of 6)

- [Generative Adversarial Networks](https://mlsanity.com/paper/2203.00667/) (2022)
- [Counterfactual Explanations without Opening the Black Box: Automated Decisions and the GDPR](https://mlsanity.com/paper/1711.00399/) (2017)
- [Explaining Machine Learning Classifiers through Diverse Counterfactual Explanations](https://mlsanity.com/paper/1905.07697/) (2019)
- [Towards a Rigorous Evaluation of XAI Methods on Time Series](https://mlsanity.com/paper/1909.07082/) (2019)
- [Conditional Generative Models for Counterfactual Explanations](https://mlsanity.com/paper/2101.10123/) (2021)
- [Motif-guided Time Series Counterfactual Explanations](https://mlsanity.com/paper/2211.04411/) (2022)

## Built on by (most cited first, 6 of 6)

- [TX-Gen: Multi-Objective Optimization for Sparse Counterfactual Explanations for Time-Series Classification](https://mlsanity.com/paper/2409.09461/) (2024)
- [What-If Explanations Over Time: Counterfactuals for Time Series Classification](https://mlsanity.com/paper/2603.27792/) (2026)
- [Counterfactual Explanations for Time Series Should be Human-Centered and Temporally Coherent in Interventions](https://mlsanity.com/paper/2512.14559/) (2025)
- [Stochastic Sparse Sampling: A Framework for Variable-Length Medical Time Series Classification](https://mlsanity.com/paper/2410.06412/) (2024)
- [Towards plausibility in time series counterfactual explanations](https://mlsanity.com/paper/2603.08349/) (2026)
- [Adaptive Group-Based Counterfactual Explanations for Time-Series Rehabilitation Data](https://mlsanity.com/paper/2607.01838/) (2026)

## Abstract (arXiv)

In this work, we propose a model-agnostic instance-based post-hoc explainability method for time series classification. The proposed algorithm, namely Time-CF, leverages shapelets and TimeGAN to provide counterfactual explanations for arbitrary time series classifiers. We validate the proposed method on several real-world univariate time series classification tasks from the UCR Time Series Archive. The results indicate that the counterfactual instances generated by Time-CF when compared to state-of-the-art methods, demonstrate better performance in terms of four explainability metrics: closeness, sensibility, plausibility, and sparsity.
