arXiv:2610.30577cs.LGOct 2026

Manuscript Offprint

arXiv:2610.30577

Evaluating Type-1 Diabetes Digital Twins by Decision Quality

Victor Li, Owen Tucker, Michael S. Hughes, Temiloluwa Prioleau, Shengpu Tang

Abstract

A digital twin (DT) for type 1 diabetes (T1D) can predict how an individual's blood glucose will respond to different insulin treatments without actually trying them. For each treatment, downstream statistics of predicted glucose trajectories, such as glycemic risk, can be computed to guide clinical decisions. However, the quality of DTs is usually measured by the accuracy of their predicted glucose trajectories, which may not reflect the quality of the downstream treatment decisions they inform. In this work, we directly evaluate DTs by this decision quality on downstream treatment ranking, i.e., whether a DT predicts glucose trajectories that can be used to rank candidate treatments as the real patient would. We present an evaluation protocol over 30 virtual patients from the FDA-accepted UVA/Padova model, each simulated under 21 different basal-bolus treatments. For each patient, a DT is fitted under one treatment and then produces glucose trajectories for the remaining 20 treatments. Our results show that prediction accuracy and decision quality disagree. A baseline that models the average patient, never seeing the individual's glucose data, has the lowest prediction accuracy of all six methods (RMSE: 63.6 mg/dL) but ranks treatments with the second-highest mean Spearman (0.766), while a black-box neural network that predicts glucose nearly twice as accurately (RMSE: 32.9 mg/dL) ranks them no better than a random ordering of the 20 treatments (0.049 Spearman). Therefore, selecting a DT based on prediction accuracy alone can prefer one that recommends treatments at chance, and decision quality must be evaluated directly rather than assumed to follow from prediction accuracy.

1 Introduction

Type 1 diabetes (T1D) is an autoimmune condition in which the body stops producing insulin, requiring lifelong insulin therapy and frequent monitoring of blood glucose [9]. Management of glucose must therefore replicate the control loop that a healthy pancreas runs, usually through a constant basal dose covering fasting needs, meal boluses proportional to carbohydrate content, and correction boluses proportional to how far glucose sits above target. In practice, this basal-bolus treatment is specified by parameters such as the basal rate, carbohydrate ratio, and correction factor [18]. For a fixed insulin formulation and delivery method, it is these patient-specific parameters that constitute a treatment in our work. Choosing the treatment well is both difficult and extremely consequential to the patient's health. The right setting differs across patients and changes with physical activity, illness, and time of day [9, 12, 18]. Continuous glucose monitoring (CGM) has improved matters considerably, but treatment selection still relies heavily on patient-specific parameters identified through an empirical loop: make an adjustment, observe prospective glucose values, and adjust again.

Preprint.

A digital twin (DT) is a computational model that acts as the virtual stand-in for the patient [15]. For T1D, it is a personalized model that predicts how the patient's blood glucose will respond to insulin and carbohydrate intake, fit from their own glucose, insulin, and meal trace recorded under the treatment they are currently on [5, 13]. Rather than testing candidate treatments directly on the patient, the DT generates simulated glucose trajectories by applying these candidate treatments to itself. Each trajectory is then scored by glycemic risk, which summarizes how far and how long glucose strays from the target range [17]. Ranking the candidates by this score can give clinicians a basis for choosing among treatment options. In other words, the DT exists to answer the counterfactual question: what would happen under new treatments?

Published works evaluate DTs for T1D by prediction accuracy: how closely the predicted glucose trajectory matches the observed one, measured by root mean squared error (RMSE) or mean absolute relative difference (MARD) [5, 13]. However, neither measures what a DT is built to do. What matters is decision quality: whether the trajectories a DT generates rank the candidate treatments in the right order [1]. In fact, clinical targets are set on glycemic outcomes such as time in range [2], so the question is whether an adjustment moves the patient in the right direction and how much better the best alternative would have been, rather than the pointwise accuracy of a glucose forecast. High prediction accuracy gives no guarantee that a DT's ranking of the candidate treatments matches the patient's own ranking [1].

In this work, we propose an evaluation protocol that scores a DT on the decisions it supports rather than solely on the trajectories it produces, and implement it as a benchmark on three published methods [5, 13, 11] and three proposed baselines. The protocol is designed for DT developers rather than for clinicians, giving evidence that a DT supports the treatment decisions a clinician would make with it and exposing DTs that predict glucose accurately while ranking treatments inaccurately. Each DT is fit to a patient's glucose trajectory under a single baseline treatment and predicts glucose under 20 counterfactual treatments. A glycemic risk kernel scores each predicted trajectory, yielding the DT's ranking over the 20 candidates. We utilize a cohort of virtual patients, so that the true ranking is obtained by running every candidate on the same patient in the simulator and applying the same kernel. Decision quality is the agreement between these rankings, measured by Spearman correlation and regret, and is reported alongside prediction accuracy for every method. Our contributions are:

• An evaluation protocol that scores a DT for T1D by how well its ranking of candidate treatments agrees with the patient’s true ranking.

• A benchmark implementing this protocol on 30 UVA/Padova virtual patients and 20 counterfactual treatments, with three published DT methods, each kept consistent with its original implementation, and three baselines.

• Evidence that the two families of metrics disagree. Methods significantly separated on prediction accuracy are not separated on decision quality, a baseline that never reads the patient’s CGM has the second-highest mean Spearman, and a black-box baseline that predicts glucose nearly twice as accurately ranks treatments at chance.