Temporal Poisson Square Root Graphical Models

Sinong Geng, Zhaobin Kuang, Peggy L. Peissig, David Page

Introduction

Understanding how different events influence one another over time is a critical challenge in analyzing longitudinal data. This paper introduces Temporal Poisson Square Root Graphical Models (TPSQRs), a novel framework designed to uncover these temporal relationships. By combining the flexibility of square-root graphical models with a computationally efficient Poisson approximation, TPSQRs can detect both excitatory (increasing likelihood) and inhibitory (decreasing likelihood) relationships in irregularly timed data, such as electronic health records (EHRs).

The Challenge of Longitudinal Event Data

Many real-world datasets consist of "longitudinal event data" (LED)—sequences of time-stamped events like drug prescriptions, search engine queries, or retail purchases. Analyzing this data presents several unique hurdles:

  1. Irregularity: Events do not occur at fixed intervals. A patient might visit a doctor twice in a single week, and then not return for a year.
  2. Complex Dependencies: The occurrence of one event can either increase or decrease the likelihood of another event happening in the future.
  3. Scalability: Standard undirected graphical models (UGMs) often struggle with count data or become computationally intractable when modeling joint distributions across many variables.
Illustration of longitudinal event data for two subjects, showing irregular timing and different event types.

Existing models typically fall short by either ignoring the temporal aspect entirely, assuming regular sampling intervals, or restricting themselves to modeling only negative dependencies. TPSQRs are specifically designed to bridge these gaps.

Methodology: Building on PSQRs

The authors build upon Poisson Square Root Graphical Models (PSQRs). Unlike standard Poisson graphical models, which are limited to representing negative dependencies, PSQRs can handle both positive and negative relationships between variables.

To adapt this for temporal data, the authors introduce several key technical innovations:

  • Data Aggregation & Influence Functions: To manage irregular timing, the model aggregates events into summary statistics. It uses "influence functions" to map time differences into discrete windows, effectively transforming irregular data into a format where temporal effects can be systematically measured.
  • Template Parameterization: Rather than learning a completely different model for every individual, the authors assume all subjects share a "template" of parameters. This allows the model to learn global relationships (e.g., "Drug A causes Side Effect B") while still tailoring predictions to an individual's specific history.
  • Poisson Pseudo-Likelihood Approximation: Because the original PSQR objective is computationally expensive, the authors approximate it using a Poisson pseudo-likelihood. Crucially, they provide a rigorous mathematical proof—a Sparsistency Guarantee—demonstrating that this approximation still correctly recovers the underlying graph structure (the "true" relationships) under mild conditions. This provides a "free lunch" of sorts: faster computation without sacrificing structural accuracy.

Real-World Application: Electronic Health Records

The primary evaluation of TPSQR utilizes a massive dataset of Electronic Health Records (EHRs) from the Marshfield Clinic. This dataset includes millions of drug prescriptions and condition diagnosis events from over 200,000 patients.

The core task was Adverse Drug Reaction (ADR) discovery. The model was tested on its ability to identify 50 specific drug-condition pairs (9 known ADRs and 41 negative controls) defined by the OMOP benchmark. Because count data in health records is often "bursty" and heavy-tailed, the authors noted that their model requires a higher sample complexity than simpler models dealing with binary data.

Key Results

The authors compared TPSQR against the industry-standard MSCCS (Multiple Self-Controlled Case Series) and Hawkes processes. The results demonstrated a clear advantage for the proposed method:

  • Superior Accuracy: TPSQR achieved a top Area Under the Curve (AUC) of 0.91 in detecting adverse drug reactions, significantly outperforming both MSCCS (0.77) and Hawkes processes (0.84).
  • Robustness: Across 300 different experimental configurations (varying time windows and data durations), the vast majority of TPSQR models outperformed even the best possible MSCCS model.
Boxplot comparing the AUC performance of MSCCS and TPSQR, highlighting TPSQR's superior accuracy and robustness.
  • Efficiency: By reducing the problem to an $\ell_1$-regularized Poisson regression, the authors were able to leverage highly optimized existing solvers (like the glmnet R package). This makes the model highly practical for massive, real-world datasets.

Limitations and Future Directions

While TPSQR offers a significant step forward, the authors note a few limitations. First, the model relies on user-specified time thresholds to define influence windows; poorly chosen windows might obscure relationships that occur on different time scales. Second, the theoretical requirement for a large number of samples suggests it may struggle with very rare events or smaller datasets. Finally, while the model successfully captures temporal directionality—moving beyond mere co-occurrence to see how an event now changes the probability of an event later—the authors carefully avoid claiming full causal discovery, as unobserved confounding factors in EHR data remain a persistent challenge.

Summary updated

BibTeX
@inproceedings{geng2018temporal,
  author = {Sinong Geng and Zhaobin Kuang and Peggy L. Peissig and David Page},
  title = {{Temporal Poisson Square Root Graphical Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
  url = {https://openreview.net/forum?id=Sy-f6qZuWr},
}
Figure