Abstract
The recent availability of electronic health records (EHRs) have provided enormous opportunities to develop artificial intelligence (AI) algorithms. However, patient privacy has become a major concern that limits data sharing across hospital settings and subsequently hinders the advances in AI. Synthetic data, which benefits from the development and proliferation of generative models, has served as a promising substitute for real patient EHR data. However, the current generative models are limited as they only generate single type of clinical data, i.e., either continuous-valued or discrete-valued. In this paper, we propose a generative adversarial network (GAN) entitled EHR-M-GAN which synthesizes mixed-type timeseries EHR data. EHR-M-GAN is capable of capturing the multidimensional, heterogeneous, and correlated temporal dynamics in patient trajectories. We have validated EHR-M-GAN on three publicly-available intensive care unit databases with records from a total of 141,488 unique patients, and performed privacy risk evaluation of the proposed model. EHR-M-GAN has demonstrated its superiority in performance over state-of-the-art benchmarks for synthesizing clinical timeseries with high fidelity. Notably, prediction models for outcomes of intensive care performed significantly better when training data was augmented with the addition of EHR-M-GAN-generated timeseries. EHR-M-GAN may have use in developing AI algorithms in resource-limited settings, lowering the barrier for data acquisition while preserving patient privacy.
Introduction
The development of medical AI is often bottlenecked by data scarcity. While Electronic Health Records (EHRs) are goldmines for research, patient privacy concerns and strict regulations (like HIPAA or GDPR) make sharing this data across institutions incredibly difficult. Synthetic data offers a potential solution, but existing generative models face a significant challenge: real patient data is mixed-type. It contains continuous-valued signals (e.g., heart rate, oxygen saturation) and discrete-valued events (e.g., drug administration, medical intervention start times).
Most current models handle only one type. However, these data streams are deeply intertwined in clinical practice—for instance, a vasopressor is prescribed specifically because a patient’s blood pressure is dropping. Failing to model these dependencies together results in synthetic data that lacks clinical realism and utility for training robust AI models.
Methodology
The researchers developed EHR-M-GAN, a novel generative adversarial network designed to bridge the gap between heterogeneous data types through a multi-stage architecture.
The architecture consists of three primary components:
- Dual Variational Autoencoder (dual-VAE): Instead of processing raw data directly, a dual-VAE maps continuous and discrete data into a reversible, lower-dimensional shared latent space. This ensures the model captures a unified "essence" of the patient's state.
- Coupled Recurrent Network (CRN): The generator uses a CRN with Bilateral LSTMs. This allows the model to "entangle" the two data streams during generation, ensuring temporal synchronization between vitals and interventions.
- Adversarial Training: LSTM-based discriminators provide feedback to the generator, ensuring the synthetic sequences are indistinguishable from real patient trajectories.
The authors also explored several architectural variants to optimize the handling of mixed-type data, contrasting a unified approach with the proposed shared latent space (SL) model.
Experimental Results
The model was validated using three large-scale ICU databases: MIMIC-III (~28,000 patients), eICU (>200,000 admissions), and HiRID (high-resolution data from Switzerland), totaling over 141,000 unique patients.
Fidelity and Utility
EHR-M-GAN outperformed state-of-the-art benchmarks like TimeGAN and medGAN. It achieved a 24% improvement in Maximum Mean Discrepancy (MMD) over simpler variants, indicating higher distributional similarity to real data. Crucially, the model captured the "time-delay effect"—the causal link between physiological drops and subsequent medical interventions.
In downstream predictive tasks (e.g., predicting ventilator or vasopressor needs), augmenting small real-world datasets with synthetic data led to an AUROC increase of up to 6%. The study demonstrated that researchers could achieve target model performance while collecting 75% less real patient data by leveraging synthetic augmentation.
Privacy Protection
The model proved robust against "membership inference attacks." The accuracy of an attacker guessing if a specific patient was in the training set was approximately 0.527, which is nearly equivalent to a random coin flip, indicating strong privacy preservation.
Discussion and Conclusion
While EHR-M-GAN represents a significant advancement, limitations remain. The current model assumes regular hourly intervals for data points, whereas real EHR data is often irregularly sampled. Future work could also incorporate multi-modal data, such as clinical notes or medical imaging, and move toward "synthetic twins" for granular counterfactual analysis.
In conclusion, EHR-M-GAN provides a high-fidelity, privacy-preserving method for generating mixed-type longitudinal EHR data. By capturing the complex correlations between physiological signals and medical interventions, it offers a powerful tool for accelerating AI development in healthcare, particularly in resource-constrained environments.
Summary updated