Counterfactual Explainable AI (XAI) Method for Deep Learning-Based Multivariate Time Series Classification

Alan G. Paredes Cetina, Kaouther Benguessoum, Raoni Lourenço, Sylvain Kubler · 2025

Read Counterfactual Explainable AI (XAI) Method for Deep Learning-Based Multivariate Time Series Classification by Alan G. Paredes Cetina, Kaouther Benguessoum, Raoni Lourenço, Sylvain Kubler (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2511-13237.txt.

Introduction

Alan G. Paredes Cetina and 3 co-authors present CONFETTI, a method that explains time series classifiers by showing what small change would flip a result. Deep models read multi-signal time series well but stay hard to trust, and most explanations show only part of the choice. Counterfactual examples can help if they stay accurate, close, and sparse.

CONFETTI finds the key segments of a series, picks a target case, and edits the series to balance confidence, closeness, and sparsity. On seven public datasets it beat leading methods on its main goals and on six other measures. It gained at least ten percent more confidence while making edits much sparser.

Catalog record

CREATORAlan G. Paredes Cetina, Kaouther Benguessoum, Raoni Lourenço, Sylvain Kubler
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE47 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2511-13237

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

Counterfactual Explainable AI (XAI) Method for Deep Learning-Based Multivariate Time Series Classification Alan G. Paredes Cetina, Kaouther Benguessoum, Raoni Lourenço, Sylvain Kubler Abstract Recent advances in deep learning have improved multivariate time series (MTS) classification and regression by capturing complex patterns, but their lack of transparency hinders decision-making. Explainable AI (XAI) methods offer partial insights, yet often fall short of conveying the full decision space. Counterfactual Explanations (CE) provide a promising alternative, but current approaches typically prioritize either accuracy, proximity or sparsity – rarely all – limiting their practical value. To address this, we propose confetti , a novel multi-objective CE method for MTS. confetti identifies key MTS subsequences, locates a counterfactual target, and optimally modifies the time series to balance prediction confidence, proximity and sparsity. This method provides actionable insights with minimal changes, improving interpretability, and decision support. confetti is evaluated on seven MTS datasets from the UEA archive, demonstrating its effectiveness in various domains. confetti consistently outperforms state-of-the-art CE methods in its optimization objectives, and in six other metrics from the literature, achieving ≥ 10 % \geq 10\% higher confidence while improving sparsity in ≥ 40 % \geq 40\% . Code — https://github.com/serval-uni-lu/confetti Section 1 Introduction Deep Learning (DL) models, such as Convolutional Neural Networks (CNNs) ( 27 ) , Recurrent Neural Networks (RNNs) ( 17 ) , and Transformer-based models ( 23 ) , have recently shown strong performance in multivariate time series (MTS) tasks ( 14 ; 15 ) . However, their lack of transparency makes it hard for decision makers to interpret predictions ( 21 ) . Explainable AI (XAI) methods help decision makers understand the rationale behind DL model predictions ( 1 ) . Even high-quality explanations may not reveal the full decision space. For example, an AI system might advise a broker to sell a stock due to recent volatility, and XAI could highlight the spike as the key factor. Yet the broker might not realize that a slight drop in volatility could have changed the recommendation. Counterfactual Explanations (CE), a subset of XAI, help fill this gap by showing how small input changes can alter predictions, thus revealing critical decision factors ( 25 ) . State-of-the-art CE methods for MTS mostly rely on shapelet-based techniques ( 4 ) , attention mechanisms ( 16 ) , or hybrid instance- and rule-based approaches ( 24 ) . However, they often optimize a single objective, either (i) maximizing prediction confidence , which may require large changes in the original time series, (ii) promoting sparsity , which can reduce explanation accuracy, or (iii) improving proximity , which focuses on minimizing the distance from the original instance but may lead to out‑of‑distribution instances. This narrow focus limits the usefulness of CE, as all of these objectives are important to be jointly considered to generate actionable and understandable insights. To address the lack of multi-objective CE methods for MTS classification, we introduce a novel method called confetti (COuNterFactual Explanations for mulTivariate Time serIes). It employs a four-step approach: it first locates the closest instance from the opposite class as the counterfactual target, then uses Class Activation Maps (CAMs) ( 30 ) to identify the most influential subsequences. Next, it substitutes values from the target into the original series to create an initial CE, and finally optimizes this CE to balance prediction confidence, proximity, and sparsity, while ensuring plausibility, and validity by design. In summary, the contributions of the paper are: • A novel multi-objective CE method for MTS that optimizes prediction confidence, proximity, and sparsity, while ensuring plausibility and validity by design; • A comprehensive benchmark against CoMTE, SETS, and TSEvo CE methods conducted on seven datasets from the UEA archive using two model architectures; • An ablation study of the initial stage showing how the search for most influential subsequence through feature weights affects performance. • A sensitivity analysis of our method parameters, examining how variations in their values affect performance; Section 2 provides a review of the CE literature for MTS. Section 3 introduces the concepts used in our approach and formally define the problem. Section 4 details the workings of confetti . Section 5 presents the experimental setup and results. Section 6 summarizes our contributions. Figure 1: Counterfactual explanations generated by i) Confetti ; ii) CoMTE; and iii) TsEVO for a single dimension of a multivariate time series. Below Confetti example is the Class Activation Map of the Nearest Unlike Neighbour as a heatmap, showing in red the most relevant timesteps. Section 2 Related Work CE are expected to satisfy several desiderata outlined in the XAI literature ( 11 ) : (i) Validity : the CE results in a different predicted class compared to the original instance; (ii) Confidence : the predicted probability associated with the target class should be sufficiently high, providing a measure of how strongly the model supports the CE outcome; (iii) Sparsity : the number of changes relative to the original instance is minimal; (iv) Proximity : the magnitude of these changes is as small as possible; (v) Plausibility : the CE should have feature values that lie within the distribution of a reference population, avoiding unrealistic values. CoMTE ( 2 ) was the first CE method for MTS, which substitutes one channel of a MTS instance at a time with the corresponding channel of the nearest unlike neighbor (NUN). SETS ( 4 ) uses the Shapelet Transformer to identify the most relevant subsequences per class (shapelets). Then, it substitutes the identified shapelets of the instance of interest for those of the NUN. LASTS ( 24 ) takes advantage of the growing sphere algorithm to create a latent space around the target instance, identifying the NUN. It builds a neighborhood around this NUN to generate a set of CEs. AB-CE ( 16 ) uses a sliding window technique to generate multiple candidate subsequences, which are then evaluated based on Shannon Entropy to select the most informative ones. It then proceeds to swap the corresponding instance subsequences to be explained for the candidate subsequences one by one until the classification label changes. TSEvo ( 13 ) formulates the search for CEs as a multi-objective optimization problem that incorporates proximity, sparsity, and plausibility. It initializes a population of candidate counterfactuals for a MTS instance and uses a customized version of NSGA-II ( 8 ) to evolve them. Individuals are evaluated based on the defined objectives, ranked using non-dominated sorting, and selected via tournament selection that considers both rank and crowding distance. Offspring are generated via crossover and mutation, repeated until the target number of generations is reached. Table 1: Summary of CE XAI methods for MTS. Generation columns show which objectives are optimized during CE generation, while Evaluation columns indicate which aspects are later assessed in the studies. Approach: He = Heuristic, Sh = Shapelet, At = Attention Mechanism, La = Latent space, Mo = Multi-objective. Scope: In = Instance-based, Su = Subsequence-based, Tp = Time-point based. Generation Evaluation Method Approach Scope Validity Confidence Sparsity Plausibility Proximity Validity Confidence Sparsity Plausibility Proximity CoMTE He In SETS Sh Su AB-CE At Su LASTS La Su TSevo Mo Tp confetti Mo Tp Limitations While all methods ensure Plausibility by design, only a few approaches (notably

Read the complete text