Counterfactual Explainable AI (XAI) Method for Deep Learning-Based Multivariate Time Series Classification
Alan G. Paredes Cetina, Kaouther Benguessoum, Raoni Lourenço, Sylvain Kubler
TL;DR
This work tackles the lack of transparency in deep learning for multivariate time series (MTS) classification by introducing CONFETTI, a multi-objective counterfactual explanation method. CONFETTI identifies a counterfactual target via a nearest unlike neighbor, locates influential subsequences with CAM-based weighting, and optimizes counterfactuals to jointly maximize prediction confidence, minimize changes (proximity), and enforce sparsity, all while ensuring plausibility and validity by design. The approach is evaluated on seven MTS datasets with two architectures (FCN and ResNet), showing superior or competitive performance across metrics (confidence, sparsity, proximity, plausibility, and validity) compared to state-of-the-art baselines, with robust sensitivity and ablation analyses. Practically, CONFETTI provides actionable, sparse, and high-confidence explanations that remain close to the data manifold, enabling more transparent and trustworthy decision support in real-world MTS tasks. The method also demonstrates model-agnostic viability, though leveraging CAM can enhance efficiency and interpretability when available.
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 $\geq10\%$ higher confidence while improving sparsity in $\geq40\%$.
