TumorTwin: A python framework for patient-specific digital twins in oncology
Michael Kapteyn, Anirban Chaudhuri, Ernesto A. B. F. Lima, Graham Pash, Rafael Bravo, Karen Willcox, Thomas E. Yankeelov, David A. Hormuth
TL;DR
TumorTwin addresses the need for a portable, end-to-end digital twin framework in oncology by delivering an open-source Python package that unifies data processing, tumor growth modeling, and decision-support workflows. It introduces a modular architecture with a central PatientData object and interchangeable Model, Solver, and Optimizer components, enabled by GPU-accelerated forward and gradient computations through PyTorch. The framework implements a 3D reaction-diffusion tumor growth model with chemo- and radiotherapy effects, supports gradient-based calibration, and demonstrates feasibility with in silico HGG data (and TNBC in the appendix). This open, extensible platform enables rapid prototyping, cross-site experimentation, and image-guided predictions to inform treatment decisions, with future plans for uncertainty quantification and integration of machine learning components to enhance actionability.
Abstract
Background: Advances in the theory and methods of computational oncology have enabled accurate characterization and prediction of tumor growth and treatment response on a patient-specific basis. This capability can be integrated into a digital twin framework in which bi-directional data-flow between the physical tumor and the digital tumor facilitate dynamic model re-calibration, uncertainty quantification, and clinical decision-support via recommendation of optimal therapeutic interventions. However, many digital twin frameworks rely on bespoke implementations tailored to each disease site, modeling choice, and algorithmic implementation. Findings: We present TumorTwin, a modular software framework for initializing, updating, and leveraging patient-specific cancer tumor digital twins. TumorTwin is publicly available as a Python package, with associated documentation, datasets, and tutorials. Novel contributions include the development of a patient-data structure adaptable to different disease sites, a modular architecture to enable the composition of different data, model, solver, and optimization objects, and CPU- or GPU-parallelized implementations of forward model solves and gradient computations. We demonstrate the functionality of TumorTwin via an in silico dataset of high-grade glioma growth and response to radiation therapy. Conclusions: The TumorTwin framework enables rapid prototyping and testing of image-guided oncology digital twins. This allows researchers to systematically investigate different models, algorithms, disease sites, or treatment decisions while leveraging robust numerical and computational infrastructure.
