XRL4T1D: A Post-hoc Explainability Framework for Reinforcement Learning in Type 1 Diabetes Management
Abstract
Type 1 diabetes (T1D) requires lifelong insulin therapy, and reinforcement learning (RL) has shown promise for automated dosing in the UVA/Padova simulator. However, the decisions of RL controllers remain difficult to interpret. We present XRL4T1D, a post-hoc explainability framework for evaluating pretrained insulin-dosing policies without retraining. Each policy uses 60 minutes of continuous glucose monitor (CGM) and administered-insulin history, sampled every 5 minutes, to recommend insulin. We use SHapley Additive exPlanations (SHAP) to compare the importance of CGM and insulin-history inputs and summarize insulin-history attributions over three 20-minute windows motivated by insulin-on-board. We assess whether these attributions correspond to policy-output sensitivity through targeted input replacement and compare temporal rankings with TimeSHAP. In all 80 patient-policy-mask-size cases, replacing the highest-attribution inputs changes the normalized insulin recommendation more than replacing the lowest-attribution or random inputs. The highest-attribution insulin-history window is also the most output-sensitive in 115 of 120 patient-policy-scenario configurations, and KernelSHAP and TimeSHAP select the same top window in 111 of 120. Applying XRL4T1D to PPO and G2P2C across 20 virtual patients, we find that both controllers rely predominantly on CGM history, especially G2P2C. However, the distribution of insulin-history importance across recent, middle, and older windows varies by cohort, explainer, and analysis settings, without a consistent separation between controllers. Global feature-attribution rankings remain stable under the tested observation corruptions. These results show why attribution fidelity, temporal reproducibility, and controller-comparison robustness should be assessed separately.
Create a lesson
Metadata
- Comments
- 23 pages, 7 figures. GenAI for Health Workshop at NeurIPS 2026
Related papers
Adopting AI Technologies without Traps: A Multi-Agent Reinforcement Learning Framework
Shared title terminologycs.AIJitong Yang, Avinash Reddy Mudireddy, Ziqing Lu et al.
Reward Blindness: A Theoretical Framework for Diagnosing Reinforcement Learning Reward Limitations in Text-to-SQL
Shared title terminologycs.AILakshmi Muraleedharan Nair, Shiqi Huang, Fangyu Lo et al.
Explainable Deep Learning for Malaria Parasite Detection and Species Differentiation in Thick Blood Smear Images: A Pilot Feasibility Study
Shared title terminologycs.AIHaimanot Bitew, Ayisheshim Almaw, Habtamu Zegeye et al.
Monitorable-by-design architectures for a post-Astra world: a compartmentalization-based approach
Shared title terminologycs.AIJake Watts, Joel Sokol
Needwise: Generation-Free Conversational Recommendation from Need-Level Typed Decisions
Shared title terminologycs.AISungchul Kim, Weixiao Huang, Mekala Raja Sekhar Reddy et al.
Habitats: A Framework for Open-Ended Evolution of Agent Objectives
Shared title terminologycs.AINicolas Bolouri, Gaya Mehenni, Daniel Toyama