Diverse Counterfactual Explanations for Anomaly Detection in Time Series
Not on the map. Why?
Abstract (arXiv)
Data-driven methods that detect anomalies in times series data are ubiquitous in practice, but they are in general unable to provide helpful explanations for the predictions they make. In this work we propose a model-agnostic algorithm that generates counterfactual ensemble explanations for time series anomaly detection models. Our method generates a set of diverse counterfactual examples, i.e, multiple perturbed versions of the original time series that are not considered anomalous by the detection model. Since the magnitude of the perturbations is limited, these counterfactuals represent an ensemble of inputs similar to the original time series that the model would deem normal. Our algorithm is applicable to any differentiable anomaly detection model. We investigate the value of our method on univariate and multivariate real-world datasets and two deep-learning-based anomaly detection models, under several explainability criteria previously proposed in other data domains such as Validity, Plausibility, Closeness and Diversity. We show that our algorithm can produce ensembles of counterfactual examples that satisfy these criteria and thanks to a novel type of visualisation, can convey a richer interpretation of a model's internal mechanism than existing methods. Moreover, we design a sparse variant of our method to improve the interpretability of counterfactual explanations for high-dimensional time series anomalies. In this setting, our explanation is localised on only a few dimensions and can therefore be communicated more efficiently to the model's user.
Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). Builds on 24 of its 40 references that are in the map. First posted on arXiv 21 Mar 2022.
Builds on
24 of 40 references.
References · 24
- 2018An Empirical Evaluation of Generic Convolutional and Recurrent Networks for Sequence Modelingcited by 1,447
- 2017Explanation in Artificial Intelligence: Insights from the Social Sciencescited by 1,201
- 2017Counterfactual Explanations without Opening the Black Box: Automated Decisions and the GDPRcited by 1,086
- 2019Explaining Machine Learning Classifiers through Diverse Counterfactual Explanationscited by 612
- 2018Detecting Spacecraft Anomalies Using LSTMs and Nonparametric Dynamic Thresholdingcited by 407
- 2016RETAIN: An Interpretable Predictive Model for Healthcare using Reverse Time Attention Mechanismcited by 344
- 2019Understanding Deep Networks via Extremal Perturbations and Smooth Maskscited by 257
- 2019Explainable Machine Learning in Deploymentcited by 210
- 2019The What-If Tool: Interactive Probing of Machine Learning Modelscited by 207
- 2019Model-Agnostic Counterfactual Explanations for Consequential Decisionscited by 204
- 2020A review on outlier/anomaly detection in time series datacited by 187
- 2020Multi-Objective Counterfactual Explanationscited by 157
12 more
- 2019High-Dimensional Multivariate Forecasting with Low-Rank Gaussian Copula Processescited by 147
- 2019Efficient Search for Diverse Coherent Explanationscited by 111
- 2020TimeSHAP: Explaining Recurrent Models through Sequence Perturbationscited by 73
- 2021Explaining Time Series Predictions with Dynamic Maskscited by 72
- 2020Instance-based Counterfactual Explanations for Time Series Classificationcited by 64
- 2021Beyond Trivial Counterfactual Explanations with Diverse Valuable Explanationscited by 56
- 2020Counterfactual Explanations for Machine Learning on Multivariate Time Series Datacited by 49
- 2021Neural Contextual Anomaly Detection for Time Seriescited by 42
- 2017An Exact and Robust Conformal Inference Method for Counterfactual and Synthetic Controlscited by 36
- 2018Recurrent Neural Network Attention Mechanisms for Interpretable System Log Anomaly Detectioncited by 21
- 2021Diverse, Global and Amortised Counterfactual Explanations for Uncertainty Estimatescited by 19
- 2020Series Saliency: Temporal Interpretation for Multivariate Time Series Forecastingcited by 4
Built on by
Citing papers per year: 2023: 3; 2024: 4; 2025: 2; 2026: 1.
10 papers.
- 2023Explainable Time Series Anomaly Detection using Masked Latent Generative Modelingcited by 15
- 2024Reimagining Anomalies: What If Anomalies Were Normal?cited by 2
- 2024Counterfactual-based Root Cause Analysis for Dynamical Systemscited by 2
- 2024AR-Pro: Counterfactual Explanations for Anomaly Repair with Formal Propertiescited by 1
- 2023Towards Meaningful Anomaly Detection: The Effect of Counterfactual Explanations on the Investigation of Anomalies in Multivariate Time Seriescited by 0
- 2023Personalized Path Recourse for Reinforcement Learning Agentscited by 0
- 2024No Dtrain: Model-Agnostic Counterfactual Explanations Using Reinforcement Learningcited by 0
- 2025Counterfactual Explanation for Auto-Encoder Based Time-Series Anomaly Detectioncited by 0
- 2025Counterfactual Explanation for Multivariate Time Series Forecasting with Exogenous Variablescited by 0
- 2026ConceptCF: Concept-based Counterfactuals for the Explainability of Time Seriescited by 0
- 2026ConceptCF: Concept-based Counterfactuals for the Explainability of Time Series21 Jul 2026
- 2025Counterfactual Explanation for Multivariate Time Series Forecasting with Exogenous Variables10 Nov 2025
- 2025Counterfactual Explanation for Auto-Encoder Based Time-Series Anomaly Detection3 Jan 2025
- 2024AR-Pro: Counterfactual Explanations for Anomaly Repair with Formal Properties31 Oct 2024
- 2024Counterfactual-based Root Cause Analysis for Dynamical Systems12 Jun 2024
- 2024No Dtrain: Model-Agnostic Counterfactual Explanations Using Reinforcement Learning28 May 2024
- 2024Reimagining Anomalies: What If Anomalies Were Normal?22 Feb 2024
- 2023Personalized Path Recourse for Reinforcement Learning Agents14 Dec 2023
- 2023Explainable Time Series Anomaly Detection using Masked Latent Generative Modeling21 Nov 2023
- 2023Towards Meaningful Anomaly Detection: The Effect of Counterfactual Explanations on the Investigation of Anomalies in Multivariate Time Series7 Feb 2023