cs.LGMar 29, 2026

What-If Explanations Over Time: Counterfactuals for Time Series Classification

Authors: Udo Schlegel, Thomas Seidl

Organizations: LMU Munich, Germany · Munich Center for Machine Learning (MCML), Germany

Abstract

Counterfactual explanations emerge as a powerful approach in explainable AI, providing what-if scenarios that reveal how minimal changes to an input time series can alter the model's prediction. This work presents a survey of recent algorithms for counterfactual explanations for time series classification. We review state-of-the-art methods, spanning instance-based nearest-neighbor techniques, pattern-driven algorithms, gradient-based optimization, and generative models. For each, we discuss the underlying methodology, the models and classifiers they target, and the datasets on which they are evaluated. We highlight unique challenges in generating counterfactuals for temporal data, such as maintaining temporal coherence, plausibility, and actionable interpretability, which distinguish the temporal from tabular or image domains. We analyze the strengths and limitations of existing approaches and compare their effectiveness along key dimensions (validity, proximity, sparsity, plausibility, etc.). In addition, we implemented an open-source implementation library, Counterfactual Explanations for Time Series (CFTS), as a reference framework that includes many algorithms and evaluation metrics. We discuss this library's contributions in standardizing evaluation and enabling practical adoption of explainable time series techniques. Finally, based on the literature and identified gaps, we propose future research directions, including improved user-centered design, integration of domain knowledge, and counterfactuals for time series forecasting.

Figures & tables

Explore similar work

CardsList
  1. ConceptCF: Concept-based Counterfactuals for the Explainability of Time Series

    Jul 21, 2026Annemarie Jutte, Faizan Ahmed, Jeroen Linssen +1Counterfactual ExplanationsConcept-Based Explanations

  2. Towards plausibility in time series counterfactual explanations

    Mar 9, 2026Marcin Kostrzewa, Krzysztof Galus, Maciej ZiębaGraph Counterfactual ExplanationsCounterfactual Explanations

  3. ConTex: Reformulating Counterfactual Generation For Time Series Forecasting

    Jun 16, 2026Jan Voets, Hasan Tercan, Tobias Meisen +1Explainable Time Series ForecastingCounterfactual Explanations