From continuing records to a patient “digital twin”
In intensive care, clinicians need to anticipate not only what may happen next, but also how a treatment might alter a patient's course. A patient digital twin aims to simulate an individual's changing state and the consequences of possible interventions. A new arXiv study explores a generative approach: train a model to continue an electronic health record (EHR), then use the simulated future record to make predictions.
The researchers built TWICE, a 79-million-parameter decoder-only Transformer. It was trained on ICU data from one academic health system, comprising 127,332 training patients and 1.57 billion tokens. The evaluation covered clinical prediction, similarity between generated and real records, individual trajectories, and treatment counterfactuals. The paper is described as work in progress, so its findings remain subject to further validation.
What the study found
- Prediction performance near specialized models. The team generated 50 possible futures per patient and read out 19 clinical outcomes. Without task-specific training, TWICE achieved a mean AUROC of 0.836 on held-out patients, close to 0.834 for the best of 144 supervised configurations. It did better on events that can change care within a day, but worse on death.
- More sampling helped in this setup. With training data held fixed, generating more and longer futures was more valuable than making the model 6.8 times larger. This is a result within the study's comparison, not a general rule that smaller models outperform larger ones.
- Generated records showed patient-level variation. The synthetic records closely resembled real ones, and predicted risk increased as events approached. The authors also report that the level of detail in an individual trajectory was limited by the variability present in that patient's data.
- Treatment-response evidence was mixed. Pre-specified controls showed that TWICE reproduced drug side effects and was barely affected by an inert drug. But when a treatment is intended to correct a measured value, an opposite treatment moved the forecast in a direction similar to the correct one.
That last result matters. Producing a plausible clinical trajectory, or reflecting a drug's side effects, does not establish that a model has learned the causal effects of treatment. If an intervention in the wrong direction produces a similar forecast, the model's answer to “what if we chose another treatment?” remains unreliable. AUROC measures how well predictions distinguish outcomes; it does not show that using the model improves clinical decisions.
Promise and limits
TWICE suggests that a generative EHR model can combine trajectory simulation with clinical forecasting and approach the predictive performance of task-specific systems. But the training data came from a single institution, leaving portability to other hospitals, populations, and documentation practices untested. The counterfactual weakness also argues against using it as a treatment decision tool today. Progress toward an ICU digital twin will require multi-site evaluation, rigorous causal tests, and prospective evidence on safety and clinical benefit.
Comments
Checking sign-in status...
Loading comments...