Evaluating Type-1 Diabetes Digital Twins by Decision Quality
Organizations: Department of Computer Science, Emory University · School of Medicine, Emory University
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.
Figures & tables
| Prediction accuracy | Decision quality |
|---|---|
| RMSE MARD | Spearman Regret Regret Norm |
| Component | Choice | Source |
|---|---|---|
| Simulator | simglucose (UVA/Padova), 1 min dopri5 integration | simglucose default [ 22 ] |
| CGM | Breton–Kovatchev noise model, 5 min interval 288 samples per 24 h day | simglucose GuardianRT sensor [ 22 ] |
| Subjects | 30 built-in virtual patients: 10 adults, 10 adolescents, 10 children | simglucose default [ 22 ] |
| Meals | RandomScenario , one independent draw per day (Appendix A.1 ) | simglucose default [ 22 ] |
| Bolus formula | BBController meal bolus with a correction above 150 mg/dL (Equation 1 ) | simglucose default [ 22 ] |
| Correction bolus | computed from noise-free IG rather than CGM, so delivered insulin is deterministic given the patient, meals and treatment | ours; ReplayBG [ 5 ] instead replays a fixed insulin record |
| Prediction Accuracy | Decision Quality | |||||
|---|---|---|---|---|---|---|
| Method | RMSE (mg/dL) | MARD (%) | Spearman | Regret | Regret Norm | rank |
| MCMC | (1) | (1) | ||||
| SBI | (2) | (3) | ||||
| Neural | (3) | (5) | ||||
| UKF | (4) | (4) | ||||
| Linear | (5) | (6) | ||||
| Metric | MCMC | SBI | UKF | Linear | Neural | Prior | Friedman |
|---|---|---|---|---|---|---|---|
| RMSE | 1.47 | 2.67 | 3.37 | 4.60 | 3.37 | 5.53 | |
| MARD | 1.57 | 2.83 | 3.27 | 4.63 | 3.33 | 5.37 | |
| Spearman | 1.87 | 2.57 | 3.37 | 5.27 | 4.83 | 3.10 | |
| Regret | 2.10 | 2.77 | 3.03 | 4.88 | 4.88 | 3.33 | |
| Regret Norm | 2.07 | 2.77 | 3.00 | 4.92 | 4.92 | 3.33 |
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
| Horizon | 24 h starting at 5am after a steady-state start at midnight |
|---|---|
| CGM Interval | 5 min 288 samples per test day |
| Simglucose Default RandomScenario | |
| Main Meals | breakfast / lunch / dinner at , mealtimes at (07:00, 12:00, 18:00; min) truncated to , , , amounts of (45g, 70g, 80g; g) |
| Snacks | three at , mealtimes at (09:30, 15:00, 21:30; min), amounts of (10g; g) |
| Measured | 1–6 eating occasions per day, g/day |
| MCMC | SBI | UKF | Prior | Neural | Linear | |
| Cost per patient | 8 h 18 m | 245 s | 181 s | 175 s | 2.4 s | 0.1 s |
| Metric | A vs B | (A B) | raw | Holm | significant at |
|---|---|---|---|---|---|
| RMSE | MCMC vs SBI | yes | |||
| MCMC vs UKF | yes | ||||
| MCMC vs Linear | yes | ||||
| MCMC vs Neural | yes | ||||
| MCMC vs Prior | yes | ||||
| SBI vs UKF | no |
Digital Twins
Digital twins are virtual models synchronized with real systems to support monitoring, prediction, simulation, and decision-making.
See all 253 papers