NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Causal Structure Learning via Temporal Markov Networks

Aubrey Barnard, David PagePGM 2018

TL;DR

This paper introduces Temporal Markov Networks (TMNs) as a novel approach to learning causal structures in time series data, particularly for messy Electronic Medical Record (EMR) data. By reformulating the problem as a smooth, convex optimization task, TMNs overcome the combinatorial complexity of traditional methods, offering improved accuracy and scalability.

What Problem Does This Paper Address?

Discovering causal relationships in time series data is crucial for understanding complex systems, from biological processes to patient health. Dynamic Bayesian Networks (DBNs) are a common tool for this, but learning their structure is a computationally challenging problem. The sheer number of possible network structures grows exponentially with the number of variables, making exhaustive search impossible. Existing methods often rely on heuristics or make strong assumptions that can limit their accuracy or applicability. This is particularly problematic when dealing with real-world data like EMRs, which are often irregular, sparse, noisy, and contain missing information, making them ill-suited for standard DBN assumptions.

Methods

The core innovation is the use of Temporal Markov Networks (TMNs). Instead of directly learning the directed structure of a DBN, TMNs first learn an undirected skeleton using a log-linear model with carefully designed temporal feature functions. These features capture various aspects of event sequences, including co-occurrence, temporal order, and even temporal V-structures.

The key advantage lies in the parameter learning phase. For TMNs, this becomes a smooth, convex optimization problem, solvable efficiently with gradient methods. This contrasts sharply with the combinatorial search required for DBNs. The weights of the learned features directly indicate the presence and strength of relationships. Theorem 5 establishes that under certain conditions (first-order, non-isochronal DBNs), the learned TMN structure can recover the causal structure of the generating DBN.

Datasets

The paper evaluates its method on both synthetic and real-world datasets:

  • Synthetic Data: 1,000 random DBNs were generated, with data sampled from these networks under various conditions (noise, missing timesteps, confounding) to test the robustness of the methods.
  • Real-World Data: The OMOP ADE task dataset was used. This dataset, derived from Electronic Medical Records (EMR) and claims databases, focuses on identifying adverse drug events (ADEs). It includes five OMOP databases (GE, CCAE, MDCD, MDCR, MSLR) with millions of patient timelines.

Key Insights and Ideas

  • Convexity is King: Reformulating structure learning as a convex optimization problem is a game-changer. It guarantees a global optimum and avoids the pitfalls of local optima and heuristic search, leading to more reliable and efficient learning.
  • Features as the Language of Time: The design of temporal feature functions is critical. These features allow TMNs to flexibly model the irregular and sparse nature of EMR data, capturing temporal dependencies that are hard to represent with standard DBNs.
  • Bridging Undirected and Directed: TMNs learn an undirected structure first, but the temporal nature of the features inherently directs the edges. This provides a principled way to infer directed causal relationships from observational data.
  • Robustness to Messy Data: The experimental results highlight TMNs' superior performance on noisy and irregular data, a significant advantage for real-world applications like EMR analysis.

Key Results

  • Synthetic Data: TMNs (particularly TMN-Bf3) demonstrated strong performance, often outperforming or matching other methods, especially in the presence of noise and confounding. While BNF-DBN performed best overall on synthetic data, this was attributed to its assumptions perfectly matching the data generation process, which is not typical in real-world scenarios.
  • OMOP Experiments: TMNs, especially TMN-Bf3, showed competitive or superior performance compared to PC and BNF-DBN across various OMOP datasets. TMN-Bf3 was particularly robust and performed best on all five OMOP datasets.
  • Scalability: TMNs demonstrated better scalability than PC and BNF-DBN, allowing them to process much larger datasets (millions of timelines) where other methods struggled.

Limitations and Future Work

  • Feature Engineering: The effectiveness of TMNs relies heavily on the choice of features. Designing expressive and appropriate features for a given problem remains a modeling challenge.
  • First-Order DBN Assumption: Theorem 5's guarantee of recovering the DBN structure is limited to first-order, non-isochronal DBNs. While the paper suggests higher-order DBNs can be converted to equivalent first-order ones, this might introduce complexity.
  • Causal Interpretation: While TMNs learn a causal DBN structure under certain assumptions (causal Markov and faithfulness), the paper notes that the OMOP task is not a perfect evaluation for structure learning methods, as it's not always clear if OMOP pairs represent direct effects.
  • Future Work: The authors suggest investigating how to better apply structure learning to epidemiological tasks and exploring the use of additive ensembles of learned networks. They also mention that further tuning of features could improve performance.

Summary updated

BibTeX
@inproceedings{barnard2018causal,
  author = {Aubrey Barnard and David Page},
  title = {{Causal Structure Learning via Temporal Markov Networks}},
  booktitle = {PGM},
  year = {2018},
  url = {https://openreview.net/forum?id=ngMCnnClZkD},
}
Figure