Skip to main content
QUICK REVIEW

[Paper Review] EVA: Generating Longitudinal Electronic Health Records Using Conditional Variational Autoencoders

Siddharth Biswal, Soumya Ghosh|arXiv (Cornell University)|Dec 18, 2020
Machine Learning in HealthcareComputer Science30 references9 citations
TL;DR

EVA proposes a conditional variational autoencoder to generate realistic, diverse longitudinal electronic health records (EHRs) by modeling discrete clinical visit sequences while preserving temporal patterns and patient-level variability. It combines stochastic gradient Markov chain Monte Carlo with amortized variational inference for efficient, accurate posterior inference, achieving state-of-the-art performance in generating synthetic EHRs that match real data in downstream predictive modeling tasks and user evaluations.

ABSTRACT

Researchers require timely access to real-world longitudinal electronic health records (EHR) to develop, test, validate, and implement machine learning solutions that improve the quality and efficiency of healthcare. In contrast, health systems value deeply patient privacy and data security. De-identified EHRs do not adequately address the needs of health systems, as de-identified data are susceptible to re-identification and its volume is also limited. Synthetic EHRs offer a potential solution. In this paper, we propose EHR Variational Autoencoder (EVA) for synthesizing sequences of discrete EHR encounters (e.g., clinical visits) and encounter features (e.g., diagnoses, medications, procedures). We illustrate that EVA can produce realistic EHR sequences, account for individual differences among patients, and can be conditioned on specific disease conditions, thus enabling disease-specific studies. We design efficient, accurate inference algorithms by combining stochastic gradient Markov Chain Monte Carlo with amortized variational inference. We assess the utility of the methods on large real-world EHR repositories containing over 250, 000 patients. Our experiments, which include user studies with knowledgeable clinicians, indicate the generated EHR sequences are realistic. We confirmed the performance of predictive models trained on the synthetic data are similar with those trained on real EHRs. Additionally, our findings indicate that augmenting real data with synthetic EHRs results in the best predictive performance - improving the best baseline by as much as 8% in top-20 recall.

Motivation & Objective

  • To address the critical conflict between healthcare systems' need for data privacy and researchers' need for access to real-world longitudinal EHR data.
  • To generate synthetic EHRs that preserve realistic temporal patterns, patient-level diversity, and clinical sequence complexity.
  • To enable conditional generation of EHRs for specific disease conditions to support targeted clinical research.
  • To develop an efficient inference algorithm that balances accuracy and scalability for large-scale EHR synthesis.
  • To evaluate synthetic EHRs through clinician user studies and predictive modeling tasks to validate realism and utility.

Proposed method

  • EVA employs a conditional variational autoencoder (CVAE) to model sequences of discrete EHR encounters, where each visit is represented as a binary vector of clinical codes.
  • The model conditions generation on patient-level disease conditions, enabling disease-specific synthetic EHR generation.
  • It integrates stochastic gradient Markov chain Monte Carlo (SGMCMC) with amortized variational inference to perform efficient posterior inference over latent variables.
  • The architecture captures temporal dependencies in EHR sequences using recurrent or sequential modeling components within the VAE framework.
  • Latent uncertainty is preserved to ensure diversity in generated sequences, avoiding mode collapse and enhancing realism.
  • The model is trained on large-scale real EHR repositories with over 250,000 patients and 13 million visits to ensure generalization and fidelity.

Experimental results

Research questions

  • RQ1Can a deep generative model produce synthetic EHR sequences that are realistic and diverse, reflecting real-world clinical patterns?
  • RQ2To what extent can the model generate EHRs conditioned on specific disease conditions, enabling targeted research studies?
  • RQ3Does the synthetic EHR data maintain sufficient fidelity to support training effective predictive models in healthcare?
  • RQ4How does the performance of models trained on synthetic EHRs compare to those trained on real data, especially in terms of recall and precision?
  • RQ5Can synthetic EHRs be used to augment real data and improve predictive performance beyond what is achievable with real data alone?

Key findings

  • EVA-generated EHR sequences were rated as realistic by a practicing clinician in a user study, confirming clinical plausibility.
  • Predictive models trained on synthetic EHRs achieved performance comparable to those trained on real EHRs, validating data fidelity.
  • Augmenting real EHR data with synthetic data improved top-20 recall by up to 8% compared to the best baseline model.
  • The model demonstrated robustness to presence disclosure attacks, with sensitivity and precision below the prior probability of 80%, indicating no re-identification risk.
  • EVA generated more diverse clinical event sequences than an LSTM baseline, reducing repetition across visits and improving realism.
  • The combination of real and synthetic EHR data yielded the best predictive performance, outperforming models trained on either data source alone.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.