TL;DR
CausalConceptTS is a new model-agnostic framework that explains time series classifiers by measuring the causal impact of specific signal segments (concepts) rather than just their correlations. By leveraging high-fidelity diffusion models to generate realistic "what-if" scenarios, it reveals that standard associational explanations can often be misleading in safety-critical fields like medicine and meteorology.
What Problem Does This Paper Address?
Most current "Explainable AI" (XAI) methods for time series data rely on associational attributions. They highlight parts of a signal that are correlated with a prediction. However, correlation is not causation. In complex datasets—like an ECG where different heart waves are highly dependent on one another—associational methods might attribute importance to a feature that is merely a byproduct of the actual cause.
This is a major hurdle for "auditing" models in high-stakes domains. If a doctor or engineer wants to know why a model predicted a heart attack or a drought, they need to know if the model is looking at the true underlying cause or a distracting correlation. The authors address this by introducing a way to calculate causal attributions: quantifying how much the model's output would change if we specifically intervened on a single part of the time series.
Methods
The authors propose CausalConceptTS, a framework consisting of three main stages:
- Concept Assignment: The time series is divided into "concepts." These can be expert-defined (e.g., the P-wave or QRS complex in an ECG) or discovered automatically using k-means clustering on sliding windows.
- Counterfactual Generation: To measure causality, you need to know what would have happened if a specific segment were different. The authors use a Structured State Space Diffusion (SSSD) model—a state-of-the-art generative AI—to "impute" (fill in) segments of the signal. Crucially, they use a class-conditional imputer to create realistic counterfactuals (e.g., "What would this specific patient's ECG look like if this segment were healthy?").
- Causal Attribution Calculation: By comparing the model's prediction on the original signal versus the counterfactual signal, they calculate the Individual Treatment Effect (ITE) and Average Treatment Effect (ATE) for each concept.
The method is model-agnostic, meaning it can explain any classifier, from simple regressions to complex Deep Learning models like the Structured State Space (S4) models used in this study.
Datasets
The researchers evaluated their method across three distinct domains:
- Drought Prediction: Using 18 meteorological features (pressure, humidity, etc.) over 180 days to predict upcoming droughts. Concepts were discovered via clustering.
- PTB-XL (ECG): A large clinical dataset of 12-lead Electrocardiograms used to classify Myocardial Infarction (heart attacks). Concepts were defined by medical experts (P-wave, QRS, ST-segment, etc.).
- Schizophrenia EEG: 16-channel brain activity data. Concepts were derived using "EEG microstate analysis," which identifies transient functional states of the brain.
- Toy Example: A synthetic sine-wave dataset used to mathematically prove that associational methods can flip signs (showing a negative effect for a positive cause) while causal methods remain robust.
Key Insights and Ideas
- The "Association Trap": In the drought dataset, associational methods suggested that precipitation had a negative effect on drought prediction. CausalConceptTS correctly identified it as a strong positive driver, aligning with established meteorological science.
- Class-Conditional Imputation is the Secret Sauce: The authors demonstrate that the fundamental difference between causal and associational XAI lies in the imputer. Using an unconditional imputer (standard in many XAI tools) leads to associational results, while a class-conditional imputer enables true causal discovery.
- Faithfulness over Intuition: The goal isn't just to provide an explanation that "looks right" to a human, but one that is faithful to the model's actual decision logic and the underlying data generation process.
Key Results
- High Classifier Performance: The underlying S4 classifiers were highly accurate (AUROCs of 0.89 for Drought, 0.97 for ECG, and 0.96 for EEG), ensuring the explanations were for high-quality models.
- Expert Alignment: In the ECG task, causal attributions highlighted pathological Q-waves and T-wave abnormalities in specific leads that are textbook indicators of heart attacks, whereas associational methods were often inconsistent or highlighted irrelevant segments.
- Statistical Significance: The authors used bootstrapping to provide 95% confidence intervals for their attributions, allowing them to mark which "explanations" were statistically significant and which were likely noise.
Limitations and Future Work
- Fixed Timing: The current method assumes "concepts" happen at fixed intervals. It doesn't yet account for interventions that change the duration or timing of a signal (like a heart rate slowing down).
- Confounding Factors: The model focuses on the signal itself but doesn't yet incorporate static metadata (like a patient's age or pre-existing conditions) which could act as confounders.
- Inter-concept Interactions: Future work aims to explore how one concept might cause another (e.g., how an early spike in pressure might cause a later change in humidity), moving toward a more complete causal graph of time series events.
Summary updated