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

An Application of the Causal Roadmap in Two Safety Monitoring Case Studies: Covariate-Adjustment and Outcome Prediction using Electronic Health Record Data

Brian D. Williamson, Richard Wyss, Elizabeth A. Stuart, Lauren E Dang, Andrew N. Mertens, Andrew Timothy Wilson, Susan Gruber · DOI

Abstract

Real-world data, such as administrative claims and electronic health records, are increasingly used for safety monitoring and to help guide regulatory decision-making. In these settings, it is important to document analytic decisions transparently and objectively to ensure that analyses meet their intended goals. The Causal Roadmap is an established framework that can guide and document analytic decisions through each step of the analytic pipeline, which will help investigators generate high-quality real-world evidence. In this paper, we illustrate the utility of the Causal Roadmap using two case studies previously led by workgroups sponsored by the Sentinel Initiative -- a program for actively monitoring the safety of regulated medical products. Each case example focuses on different aspects of the analytic pipeline for drug safety monitoring. The first case study shows how the Causal Roadmap encourages transparency, reproducibility, and objective decision-making for causal analyses. The second case study highlights how this framework can guide analytic decisions beyond inference on causal parameters, improving outcome ascertainment in clinical phenotyping. These examples provide a structured framework for implementing the Causal Roadmap in safety surveillance and guide transparent, reproducible, and objective analysis.

Introduction: Navigating the Messy Reality of Real-World Data

In the world of drug safety, "Real-World Data" (RWD)—the digital breadcrumbs left behind in electronic health records (EHRs) and insurance claims—is a double-edged sword. It offers a massive, diverse look at how drugs perform outside of pristine clinical trials, but it is notoriously messy, biased, and prone to "researcher degrees of freedom."

A recent paper by Williamson et al. demonstrates how a framework called the Causal Roadmap can turn this chaos into credible evidence. By applying a structured, step-by-step pipeline to two FDA Sentinel Initiative case studies, the authors show how we can make analytic decisions more transparent, objective, and reproducible.

The Problem: Confounding and Misclassification

When researchers use EHR data to see if a drug causes a side effect, they face two massive hurdles:

  1. Confounding: Unlike a randomized trial, patients "select" into treatments. If sicker patients are given Drug A instead of Drug B, Drug A might look dangerous simply because of who took it.
  2. Misclassification: Identifying a health outcome (like a rare allergic reaction) from a database is hard. If your "phenotyping" algorithm is wrong, your final safety estimate will be biased.
Causal Directed Acyclic Graph (DAG) illustrating the relationship between covariates (W), treatment (A), and outcome (Y).

As illustrated in the Directed Acyclic Graph (DAG) above, background covariates ($W$) often influence both the treatment assignment ($A$) and the eventual outcome ($Y$). Traditionally, researchers make a series of subjective choices to handle these issues. This "black box" approach makes it hard to know if a result is a true safety signal or just a byproduct of a specific statistical tweak. The Causal Roadmap aims to standardize this process by explicitly defining these relationships and the steps needed to adjust for them.

Methods and Datasets

The authors break the analytic process into a sequence of pre-defined steps (e.g., specify the question, define the causal model, assess identifiability). They highlight several sophisticated techniques:

  • Targeted Minimum Loss-based Estimation (TMLE): A doubly-robust estimation method that combines models for both the treatment assignment (propensity score) and the outcome.
  • Outcome-Blind Simulations: To avoid "peeking" at results, the authors used observed data to create "synthetic" datasets with known causal effects. They tested eight different Lasso-based models on these synthetic sets to see which one recovered the "truth" most accurately before running the final analysis on the real data.
  • Super Learner: In the second case study, they used an ensemble machine learning approach that stacks multiple algorithms (XGBoost, Neural Nets, BART) to identify clinical cases more accurately than any single model could.

The paper draws on two primary sources: Medicare-EHR Linked Data (2007-2017) for Case Study 1 (NSAIDs vs. Opioids) and data from Kaiser Permanente Washington & Northwest for Case Study 2 (Anaphylaxis), which involved 239 gold-standard, chart-reviewed cases.

Key Insights and Results

Case Study 1: Kidney Injury and Covariate Adjustment

The unadjusted data suggested that NSAIDs had a higher risk of Acute Kidney Injury (risk difference of 0.024). However, after applying the Roadmap’s rigorous adjustment, the risk difference dropped to a statistically insignificant 0.005. The "signal" was actually just confounding. This highlights the importance of objectivity through simulation; by proving a specific model performed best on synthetic data, the researchers justified their choice without "p-hacking."

Case Study 2: Anaphylaxis and Outcome Prediction

The study found that phenotyping is essentially a causal problem. If your case-finding algorithm has low sensitivity, it saps the statistical power of the safety study. By using Natural Language Processing (NLP) to extract features from clinical notes, the machine learning ensemble achieved a cross-validated AUC of 0.70, vastly outperforming standard logistic regression (AUC of 0.58). This improved the Positive Predictive Value (PPV) to 86%, crucial for reducing bias.

Conclusion

While the Causal Roadmap requires significant statistical expertise, it ensures that the process of analysis becomes just as important as the result. As we rely more on real-world evidence for regulatory decisions, this structured framework provides the transparency and reproducibility necessary for objective safety surveillance.

Summary updated

BibTeX
@article{williamson2023application,
  author = {Brian D. Williamson and Richard Wyss and Elizabeth A. Stuart and Lauren E Dang and Andrew N. Mertens and Andrew Timothy Wilson and Susan Gruber},
  title = {{An Application of the Causal Roadmap in Two Safety Monitoring Case Studies: Covariate-Adjustment and Outcome Prediction using Electronic Health Record Data}},
  journal = {Journal of Clinical and Translational Science},
  year = {2023},
  doi = {10.1017/cts.2023.632},
}
Figure