Deconfounding Temporal Autoencoder: Estimating Treatment Effects over Time Using Noisy Proxies

Milan Kuzmanovic, Tobias Hatt, Stefan Feuerriegel

TL;DR

The Deconfounding Temporal Autoencoder (DTA) is a novel framework designed to estimate individualized treatment effects over time when the variables driving those effects are hidden. By leveraging noisy proxies (e.g., using a patient's zip code as a proxy for socioeconomic status) and introducing a unique causal regularization penalty, DTA learns a "clean" hidden embedding. This allows standard causal models to produce unbiased predictions in complex, longitudinal settings.

The Challenge of Hidden Confounders in Longitudinal Data

In causal inference, the "gold standard" for estimating how a treatment affects an individual relies on the assumption of no hidden confounders. This assumes we have observed every variable that influences both the treatment assignment and the final outcome.

In real-world scenarios—especially in healthcare—this assumption is almost always violated. We might not be able to directly measure a patient's exact stress levels, genetic predispositions, or underlying physiological states. However, we often have access to noisy proxies: indirect measurements that correlate with those hidden factors.

Longitudinal Causal Graph

While methods exist to handle these proxies in static, one-off scenarios, the challenge becomes significantly harder in longitudinal settings (data collected over time). In these cases, treatments and confounders evolve together, creating a feedback loop that standard models cannot untangle. The authors aim to bridge this gap by learning a latent representation of these hidden confounders that can be used to "deconfound" the data.

Methods: The Deconfounding Temporal Autoencoder (DTA)

The authors introduce the Deconfounding Temporal Autoencoder (DTA). Rather than acting as a standalone outcome predictor, DTA is a representation learning tool designed to work in two main steps:

  1. The Architecture: DTA utilizes a Long Short-Term Memory (LSTM) autoencoder. An encoder maps observed noisy proxies into a hidden embedding, and a decoder attempts to reconstruct those proxies while simultaneously predicting the next outcome.
DTA Architecture
  1. Causal Regularization: To ensure the hidden embedding accurately represents the confounders, the authors add a unique causal regularization penalty based on Kullback-Leibler (KL) divergence. This penalty mathematically forces the potential outcomes and the treatment assignments to be independent, given the learned embedding. This restores a property called sequential strong ignorability, which is the necessary condition for causal models to function correctly.
  2. Downstream Integration: Once DTA learns this embedding, it can be plugged into state-of-the-art longitudinal models like Marginal Structural Models (MSMs) or Recurrent Marginal Structural Networks (RMSNs) to obtain unbiased treatment effect estimates.

Datasets and Evaluation

The paper evaluates DTA using two distinct approaches:

  • Synthetic Data: The authors simulated 5,000 patient trajectories over 30 timesteps. This allowed them to precisely control the "amount" of hidden confounding ($\gamma$) and compare DTA against an Oracle (a hypothetical model that perfectly knows the true hidden confounders).
  • Real-World Medical Data (MIMIC-III): They utilized the well-known MIMIC-III dataset, extracting 2,313 trajectories from ICU patients. They focused on the effects of vasopressors and mechanical ventilation on blood pressure and oxygen saturation—a clinical scenario where hidden physiological factors are guaranteed to exist.

Key Insights and Results

  • Proxies are Sufficient: You do not need to observe the hidden confounder perfectly. As long as you have noisy proxies, you can reconstruct a "sufficient" version of the confounder for causal tasks.
  • Causal vs. Standard Compression: A standard autoencoder merely attempts to compress data. DTA demonstrates that for causal inference, a specific type of compression is required—one that explicitly breaks the link between treatment assignment and potential outcomes in the latent space.
  • Beating the Bias: In synthetic tests, as the level of hidden confounding increased, standard models (the "Confounded" baselines) saw their error skyrocket. DTA-enhanced models remained stable and closely tracked the performance of the "Oracle" model.
  • Significant Gains in the ICU: On the MIMIC-III dataset, DTA led to substantial improvements in outcome prediction. For example, using DTA with a Marginal Structural Model (MSM) reduced the prediction error for oxygen saturation by 26.9% and for blood pressure by 14.7% compared to the baseline.
  • Consistency: The improvements were consistent across different types of downstream models (both traditional epidemiology models and modern neural networks), proving DTA’s versatility.

Limitations and Future Work

  • Distributional Assumptions: To make the causal penalty computationally efficient, the authors assumed the distributions were Gaussian and used linear regression to approximate conditional means. In highly non-linear or non-Gaussian systems, this might be a bottleneck.
  • Hyperparameter Sensitivity: While robust to embedding size, the model does require tuning the weights of the different loss functions, which necessitates careful cross-validation.
  • Future Directions: The authors suggest exploring different RNN architectures (like Transformers) or more flexible ways to estimate the KL divergence penalty to handle even more complex data distributions.

Summary updated

BibTeX
@inproceedings{kuzmanovic2021deconfounding,
  author = {Milan Kuzmanovic and Tobias Hatt and Stefan Feuerriegel},
  title = {{Deconfounding Temporal Autoencoder: Estimating Treatment Effects over Time Using Noisy Proxies}},
  booktitle = {ML4H @ NeurIPS},
  year = {2021},
}
Figure