KarmaTS: A Universal Simulation Platform for Multivariate Time Series with Functional Causal Dynamics

Haixin Li, Yanke Li, Diego Paez-Granados · DOI

Abstract

We introduce KarmaTS, an interactive framework for constructing lag-indexed, executable spatiotemporal causal graphical models for multivariate time series (MTS) simulation. Motivated by the challenge of access-restricted physiological data, KarmaTS generates synthetic MTS with known causal dynamics and augments real-world datasets with expert knowledge. The system constructs a discrete-time structural causal process (DSCP) by combining expert knowledge and algorithmic proposals in a mixed-initiative, human-in-the-loop workflow. The resulting DSCP supports simulation and causal interventions, including those under user-specified distribution shifts. KarmaTS handles mixed variable types, contemporaneous and lagged edges, and modular edge functionals ranging from parameterizable templates to neural network models. Together, these features enable flexible validation and benchmarking of causal discovery algorithms through expert-informed simulation.

Introduction

In domains such as healthcare and geosciences, identifying causal mechanisms—the why behind observed phenomena—is often more critical than simple predictive modeling. However, researchers face significant obstacles: high-quality physiological data is frequently restricted due to privacy concerns, and even when accessible, the underlying "ground truth" causal graph is rarely known. This lack of ground truth makes it difficult to validate causal discovery algorithms, which may otherwise identify spurious correlations.

Existing simulators often fail to replicate the complexity of real-world multivariate time series (MTS), such as time-lagged effects, contemporaneous interactions, and mixed data types (e.g., continuous physiological signals interacting with binary clinical interventions). KarmaTS addresses these gaps by providing an interactive, "human-in-the-loop" platform for generating realistic MTS data based on complex, expert-refined causal relationships.

The KarmaTS Framework

The core of KarmaTS is the Discrete-time Structural Causal Process (DSCP). This framework allows for a mixed-initiative workflow where domain experts collaborate with algorithmic tools to define the causal structure.

The KarmaTS system architecture facilitates a mixed-initiative workflow, combining expert knowledge with algorithmic proposals to generate synthetic time series.

The platform features several key components:

  • Interactive Graph Editor: A user interface for defining nodes, edges, and temporal lags (e.g., how a variable at time $t-k$ influences another at time $t$).
  • Algorithmic Proposals: The system can incorporate outputs from existing causal discovery algorithms as initial graph suggestions for expert refinement.
  • Modular Edge Functionals: Users can define how variables interact using a range of "functionals," from simple parameterized templates to complex neural network models (e.g., GRU-VAEs) capable of learning non-linear dynamics from real data.
  • Execution and Intervention: Once defined, the DSCP can simulate infinite synthetic data streams or perform "what-if" causal interventions under various distribution shifts.

Evaluation and Results

KarmaTS was validated through two primary use cases: privacy-conscious synthesis of fMRI data and benchmarking causal discovery algorithms.

Privacy-Conscious fMRI Synthesis

Using the MSDL atlas fMRI dataset, the authors demonstrated that KarmaTS can act as a "privacy shield." By training a GRU-VAE to capture brain connectivity dynamics, the system generated synthetic fMRI signals that preserved global organizational features—achieving a matrix correlation of 0.5097 with real data—without exposing sensitive raw temporal details.

Algorithm Benchmarking

The platform was used to create synthetic benchmarks with diverse topologies, including Star, Tree, and Cycle graphs. Testing six state-of-the-art algorithms (including PCMCI, DYNOTEARS, and TCDF) revealed that no single method dominates all scenarios. For instance, TCDF performed best on Star graphs, while PCMCI excelled on Tree structures. Notably, DYNOTEARS showed high stability across different graph types and the lowest Structural Intervention Distance (SID).

Example of (a) a causal graph defined in KarmaTS and (b) the resulting simulated multivariate time series across mixed data types.

Key Insights

  • Mixed-Type Handling: KarmaTS successfully simulates interactions between continuous, binary, and categorical variables, a common requirement in real-world datasets that many simulators overlook.
  • Scalability Challenges: Benchmarking showed that the performance of most causal discovery algorithms drops significantly as the number of nodes increases, highlighting a critical area for future research.
  • Simulation for Validation: By providing a known ground truth, KarmaTS enables rigorous verification of whether discovery algorithms are capturing true dynamics or noise.

Conclusion and Future Work

KarmaTS provides a robust "sandbox" for researchers to develop and validate causal discovery tools. While currently powerful, future work will focus on formal user studies with domain experts to refine the elicitation protocol and integrating more advanced statistical methods for uncertainty estimation and robust quantification of causal relationships.

Summary updated

BibTeX
@misc{li2025karmats,
  author = {Haixin Li and Yanke Li and Diego Paez-Granados},
  title = {{KarmaTS: A Universal Simulation Platform for Multivariate Time Series with Functional Causal Dynamics}},
  year = {2025},
  eprint = {2511.11357},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.11357},
}
Figure