Manuscript Offprint

arXiv:2611.08392

Learning a patient world model for health system simulation in intensive care

Yingtai Li, Ruoyan Wang, Yu Li, Shaohua Kevin Zhou

Abstract

Designing healthcare strategies requires anticipating their clinical and operational consequences before implementation, a task that often relies on health system simulation. Such a simulation necessitates modeling how patient states evolve and generate care demands. However, conventional approaches typically tailor compact state transitions to a single policy question and omit history-dependent dynamics, thus requiring the redefinition of states and transitions when there is a new question that entails different clinical information. To bridge this gap, we propose to learn a patient world model from longitudinal electronic health records using a deep neural network to provide a shared clinical representation of patient health trajectories that can serve many simulation questions across scenarios. Taking intensive care unit (ICU) operations as a working example, we train the model on MIMIC-IV, freeze it, and couple its time-queryable predictions to shared ICU calendars, resources, and queues via scenario-specific mappings, so that one model renders admission demand, care tasks, and discharge proposals across simulations evaluating ICU bed capacity, care dispatch, and post-ICU transfer capacity. Extensive experiments show that our model matches task-fitted Markov and semi-Markov comparators in aggregate occupancy and directional responses to capacity and dispatch policies. It also reproduces policy gains from replayed observed trajectories. Moreover, for patients entering the same support state from different prior trajectories, the learned representation captures a 24-hour recovery difference (-6.4 predicted versus -6.7 observed percentage points) — a contrast totally missed by compact state models — which propagates into distinct simulated care demand, queue burden, and bed use for downstream operations. Together, these results indicate that a learned world model of patient dynamics has the potential to replace question-specific state models, allowing new care policies to be evaluated by reconfiguring the scenario without model rebuilding.

Introduction

Designing healthcare strategies requires anticipating their clinical and operational consequences before implementation. Health system simulation (HSS) meets this requirement by simulating the evolution of patient health states or trajectories and linking such information to healthcare [1, 2]. In population screening and prevention, for example, simulations link tumour onset and progression to early detection [3] or couple infection dynamics with transmission and vaccination [4]. In hospital operations, evaluations of triage protocols [5], care-pathway redesign [6] and bed allocation [7] likewise trace how individual patient trajectories generate competing demands for care over time. Underlying these applications that differ in their mechanisms and timescales lies a computational representation that models the evolution of patient health states in tandem with care events, such as treatments, interventions, and service delivery.

Conventional HSS approaches, however, typically rely on fit-for-purpose abstraction, in which modellers specify compact clinical states, transitions and service mechanisms tailored to a single policy question [8–10]. Such explicit specifications keep assumptions transparent and computation tractable, but their scope is bounded by the information retained in the chosen states. Although modellers can augment states with patient attributes or selected prior events, each added dependency expands the state space and requires re-estimating transition parameters from data [11, 12]. Compact states specified for one question may therefore omit outcome-relevant history, and answering a new question that requires different clinical granularity — or continuous-time alignment with a shared event clock — often demands redesigning the state space or interpolating across a fixed time grid. This modeling rigidity calls for a shared representation of multivariable clinical histories, which ideally retains rich clinical context across questions and supplies the clinical signals and care demands each analysis requires.

Deep learning on longitudinal electronic health records (EHRs) provides a foundation for learning such a shared representation: sequence models have advanced from disease-risk prediction [13, 14] to generative models that roll out multi-step clinical trajectories as world models [15–20]. At the same time, generative agent simulations [21–24] and clinical simulation environments [25–30] have shown how policy consequences can be studied by coupling individual trajectories within a shared environment. Yet existing health trajectory generators such as ETHOS advance each patient's timeline asynchronously from one emitted event token to the next [17]. Using learned patient dynamics inside HSS — where multiple patients compete for beds and staff in real time — requires advancing trajectories to arbitrary times on a shared clock and mapping their clinical states to operational demands. Turning a longitudinal EHR generator into a shared simulation engine therefore requires coupling time-conditioned clinical queries with explicit demand mappings, and testing whether the retained history alters both clinical predictions and downstream operational conclusions. Such a simulation engine is yet to be built.

To this end, we propose a unified framework that learns a time-conditioned patient world model (pWM) from longitudinal EHRs to capture patient health trajectories and further couples the learned pWM into discrete-event HSS. Much as language models represent text over a shared vocabulary, the pWM encodes irregular clinical records as sequences drawn from a structured vocabulary of physiological measurements, laboratory values, treatments and clinical events, and predicts future health states and event rates across continuous-valued time intervals so that trajectories can be queried on a shared event clock. Because this clinical vocabulary and the trajectories composed from the pWM are far richer than the small set of mutually exclusive states typically hand-specified in Markov models, the same frozen representation can supply diverse operational signals while distinguishing patients who might appear identical under a compact state definition. We test this framework in an acute resource-constrained setting and connect the frozen model through scenario-specific mappings to a virtual intensive care unit (ICU), where patients compete for shared beds and staff. In this environment, we simulate different ICU operational scenarios with different mappings that translate generated admission proposals into bed requests, organ-support events into staff care tasks, and live-exit proposals into downstream service requests, while configuring resource capacities, service durations, and dispatch rules for each scenario.

Using patient-level partitions of MIMIC-IV [31] to instantiate this virtual ICU, we first verify the clinical reliability of the frozen pWM at the individual and group levels. Fixed-history queries accurately discriminate individual endpoints such as in-hospital mortality (AUROC 0.937) and 30-day ICU admission (0.881) with near-unit recalibrated slopes (median 0.988). Using 14-day rollouts to construct virtual cohorts, we reproduce an aggregate ICU occupancy (restricted mean stay 2.92 versus 2.80 days) alongside characterized biases in support-event rates and heterogeneity. We then examine two simulation questions. First, across separately configured admission, care-delivery, and discharge scenarios, the single frozen model matches task-fitted Markov and semi-Markov comparators in directional responses to capacity and dispatch policies, and closely tracks policy gains in an observed-trajectory replay. Second, for matched patients entering single-organ support from no support versus dual support, the learned representation recovers an observed 24-hour recovery difference (-6.4 versus -6.7 percentage points) missed by the compact state models and propagates that contrast into distinct simulated care demand, queues, and bed use for downstream operations. More broadly, our work demonstrates how a learned pWM can replace bespoke, task-specific state machines with a shared clinical engine that retains patient health trajectories across diverse simulation questions.

a Learn patient dynamics

Figure

b Generate virtual patients

Figure

C A shared virtual ICU environment

Figure

Figure 1: A shared patient world model for different ICU simulation questions. a, Longitudinal EHRs are encoded as sparse state-event sequences over a shared clinical vocabulary, preserving variable values, events with categorical labels and irregular observation times to train a generative patient world model conditioned on history and forecast interval Δ\Delta. b, With learned parameters held fixed, querying the model at a requested future time returns state and event distributions, from which sampled updates are appended to history before the next query. Repeated rollouts from a single patient's anchor history generate alternative individual futures; rollouts across patients construct a virtual cohort. c, Scenario-specific mappings connect outputs of the frozen patient model to admission demand, staff care tasks and ICU exit within a shared discrete-event simulator linking pre-ICU waiting, beds, staff queues and downstream service slots (Methods Fig. 3). The schematic illustrates the full framework architecture; admission, care delivery and discharge are evaluated in separately configured scenarios. In subsequent figures, "Neural model" denotes this generative patient world model.

References (53)