Clinical decision support using pseudo-notes from multiple streams of EHR data

Simon A. Lee, Sujay Jain, Alex Chen, Kyoka Ono, Arabdha Biswas, Ákos Rudas, Jennifer Fang, Jeffrey N. ChiangNpj Digit. Medicine 2025

Abstract

Electronic health records (EHR) contain data from disparate sources, spanning various biological and temporal scales. In this work, we introduce the Multiple Embedding Model for EHR (MEME), a deep learning framework for clinical decision support that operates over heterogeneous EHR. MEME first converts tabular EHR into “pseudo-notes”, reducing the need for concept harmonization across EHR systems and allowing the use of any state-of-the-art, open source language foundation models. The model separately embeds EHR domains, then uses a self-attention mechanism to learn the contextual importance of these multiple embeddings. In a study of 400,019 emergency department visits, MEME successfully predicted emergency department disposition, discharge location, intensive care requirement, and mortality. It outperformed traditional machine learning models (Logistic Regression, Random Forest, XGBoost, MLP), EHR foundation models (EHR-shot, MC-BEC, MSEM), and GPT-4 prompting strategies. Due to text serialization, MEME also exhibited strong few-shot learning performance in an external, unstandardized EHR database.

Introduction

Electronic Health Records (EHR) are a goldmine for clinical decision support, yet they remain notoriously difficult to utilize effectively in predictive modeling. Clinical data is inherently "disparate," spanning vastly different biological scales—such as lab results versus high-level diagnoses—and temporal scales, ranging from hourly vitals to medications administered once a day.

Two primary hurdles have historically limited the efficacy of AI in this space. First is the problem of harmonization: every hospital system utilizes different coding standards, and mapping these to a common language is labor-intensive and often results in the loss of critical nuance. Second is the modality mismatch: traditional machine learning models like XGBoost excel at structured tabular data but cannot process clinical text, while Large Language Models (LLMs) excel at text but struggle to ingest raw database tables. The Multiple Embedding Model for EHR (MEME) was developed to bridge this gap by leveraging the reasoning power of LLMs for structured hospital data without the need for manual data harmonization.

Methods

The MEME framework operates through a three-stage pipeline designed to maintain data integrity while utilizing the flexibility of natural language processing.

Pseudo-note Generation

Instead of feeding raw database tables into a model, MEME uses templates to "textualize" structured data. For example, a row containing a patient's age and sex is transformed into a natural language sentence: "Patient is a 64 year old Asian female." This conversion allows the model to treat structured data as a format that pre-trained language models (PLMs) already understand, effectively using natural language as a "universal interface" for disparate data types.

Example of a generated pseudo-note from tabular EHR data.

Multi-stream Embedding and Fusion

To prevent information loss that occurs when cramming all patient data into a single long string, MEME employs a multi-stream approach. Data is separated into distinct domains: diagnoses, medications, vitals, and triage information. Each domain is embedded separately using a frozen MedBERT backbone.

The MEME architecture processing multiple streams of clinical data through a pretrained language model.

These separate embeddings are then concatenated and passed through a self-attention layer. This mechanism allows the model to learn the contextual importance of each stream for a specific prediction—for instance, identifying that arrival information is the strongest predictor for hospital admission, while vitals might be more critical for predicting ICU requirements.

Experimental Results

The model was evaluated using two massive datasets: MIMIC-IV, containing 400,019 unique emergency department (ED) visits, and a private UCLA Health dataset containing 947,028 visits for external validation.

MEME was tested on four critical clinical tasks: ED disposition (admit vs. discharge), discharge location, ICU requirement, and mortality. The results demonstrated significant improvements over existing benchmarks:

  • Superior Accuracy: On the MIMIC dataset, MEME achieved an AUROC of 0.991 for ED disposition, significantly outperforming XGBoost (0.909) and the multimodal benchmark MC-BEC (0.968).
  • Foundation Model Comparison: MEME (F1 score: 0.943) outperformed specialized EHR foundation models like EHR-Shot (0.874) and even instruction-tuned GPT-4, which reached only 86% accuracy compared to MEME’s 95% on ED disposition.
  • Few-Shot Adaptation: When applied to the unstandardized UCLA dataset, MEME reached near-maximal performance with as few as 128 to 512 local training samples, demonstrating exceptional transferability between disparate hospital systems.

Discussion and Conclusion

By treating text as a universal interface, MEME bypasses the rigid requirements of data standards like OMOP. The study found that the multi-stream approach (MEME) performed significantly better than a single-stream version (MSEM), proving that maintaining domain boundaries during the initial embedding phase is crucial for performance. Furthermore, because the framework is backbone-agnostic, its performance is expected to scale automatically as more powerful medical language models are released.

While the current study focuses on the Emergency Department, future work will look toward incorporating longitudinal patient histories and evaluating the model in live clinical environments where data arrives incrementally. MEME represents a significant step toward flexible, high-performance clinical decision support that can be deployed across diverse healthcare institutions with minimal manual intervention.

Summary updated

BibTeX
@inproceedings{lee2025clinical,
  author = {Simon A. Lee and Sujay Jain and Alex Chen and Kyoka Ono and Arabdha Biswas and Ákos Rudas and Jennifer Fang and Jeffrey N. Chiang},
  title = {{Clinical decision support using pseudo-notes from multiple streams of EHR data}},
  booktitle = {Npj Digit. Medicine},
  year = {2025},
  url = {https://openreview.net/forum?id=0mglpqaVCV},
}
Figure