XRL4T1D: A Post-hoc Explainability Framework for Reinforcement Learning in Type 1 Diabetes Management
Summary
XRL4T1D is a post-hoc explainability framework that uses SHAP-based attributions to interpret pretrained RL insulin-dosing policies for Type 1 Diabetes without retraining, evaluated across 20 virtual patients with PPO and G2P2C controllers.
View Cached Full Text
Cached at: 11/26/26, 09:26 AM
# XRL4T1D: A Post-hoc Explainability Framework for Reinforcement Learning in Type 1 Diabetes Management
Source: [https://arxiv.org/html/2611.31498](https://arxiv.org/html/2611.31498)
Malay PhadkeAffiliation:Sardar Patel Institute of TechnologyAffiliation:Mumbai, IndiaEmail:[malay\.phadke@spit\.ac\.in](mailto:)Chirath HettiarachchiAffiliation:Australian National UniversityAffiliation:Canberra, AustraliaEmail:[chirath\.hettiarachchi@anu\.edu\.au](mailto:)
###### Abstract
Type 1 diabetes \(T1D\) requires lifelong insulin therapy to maintain safe glucose levels\. Reinforcement learning \(RL\) has shown promise for automated insulin dosing in FDA\-acceptedin\-silicostudies using the UVA/Padova simulator, but these policies remain difficult to interpret in a safety\-critical setting\. Aggregate glucose\-control metrics describe how well a controller performs, but not how it uses recent glucose and insulin history to determine each dose\. We present XRL4T1D, a post\-hoc explainability framework for evaluating pretrained RL insulin\-dosing policies without retraining\. Each policy maps a 60\-min history of continuous glucose monitor \(CGM\) and administered\-insulin measurements, sampled every 5 min, to the next insulin recommendation\. Using SHapley Additive exPlanations \(SHAP\), we estimate how strongly each policy depends on recent CGM and insulin\-history inputs\. We first compare the relative importance of the two input channels and then summarize the insulin\-history contribution over three 20\-min windows motivated by the clinical concept of insulin\-on\-board\. We then evaluate whether the attributions reflect policy\-output sensitivity under targeted input replacement\. Across all 80 tested patient–policy–mask\-size cases, replacing the inputs with the largest absolute attributions changes the normalized insulin recommendation more than replacing either the lowest\-attribution or randomly selected inputs\. At the temporal level, the highest\-attribution insulin\-history window is also the most output\-sensitive under direct window replacement in 115/120 patient–policy–scenario configurations\. KernelSHAP and TimeSHAP identify the same highest\-attribution temporal window in 111/120 configurations\. We then apply the framework to PPO and G2P2C as case\-study RL controllers across 20 virtual patients\. Both policies rely predominantly on CGM history, with this dependence particularly strong for G2P2C\. Within the smaller insulin\-history contribution, however, the recent–middle–older profile is not consistently different between the two controllers and varies across cohorts, explainers, and explanation settings\. In contrast, the global attribution rankings remain highly stable under the tested observation corruptions\. These findings show that three questions should be considered separately when using post\-hoc explanations to evaluate clinical policies: whether highly ranked inputs actually affect the policy output, whether the temporal ordering is reproducible, and whether finer controller comparisons remain stable across analysis choices\.
## 1Introduction
Type 1 diabetes \(T1D\) requires lifelong insulin therapy to maintain safe glucose levels\. Automated insulin delivery systems use continuous glucose monitor \(CGM\) measurements to adjust insulin dosing, but current systems still require substantial user input and must operate under substantial physiological variability\. Reinforcement learning \(RL\) offers a promising route toward more autonomous insulin dosing, and many RL controllers have been developed and evaluated in the UVA/Padova T1D simulator, an FDA\-accepted physiological simulation environment that enables preclinical evaluation without risk to patients[Atkinson et al\. \(2014\)](https://arxiv.org/html/2611.31498#bib.bib1);[Brown et al\. \(2019\)](https://arxiv.org/html/2611.31498#bib.bib2);[Breton et al\. \(2020\)](https://arxiv.org/html/2611.31498#bib.bib3);[Visentin et al\. \(2014\)](https://arxiv.org/html/2611.31498#bib.bib8);[Xie \(2018\)](https://arxiv.org/html/2611.31498#bib.bib9)\.
Automated insulin controllers are usually compared using clinical glycemic outcomes such as time in range \(TIR\)\. These metrics are essential for evaluating glucose control, but they do not reveal how a controller arrives at an individual dosing decision\. Two RL controllers \(policies\) can therefore achieve similar aggregate outcomes while relying on different parts of the same physiological history[Battelino et al\. \(2019\)](https://arxiv.org/html/2611.31498#bib.bib20)\. This distinction is important for safety\-critical clinical AI: beyond asking whether a controller performs well, we would also like to know which glucose and insulin measurements its recommendations depend on, whether the same conclusions hold across clinically relevant settings, and whether the resulting explanations remain stable when observations are noisy or incomplete\.
The policies studied here operate on the same longitudinal state representation\. Every five minutes, each policy receives 12 CGM measurements and 12 administered\-insulin values sampled at five\-minute intervals, representing the preceding 60 minutes, and outputs the insulin recommendation for the next five\-minute interval\. Thus, each decision depends on 24 historical inputs: 12 describing recent glucose and 12 describing recent insulin delivery\. We study how the importance assigned to these inputs varies across preprandial, early\- and late\-postprandial, and nocturnal periods, as well as across patient cohorts, meal scenarios, and simulated sensor perturbations\. These contexts are used to evaluate and interpret the policy’s dependence on its input history; they are not additional inputs to the policies\.
Post\-hoc explanation offers one way to examine this dependence\. We use SHapley Additive exPlanations \(SHAP\)[Lundberg and Lee \(2017\)](https://arxiv.org/html/2611.31498#bib.bib17)to estimate how strongly each historical input contributes to a policy’s insulin recommendation\. We first compare how much importance the policy assigns to CGM history versus administered\-insulin history\. Within the insulin\-history contribution, we then summarize the 12 temporal lags into recent \(0–20 min\), middle \(20–40 min\), and older \(40–60 min\) windows\. This temporal summary is motivated by the clinical concept of insulin\-on\-board \(IOB\), which describes the continuing activity of previously administered insulin, but our measure reflects how the policy uses its recorded one\-hour insulin history rather than estimating pharmacokinetic residual insulin\.
SHAP values alone, however, are not sufficient evidence that a highlighted input meaningfully affects the policy output\. Adjacent temporal measurements are correlated, and an explanation can appear plausible without accurately reflecting policy sensitivity\. We therefore test SHAP importance against policy\-output sensitivity in three ways: individual\-input replacement, direct replacement of each 20\-min insulin\-history window, and comparison with TimeSHAP, a sequential Shapley\-based explainer[Bento et al\. \(2021\)](https://arxiv.org/html/2611.31498#bib.bib38)\. We apply this framework to two publicly available pretrained controllers, PPO[Hettiarachchi et al\. \(2022a\)](https://arxiv.org/html/2611.31498#bib.bib19)and G2P2C[Hettiarachchi et al\. \(2024\)](https://arxiv.org/html/2611.31498#bib.bib7), across 20 virtual patients\. These controllers serve as a case study for evaluating not only whether the explanation reflects policy\-output sensitivity, but also whether the resulting conclusions remain stable across clinically relevant settings and reasonable explanation choices\.
Both controllers rely predominantly on CGM history, particularly G2P2C\. Within insulin history, the highest\-ranked temporal window usually agrees with direct policy\-output sensitivity, but the exact recent–middle–older profile and the PPO–G2P2C comparison vary across patient cohorts and explanation methods\. In contrast, the overall feature rankings remain highly stable under the tested observation perturbations\. Figure[1](https://arxiv.org/html/2611.31498#S1.F1)summarizes the workflow\.
Figure 1:Overview of XRL4T1D\. Every five minutes, an RL insulin\-dosing policy receives a 60\-minute history of CGM and administered\-insulin measurements and produces the insulin recommendation for the next five\-minute interval\. SHAP attributes the recommendation to these historical inputs; insulin\-history attributions are summarized over three 20\-minute windows and checked using feature masking, direct window replacement, and TimeSHAP\.Our contributions are threefold\.First, we develop and validate a post\-hoc explanation framework for pretrained insulin\-dosing policies\.We test whether inputs identified as important by SHAP produce larger changes in the policy output when replaced, both at the individual\-feature level and after grouping insulin history into 20\-min temporal windows\.
Second, we introduce a clinically motivated temporal summary of how each policy uses its insulin history\.The summary separates recent \(0–20 min\), middle \(20–40 min\), and older \(40–60 min\) portions of the observed hour and is interpreted together with the overall balance between CGM and insulin\-history importance\.
Third, we evaluate how reliable these conclusions are across repeated simulations, glycemic contexts, observation perturbations, model checkpoints, and explanation settings\.Using PPO and G2P2C as case\-study controllers, we find that individual\-feature rankings and coarse temporal ordering are generally reliable, while finer controller comparisons can depend on patient cohort, explainer, and analysis settings\. This distinction is important when using post\-hoc explanations for preclinical policy comparison and monitoring\.
## 2Related Work
RL insulin control has progressed from early and deep\-RL formulations to recurrent, offline, safe\-control, ensemble, and planning\-based systems, with most development conducted in the UVA/Padova simulator[Ngo et al\. \(2018\)](https://arxiv.org/html/2611.31498#bib.bib21);[Fox et al\. \(2020\)](https://arxiv.org/html/2611.31498#bib.bib4);[Zhu et al\. \(2021\)](https://arxiv.org/html/2611.31498#bib.bib5);[Viroonluecha et al\. \(2022\)](https://arxiv.org/html/2611.31498#bib.bib10);[Emerson et al\. \(2023\)](https://arxiv.org/html/2611.31498#bib.bib6);[Visentin et al\. \(2014\)](https://arxiv.org/html/2611.31498#bib.bib8);[Xie \(2018\)](https://arxiv.org/html/2611.31498#bib.bib9)\. G2P2C is relevant here because it augments PPO with glucose prediction and short\-horizon planning in a fully closed\-loop setting[Hettiarachchi et al\. \(2024\)](https://arxiv.org/html/2611.31498#bib.bib7)\. This diversity makes outcome\-only comparison incomplete: policies can reach similar aggregate metrics through different input sensitivities\.
Explainability for sequential decision systems includes saliency, perturbation, attribution, policy summarization, and counterfactual approaches[Puiutta and Veith \(2020\)](https://arxiv.org/html/2611.31498#bib.bib11);[Heuillet et al\. \(2020\)](https://arxiv.org/html/2611.31498#bib.bib12);[Milani et al\. \(2024\)](https://arxiv.org/html/2611.31498#bib.bib13);[Greydanus et al\. \(2018\)](https://arxiv.org/html/2611.31498#bib.bib14);[Juozapaitis et al\. \(2019\)](https://arxiv.org/html/2611.31498#bib.bib15);[Dong et al\. \(2025\)](https://arxiv.org/html/2611.31498#bib.bib16)\. SHAP provides model\-agnostic feature attributions[Lundberg and Lee \(2017\)](https://arxiv.org/html/2611.31498#bib.bib17), while TimeSHAP adapts Shapley estimation to sequential inputs[Bento et al\. \(2021\)](https://arxiv.org/html/2611.31498#bib.bib38)\. In a temporal attribution framework, however, cross\-run stability or agreement between explainers does not alone show that highly ranked features affect the policy output; controlled masking is also needed\.
Diabetes explainability has often focused on prediction rather than closed\-loop control[Tasin et al\. \(2023\)](https://arxiv.org/html/2611.31498#bib.bib23);[Srinivasu et al\. \(2024\)](https://arxiv.org/html/2611.31498#bib.bib24);[Alredaini et al\. \(2026\)](https://arxiv.org/html/2611.31498#bib.bib25)\. Interpretability has also been explored in reinforcement\-learning\-based glucose control, including controller\-specific designs incorporating attention or attribution[Lim et al\. \(2021\)](https://arxiv.org/html/2611.31498#bib.bib22);[Adjevi et al\. \(2026\)](https://arxiv.org/html/2611.31498#bib.bib26)\. XRL4T1D differs primarily in its evaluation objective rather than its attribution algorithm: it examines pretrained policies without retraining and combines input\-channel attribution with a clinically motivated temporal summary of administered\-insulin history\. Importantly, it evaluates whether the resulting feature and temporal\-window rankings correspond to measured policy\-output sensitivity under targeted replacement\. This distinguishes the proposed workflow from reporting attribution magnitudes alone, while enabling systematic assessment of explanation stability across patients, scenarios, policy checkpoints, and explanation settings\.
Recent work has also explored LLM\-based insulin control by distilling an RL dosing policy into fine\-tuned language models that reproduce dosing decisions and generate natural\-language rationales[Sarkar \(2025\)](https://arxiv.org/html/2611.31498#bib.bib39)\. Our setting addresses a different question: XRL4T1D leaves the pretrained RL controller unchanged and tests whether post\-hoc importance assigned to its physiological inputs corresponds to measurable policy\-output sensitivity\. This separates explanation of an existing controller from rationale generation by a language\-model surrogate\.
## 3Methodology
### 3\.1Experiment Setup and Evaluation Metrics
#### Simulation environment\.
We evaluate the policies in the FDA\-accepted UVA/Padova Type 1 Diabetes simulator, accessed throughSimglucose[Visentin et al\. \(2014\)](https://arxiv.org/html/2611.31498#bib.bib8);[Xie \(2018\)](https://arxiv.org/html/2611.31498#bib.bib9)\. The simulator models patient\-specific glucose–insulin dynamics under exogenous insulin delivery and meal disturbances, enabling closed\-loop evaluation across virtual subjects\. We use 20 virtual patients \(10 adolescents and 10 adults\)\. Each evaluation is a 24\-h closed\-loop simulation comprising 288 five\-minute decision steps\. We consider one stochastic baseline meal protocol and two fixed meal protocols to evaluate the controllers under distinct but controlled meal disturbances; complete scenario and retrospective phase definitions are provided in Appendix[B](https://arxiv.org/html/2611.31498#A2)\. Meal timing affects the simulated glucose trajectory but is used only retrospectively for analysis and is not provided to the policies\.
#### Reinforcement learning policies for glucose regulation\.
We compare two publicly available pretrained controllers with a common input–output interface\. PPO is a standard policy\-gradient RL algorithm[Hettiarachchi et al\. \(2022a\)](https://arxiv.org/html/2611.31498#bib.bib19), whereas G2P2C is a PPO\-based controller that additionally incorporates glucose\-prediction and short\-horizon planning components[Hettiarachchi et al\. \(2024\)](https://arxiv.org/html/2611.31498#bib.bib7)\. Our comparison does not isolate the contribution of either added component\.
At each 5\-min decision timett, both policies map the statests\_\{t\}to a scalar insulin recommendation,μt=πθ\(st\)∈𝒜\\mu\_\{t\}=\\pi\_\{\\theta\}\(s\_\{t\}\)\\in\\mathcal\{A\}, where𝒜⊂ℝ\\mathcal\{A\}\\subset\\mathbb\{R\}is the normalized action space[Hettiarachchi et al\. \(2022b\)](https://arxiv.org/html/2611.31498#bib.bib36)\. The policy state contains 12 paired CGM and administered\-insulin measurements spanning the preceding 60 min\. In the stored flattened representation, the two channels are interleaved in temporal order:
𝐱t=\[Gt−55,It−55,Gt−50,It−50,…,Gt,It\]∈ℝ24\.\\mathbf\{x\}\_\{t\}=\[G\_\{t\-55\},I\_\{t\-55\},G\_\{t\-50\},I\_\{t\-50\},\\ldots,G\_\{t\},I\_\{t\}\]\\in\\mathbb\{R\}^\{24\}\.Here,Gt−5jG\_\{t\-5j\}andIt−5jI\_\{t\-5j\}denote the CGM and administered\-insulin measurements5j5jmin before the current decision\. Channel\-wise analyses explicitly extract the corresponding CGM and insulin coordinates from this interleaved representation before temporal aggregation\. We use the final trained patient\-specific policies except in the checkpoint analysis\.
#### Clinical outcome metrics\.
We report time in range \(TIR; 70–180 mg/dL\), time below range \(TBR; below 70 mg/dL\), time above range \(TAR; above 180 mg/dL\), and mean CGM using consensus thresholds[Battelino et al\. \(2019\)](https://arxiv.org/html/2611.31498#bib.bib20)\. These outcomes describe glucose control, whereas the attribution analyses below characterize policy input dependence\. A more comprehensive set of clinical outcome metrics is reported in Appendix[A](https://arxiv.org/html/2611.31498#A1), Table[2](https://arxiv.org/html/2611.31498#A1.T2)\.
### 3\.2KernelSHAP Explanation
We apply model\-agnostic KernelSHAP to the policy outputμt\\mu\_\{t\}so that the same explanation procedure can be used for both controllers[Lundberg and Lee \(2017\)](https://arxiv.org/html/2611.31498#bib.bib17);[Štrumbelj and Kononenko \(2014\)](https://arxiv.org/html/2611.31498#bib.bib18)\. KernelSHAP estimates the contribution of each input by comparing the current state with a set of reference states, referred to as the background set, while evaluating different subsets of input features, referred to as coalitions\. We use 200 background states and 1,024 sampled coalitions by default\. Each SHAP valueϕi\\phi\_\{i\}measures the contribution assigned to featureiirelative to the empirical background distribution\. Because adjacent CGM measurements and adjacent administered\-insulin measurements are temporally correlated, these replacements can create input combinations that are unlikely under the observed data distribution\. We therefore interpret SHAP values as post\-hoc feature\-importance scores rather than causal effects, and explicitly test whether their rankings correspond to policy\-output sensitivity in Sec\.[3\.4](https://arxiv.org/html/2611.31498#S3.SS4)\.
#### Global and local explanations\.
Local SHAP values describe the feature contributions for an individual dosing decision\. Global feature importance is computed as the mean absolute SHAP value overNNexplained decisions:
Φiglobal=1N∑n=1N\|ϕi\(n\)\|\.\\Phi\_\{i\}^\{\\mathrm\{global\}\}=\\frac\{1\}\{N\}\\sum\_\{n=1\}^\{N\}\|\\phi\_\{i\}^\{\(n\)\}\|\.\(1\)
### 3\.3Clinically Inspired Temporal Insulin\-Attribution Profile
Insulin\-on\-board \(IOB\) is a clinical concept used in insulin therapy to describe insulin from previous doses that remains active in the body\. Accounting for this residual insulin is important when determining subsequent insulin delivery, because delivering additional insulin while substantial prior insulin remains active can increase the risk of insulin stacking and hypoglycemia[Zisser et al\. \(2008\)](https://arxiv.org/html/2611.31498#bib.bib34);[Walsh et al\. \(2014\)](https://arxiv.org/html/2611.31498#bib.bib35)\. Motivated by this clinical view of recent versus more distal insulin exposure, we construct a temporal summary of how the policy uses its observed insulin history\.
The policy observes 60 min of CGM and administered\-insulin history, represented by 12 measurements from each channel sampled at 5\-min intervals\. We first quantify how the total absolute SHAP importance is divided between the two input channels\. Let
ΦCGM=∑j=011\|ϕGt−5j\|,ΦINS=∑j=011\|ϕIt−5j\|\.\\Phi\_\{\\mathrm\{CGM\}\}=\\sum\_\{j=0\}^\{11\}\\left\|\\phi\_\{G\_\{t\-5j\}\}\\right\|,\\qquad\\Phi\_\{\\mathrm\{INS\}\}=\\sum\_\{j=0\}^\{11\}\\left\|\\phi\_\{I\_\{t\-5j\}\}\\right\|\.We define the relative insulin\-history importance as
rINS=ΦINSΦCGM\+ΦINS,r\_\{\\mathrm\{INS\}\}=\\frac\{\\Phi\_\{\\mathrm\{INS\}\}\}\{\\Phi\_\{\\mathrm\{CGM\}\}\+\\Phi\_\{\\mathrm\{INS\}\}\},\(2\)with
rCGM=1−rINS\.r\_\{\\mathrm\{CGM\}\}=1\-r\_\{\\mathrm\{INS\}\}\.These quantities describe the relative importance assigned to the CGM and administered\-insulin histories over the full 24\-dimensional policy state\.
We then examine how the insulin\-history contribution is distributed over time\. Rather than interpret the 12 insulin lags separately, we aggregate their absolute SHAP values into three non\-overlapping 20\-min windows: recent \(00–2020min\), middle \(2020–4040min\), and older \(4040–6060min\)\. We define
𝒦1=\{0,1,2,3\},𝒦2=\{4,5,6,7\},𝒦3=\{8,9,10,11\},\\mathcal\{K\}\_\{1\}=\\\{0,1,2,3\\\},\\qquad\\mathcal\{K\}\_\{2\}=\\\{4,5,6,7\\\},\\qquad\\mathcal\{K\}\_\{3\}=\\\{8,9,10,11\\\},corresponding to the recent, middle, and older windows, respectively\. ForΦINS\>0\\Phi\_\{\\mathrm\{INS\}\}\>0, the normalized importance assigned to windowrris
wr=∑j∈𝒦r\|ϕIt−5j\|ΦINS\.w\_\{r\}=\\frac\{\\sum\_\{j\\in\\mathcal\{K\}\_\{r\}\}\\left\|\\phi\_\{I\_\{t\-5j\}\}\\right\|\}\{\\Phi\_\{\\mathrm\{INS\}\}\}\.\(3\)The three window fractions sum to one\. Eachwrw\_\{r\}therefore represents the fraction of*insulin\-history*importance assigned to that temporal window, rather than the fraction of total importance across all 24 policy inputs\.
We refer to this clinically inspired temporal summary as*Attribution\-based Insulin\-on\-Board*\(A\-IOB\)\. A\-IOB is not a pharmacokinetic estimate of physiologically active insulin and should not be interpreted as conventional clinical IOB\. Instead, it summarizes how the feature importance assigned to the policy’s recorded insulin history is distributed across the preceding 60 min[Zisser et al\. \(2008\)](https://arxiv.org/html/2611.31498#bib.bib34);[Walsh et al\. \(2014\)](https://arxiv.org/html/2611.31498#bib.bib35)\. A\-IOB therefore provides a clinically motivated temporal summary of the insulin\-history inputs associated with the policy output\.
For policy comparison, we report the CGM\-versus\-insulin importance split \(rCGMr\_\{\\mathrm\{CGM\}\}andrINSr\_\{\\mathrm\{INS\}\}\) together with the three\-window A\-IOB profile by cohort, glycemic phase, and meal scenario alongside conventional glycemic outcomes\. Patient\-level associations with insulin\-to\-carbohydrate ratio, insulin sensitivity factor, and total daily insulin are exploratory and are therefore reported separately in Appendix[C](https://arxiv.org/html/2611.31498#A3)\.
An important distinction is that the A\-IOB fractions are conditional on the total attribution assigned to administered\-insulin history\. For example, a recent\-window fraction of 0\.6 indicates that 60% of the insulin\-history attribution falls within the most recent 20 minutes, not that this window contributes 60% of the policy’s total attribution or represents 60% of physiologically active insulin\. When overall insulin\-history importance is small, normalized temporal fractions may exhibit substantial variation despite limited absolute attribution\. We therefore interpret A\-IOB jointly with the CGM\-versus\-insulin importance split, as illustrated in Fig\.[3](https://arxiv.org/html/2611.31498#S4.F3), and do not treat it as a pharmacokinetic estimate of insulin\-on\-board\.
### 3\.4Policy\-Output and Explainer Agreement
#### Feature\-level replacement\.
We first test whether the SHAP ranking of individual policy inputs reflects policy\-output sensitivity\. At each insulin\-dosing decision, the policy state contains 24 scalar input features: 12 CGM measurements and 12 administered\-insulin measurements from the preceding 60 min\. We rank these 24 individual inputs by decreasing absolute attribution magnitude\|ϕi\|\|\\phi\_\{i\}\|\.
For a mask sizem∈\{4,8\}m\\in\\\{4,8\\\}, we separately replace themminputs with the largest attribution magnitudes \(*top\-mm*\) and themminputs with the smallest attribution magnitudes \(*bottom\-mm*\) by their corresponding empirical background means, and measure the resulting absolute change in the normalized insulin recommendation\. Thus, bottom\-mmrefers only to themmleast\-attributed individual inputs, not to all inputs outside the top\-mmset\. As a descriptive reference, we also replacemmrandomly selected individual inputs using a fixed random seed\. If the feature\-level attribution ranking is informative, replacing top\-ranked inputs should produce a larger policy\-output change than replacing bottom\-ranked inputs\.
Results are summarized over 80 patient–policy–mask\-size cases \(2020patients×\\times22policies×\\times22values ofmm\); these cases are not treated as independent subjects\.
#### Temporal\-window replacement\.
We next test whether the three\-window insulin\-history summary reflects policy\-output sensitivity\. We evaluate 120 patient–policy–meal\-scenario configurations \(2020patients×\\times22policies×\\times33meal scenarios\)\. For each configuration, we first extract the insulin\-history coordinates from the interleaved policy state\. We then replace the four insulin measurements belonging to one 20\-min window at a time with their corresponding per\-lag background means, while holding all CGM measurements and the remaining insulin\-history measurements fixed\. We compare the three windows by absolute policy\-output change and by SHAP importance using Spearmanρ\\rho, and separately report whether the highest\-ranked window is the same under both measures\.
#### Sequential\-explainer agreement\.
To test whether the temporal ordering depends on applying KernelSHAP to a flattened state representation, we additionally apply TimeSHAP[Bento et al\. \(2021\)](https://arxiv.org/html/2611.31498#bib.bib38)to the insulin\-history channel for the same 120 configurations\. The 12 insulin measurements are extracted from the interleaved policy state and arranged chronologically from oldest to newest to form the 12\-event sequence, while the CGM inputs are held fixed\. The reference is the mean insulin\-history sequence from the corresponding 24\-h evaluation simulation\. TimeSHAP event scores are aggregated into the same recent, middle, and older windows, and their ordering is compared with KernelSHAP using Spearmanρ\\rhoand top\-window agreement\.
### 3\.5Explanation Reproducibility and Sensitivity Analyses
#### Simulation stability\.
We repeat the stochastic baseline protocol across five random seeds to assess how the CGM\-versus\-insulin importance split and the within\-insulin temporal profile vary across simulated trajectories\.
#### Observation\-corruption stability\.
We test explanation stability under two counterfactual CGM corruptions: additive Gaussian noise \(σ=10\\sigma=10mg/dL\) and10%10\\%randomly missing readings with forward\-fill imputation\. Clean observations continue to determine the policy action and simulated trajectory; the corrupted observations are maintained only in a separate history buffer used for explanation\. For every comparison, the clean and corrupted histories are recorded at the same decision time before the subsequent environment transition, ensuring a paired comparison of the two explanations\. This experiment therefore measures explanation stability rather than closed\-loop controller robustness\. For each patient and policy, we compute the 24\-dimensional global feature\-importance vector for the paired clean and corrupted histories using Eq\.[1](https://arxiv.org/html/2611.31498#S3.E1), and compare their feature rankings using Spearmanρ\\rho\.
#### Policy checkpoint sensitivity\.
To assess whether the framework can track changes across model versions, we evaluate all 20 patients per policy at episodes 50, 100, 150, and 195\. For each checkpoint, we compute the 24\-dimensional global feature\-importance vector and compare its ranking with that of the final trained policy\. We additionally track the three\-window insulin\-history profile across checkpoints\.
#### KernelSHAP parameter sensitivity analysis\.
We evaluate eight representative patient–policy pairs, comprising four patients evaluated under both PPO and G2P2C\. We vary the background\-set size over\{50,100,200,500\}\\\{50,100,200,500\\\}and the number of sampled coalitions over\{100,256,512,1024,2048\}\\\{100,256,512,1024,2048\\\}, yielding 20 explanation settings per pair\. We examine how the resulting within\-insulin temporal summaries vary across these settings\. At the default setting, 95% intervals are estimated using 200 bootstrap resamples[Efron \(1979\)](https://arxiv.org/html/2611.31498#bib.bib37)\. Complete results are reported in Appendix[D\.4](https://arxiv.org/html/2611.31498#A4.SS4), Table[11](https://arxiv.org/html/2611.31498#A4.T11)\.
## 4Results
#### Policy\-Output Sensitivity of SHAP Rankings\.
We first test the SHAP ranking at the individual\-input level\. At each decision, the 24 scalar policy inputs are ranked by absolute SHAP magnitude\|ϕi\|\|\\phi\_\{i\}\|\. For a mask sizem∈\{4,8\}m\\in\\\{4,8\\\}, replacing themmhighest\-ranked inputs produces a larger absolute change in the normalized insulin recommendation than replacing either themmlowest\-ranked ormmrandomly selected inputs in all 80 patient–policy–mask\-size cases \(2020patients×\\times22policies×\\times22values ofmm\)\. Pooled mean absolute output changes are 0\.01090 for top\-mm, 0\.00391 for random\-mm, and 0\.000086 for bottom\-mmreplacement \(Fig\.[2](https://arxiv.org/html/2611.31498#S4.F2)A\)\. We treat the 80/80 ordering as descriptive because each patient contributes both policies and both mask sizes\.
This feature\-level analysis is distinct from the temporal\-window analysis below: here, we rank and replace individual scalar inputs, whereas the window\-level analysis aggregates the 12 insulin\-history attributions into three 20\-min windows and compares the ranking of those three windows\.
Two complementary checks evaluate the temporal summary\. Across 120 patient–policy–meal\-scenario configurations \(2020patients×\\times22policies×\\times33meal scenarios\), the highest\-ranked insulin\-history window under KernelSHAP is also the window whose replacement produces the largest policy\-output change in 115/120 cases\. Considering the ordering of all three windows, the mean Spearman correlation isρ=0\.913\\rho=0\.913\(median1\.01\.0\)\. TimeSHAP identifies the same highest\-ranked window as KernelSHAP in 111/120 configurations, with mean three\-window rank correlationρ=0\.879\\rho=0\.879\(Fig\.[2](https://arxiv.org/html/2611.31498#S4.F2)B–C\)\. Thus, the coarse temporal ordering is generally reproducible, although neither comparison is exact and the resulting profile should not be interpreted as causal\.
Figure 2:Policy\-output validation of the temporal attribution framework\.A:Feature\-level replacement results pooled across PPO and G2P2C \(2020patients×\\times22policies×\\times22mask sizes\)\. Replacing the highest\-attribution individual inputs produces the largest mean absolute change in the normalized insulin recommendation, while replacing the lowest\-attribution inputs produces the smallest change\.B:Temporal\-window agreement pooled across PPO and G2P2C over120120patient–policy–meal\-scenario configurations \(2020patients×\\times22policies×\\times33scenarios\)\. Bars show the fraction of configurations in which the highest\-attribution window agrees with direct window replacement or TimeSHAP\.C:Recent\-window importance estimated by KernelSHAP and TimeSHAP for each controller\. The methods give nearly identical values for PPO but differ more substantially for G2P2C, showing that agreement on the highest\-ranked window does not imply agreement in the exact profile magnitude\.
#### Policy Input\-Dependence Profiles\.
The controller comparison is clearer at the input\-channel level than in the normalized insulin\-history profile\. Both policies assign most of their total feature importance to CGM history, with this dependence particularly strong for G2P2C\. Within the insulin\-history channel, the pooled KernelSHAP profiles over the 120 patient–policy–meal\-scenario configurations are similar: the recent window accounts for 54\.15% of insulin\-history importance for G2P2C and 55\.72% for PPO, with the remaining importance distributed across the middle and older windows \(Fig\.[3](https://arxiv.org/html/2611.31498#S4.F3)\)\. The temporal profile therefore does not support a general claim that one controller consistently places greater importance on recent insulin history\.
Figure 3:Policy input\-dependence profiles across 120 patient–policy–meal\-scenario configurations\.A:Mean share of total absolute KernelSHAP importance assigned to CGM and administered\-insulin history\. Both controllers are CGM\-dominated, particularly G2P2C\.B:Mean distribution of insulin\-history importance across recent \(0–20 min\), middle \(20–40 min\), and older \(40–60 min\) windows\. Each temporal profile is normalized within the insulin\-history channel before averaging\.The five\-seed analysis shows that the within\-insulin temporal profile varies more with cohort and phase than with controller identity: G2P2C has the larger recent\-window fraction in only one of eight phase–cohort cells\. The largest across\-seed standard deviations are 5\.11 percentage points for G2P2C and 6\.26 for PPO\. Full phase and cohort results are reported in Appendix Fig\.[4](https://arxiv.org/html/2611.31498#A2.F4)and Table[7](https://arxiv.org/html/2611.31498#A2.T7)\.
Table[1](https://arxiv.org/html/2611.31498#S4.T1)places these explanation results beside baseline glycemic outcomes\. TIR differs by 0\.69 percentage points between policies in adolescents and 2\.77 points in adults; no equivalence test was performed\. Glycemic metrics summarize simulated glucose control, whereas the explanation analysis characterizes policy input dependence\. Full outcomes are reported in Appendix Table[2](https://arxiv.org/html/2611.31498#A1.T2)\.
Table 1:Compact baseline outcomes across virtual patients, reported as median \(IQR\) per 24\-h simulation\. TIR/TBR/TAR are percentages; mean glucose is mg/dL\.
#### Model\-version and explanation\-parameter sensitivity\.
Across training checkpoints, the full feature ranking becomes progressively more similar to the final policy, whereas the recent\-insulin fraction does not change monotonically \(Appendix Fig\.[7](https://arxiv.org/html/2611.31498#A4.F7)\)\. KernelSHAP parameter sensitivity also varies across patients, with several G2P2C cases showing wider variation in the normalized within\-insulin profile \(Appendix Table[11](https://arxiv.org/html/2611.31498#A4.T11)\)\. These results show that stability of the global feature ranking does not necessarily imply stability of a derived temporal summary\.
## 5Discussion
XRL4T1D checks post\-hoc explanations against policy\-output sensitivity before using them for controller comparison\. Highly ranked individual inputs consistently produce larger output changes under replacement, and the highest\-ranked insulin\-history window usually matches the most output\-sensitive window\. TimeSHAP generally identifies the same highest\-ranked window, although exact temporal proportions can differ\. These results support feature\-level and coarse temporal interpretation under the tested interventions, but do not show that SHAP recovers the internal mechanism of the policy\.
#### Policy comparison and explanation stability\.
TIR and related glycemic metrics describe simulated glucose control, whereas XRL4T1D describes which recorded inputs are most strongly associated with the policy output\. Both PPO and G2P2C rely predominantly on CGM history, particularly G2P2C, while their normalized within\-insulin temporal profiles do not show a consistent controller\-specific separation\. Global feature rankings remain highly stable under the tested observation corruptions, but the within\-insulin profile can vary across cohorts, explainers, and KernelSHAP settings\. This distinction is important because A\-IOB is normalized within the insulin channel: when insulin contributes little total importance, small changes within that channel can produce larger changes in the normalized temporal fractions\.
#### Limitations\.
Our evaluation is restricted to two pretrained RL controllers and 20 virtual patients in the UVA/Padova simulator\. Although multiple meal scenarios, stochastic repetitions, policy checkpoints, and explanation configurations are considered, these analyses do not establish generalizability to other controller architectures, patient populations, or clinical settings\. The simulations also exclude physiological disturbances such as exercise, illness, and infusion\-site failures\. The feature\- and temporal\-window replacement analyses use empirical background means, which may introduce implausible combinations of correlated observations and are not fully independent of the KernelSHAP reference mechanism\. Consequently, agreement between attribution rankings and replacement\-induced output changes should be interpreted as intervention\-specific evidence rather than causal validation\. Replacement strategies that preserve realistic temporal dependencies would provide a useful complementary assessment\. Furthermore, A\-IOB describes the relative distribution of attribution within the observed 60\-minute insulin history and is not an estimate of physiological insulin\-on\-board\. Its temporal fractions must be interpreted alongside total insulin\-channel importance, particularly for policies with weak insulin\-history attribution\. Finally, the reported stability under observation corruption concerns explanations evaluated on paired clean trajectories, not closed\-loop controller robustness\. No clinician study or prospective clinical validation was conducted\.
## 6Conclusion
We presented XRL4T1D, a post\-hoc explanation framework for pretrained RL insulin\-dosing policies that tests SHAP\-based feature importance against changes in the policy output\. Across PPO and G2P2C controllers evaluated on 20 virtual patients, highly ranked individual inputs consistently produced larger output changes under replacement, and the highest\-ranked insulin\-history window agreed with direct window replacement in most configurations\. Both controllers relied predominantly on CGM history, while the finer recent–middle–older insulin profile varied across cohorts, explanation methods, and analysis settings\. At the same time, full feature rankings remained highly stable under the tested observation perturbations and could be tracked across policy checkpoints\. These results show that validated post\-hoc explanation can provide a reproducible basis for comparing RL insulin\-dosing policies across clinically relevant glycemic phases, meal scenarios, and sensor perturbations, supporting benchmark\-style preclinical evaluation and monitoring of how autonomous controllers use longitudinal physiological information\. These findings remain descriptive rather than causal and do not establish clinical superiority of either controller or attribute the observed differences to a specific architectural component\.
## References
- A\. Adjevi, A\. M\. Abdirashid, F\. Aktaş, M\. H\. B\. Ucar, and S\. SolakExplainable reinforcement learning for glucose monitoring based on shapley value analysis\.Computer Methods and Programs in Biomedicine278,pp\. 109266\.External Links:[Document](https://dx.doi.org/10.1016/j.cmpb.2026.109266)Cited by:[§2](https://arxiv.org/html/2611.31498#S2.p3.1)\.
- Alredainiet al\.\(2026\)R\. Alredaini, M\. Abulkhair, and H\. AlmisbahiInterpretable glucose forecasting for type 2 diabetes across traditional, deep, and large language models\.Scientific Reports16,pp\. 2421\.External Links:[Document](https://dx.doi.org/10.1038/s41598-025-32373-4)Cited by:[§2](https://arxiv.org/html/2611.31498#S2.p3.1)\.
- Atkinsonet al\.\(2014\)M\. A\. Atkinson, G\. S\. Eisenbarth, and A\. W\. MichelsType 1 diabetes\.The Lancet383\(9911\),pp\. 69–82\.External Links:[Document](https://dx.doi.org/10.1016/S0140-6736%2813%2960591-7)Cited by:[§1](https://arxiv.org/html/2611.31498#S1.p1.1)\.
- Battelinoet al\.\(2019\)T\. Battelino, T\. Danne, R\. M\. Bergenstal,et al\.Clinical targets for continuous glucose monitoring data interpretation: recommendations from the international consensus on time in range\.Diabetes Care42\(8\),pp\. 1593–1603\.External Links:[Document](https://dx.doi.org/10.2337/dci19-0028)Cited by:[§1](https://arxiv.org/html/2611.31498#S1.p2.1),[§3\.1](https://arxiv.org/html/2611.31498#S3.SS1.SSS0.Px3.p1.1)\.
- Bellet al\.\(2015\)K\. J\. Bell, C\. E\. Smart, G\. M\. Steil, J\. C\. Brand\-Miller, B\. King, and H\. A\. WolpertImpact of fat, protein, and glycemic index on postprandial glucose control in type 1 diabetes: implications for intensive diabetes management in the continuous glucose monitoring era\.Diabetes Care38\(6\),pp\. 1008–1015\.External Links:[Document](https://dx.doi.org/10.2337/dc15-0100)Cited by:[§B\.1](https://arxiv.org/html/2611.31498#A2.SS1.p2.1)\.
- Bentoet al\.\(2021\)J\. Bento, P\. Saleiro, A\. F\. Cruz, M\. A\. T\. Figueiredo, and P\. BizarroTimeSHAP: explaining recurrent models through sequence perturbations\.InProceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery & Data Mining,pp\. 2565–2573\.External Links:[Document](https://dx.doi.org/10.1145/3447548.3467166)Cited by:[§1](https://arxiv.org/html/2611.31498#S1.p5.1),[§2](https://arxiv.org/html/2611.31498#S2.p2.1),[§3\.4](https://arxiv.org/html/2611.31498#S3.SS4.SSS0.Px3.p1.1)\.
- Bretonet al\.\(2020\)M\. D\. Breton, L\. G\. Kanapka, R\. W\. Beck,et al\.A randomized trial of closed\-loop control in children with type 1 diabetes\.New England Journal of Medicine383\(9\),pp\. 836–845\.External Links:[Document](https://dx.doi.org/10.1056/NEJMoa2004736)Cited by:[§1](https://arxiv.org/html/2611.31498#S1.p1.1)\.
- Brownet al\.\(2019\)S\. A\. Brown, B\. P\. Kovatchev, D\. Raghinaru,et al\.Six\-month randomized, multicenter trial of closed\-loop control in type 1 diabetes\.New England Journal of Medicine381\(18\),pp\. 1707–1717\.External Links:[Document](https://dx.doi.org/10.1056/NEJMoa1907863)Cited by:[§1](https://arxiv.org/html/2611.31498#S1.p1.1)\.
- Davidsonet al\.\(2008\)P\. C\. Davidson, H\. R\. Hebblewhite, R\. D\. Steed, and B\. W\. BodeAnalysis of guidelines for basal\-bolus insulin dosing: basal insulin, correction factor, and carbohydrate\-to\-insulin ratio\.Endocrine Practice14\(9\),pp\. 1095–1101\.External Links:[Document](https://dx.doi.org/10.4158/EP.14.9.1095)Cited by:[§A\.1](https://arxiv.org/html/2611.31498#A1.SS1.p1.1)\.
- Donget al\.\(2025\)S\. Dong, S\. Zhang, and L\. FengCounterfactual explanations for continuous action reinforcement learning\.InProceedings of the Thirty\-Fourth International Joint Conference on Artificial Intelligence \(IJCAI\-25\),External Links:[Link](https://www.cs.virginia.edu/~lufeng/papers/ijcai2025.pdf)Cited by:[§2](https://arxiv.org/html/2611.31498#S2.p2.1)\.
- Efron \(1979\)B\. EfronBootstrap methods: another look at the jackknife\.The Annals of Statistics7\(1\),pp\. 1–26\.External Links:[Document](https://dx.doi.org/10.1214/aos/1176344552)Cited by:[§3\.5](https://arxiv.org/html/2611.31498#S3.SS5.SSS0.Px4.p1.1)\.
- Emersonet al\.\(2023\)H\. Emerson, R\. McConville, and M\. J\. GuyOffline reinforcement learning for safer blood glucose control in people with type 1 diabetes\.Journal of Biomedical Informatics142,pp\. 104376\.External Links:[Document](https://dx.doi.org/10.1016/j.jbi.2023.104376)Cited by:[§2](https://arxiv.org/html/2611.31498#S2.p1.1)\.
- Foxet al\.\(2020\)I\. Fox, J\. Lee, R\. Pop\-Busui, and J\. WiensDeep reinforcement learning for closed\-loop blood glucose control\.InProceedings of the 5th Machine Learning for Healthcare Conference,Proceedings of Machine Learning Research, Vol\.126,pp\. 508–536\.External Links:[Link](https://proceedings.mlr.press/v126/fox20a/fox20a.pdf)Cited by:[§2](https://arxiv.org/html/2611.31498#S2.p1.1)\.
- Greydanuset al\.\(2018\)S\. Greydanus, A\. Koul, J\. Dodge, and A\. FernVisualizing and understanding atari agents\.InProceedings of the 35th International Conference on Machine Learning,External Links:[Link](https://arxiv.org/abs/1711.00138)Cited by:[§2](https://arxiv.org/html/2611.31498#S2.p2.1)\.
- Hettiarachchiet al\.\(2022a\)C\. Hettiarachchi, N\. Malagutti, C\. Nolan, E\. Daskalaki, and H\. SuominenA reinforcement learning based system for blood glucose control without carbohydrate estimation in type 1 diabetes: in silico validation\.In2022 44th Annual International Conference of the IEEE Engineering in Medicine & Biology Society \(EMBC\),pp\. 950–956\.Cited by:[§1](https://arxiv.org/html/2611.31498#S1.p5.1),[§3\.1](https://arxiv.org/html/2611.31498#S3.SS1.SSS0.Px2.p1.1)\.
- Hettiarachchiet al\.\(2022b\)C\. Hettiarachchi, N\. Malagutti, C\. J\. Nolan, H\. Suominen, and E\. DaskalakiNon\-linear continuous action spaces for reinforcement learning in type 1 diabetes\.InAustralasian Joint Conference on Artificial Intelligence,pp\. 557–570\.Cited by:[§3\.1](https://arxiv.org/html/2611.31498#S3.SS1.SSS0.Px2.p2.1)\.
- Hettiarachchiet al\.\(2024\)C\. Hettiarachchi, N\. Malagutti, C\. J\. Nolan, H\. Suominen, and E\. DaskalakiG2P2C — a modular reinforcement learning algorithm for glucose control by glucose prediction and planning in Type 1 Diabetes\.Biomedical Signal Processing and Control90,pp\. 105839\.External Links:[Document](https://dx.doi.org/10.1016/j.bspc.2023.105839)Cited by:[§1](https://arxiv.org/html/2611.31498#S1.p5.1),[§2](https://arxiv.org/html/2611.31498#S2.p1.1),[§3\.1](https://arxiv.org/html/2611.31498#S3.SS1.SSS0.Px2.p1.1)\.
- Heuilletet al\.\(2020\)A\. Heuillet, F\. Couthouis, and N\. Díaz\-RodríguezExplainability in deep reinforcement learning\.External Links:2008\.06693,[Link](https://arxiv.org/abs/2008.06693)Cited by:[§2](https://arxiv.org/html/2611.31498#S2.p2.1)\.
- Janežet al\.\(2020\)A\. Janež, C\. Guja, A\. Mitrakou, N\. Lalić, T\. Tankova, L\. Czupryniak, A\. G\. Tabaák, M\. Pražný, E\. Martinka, and L\. Smirčić\-DuvnjakInsulin therapy in adults with type 1 diabetes mellitus: a narrative review\.Diabetes Therapy11\(2\),pp\. 387–409\.External Links:[Document](https://dx.doi.org/10.1007/s13300-019-00743-7)Cited by:[§A\.1](https://arxiv.org/html/2611.31498#A1.SS1.p1.1)\.
- Juozapaitiset al\.\(2019\)Ž\. Juozapaitis, A\. Koul, A\. Fern, M\. Erwig, F\. Doshi\-Velez,et al\.Explainable reinforcement learning via reward decomposition\.InProceedings of the Twenty\-Eighth International Joint Conference on Artificial Intelligence \(IJCAI\),pp\. 5209–5213\.External Links:[Document](https://dx.doi.org/10.24963/ijcai.2019/723)Cited by:[§2](https://arxiv.org/html/2611.31498#S2.p2.1)\.
- Limet al\.\(2021\)M\. H\. Lim, W\. H\. Lee, B\. Jeon, and S\. KimA blood glucose control framework based on reinforcement learning with safety and interpretability: in silico validation\.IEEE Access9,pp\. 105756–105775\.External Links:[Document](https://dx.doi.org/10.1109/ACCESS.2021.3100007)Cited by:[§2](https://arxiv.org/html/2611.31498#S2.p3.1)\.
- Lundberg and Lee \(2017\)S\. M\. Lundberg and S\. LeeA unified approach to interpreting model predictions\.InAdvances in Neural Information Processing Systems,Vol\.30\.External Links:[Link](https://arxiv.org/abs/1705.07874)Cited by:[§1](https://arxiv.org/html/2611.31498#S1.p4.1),[§2](https://arxiv.org/html/2611.31498#S2.p2.1),[§3\.2](https://arxiv.org/html/2611.31498#S3.SS2.p1.1)\.
- Lupoliet al\.\(2019\)R\. Lupoli, F\. Pisano, and B\. CapaldoPostprandial glucose control in type 1 diabetes: importance of the gastric emptying rate\.Nutrients11\(7\),pp\. 1559\.External Links:[Document](https://dx.doi.org/10.3390/nu11071559)Cited by:[§B\.1](https://arxiv.org/html/2611.31498#A2.SS1.p2.1)\.
- Milaniet al\.\(2024\)S\. Milani, N\. Topin, M\. Veloso, and F\. FangExplainable reinforcement learning: a survey and comparative review\.ACM Computing Surveys56\(7\),pp\. 168:1–168:36\.External Links:[Document](https://dx.doi.org/10.1145/3616864)Cited by:[§2](https://arxiv.org/html/2611.31498#S2.p2.1)\.
- Ngoet al\.\(2018\)P\. D\. Ngo, S\. Wei, A\. Holubová, J\. Muzik, and F\. GodtliebsenControl of blood glucose for type\-1 diabetes by using reinforcement learning with feedforward algorithm\.Computational and Mathematical Methods in Medicine2018,pp\. 4091497\.External Links:[Document](https://dx.doi.org/10.1155/2018/4091497)Cited by:[§2](https://arxiv.org/html/2611.31498#S2.p1.1)\.
- Puiutta and Veith \(2020\)E\. Puiutta and E\. VeithExplainable reinforcement learning: a survey\.External Links:2005\.06247,[Link](https://arxiv.org/abs/2005.06247)Cited by:[§2](https://arxiv.org/html/2611.31498#S2.p2.1)\.
- Sarkar \(2025\)M\. SarkarExplainable insulin pump control with LLMs for type 1 diabetes\.InThe Second Workshop on GenAI for Health: Potential, Trust, and Policy Compliance,External Links:[Link](https://openreview.net/forum?id=8lOB3Dc0oy)Cited by:[§2](https://arxiv.org/html/2611.31498#S2.p4.1)\.
- Schiavonet al\.\(2018\)M\. Schiavon, C\. Dalla Man, and C\. CobelliInsulin sensitivity index\-based optimization of insulin to carbohydrate ratio: in silico study shows efficacious protection against hypoglycemic events caused by suboptimal therapy\.Diabetes Technology & Therapeutics20\(2\),pp\. 98–105\.External Links:[Document](https://dx.doi.org/10.1089/dia.2017.0248)Cited by:[§A\.1](https://arxiv.org/html/2611.31498#A1.SS1.p1.1)\.
- Slatteryet al\.\(2018\)D\. Slattery, S\. A\. Amiel, and P\. ChoudharyOptimal prandial timing of bolus insulin in diabetes management: a review\.Diabetic Medicine35\(3\),pp\. 306–316\.External Links:[Document](https://dx.doi.org/10.1111/dme.13525)Cited by:[§B\.1](https://arxiv.org/html/2611.31498#A2.SS1.p2.1)\.
- Srinivasuet al\.\(2024\)P\. N\. Srinivasu, S\. Ahmed, M\. Hassaballah, and N\. AlmusallamAn explainable artificial intelligence software system for predicting diabetes\.Heliyon10\(16\),pp\. e36112\.External Links:[Document](https://dx.doi.org/10.1016/j.heliyon.2024.e36112)Cited by:[§2](https://arxiv.org/html/2611.31498#S2.p3.1)\.
- Štrumbelj and Kononenko \(2014\)E\. Štrumbelj and I\. KononenkoExplaining prediction models and individual predictions with feature contributions\.Knowledge and Information Systems41,pp\. 647–665\.External Links:[Document](https://dx.doi.org/10.1007/s10115-013-0679-x)Cited by:[§3\.2](https://arxiv.org/html/2611.31498#S3.SS2.p1.1)\.
- Tasinet al\.\(2023\)I\. Tasin, T\. U\. Nabil, S\. Islam, and R\. KhanDiabetes prediction using machine learning and explainable ai techniques\.Healthcare Technology Letters10\(1\-2\),pp\. 1–10\.External Links:[Document](https://dx.doi.org/10.1049/htl2.12039)Cited by:[§2](https://arxiv.org/html/2611.31498#S2.p3.1)\.
- Viroonluechaet al\.\(2022\)P\. Viroonluecha, C\. Rong, P\. Sokrab,et al\.Evaluation of blood glucose level control in type 1 diabetic patients using reinforcement learning\.PLOS ONE17\(9\),pp\. e0274608\.External Links:[Document](https://dx.doi.org/10.1371/journal.pone.0274608)Cited by:[§2](https://arxiv.org/html/2611.31498#S2.p1.1)\.
- Visentinet al\.\(2014\)R\. Visentin, C\. Dalla Man, G\. Fico, and C\. CobelliThe university of virginia/padova type 1 diabetes simulator: new features\.Journal of Diabetes Science and Technology8\(1\),pp\. 26–34\.External Links:[Document](https://dx.doi.org/10.1177/1932296813514502)Cited by:[§1](https://arxiv.org/html/2611.31498#S1.p1.1),[§2](https://arxiv.org/html/2611.31498#S2.p1.1),[§3\.1](https://arxiv.org/html/2611.31498#S3.SS1.SSS0.Px1.p1.1)\.
- Walshet al\.\(2014\)J\. Walsh, R\. Roberts, and L\. HeinemannConfusion regarding duration of insulin action: a potential source for major insulin dose errors by bolus calculators\.Journal of Diabetes Science and Technology8\(1\),pp\. 170–178\.External Links:[Document](https://dx.doi.org/10.1177/1932296813514319)Cited by:[§3\.3](https://arxiv.org/html/2611.31498#S3.SS3.p1.1),[§3\.3](https://arxiv.org/html/2611.31498#S3.SS3.p4.1)\.
- Wuet al\.\(2022\)Z\. Wu, J\. E\. Yardley, V\. Messier, L\. Legault, C\. Grou, and R\. Rabasa\-LhoretComparison of nocturnal glucose after exercise among dual\-hormone, single\-hormone algorithm\-assisted insulin delivery system and usual care in adults and adolescents living with type 1 diabetes: a pooled analysis\.Diabetes Technology & Therapeutics24\(10\),pp\. 754–762\.External Links:[Document](https://dx.doi.org/10.1089/dia.2022.0149)Cited by:[§B\.1](https://arxiv.org/html/2611.31498#A2.SS1.p2.1)\.
- Xie \(2018\)J\. XieSimGlucose: a type\-1 diabetes simulator for reinforcement learning\.Note:[https://github\.com/jxx123/simglucose](https://github.com/jxx123/simglucose)Accessed Oct 28, 2025Cited by:[§1](https://arxiv.org/html/2611.31498#S1.p1.1),[§2](https://arxiv.org/html/2611.31498#S2.p1.1),[§3\.1](https://arxiv.org/html/2611.31498#S3.SS1.SSS0.Px1.p1.1)\.
- Zhuet al\.\(2021\)T\. Zhu, K\. Li, P\. Herrero, and P\. GeorgiouBasal glucose control in type 1 diabetes using deep reinforcement learning: an in silico validation\.IEEE Journal of Biomedical and Health Informatics25\(4\),pp\. 1223–1232\.External Links:[Document](https://dx.doi.org/10.1109/JBHI.2020.3014556)Cited by:[§2](https://arxiv.org/html/2611.31498#S2.p1.1)\.
- Zisseret al\.\(2008\)H\. Zisser, L\. Robinson, W\. Bevier, E\. Dassau, C\. Ellingsen, F\. J\. Doyle, and L\. JovanovicBolus calculator: a review of four “smart” insulin pumps\.Diabetes Technology & Therapeutics10\(6\),pp\. 441–444\.External Links:[Document](https://dx.doi.org/10.1089/dia.2007.0284)Cited by:[§3\.3](https://arxiv.org/html/2611.31498#S3.SS3.p1.1),[§3\.3](https://arxiv.org/html/2611.31498#S3.SS3.p4.1)\.
## Appendix AAdditional Clinical Outcomes and Implementation Details
### A\.1Patient descriptors
The insulin\-to\-carbohydrate ratio \(ICR\) is the grams of carbohydrate covered by one unit of rapid\-acting insulin; the insulin sensitivity factor \(ISF\) is the expected glucose reduction from one unit; and total daily insulin \(TDI\) is insulin delivered over 24 hours[Schiavon et al\. \[2018\]](https://arxiv.org/html/2611.31498#bib.bib27),[Davidson et al\. \[2008\]](https://arxiv.org/html/2611.31498#bib.bib28),[Janež et al\. \[2020\]](https://arxiv.org/html/2611.31498#bib.bib29)\. These descriptors are used only in the exploratory patient\-level analyses in Appendix[C](https://arxiv.org/html/2611.31498#A3)\.
### A\.2Complete baseline glycemic outcomes
Table[2](https://arxiv.org/html/2611.31498#A1.T2)expands the baseline outcomes in Table[1](https://arxiv.org/html/2611.31498#S4.T1)\. Each policy–cohort row aggregates 10 patient\-specific 24\-h simulations\. Similar descriptive values do not establish statistical equivalence; no equivalence test was performed\.
Table 2:Complete baseline glycemic outcomes\. Continuous metrics are median \(IQR\) across 10 patient\-specific 24\-h simulations per policy–cohort cell; event and swing counts are mean±\\pmSD per simulation\. TIR, TBR, TAR, and CV are percentages, and mean glucose is in mg/dL\. Severe episodes use thresholds below 54 or above 250 mg/dL\.
### A\.3Implementation and runtime
The default KernelSHAP configuration uses a background set of 200 states and 1,024 sampled coalitions per explanation\. On a Windows 11 workstation with a 16\-core Intel processor, 16 GB RAM, and an NVIDIA RTX 4060 Laptop GPU, a 10\-decision benchmark took 2\.15 s \(0\.215 s per explanation\)\. Policy forward passes used the GPU and the KernelSHAP solver used the CPU\. This hardware\-specific offline explanation time is not a measurement of clinical latency or deployment readiness\.
## Appendix BFull Evaluation Setting, Phase, Cohort, and Meal\-Scenario Results
### B\.1Meal scenarios and retrospective glycemic phases
Scenario 1 is stochastic: breakfast, lunch, and dinner are each enabled with probability 0\.95 and use nominal carbohydrate amounts of 45, 85, and 80 g, with configured amount\-variation parameters of 5, 5, and 10 g and timing\-variation parameters of 60 min around the nominal 08:00, 13:00, and 20:00 meal times\. Scenario 2 uses deterministic 40/80/60 g meals at 08:00/13:00/20:00, and Scenario 3 uses deterministic 45/85/80 g meals at those times\. The same pretrained policies are evaluated without retraining\.
Each 24\-h simulation is partitioned retrospectively into preprandial \(−30\-30to 0 min\), early postprandial \(0 to\+60\+60min\), late postprandial \(\+60\+60to\+180\+180min\), and nocturnal \(00:00–06:00\) strata[Slattery et al\. \[2018\]](https://arxiv.org/html/2611.31498#bib.bib30),[Lupoli et al\. \[2019\]](https://arxiv.org/html/2611.31498#bib.bib31),[Bell et al\. \[2015\]](https://arxiv.org/html/2611.31498#bib.bib32),[Wu et al\. \[2022\]](https://arxiv.org/html/2611.31498#bib.bib33)\. Meal timing is used only to assign these analysis labels and is absent from the 24\-dimensional policy input\.
### B\.2Overall CGM\-versus\-insulin importance
The stored state is interleaved from oldest to newest,
\[Gt−55,It−55,Gt−50,It−50,…,Gt,It\]\.\[G\_\{t\-55\},I\_\{t\-55\},G\_\{t\-50\},I\_\{t\-50\},\\ldots,G\_\{t\},I\_\{t\}\]\.Channel\-specific analyses explicitly extract the corresponding CGM and administered\-insulin entries from this interleaved representation before aggregation\. For each decision,
ΦCGM=∑j=011\|ϕGt−5j\|,ΦINS=∑j=011\|ϕIt−5j\|,\\Phi\_\{\\mathrm\{CGM\}\}=\\sum\_\{j=0\}^\{11\}\|\\phi\_\{G\_\{t\-5j\}\}\|,\\qquad\\Phi\_\{\\mathrm\{INS\}\}=\\sum\_\{j=0\}^\{11\}\|\\phi\_\{I\_\{t\-5j\}\}\|,and
rINS=ΦINSΦCGM\+ΦINS,rCGM=1−rINS\.r\_\{\\mathrm\{INS\}\}=\\frac\{\\Phi\_\{\\mathrm\{INS\}\}\}\{\\Phi\_\{\\mathrm\{CGM\}\}\+\\Phi\_\{\\mathrm\{INS\}\}\},\\qquad r\_\{\\mathrm\{CGM\}\}=1\-r\_\{\\mathrm\{INS\}\}\.Figure[4](https://arxiv.org/html/2611.31498#A2.F4)reports these total\-channel shares for every scenario, cohort, phase, and policy cell\. Both policies are CGM\-dominated, with the stronger CGM dominance generally observed for G2P2C\.
Figure 4:CGM\-versus\-insulin importance across 20 patients, two policies, three meal scenarios, and four retrospective phases\. Each bar is the mean of 10 patient\-level total\-\|SHAP\|\|\\mathrm\{SHAP\}\|channel shares for the indicated cohort–policy–scenario–phase cell; green isrCGMr\_\{\\mathrm\{CGM\}\}and orange isrINSr\_\{\\mathrm\{INS\}\}\. Adol\. denotes the adolescent cohort\.Table 3:Exact total\-channel shares corresponding to Fig\.[4](https://arxiv.org/html/2611.31498#A2.F4)\. Entries are percentages averaged across 10 patients within each cohort–policy–scenario–phase cell\. CGM and administered\-insulin shares use total absolute KernelSHAP importance as their common denominator\.
### B\.3Within\-insulin A\-IOB profile
Conditional on insulin\-history importance, the A\-IOB fractions are
wr=∑j∈𝒦r\|ϕIt−5j\|ΦINS,r∈\{0–20,20–40,40–60\}\.w\_\{r\}=\\frac\{\\sum\_\{j\\in\\mathcal\{K\}\_\{r\}\}\|\\phi\_\{I\_\{t\-5j\}\}\|\}\{\\Phi\_\{\\mathrm\{INS\}\}\},\\quad r\\in\\\{0\\text\{\-\-\}20,20\\text\{\-\-\}40,40\\text\{\-\-\}60\\\}\.Thus,w0–20=0\.55w\_\{0\\text\{\-\-\}20\}=0\.55means that 55% of the importance assigned to administered\-insulin history lies in the recent window; it does not mean that recent insulin accounts for 55% of total model importance\. Tables[4](https://arxiv.org/html/2611.31498#A2.T4)–[6](https://arxiv.org/html/2611.31498#A2.T6)should therefore be interpreted alongside Fig\.[4](https://arxiv.org/html/2611.31498#A2.F4)\. The tables do not support a universal G2P2C recent\-window advantage\.
Table 4:Scenario 1 within\-insulin A\-IOB profiles\. Entries are means across 10 patients in each cohort–policy–phase cell from one stochastic\-baseline 24\-h simulation per patient\. Fractions are normalized within administered\-insulin history and should be interpreted with the total insulin shares in Fig\.[4](https://arxiv.org/html/2611.31498#A2.F4)\.Table 5:Scenario 2 within\-insulin A\-IOB profiles\. Entries are means across 10 patients per cohort–policy–phase cell\. Fractions are normalized within administered\-insulin history and should be interpreted with Fig\.[4](https://arxiv.org/html/2611.31498#A2.F4)\.Table 6:Scenario 3 within\-insulin A\-IOB profiles\. Entries are means across 10 patients per cohort–policy–phase cell\. Fractions are normalized within administered\-insulin history and should be interpreted with Fig\.[4](https://arxiv.org/html/2611.31498#A2.F4)\.
### B\.4Five\-seed reproducibility
Only Scenario 1 is repeated across stochastic seeds; Scenarios 2 and 3 are deterministic and are excluded from this analysis\. Table[7](https://arxiv.org/html/2611.31498#A2.T7)reports mean±\\pmSD across five seed\-level cohort summaries\. The recent fraction varies by cohort and phase, and G2P2C exceeds PPO in only one of the eight matched phase–cohort cells\. The largest recent\-fraction SD is 0\.051 for G2P2C and 0\.063 for PPO\.
Table 7:Five\-seed Scenario 1 reproducibility\. Each entry is mean±\\pmSD across five seed\-level summaries after aggregating patients within the indicated cohort, policy, and phase\. Recent isw0–20w\_\{0\\text\{\-\-\}20\}normalized within administered\-insulin history; CGM and insulin are percentages of total absolute attribution\.
## Appendix CExploratory Patient\-Level Clinical Alignment
### C\.1Setup
The exploratory analysis uses the 0–120 min postprandial windows of Scenario 1 for 20 patients \(10 adolescents and 10 adults\), analyzed separately for PPO and G2P2C\. Patient descriptors are TDI, ISF, and ICR\. Cohorts are pooled for the correlations below\. Because the sample is small and multiple associations are examined, all results are descriptive and hypothesis\-generating\.
### C\.2Patient\-level heatmaps
Figure[5](https://arxiv.org/html/2611.31498#A3.F5)shows the 10 adult PPO patients, sorted by TDI\. CGM and administered\-insulin coordinates are extracted from the interleaved state before plotting\. Each lag column is scaled separately to\[0,1\]\[0,1\]across patients, so color intensity compares patients within a lag and must not be used to compare absolute magnitude across channels\.
\(a\)Administered\-insulin history\.
\(b\)CGM history\.
Figure 5:Postprandial mean absolute KernelSHAP importance for 10 adult PPO patients in Scenario 1, sorted by increasing TDI\. Columns run from the newest to the oldest lag and are normalized separately across patients\. The panels show temporal variation within each channel, not cross\-channel magnitude or physiological effects\.
### C\.3Channel and temporal summaries
Table[8](https://arxiv.org/html/2611.31498#A3.T8)reports the pooled postprandial summaries\. Overall insulin share and the A\-IOB fractions have different denominators:rINSr\_\{\\mathrm\{INS\}\}is relative to both input channels, whereas recent/middle/older fractions are conditional on insulin\-history importance\.
Table 8:Scenario 1 postprandial summaries across 20 patients per policy\. Values are patient means\. CGM and insulin are percentages of total absolute attribution; the three temporal fractions are normalized within administered\-insulin history\.
### C\.4Exploratory associations
Table[9](https://arxiv.org/html/2611.31498#A3.T9)lists the six smallest uncorrectedpp\-values among 60 policy\-specific descriptor–attribution comparisons\. The most consistent pattern is a negative association between ISF and overall insulin share for both policies\. These associations do not show adaptation, clinical benefit, or causality\.
Table 9:Exploratory Spearman associations across the pooled adolescent and adult cohorts \(n=20n=20per row\)\. Insulin share isrINSr\_\{\\mathrm\{INS\}\}\. Values are uncorrected; 60 comparisons were examined and no multiplicity correction was applied\.The small sample limits precision, and pooling cohorts can confound associations\. The results are hypothesis\-generating and should not be interpreted as patient\-specific policy adaptation or physiological validation of A\-IOB\.
## Appendix DReliability and Sensitivity Analyses
### D\.1Observation\-corruption protocol
The policy action and simulated trajectory are always generated from the clean observation history\. For explanation only, a separate buffer applies either Gaussian CGM noise,G~t=Gt\+ϵt\\widetilde\{G\}\_\{t\}=G\_\{t\}\+\\epsilon\_\{t\}withϵt∼𝒩\(0,102\)\\epsilon\_\{t\}\\sim\\mathcal\{N\}\(0,10^\{2\}\)mg/dL, or 10% missing readings with forward\-fill,G~t=G~t−1\\widetilde\{G\}\_\{t\}=\\widetilde\{G\}\_\{t\-1\}\. Clean and corrupted histories are paired at the same decision time\. This tests explanation stability, not closed\-loop controller robustness to sensor failure\.
### D\.2Observation\-corruption results
Table[10](https://arxiv.org/html/2611.31498#A4.T10)summarizes the 80 patient–policy–corruption comparisons\. Every rank correlation exceeds 0\.926 and no case falls below the prespecified 0\.85 threshold\. Top\-10 feature overlap is also high\. These values describe the stability of global attribution rankings on a fixed clean trajectory\.
Figure 6:Stability of per\-patient global feature rankings under counterfactual observation corruption\. Spearmanρ\\rhocompares clean and corrupted global feature\-importance vectors recorded at the same decision time; color shows baseline TIR only as a visual reference\. Rankings remain highly stable for both policies: all 80 comparisons haveρ\>0\.926\\rho\>0\.926, and none falls below theρ=0\.85\\rho=0\.85reference threshold\.The global feature ranking is highly stable under both tested observation corruptions\. Under Gaussian CGM noise, the median clean\-versus\-corrupted Spearman correlation is 0\.999 for PPO and 0\.987 for G2P2C; under 10% missing readings, the median is 1\.000 for both policies\. Across all 80 patient–policy–corruption \(2020patients×\\times22policies×\\times22corruption modes\) comparisons, the minimum correlation is 0\.926 and no case falls belowρ=0\.85\\rho=0\.85\. This experiment measures explanation stability for paired histories on the same clean action trajectory, not controller safety under sensor failure\.
Table 10:Explanation stability under counterfactual observation corruption\. Each row contains 20 paired clean/corrupted patient comparisons\.ρ\\rhois the Spearman correlation between 24\-feature global\-importance vectors; overlap is the mean fraction of shared top\-10 features\.
### D\.3Policy\-checkpoint sensitivity
Figure[7](https://arxiv.org/html/2611.31498#A4.F7)treats checkpoints as model versions\. Earlier\-to\-final global feature\-rank correlations rise from 0\.867/0\.901 at episode 50 to 0\.929/0\.977 at episode 150 for G2P2C/PPO\. In contrast, G2P2C’s mean within\-insulin recent fraction is non\-monotonic \(0\.471, 0\.516, 0\.544, and 0\.527 at episodes 50, 100, 150, and 195\); PPO changes from 0\.521 to 0\.565 over the same checkpoints\. The comparison tracks model versions and does not isolate an architectural cause\.
Figure 7:Checkpoint sensitivity across 20 patients per policy\.A:Mean Spearman correlation of the full 24\-feature ranking at each earlier checkpoint with the episode\-195 policy; the final checkpoint is 1 by definition\.B:Mean A\-IOB recent fractionw0–20w\_\{0\\text\{\-\-\}20\}at each checkpoint\. Error bars are inter\-patient SD\. Global rankings approach the final policy, while the G2P2C recent fraction is non\-monotonic\.
### D\.4KernelSHAP parameter sensitivity
The 20\-setting sweep crosses background sizesNbg∈\{50,100,200,500\}N\_\{\\mathrm\{bg\}\}\\in\\\{50,100,200,500\\\}with coalition countsNsamples∈\{100,256,512,1024,2048\}N\_\{\\mathrm\{samples\}\}\\in\\\{100,256,512,1024,2048\\\}for eight patient–policy pairs\. Table[11](https://arxiv.org/html/2611.31498#A4.T11)shows heterogeneous within\-insulin sensitivity: three G2P2C cases span more than 0\.31 in recent fraction, whereas other cases are much narrower\. This is compatible with stable global rankings but shows that a normalized within\-insulin profile can be sensitive when total insulin importance is small\.
At the default\(Nbg,Nsamples\)=\(200,1024\)\(N\_\{\\mathrm\{bg\}\},N\_\{\\mathrm\{samples\}\}\)=\(200,1024\)setting, each 95% interval is based on 200 bootstrap resamples of explanation timesteps with replacement within that patient\. The stored reference\-rank field is populated for only 7 of 20 settings per patient, so no median reference correlation is reported\.
Table 11:KernelSHAP parameter sensitivity for eight patient–policy pairs\. Profile and look\-back ranges cover all 20 settings\.t50t\_\{50\}andt80t\_\{80\}are minutes\. The final column is the default\-setting bootstrap 95% interval forw0–20w\_\{0\\text\{\-\-\}20\}; all temporal fractions are normalized within administered\-insulin history\.
## Appendix EDetailed Validation Breakdowns
### E\.1Individual\-feature replacement
At every decision, the 24 scalar inputs are ranked by absolute KernelSHAP importance\. The prespecified background\-mean intervention replaces either the top, random, or bottomm∈\{4,8\}m\\in\\\{4,8\\\}inputs\. Table[12](https://arxiv.org/html/2611.31498#A5.T12)reports patient\-level aggregates\. Each patient contributes multiple rows, so the ordering counts are descriptive rather than independent\-subject tests\.
Table 12:Individual\-feature replacement on Scenario 1\. Changes are mean absolute changes in normalized policy output across 20 patients per policy–mask\-size row\. Counts report patients for which top\-ranked replacement exceeds the comparator\.
### E\.2Temporal\-window replacement
For each temporal intervention, only the four administered\-insulin inputs in one 20\-min window are replaced by their background means; all CGM inputs and all other insulin lags remain fixed\. Table[13](https://arxiv.org/html/2611.31498#A5.T13)distinguishes highest\-window agreement from full three\-window ranking\. Across 120 configurations, the highest\-ranked window agrees in 115 cases, the mean Spearman correlation is 0\.913, and the median is 1\.0\. The three\-item rank correlations are−0\.5\-0\.5once,0\.50\.5in 18 cases, and1\.01\.0in 101 cases\.
Table 13:KernelSHAP versus direct window\-replacement ranking across 20 patients per policy–scenario row\. Agreement counts only whether the highest\-ranked window matches\. Spearmanρ\\rhocompares the complete three\-window ranking\.
### E\.3KernelSHAP versus TimeSHAP
TimeSHAP provides a sequential Shapley\-method replication, not independent ground truth\. Table[14](https://arxiv.org/html/2611.31498#A5.T14)shows generally strong highest\-window agreement, with 111/120 matches overall\. Agreement is higher for PPO \(58/60\) than G2P2C \(53/60\)\. Table[15](https://arxiv.org/html/2611.31498#A5.T15)shows that the exact magnitude difference is also larger for G2P2C: its recent fraction differs by 10\.05 percentage points between methods, compared with 0\.51 points for PPO\.
Table 14:KernelSHAP–TimeSHAP temporal\-ranking agreement across 20 patients per policy–scenario row\. Top\-window agreement and full three\-window Spearman correlation are distinct quantities\.Table 15:Mean temporal profiles across 60 patient–scenario configurations per policy and method\. Recent, middle, and older values are percentages normalized within administered\-insulin history\.Similar Articles
Evaluating RL Explainability Methods by How Much They Help Fix Bugs in Agents
The paper proposes EvalXRL, a benchmark for evaluating Explainable Reinforcement Learning methods by using an LLM coding agent to diagnose and fix bugs in RL agents.
Integrating Fairness and Explainability in a Multiple Instance Reinforcement Learning System
A University of Amsterdam study combines RL-based Multiple Instance Learning, adversarial debiasing, and preference-conditioned hypernetworks for student-at-risk prediction, finding that fairness objectives can be added to an interpretable RL-MIL pipeline but preference conditioning alone fails to yield controllable trade-offs between performance and Equalized Odds due to mode collapse.
Explaining Reinforcement Learning Decisions in Self-adaptive Systems
This paper introduces EARL, a Python library for generating counterfactual explanations in reinforcement learning to improve transparency and user trust in self-adaptive systems.
Explaining Reinforcement Learning Agents via Inductive Logic Programming
This paper introduces Inductive Logic Programming to extract symbolic representations of RL policies and proposes novel explainability metrics (activation rate, feature coverage, syntactic and semantic distance) for objective evaluation in single- and multi-agent settings.
Explainable Reinforcement Learning for Adaptive Traffic Signal Control
This paper proposes an explainable entity-centric reinforcement learning framework for adaptive traffic signal control, using a dual-stage attention network with multi-head cross-attention and self-attention to provide interpretable affinity matrices, while integrating deterministic action masking in PPO for safety compliance.