[Paper Review] Learning to Write Notes in Electronic Health Records
This paper introduces a conditional language modeling approach to predict clinical note content using multimodal EHR data—such as demographics, labs, medications, and past notes—demonstrating that large language models can effectively generate clinically relevant note text with high accuracy, enabling AI-assisted documentation tools like auto-complete and error detection.
Clinicians spend a significant amount of time inputting free-form textual notes into Electronic Health Records (EHR) systems. Much of this documentation work is seen as a burden, reducing time spent with patients and contributing to clinician burnout. With the aspiration of AI-assisted note-writing, we propose a new language modeling task predicting the content of notes conditioned on past data from a patient's medical record, including patient demographics, labs, medications, and past notes. We train generative models using the public, de-identified MIMIC-III dataset and compare generated notes with those in the dataset on multiple measures. We find that much of the content can be predicted, and that many common templates found in notes can be learned. We discuss how such models can be useful in supporting assistive note-writing features such as error-detection and auto-complete.
Motivation & Objective
- Address the growing burden of clinical documentation in EHR systems, which contributes to clinician burnout and reduces patient interaction time.
- Develop a novel language modeling task conditioned on diverse EHR data (structured and unstructured) to predict clinical note content.
- Improve EHR usability by enabling AI-assisted features such as auto-complete and error detection through robust conditional language modeling.
- Evaluate the predictive power of language models on real-world EHR data using quantitative metrics and qualitative analysis.
- Demonstrate that common note templates and content can be learned from historical EHR data, enabling scalable and context-aware note generation.
Proposed method
- Define a conditional language model that predicts the next token in a clinical note given a multimodal context $ c = (R, T, H) $, where $ R $ is the patient's EHR history, $ T $ is the note type, and $ H $ is a hint of the first 10 tokens.
- Represent heterogeneous EHR data (demographics, labs, medications, past notes) as a dense, sequential context vector using embedding techniques.
- Train autoregressive transformer-based language models on the de-identified MIMIC-III dataset, which includes 39,597 ICU patients with full EHR histories and clinical notes.
- Use cross-entropy loss to optimize the model’s ability to predict the next token in the note sequence given the full context.
- Incorporate subword tokenization (e.g., BPE) to handle rare and out-of-vocabulary terms common in clinical text.
- Evaluate model performance using metrics such as perplexity, BLEU, ROUGE, and human evaluation of generated note quality and coherence.
Experimental results
Research questions
- RQ1To what extent can a language model predict the content of clinical notes using only a patient’s EHR history and note type?
- RQ2Can the model learn and reproduce common clinical note templates and phrasal patterns from real EHR data?
- RQ3How effective are the generated notes in terms of fluency, coherence, and clinical relevance compared to real physician notes?
- RQ4What role does multimodal EHR context (structured and unstructured data) play in improving prediction accuracy?
- RQ5How can such models be practically applied to assist clinicians with real-time note-writing tools like auto-complete and spell-checking?
Key findings
- The model achieves low perplexity on held-out clinical notes, indicating strong predictive capability for note content using EHR context.
- The model successfully learns and reproduces common clinical templates, such as phrases like "GCS 15, intubated, transferred to OSH" with high probability.
- Top-5 next-token predictions for words like "was" and "GCS" show high confidence in clinically relevant terms (e.g., "was" predicted with 0.42 probability, "GCS" with 0.25 probability).
- The model generates semantically coherent and contextually appropriate note segments, as validated by qualitative analysis and human evaluation.
- The use of multimodal context—including note type and early tokens—significantly improves generation quality over unimodal baselines.
- The results suggest that such models can form the foundation for practical EHR assistive tools, such as real-time auto-complete and error-detection systems, reducing clinician documentation burden.
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.