MASCOTS: Model-Agnostic Symbolic COunterfactual explanations for Time Series
Dawid Płudowski, Francesco Spinnato, Piotr Wilczyński, Krzysztof Kotowski, Evridiki Vasileia Ntagiou, Riccardo Guidotti, Przemysław Biecek
TL;DR
Time series classifiers are highly accurate butOften opaque, especially for ensemble models. The paper introduces MASCOTS, a model-agnostic counterfactual explainer that operates in a symbolic BoRF space derived from SAX to generate sparse, plausible counterfactuals for univariate and multivariate time series. By training a lightweight surrogate on BoRF features and guiding perturbations with feature attributions, MASCOTS produces interpretable explanations that can be conveyed visually or in natural language without relying on autoencoders or access to internal model parameters. Experimental results show that MASCOTS matches or exceeds baselines in validity and proximity while delivering substantially higher sparsity and maintaining plausible perturbations, with reasonable runtimes. This approach expands the toolbox for time-series explainability, enabling actionable, human-friendly counterfactual reasoning across diverse models and domains.
Abstract
Counterfactual explanations provide an intuitive way to understand model decisions by identifying minimal changes required to alter an outcome. However, applying counterfactual methods to time series models remains challenging due to temporal dependencies, high dimensionality, and the lack of an intuitive human-interpretable representation. We introduce MASCOTS, a method that leverages the Bag-of-Receptive-Fields representation alongside symbolic transformations inspired by Symbolic Aggregate Approximation. By operating in a symbolic feature space, it enhances interpretability while preserving fidelity to the original data and model. Unlike existing approaches that either depend on model structure or autoencoder-based sampling, MASCOTS directly generates meaningful and diverse counterfactual observations in a model-agnostic manner, operating on both univariate and multivariate data. We evaluate MASCOTS on univariate and multivariate benchmark datasets, demonstrating comparable validity, proximity, and plausibility to state-of-the-art methods, while significantly improving interpretability and sparsity. Its symbolic nature allows for explanations that can be expressed visually, in natural language, or through semantic representations, making counterfactual reasoning more accessible and actionable.
