mlsanityData to 7 Oct 2026

Diverse Counterfactual Explanations for Anomaly Detection in Time Series

arXiv 2203.11103 ↗First posted 21 Mar 2022cs.LG stat.MLcited by 10

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

  1. 2018An Empirical Evaluation of Generic Convolutional and Recurrent Networks for Sequence Modelingcited by 1,447
  2. 2017Explanation in Artificial Intelligence: Insights from the Social Sciencescited by 1,201
  3. 2017Counterfactual Explanations without Opening the Black Box: Automated Decisions and the GDPRcited by 1,086
  4. 2019Explaining Machine Learning Classifiers through Diverse Counterfactual Explanationscited by 612
  5. 2018Detecting Spacecraft Anomalies Using LSTMs and Nonparametric Dynamic Thresholdingcited by 407
  6. 2016RETAIN: An Interpretable Predictive Model for Healthcare using Reverse Time Attention Mechanismcited by 344
  7. 2019Understanding Deep Networks via Extremal Perturbations and Smooth Maskscited by 257
  8. 2019Explainable Machine Learning in Deploymentcited by 210
  9. 2019The What-If Tool: Interactive Probing of Machine Learning Modelscited by 207
  10. 2019Model-Agnostic Counterfactual Explanations for Consequential Decisionscited by 204
  11. 2020A review on outlier/anomaly detection in time series datacited by 187
  12. 2020Multi-Objective Counterfactual Explanationscited by 157
12 more
  1. 2019High-Dimensional Multivariate Forecasting with Low-Rank Gaussian Copula Processescited by 147
  2. 2019Efficient Search for Diverse Coherent Explanationscited by 111
  3. 2020TimeSHAP: Explaining Recurrent Models through Sequence Perturbationscited by 73
  4. 2021Explaining Time Series Predictions with Dynamic Maskscited by 72
  5. 2020Instance-based Counterfactual Explanations for Time Series Classificationcited by 64
  6. 2021Beyond Trivial Counterfactual Explanations with Diverse Valuable Explanationscited by 56
  7. 2020Counterfactual Explanations for Machine Learning on Multivariate Time Series Datacited by 49
  8. 2021Neural Contextual Anomaly Detection for Time Seriescited by 42
  9. 2017An Exact and Robust Conformal Inference Method for Counterfactual and Synthetic Controlscited by 36
  10. 2018Recurrent Neural Network Attention Mechanisms for Interpretable System Log Anomaly Detectioncited by 21
  11. 2021Diverse, Global and Amortised Counterfactual Explanations for Uncertainty Estimatescited by 19
  12. 2020Series Saliency: Temporal Interpretation for Multivariate Time Series Forecastingcited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 3; 2024: 4; 2025: 2; 2026: 1.

10 papers.