Causal Inference in Time Series via Supervised Learning

Yoichi Chikahara, Akinori Fujino

Abstract

Determining causal relationships in time series data is a fundamental challenge across scientific domains. Traditional Granger causality methods often rely on specific regression models, which are prone to error in the presence of nonlinearities. This paper introduces Supervised Inference of Granger Causality (SIGC), a framework that treats causal discovery as a supervised classification problem. By utilizing kernel-based Maximum Mean Discrepancy (MMD) to identify "causal signatures," SIGC provides a robust, model-agnostic approach to inference. Our results demonstrate that SIGC significantly outperforms traditional methods, particularly in complex nonlinear systems, achieving up to 96% accuracy on synthetic benchmarks.

Introduction

The problem of identifying "who causes whom" in time series—known as Granger causality—is typically addressed by testing whether the past values of one variable $X$ improve the prediction of another variable $Y$. However, this paradigm is heavily dependent on the choice of an underlying regression model. If a linear Vector Autoregressive (VAR) model is applied to a nonlinear system, the resulting causal inference is likely to be flawed. Selecting the appropriate model for diverse datasets remains a significant hurdle in practical applications.

Methodology: From Regression to Classification

SIGC reframes the causal inference problem as a ternary classification task, where a model predicts one of three labels: $X \to Y$, $Y \to X$, or No Causation. Instead of fitting a regression model, the framework extracts features based on the statistical "fingerprints" left by causal interactions.

Conceptual overview of SIGC: Time series data is transformed into MMD-based feature representations that serve as "causal signatures" for classification.

The core of this approach is the use of Maximum Mean Discrepancy (MMD). MMD measures the distance between distributions in a high-dimensional Reproducing Kernel Hilbert Space (RKHS). Specifically, SIGC compares the conditional distribution of $Y$ given its own history against the distribution of $Y$ given both its own history and the history of $X$. A significant difference between these distributions indicates a causal link. To ensure computational efficiency and fixed-size feature vectors, the method employs Random Fourier Features (RFF) and a Kernel Kalman Filter (KKF-CEO). A Random Forest classifier is then trained on synthetic data to recognize these MMD-based signatures.

Experimental Results

The authors evaluated SIGC against several baselines, including traditional VAR-based Granger causality ($GC_{VAR}$), Transfer Entropy (TE), and other kernel-based methods.

Performance comparison of SIGC against baseline methods on linear and nonlinear synthetic test data across varying time series lengths.

Synthetic Data Performance

On nonlinear synthetic datasets, SIGC achieved a remarkable accuracy of approximately 96%. In contrast, traditional $GC_{VAR}$ performed near the level of random chance (40-50%) for the ternary task. This highlights SIGC's robustness to nonlinearity, as the kernel-based approach captures higher-order statistical changes that simple mean-improvement tests miss.

Real-World and Multivariate Validation

SIGC's efficacy was further validated on real-world bivariate pairs (e.g., temperature, radiation, internet traffic), where it correctly identified the causal direction in all tested cases. Furthermore, in multivariate biological datasets involving yeast gene expression, a trivariate extension of the model (SIGC-tri) successfully accounted for common causes, achieving the highest F1-scores among compared methods.

Discussion and Conclusion

By shifting from regression-based testing to supervised pattern recognition, SIGC avoids the pitfalls of model misspecification. The method's ability to generalize from synthetic training data to real-world scenarios suggests that causal relationships leave consistent statistical signatures across domains.

Despite its success, challenges remain. The current framework assumes the absence of latent confounders—unobserved variables that might influence both $X$ and $Y$. Additionally, scaling the approach to high-dimensional systems with hundreds of variables presents a computational challenge due to the combinatorial explosion of potential interactions. Future work will focus on addressing these limitations and exploring time-varying causal dynamics.

Summary updated

BibTeX
@inproceedings{chikahara2018causal,
  author = {Yoichi Chikahara and Akinori Fujino},
  title = {{Causal Inference in Time Series via Supervised Learning}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.24963/ijcai.2018/282},
}
Figure