Conditional Generation of Medical Time Series for Extrapolation to Underrepresented Populations

Simon Bing, Andrea Dittadi, Stefan Bauer, Patrick Schwab

TL;DR

HealthGen is a new generative framework designed to create high-fidelity synthetic Electronic Health Records (EHRs) by explicitly modeling both clinical time series and their informative missingness patterns. By enabling the conditional generation of specific patient subpopulations, the authors demonstrate that synthetic data can be used to augment real-world datasets, significantly improving model fairness and performance for underrepresented groups.

What Problem Does This Paper Address?

Machine learning in healthcare is often hamstrung by two major issues: data scarcity and lack of representation.

First, Electronic Health Records (EHRs) are highly sensitive, making them difficult to share across institutions due to legal and privacy concerns. Second, even when data is available, it often comes from a single hospital system, leading to "overfitting" to a specific demographic. This results in models that perform poorly—or even harmfully—on underrepresented subpopulations (e.g., minority ethnicities or specific insurance types).

While synthetic data generation is a promising solution, medical time series are notoriously difficult to simulate. They are "messy," characterized by high dimensionality and, most importantly, non-random patterns of missing data. In a clinical setting, the fact that a test wasn't ordered is often just as informative as the result of a test that was.

Methods

The authors introduce HealthGen, a dynamical Variational Autoencoder (VAE)-based architecture. Its design includes several key innovations:

  • Explicit Missingness Modeling: Unlike previous models that treat missing data as a nuisance to be imputed, HealthGen generates binary "missingness masks" ($m_{1:T}$) alongside the actual feature values ($x_{1:T}$).
  • Disentangled Latent Space: The model separates time-invariant patient characteristics (like age and sex) into a static latent variable ($v$) and temporal dynamics into a sequence of dynamic latent variables ($z_t$). This separation allows the model to learn how high-level patient states dictate the evolution of clinical variables over time.
  • Conditional Generation: HealthGen can be conditioned on specific demographic descriptors ($s$) and clinical labels ($y$). This allows researchers to "dial in" specific patient types, such as generating a cohort of patients with a rare condition or from a specific minority group.

Datasets

The study utilizes the MIMIC-III (Medical Information Mart for Intensive Care) dataset, a gold-standard database containing de-identified EHRs from over 50,000 ICU patients. The authors preprocessed this into a cohort of 34,472 adult patients, focusing on five clinical interventions (e.g., mechanical ventilation, vasopressor administration) as prediction targets.

Key Insights and Ideas

  • Missingness is a Clinical Signal: A core "aha" moment of the paper is the empirical proof that missingness patterns are highly informative. In a preliminary test, a model trained only on the masks (the "when" of measurements) performed nearly as well as one trained on the full data. HealthGen’s ability to capture this "clinical behavior" is what sets it apart from general-purpose time-series generators.
  • Fairness through Targeted Augmentation: The most compelling use case presented isn't just replacing real data, but fixing it. By identifying groups where a model performs poorly due to lack of data (like "Government" insured patients in the MIMIC set), HealthGen can generate targeted synthetic samples to balance the training set.
  • Privacy without Memorization: By comparing synthetic samples to their "nearest neighbors" in the training set, the authors show that HealthGen learns the underlying distribution rather than just memorizing and replaying sensitive patient records.

Key Results

The authors evaluated HealthGen using the Train on Synthetic, Test on Real (TSTR) paradigm. A downstream classifier (GRU-D) was trained on synthetic data and tested on a held-out set of real patients.

  • Superior Fidelity: HealthGen consistently outperformed state-of-the-art baselines (SRNN, KVAE, and TimeGAN) across all five clinical tasks. As shown in Table 1, the AUROC scores for HealthGen were significantly closer to the "Real Data" benchmark than any other model.
Table 1: Comparison of AUROC scores for all predictive tasks between Health- Gen and the baseline models. The 95% confidence interval of the mean value is presented in parentheses and is estimated via bootstrapping with 30 samples.
  • Boosting Fairness: In tasks where real-world data was imbalanced, augmenting the training set with HealthGen-generated minority samples significantly boosted the predictive score for those groups (e.g., improving the AUROC for the "Government" insurance group from near-random to useful levels) without sacrificing performance on the majority groups.
  • Visual Realism: Qualitative analysis (Figure 1) demonstrates that the generated time series capture the sparse, irregular nature of real ICU data far more effectively than baseline methods.
Sample time series of synthetically generated patients compared to a real patient.

Limitations and Future Work

While promising, the authors note that HealthGen does not yet provide formal Differential Privacy (DP) guarantees, which would be the "gold standard" for safe data sharing. Additionally, the model is limited by the diversity of its training data; it cannot generate patient types that are entirely outside the distribution it has seen.

Future work may involve integrating HealthGen into federated learning frameworks, allowing multiple hospitals to collaboratively train a generative model without ever exchanging raw, sensitive patient records.

Summary updated

Abstract

The widespread adoption of electronic health records (EHRs) and subsequent increased availability of longitudinal healthcare data has led to significant advances in our understanding of health and disease with direct and immediate impact on the development of new diagnostics and therapeutic treatment options. However, access to EHRs is often restricted due to their perceived sensitive nature and associated legal concerns, and the cohorts therein typically are those seen at a specific hospital or network of hospitals and therefore not representative of the wider population of patients. Here, we present HealthGen, a new approach for the conditional generation of synthetic EHRs that maintains an accurate representation of real patient characteristics, temporal information and missingness patterns. We demonstrate experimentally that HealthGen generates synthetic cohorts that are significantly more faithful to real patient EHRs than the current state-of-the-art, and that augmenting real data sets with conditionally generated cohorts of underrepresented subpopulations of patients can significantly enhance the generalisability of models derived from these data sets to different patient populations. Synthetic conditionally generated EHRs could help increase the accessibility of longitudinal healthcare data sets and improve the generalisability of inferences made from these data sets to underrepresented populations.
BibTeX
@inproceedings{bing2022conditional,
  author = {Simon Bing and Andrea Dittadi and Stefan Bauer and Patrick Schwab},
  title = {{Conditional Generation of Medical Time Series for Extrapolation to Underrepresented Populations}},
  booktitle = {PLOS},
  year = {2022},
  doi = {10.1371/journal.pdig.0000074},
}
Figure