JOURNAL ARTICLE

Temporal Rule-Based Counterfactual Explanations for Multivariate Time Series

Abstract

The black-box nature of machine learning models is the main reason impeding their full adoption in decision-making processes. In order to reduce models' opacity and overpass this challenge, major efforts that aim to increase stakeholders' trust and ensure the fairness of decisions are being made by the data mining community under the Explainable Artificial Intelligence (XAI) paradigm. The two main categories of solutions are 1) developing fully transparent algorithms and 2) providing post hoc explanations. However, the literature is rather scarce when it comes to time series data, and even more so in the context of multivariate time series. In this work, we aim to exploit the discriminative power of shapelets and temporal rules in time series mining and capitalize on their inherent interpretability to develop a model-agnostic, temporal rule counterfactual explainer (TeRCE) for multivariate time series datasets. Counterfactual explanations indicate how should the input change such that the decision output changes too. Thus, they can highly increase the interpretability of black-box models. We test TeRCE on five benchmark datasets from the UEA archive and prove that it produces high-quality counterfactuals. Moreover, we show that in addition to being visually and conceptually interpretable, our approach performs better than the state-of-the-art algorithms in terms of proximity, sparsity, and second in terms of plausibility.

Keywords:
Interpretability Counterfactual thinking Computer science Discriminative model Machine learning Artificial intelligence Benchmark (surveying) Multivariate statistics Context (archaeology) Counterfactual conditional Exploit Data mining Black box Series (stratigraphy)

Metrics

14
Cited By
2.73
FWCI (Field Weighted Citation Impact)
34
Refs
0.88
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Time Series Analysis and Forecasting
Physical Sciences →  Computer Science →  Signal Processing
Stock Market Forecasting Methods
Social Sciences →  Decision Sciences →  Management Science and Operations Research
Anomaly Detection Techniques and Applications
Physical Sciences →  Computer Science →  Artificial Intelligence
© 2026 ScienceGate Book Chapters — All rights reserved.