Pretraining EHR Foundation Models with Patient-Aware Sampling

· Source: Machine Learning · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Health & Medical Research · Depth: Expert, quick

Summary

A new pretraining sequence-construction method, Patient Sampling, addresses biases in autoregressive electronic health record (EHR) foundation models. Traditional language modeling approaches concatenate patient trajectories into a single token stream, which can mix multiple patients within training windows and over-represent patients with longer records. Patient Sampling allows for controlled distribution of training signals across patients, mitigating these issues. When compared against the standard Global Stream method, stochastic Patient Sampling with controllable weighting demonstrated improved performance on real-world EHR data. Specifically, it enhanced Macro AUROC and AUPRC across various downstream clinical tasks on both MIMIC-IV v2.2 and v3.1 datasets. These findings highlight training and validation sequence construction as a critical, yet underexplored, design choice for developing more robust EHR foundation models.

Key takeaway

For Machine Learning Engineers developing autoregressive EHR foundation models, you should re-evaluate your pretraining sequence construction. Standard methods risk biasing models towards longer patient records and mixing patient data. Adopting Patient Sampling, which controls training signal distribution, can significantly improve your model's Macro AUROC and AUPRC on clinical tasks, as demonstrated on MIMIC-IV v2.2 and v3.1. Prioritize this design choice to build more robust and equitable EHR models.

Key insights

Patient Sampling improves EHR foundation model performance by controlling training signal distribution and mitigating data bias during pretraining.

Principles

Method

Patient Sampling is a pretraining sequence-construction method for EHR foundation models. It controls training signal distribution across patients using stochastic sampling with controllable weighting, preventing bias from concatenated trajectories.

In practice

Topics

Best for: AI Scientist, Machine Learning Engineer, Research Scientist

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Machine Learning.