Learning Continuous Patient Trajectories from Electronic Health Records
On the map: Diffusion models → Flow matching, time series and science also fits: Medical imaging and segmentation
Abstract (arXiv)
Electronic health records provide irregular observations of latent patient states that evolve continuously over time. Recent autoregressive models condition on clinical histories to forecast future events as sequences of discrete observations. Conversely, multi-marginal flow matching provides a continuous-time formulation, but using multiple observations to supervise training paths does not itself give the learned dynamics access to preceding patient history. We introduce EHRFlow, a multi-marginal flow-matching framework that conditions on encoded patient history, thereby allowing future dynamics to depend on the patient's prior clinical trajectory. Our proposed framework accommodates irregular observation times and supports forecasting at arbitrary horizons. Across controlled synthetic benchmarks, EHRFlow improves clinical-code forecasting and latent-state recovery. On real-world clinical datasets comprising more than one million patients, including an independent external validation cohort, EHRFlow improves horizon-averaged top-5 clinical-code accuracy over autoregressive and history-independent flow-matching baselines. Finally, in a controlled counterfactual simulation, conditional guidance approximates the known effect of an antihypertensive intervention without training a task-specific outcome model.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Flow matching, time series and science, one of 14 directions in Diffusion models. Builds on 38 of its 59 references that are in the map. First posted on arXiv 28 Sep 2026.
Builds on
38 of 59 references.
Closest ancestors · 8
Same direction, newest first
- 2024Flow Matching with Gaussian Process Priors for Probabilistic Time Series Forecasting3 Oct
- 2024Stream-level flow matching with Gaussian processes30 Sep
- 2024Meta Flow Matching: Integrating Vector Fields on the Wasserstein Manifold26 Aug
- 2024Metric Flow Matching for Smooth Interpolations on the Data Manifold23 May
- 2023Non-autoregressive Conditional Diffusion Models for Time Series Prediction8 Jun
- 2022Flow Matching for Generative Modeling6 Oct
- 2021CSDI: Conditional Score-based Diffusion Models for Probabilistic Time Series Imputation7 Jul
- 2021Autoregressive Denoising Diffusion Models for Multivariate Probabilistic Time Series Forecasting28 Jan
Other references · 30
- 2022Classifier-Free Diffusion Guidancecited by 5,717
- 2018Neural Ordinary Differential Equationscited by 3,733
- 2014Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modelingcited by 2,341
- 2022Building Normalizing Flows with Stochastic Interpolantscited by 964
- 2018FFJORD: Free-form Continuous Dynamics for Scalable Reversible Generative Modelscited by 584
- 2020Neural Controlled Differential Equations for Irregular Time Seriescited by 501
- 2016RETAIN: An Interpretable Predictive Model for Healthcare using Reverse Time Attention Mechanismcited by 344
- 2017Real-valued (Medical) Time Series Generation with Recurrent Conditional GANscited by 329
- 2019BEHRT: Transformer for Electronic Health Recordscited by 258
- 2019GRU-ODE-Bayes: Continuous modeling of sporadically-observed time seriescited by 230
- 2015Doctor AI: Predicting Clinical Events via Recurrent Neural Networkscited by 205
- 2017Generating Multi-label Discrete Patient Records using Generative Adversarial Networkscited by 197
18 more
- 2016Structured Inference Networks for Nonlinear State Space Modelscited by 182
- 2015Deep Kalman Filterscited by 163
- 2020TrajectoryNet: A Dynamic Optimal Transport Network for Modeling Cellular Dynamicscited by 155
- 2020Estimating Counterfactual Treatment Outcomes over Time Through Adversarially Balanced Representationscited by 154
- 2022Causal Transformer for Estimating Counterfactual Outcomescited by 121
- 2021CEHR-BERT: Incorporating temporal information from structured EHR data to improve prediction taskscited by 75
- 2023MOTOR: A Time-To-Event Foundation Model For Structured Medical Recordscited by 75
- 2024Zero Shot Health Trajectory Prediction Using Transformercited by 74
- 2022Manifold Interpolating Optimal-Transport Flows for Trajectory Inferencecited by 63
- 2024ContiFormer: Continuous-Time Transformer for Irregular Time Series Modelingcited by 61
- 2021Generating Synthetic Mixed-type Longitudinal Electronic Health Records for Artificial Intelligent Applicationscited by 47
- 2023A Multi-Center Study on the Adaptability of a Shared Foundation Model for Electronic Health Recordscited by 30
- 2022PromptEHR: Conditional Electronic Healthcare Records Generation with Prompt Learningcited by 22
- 2020A new paradigm for accelerating clinical data science at Stanford Medicinecited by 16
- 2023Synthesize High-dimensional Longitudinal Electronic Health Records via Hierarchical Autoregressive Language Modelcited by 8
- 2026A multimodal and temporal foundation model for virtual patient representations at healthcare system scalecited by 7
- 2025TrajSurv: Learning Continuous Latent Trajectories from Electronic Health Records for Trustworthy Survival Predictioncited by 4
- 2026CellBRIDGE: Learning Cellular Trajectories via Interaction-Aware Alignmentcited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026ChronoMedicalWorld: A Medical World Model for Learning Patient Trajectories from Longitudinal Care Data
- 2026Reinforcement Learning over Patient Trajectories for Clinical Reasoning in EHR Foundation Models
- 2025Learning Patient-Specific Disease Dynamics with Latent Flow Matching for Longitudinal Imaging Generation
- 2026EHRWorld: A Patient-Centric Medical World Model for Long-Horizon Clinical Trajectories
- 2026Trajectory-Aware Clinical Risk Prediction via Severity-Grounded Knowledge Graphs and Retrieval-Augmented Generation
- 2026From Static Risk to Dynamic Trajectories: Toward World-Model-Inspired Clinical Prediction
- 2026MedFlow: Class-Aware Multi-Scale Generation for Medical Time-Series Synthesis
- 2025Building the EHR Foundation Model via Next Event Prediction