Patient-Aware Sampling Improves EHR Foundation Model Performance

Joshua Placidi, Yuxuan Liu, Jinpei Han, Marek Rei, A. Aldo Faisal· July 27, 2026 View original

Summary

Researchers propose "Patient Sampling," a new pretraining method for autoregressive EHR foundation models that controls how training signal is distributed across patients, preventing bias from longer records. This approach significantly improves performance on downstream clinical tasks compared to standard methods.

This research introduces a novel pretraining technique called "Patient Sampling" for autoregressive foundation models built on Electronic Health Records (EHRs). Traditionally, these models concatenate patient trajectories into a single stream, leading to potential biases where patients with more extensive records disproportionately influence optimization. Patient Sampling addresses this by allowing explicit control over how training signals are distributed among individual patients. This contrasts with the standard "Global Stream" method, which can inadvertently mix data from multiple patients within a single training window and over-represent those with longer histories. Empirical evaluations using real-world EHR data from MIMIC-IV datasets demonstrate that stochastic Patient Sampling, particularly with controllable weighting, significantly enhances model performance. It consistently improves Macro AUROC and AUPRC across various downstream clinical tasks, highlighting the importance of patient-aware sequence construction in developing more accurate and less biased EHR foundation models.

Why it matters

Healthcare AI professionals can develop more accurate, fair, and reliable predictive models from EHR data, leading to better clinical decision support and patient outcomes.

How to implement this in your domain

  1. 1Review current EHR foundation model pretraining pipelines to identify potential biases from patient record length.
  2. 2Experiment with implementing Patient Sampling or similar patient-aware sequence construction methods in your model development.
  3. 3Evaluate the impact of different weighting strategies within Patient Sampling on specific clinical prediction tasks.
  4. 4Collaborate with clinical experts to validate the fairness and clinical utility of models trained with this new approach.

Who benefits

HealthcarePharmaMedical ResearchHealthTech

Key takeaways

  • Patient Sampling is a new pretraining method for EHR foundation models.
  • It controls training signal distribution across patients, reducing bias.
  • The method improves performance on downstream clinical tasks.
  • Patient-aware sequence construction is a critical, underexplored design choice.

Original post by Joshua Placidi, Yuxuan Liu, Jinpei Han, Marek Rei, A. Aldo Faisal

"arXiv:2607.22114v1 Announce Type: new Abstract: Autoregressive foundation models for electronic health records (EHRs) typically inherit pretraining methods from language modeling, where patient trajectories are concatenated into a single token stream and windows are sampled from…"

View on X

Originally posted by Joshua Placidi, Yuxuan Liu, Jinpei Han, Marek Rei, A. Aldo Faisal on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses