The Medical Deconfounder: Assessing Treatment Effects with Electronic Health Records

Linying Zhang, Yixin Wang, Anna Ostropolets, Jami J. Mulgrave, David M. Blei, George Hripcsak

TL;DR

This paper introduces the "Medical Deconfounder," a novel machine learning approach to accurately estimate the causal effects of medications using electronic health records (EHRs). By constructing a "substitute confounder" from medication prescription patterns, it effectively addresses the challenge of unobserved confounders in EHR data, leading to more reliable treatment effect estimates than traditional methods.

What Problem Does This Paper Address?

Assessing the true effect of a medication on patient outcomes is crucial for guiding clinical practice. While Randomized Controlled Trials (RCTs) are the gold standard, they are expensive and time-consuming. Electronic Health Records (EHRs) offer a vast, readily available data source, but analyzing them for treatment effects is fraught with challenges. A primary issue is confounding: unobserved factors (like socioeconomic status) can influence both a patient's prescription and their health outcome, leading to biased estimates if not accounted for. Traditional causal inference methods struggle when these confounders are not recorded in the EHRs. This paper tackles the problem of estimating medication treatment effects from EHRs in the presence of these unobserved confounders.

Methods

The core innovation is the "Medical Deconfounder," a two-step machine learning framework:

  1. Constructing a Substitute Confounder: The method first models the complex patterns of medication prescriptions using probabilistic factor models. These models learn latent representations of patients' medication histories. The key insight is that these latent representations can serve as a "substitute confounder" that captures information about both observed and unobserved confounders influencing medication choices. The paper explores three probabilistic factor models: Probabilistic Principal Component Analysis (PPCA), Poisson Matrix Factorization (PMF), and Deep Exponential Family (DEF). A predictive check is used to ensure the chosen factor model adequately fits the medication data.
  2. Fitting an Outcome Model: Once the substitute confounder is constructed, it's treated as an observed confounder. A Bayesian linear regression model is then fitted to predict patient outcomes (e.g., lab test results) using both the patient's medication record and the substitute confounder. The coefficients of this regression model represent the estimated causal treatment effects of each medication.

Datasets

The paper evaluates the Medical Deconfounder on:

  • Two simulated datasets:
    • A two-medication simulation with either no causal medication or one causal medication.
  • A multi-medication simulation with 50 medications and 5,000 patients, where 80% of medications were set to be non-causal.
  • Two real-world datasets:
    • A cohort of patients with potassium disorders.
  • A cohort of patients with type 2 diabetes mellitus.

These real-world datasets were extracted from the Columbia University Medical Center database, standardized using the OHDSI format.

Key Insights and Ideas

  • Medication Patterns as Proxies for Confounders: The most significant insight is that the way patients are prescribed multiple medications together can implicitly reveal information about unobserved confounders. By modeling these prescription patterns, we can create a powerful proxy for these hidden factors.
  • "Substitute Confounder" for Unobserved Factors: The concept of a "substitute confounder" is central. It's not a directly measured variable but a learned latent representation that effectively "stands in" for unobserved confounders, allowing for causal inference.
  • Addressing Multi-Medication Complexity: Unlike methods that might focus on single drugs, the Medical Deconfounder inherently handles scenarios with multiple co-prescribed medications, which is common in real-world clinical practice.
  • Bridging Observational Data and Causal Inference: The work provides a robust framework for extracting reliable causal insights from observational EHR data, a critical step towards making such data more useful for clinical decision-making.

Key Results

  • Improved Accuracy: Across both simulated and real-world datasets, the Medical Deconfounder consistently produced treatment effect estimates that were closer to the true causal effects compared to unadjusted models.
  • Reduced False Positives: In the potassium disorder case study, the Medical Deconfounder identified fewer "causal" medications that lacked strong evidence in the medical literature, indicating a reduction in false positive discoveries.
  • Identification of Causal Medications: The method successfully identified medications with causal effects on outcomes, and these findings were generally consistent with existing medical literature. For instance, in the diabetes cohort, it identified medications known to affect blood glucose regulation.
  • DEF Outperforms PMF in Simulations: In the multi-medication simulation, the Deep Exponential Family (DEF) model for the substitute confounder showed better performance in terms of coverage of true effects compared to Poisson Matrix Factorization (PMF).

Limitations and Future Work

  • Model Choice Sensitivity: The paper acknowledges that the choice of probabilistic factor model (PPCA, PMF, DEF) can influence the treatment effect estimates. While DEF showed promise, further investigation into model selection and sensitivity analysis is suggested.
  • Longitudinal Data: The current framework primarily uses cross-sectional data for treatment effect estimation. The authors suggest extending the Medical Deconfounder to longitudinal settings to accommodate disease progression and estimate time-dependent treatment effects.
  • Generalizability: While tested on two distinct disease cohorts, further validation across a wider range of diseases and patient populations would strengthen the generalizability of the approach.
  • Mechanism Exploration: For medications where the deconfounder identified a causal effect but the literature was less clear, or vice-versa, further investigation into the underlying biological mechanisms is warranted.

Summary updated

BibTeX
@inproceedings{zhang2019medical,
  author = {Linying Zhang and Yixin Wang and Anna Ostropolets and Jami J. Mulgrave and David M. Blei and George Hripcsak},
  title = {{The Medical Deconfounder: Assessing Treatment Effects with Electronic Health Records}},
  booktitle = {MLHC},
  year = {2019},
}
Figure