Time is Not Enough: Time-Frequency based Explanation for Time-Series Black-Box Models
Hyunseung Chung, Sumin Jo, Yeonsu Kwon, Edward Choi
TL;DR
This work addresses the limited scope of time-domain explanations for time-series classifiers by introducing SpectralX, a plug-and-play framework that yields time-frequency explanations via STFT and ISTFT while remaining model-agnostic to black-box classifiers. Central to SpectralX is Feature Importance Approximations (FIA), a family of perturbation-based methods (Insertion, Deletion, Combined) that produce class-specific explanations with improved efficiency. Extensive experiments on synthetic data and nine UCR datasets demonstrate that time-frequency explanations generally outperform time-domain explanations, with the FIA Combined method delivering the best overall faithfulness and robustness and receiving strong support from user studies. The framework’s practical impact lies in enabling scalable, interpretable analysis of diverse time-series models across domains, with potential extensions to NLP and CV. Key contributions include (i) SpectralX as a general, plug-in XAI framework for time-series models, (ii) FIA as an efficient, class-specific perturbation approach, and (iii) empirical evidence showing the superiority of time-frequency explanations, especially in the TF domain.
Abstract
Despite the massive attention given to time-series explanations due to their extensive applications, a notable limitation in existing approaches is their primary reliance on the time-domain. This overlooks the inherent characteristic of time-series data containing both time and frequency features. In this work, we present Spectral eXplanation (SpectralX), an XAI framework that provides time-frequency explanations for time-series black-box classifiers. This easily adaptable framework enables users to "plug-in" various perturbation-based XAI methods for any pre-trained time-series classification models to assess their impact on the explanation quality without having to modify the framework architecture. Additionally, we introduce Feature Importance Approximations (FIA), a new perturbation-based XAI method. These methods consist of feature insertion, deletion, and combination techniques to enhance computational efficiency and class-specific explanations in time-series classification tasks. We conduct extensive experiments in the generated synthetic dataset and various UCR Time-Series datasets to first compare the explanation performance of FIA and other existing perturbation-based XAI methods in both time-domain and time-frequency domain, and then show the superiority of our FIA in the time-frequency domain with the SpectralX framework. Finally, we conduct a user study to confirm the practicality of our FIA in SpectralX framework for class-specific time-frequency based time-series explanations. The source code is available in https://github.com/gustmd0121/Time_is_not_Enough
