Introduction
Artificial Intelligence (AI) in healthcare is frequently constrained by data scarcity and stringent privacy regulations. While generative adversarial networks (GANs) offer a potential solution by synthesizing patient data, existing models often struggle with the heterogeneous nature of electronic health records (EHRs). Real-world EHRs are "mixed-type," comprising continuous physiological signals (e.g., heart rate) and discrete medical interventions (e.g., medication dosages). These data types are intrinsically correlated; for instance, a decline in blood pressure typically precedes a vasopressor prescription. EHR-M-GAN is a novel framework designed to bridge this gap by generating realistic, synchronized, multi-dimensional patient trajectories.
Methodology
The EHR-M-GAN framework employs a two-stage architecture to address the challenges of differentiability in discrete tokens and the complex correlations between data types.
Dual-VAE (Variational Autoencoder)
The Dual-VAE acts as a bridge, mapping both continuous and discrete data into a shared latent space. By utilizing multiple loss functions—including Evidence Lower Bound (ELBO), matching loss to align data types, and contrastive loss to capture population-level patterns—the Dual-VAE ensures a uniform representation of a patient's clinical state, regardless of the data source.
Coupled Recurrent Network (CRN)
The generator utilizes a Coupled Recurrent Network featuring Bilateral LSTMs (BLSTMs). This novel structure allows continuous and discrete generation streams to "communicate" at each time step, ensuring that synthetic vitals and treatments remain clinically plausible and synchronized. Additionally, a conditional variant (EHR-M-GANcond) allows for the generation of specific patient subgroups based on outcomes like ICU mortality.
Experimental Setup
The model was validated using three large-scale ICU databases:
- MIMIC-III: ~28,000 patients from Beth Israel Deaconess Medical Center.
- eICU: ~99,000 patients across 208 hospitals in the US.
- HiRID: ~14,000 high-resolution records from Bern University Hospital.
The study focused on 24-hour trajectories prior to patient endpoints, extracting a combination of vital signs (e.g., SpO2, heart rate) and medical interventions (e.g., mechanical ventilation, vasopressors).
Evaluation and Results
The synthetic data was evaluated across three dimensions: fidelity, utility, and privacy.
Fidelity and Correlation
EHR-M-GAN outperformed state-of-the-art benchmarks (e.g., TimeGAN, DualAAE) in Maximum Mean Discrepancy (MMD) and Discriminative Scores, indicating that the synthetic data is statistically indistinguishable from real data. Crucially, the model successfully captured temporal correlations, such as the synchronized relationship between respiratory rate and heart rate.
Clinical Utility
In downstream classification tasks, such as predicting the need for mechanical ventilation, models trained on augmented datasets (real + synthetic) achieved higher AUROCs than those trained on real data alone. Notably, augmenting 25% of real data with synthetic data matched the performance of using 100% real data, demonstrating the power of synthetic data as an augmenter.
Privacy Preservation
Privacy was assessed using Membership Inference Attacks. The threat model failed to identify whether specific real patients were used in training, achieving a recall of approximately 0.5 (equivalent to random guessing), thereby demonstrating robust privacy protection without the need for traditional anonymization.
Conclusion
EHR-M-GAN provides a robust framework for generating high-fidelity, mixed-type longitudinal EHRs. By preserving complex temporal dependencies and patient privacy, it serves as a powerful tool for data augmentation in clinical AI applications. Future work will focus on handling irregular time intervals and scaling to high-dimensional sparse data like ICD codes.
Summary updated