Sequential Deconfounding for Causal Inference with Unobserved Confounders

Tobias Hatt, Stefan Feuerriegel

In personalized medicine, a critical question is: "If I give this patient Drug A instead of Drug B, what will happen to their health metrics over time?" Answering this from historical data is often blocked by unobserved confounding—factors that influence both the treatment choice and the outcome but are missing from the records.

A recent paper by Tobias Hatt and Stefan Feuerriegel, presented at CLeaR 2024, introduces the Sequential Deconfounder. This method reconstructs "substitute" variables for hidden factors by analyzing sequential treatment patterns, enabling unbiased causal inference even when only a single treatment is administered at each timestep.

The Challenge of Unobserved Confounding

Causal inference from observational data is difficult because of confounding. For instance, a doctor might prescribe a medication based on a patient's socio-economic status or a specific behavioral habit not captured in an Electronic Health Record (EHR). Standard models might then incorrectly attribute recovery solely to the drug, or misinterpret the drug's effect because it is primarily given to high-risk patients.

Causal graph of longitudinal treatment effects with unobserved confounders.

Existing "deconfounding" methods typically require a "multi-cause" setup, where multiple treatments are prescribed simultaneously to identify hidden patterns. However, in clinical practice, doctors often prescribe just one primary treatment at a time. The Sequential Deconfounder addresses this by leveraging the sequence of treatments over time as a source of information.

The Sequential Deconfounder Framework

The authors propose a two-step framework to handle these hidden variables:

  1. Inferring Substitutes: The model assumes treatment assignments follow a Conditional Markov Model (CMM). The current treatment depends on the previous treatment, observed health metrics, and a hidden "latent" variable. To capture this, they developed the Sequential Gaussian Process Latent Variable Model (SeqGPLVM). This model analyzes the treatment history to "back out" the hidden variable that makes the observed sequence mathematically consistent.
  2. Outcome Modeling: Once these "substitute" variables are inferred, they are treated as observed covariates in standard causal models, such as Marginal Structural Models (MSMs) or Counterfactual Recurrent Networks (CRNs).
The Sequential Deconfounder framework using latent variables as substitutes.

The core insight is that the sequential dependence of treatments contains information similar to multiple simultaneous treatments. If a doctor’s decisions consistently deviate from what recorded vitals suggest, that deviation signals a hidden variable.

Evaluation and Key Results

The researchers evaluated their method using both simulated data and the real-world MIMIC-III database.

  • Simulated Data: In environments with varying levels of hidden confounding, the Sequential Deconfounder maintained performance close to an "Oracle" model (which has access to the hidden variables), while standard models failed as confounding increased.
  • MIMIC-III: On a dataset of over 3,000 ICU patients, the method significantly reduced Mean Squared Error (MSE) for predicting responses to vasopressors and ventilators. For example, it improved the oxygen saturation prediction of a standard MSM from an MSE of 0.497 to 0.337.

Conclusion and Future Directions

The Sequential Deconfounder provides a theoretical and practical path forward for causal inference in longitudinal settings with single treatments. While it currently assumes relatively stable ("time-invariant") hidden confounders and simple Markovian dependencies, it represents a significant step toward more robust AI in healthcare. Future work aims to extend the model to handle rapidly changing confounders and longer-term treatment dependencies.

Reference: Hatt, T., & Feuerriegel, S. (2024). Sequential Deconfounding for Causal Inference with Unobserved Confounders. Proceedings of Machine Learning Research, vol 236:934–956.

Summary updated

BibTeX
@inproceedings{hatt2024sequential,
  author = {Tobias Hatt and Stefan Feuerriegel},
  title = {{Sequential Deconfounding for Causal Inference with Unobserved Confounders}},
  booktitle = {CLeaR},
  year = {2024},
}
Figure