Manuscript Offprint
arXiv:2611.08392Learning a patient world model for health system simulation in intensive care
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

b Generate virtual patients

C A shared virtual ICU environment

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 . 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.
A shared model of patient dynamics drives a configurable virtual ICU
The virtual ICU uses a shared model of patient dynamics to supply clinical trajectories across care and resource scenarios (Fig. 1). Trained on longitudinal EHRs, the neural autoregressive model represents irregular patient histories as sparse state-event sequences over a clinical vocabulary of 64 state variables and 25 event types (Fig. 1a). Dual-axis attention across clinical variables and elapsed time combines this context with continuous-valued forecast intervals, returning clinical predictions at the refresh times requested by the simulator. During trajectory rollout, sampled states and events are appended to the patient's history before the next query: repeated sampling from a single patient's anchor history generates alternative futures for that individual, and sampling across patients at their respective anchors constructs virtual cohorts (Fig. 1b).
Scenario-specific readouts and demand mappings connect this frozen patient representation to separately configured admission, care delivery, and discharge simulations (Fig. 1c; Methods Fig. 2). Admission proposals request ICU beds, which remain occupied until terminal exit or — in the discharge scenario — until a downstream service slot completes post-ICU transfer. Within the unit, admission and elapsed-time schedules generate routine nursing and physician tasks, while model-generated organ-support events trigger acute care tasks where configured. Each task queues for its required staff role, occupies that capacity during service, and releases it upon completion, while a shared event clock coordinates arrivals, care requests, and service completions to record waiting, workload, utilization, and throughput. Addressing a new operational question therefore requires changing only the demand mappings, capacity schedules, service rules or dispatch policy while keeping the learned patient representation and parameters fixed (Methods Fig. 3).
The frozen pWM supports individual-level risk prediction across clinical endpoints
Before using the pWM to generate virtual cohorts, we evaluate its individual-level risk predictions from fixed observed histories across six clinical endpoints, each tested on 1,024 held-out records with 1,000 patient-cluster bootstraps (Fig. 2a,b). All six endpoints are read from the same frozen model parameters by varying only the query anchor, target, stopping event, and horizon. Across tasks, AUROC reaches 0.937 for in-hospital mortality, 0.881 for 30-day ICU admission, 0.814 for 30-day ICU readmission, and 0.682 for 30-day hospital readmission, with precision-recall areas exceeding task prevalence across all six endpoints (Fig. 2a; Supplementary Fig. S1a). Brier point estimates are lower than empirical-frequency references for five of the six endpoints, with 95% confidence intervals entirely below zero for four (Fig. 2b). Incorporating additional clinical context improves both metrics: as observed ICU history increases from 0 h to 24 h, ICU-mortality AUROC rises from 0.797 to 0.874, and the Brier difference shifts from +0.005 to -0.019.
Recalibration on validation data brings query-specific calibration slopes close to one across horizons while keeping the underlying model parameters fixed (Fig. 2c). Across 24 binary task-horizon queries, the median recalibrated slope reaches 0.988 (interquartile range, 0.885–1.051), with 17 of 24 point estimates falling within [0.9, 1.1] and 21 of 24 confidence intervals including 1.0. Recalibration also improves 72-h nominal 80% interval coverage across 14 state variables from 65.5% to 81.4% (Supplementary Fig. S1b), showing that query-level recalibration can adjust probability and state readouts across tasks and horizons without retraining the underlying patient model.
a Clinical discrimination
b Prediction error


c Calibration by clinical query
Uncalibrated Recalibrated


Figure 2: Clinical queries from a frozen patient model. a, AUROC across six clinical endpoints, each evaluated on 1,024 held-out test records from 956–981 patients. For ICU mortality, 0 and 24 h denote observed history after ICU admission. b, Brier score differences (model minus empirical-frequency reference); negative values favor the model. c, Uncalibrated and recalibrated slopes across 24 binary task-horizon queries; connecting lines pair estimates for the same query and the dashed line marks slope one. Whiskers in a–c show 95% patient-cluster bootstrap intervals from 1,000 resamples. All queries and calibration settings share the same frozen model parameters.
Model-simulated cohorts approximate population-level ICU occupancy and stay duration
Having validated clinical predictions from observed histories, we next test whether multi-day autoregressive rollouts from the frozen model could approximate population-level ICU courses (Fig. 3). We generate 16 recalibrated 14-day rollouts from the ICU-admission anchor of each of 670 held-out test patients (10,720 trajectories in total) and map trajectories to five states (no support, single-organ support, dual support, live discharge, and death). Across the 14-day horizon, the virtual cohort closely tracks the observed ICU retention curve (Fig. 3b) and hourly five-state occupancy distributions (mean total variation distance 0.0388, Jensen–Shannon divergence 0.0044; Supplementary Fig. S2), yielding a restricted mean ICU stay of 2.923 days (median 1.917 days) compared with 2.800 days observed (median 1.738 days).
Examining individual event types and patient-level variation reveals specific generative biases alongside preserved clinical structure (Fig. 3a,c). Although 14-day START incidence is overestimated for respiratory (44.2% versus 29.7%) and circulatory support (42.7% versus 27.3%), cumulative incidence closely tracks observations for live ICU discharge (92.1% versus 89.9%), ICU death (5.3% versus 7.6%), and respiratory (28.6% versus 29.6%) and circulatory stop events (33.4% versus 26.9%; Fig. 3a). Concurrent dual-support occupancy is lower in generated trajec-a Event incidence at 14 days
b ICU retention


c Residual differences in patient heterogeneity



Figure 3: Longitudinal generation of virtual ICU cohorts. Sixteen recalibrated 14-day rollouts are generated from each of 670 held-out test patients at ICU admission (10,720 trajectories). a, Day-14 support-transition and terminal-event incidence; lines pair observed and model estimates. b, Fraction of patients remaining in the ICU over 14 days. c, Patient-level heterogeneity: generated-to-observed variance log-ratios for per-patient support initiations (0 indicates equal variance), dual-support occupancy as a fraction of follow-up patient-hours, and mean duration of respiratory episodes ending with an explicit stop (unadjusted for terminal censoring). Whiskers and bands show 95% patient-bootstrap intervals from 1,000 resamples.
tories (0.63% versus 1.16% of patient-hours), and respiratory episodes ending with an explicit stop are shorter (20.6 h versus 38.7 h), coinciding with more episodes remaining active without an explicit stop until ICU exit or day 14 (39.95% versus 10.60%). Meanwhile, as measured by the generated-to-observed variance log-ratio (0 indicating equal variance), patient-to-patient variation in support initiations is attenuated for circulatory support (-1.31, 95% CI [-1.67, -0.89]) but closely matches observations for respiratory support (-0.07, [-0.23, 0.11]; Fig. 3c).
Distributional discrepancies accumulate gradually as autoregressive rollouts progress over longer event sequences (Supplementary Fig. S3a). At a fixed patient count, however, repeated sampling from each anchor history generates 99.8% unique individual trajectories over 14 days and reduces Monte Carlo sampling error four-fold between 1 and 16 rollouts (Supplementary Fig. S3b,c). When benchmarked against task-fitted Markov and semi-Markov models under matched admission-state initialization in 256 held-out stays, all three models achieve integrated mean absolute errors below 2% in hourly five-state occupancy: 1.58% for the neural model, 1.53% for Markov and 1.24% for semi-Markov (Supplementary Fig. S4a). For support-onset timing over 7 days, semi-Markov has the lowest Wasserstein distance for first onsets (1.80 h versus 8.13 h for the neural model and 10.12 h for Markov), whereas the neural model has the lowest error across all support starts including recurrences (3.86 h versus 5.41 h and 11.84 h, respectively; Supplementary Fig. S4b).
A single frozen pWM supports admission, care-delivery, and discharge simulations
To test whether a shared model of patient dynamics could support multiple operational questions without state redesign, we connect the frozen pWM to admission, care delivery, and discharge simulations through scenario-specific mappings (Fig. 4; Methods Fig. 2). In each scenario, we compare the neural model with well-established Markov and semi-Markov state-transition models fitted to the compact support states, with all models sharing the same elapsed-time routine care schedules. Because each model supplies its own trajectories after ICU admission and native organ-support events, quantitative estimates reflect model-specific stay durations and event rates. Across all three scenarios, the single frozen model agrees with both task-fitted baselines on the direction of operational responses to capacity and dispatch controls.
a Admission
b Care
c Discharge

Figure 4: Operational responses across admission, care-delivery and discharge simulations. Headers above each column indicate the mapped patient-model output and the varied operational control across separately configured scenarios, comparing the frozen neural model with task-fitted Markov and semi-Markov baselines. a, ICU admission fraction and restricted pre-ICU waiting across staffed-bed capacities, sharing pre-ICU admission requests from the calibrated neural model (bands, repeat-bootstrap 95% intervals over eight replications). b, Acute-first-minus-FIFO differences in acute and non-acute queue burden (cumulative task-waiting hours per initial patient) across staffing levels using model-specific trajectories with delivery feedback disabled (128 test patients, 128 beds, 168-h horizon; whiskers, paired Student-t 95% intervals over 16 replications). c, Mean time from live-exit proposal to bed release (among completed transfers) and ICU admission fraction across one to four concurrent post-ICU transfer slots with a 4-h transfer duration (bands, Student-t 95% intervals over eight replications).
Admission capacity. Expanding staffed beds raises admission fractions and reduces pre-ICU waiting across models (Fig. 4a). Given shared pre-ICU admission requests from the calibrated neural model, longer simulated ICU stays after admission in the neural model yield lower admission and longer restricted waiting at 12 staffed beds: 66.1% admitted and 43.63 h waiting versus 83.3% and 25.05 h for semi-Markov. Increasing capacity from 12 to 32 beds raises admission fractions to 100% and reduces waiting to near zero in both the neural model and the baselines (0.24 h versus 0.01 h for semi-Markov).
Care-delivery dispatch. Prioritizing acute tasks over FIFO dispatch trades longer routine waiting for a reduction in acute queue burden, with the largest gains under tight staffing (Fig. 4b). At low staffing, acute-first dispatch reduces acute queue burden by 13.41 h per patient for the neural model, 7.12 h for semi-Markov and 2.98 h for Markov. As staffing increases, these reductions converge toward zero across models (1.56, 1.05 and 0.34 h per patient at high staffing), accompanied by small increases in non-acute waiting.
Downstream discharge. In the discharge scenario, patients proposed for live ICU exit continue to occupy their beds until completing a 4-h post-ICU transfer process across one, two or four concurrent transfer slots (Fig. 4c). Expanding transfer capacity from one to four concurrent slots substantially shortens exit delays in all three models, reducing mean time from exit proposal to bed release among completed transfers from 6.45 h for the neural model, 10.01 h for Markov and 12.56 h for semi-Markov to 4.00–4.02 h, approaching the 4-h service duration. Faster bed turnover also raises ICU admission fractions across models (74.8% to 76.6% for the neural model, 86.3% to 93.9% for Markov and 87.7% to 96.3% for semi-Markov), with gains plateauing beyond two slots.
Execution-protocol sensitivity. We test whether care-delivery conclusions are sensitive to the simulator's time-stepping and history-update rules without retraining the patient model (Supplementary Fig. S5b,c). Because the model accepts continuous-valued forecast intervals, we vary the clinical refresh step across 30, 60 and 120 min: although proposal-to-commit latency and simulated mortality shift with refresh frequency, mean task-start delay differs from the 60-min baseline by only -0.13 min (95% CI [-0.86, 0.60]) at 30 min and -0.39 min ([-0.93, 0.16]) at 120 min (Supplementary Fig. S5b). Enabling delivery feedback so that patient history updates upon support-task completion — rather than replaying fixed trajectories generated without queueing — attenuates the low-staffing acute-first reduction by 4.39 h per patient ([3.79, 5.00]), while preserving both the priority benefit and its staffing gradient (Supplementary Fig. S5c).
Simulated operations capture bed-and-staff bottleneck shifting and preserve observed-replay dispatch gains
Bed-and-staff capacity interactions. In separate and joint capacity expansions, increasing bed access under fixed staffing shifts congestion from admission to care delivery, consistent with resource-bottleneck effects in hospital-flow simulations [32, 33] (Fig. 5a,b). Across two arrival intensities (64 admission requests over 72 h or 24 h), restricted bed waiting in a 16-bed unit reaches 48.0–56.7 h per request across staffing levels, and expanding to 64 beds eliminates admission queues (0.0 h, reducing bed waiting by 50–57 h per request relative to the 16-bed, low-staffing baseline). Under low staffing, however, admitting more patients into the unit increases mean waiting per started non-acute task from 1.36–1.45 h to 3.57–4.57 h (Fig. 5a), raising cumulative acute queue burden by 4.16–8.36 h and non-acute burden by 60.8–89.8 h per patient (Fig. 5b). Conversely, expanding nurses or all staff roles at 16 beds reduces routine queue burden by 30–32 h per patient without improving bed access. Coordinated expansion of beds and staff relieves admission and care-delivery bottlenecks simultaneously.
Observed-trajectory replay. To test whether generated trajectories preserve quantitative dispatch-policy effects relative to observed clinical courses, we replay observed and generated trajectories for the same 128 test patients entering simultaneously at time zero under identical scheduled tasks, binary support-onset mappings and service rules (Fig. 5c). Prioritizing acute tasks over FIFO dispatch reduces acute queue burden by 15.76, 8.41 and 1.68 h per patient for generated trajectories at low, middle and high staffing, closely tracking the 14.99, 7.88 and 1.93 h

a Where queues form
Lower arrival intensity
64 arrivals over 72 h

Higher arrival intensity
64 arrivals over 24 h

b Targeted capacity changes
Arrival intensity:
Low intensity
Higher intensity



c Illustrative operational replay

Figure 5: Bed-and-staff capacity interactions and observed-trajectory operational replay. The upper schematic illustrates how expanding bed access shifts demand into staff-constrained care queues when staffing is fixed. a, Restricted bed-request waiting (hours per request) and started non-acute task waiting (hours per started task) across bed capacities (16 versus 64 beds) and staffing levels at two arrival intensities (64 arrivals over 72 h or 24 h). b, Paired capacity-expansion effects on bed waiting and on acute and non-acute queue burden (cumulative task-waiting hours per initial patient) relative to the 16-bed, low-staffing baseline. c, FIFO-minus-acute-first reductions in acute queue burden driven by observed versus generated trajectories for the same 128 held-out patients (128 beds, 168-h horizon). Points in a,b and bars in c show means; whiskers show Student-t 95% intervals across 16 replications (conditional on the fixed cohort in c).
reductions obtained when replaying observed trajectories. Using the acute-first-minus-FIFO convention, paired generated-minus-observed differences in policy effect remain small across staffing levels: -0.76 h per patient (descriptive 95% interval [-1.46, -0.07]) at low staffing, -0.53 h ([-0.95, -0.12]) at middle staffing and +0.26 h ([0.12, 0.39]) at high staffing, showing that generated trajectories reproduce both the direction and staffing gradient of the observed-trajectory policy effect under a unified demand mapping.
Clinical history omitted by compact states alters recovery predictions and simulated resource use
Matched-history clinical contrasts. To test whether the shared patient representation retains outcome-relevant history omitted by the compact support states, we compare 404 held-out patient pairs matched at state entry () on current single-organ support channel and hours since ICU admission, where one patient has just stepped up from no support (upward entry) and the other has stepped down from dual support (downward entry; Fig. 6a). Because the task-fitted Markov and semi-Markov baselines are conditioned only on current support state, dwell time in that state, and hours since ICU admission without encoding entry direction, both baselines produce identical paired trajectories and zero endpoint contrasts (Fig. 6b). By contrast, using its existing history input, the neural model closely approximates the observed 24-h recovery difference between upward- and downward-entry patients: -6.40 percentage points (pp; 95% CI [-10.94, -1.84]) in the model versus -6.68 pp ([-12.87, -0.25]) in observations, alongside terminal-exit differences of -1.31 pp ([-2.63, +0.05]) versus -2.23 pp ([-7.43, +3.22]).
Propagation to care demand and resource use. These retained clinical differences propagate into simulated care demand and resource utilization (Fig. 6c). Under unconstrained staffing, the neural model reproduces the negative direction of the observed upward-minus-downward difference in support-related task requests (-0.95 requests per patient, 95% CI [-1.07, -0.83], versus -2.31 observed, [-4.66, -0.01]). Although the model underestimates total mapped demand and shows an opposite-sign contrast for START triggers, its negative overall contrast is driven by fewer STOP- and CHANGE-related requests in the upward-entry group, matching the dominant source of the observed contrast (-1.04 versus -2.06 deduplicated STOP-or-CHANGE requests per patient; Supplementary Fig. S6). When coupled with shared beds and staff (Fig. 6c), this lower acute task demand reduces support-related queue burden for upward-entry relative to downward-entry patients by 5.51 h per patient ([-5.98, -5.04]) at low staffing and 0.55 h ([-0.62, -0.48]) at high staffing, while a slightly longer ICU retention increases occupied bed time by 0.10 to 0.12 h per patient across staffing levels — demonstrating that clinical history omitted by compact state definitions can alter downstream operational estimates.
a Clinical representation and retained history

b Observed and predicted 24-h contrasts


c Care demand and resource use



Figure 6: Retained clinical history within a shared support state and its operational consequences. a, Matched entry paths in 404 held-out test pairs sharing the same single-organ support state and hours since ICU admission at state entry (), entered either from no support (upward entry) or from dual support (downward entry). Schematics compare inputs of the Markov ( and ICU hours), semi-Markov (adding state dwell time , clock) and neural models (multivariable history and query interval ). HR, heart rate; MAP, mean arterial pressure. b, Upward-minus-downward 24-h differences in recovery (reaching no-support status within 24 h) and terminal exit (death or live ICU discharge). Thin capped whiskers show patient-sampling 95% bootstrap intervals; thick segments show Monte Carlo 95% intervals across 16 paired replications. c, Upward-minus-downward differences in support-related task requests under unconstrained staffing (left), and in acute queue burden (middle) and occupied bed time (right) per patient under shared bed and staff constraints across staffing levels (observed whiskers, patient-paired 95% bootstrap intervals; model whiskers, paired Student-t 95% intervals across 16 replications). pp, percentage points.
Discussion
This study demonstrates that a single pWM can be coupled to scenario-specific demand mappings and resource rules to support diverse HSS questions. Across ICU admission, care delivery, and discharge simulations in MIMIC-IV, the frozen model agrees in direction with task-fitted Markov and semi-Markov baselines. Its generated trajectories also preserve the dispatch-policy gains obtained when replaying observed patient courses. Moreover, when patients enter the same support state from different prior trajectories, the shared representation captures an observed recovery difference that the compact states could not distinguish. Propagating these trajectories through the simulator translates that clinical contrast into distinct care demand, queue burden, and bed use. Decoupling learned patient dynamics from explicit system mechanics therefore allows multiple operational questions to share a single clinical engine without task-specific state redesign (Methods Fig. 2).
Our findings also show why evaluating a pWM for HSS goes beyond single-endpoint risk prediction. High discrimination and calibration on fixed-history queries (Fig. 2) do not prevent specific event-rate biases during multi-day autoregressive rollouts (Fig. 3a,c). Yet, across admission, care delivery, and discharge simulations, the frozen model still matches the directional responses of task-fitted Markov and semi-Markov baselines (Fig. 4), captures bed-and-staff bottleneck shifting, and preserves the acute-priority dispatch gains of replayed observed trajectories (Fig. 5). Notably, generated cohorts closely track observed ICU retention, support-state occupancy, and recurrent acute-onset timing (Fig. 3b; Supplementary Fig. S4), suggesting that fidelity on these aggregate and timing dimensions can support consistent operational comparisons even when marginal event counts are imperfect. Evaluating a pWM for HSS should therefore pair cohort occupancy checks with observed-trajectory operational replay, testing directly whether generated demand preserves policy rankings under target resource rules.
Retaining multivariable clinical history also avoids manual state expansion when patient courses depend on prior trajectory rather than current state alone. In standard state-transition modelling, accounting for an omitted historical factor requires explicitly augmenting the state space — such as adding dwell time in a semi-Markov model or adding entry direction (Fig. 6a,b) — and re-estimating transitions [11, 12]. Worse, modellers must anticipate which historical variables matter before constructing the state space. A pWM instead represents such dependencies through shared parameters over longitudinal histories, reducing the need to enumerate history-specific states. In our matched-history comparison, the frozen model recovers the lower 24-h recovery rate and fewer support-related task requests of upward-entry patients without an entry-direction covariate or parameter refitting, translating this retained clinical history into distinct downstream queue burdens and bed use (Fig. 6b,c).
This design bridges classical HSS and emerging longitudinal patient models. Micro-simulation, discrete-event simulation, and agent-based models have long composed individual trajectories within shared resource environments [7, 12, 34, 35], including reusable disease platforms such as POHEM and COPD-SIM [1, 10], but typically rely on hand-specified state transitions. Conversely, longitudinal modelling of clinical records and medical claims has progressed from risk prediction and disease-signature discovery [13, 14, 36–39] to generative patient world models that roll out multi-step clinical trajectories across discrete event tokens or continuous time [16–20, 40–42]. Yet these longitudinal generators evaluate individual patient trajectories in isolation. Advancing multiple patients on a shared resource clock requires querying clinical states at arbitrary simulation times — rather than only at asynchronously emitted event tokens [17] — and translating those clinical updates into competing requests for beds, staff, and downstream services.
Coupling learned patient trajectories through shared resource queues also distinguishes our environment from recent LLM-based simulations and clinical agent testbeds. Generative social simulations [21–24, 43] and virtual clinical environments such as Agent Hospital, DiagGym, CES and Asclepius [25–28] use language models to simulate human behaviour or clinician–patient dialogues for agent evaluation. In our environment, by contrast, patients follow stochastic clinical trajectories learned from longitudinal EHRs, and their interactions arise through competition for scarce hospital capacity. In this respect, the virtual ICU complements health-system digital twins that link patient or population models to operational policy environments [29, 30, 44], providing a learned clinical engine that could be paired with live operational data streams and local validation in a deployed digital twin [45, 46]. With explicit observation and action interfaces, this environment could also support future evaluations of operational agents that prioritize care or allocate resources.
Two primary limitations define the scope of our findings. First, because MIMIC-IV records clinical trajectories rather than empirical queue logs or staff schedules, our simulator specifies arrival streams, service durations, and capacities from published ranges and scenario designs. While predicting absolute waiting time or deploying the model across hospitals would require calibrating demand mappings to measured workflow data and external validation [47, 48], applying identical arrival, service and staffing rules across all compared arms allows our baseline, replay and matched-history comparisons to isolate differences driven by the underlying patient trajectories. Second, like Markov and semi-Markov models fitted to observational records, the pWM learns conditional associations under historical care practices instead of causal effects [49–51]; rather than estimating how delayed care alters patient survival, our simulations quantify how capacity and dispatch policies shape admission access, queue waiting, and resource utilization under observed care patterns.
Despite these constraints, our findings show that a single patient world model learned from longitudinal EHRs can serve as a shared clinical engine across diverse operational simulations. Within the virtual ICU, coupling this frozen representation to explicit demand mappings and resource queues supports admission, care delivery, and discharge evaluations while preserving history-dependent recovery and workload differences omitted by compact states. Because clinical dynamics are decoupled from scenario mechanics, evaluating new triage rules, care pathways, or capacity schedules requires reconfiguring only the external mappings and resource rules rather than redesigning the patient state space. More broadly, replacing bespoke state-transition abstractions with a shared, history-preserving pWM offers a generalizable foundation for anticipating the clinical and operational consequences of health-system interventions before implementation.
Methods
Study design and data
We train a patient world model on longitudinal electronic health records (EHRs) from MIMIC-IV v3.1 [31] and test whether it could supply clinical dynamics across diverse HSS scenarios. We first evaluate individual-level clinical predictions and generate cohort trajectories. Next, we couple the frozen model to discrete-event simulations of ICU admission, care delivery, and post-ICU discharge alongside Markov and semi-Markov comparators. Finally, we conduct a matched-history analysis to test whether the model captures history-dependent trajectory differences missed by compact state models and whether these differences translate into distinct simulated care demand and resource use.
MIMIC-IV contains de-identified hospital and ICU records from Beth Israel Deaconess Medical Center in Boston, Massachusetts, collected between 2008 and 2022 (364,627 patients and 94,444 ICU stays processed). The institutional review board of Beth Israel Deaconess Medical Center approves the creation and sharing of the database and waives the requirement for informed consent.
We partition patients deterministically, assigning 80% of patients to model training and keeping all records from each patient within a single partition. Among the remaining 20% of patients, a validation subset is used to monitor training and adjust readout recalibration parameters. All other patients form the held-out test set, which supplies the evaluation cohorts for clinical prediction, population trajectories, comparator benchmarks, and operational simulations. Each analysis uses a task-specific clinical anchor and follow-up horizon.
State–event representation
To represent irregular longitudinal EHRs, we encode each patient's history over a clinical vocabulary of 64 state variables and 25 event types. Records are arranged on a sparse two-dimensional grid whose columns represent timestamps (rounded to seconds) and slots identify clinical state variables or event types (Methods Fig. 1a). Continuous state measurements are discretized into ten quantile bins based on observed training values, leaving missing measurements unrecorded. Each event entry records an event occurrence and its associated categorical labels, such as medication or diagnosis codes. Concurrent labels of the same event type within a stay are grouped into a single entry.
To limit the size of the event-label vocabularies, we map medications to Anatomical Therapeutic Chemical (ATC) codes and diagnoses and procedures to coarser International Classification of Diseases (ICD) categories where available. Within each event type, labels covering 99% of occurrences are retained, and the remaining labels are assigned to a residual "other" category. Observed state measurements and events form sparse context entries, whereas future time columns contain query entries specifying the clinical targets to be predicted.
Time-conditioned patient world model
The pWM maps a patient's sparse state–event history and a requested forecast interval to future clinical distributions (Methods Fig. 1a). For patient , let denote the observed records and model-generated updates committed to history through time . At forecast interval , the model parameterizes
where denotes discretized clinical states, event occurrences or intensities, and conditional event labels.
To embed each non-empty grid entry, the model sums learned representations for its clinical variable or event type, its discretized value, and whether the entry is a state measurement, an event occurrence or a prediction query. Event entries also add the mean-pooled embedding of their categorical labels and a coarse event-origin embedding (grouping the 25 event types into clinical observations, care processes, clinical outcomes, administrative records, timeline a History representation and time-conditioned readout

b Fixed-history query

c Autoregressive rollout

Methods Fig. 1: Patient world model architecture, fixed-history queries and autoregressive rollout. a, Irregular clinical records and future query columns () are packed into a sparse model input. Two-dimensional encoder blocks alternate variable-axis attention within each time column and causal time-axis attention along each slot (with global history readout for event queries). A cross-slot mixer combines query representations at before output heads decode state-bin probabilities, event intensities and conditional event-label distributions. b, A fixed-history query predicts distributions at from observed history without modifying the context. c, Autoregressive rollout samples clinical records at , appends them to history and conditions the next query at on the updated history. HR, heart rate.
boundary markers, and other events). Column timestamps are encoded using 32 log-scale Fourier features projected to the hidden dimension. The Transformer encoder comprises six layers with 12 attention heads, a hidden dimension of 768, a feed-forward dimension of 3,072 and dropout of 0.1.
Within each time column, variable-axis attention mixes context entries to represent contemporaneous relationships among clinical variables. Along each slot's timeline, time-axis attention reads preceding context entries and same-column observations when present, while event queries additionally attend to all causal context entries across slots. Within each query column, a cross-slot mixer then combines the queried slot representations at that future time before final layer normalization.
Separate output heads decode ten-bin state distributions, event intensities, and conditional event-label distributions (Methods Fig. 1a). On event-query entries, a shared scalar projection directly predicts type-specific intensity logits, while type-specific categorical heads predict event labels. Because queries accept any positive interval , the model supports both fixed-history risk readouts and autoregressive trajectory rollouts (Methods Fig. 1b,c). A fixed-history query returns state, event, and event-label distributions at the requested future time without modifying the observed context. During autoregressive rollout, sampled events, event labels, and, where enabled, states are appended to before the next query, so subsequent predictions are conditioned on the updated history.
Training objectives and optimization
To supervise both step-by-step clinical evolution and competing clinical outcomes, we train the model by conditioning on observed patient histories (teacher forcing). State targets use ten-bin cross-entropy, and event-label loss is categorical cross-entropy averaged over observed event labels. For event type , the predicted intensity logit defines a positive rate:
Over an interval of width in days, observed event counts contribute the event loss
where is the set of supervised event types, giving the next-time prediction loss .
An auxiliary target-before-stop loss supervises whether a clinical target occurs before a competing stopping event across phase-specific anchor, target, and stop definitions. On a query grid with interval widths , we treat the aggregated target and stop intensities and as constant within each interval. With the definition of , the survival and interval event probabilities are given as
where is the probability that neither event has occurred through interval , and is the probability that event occurs first in that interval. The endpoint-time likelihood assigns , or to target-first, stop-first, or right-censored labels, respectively, and we minimize its negative log-likelihood . We partition multi-interval queries at log-spaced boundaries (; ), using intervals for during training and intervals when sampling next-event times over 14 days during trajectory generation. For fixed-history clinical predictions, cumulative target and stop probabilities through horizon are obtained by summing and , with survival probability . The combined training objective is
with .
Because routine measurements vastly outnumber clinical transitions and acute interventions in raw EHR timelines, training windows are drawn using stratified sampling to upweight admission and discharge landmarks and organ-support initiations alongside random cutoffs. We train the model using AdamW (, , weight decay 0.1), bfloat16 precision, gradient-norm clipping at 0.5, and a batch size of 64. The learning rate warms up linearly over 2,000 updates to and decays following a cosine schedule to at 60,000 updates. Each example retains a history window of at most 1,536 time columns and 3,072 grid entries.
All evaluations use the frozen 60,000-update checkpoint. Holding the model weights fixed, we fit lightweight recalibration parameters on the validation split: logistic intercept and slope parameters for binary endpoint probabilities, variable-specific class biases and temperature scalars for ten-bin state distributions (interpolated on a logarithmic horizon scale during trajectory generation), and piecewise phase-specific rate multipliers (supplemented by support-duration multipliers) for event intensities. These calibration parameters are held fixed across all compared conditions within each experiment.
Clinical prediction evaluation
To assess individual-level discrimination and calibration from fixed histories, we evaluate six clinical prediction tasks, each using 1,024 test records: hospital mortality, ICU mortality at admission, ICU mortality at 24 h, 30-day ICU admission, 30-day hospital readmission, and 30-day ICU readmission. These cohorts contain 981, 959, 956, 974, 961 and 965 distinct patients, respectively. Each mortality task predicts whether death occurs before live discharge from the corresponding hospital or ICU stay, using the history observed up to hospital admission, ICU admission, or 24 h after ICU admission (among patients remaining in the ICU at 24 h).
The three 30-day tasks predict the occurrence of events within 30 days after the landmark and before competing stopping events. Specifically, 30-day ICU admission is predicted from hospital admission (stopped by hospital discharge or death), 30-day hospital readmission from live hospital discharge (stopped by death) and 30-day ICU readmission from the first live ICU discharge within an adult hospitalization (requiring readmission to the ICU during the same hospitalization before hospital discharge or death).
Discrimination and probability accuracy are measured using the area under the receiver operating characteristic curve (AUROC), the area under the precision-recall curve (AUPRC; Supplementary Fig. S1a), and the Brier score, using validation-set event prevalence as the Brier reference. To evaluate calibration across horizons, we estimate logistic calibration slopes across 24 binary task-horizon combinations [52] and empirical coverage of nominal 80% prediction intervals for 14 state variables at 1, 6, 24 and 72 h using the randomized probability integral transform (PIT; proportion of PIT values between 0.1 and 0.9; Supplementary Fig. S1b).
Population trajectory generation and evaluation
To test whether autoregressive rollouts reproduce cohort-level ICU dynamics over 14 days, we generate trajectories from ICU admission for 670 test patients. At each step, the model samples the next clinical event from the predicted intensities along with the 64 state variables at that event time. Organ-support rules permit support initiation (START) only when the corresponding support is inactive, and parameter adjustment (CHANGE) or discontinuation (STOP) only when it is active. Each rollout terminates at death, live ICU discharge, day 14 or 256 generated events. We generate 16 raw and 16 recalibrated rollouts per patient (10,720 trajectories per variant), averaging trajectories within each patient before weighting patients equally.
Observed and generated trajectories are projected onto five mutually exclusive states: no support, single-organ support (respiratory or circulatory), dual respiratory and circulatory support, live ICU discharge, and death, with both terminal states absorbing (redundant START or STOP events do not alter support status). Across the 14-day horizon, we compare organ-support event rates, hourly state occupancy, terminal outcomes, and restricted ICU length of stay. Event incidence measures the proportion of patients with at least one event, whereas event burden counts total occurrences per patient including recurrences. Restricted ICU length of stay measures time spent in the ICU up to death, live discharge, or day-14 censoring. To assess patient-level heterogeneity, we evaluate between-patient variance in cumulative START counts, the fraction of follow-up spent on dual support, and respiratory episode durations stratified by whether the episode ends in an explicit stop or via death, discharge, or day-14 censoring.
Markov and semi-Markov comparators
To benchmark the neural model against compact state representations, we fit Markov and semi-Markov models to hourly training transitions across the same five-state support projection. Markov transition probabilities are conditioned on current support state and hours since ICU admission (, discretized into 0–24, 24–72, 72–168 and 168 h) and are estimated from empirical transition counts. Semi-Markov transition probabilities are additionally conditioned on dwell time in the current state (, discretized into 0–1, 1–3, 3–6, 6–12, 12–24, 24–48 and 48 h), regularized by adding 50 pseudo-counts distributed according to the corresponding Markov transition distribution.
We compare the three models over 14 days on 256 test patients initialized from their observed ICU admission states (Supplementary Fig. S4). We average neural estimates of four rollouts per patient and compute Markov and semi-Markov trajectories as exact hourly analytic expectations initialized at .
To evaluate the timing of organ-support onset over seven days, we restrict the 256-patient cohort to the 244 patients who receive neither respiratory nor circulatory support at ICU admission (Supplementary Fig. S4b). We compare observed and model-predicted timing distributions using 1-Wasserstein distances (in hours) for both first support onset and all support START events including recurrences.
Care-demand and resource specification
To reuse the frozen patient model across operational scenarios, we utilize scenario-specific mappings to convert selected model outputs into hospital service requests without altering the learned representation or parameters (Methods Fig. 2). Here, admission proposals, organ-support events, and live-exit proposals serve as clinical inputs, and the mappings define their operational requests.
Care-demand mapping. All patient models share the same admission and routine-care schedules. An ICU admission generates one task each for a nurse, an attending physician, and a resident, followed by hourly nurse monitoring and 12-h resident rounding.
Organ-support signals generated by the model trigger acute care tasks, with each trigger requesting one nurse, one attending physician, and one resident. In the Markov and semi-Markov comparators, acute tasks are triggered whenever organ support escalates from no support to single-organ or dual support, or from single-organ to dual support. In the neural model, respiratory and circulatory START events are intervention proposals whose clinical delivery requires completion of the attending physician's acute task, whereas circulatory CHANGE and STOP events and respiratory STOP events are recorded directly as clinical signals.
Service times. Each care task requires one staff member of its designated role for a service duration sampled from a triangular distribution (Supplementary Fig. S5a). Minimum and maximum durations are taken from published ICU workflow ranges [30], with their midpoint as the mode, and are held fixed across patient models.
a Shared patient model and task-specific readouts

b From clinical signals and schedules to resource demand

Methods Fig. 2: Shared patient-model readouts and resource-demand mappings. a, With representation and weights held fixed, querying the patient model directly provides fixed-history risk readouts for clinical prediction (top), whereas sampling and appending records generates state-event sequences () that support trajectory evaluation (via five-state support projection), matched-history comparisons and operational simulations (bottom). b, Translation of clinical triggers and elapsed-time schedules into hospital resource requests. ICU-admission proposals request an ICU bed; organ-support events (START proposals, STOP signals and circulatory CHANGE signals) trigger acute care tasks requiring one nurse, one attending physician and one resident; ICU admission and elapsed-time schedules (every 1 h and 12 h) generate routine admission, monitoring and rounding tasks; and live-exit proposals request a downstream discharge slot.
Resource pools. ICU beds and the three staff roles form separate integer-capacity pools. An admitted patient occupies a bed until death or post-ICU exit, including any waiting and service time for downstream transfer. A care task occupies one staff member from the start of service until completion or cancellation. Patients compete through these shared bed and staff pools while clinical forecasts are conditioned on each patient's own history.
Discrete-event simulation and delivery feedback
To couple patient trajectories to shared hospital resources, we embed the patient models within a discrete-event simulator (Methods Fig. 3). The event calendar processes patient arrivals and service completions in continuous time, while each patient's clinical trajectory is updated at a Patient flow and bed occupancy

b Care execution with delivered-action feedback

Methods Fig. 3: Discrete-event simulation of ICU bed flow, care delivery and delivery feedback. a, Patient flow and bed occupancy. Admitted patients occupy an ICU bed until death or discharge, with dashed boxes indicating optional pre-admission bed queueing (left) and post-ICU transfer waiting and service (right), during which the ICU bed remains occupied. b, Care execution and delivery feedback in the neural model. Scheduled care and model-generated signals enter a shared task queue (ordered by first-in, first-out (FIFO) or acute-first dispatch) and allocate available nurses, attending physicians and residents until service completion or cancellation. Whereas stop and CHANGE signals update the patient history directly at each clinical update (dashed teal arrow), a proposed START intervention is appended to only when its corresponding attending-physician task completes (solid teal arrow); unserved or cancelled proposals produce no history update.
fixed hourly intervals ( h unless otherwise specified). At each scheduled update, the model queries the time elapsed since the latest record in that patient's history. Terminal outcomes are evaluated first, and a non-terminal event is sampled only if neither death nor live discharge occurs. When events coincide in time, the simulator processes completed tasks and delivered interventions before updating clinical trajectories, generating scheduled care requests, and handling new arrivals. Available beds and staff are then assigned to waiting requests.
Each patient enters the simulation with the clinical history observed up to entry. When delivery feedback is enabled, a sampled START proposal is withheld from until the corresponding attending-physician task completes. The delivered intervention is then appended to at its completion time, so subsequent clinical updates are conditioned on the actual time of care delivery. Death or ICU discharge cancels all remaining tasks and pending proposals, and unserved proposals, routine task completions, and queue lengths do not modify . When delivery feedback is disabled, we first generate clinical trajectories under staff capacities sufficient to eliminate queueing while preserving service durations, and then replay those fixed trajectories across dispatch policies.
Operational outcomes summarize ICU access, queue burden, staff utilization, and throughput [53]. Admission access is measured by the admitted fraction and restricted bed-waiting time, averaged across all admission requests until bed assignment, death, or discharge before admission, or the simulation horizon. Task queue burden measures total waiting time per initial patient across all requested tasks until service start, cancellation, or the horizon. Task-start delay and post-ICU transfer delay are evaluated among started tasks and completed transfers, respectively.
Admission, care-delivery, and discharge simulations
ICU bed capacity. For 256 test patients, we generate eight pre-ICU trajectories per patient starting from hospital admission, using each trajectory's first ICU-admission proposal as a bed request. All patient models share these arrival requests and pre-admission trajectories, whereas each model's simulated ICU stays determine when occupied beds are released. We evaluate first-in, first-out (FIFO) admission across 12, 16, 20, 24 and 32 ICU beds over 168 h in eight replications, measuring the admitted fraction and 168-h restricted bed-waiting time.
Care dispatch. To evaluate care-task prioritization, we compare FIFO with acute-first dispatch for 128 test patients entering simultaneously across 128 beds over 168 h. Each patient model generates clinical trajectories and task requests with delivery feedback disabled, which are replayed under both dispatch policies across staffing levels of (8,4,8), (12,6,12) and (24,12,24) for (nurses, attending physicians, residents). Whereas FIFO orders all pending tasks by request time, acute-first dispatch prioritizes acute care tasks over routine ones and orders tasks by request time within each priority class. Across 16 paired replications, we estimate the acute-first-minus-FIFO contrast in acute and non-acute queue burden per initial patient.
Post-ICU transfer capacity. To evaluate downstream transfer bottlenecks, we simulate 64 test patients arriving every 2.5 h into a 24-bed unit over 168 h across eight replications under FIFO staffing of (24,4,8). A live-exit proposal generates a downstream transfer request, and the patient continues to occupy the ICU bed until transfer service is completed. Clinical updates and delivery feedback continue while patients await transfer, and new organ-support initiation cancels the pending transfer request. We vary concurrent transfer slots across one, two and four with a 4-h transfer service duration, measuring post-ICU transfer delay among completed transfers and the ICU admission fraction.
Bed and staff capacity under arrival surges
To examine how beds and staff jointly constrain access and care delivery, we simulate 64 test patients with pre-ICU admission proposals over 168 h. In each run, the 64 arrivals are distributed uniformly over either 72 h or 24 h under the neural model with delivery feedback enabled and FIFO admission and dispatch. We cross 16 or 64 ICU beds with low or high staffing of (1,1,1) and (12,4,8) for (nurses, attending physicians, residents), and also evaluate single-role expansions at 16 beds using (12,1,1), (1,4,1) or (1,1,8). Within each of 16 paired replications, all capacity configurations share the same arrival times and patient order. Each expansion is compared against the 16-bed, low-staff reference on restricted bed-waiting time, non-acute task-start delay, and acute and non-acute queue burden.
Observed-trajectory operational replay
To test whether generated trajectories preserve the dispatch-policy effects obtained from observed clinical courses, we replay observed and model-generated ICU trajectories for 128 test patients entering a 128-bed unit simultaneously over 168 h with delivery feedback disabled. Both trajectory sources start from each patient's observed admission support state and share the routine-care schedules, service-time distributions, and three staffing levels of the care-dispatch experiment across 16 paired replications. To apply an identical trigger rule to both sources, acute care tasks are requested when either respiratory or circulatory support transitions from inactive to active (at most once per patient per hour, with simultaneous stop overriding START and CHANGE maintaining active support). Within each source, we calculate the acute-first-minus-FIFO contrast in acute queue burden per initial patient and compare these policy contrasts as generated minus observed.
Matched-history analysis
Cohort construction and matching. To test whether pre-entry clinical history carries prognostic and operational information omitted by compact state definitions, we compare patients entering single-organ support either upward from no support or downward from dual support. On the hourly support grid, we identify transitions from no support or dual support into single-organ support (respiratory-only or circulatory-only), retaining one eligible transition per patient among test patients outside the 670-patient population-trajectory cohort. Within exact strata of active single-organ support channel and integer hours since ICU admission ( ), upward-entry and downward-entry patients are randomly paired without replacement, yielding 404 matched test pairs (808 patients). Because matching occurs at the hourly entry boundary into single-organ support, the dwell time of the initial state is zero ( ) for both groups. Each matched pair therefore supplies the Markov and semi-Markov comparators with identical initial state, hours since ICU admission and state dwell time, whereas the neural model is conditioned on each patient's observed pre-entry history without an explicit entry-direction covariate.
Clinical outcomes and paired comparisons. We follow each matched pair for 24 h on two non-mutually-exclusive endpoints: recovery to no support (reaching a state with neither respiratory nor circulatory support active at any hourly assessment from 1 to 24 h) and terminal exit (death or live ICU discharge within 24 h). For each patient model, upward-minus-downward differences in recovery and terminal exit are estimated across 16 paired replications under unconstrained staffing (eliminating care queues) and compared against observed differences in the 404 matched pairs.
Mapped demand and resource use. Mapping START, STOP, and CHANGE support signals to acute care tasks, we first compare upward-minus-downward differences in support-related task requests per initial patient between observed and model-generated trajectories under unconstrained staffing (Supplementary Fig. S6). To assess how these demand differences propagate under shared resource constraints, we simulate each 404-patient group separately in a 404-bed unit with simultaneous entry over 24 h under the neural model with delivery feedback enabled. Across staffing levels of (25,13,25), (51,25,51) and (76,38,76) for (nurses, attending physicians, residents) and 16 paired replications, we evaluate upward-minus-downward contrasts in queue burden and occupied bed time per initial patient.
Rollout-depth and simulation sensitivity
To evaluate sensitivity to autoregressive rollout depth in the 670-patient cohort, we compare generated and observed trajectories across prefixes of 1 to 256 events using event-frequency total variation and transition Jensen–Shannon divergence (Supplementary Fig. S3a). Both metrics are regressed on to estimate distributional drift per doubling of the event cap. Across the 16 rollouts per patient, we also quantify within-patient trajectory diversity over 1 to 14 days using the proportion of unique trajectory signatures, the modal-signature fraction and mean pairwise Jaccard distance (Supplementary Fig. S3c).
To evaluate sensitivity to simulator execution rules (Supplementary Fig. S5), we first compare 30-, 60- and 120-min clinical update intervals across four paired replications on a 128-patient cohort over 168 h, using 60 min as the reference (Supplementary Fig. S5b). With arrivals, routine care, staffing and service rules held fixed, we compare task-start delay, proposal-to-commit latency, queue length, resource utilization, and terminal outcomes. Finally, in the 128-patient care-dispatch experiment across all three staffing levels and 16 paired replications, we evaluate delivery-feedback sensitivity by subtracting the acute-first-minus-FIFO contrast in acute queue burden with feedback disabled from the corresponding contrast with feedback enabled (Supplementary Fig. S5c).
Statistical analysis
Uncertainty from patient sampling is quantified using non-parametric bootstrap 95% confidence intervals (2.5th to 97.5th percentiles, with curve bands showing pointwise intervals) while holding model and recalibration parameters fixed. We use 1,000 patient-level bootstrap resamples for clinical prediction metrics, and 1,000 patient resamples paired across observed and model trajectories for the 670-patient trajectory analysis and the 256-patient model benchmark, retaining all generated rollouts for each sampled patient. In the 404-pair matched-history analysis, 2,000 pair-level bootstrap resamples provide 95% confidence intervals for observed clinical outcomes, observed task requests, and model clinical outcomes (after averaging the 16 unconstrained-staffing replications within each patient). At a fixed patient cohort, finite-rollout Monte Carlo standard errors across 1 to 16 rollouts per patient are estimated from within-patient rollout variance (Supplementary Fig. S3b).
In the discrete-event simulations, uncertainty intervals quantify Monte Carlo variability across replications conditional on the fixed evaluation cohort and model parameters. The ICU bed-capacity experiment uses 10,000 bootstrap resamples across its eight replications, and the post-ICU transfer experiment uses two-sided 95% Student-t intervals across eight replications. All other operational, sensitivity and matched-history contrasts (including model clinical outcomes, neural task requests, and resource-constrained outcomes) are calculated within each paired replication and summarized using two-sided 95% paired Student-t intervals across the replications specified for each experiment.
Data availability
MIMIC-IV v3.1 is available through PhysioNet at https://doi.org/10.13026/kpb9-mt58. Access requires PhysioNet credentialing, completion of the required research training and a signed data use agreement.
Code availability
Our code will be provided on GitHub for academic research purposes upon publication.
Acknowledgements
This work is supported by the National Natural Science Foundation of China under Grant 62271465, the National Key R&D Program of China under Grant 2025YFC3408300, the Basic Research Program of Jiangsu (No. BK20255001), the Suzhou Basic Research Program under Grant SYG202338, and the Sanming Project of Medicine in Shenzhen under Grant SZSM202411033.
Yingtai Li thanks Yidan Feng (School of Nursing, The Hong Kong Polytechnic University) for her early advice on working with the MIMIC database following discussions at MICCAI 2025 in South Korea.
Author contributions
Yingtai Li conceived and designed the study. Yingtai Li and Ruoyan Wang developed the patient world model and discrete-event simulation framework, conducted the experiments, analyzed the results and wrote the original draft. Yu Li provided domain expertise in health system simulation and health modeling. Shaohua Kevin Zhou supervised the project, provided overall guidance, and revised the manuscript. All authors read and approved the final manuscript.
Competing interests
The authors declare no competing interests.
References
[1] Deirdre A. Hennessy, William M. Flanagan, Peter Tanuseputro, Carol Bennett, Meltem Tuna, Jacek Kopec, Michael C. Wolfson, and Douglas G. Manuel. The population health model (POHEM): An overview of rationale, methods and applications. Population Health Metrics, 13:24, 2015. doi: 10.1186/s12963-015-0057-x.
[2] Deborah A. Marshall, Lina Burgos-Liz, Maarten J. IJzerman, Nathaniel D. Osgood, William V. Padula, Mitchell K. Higashi, Peter K. Wong, Kalyan S. Pasupathy, and William Crown. Applying dynamic simulation modeling methods in health care delivery research—the SIMULATE checklist: Report of the ISPOR simulation modeling emerging good practices task force. Value in Health, 18(1):5–16, 2015. doi: 10.1016/j.jval.2014.12.001.
[3] Rafael Meza, Jihyoun Jeon, Iakovos Toumazis, Kevin ten Haaf, Pianpian Cao, Mehrad Bastani, Summer S. Han, Erik F. Blom, Daniel E. Jonas, Eric J. Feuer, Sylvia K. Plevritis, Harry J. de Koning, and Chung Yin Kong. Evaluation of the benefits and harms of lung cancer screening with low-dose computed tomography: Modeling study for the US preventive services task force. JAMA, 325(10):988–997, 2021. doi: 10.1001/jama.2021.1077.
[4] Richard Pitman, David Fisman, Gregory S. Zaric, Maarten Postma, Mirjam Kretzschmar, John Edmunds, and Marc Brisson. Dynamic transmission modeling: A report of the ISPOR-SMDM modeling good research practices task force-5. Value in Health, 15(6):828–834, 2012. doi: 10.1016/j.jval.2012.06.011.
[5] G. J. Melman, A. K. Parlikad, and E. A. B. Cameron. Balancing scarce hospital resources during the COVID-19 pandemic using discrete-event simulation. Health Care Management Science, 24(2):356–374, 2021. doi: 10.1007/s10729-021-09548-2.
[6] Reda Lebcir, Eren Demir, Raheelah Ahmad, Christos Vasilakis, and David Southern. A discrete event simulation model to evaluate the use of community services in the treatment of patients with Parkinson's disease in the United Kingdom. BMC Health Services Research, 17:50, 2017. doi: 10.1186/s12913-017-1994-9.
[7] Shasha Han, Shuangchi He, and Hong Choon Oh. Data-driven inpatient bed assignment using the P model. arXiv preprint arXiv:2111.08269, 2021. doi: 10.48550/arXiv.2111.08269.
[8] Mark Roberts, Louise B. Russell, A. David Paltiel, Michael Chambers, Phil McEwan, and Murray Krahn. Conceptualizing a model: A report of the ISPOR-SMDM modeling good research practices task force–2. Value in Health, 15(6):804–811, 2012. doi: 10.1016/j.jval.2012.06.016.
[9] Deborah A. Marshall, Lina Burgos-Liz, Maarten J. IJzerman, William Crown, William V. Padula, Peter K. Wong, Kalyan S. Pasupathy, Mitchell K. Higashi, and Nathaniel D. Osgood. Selecting a dynamic simulation modeling method for health care delivery research—part 2: Report of the ISPOR dynamic simulation modeling emerging good practices task force. Value in Health, 18(2):147–160, 2015. doi: 10.1016/j.jval.2015.01.006.
[10] Qiushi Chen, Yiwen Fan, Ke Huang, Wei Li, Pascal Geldsetzer, Till Bärnighausen, Ting Yang, Chen Wang, and Simiao Chen. Cost-effectiveness of population-based screening for chronic obstructive pulmonary disease in china: A simulation modeling study. The Lancet Regional Health – Western Pacific, 46:101065, 2024. doi: 10.1016/j.lanwpc.2024.101065.
[11] Uwe Siebert, Oguzhan Alagoz, Ahmed M. Bayoumi, Beate Jahn, Douglas K. Owens, David J. Cohen, and Karen M. Kuntz. State-transition modeling: A report of the ISPOR-SMDM modeling good research practices task force–3. Value in Health, 15(6):812–820, 2012. doi: 10.1016/j.jval.2012.06.014.
[12] Eline M. Krijkamp, Fernando Alarid-Escudero, Eva A. Enns, Hawre J. Jalal, M. G. Myriam Hunink, and Petros Pechlivanoglou. Microsimulation modeling for health decision sciences using R: A tutorial. Medical Decision Making, 38(3):400–422, 2018. doi: 10.1177/0272989X18754513.
[13] Yikuan Li, Shishir Rao, José Roberto Ayala Solares, Abdelaali Hassaine, Rema Ramakrishnan, Dexter Canoy, Yajie Zhu, Kazem Rahimi, and Gholamreza Salimi-Khorshidi. BEHRT: Transformer for electronic health records. Scientific Reports, 10:7155, 2020. doi: 10.1038/s41598-020-62922-y.
[14] Laila Rasmy, Yang Xiang, Ziqian Xie, Cui Tao, and Degui Zhi. Med-BERT: Pretrained contextualized embeddings on large-scale structured electronic health records for disease prediction. npj Digital Medicine, 4:86, 2021. doi: 10.1038/s41746-021-00455-y.
[15] David Ha and Jürgen Schmidhuber. Recurrent world models facilitate policy evolution. In Advances in Neural Information Processing Systems, volume 31, 2018.
[16] Zeljko Kraljevic et al. Foresight—a generative pretrained transformer for modelling of patient timelines using electronic health records: A retrospective modelling study. The Lancet Digital Health, 6(4):e281–e290, 2024. doi: 10.1016/S2589-7500(24)00025-6.
[17] Pawel Renc, Yugang Jia, Anthony E. Samir, Jaroslaw Was, Quanzheng Li, David W. Bates, and Arkadiusz Sitek. Zero shot health trajectory prediction using transformer. npj Digital
Medicine, 7, 2024. doi: 10.1038/s41746-024-01235-0.
[18] Artem Shmatko, Alexander Wolfgang Jung, Kumar Gaurav, Søren Brunak, Laust Hvas Mortensen, Ewan Birney, Tom Fitzgerald, and Moritz Gerstung. Learning the natural history of human disease with generative transformers. Nature, 2025. doi: 10.1038/s41586-025-09529-3.
[19] Shane Waxler, Paul Blazek, Davis White, Daniel Sneider, Kevin Chung, Mani Nagarathnam, Patrick Williams, Hank Voeller, Karen Wong, Matthew Swanhorst, Sheng Zhang, Naoto Usuyama, Cliff Wong, Tristan Naumann, Hoifung Poon, Andrew Loza, Daniella Meeker, Seth Hain, and Rahul Shah. Generative medical event models improve with scale. arXiv preprint arXiv:2508.12104, 2025.
[20] Linjie Mu, Zhongzhen Huang, Yannian Gu, Shengqian Qin, Shaoting Zhang, and Xiaofan Zhang. EHRWorld: A patient-centric medical world model for long-horizon clinical trajectories. arXiv preprint arXiv:2602.03569, 2026.
[21] Gati V. Aher, Rosa I. Arriaga, and Adam Tauman Kalai. Using large language models to simulate multiple humans and replicate human subject studies. In Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pages 337–371, 2023.
[22] John J. Horton. Large language models as simulated economic agents: What can we learn from Homo Silicus? arXiv preprint arXiv:2301.07543, 2023.
[23] Joon Sung Park, Joseph C. O'Brien, Carrie J. Cai, Meredith Ringel Morris, Percy Liang, and Michael S. Bernstein. Generative agents: Interactive simulacra of human behavior. In Proceedings of the 36th Annual ACM Symposium on User Interface Software and Technology, pages 1–22, 2023. doi: 10.1145/3586183.3606763.
[24] Haoxiang Guan, Jiyan He, Liyang Fan, Zhenzhen Ren, Shaobin He, Xin Yu, Yuan Chen, Shuxin Zheng, Tie-Yan Liu, and Zhen Liu. Modeling earth-scale human-like societies with one billion agents. arXiv preprint arXiv:2506.12078, 2025.
[25] Luyang Luo, Sung Eun Kim, Xiaoman Zhang, Julius M. Kernbach, Roshan Kenia, Julian N. Acosta, Larry A. Nathanson, Adrian D. Haimovich, Adam Rodman, Ethan Goh, Jonathan H. Chen, Nigam H. Shah, David A. Kim, James Zou, Faisal Mahmood, Jakob Nikolas Kather, Matthew Lungren, Vivek Natarajan, Eric J. Topol, and Pranav Rajpurkar. A clinical environment simulator for dynamic AI evaluation. Nature Medicine, 32(3):820–827, 2026. doi: 10.1038/s41591-026-04252-6.
[26] Grace Chang Yuan, Xiaoman Zhang, Sung Eun Kim, Luyang Luo, and Pranav Rajpurkar. Asclepius: An adaptive harness for long-horizon clinical agents. arXiv preprint arXiv:2609.13543, 2026.
[27] Junkai Li, Yunghwei Lai, Weitao Li, Jingyi Ren, Meng Zhang, Xinhui Kang, Siyu Wang, Peng Li, Ya-Qin Zhang, Weizhi Ma, and Yang Liu. Agent hospital: A simulacrum of hospital with evolvable medical agents. arXiv preprint arXiv:2405.02957, 2024.
[28] Pengcheng Qiu, Chaoyi Wu, Junwei Liu, Qiaoyu Zheng, Yusheng Liao, Haowen Wang, Yun Yue, Qianrui Fan, Shuai Zhen, Jian Wang, Jinjie Gu, Yanfeng Wang, Ya Zhang, and Weidi Xie. Evolving diagnostic agents in a virtual clinical environment. arXiv preprint arXiv:2510.24654, 2025.
[29] Gayan Dihantha Kuruppu Kuruppu Appuhamilage et al. A health digital twin framework for discrete event simulation based optimised critical care workflows. npj Digital Medicine, 8:376, 2025. doi: 10.1038/s41746-025-01738-4.
[30] Xiang Zhong, Siddharth Vipankumar Abrol Neena, Grace Yao Hou, Amos Lal, Ognjen Gajic, and Yue Dong. AI-enhanced multi-method simulation for intensive care unit digital twinning. IISE Transactions on Healthcare Systems Engineering, 2026. doi: 10.1080/24725579.
2026.2687651.
[31] Alistair E. W. Johnson, Lucas Bulgarelli, Lu Shen, Alvin Gayles, Ayad Shammout, Steven Horng, Tom J. Pollard, Sicheng Hao, Benjamin Moody, Brian Gow, Li-wei H. Lehman, Leo A. Celi, and Roger G. Mark. MIMIC-IV, a freely accessible electronic health record dataset. Scientific Data, 10:1, 2023. doi: 10.1038/s41597-022-01899-x.
[32] William Manley, Jack Homer, Marna Hoard, Sanjoy Roy, Paul M. Furbee, Daniel Summers, Robert Blake, and Marsha Kimble. A dynamic model to support surge capacity planning in a rural hospital. In Proceedings of the 23rd International Conference of the System Dynamics Society, Boston, MA, 2005. URL https://proceedings.systemdynamics.org/2005/proceed/papers/MANLE333.pdf.
[33] Joshua E. Hurwitz, Jo Ann Lee, Kenneth K. Lopiano, Scott A. McKinley, James Keesling, and Joseph A. Tyndall. A flexible simulation platform to quantify and manage emergency department crowding. BMC Medical Informatics and Decision Making, 14:50, 2014. doi: 10.1186/1472-6947-14-50.
[34] Jonathan Karnon, James Stahl, Alan Brennan, J. Jaime Caro, Javier Mar, and Jörgen Möller. Modeling using discrete event simulation: A report of the ISPOR-SMDM modeling good research practices task force–4. Value in Health, 15(6):821–827, 2012. doi: 10.1016/j.jval.2012.04.013.
[35] Eric Bonabeau. Agent-based modeling: Methods and techniques for simulating human systems. Proceedings of the National Academy of Sciences, 99(suppl 3):7280–7287, 2002. doi: 10.1073/pnas.082080899.
[36] Sarah M. Urbut, Yi Ding, Tetsushi Nakao, et al. A bayesian framework for longitudinal EHR and genetic discovery. Nature, 656, 2026. doi: 10.1038/s41586-026-10780-5.
[37] Fan Ma, Yuntian Liu, Xiang Lan, et al. Foundation models to unlock real-world evidence from nationwide medical claims. arXiv preprint arXiv:2605.02740, 2026. URL https://arxiv.org/abs/2605.02740v2. Version 2.
[38] Paul Hager, Benedikt Roth, Niklas Bühler, et al. Learning the shared structure of human health across diseases, modalities, and time. medRxiv, 2026. doi: 10.64898/2026.07.07.26357373. URL https://www.medrxiv.org/content/10.64898/2026.07.07.26357373v1. Preprint, version 1.
[39] Hongcheng Guo, Lingran Song, Peng Ren, et al. HealthFound: a health world model for quantitative reasoning on longitudinal health profiles. medRxiv, 2026. doi: 10.64898/2026.10.03.26364142. URL https://www.medrxiv.org/content/10.64898/2026.10.03.26364142v1. Preprint, version 1.
[40] Guy Lutsker, Gal Sapir, Jordi Merino, et al. Simulating clinical interventions with a generative multimodal model of human physiology. arXiv preprint arXiv:2604.27899, 2026. URL https://arxiv.org/abs/2604.27899v1. Version 1.
[41] Tobias Susetzky, Raphael Rehms, Dmitrii Seletkov, Özgün Turgut, Michelle Espranita Liman, Lisa Steinhelfer, Rickmer Braren, and Daniel Rueckert. NOAH: Learning the full patient journey. a longitudinal multimodal time-aware model for representation and forecasting. arXiv preprint arXiv:2609.09140, 2026. URL https://arxiv.org/abs/2609.09140v1. Version 1.
[42] Zirui Wang, Odin Zhang, Jiaqi Wang, et al. A world model simulates the latent dynamics of human health. medRxiv, 2026. doi: 10.64898/2026.09.19.26363460. URL https://www.medrxiv.org/content/10.64898/2026.09.19.26363460v3. Preprint, version 3.
[43] Lisa P. Argyle, Ethan C. Busby, Nancy Fulda, Joshua R. Gubler, Christopher Rytting, and David Wingate. Out of one, many: Using language models to simulate human samples. Political Analysis, 31(3):337–351, 2023. doi: 10.1017/pan.2023.2.
[44] Tau Ming Liew and Way Inn Koay. Cost-effective case-finding strategies for cognitive impair-ment with digital twin simulations. Nature Health, 2026. doi: 10.1038/s44360-026-00076-3.
[45] Jakob Trauer, Sebastian Schweigert-Recksiek, Christian Engel, Kristin Spreitzer, and Markus Zimmermann. What is a digital twin? definitions and insights from an industrial case study in technical product development. In Proceedings of the Design Society: DESIGN Conference, volume 1, pages 757–766, 2020. doi: 10.1017/dsd.2020.15.
[46] Evangelia Katsoulakis et al. Digital twins for health: A scoping review. npj Digital Medicine, 7:77, 2024. doi: 10.1038/s41746-024-01073-0.
[47] Tom J. Pollard, Alistair E. W. Johnson, Jesse D. Raffa, Leo A. Celi, Roger G. Mark, and Omar Badawi. The elCU collaborative research database, a freely available multi-center database for critical care research. Scientific Data, 5:180178, 2018. doi: 10.1038/sdata.2018.178.
[48] Gary S. Collins et al. TRIPOD+AI statement: Updated guidance for reporting clinical prediction models that use regression or machine learning methods. BMJ, 385:e078378, 2024. doi: 10.1136/bmj-2023-078378.
[49] Maya L. Petersen, Kristin E. Porter, Susan Gruber, Yue Wang, and Mark J. van der Laan. Diagnosing and responding to violations in the positivity assumption. Statistical Methods in Medical Research, 21(1):31–54, 2012. doi: 10.1177/0962280210386207.
[50] Alexander D'Amour, Peng Ding, Avi Feller, Lihua Lei, and Jasjeet Sekhon. Overlap in observational studies with high-dimensional covariates. Journal of Econometrics, 221(2): 644–654, 2021. doi: 10.1016/j.jeconom.2019.10.014.
[51] Tianhe Yu, Garrett Thomas, Lantao Yu, Stefano Ermon, James Zou, Sergey Levine, Chelsea Finn, and Tengyu Ma. MOPO: Model-based offline policy optimization. In Advances in Neural Information Processing Systems, volume 33, pages 14129–14142, 2020.
[52] Ben Van Calster et al. Calibration: The achilles heel of predictive analytics. BMC Medicine, 17:230, 2019. doi: 10.1186/s12916-019-1466-7.
[53] Oleksa G. Rewa et al. Indicators of intensive care unit capacity strain: A systematic review. Critical Care, 22:86, 2018. doi: 10.1186/s13054-018-1975-3.
Supplementary Information
a Precision-recall discrimination

b State prediction coverage

Supplementary Figure S1: Precision-recall discrimination and state interval coverage. a, Area under the precision-recall curve (AUPRC) across six clinical prediction tasks, each evaluated on 1,024 records from 956–981 test patients; vertical ticks mark test-cohort task prevalence. For ICU mortality, 0 and 24 h denote the observed history window after ICU admission. b, Empirical coverage of nominal 80% prediction intervals across 14 continuous state variables at 1, 6, 24 and 72 h, before and after validation-fitted recalibration. Coverage was evaluated on the ten-bin state distributions using the randomized probability integral transform (PIT), measuring the proportion of observed state bins whose randomized cumulative probability fell between 0.1 and 0.9 relative to the nominal 80% level (dashed line). Whiskers and shaded bands show 95% patient-cluster bootstrap intervals from 1,000 resamples.
Observed Recalibrated Raw
a No organ support

b Single organ support

c Dual organ support

d Discharged alive
e Death


Supplementary Figure S2: Hourly five-state occupancy in generated virtual cohorts. a–e, Hourly cohort proportions in no support, single-organ support, dual support, live ICU discharge and death over 14 days, comparing observed clinical courses with raw and recalibrated trajectories across 670 test patients (16 rollouts per patient per variant, averaged within each patient and weighted equally across patients). Live discharge and death are absorbing states; vertical axis ranges differ across panels.
a Drift with generated prefix depth
Uncalibrated Recalibrated


b Monte Carlo precision at fixed patient count




c Within-patient trajectory diversity



Supplementary Figure S3: Generation depth, finite-rollout precision and trajectory diversity. a, Event-frequency total variation and transition Jensen–Shannon divergence across prefix caps of 1 to 256 events in the 14-day trajectories of 670 test patients (16 rollouts per patient per variant; after recalibration, drift increased by 0.0379 [95% CI, 0.0325–0.0421] and 0.0238 [0.0197–0.0275] per cap doubling, respectively). Shaded bands show 95% patient-bootstrap intervals. b, Estimated Monte Carlo standard errors (MCSEs) for raw and recalibrated cohort means at budgets of and 16 rollouts per patient, computed as , where is the sample variance across the 16 generated rollouts for patient ( fixed patients; at , recalibrated MCSEs equal 33–54% of the corresponding patient-bootstrap standard errors). c, Within-patient trajectory diversity across the 16 rollouts per patient over 1 to 14 days, measured by the proportion of unique trajectory signatures, the modal-signature fraction and the mean pairwise Jaccard distance, averaged equally across patients. Signatures comprise ordered event types, sampled event-label bins and 6-h time bins (with order and multiplicity ignored for Jaccard distance); when all 16 trajectory signatures for a patient are distinct, the modal fraction reaches its minimum of 1/16 (6.25%, dotted line). Shaded bands show 95% patient-bootstrap intervals from 1,000 resamples. pp, percentage points.
a Common admission-state benchmark



b First and repeated support-onset timing
First START All STARTs

Supplementary Figure S4: Markov and semi-Markov comparator benchmarks and support-onset timing. a, Cohort-level benchmark across 256 test ICU stays with matched admission-state initialization over 14 days, comparing hourly five-state occupancy mean absolute error (MAE), restricted mean ICU length of stay, and cumulative live-discharge and death incidence MAE. Whiskers show 95% patient-bootstrap intervals from 1,000 resamples. b, First-START and all-START 1-Wasserstein distances (in hours) over 7 days for 244 eligible test patients without baseline support. All STARTs include recurrences; marker shapes identify endpoints, lines connect estimates within each model, and whiskers show 95% patient-bootstrap intervals.
a Beds, staff and service requirements


b Sensitivity to clinical refresh interval

c Acute-first benefit with and without delivery feedback

Supplementary Figure S5: Resource requirements and execution sensitivity. a, Role-specific task requirements and triangular service-time distributions (minimum/mode/maximum in minutes: admission—nurse 25/35/45, attending physician 15/20/25 and resident 10/15/20; hourly monitoring—nurse 6/8/10; 12-h rounding—resident 10/12.5/15; acute care—nurse 5/7.5/10, attending physician 5/10/15 and resident 5/10/15; simulation workflow in Methods Fig. 3). b, Paired 30- and 120-min clinical update-interval contrasts relative to the 60-min reference across 128 test patients over 168 h (whiskers, paired Student-t 95% intervals across four replications). c, FIFO-minus-acute-first reductions in acute queue burden per initial patient with delivery feedback disabled or enabled (128 test patients, 128 beds, 168-h horizon; bars and whiskers, means and paired Student-t 95% intervals across 16 replications). At lower staffing, enabling feedback reduces the benefit from 13.41 to 9.02 h per patient (paired attenuation 4.39 h, 95% interval [3.79, 5.00]).
a History-associated demand contrasts
Observed Neural model

b Absolute mapped demand
Upward entry Downward entry


Supplementary Figure S6: Organ-support triggers underlying matched-history care-demand differences. Values are acute trigger groups per initial patient over 24 h across 404 matched test pairs (neural estimates use 16 paired replications under unconstrained staffing). Simultaneous support signals for a patient were grouped into a single trigger group, each generating one task request for each of the three staff roles; 14 observed groups contained multiple support-event types, so the stop and CHANGE categories overlap and deduplicated summaries count each group once. a, Upward-minus-downward differences in observed and neural-generated demand by trigger group, showing that lower total acute demand in upward-entry patients was driven primarily by fewer stop- and CHANGE-related groups. Whiskers show 95% intervals from 2,000 pair-level bootstrap resamples for observations and paired Student-t Monte Carlo (MC) intervals across the 16 replications for neural estimates; the dashed line marks zero. †Actual-START values are point estimates without confidence intervals; counting all proposed neural START events instead gives 1.9692 versus 1.8773 per patient (contrast +0.0919, MC 95% CI [0.0339, 0.1499]). b, Absolute mean demand for deduplicated stop-or-CHANGE and all trigger groups in upward-entry (filled circles) and downward-entry (open circles) patients.