# Instance-based Counterfactual Explanations for Time Series Classification

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

## Key facts

- Cited by 64 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 28 Sep 2020.

## Built on by (most cited first, 30 of 64)

- [If Only We Had Better Counterfactual Explanations: Five Key Deficits to Rectify in the Evaluation of Counterfactual XAI Techniques](https://mlsanity.com/paper/2103.01035/) (2021)
- [NICE: An Algorithm for Nearest Instance Counterfactual Explanations](https://mlsanity.com/paper/2104.07411/) (2021)
- [Explaining Time Series via Contrastive and Locally Sparse Perturbations](https://mlsanity.com/paper/2401.08552/) (2024)
- [A Few Good Counterfactuals: Generating Interpretable, Plausible and Diverse Counterfactual Explanations](https://mlsanity.com/paper/2101.09056/) (2021)
- [Uncertainty Estimation and Out-of-Distribution Detection for Counterfactual Explanations: Pitfalls and Solutions](https://mlsanity.com/paper/2107.09734/) (2021)
- [Interpretation of Time-Series Deep Models: A Survey](https://mlsanity.com/paper/2305.14582/) (2023)
- [Motif-guided Time Series Counterfactual Explanations](https://mlsanity.com/paper/2211.04411/) (2022)
- [Counterfactual Explanations for Misclassified Images: How Human and Machine Explanations Differ](https://mlsanity.com/paper/2212.08733/) (2022)
- [Generating Sparse Counterfactual Explanations For Multivariate Time Series](https://mlsanity.com/paper/2206.00931/) (2022)
- [Grounding Language Plans in Demonstrations Through Counterfactual Perturbations](https://mlsanity.com/paper/2403.17124/) (2024)
- [Diverse Counterfactual Explanations for Anomaly Detection in Time Series](https://mlsanity.com/paper/2203.11103/) (2022)
- [Counterfactual Explanations for Time Series Forecasting](https://mlsanity.com/paper/2310.08137/) (2023)
- [M-CELS: Counterfactual Explanation for Multivariate Time Series Data Guided by Learned Saliency Maps](https://mlsanity.com/paper/2411.02649/) (2024)
- [Shapelet-Based Counterfactual Explanations for Multivariate Time Series](https://mlsanity.com/paper/2208.10462/) (2022)
- [GAM Coach: Towards Interactive and User-centered Algorithmic Recourse](https://mlsanity.com/paper/2302.14165/) (2023)
- [Explaining Groups of Instances Counterfactually for XAI: A Use Case, Algorithm and User Study for Group-Counterfactuals](https://mlsanity.com/paper/2303.09297/) (2023)
- [Solving the Class Imbalance Problem Using a Counterfactual Method for Data Augmentation](https://mlsanity.com/paper/2111.03516/) (2021)
- [Time Can Invalidate Algorithmic Recourse](https://mlsanity.com/paper/2410.08007/) (2024)
- [Robust Explainer Recommendation for Time Series Classification](https://mlsanity.com/paper/2306.05501/) (2023)
- [Interval Abstractions for Robust Counterfactual Explanations](https://mlsanity.com/paper/2404.13736/) (2024)
- [Visual Explanations with Attributions and Counterfactuals on Time Series Classification](https://mlsanity.com/paper/2307.08494/) (2023)
- [MASCOTS: Model-Agnostic Symbolic COunterfactual explanations for Time Series](https://mlsanity.com/paper/2503.22389/) (2025)
- [Improving Model Understanding and Trust with Counterfactual Explanations of Model Confidence](https://mlsanity.com/paper/2206.02790/) (2022)
- [TSInterpret: A unified framework for time series interpretability](https://mlsanity.com/paper/2208.05280/) (2022)
- [Explaining a machine learning decision to physicians via counterfactuals](https://mlsanity.com/paper/2306.06325/) (2023)
- [Generating Feasible and Plausible Counterfactual Explanations for Outcome Prediction of Business Processes](https://mlsanity.com/paper/2403.09232/) (2024)
- [Explaining Time Series Classification Predictions via Causal Attributions](https://mlsanity.com/paper/2405.15871/) (2024)
- [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)
- [Twin Systems for DeepCBR: A Menagerie of Deep Learning and Case-Based Reasoning Pairings for Explanation and Data Augmentation](https://mlsanity.com/paper/2104.14461/) (2021)

## Abstract (arXiv)

In recent years, there has been a rapidly expanding focus on explaining the predictions made by black-box AI systems that handle image and tabular data. However, considerably less attention has been paid to explaining the predictions of opaque AI systems handling time series data. In this paper, we advance a novel model-agnostic, case-based technique -- Native Guide -- that generates counterfactual explanations for time series classifiers. Given a query time series, Tq, for which a black-box classification system predicts class, c, a counterfactual time series explanation shows how Tq could change, such that the system predicts an alternative class, c'. The proposed instance-based technique adapts existing counterfactual instances in the case-base by highlighting and modifying discriminative areas of the time series that underlie the classification. Quantitative and qualitative results from two comparative experiments indicate that Native Guide generates plausible, proximal, sparse and diverse explanations that are better than those produced by key benchmark counterfactual methods.
