Related Experiment Video
Updated: Oct 9, 2026

Computational Reconstruction of Pancreatic Islets as a Tool for Structural and Functional Analysis
Published on: March 9, 2022
Retrieval-Augmented Simulation for Interpreting Probabilistic Digital Twins in Type 1 Diabetes
Omer Mujahid1, Ivan Contreras1, Aleix Beneyto1
1Modeling and Intelligent Control Engineering Laboratory, Institut d'Informàtica i Aplicacions, Universitat de Girona, Girona, Spain.
Background:
Personalized digital twins for type 1 diabetes (T1D) can simulate future glucose responses under different therapeutic conditions, but their probabilistic outputs require structured interpretation before supporting clinician-facing reasoning. We introduce retrieval-augmented simulation (RAS), a modular framework connecting probabilistic digital-twin simulation with guideline-grounded report generation.
Methods:
Retrieval-augmented simulation summarizes simulated glucose trajectories, converts them into structured clinical descriptors, retrieves relevant guideline evidence, and generates uncertainty-aware reports for clinician review. We evaluated RAS using data from 35 individuals with T1D in a controlled ablation study involving 2 locally hosted large language models (LLMs) (LLaMA 3.1:8b and Qwen 3:8b). Two independent LLM-based evaluators, GPT-5.5 Thinking and Kimi 2.6 Thinking, assessed report quality using a standardized rubric.
Results:
Structured clinical descriptors were essential for guideline selection: their removal substantially altered the retrieved evidence, demonstrating that qualitative clinical framing influenced evidence selection more strongly than numerical values alone. For LLaMA, the full RAS pipeline achieved the strongest overall performance, maintaining high numerical faithfulness (NumCov: ) and consistent guideline coupling. In contrast, Qwen exhibited substantial model-specific safety risks and frequently distorted simulation-derived numerical values (NumCov: [Formula: see text]). Directional bias analysis showed that Qwen systematically under-reported time in range by a mean of percentage points and over-reported time below range, thereby inflating hypoglycemia risk. These safety findings were consistent across both independent evaluators, with a mean score difference of points.
Conclusion:
Retrieval-augmented simulation provides a reproducible framework for the expert-supervised interpretation of digital-twin simulations. However, aggregate framework scores alone are insufficient for clinical validation. Downstream language models must be rigorously evaluated for numerical faithfulness and directional bias to prevent unsafe, hallucinated clinical narratives.
Related Concept Videos
Type I Diabetes I: Introduction
Type I Diabetes II: Pathophysiology
Type II Diabetes I: Introduction
Type II Diabetes II: Pathophysiology
Type II Diabetes Mellitus III: Clinical Manifestations and Diagnosis
Type I Diabetes III: Clinical Manifestations