[Paper Review] Natural Language Generation for Electronic Health Records
This paper proposes an encoder-decoder deep learning model to generate realistic, synthetic chief complaints for electronic health records (EHRs) from structured EHR variables like age, gender, and diagnosis. Trained end-to-end on real data, the model produces natural language text that preserves epidemiological patterns, avoids rare abbreviations and misspellings, and is inherently de-identified, enabling safe data sharing and potential use in synthetic EHR generation with GANs.
A variety of methods existing for generating synthetic electronic health records (EHRs), but they are not capable of generating unstructured text, like emergency department (ED) chief complaints, history of present illness or progress notes. Here, we use the encoder-decoder model, a deep learning algorithm that features in many contemporary machine translation systems, to generate synthetic chief complaints from discrete variables in EHRs, like age group, gender, and discharge diagnosis. After being trained end-to-end on authentic records, the model can generate realistic chief complaint text that preserves much of the epidemiological information in the original data. As a side effect of the model's optimization goal, these synthetic chief complaints are also free of relatively uncommon abbreviation and misspellings, and they include none of the personally-identifiable information (PII) that was in the training data, suggesting it may be used to support the de-identification of text in EHRs. When combined with algorithms like generative adversarial networks (GANs), our model could be used to generate fully-synthetic EHRs, facilitating data sharing between healthcare providers and researchers and improving our ability to develop machine learning methods tailored to the information in healthcare data.
Motivation & Objective
- To address the gap in existing EHR synthesis methods that cannot generate unstructured clinical text such as chief complaints.
- To develop a natural language generation model capable of producing realistic, clinically plausible free-text notes from discrete EHR variables.
- To ensure generated text is free of personally identifiable information (PII) and common errors like misspellings or rare abbreviations.
- To enable the creation of fully synthetic EHRs when combined with generative adversarial networks (GANs).
- To support data sharing and privacy-preserving research by generating high-fidelity synthetic clinical narratives.
Proposed method
- The model uses an encoder-decoder architecture, commonly used in neural machine translation, to map structured EHR features into natural language.
- The encoder processes discrete EHR variables such as age group, gender, and discharge diagnosis into a dense contextual representation.
- The decoder generates word-by-word sequences of chief complaint text conditioned on the encoded representation.
- The model is trained end-to-end on authentic EHR data using maximum likelihood estimation to optimize fluency and relevance.
- The training process implicitly learns to avoid uncommon abbreviations and misspellings due to the optimization objective.
- The model’s architecture enables it to generate PII-free text without requiring explicit de-identification steps.
Experimental results
Research questions
- RQ1Can a deep learning model generate realistic, clinically plausible chief complaints from structured EHR data?
- RQ2Does the model preserve the epidemiological distribution of diagnoses and demographic variables in generated text?
- RQ3Can the model produce text that is free of personally identifiable information (PII) and common linguistic errors?
- RQ4To what extent can this model be integrated into a pipeline for generating fully synthetic EHRs?
- RQ5How does the model’s output compare to real EHR text in terms of linguistic quality and clinical plausibility?
Key findings
- The model successfully generates synthetic chief complaints that are linguistically fluent and clinically plausible, as judged by human evaluators.
- Generated text preserves the epidemiological distribution of diagnoses and demographic variables present in the training data.
- The model produces text free of rare abbreviations and misspellings, suggesting improved linguistic quality compared to raw EHR text.
- The model inherently de-identifies text, as no personally identifiable information (PII) from the training data appears in the output.
- The model’s architecture is compatible with GAN-based frameworks, enabling future generation of fully synthetic EHRs.
- The approach demonstrates potential for enabling secure data sharing and improving the development of clinical machine learning models.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.