cs.LGNov 20, 2026

TWICE: Toward a digital twin of ICU patients with a generative event model for forecasting trajectories and simulating treatment response

Authors: Zhuoyang Lyu, Yiming Li, Peter C. Hou, Pengyu Hong, Li Zhou

Organizations: Department of Biomedical Informatics, Harvard Medical School, Boston, MA, USA · Division of General Internal Medicine and Primary Care, Department of Medicine, Brigham and Women’s Hospital, Boston, MA, USA · Department of Medicine, Harvard Medical School, Boston, MA, USA · Division of Emergency Critical Care Medicine, Department of Emergency Medicine, Brigham and Women’s Hospital, Boston, MA, USA · 

Abstract

A digital twin of a patient in intensive care would forecast the patient's course and what a treatment would change. Generative event models, trained to continue a patient's electronic health record (EHR), have been proposed as a path toward such twins. We trained TWICE, a 79M-parameter decoder-only transformer, on the ICU records of one academic health system (127,332 training patients and 1.57 billion tokens). We evaluated it on clinical prediction tasks, generation fidelity, individual trajectories and counterfactual validation. Reading 19 clinical outcomes off 50 simulated futures, with no task-specific training, TWICE matched the best of 144 supervised configurations on held-out patients (mean AUROC 0.836 vs. 0.834). It led on events that change care within a day and trailed on death. With the training data fixed, more and longer simulated futures were worth more than a 6.8-fold larger model. Its generated records matched real ones closely and were as specific to each patient as its own variability allowed. Its predicted risk rose as events approached. Pre-specified controls showed that it reproduced the side effects of drugs and was barely moved by an inert drug. On the values that treatments are given to correct, however, an opposite treatment moved its forecasts like the right one. TWICE forecasts ICU events about as well as task-specific models, and we see it as a step toward a digital twin of the ICU patient.

Figures & tables

Appendix figures & tables18 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. ICare-DT: a digital twin for continuous forecasting of intensive care patients

    Nov 6, 2026Yanke Li, Yahang Qi, Yumi Kim +1Digital TwinsLongitudinal EHR Modeling

  2. Foresight-England: Development of a National-Scale Generative AI Model of Electronic Health Records for Medical Event Prediction across the COVID-19 Pandemic

    Aug 17, 2026Simon Ellershaw, Christopher Tomlinson, Zeljko Kraljevic +6EHR Foundation ModelsNext-Event Prediction

  3. Marrying Generative Model of Healthcare Events with Digital Twin of Social Determinants of Health for Disease Reasoning

    May 10, 2026Ziquan Wei, Tingting Dan, Guorong WuHealthcareDigital Twins