TwinWeaver: An LLM-Based Foundation Model Framework for Pan-Cancer Digital Twins
Abstract
Lay Summary
Cancer care could be more personalized if doctors could reliably forecast how a patient's disease will unfold — but real-world medical records are messy, mixing lab tests, treatments, genetic results, and diagnoses recorded at irregular intervals. Existing AI tools usually handle only a handful of variables, rely on rigid medical code lists that can't accommodate new drugs or mutations, or can't combine numerical forecasts (like predicting blood values) with event predictions (like survival or disease progression). We built TwinWeaver, a framework that rewrites a patient's medical history as plain text, so a large language model (the kind of AI behind chatbots) can read it like a story. Using this approach, we developed a model called Genie Digital Twin on records from 93,054 cancer patients across 20 cancer types. The same model forecasts future lab values, predicts clinical events, and can be extended to even explain its reasoning in everyday language. Genie Digital Twin outperforms specialized prediction tools, including on clinical trials it never saw during training. By providing accurate, transparent predictions, it could help personalize treatment decisions, accelerate drug development, and bring better forecasting to patients with rarer cancers where data is scarce.