[Paper Review] Language Models Are An Effective Patient Representation Learning Technique For Electronic Health Record Data
This paper proposes clinical language model-based representations (CLMBR) for electronic health record (EHR) data, leveraging transfer learning from a large-scale language modeling objective to generate fixed-length patient embeddings. CLMBR improves clinical prediction model performance by 19% in AUROC on average when training data is scarce, outperforming both count-based baselines and end-to-end deep learning models, especially in low-data regimes.
Widespread adoption of electronic health records (EHRs) has fueled the development of using machine learning to build prediction models for various clinical outcomes. This process is often constrained by having a relatively small number of patient records for training the model. We demonstrate that using patient representation schemes inspired from techniques in natural language processing can increase the accuracy of clinical prediction models by transferring information learned from the entire patient population to the task of training a specific model, where only a subset of the population is relevant. Such patient representation schemes enable a 3.5% mean improvement in AUROC on five prediction tasks compared to standard baselines, with the average improvement rising to 19% when only a small number of patient records are available for training the clinical prediction model.
Motivation & Objective
- To address the challenge of low data availability in training clinical prediction models from EHRs by leveraging representation learning.
- To investigate whether language model-based patient representations can improve prediction performance compared to standard baselines and end-to-end deep learning models.
- To evaluate the impact of representation quality on model performance across varying training set sizes, especially in low-data scenarios.
- To determine whether transfer learning via clinical language modeling can outperform manual feature engineering and simple count-based representations.
- To assess the generalizability and scalability of CLMBR across multiple clinical outcomes and data regimes.
Proposed method
- The authors train a clinical language model (CLMBR) on a large EHR corpus to learn sequential patterns in patient visit histories, treating EHRs as natural language sequences.
- CLMBR uses a masked language modeling objective to predict missing medical codes (e.g., ICD-10, CPT, LOINC) from context, capturing temporal and hierarchical structure in EHR data.
- Patient representations are derived by encoding each patient’s full EHR history using the fine-tuned CLMBR model, producing fixed-length embeddings.
- These learned representations are then used as input features for downstream clinical prediction models, such as logistic regression or gradient boosted trees.
- The method is compared against count-based representations (e.g., frequency vectors) and end-to-end deep neural networks across five clinical prediction tasks.
- Performance is evaluated using AUROC across varying training set sizes to assess data efficiency and scalability.
Experimental results
Research questions
- RQ1Can language model-based representations improve clinical prediction model performance compared to standard baselines in EHR data?
- RQ2How does the performance of CLMBR representations vary with respect to training data size, especially in low-data regimes?
- RQ3Does the choice of language modeling objective significantly affect the quality of patient representations for downstream prediction tasks?
- RQ4How do CLMBR representations compare to end-to-end deep learning models in terms of predictive accuracy and data efficiency?
- RQ5Can language model-based representations outperform simple count-based features when combined with powerful downstream models like gradient boosted trees?
Key findings
- CLMBR representations improved mean AUROC by 3.5% across five clinical prediction tasks compared to standard baselines.
- The performance gain from CLMBR representations reached an average of 19% in AUROC when only a small number of patient records were available for training.
- CLMBR-based models outperformed end-to-end deep neural networks even in large-data regimes, suggesting broader utility than previously assumed.
- Gradient boosted trees performed significantly better than L2-regularized logistic regression when using count-based representations, highlighting model choice as a key factor in reported performance gaps.
- With sufficient data, count-based representations combined with powerful models achieved near-peak performance, being only 3.5% worse than CLMBR in AUROC.
- The more expansive CLMBR model provided better representations than a previously published clinical language model, demonstrating the importance of model architecture and objective design.
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.