Patient state encoder | prediction engine

NOAH: Learning the Full Patient Journey

A longitudinal multimodal time-aware model for holistic representation and forecasting.

Tobias Susetzky 1,2 Raphael Rehms 1,5 Dmitrii Seletkov 1,2 Özgün Turgut 1 Michelle Espranita Liman 1 Lisa Steinhelfer 3,4 Rickmer Braren 4 Daniel Rueckert 1,5,6
1 Chair for AI in Healthcare and Medicine, TUM University Hospital and Technical University of Munich (TUM), Munich, Germany 2 Institute for Diagnostic and Interventional Radiology, TUM University Hospital, Munich, Germany 3 Institute for Diagnostic and Interventional Neuroradiology, TUM University Hospital, Munich, Germany 4 Department of Diagnostic and Interventional Radiology and Nuclear Medicine, University Medical Center Hamburg-Eppendorf, Hamburg, Germany 5 Munich Center for Machine Learning (MCML), Munich, Germany 6 Department of Computing, Imperial College London, London, United Kingdom
Overview of NOAH: statistics of the merged MIMIC lifetime dataset, the architecture embedding multimodal health-record events through type category, type specifics, and value, a causal transformer decoder with bidirectional temporal attention and a variational latent module, and the downstream uses: free and time-controlled forecasting, simulation, and patient state embeddings.

NOAH understands, represents, and extends sequences of multimodal patient data: one pretrained generative time-aware transformer model with latent variability for forecasting with optional time control, outcome simulation, and patient state representation.

Abstract

The digitization of healthcare has generated vast, longitudinal, and multimodal patient records over a lifetime, yet fully exploiting these data to represent and predict patient state trajectories remains a critical challenge. Current AI models often struggle to capture the complex, irregular temporal dynamics and inherent stochasticity of real-world multimodal patient data. In the biomedical domain, existing AI approaches for modeling longitudinal patient records are predominantly discriminative, limited to a few modalities, constrained by closed categorical vocabularies, treating time as a monotonic inductive bias, or they are limited in forecasting future patient states. We introduce NOAH, a time-aware, task-agnostic, generative transformer model representing and forecasting the full multimodal patient journey. NOAH features a novel bidirectional time integration and a variational latent space to capture the continuous evolution of patient states and the stochasticity of clinical trajectories. Built from over 559 million clinical events from 431,000 hospital visits of 299,000 patients across the MIMIC dataset family, NOAH natively processes multiple kinds of medical images, time-series and numeric signals, categorical events, as well as structured and unstructured clinical records. NOAH is the first truly holistic generative model in its field, enabling autoregressive forecasting with optional time control, zero-shot classification, and counterfactual simulation of clinical interventions. Furthermore, its novel approach generates highly informative and predictive patient state representations that demonstrate strong performance in probing for clinical outcomes, 15 ICD chapters, and 29 comorbidities, as well as in time-to-event prediction. Seamlessly handling diverse modalities and complex temporal dynamics, NOAH provides a versatile, task-agnostic, scalable foundation for intelligent predictive systems in personalized clinical care and digital medicine.

A holistic patient state encoder and prediction engine. Built from all data.

NOAH can consume all of a patient’s lifetime data as one sequence of timestamped events: textual reports, X-ray images, ultrasound videos, ECG waveforms, vital measurements, lab results, medication, procedures, and more.

All pieces of information are considered singular events and put on one timeline per patient, in arbitrary order and count. They can span multiple emergency department (ED) visits, hospital admissions, and ICU stays, as well as online medical records collected outside clinical care.

NOAH’s design can deal with unseen continuous value embeddings and free-text event types without retraining, overcoming the limitations of a closed vocabulary.

0
timestamped clinical events

Event volume per modality (log scale).

0K
patients
0K
hospital visits
0
data modalities

For the first time in its field, NOAH is fully multimodal, yet generative. It actually consumes the contents of events, e.g. pixel data of an X-ray instead of just the information that an image was taken. NOAH is a transformer decoder pretrained on these multimodal sequences from the merged MIMIC dataset family (Johnson et al., 2023).

A landscape of patient states and transitions.

NOAH is pretrained to predict the next token in a variable latent space for each timestep, i.e. for every clinical event in the input sequence, given the history. By this, NOAH learns a landscape of patient states and transitions. It produces an embedding for every timestep, forming a trajectory over the entire patient journey. It serves as a versatile patient state encoder.

Events and values of one patient

  1. 08:12ED arrival, ambulance
  2. 08:19Triage: chest pain, HR 118
  3. 08:3412-lead ECG, ST depression
  4. 08:51Troponin 1.8 ng/mL
  5. 09:08Chest X-ray, congestion
  6. 09:35Note: suspected NSTEMI
  7. 10:02Heparin started
  8. 11:26Cath lab, PCI to LAD
  9. 14:10ICU admission
  10. 18:22Echo, EF 38%
  11. d2 09:00Ward transfer, stable
  12. d4 11:15Discharge home

Patient state space

Surprise

1.15
KL, nats

As a characteristic of NOAH, the model allows quantifying its surprise, i.e. the difference between its prior expectation and the posterior informed by the actual next event, for each step in a patient’s timeline. This surprise corresponds to clinical novelty. It rises before formally charted stay onsets, peaks for first responses in the emergency department, and decays as routines emerge.

Patient states by care level

Patient states by event type

Projections of NOAH's patient state space, colored by care level and by event type.

NOAH’s learned trajectories for all test set patients form a landscape that is mainly organized by contextualized events, e.g. by event type under a certain level of care.

A prediction engine with optional time control.

Due to its generative nature, NOAH can also predict future states autoregressively. Thus, NOAH also serves as a task-agnostic prediction engine.

Recorded history

NOAH forecast

NOAH

13:40 · MAP 62 mmHg

Prompted with a patient’s record up to a cutoff, NOAH rolls out future events and also allows for controlling the timing of each next event. It reaches AUROC 0.83-0.95 with Brier scores 0.03-0.11 for type and modality of the next events within horizons of up to 72 h.

NOAH’s built-in variability allows for sampling multiple such rollouts under one prompt. This enables Monte Carlo estimation of clinical outcome probabilities such as in-hospital mortality, prolonged stay, and 30-day readmission, zero-shot without extra training. We achieve an AUROC of 0.97 for 72-hour mortality, 0.74 for prolonged stay, and 0.61 for readmission.

Recorded history

Three sampled rollouts

NOAH
+72 h

A simulator for counterfactual interventions.

Using the mechanism described above, NOAH allows swapping a factual treatment in the prompt for a counterfactual and observing the change in the probabilities of the simulated outcomes.

For 1,085 patients, we substitute the first intravenous fluid given within six hours of a sepsis marker (0.9% saline vs. lactated Ringer’s), simulate both arms, and estimate mortality, length of stay, and MAKE-30 (Semler et al., 2018). The simulated treatment effect, +8.92 pp MAKE-30 and +8.86 pp 30-day mortality under Ringer’s against saline, matches the sign of the effect in the sepsis subgroup of the SMART randomized trial (Brown et al., 2019), +4.7 pp, at roughly twice its magnitude.

Counterfactual simulation: NEWS2 scores over time for four exemplar patients under the factual and the counterfactual fluid arm, and the predicted 30-day mortality, length of stay, MAKE-30 risk and average treatment effect for both simulated arms.

For each generated patient state during counterfactual simulation, i.e. for each timestep, we retrieve the NEWS2 patient stability score (Smith et al., 2019). Under simulated saline versus Ringer’s, the risk scores differ and the estimated outcome probabilities improve under Ringer’s, consistent with SMART’s sepsis subgroup.

A powerful feature extractor for downstream tasks.

NOAH produces a patient state embedding at every timestep, aggregating information from a long complex history of diverse multimodal events. These representations can serve as powerful features to facilitate downstream tasks.

Due to NOAH’s novel architecture, those features are highly predictive and prognostic. DeepSurv (Katzman et al., 2018) survival models reach a C-index (Antolini et al., 2005) of up to 0.85 on NOAH’s patient state embeddings while staying calibrated (Haider et al., 2020).

Linear probes for retrieval reach AUROC 0.72-0.94 across 15 ICD chapters and 29 comorbidities (Quan et al., 2005). An MLP recovers the NEWS2 early-warning score (Smith et al., 2019) with MAE 1.34 and is applicable to any patient state at any point in time.

Downstream results on patient state embeddings: linear-probe AUROC for clinical outcomes, 15 ICD chapters, and 29 comorbidities at end-of-stay retrieval, ROC curves for ICD chapters, comorbidities, and NEWS2 risk bands, NEWS2 score recovery calibration with test support, and time-to-event C-index and D-calibration across within-stay time fractions.

Results of linear probes for outcomes, ICD chapters and comorbidities, of an MLP for NEWS2 risk recovery, and of survival models that achieve top performance using NOAH’s patient state representations as features.

A novel variability module and bidirectional time integration.

NOAH is a causally masked transformer decoder pretrained on sequences of multimodal patient data. Every sequence item is considered a timestamped event consisting of high-level type category, free-text type specifics, and continuous value embedding. NOAH learns end-to-end to project those composite events into a shared space, following the token scheme of TAMME (Susetzky et al., 2025).

Variational autoregression. Given a multimodal input sequence, for timestep t1t-1 NOAH predicts the next event xt\mathbf{x}_t through transformer output ht1\mathbf{h}_{t-1} and a latent patient state zt\mathbf{z}_t. This patient state is shared across the output heads decoding the multiple event components. The overall setup adopts the concepts of the Variational Autoencoder (VAE) (Kingma & Welling, 2013) and of Variational Recurrent Neural Networks (VRNN) (Chung et al., 2015):

pθ(xtx<t)=pθ(xtzt)pθ(ztht1)dztp_\theta(\mathbf{x}_t \mid \mathbf{x}_{<t}) = \int p_\theta(\mathbf{x}_t \mid \mathbf{z}_t)\, p_\theta(\mathbf{z}_t \mid \mathbf{h}_{t-1})\, d\mathbf{z}_t

The prior pθ(ztht1)p_\theta(\mathbf{z}_t \mid \mathbf{h}_{t-1}) is a learned, context-conditional Gaussian over the continuation that is expected given the history. During training, an informed posterior qϕ(ztht1,et)q_\phi(\mathbf{z}_t \mid \mathbf{h}_{t-1}, \mathbf{e}_t) additionally sees the embedding et\mathbf{e}_t of the realized event xt\mathbf{x}_t. The model’s objective is to reconstruct xt\mathbf{x}_t from the posterior while simultaneously minimizing the divergence between prior and posterior. This explicitly encourages the model to learn a predictive representation from history and encode only the truly unpredictable residual via the posterior, the surprise. At inference time, sampling zt\mathbf{z}_t from the prior yields stochastic trajectories.

Bidirectional temporal attention. The gap between two adjacent events in our multimodal event sequences is the forward gap of the earlier one and, at the same time, the backward gap of the later one. NOAH explicitly separates these two functionally distinct views in the self-attention mechanism: queries q\mathbf{q} carry the forward gap δ~tnext\widetilde{\delta}^{\mathrm{next}}_t to the next event while keys k\mathbf{k} are associated with the backward gap δ~tprev\widetilde{\delta}^{\mathrm{prev}}_t to the previous event. Both include the event’s index position ptp_t within the sequence as well as the patient’s age ata_t at that event. All features are encoded through a sinusoidal basis Ψ\Psi:

qtqt+Ψ2([pt,at])+Ψ1([δ~tnext]),ktkt+Ψ2([pt,at])+Ψ1([δ~tprev])\mathbf{q}_t \leftarrow \mathbf{q}_t + \Psi_2([p_t, a_t]) + \Psi_1([\widetilde{\delta}^{\mathrm{next}}_t]), \qquad \mathbf{k}_t \leftarrow \mathbf{k}_t + \Psi_2([p_t, a_t]) + \Psi_1([\widetilde{\delta}^{\mathrm{prev}}_t])

By this, attention explicitly conditions on the horizon it predicts for.

Continue reading in the preprint

Citation

@misc{susetzky2026noah,
title = {NOAH: Learning the Full Patient Journey. A Longitudinal
Multimodal Time-Aware Model for Representation and Forecasting},
author = {Tobias Susetzky and Raphael Rehms and Dmitrii Seletkov and
Özgün Turgut and Michelle Espranita Liman and Lisa Steinhelfer and
Rickmer Braren and Daniel Rueckert},
year = {2026},
eprint = {2609.09140},
archivePrefix = {arXiv},
primaryClass = {cs.LG},
url = {https://arxiv.org/abs/2609.09140}
}

References

Antolini, L., Boracchi, P., & Biganzoli, E. (2005). A time-dependent discrimination index for survival data. Statistics in Medicine, 24, 3927–3944.
Brown, R. M., Wang, L., Coston, T. D., Krishnan, N. I., Casey, J. D., Wanderer, J. P., Ehrenfeld, J. M., Byrne, D. W., Stollings, J. L., Siew, E. D., & others. (2019). Balanced crystalloids versus saline in sepsis: a secondary analysis of the SMART clinical trial. American Journal of Respiratory and Critical Care Medicine, 200(12), 1487–1495. https://doi.org/10.1164/rccm.201903-0557OC
Chung, J., Kastner, K., Dinh, L., Goel, K., Courville, A. C., & Bengio, Y. (2015). A recurrent latent variable model for sequential data. Advances in Neural Information Processing Systems, 28.
Haider, H., Hoehn, B., Davis, S., & Greiner, R. (2020). Effective ways to build and evaluate individual survival distributions. Journal of Machine Learning Research, 21(85), 1–63. http://jmlr.org/papers/v21/18-772.html
Johnson, A., Bulgarelli, L., Pollard, T., Horng, S., Celi, L. A., & Mark, R. (2023). MIMIC-IV (version 2.2). PhysioNet. https://doi.org/10.13026/6mm1-ek67
Katzman, J. L., Shaham, U., Cloninger, A., Bates, J., Jiang, T., & Kluger, Y. (2018). DeepSurv: personalized treatment recommender system using a Cox proportional hazards deep neural network. BMC Medical Research Methodology, 18(1). https://doi.org/10.1186/s12874-018-0482-1
Kingma, D. P., & Welling, M. (2013). Auto-encoding variational Bayes. arXiv Preprint arXiv:1312.6114.
Quan, H., Sundararajan, V., Halfon, P., Fong, A., Burnand, B., Luthi, J.-C., Saunders, L. D., Beck, C. A., Feasby, T. E., & Ghali, W. A. (2005). Coding algorithms for defining comorbidities in ICD-9-CM and ICD-10 administrative data. Medical Care, 43(11), 1130–1139.
Semler, M. W., Self, W. H., Wanderer, J. P., Ehrenfeld, J. M., Wang, L., Byrne, D. W., Stollings, J. L., Kumar, A. B., Hughes, C. G., Hernandez, A., & others. (2018). Balanced crystalloids versus saline in critically ill adults. New England Journal of Medicine, 378(9), 829–839.
Smith, G. B., Redfern, O. C., Pimentel, M. A. F., Gerry, S., Collins, G. S., Malycha, J., Prytherch, D., Schmidt, P. E., & Watkinson, P. J. (2019). The National Early Warning Score 2 (NEWS2). Clinical Medicine, 19(3), 260. https://doi.org/10.7861/clinmedicine.19-3-260
Susetzky, T., Qiu, H., Braren, R., & Rueckert, D. (2025). A holistic time-aware classification model for multimodal longitudinal patient data. International Conference on Medical Image Computing and Computer-Assisted Intervention, 24–33.