betaFeedback

Reading v1View latest version

WorksComputer Science

DiabAgent: Toward Agentic Physiological Control

Abstract

As pretraining scales, medical language models have advanced rapidly in clinical question answering. Their ability to achieve effective physiological control through sustained intervention still lacks systematic quantitative evaluation. Type 1 diabetes provides a concrete setting: impaired insulin secretion creates dependence on exogenous insulin, with dosing continually adjusted using information about meals, exercise, illness, and glucose measurements. We introduce DiabAgent, a research suite for agentic physiological control comprising the Agentic Physiological Control (APC) framework, the DiabetSim simulator, and the SweetBench benchmark. APC controls glucose through medical-device tools, using ongoing observations to infer individual states, accumulate personal experience, and choose treatment actions. We build DiabetSim to simulate different patients, events, and device conditions for scalable virtual testing and training. Using DiabetSim, we construct SweetBench by instantiating 32 scenario designs as 212 glucose-control tasks. With Claude Opus 5.5 and a fixed decision interval of one hour, APC achieves a COGI of 73.5, compared with 71.2 for the open-source closed-loop baseline OpenAPS. Ablations further show that individual adaptation and contextual information improve glucose control. Combining high-frequency rule-based control with lower-frequency agent decisions shows potential for balancing control performance and computational cost. Our work provides a framework, simulator, and evaluation foundation for agents to participate in human physiological control.

Introduction

As pretraining scales, medical language models have advanced rapidly in clinical question answering and treatment advice [36, 4]. Agents combine language models with tools, memory, and environment feedback to execute multi-step tasks [45, 35]. They complete long tasks in software and service environments and reuse experience in later decisions [44, 46, 48]. Medical agents conduct diagnostic dialogue, analyze treatment options, and operate electronic health records [37, 12, 18]. Evaluation of these tasks primarily concerns responses or information operations. Assessing whether language models can control physiology through sustained intervention requires systematic evaluation of the resulting physiological trajectories.

Type 1 diabetes provides a concrete setting for this problem. People with type 1 diabetes have impaired insulin secretion and depend on exogenous insulin for glucose control. Dosing needs vary with meals, exercise, illness, and individual states, while insulin continues to act for hours, linking current decisions to earlier treatment and subsequent events [15, 31]. Differences between people, daily changes in insulin needs, and delayed, noisy, or missing glucose measurements make control a long-horizon task requiring ongoing state inference, treatment adjustment, and feedback tracking. Automated insulin delivery and learned closed-loop controllers have advanced glucose control [6, 34, 14, 32]. Existing dynamical models and evaluation metrics also provide a basis for simulating glucose dynamics and assessing control outcomes [10, 5]. Together, these conditions support systematic study of how agents combine contextual information, personal experience, and device tools for sustained physiological control.

Rule-based closed-loop control typically organizes dosing around structured glucose measurements, insulin records, carbohydrate estimates, and prescribed therapy parameters [30]. Using descriptions of a changed meal plan, illness recovery, or a device problem requires mapping them to predefined inputs and response rules. This mapping constrains how the controller can use cues in free-text context and personal treatment notes. Interacting rare events and individual differences also require judging which cues explain current glucose changes and subsequent dosing needs [15]. Can an agent interpret this context and personal experience, act through medical-device tools, and translate that understanding into better physiological control? This question motivates the Agentic Physiological Control (APC) framework that we study in DiabAgent.

We evaluate APC with five models. With Claude Opus 5.5, it achieves a COGI of 73.5, compared with 71.2 for OpenAPS. Further experiments show that records and review support cross-day improvement without weight updates, and that added context can improve control more than increasing agent decision frequency in the tested cases. More frequent agent calls also increase computation. CL-on/off case studies indicate the potential of combining frequent background glucose regulation with less frequent agent decisions that integrate observations and personal experience.

Figure 1. APC and its first instantiation. (a) The APC loop, in which an agent acts on a physiological system through device tools and is scored on the physiological outcome. This work applies it to type 1 diabetes, and other systems remain open. (b) DiabetSim combines a physiological engine, device models, and an instance generator; APC acts through the devices and observes their readings. The plot shows a simulated glucose trajectory. (c) SweetBench composes 212 tasks in seven scenario groups and scores the true glucose trajectories, which are hidden from the agent. The donut chart gives the tasks per group, and the bars show the mean COGI of APC with five backend models and of the three baselines.

We make three contributions:

  1. We introduce APC, an agentic control framework that treats human physiology as an interactive environment, and apply it to glucose control. It acquires information through monitoring devices, delivers medication through medical devices, and adjusts decisions from feedback to optimize glucose-control metrics.

  1. We build DiabetSim, a configurable glucose-control simulator that integrates individual physiology, medical devices, events, and observation conditions. It reconstructs the interaction environment faced by APC and provides a foundation for reproducible virtual testing.

  1. We construct SweetBench, a benchmark of 212 glucose-control tasks. APC with Claude Opus 5.5 achieves

a COGI of 73.5, compared with 71.2 for OpenAPS. Further ablations show improved control over days with personal records and end-of-day review.

Agentic Physiological Control

The APC Framework

APC treats treatment as a control problem in which the controller is an agent and the sensors and actuators are medical devices.

Definition 1 (Agentic Physiological Control). An APC problem consists of a physiological system with hidden state, medical devices that measure and act on it, reports from the person, and a score on the physiological trajectory. An APC agent repeatedly observes, acts through the devices, and decides when to reassess, so as to maximize the expected score.

The state xtx_t comprises physiology, device status, and context, and evolves under individual parameters θ\theta. Let dd denote the device configuration and ρ\rho the reporting configuration, which specifies what the person reports, when, and how accurately. Then

xt+1∼Pθ(⋅∣xt,at),ot∼Od,ρ(⋅∣xt),at∈Ad(ht).x_{t+1} \sim P_{\theta}(\cdot\mid x_t, a_t), \qquad o_t \sim O_{d,\rho}(\cdot\mid x_t), \qquad a_t \in A_d(h_t).

This is a partially observable Markov decision process (Kaelbling et al. [20]) in which the devices determine both the observation model and the action set. The agent keeps the visible history ht=(o≤t,a<t)h_t = (o_{\leq t}, a_{<t}) and a personal record MtM_t summarizing past interaction with the same individual, and selects actions with a policy π(at∣ht,Mt)\pi(a_t \mid h_t, M_t). The score is computed from the true physiological variables mt=f(xt)m_t = f(x_t), which the agent never observes directly. Over a horizon TT, the objective is max⁡πEπ[S(m0:T)]\max_{\pi} \mathbb{E}_{\pi}[S(m_{0:T})].

An APC agent has four components that close this loop (Figure 2). Decision making selects an intervention, a measurement, or waiting, and states its rationale. Device tools execute the operation and return readings and delivery logs. Monitoring watches incoming observations and returns control to the agent when its chosen waiting interval ends or a specified condition occurs. The personal record carries what has been learned about the individual into later decisions.

Figure 2. The APC loop. The agent reaches the physiological system only through medical devices. Sensor readings and the person’s reports return through monitoring, which wakes the agent at its chosen time or when a trigger fires, and the personal record persists across decisions and days. The score SS is computed from the true physiological trajectory.

The design addresses three requirements. Interpretability makes the basis of an action traceable through decision rules or an explicit rationale. Information integration combines glucose measurements, natural-language and multimodal reports, and personal history to infer the hidden state and select interventions. Long-tail event adaptation uses contextual reports to adjust treatment when events overlap or fall outside predefined response categories.

To instantiate APC in a new domain, one specifies the physiological variables and the score SS, the devices with their observation models and operations (Od,ρ,Ad)(O_{d,\rho}, A_d), the reports the person can provide, and an environment in which agents can be evaluated safely. § 2.2 makes these choices for type 1 diabetes, and § 3 and § 4 build the environment and the tasks.

Glucose Control

Rule-based glucose controllers organize dosing around structured glucose and therapy records ([15, 30]). LLM-T1D distills a reinforcement-learning policy into a language model that doses insulin and explains its decisions ([32]).

We instantiate APC for glucose control in type 1 diabetes, combining device observations with contextual reports and personal experience. The state comprises glucose, insulin still acting, carbohydrate absorption, and device status; meals, activity, and illness perturb this state. APC observes sensor or meter readings, delivery logs and alarms, and reports of meals, activity, and device problems. Its actions are insulin delivery through boluses, temporary basal rates, or injections, measurement requests such as scans and fingersticks, device management such as cancellation, suspension, and resumption, and waiting. The score combines time in range, hypoglycemia, and variability of true glucose (§ 4.2; [5]). The idealized reference is a healthy pancreas, which regulates glucose continuously without devices or reports.

At each decision, APC reviews recent readings, insulin still acting, reported events, and its personal record, and estimates where glucose is heading. It then chooses one operation supported by the current devices and states why. The same decision fixes when to look again and which events, such as a new reading, a reported meal, or an alarm, should wake it earlier. Monitoring holds control until one of these occurs.

The personal record stores notes on how this individual has responded to meals, activity, and insulin. In multi-day episodes the conversation resets each day while the record persists, and revised therapy settings persist where the experimental condition allows. Adaptation therefore happens through experience with model weights fixed, and Section 5.3.1 evaluates the effect of keeping the record. Appendix § 13 specifies the observation and action interface.

DiabetSim

DiabetSim is a configurable environment for virtual testing of glucose-control agents. It comprises a physiological engine, monitoring and delivery device models, and an instance generator. Together, these components simulate individual glucose responses, everyday events, and device-mediated interventions. Agents observe device readings and event reports; the evaluator records the underlying glucose trajectory for scoring.

Simulator Engine

The engine models glucose–insulin dynamics using Deichmann et al. [10], including the effects of physical activity. Individual parameters θ\theta specify insulin sensitivity and body-mass-dependent responses. The simulator includes eight physiological types with different body masses and dawn phenomena, together with day-to-day variation in insulin sensitivity. Meals introduce carbohydrate absorption, while activity and illness modify subsequent physiological responses. The simulator configures therapy settings separately from physiological parameters, allowing prescribed treatment to differ from an individual’s insulin requirements. An event-driven scheduler advances physiological and device states as external events occur and treatment actions execute.

Devices

Observation. Monitoring devices determine the measurements available to the agent. The simulator includes eight sensor models and six glucose-meter models, parameterized by published accuracy specifications ([38, 17]). Real-time continuous glucose monitors (CGMs) produce readings every five minutes; flash sensors return readings upon scanning, and meters upon fingerstick measurement. The models represent sensor warm-up, data gaps, and compression artifacts. Scans and fingerstick measurements are agent actions, making observation timing part of the control policy. A reporting configuration ρ\rho additionally specifies the availability, timing, and accuracy of reports about meals, activity, and other events.

Action set. Delivery devices determine the available treatment operations and their constraints. The simulator includes five pump models, 10 pen models, and 10 insulin formulations. Each device configuration dd defines an action set AdA_d: pumps support device-specific subsets of boluses, temporary basal rates, extended boluses, cancellation, and suspension or resumption; pens support discrete injections. Insulin formulations determine the corresponding absorption and action profiles. The device interface validates commands against dose increments, dose limits, bolus intervals, and device state, and records rejected commands with their reasons. Occlusions and suspension alter actual delivery, separating the requested intervention from the dose received.

Instance Generation

An instance specifies patient parameters, device and reporting configurations, the event schedule, initial physiological and device states, pre-episode history, evaluation horizon, and random seed. The generator assigns representative parameter values or samples from configured ranges, then combines these specifications to produce instances with different patients, devices, events, and observation conditions. Event combinations, timing, and magnitude are configurable independently of the patient and device parameters. Saving the resolved specification fixes the initialization, external event schedule, and random seed for replay and comparisons between controllers.

SweetBench

SweetBench turns DiabetSim into a fixed set of 212 evaluation tasks. Each task is a fixed patient–scenario configuration that specifies an individual, an event calendar, the devices, the information available to the agent, the initial state, and the horizon, and each is scored on the true glucose trajectory.

Existing medical benchmarks score answers, records, or plans for a single encounter or a supplied history. SweetBench instead scores multi-day control in which the agent’s actions shape what it observes next, and it computes every score programmatically from the true trajectory (Table 1).

BenchmarkLong-horizon controlVerifiable scoreEvaluation tasks
HealthBench (Arora et al., [4])–◦Medical QA
AgentClinic (Schmidgall et al., [33])–◦Diagnostic dialogue
MedAgentBench (Jiang et al., [18])–✓EHR tasks
LongMedBench (Xu et al., [43])◦✓Longitudinal clinical reasoning
DM-Bench (Cardei et al., [7])◦◦Diabetes QA and planning
HealthLoopQA (Niu et al., [28])◦✓Time-series QA
SweetBench (ours)✓✓Closed-loop glucose control

Table 1. Task scope and scoring in medical benchmarks.

Long-horizon control: ✓, multi-day interventions with action-dependent physiological feedback; ◦, reasoning or planning over longitudinal records; –, encounter-level tasks. Verifiable score: ✓, fully programmatic scoring against references or rules; ◦, includes model-based semantic grading.

Task Design

Within DiabetSim’s configurable environment space, SweetBench defines 32 scenario designs in seven groups. These cover meal timing and absorption, residual insulin, exercise, changing insulin needs, pump under-delivery, sensor errors, and illness recovery (Table 2). Each design specifies an event combination and its temporal relationships. Examples include a cancelled meal after a pre-meal bolus followed by activity, or silent under-delivery with upward sensor drift. We instantiate each design for four to eight simulated individuals, adapting event timing and magnitude to each person, to obtain 212 tasks. Appendix § 12, Table 8, lists all designs by ID, including A01 and E03.

GroupExample designDesignsTasks
AMeal timing and absorptionA03: a meal cancelled after pre-bolusing, followed by activity428
BInsulin from earlier dosesB01: repeated doses after a small meal overlap as absorption ends428
CExerciseC04: breakfast and lunch skipped during prolonged aerobic activity424
DChanging insulin needsD02: needs returning after sleep loss and the dawn phenomenon638
EPump under-deliveryE04: silent under-delivery with progressively false-high sensor readings428
FSensor errorsF06: missed meals and exercise causing lows masked by positive sensor bias636
HIllness and recoveryH03: insulin needs recover before appetite returns430
Total32212

Table 2. Table 2 Scenario groups of SweetBench. Each design yields tasks for four to eight individuals. Appendix § 12 lists all 32 designs.

IDEvent combinationTasks
A01Repeated small intakes overlapping a slowly absorbed main meal6
A02Two slow-meal tails overlapping subsequent intake8
A03A meal cancelled after pre-bolusing, followed by activity8
A04Breakfast cancelled after a meal bolus, followed by prolonged fasting6
B01Repeated dosing after a small meal; absorption ends while insulin effects overlap6
B02Activity and small meals after earlier stacked doses8
B03Remaining extended delivery after a cancelled meal, with delayed replacement intake6
B04Rescue carbohydrate still absorbing while the main meal is delayed8
C01Two activity bouts interleaved with replenishment and meals8
C02A transient increase in hepatic glucose output followed by aerobic activity6
C03Delayed effects of evening activity and alcohol4
C04Breakfast and lunch skipped during prolonged aerobic activity6
D01Two short stress episodes resolving before subsequent activity6
D02Insulin needs returning after sleep loss and the dawn phenomenon8
D03Dawn-related needs receding during slow breakfast absorption and later fast intake6
D04Sleep-loss-related needs recovering during lunch absorption and later intake8
D05Two post-meal stress episodes resolving during slow and fast intake6
D06A slow overnight meal tail overlapping delayed alcohol effects and next-morning intake4
E01Silent under-delivery overlapping multiple meals8
E02Three intermittent under-delivery episodes with irregular meals6
E03Active repair of under-delivery followed by activity8
E04Silent under-delivery combined with progressively false-high sensor readings6
F01An activity-related glucose fall combined with false-high sensor readings6
F02Real post-meal glucose input combined with false-low sensor readings6
F03Meals and activity around a sensor-signal gap6
F04Illness recovery combined with incorrect calibration and sensor drift6
F05Calibration expiry with residual slow-meal absorption and recent dosing6
F06Missed meals and exercise causing low glucose, masked by positive sensor bias6
H01Repeated meals during illness; slow absorption persists into recovery6
H02Reduced intake during illness with pre-episode slow absorption and recent treatment8
H03Insulin needs recover before appetite; slow lunch absorption precedes fast intake8
H04Illness with under-delivery requiring repair, followed by recovery of insulin needs8

Table 8. SweetBench designs and their event combinations. Each design yields evaluation tasks for different patients.

In the default setting, a task is a 72-hour episode with a Dana-i pump delivering insulin aspart and real-time CGM with sensor error and delay, under information condition I2 described below. Because a configuration fixes the individual, the event calendar, and the random seed, the same task can also be run with other delivery devices, information conditions, or decision schedules, and a seven-day version of selected designs supports multi-day evaluation with the same individual and personal record (Section 5.3.1). § 5.3 uses these variants.

Information conditions. The reporting configuration ρ\rho takes three levels. Under I2, the agent receives sensor glucose, the device state needed to operate the pump, records of its own actions, and estimates derived from these records, and meals and other events are not reported. I1 adds the time and carbohydrate content of each meal. I0 further adds free-text reports, such as stated meal plans and descriptions of upcoming events.

Metrics

All metrics use the true glucose trajectory sampled every 5 minutes. Let g1,…,gng_1,\ldots,g_n denote these samples in mg/dL. We compute time in range TIR =100n−1∑j=1n1{72.064≤gj≤144.128}=100n^{-1}\sum_{j=1}^{n}1\{72.064\le g_j\le144.128\} and time below range TBR =100n−1∑j=1n1{gj<70}=100n^{-1}\sum_{j=1}^{n}1\{g_j<70\} as percentages. TIR uses 4–8 mmol/L (72.064–144.128 mg/dL) throughout the main experiments and ablations. This range is tighter than the consensus target and is specific to the benchmark, while the hypoglycemia threshold of 70 mg/dL follows the CGM consensus ([5]). The glucose standard deviation is σg=n−1∑j=1n(gj−gˉ)2\sigma_g=\sqrt{n^{-1}\sum_{j=1}^{n}(g_j-\bar{g})^2}, where gˉ=n−1∑j=1ngj\bar{g}=n^{-1}\sum_{j=1}^{n}g_j.

Overall score. We adapt COGI, which combines time in range, hypoglycemia, and glucose variability with weights of 0.50, 0.35, and 0.15 ([23]). Our research variant COGI-4-8 (abbreviated COGI below) replaces the published 70–180 mg/dL TIR band with 4–8 mmol/L, while retaining the hypoglycemia and population-SD components. Let c(x)=min⁡(1,max⁡(0,x))c(x)=\min(1,\max(0,x)). Its three subscores are

STIR=TIR,S_{\mathrm{TIR}}=\mathrm{TIR},
SHypo=100c(1−TBR15),S_{\mathrm{Hypo}}=100c\left(1-\frac{\mathrm{TBR}}{15}\right),
SGV=100c(108−σg90).S_{\mathrm{GV}}=100c\left(\frac{108-\sigma_g}{90}\right).

The hypoglycemia subscore decreases from 100 at zero TBR to zero at 15% TBR. The variability subscore decreases from 100 at a standard deviation of 18 mg/dL to zero at 108 mg/dL. The overall score is

S=0.50STIR+0.35SHypo+0.15SGV.S=0.50S_{\mathrm{TIR}}+0.35S_{\mathrm{Hypo}}+0.15S_{\mathrm{GV}}.

COGI and all three subscores range from 0 to 100, with higher values indicating better control. Results report their means across episodes with equal weight per task.

Experiments

Setting

Protocol. We evaluate all methods on the 212 tasks of SweetBench. Each 72-hour episode fixes the patient, initial state, event calendar, and random seed, and uses a simulated Dana-i pump, insulin aspart, and real-time CGM under I2. Meals and other events remain unreported. Each method acts through the same device interface using only visible measurements and records; the environment continues to evolve between decisions. The main evaluation adds no separate background HCL controller. We compute COGI and its three subscores from 864 five-minute true-glucose samples per episode, then average completed episodes with equal weight (§ 4.2).

Baseline Setting. We compare three controllers. Basal–Bolus (BB) follows a prescribed basal schedule and calculates meal and correction boluses from reported carbohydrates, glucose, carbohydrate ratio, insulin sensitivity, and insulin on board [15, 11]. Event-Aware Basal–Bolus (BB+Rules) augments this BB policy with predefined rules for glucose trends, reported exercise and illness, and device problems [31]. OpenAPS uses its open-source dosing core to compute temporary basal adjustments and micro-boluses from glucose feedback. All three controllers use 15-minute decision intervals and the same visible observations. Appendix § 15.§ 2 specifies the formulas, rules, and OpenAPS implementation; the case studies also use OpenAPS as their reference.

APC Setting. We evaluate APC with five language-model backends using a shared control objective, device-tool interface, and personal-record mechanism. The fixed decision interval is 60 minutes, with reasoning effort set to high.

Main Results

Table 3 reports the results. APC with Claude Opus 5.5 has the highest mean COGI, 73.54, followed by GPT 6.1 Sol (70.58), DeepSeek 4.1 Flash (68.61), Kimi K3.1 Pro (67.15), and GLM 5.3 Flash (66.25). OpenAPS at a 15-minute interval achieves a COGI of 71.19. APC with Claude Opus 5.5 scores higher, while the other four models score lower. Because more frequent model calls increase computational cost, we further examine cooperation between a high-frequency background loop and lower-frequency agent decisions in the CL-on/off experiments below.

Table 3 Main evaluation. APC rows average completed 72-hour episodes under I2 with a 60-minute decision interval. The three baselines use 15-minute decisions; APC uses high reasoning effort. COGI and its three unweighted subscores range from 0 to 100, higher being better.

Controller / modelIntervalCOGISTIRS_{\mathrm{TIR}}SHypoS_{\mathrm{Hypo}}SGVS_{\mathrm{GV}}
Baselines
BB [11]15 min61.1633.8294.5474.42
BB+Rules [31]15 min63.5738.3595.0474.21
OpenAPS [30]15 min71.1951.6296.4577.48
APCAPC (backend model)
Claude Opus 5.5 [3]60 min73.5454.5897.2981.28
GPT 6.1 Sol [29]60 min70.5849.0797.9378.42
DeepSeek 4.1 Flash [9]60 min68.6144.9597.2580.64
Kimi K3.1 Pro [27]60 min67.1543.5896.6576.90
GLM 5.3 Flash [13]60 min66.2541.0096.8079.17

Table 3.

Ablations

Does Personal Experience Improve Control?

We test whether personal records and end-of-day review improve control across days. On six configurations over seven days, we compare four conditions: daily record reset, which passes no personal record to the next day; cross-day record only, which retains personal records for the next day without additional end-of-day

How Do Delivery Devices Affect Control?

review; record + review-generated plan, which retains records and reviews the day’s treatment responses to generate a plan for subsequent control; and record + plan + execution feedback, which additionally incorporates feedback on the execution of previous plans into the review. All conditions reset the conversation daily while maintaining continuous physiology and fixed model weights.

Retaining records raises whole-week COGI from 71.1 to 74.4; adding review and planning raises it to 78.7 (Table 4). Adding execution feedback raises it by another 0.3 points. Figure 3 shows the daily scores under all four conditions. Gains mainly come from time in range, and all conditions retain the maximum hypoglycemia subscore. Over this week, records and review support improvement without weight updates; reviewing past responses helps the agent use accumulated experience in subsequent control.

ConditionD1D2D3D4D5D6D7
Daily record reset72.667.566.976.370.770.273.9
Cross-day record only73.171.571.576.672.175.280.5
Record + review-generated plan72.772.373.083.880.683.285.6
Record + plan + execution feedback74.372.173.485.679.382.386.3
ConditionCOGISTIRS_{\mathrm{TIR}}SHypoS_{\mathrm{Hypo}}SGVS_{\mathrm{GV}}
Daily record reset71.143.3100.096.2
Cross-day record only74.449.4100.097.9
Record + review-generated plan78.758.0100.097.9
Record + plan + execution feedback79.058.6100.098.1

Table 4. Seven-day record and review ablation. Six held-out configurations; Claude Opus 5.5, Dana-i, real-time CGM, I2, fixed weights, one run per condition and configuration. Historical runs use an earlier prompt; we recompute COGI from saved glucose. Review adds model calls, with the treatment-decision budget unchanged. Entries average the six configurations. (a) Daily COGI. (b) Whole-week COGI and subscores. Whole-week scores use pooled seven-day samples; daily scores use separate 24-hour windows.

Figure 3. Daily scores under the four record and review conditions. Each point is the mean COGI across six configurations in the corresponding 24-hour window, matching Table 4(a). Lines connect daily means without smoothing. The four conditions are defined in the text.

How Do Delivery Devices Affect Control?

We compare pens and DASH with CL off or on in Slow-Meal Overlap, Stress Resolution, and Post-Illness Refeeding, testing both delivery options and cooperation with a background controller. Each configuration uses the same agent for a 72-hour run in each case. DASH-w/o CL scores approximately 6–8 points above pens, mainly through time in range and variability (Table 5). Turning CL on further raises COGI by 4.63 and 2.53 points in the first two cases and gives a similar score in the third, without increasing the agent’s decision frequency. The background HCL supplies frequent basal-rate adjustments, while the agent integrates observations and personal history to choose doses, carbohydrate intake, and device actions. The trajectories show how adjustable infusion follows prolonged absorption and changing insulin needs (Figure 4). These cases show that delivery configurations shape control performance and support the potential of high-frequency closed-loop control combined with lower-frequency agent decisions.

ConfigurationSlow-Meal OverlapSlow-Meal OverlapSlow-Meal OverlapStress ResolutionStress ResolutionStress ResolutionPost-Illness RefeedingPost-Illness RefeedingPost-Illness Refeeding
Woman, 39 yBoy, 15 yBoy, 9 y
COGISTIRS_{\mathrm{TIR}}SGVS_{\mathrm{GV}}COGISTIRS_{\mathrm{TIR}}SGVS_{\mathrm{GV}}COGISTIRS_{\mathrm{TIR}}SGVS_{\mathrm{GV}}
APC + Pens74.6152.5588.9072.3351.0478.7167.1046.7658.11
APC + DASH-w/o CL80.5661.11100.0080.2263.6689.2974.6760.8861.57
APC + DASH-w/ CL85.1971.1897.3382.7568.5289.9374.5160.8860.49
DASH-w/ CL only71.7743.8798.9379.1261.1190.4167.6748.8455.02

Table 5. Delivery devices and background closed-loop control. Each configuration runs for 72 hours per case; APC uses Claude Opus 5.5. Bold marks the highest COGI per case.

Figure 4. Three hardware trajectories within each scenario. Each panel overlays the complete 72-hour true-glucose trajectories for the same patient and exogenous event sequence: pens, DASH-w/o CL (without background closed-loop control), and DASH-w/ CL (with background closed-loop control). The pale teal horizontal band is 4–8 mmol/L, and time is relative to each episode start.

We additionally evaluate standalone closed-loop control without an agent every five minutes, using the same DASH/Fiasp configuration, patients, seeds, events, and CGM conditions, with rule-based sensor maintenance. Agent + closed-loop control exceeds this reference by 13.42, 3.63, and 6.84 COGI points in the three cases, respectively, mainly through more time in range.

All runs have SHypo=100S_{\mathrm{Hypo}} = 100 and zero time below 70 mg/dL; STIRS_{\mathrm{TIR}} uses 4–8 mmol/L. Pens use aspart and degludec, with at most five injections per day; DASH uses Fiasp. CL denotes the default background HCL in our DASH configuration. APC retains the main decision schedule with CL off or on; CL alone runs every five minutes with rule-based sensor maintenance. See Appendix § 15.§ 2 for implementation.

How Do Information and Decision Frequency Affect Control?

We test the effects of information and decision frequency in Infusion-Site Leakage and Mixed-Intensity Exercise. Each scenario crosses three information levels with fixed intervals of 15, 30, 60, and 120 minutes, giving 24 runs of 72 hours each with the same extra-decision allowance. At a fixed 60-minute interval, moving from I2 to I0 raises COGI by 43.2 points on leakage and 15.7 on exercise (Table 6). Under I2, shortening the interval from 120 to 15 minutes adds 10.5 and 3.7 points, respectively. Averaged over both scenarios and all information levels, input-token use at 15 minutes is about 4.2 times that at 60 minutes. In these two cases, added context yields larger gains than increasing frequency alone. Frequent decisions partly compensate for missing information but require more computation. Together with the CL-on/off results and the interval sweep for OpenAPS (Appendix § 15.§ 2), this supports using frequent background control alongside an agent that makes informed, less frequent decisions.

Table 6 Information and decision-frequency comparison. Claude Opus 5.5 under the main protocol; one 72-hour run per cell, 24 in total. I2 provides device observations and own records; I1 adds meal times and carbohydrate amounts; I0 adds free-text context. All arms share the same patient, seed, initial state, and events within each scenario, with at most six extra decisions per local day. Entries are COGI-4-8 totals.

Scenario / patientInformation15 min30 min60 min120 min
Infusion-Site Leakage<br>Man, 39 yI097.8098.9698.3899.71
Infusion-Site Leakage<br>Man, 39 yI166.7069.5760.0756.00
Infusion-Site Leakage<br>Man, 39 yI262.1059.9455.1951.59
Mixed-Intensity Exercise<br>Man, 39 yI098.8498.6797.8694.39
Mixed-Intensity Exercise<br>Man, 39 yI198.7896.1896.2992.55
Mixed-Intensity Exercise<br>Man, 39 yI285.2785.4182.1281.59

Table 6.

Case Study

We examine three episodes of APC with Claude Opus 5.5 from the main evaluation: two where it scores above OpenAPS and one where it scores below. Table 7 gives their scores. In C04 the advantage comes mainly from reducing hypoglycemia; in F06 the agent also improves time in range when sensor bias masks low glucose. In E04 both controllers avoid hypoglycemia completely, and the agent falls behind on time in range and variability. These are illustrative cases, not estimates of average effects.

Table 7 Whole-episode outcomes for the three case studies. Claude Opus 5.5 and OpenAPS in the same world under I2; each row is one 72-hour episode. COGI and its three unweighted subscores range from 0 to 100, higher being better. Bold indicates the better value within each case, including ties.

CaseControllerCOGISTIRS_{\mathrm{TIR}}SHypoS_{\mathrm{Hypo}}SGVS_{\mathrm{GV}}
C04, adult femaleClaude Opus 5.585.0684.1483.0292.85
C04, adult femaleOpenAPS77.7385.4259.1095.57
F06, child femaleClaude Opus 5.572.7568.5276.8577.26
F06, child femaleOpenAPS48.5257.1826.7070.61
E04, adolescent femaleClaude Opus 5.547.3710.65100.0047.00
E04, adolescent femaleOpenAPS66.2044.56100.0059.48

Table 7.

Responding to an unreported glucose sink. In C04, a 39-year-old woman skips breakfast and lunch and exercises repeatedly for long periods before a late meal, so hypoglycemia is a constant risk. APC scores 85.06 against 77.73 for OpenAPS (+7.33). Its time in 4–8 mmol/L is 84.14%, slightly below OpenAPS’s 85.42%, but its time below 70 mg/dL is 2.55%, compared with 6.13% for OpenAPS. Figure 5 marks three decisions. At marker 1 (10.58 h), a meter check confirms a low of 67 mg/dL and the agent gives 12 g of fast carbohydrate. As glucose keeps falling with little insulin recorded as active, the agent’s rationale raises the possibility of unreported exercise, and it responds with carbohydrate and temporary basal reductions that it can later reverse. At marker 2 (58 h), its record of low glucose in the late morning on the two previous days leads it to lower the temporary basal rate to 20% early, and it adds carbohydrate at 58.42 and 58.58 h as glucose continues to drop. At marker 3 (68 h), having seen a strong fall after an earlier correction, it gives only 0.7 U, and when glucose falls faster than it predicted, it lowers basal delivery again. In this episode the agent checks the sensor against the meter, revises its explanation when the response does not match, and carries lessons

Figure 5. Stronger control: C04, adult female. Solid blue shows true glucose under agent control; open circles mark meter checks; dashed gold shows OpenAPS true glucose in the same world; and the pale teal band marks 4–8 mmol/L. The event lane shows hidden fasting, exercise, and meals. Lower lanes show realized basal delivery relative to scheduled basal, boluses, and carbohydrate rescue. Numbered markers identify the decisions discussed in the text.

from earlier days into later doses.

Discussion

Detecting low glucose hidden by sensor bias. In F06, a 9-year-old girl misses breakfast after a meal bolus and then exercises while a positive sensor bias masks the fall in true glucose. APC scores 72.75 against 48.52 for OpenAPS (+24.22). Time in 4–8 mmol/L is 68.52% versus 57.18%, and time below 70 mg/dL is 3.47% versus 11.00%. Figure 6 highlights three decisions. At marker 1 (10 h), calibration gives a meter reading of 50 mg/dL when CGM had read about 94; the agent gives 12 g of fast carbohydrate five minutes later and checks again. At marker 2 (34 h), it explicitly recalls the earlier positive bias and obtains a meter reading of 51 despite CGM near 91. It gives 15 g and confirms a rise to 86 mg/dL fifteen minutes later. At marker 3 (55.08 h), its rationale cites the lows on both earlier mornings and starts a two-hour temporary basal rate at 20% before the recurring decline. Lows still occur and require further carbohydrate rescue. This case shows how the agent can combine repeated meter checks with saved experience to adjust earlier and reduce hypoglycemia.

Figure 6. Stronger control under sensor bias: F06, child female. Curve and meter conventions match Figure 5, with OpenAPS as the comparator. The event lane shows hidden fasting, exercise, positive sensor drift, and meals. Lower lanes show the agent’s basal changes, boluses, and carbohydrate rescue; gray diamonds mark preset meal boluses from the event calendar, not agent decisions. Markers identify meter verification on the first two mornings and an earlier basal reduction on the third. Hidden events are retrospective annotations, not agent inputs.

Losing track of a recurring delivery fault. In E04, an adolescent girl has recurring infusion-site leakage and intermittent positive sensor drift. APC scores 47.37 against 66.20 for OpenAPS (−18.83), with 10.65% of the time in 4–8 mmol/L and no true glucose below 70 mg/dL, so the deficit comes from persistent hyperglycemia and high variability. Near marker 1 in Figure 7, the agent uses meter checks and calibration to detect the sensor disagreement, but it repeatedly attributes the weak response to insulin to unreported food or changing insulin needs. It changes the infusion set at 13 h (marker 2), about 12.75 h after the leak began, and the saved simulator state confirms that effective delivery then recovers from 15% to 100%. When the leak returns near 24.17 h and 48.33 h, however, it does not change the set again. At marker 3 (50 h), with CGM at its upper display limit, it gives another 2.5 U. Over the episode it requests 60 boluses, of which 59 are delivered and one is rejected by the minimum-interval rule, and it changes the set only once. The agent found the fault once but did not test that explanation again when the same symptoms returned, and it kept adding insulin instead of looking for the cause.

Figure 7. Weaker control: E04, adolescent female. Curve and action conventions match Figure 5. Orange shading in the event lane marks evaluator-confirmed reduced tissue delivery; hatching marks programmed sensor-drift intervals, and triangles mark hidden meals. The vertical dashed line in the bolus lane is the sole infusion-set change; the red cross marks the rejected bolus request. The empty carbohydrate lane indicates that no carbohydrate rescue was issued. The repair and later recurrence can be verified from effective delivery, whereas the agent sees only measurements and device and action records.

Discussion

Decision Making under Incomplete Information

The information ablation identifies an opportunity to improve how agents combine measurements, event context, and personal history. Added context improves control more than increasing decision frequency alone in the tested cases. Explicit uncertainty estimates and targeted measurement requests could help the agent distinguish changing insulin needs from delivery or sensor problems. Personal records can retain these inferences and guide later reassessment.

Safety

Insulin continues to act after delivery, making dose history and reassessment timing central to physiological control [15]. Dose limits, insulin-on-board estimation, and low-glucose monitoring provide concrete opportunities for improving agent design. The CL-on/off cases also motivate combining frequent background regulation with less frequent agent decisions. Separate hypoglycemia scores and action records support assessment of these designs alongside overall control performance.

Sim2Real Gap

Sim2Real Gap

Patient-specific reconstruction offers a path to improving simulator fidelity. Real CGM and device records can inform physiology, sensor errors, and event patterns; held-out records can then assess the reconstructed environment. A Real2Sim2Real cycle would let the agent develop a strategy in that environment and refine both the strategy and the environment as further patient observations become available.

Related Work

Medical AI and benchmarks. MultiMedQA and HealthBench assess clinical knowledge and health-related responses, while AMIE studies diagnostic dialogue and longitudinal disease management [36, 4, 37, 26]. AgentMD and TxAgent connect medical reasoning to clinical calculators and biomedical evidence [19, 12]. AgentClinic, MedAgentBench, LongMedBench, and HealthAgentBench evaluate agents through simulated consultations, electronic health records, longitudinal data, and clinical tool workflows [33, 18 Xu et al.,]

2026; Liu et al., [25]).

Long-horizon agents. ReAct interleaves reasoning with environment actions; WebArena, OSWorld, and SWE-agent study extended tool use in web, desktop, and software tasks (Yao et al., [45]; Zhou et al., 2023; Xie et al., [42]; Yang et al., [44]). SayCan and Code as Policies connect language-based planning to robot skills and control interfaces (Ahn et al., [1]; Liang et al., [24]). Reflexion, ExpeL, and Voyager retain feedback, experience, or executable skills to improve later decisions without updating model weights (Shinn et al., [35]; Zhao et al., [48]; Wang et al., [40]).

Type 1 diabetes and glucose control. CGM-Agent analyzes personal glucose records; DM-Bench and HealthLoopQA evaluate decisions and temporal reasoning over supplied histories (Cui et al., [8]; Cardei et al., [7]; Niu et al., [28]). DIETS and meal-planning agents optimize candidate interventions using glucose forecasts (Zeng et al., [47]; Huang et al., [16]). UVA/Padova and simglucose support virtual-patient evaluation, while automated insulin delivery and reinforcement-learning controllers adjust treatment from glucose feedback (Visentin et al., [39]; Xie, [41]; Brown et al., [6]; Sherr et al., [34]; Hettiarachchi et al., [14]; Khamesian et al., [21]). LLM-T1D distills a reinforcement-learning policy into a language model for insulin-rate control and evaluates it in randomized 24-hour simulations [32].

Future Work

Reinforcement learning. APC adapts through its personal record while its weights stay fixed. DiabetSim also makes it possible to train on physiological outcomes directly. Reinforcement learning can update the policy for treatment, measurement, and reassessment timing, and combining it with the record would let the agent acquire general skills and person-specific knowledge together.

Real2Sim2Real. We plan to reconstruct patient-specific environments from real CGM and device records. An agent would first build its record and strategy inside a person’s reconstructed environment, then assist that person, with each new observation used to refine both the environment and the agent.

Beyond type 1 diabetes. APC applies wherever devices can measure and act on a physiological system and its outcome can be scored. Candidate domains include other conditions managed with drug-delivery devices and intensive-care treatment, where learned treatment policies have already been studied [22]. Each new domain needs its own devices, environment, and score, and building them is work we hope to share with the community.

Conclusion

We introduce DiabAgent, comprising the APC framework, the DiabetSim simulator, and the SweetBench benchmark. APC links agent decisions to medical-device actions and applies this control loop to glucose management in type 1 diabetes. DiabetSim provides virtual testing across patients, events, devices, and observation conditions. SweetBench turns this environment into 212 tasks for evaluating the physiological outcomes of agent decisions. Together, these components establish a reproducible research setting for agentic physiological control. We hope DiabAgent provides a foundation for agents to participate in human physiological control and supports extending this research to other physiological systems.

Acknowledgments

We thank Einsia AI for sponsoring this work. We also thank the volunteers from the Sweetie Online Community for their professional advice and testing.

Scenario Designs

Table 8 lists all 32 scenario designs and their 212 evaluation tasks. IDs use a letter and two digits: A1 and E3 denote A01 and E03, respectively. Event timing and magnitude vary by patient configuration.

Simulator Specification

This section specifies monitoring interfaces and delivery-device constraints.

Observation Interface

Each decision receives device readings and state, visible delivery and event records, and insulin- and carbohydrate-on-board estimates. Real-time CGM supplies readings automatically; scan sensors and meters provide readings through scan or fingerstick actions. The information condition determines which event reports are visible, while sensor state determines reading availability and freshness. Table 9 lists the monitoring interfaces.

Function / parameterMeterDexcom G5Dexcom G6/G7Guardian 3Libre 2/3 real-timeLibre 1 scanLibre 2 scan
MEASURE_BG from this device✓××××××
SCAN×××××✓✓
CALIBRATE_CGM×✓m×✓m×××
High/low-only alarm before scan××××××✓a
Observation modePointReal-timeReal-timeReal-timeReal-timeScanScan
Simulated sensor interval (min)Per check555555

Table 9. Sensing-device capability matrix. Each column describes the device itself; a separately configured meter adds fingerstick measurement to any sensor combination. ✓m requires that meter; ✓a requires the optional alarm to be configured.

Action Sets

The delivery configuration specifies available operations, dose units, bounds, and steps. Pump operations include boluses, temporary basal rates, suspension, and infusion-set changes; pens support discrete injections. The device interface validates each command, uses device state to determine actual delivery, and returns the execution result. Waiting and carbohydrate intake are common to all configurations. Table 10 summarizes the simulated device constraints, drawing on manufacturer documentation and AndroidAPS drivers [2].

Function / parameterPens (MDI)ComboDASHDana-iMedtrum NanoInsight
Ordinary bolus✓✓✓✓✓✓
Long-acting insulin injection✓×××××
Set / cancel temporary basal×✓✓✓✓✓
Suspend / resume pump×✓✓✓✓✓
Infusion-site / pod change×✓✓✓✓✓
Independent ordinary-bolus cancellation××✓✓✓✓
Set / cancel extended bolus×××✓×✓
Bolus increment (U)Pen-specific0.10.050.050.050.01
Bolus speed (U/min)Immediate121.551.56
Native temporary-basal type–PercentAbsolutePercentAbsolutePercent
Temporary-basal increment–10%0.05 U/h10%0.05 U/h10%
Simulated temporary-basal maximum–500%30 U/h200%25 U/h250%
Temporary-basal duration grid (min)–1530153015

Table 10. Delivery-device capability matrix. ✓: the function is exposed for this model; ×: not exposed.

Evaluation Details

Shared Evaluation Protocol

The main evaluation uses Dana-i, insulin aspart, and real-time CGM for 72-hour episodes under I2. The agent decides every 60 minutes with at most six event-triggered decisions per local day. The shared prompt supplies the COGI-4-8 objective, personal therapy settings, device limits, and available information. It prefers 5–6 mmol/L when safely achievable; the scoring band remains 4–8 mmol/L. Each decision executes one environment action. Personal notes persist within an episode and reset between tasks. All model backends request high reasoning effort. Table 11 lists the model harnesses.

ModelHarness typeVersionEffort
Claude Opus 5.5Claude Code2.1.296high
GPT 6.1 SolCodex CLI0.163.0high
DeepSeek 4.1 FlashClaude Code2.1.296high
Kimi K3.1 ProClaude Code2.1.296high
GLM 5.3 FlashClaude Code2.1.296high

Table 11. Model harnesses, versions, and reasoning effort.

Baselines and Background Control

BB and BB+Rules. We implement BB with a prescribed basal schedule and a bolus calculator [15, 11]. The calculator returns u=max⁡(0,fC/CR+q)u = \max(0, fC/CR + q), where CC is reported carbohydrate intake, CRCR is the carbohydrate ratio, and f=1f = 1 for BB. Let c=(G−Gtarget)/ISFc = (G - G_{\mathrm{target}})/ISF, where GG is observed glucose and ISFISF is insulin sensitivity. The correction term is q=max⁡(0,c−IOB)q = \max(0, c - IOB) for c>0c > 0 and q=cq = c otherwise; IOBIOB denotes nonnegative bolus insulin on board, with total insulin on board as a fallback. Dose rounding, device limits, and minimum bolus intervals constrain execution. BB also includes low-glucose treatment and responses to explicit device prompts. Our BB+Rules extension adjusts ff, incorporates CGM trends into GG, and adds predefined rules for exercise, illness, temporary basal changes, and device maintenance [31]. Both use only visible reports and records, with 15-minute consultation intervals in the main evaluation. Meal boluses require an available meal report.

OpenAPS. Our OpenAPS baseline uses the oref1 algorithm with npm release 0.7.1 of the official OpenAPS repository, https://github.com/openaps/oref0, and its MIT-licensed dosing core [30], with super-micro-boluses (SMB) and unannounced-meal (UAM) prediction enabled. Our adapter constructs inputs from visible CGM, delivery records, personal therapy parameters, and carbohydrate estimates, and enforces device limits. UAM deviation slopes and sensitivity adaptation use approximate implementations.

OpenAPS decision frequency. We vary the fixed decision interval of this baseline from 15 to 240 minutes. Shortening the interval from 240 to 15 minutes raises COGI from 56.84 to 71.19 (Table 12), showing the benefit of more frequent feedback for this controller.

Decision interval (min)153060120240
COGI71.1968.4063.2059.5356.84

Table 12. Decision-frequency ablation for OpenAPS. Entries are COGI, with higher values indicating better control.

HCL. HCL denotes the default DASH background controller: DASH-w/ CL enables it and DASH-w/o CL disables it. This software layer follows public closed-loop designs and integrates the OpenAPS core to adjust basal delivery when new CGM readings arrive [30]. The agent retains its decision schedule and selects doses, carbohydrate intake, and device actions; an agent-set temporary basal takes priority until expiry or cancellation. The standalone reference runs the same closed-loop implementation every five minutes under matching DASH/Fiasp, patient, seed, event, and CGM conditions, with rule-based sensor maintenance and no agent.

References

  1. [1]Michael Ahn, Anthony Brohan, Noah Brown, Yevgen Chebotar, Omar Cortes, Byron David, Chelsea Finn, Chuyuan Fu, Keerthana Gopalakrishnan, Karol Hausman, Alex Herzog, Daniel Ho, Jasmine Hsu, Julian Ibarz, Brian Ichter, Alex Irpan, Eric Jang, Rosario Jauregui Ruano, Kyle Jeffrey, Sally Jesmonth, Nikhil J. Joshi, Ryan Julian, Dmitry Kalashnikov, Yuheng Kuang, Kuang-Huei Lee, Sergey Levine, Yao Lu, Linda Luu, Carolina Parada, Peter Pastor, Jornell Quiambao, Kanishka Rao, Jarek Rettinghouse, Diego Reyes, Pierre Sermanet, Nicolas Sievers, Clayton Tan, Alexander Toshev, Vincent Vanhoucke, Fei Xia, Ted Xiao, Peng Xu, Sichun Xu, Mengyuan Yan, and Andy Zeng. Do As I Can, Not As I Say: Grounding Language in Robotic Affordances, 2022. URL https://arxiv.org/abs/2204.01691.
  2. [2]AndroidAPS community. AndroidAPS documentation. https://androidaps.readthedocs.io, 2026. Pump driver limits in PumpType.kt, https://github.com/nightscout/AndroidAPS. Accessed October 2026.
  3. [3]Anthropic. Claude Opus 5.5 system card, 2026. URL https://www.anthropic.com/claude-opus-5-5-system-card. Accessed November 2, 2026.
  4. [4]Rahul K. Arora, Jason Wei, Rebecca Soskin Hicks, Preston Bowman, Joaquin Quiñonero-Candela, Foivos Tsimpourlas, Michael Sharman, Meghan Shah, Andrea Vallone, Alex Beutel, Johannes Heidecke, and Karan Singhal. HealthBench: Evaluating Large Language Models Towards Improved Human Health, 2025. URL https://arxiv.org/abs/2505.08775.
  5. [5]Tadej Battelino, Thomas Danne, Richard M. Bergenstal, Stephanie A. Amiel, Roy Beck, Torben Biester, Emanuele Bosi, Bruce A. Buckingham, William T. Cefalu, Kelly L. Close, Claudio Cobelli, Eyal Dassau, J. Hans DeVries, Kim C. Donaghue, Klemen Dovc, Francis J. Doyle, III, Satish Garg, George Grunberger, Simon Heller, Lutz Heinemann, Irl B. Hirsch, Roman Hovorka, Weiping Jia, Olga Kordonouri, Boris Kovatchev, Aaron Kowalski, Lori Laffel, Brian Levine, Alexander Mayorov, Chantal Mathieu, Helen R. Murphy, Revital Nimri, Kirsten Nørgaard, Christopher G. Parkin, Eric Renard, David Rodbard, Banshi Saboo, Desmond Schatz, Keaton Stoner, Tatsuiko Urakami, Stuart A. Weinzimer, and Moshe Philip. Clinical Targets for Continuous Glucose Monitoring Data Interpretation: Recommendations From the International Consensus on Time in Range. Diabetes Care, 42(8):1593–1603, 2019. doi: 10.2337/dci19-0028. URL https://doi.org/10.2337/dci19-0028.
  6. [6]Sue A. Brown, Boris P. Kovatchev, Dan Raghinaru, John W. Lum, Bruce A. Buckingham, Yogish C. Kudva, Lori M. Laffel, Carol J. Levy, Jordan E. Pinsker, R. Paul Wadwa, Eyal Dassau, Francis J. Doyle, III, Stacey M. Anderson, Mei Mei Church, Vikash Dadlani, Laya Ekhlaspour, Gregory P. Forlenza, Elvira Isganaitis, David W. Lam, Craig Kollman, and Roy W. Beck. Six-Month Randomized, Multicenter Trial of Closed-Loop Control in Type 1 Diabetes. New England Journal of Medicine, 381(18):1707–1717, 2019. doi: 10.1056/nejmoa1907863. URL https://doi.org/10.1056/NEJMoa1907863.
  7. [7]Maria Ana Cardei, Josephine Lamp, Mark Derdzinski, and Karan Bhatia. DM-Bench: Benchmarking LLMs for Personalized Decision Making in Diabetes Management, 2025. URL https://arxiv.org/abs/2510.00038.
  8. [8]Yanjun Cui, Ali Emami, Temiloluwа Prioleau, and Nikhil Singh. If Only My CGM Could Speak: A Privacy-Preserving Agent for Question Answering over Continuous Glucose Data, 2026. URL https://arxiv.org/abs/2604.17133.
  9. [9]DeepSeek-AI. DeepSeek-V4.1-Flash: Pushing the limits of KV cache compression, 2026. URL https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash.arxiv.org/abs/2609.19969
  10. [10]Julia Deichmann, Sara Bachmann, Marie-Anne Burckhardt, Marc Pfister, Gabor Szinnai, and Hans-Michael Kaltenbach. New model of glucose-insulin regulation characterizes effects of physical activity and facilitates personalized treatment evaluation in children and adults with type 1 diabetes. PLOS Computational Biology, 19(2):e1010289, 2023. doi: 10.1371/journal.pcbi.1010289. URL https://doi.org/10.1371/journal.pcbi.1010289.
  11. [11]Ian Fox, Joyce Lee, Rodica Pop-Busui, and Jenna Wiens. Deep Reinforcement Learning for Closed-Loop Blood Glucose Control. In Proceedings of the 5th Machine Learning for Healthcare Conference, volume 126 of Proceedings of Machine Learning Research, pages 508–536, 2020. URL https://proceedings.mlr.press/v126/fox20a.html.arxiv.org/abs/2009.09051
  12. [12]Shanghua Gao, Richard Zhu, Zhenglun Kong, Ayush Noori, Xiaorui Su, Curtis Ginder, Theodoros Tsiligkaridis, and Marinka Zitnik. TxAgent: An AI Agent for Therapeutic Reasoning Across a Universe of Tools, 2025. URL https://arxiv.org/abs/2503.10970.
  13. [13]GLM-5-Team et al. GLM-5: from vibe coding to agentic engineering, 2026. URL https://arxiv.org/abs/2602.15763.
  14. [14]Chirath Hettiarachchi, Nicolo Malagutti, Christopher J. Nolan, Hanna Suominen, and Elena Dasakalaki. G2P2C — A modular reinforcement learning algorithm for glucose control by glucose prediction and planning in Type 1 Diabetes. Biomedical Signal Processing and Control, 90:105839, 2024. doi: 10.1016/j.bspc.2023.105839. URL https://doi.org/10.1016/j.bspc.2023.105839.
  15. [15]Richard I.G. Holt, J. Hans DeVries, Amy Hess-Fischl, Irl B. Hirsch, M. Sue Kirkman, Tomasz Klupa, Barbara Ludwig, Kirsten Nørgaard, Jeremy Pettus, Eric Renard, Jay S. Skyler, Frank J. Snoek, Ruth S. Weinstock, and Anne L. Peters. The Management of Type 1 Diabetes in Adults. A Consensus Report by the American Diabetes Association (ADA) and the European Association for the Study of Diabetes (EASD). Diabetes Care, 44(11):2589–2625, 2021. doi: 10.2337/dci21-0043. URL https://doi.org/10.2337/dci21-0043.
  16. [16]Mingyu Huang, Weiqing Min, Ying Jin, Yilin Wang, and Shuqіang Jiang. From Prediction to Intervention: Personalized Meal-Level Glucose Regulation via an LLM Agent. In Findings of the Association for Computational Linguistics: ACL 2026, pages 21629–21645. Association for Computational Linguistics, 2026. doi: 10.18653/v1/2026.findings-acl.1087. URL https://doi.org/10.18653/v1/2026.findings-acl.1087.
  17. [17]International Organization for Standardization. ISO 15197:2013. In vitro diagnostic test systems — Requirements for blood-glucose monitoring systems for self-testing in managing diabetes mellitus. Standard, Geneva, Switzerland, 2013. URL https://www.iso.org/standard/54976.html.
  18. [18]Yixing Jiang, Kameron C. Black, Gloria Geng, Danny Park, James Zou, Andrew Y. Ng, and Jonathan H. Chen. MedAgentBench: A Realistic Virtual EHR Environment to Benchmark Medical LLM Agents, 2025. URL https://arxiv.org/abs/2501.14654.
  19. [19]Qiao Jin, Zhizheng Wang, Yifan Yang, Qingqing Zhu, Donald Wright, Thomas Huang, Nikhil Khandekar, Nicholas Wan, Xuguang Ai, W. John Wilbur, Zhe He, R. Andrew Taylor, Qingyu Chen, and Zhiyong Lu. AgentMD: Empowering language agents for risk prediction with large-scale clinical tool learning. Nature Communications, 16:9377, 2025. doi: 10.1038/s41467-025-64430-x. URL https://doi.org/10.1038/s41467-025-64430-x.
  20. [20]Leslie Pack Kaelbling, Michael L. Littman, and Anthony R. Cassandra. Planning and acting in partially observable stochastic domains. Artificial Intelligence, 101(1-2):99–134, 1998. doi: 10.1016/S0004-3702(98)00023-X. URL https://doi.org/10.1016/S0004-3702(98)00023-X.
  21. [21]Saman Khamesian, Sri Harini Balaji, Di Yang Shi, Stephanie M. Carpenter, Daniel E. Rivera, W. Bradley Knox, Peter Stone, and Hassan Ghasemzadeh. GUIDE: Reinforcement Learning for Behavioral Action Support in Type 1 Diabetes, 2026. URL https://arxiv.org/abs/2604.00385.
  22. [22]Matthieu Komorowski, Leo A. Celi, Omar Badawi, Anthony C. Gordon, and A. Aldo Faisal. The artificial intelligence clinician learns optimal treatment strategies for sepsis in intensive care. Nature Medicine, 24(11):1716–1720, 2018. doi: 10.1038/s41591-018-0213-5.DOI
  23. [23]Lalantha Leelarathna, Hood Thabit, Malgorzata E. Wilinska, Lia Bally, Julia K. Mader, Thomas R. Pieber, Carsten Benesch, Sabine Arnolds, Terri Johnson, Lutz Heinemann, Norbert Hermanns, Mark L. Evans, and Roman Hovorka. Evaluating Glucose Control With a Novel Composite Continuous Glucose Monitoring Index. Journal of Diabetes Science and Technology, 14(2):277–283, 2020. doi: 10.1177/1932296819838525. URL https://doi.org/10.1177/1932296819838525.
  24. [24]Jacky Liang, Wenlong Huang, Fei Xia, Peng Xu, Karol Hausman, Brian Ichter, Pete Florence, and Andy Zeng. Code as Policies: Language Model Programs for Embodied Control, 2022. URL https://arxiv.org/abs/2209.07753.
  25. [25]Qianchu Liu, Sheng Zhang, Guanghui Qin, Jeya Maria Jose Valanarasu, Xiaoke Huang, Peniel Argaw, Maximilian Rokusss, Mingyu Lu, Timothy Ossowski, Juan Manuel Zambrano Chaves, Cliff Wong, Naisargi Patel, Yashna Hasija, Mu Wei, Wen-wai Yim, Qin Liu, Zilin Jing, Jason Entenmann, Naoto Usuyama, Tristan Naumann, and Hoifung Poon. HealthAgentBench: A Unified Benchmark Suite of Realistic Agentic Healthcare Environments for Challenging Frontier AI Agents, 2026. URL https://arxiv.org/abs/2606.31179.
  26. [26]Valentin Liévin, Anil Palepu, Wei-Hung Weng, Khaled Saab, David Stutz, Yong Cheng, Kavita Kulkarni, S. Sara Mahdavi, Joëlle Barral, Dale R. Webster, Katherine Chou, Avinatan Hassidim, Yossi Matias, James Manyika, Ryutaro Tanno, Vivek Natarajan, Adam Rodman, Tao Tu, Alan Karthikesalingam, and Mike Schaekermann. Towards conversational artificial intelligence for disease management. Nature, 655(8125):1292–1299, 2026. doi: 10.1038/s41586-026-10764-5. URL https://doi.org/10.1038/s41586-026-10764-5.
  27. [27]Moonshot AI. Introducing Kimi K3.1 Pro, 2026. URL https://www.kimi.ai/blog/kimi-k3-1-pro. Accessed November 2, 2026.
  28. [28]Yuchen Niu, Yanan Ma, Srinivasan Nandakumar, Maolin Chen, Viktor Schlegel, Kexin Wei, Ling Cheng, Anna Bird, Anil Anthony Bharath, and Siew-Kei Lam. HealthLoopQA: A Context-Aware Question Answering Benchmark for Interpreting Wearable Monitoring Data in Diabetes Care, 2026. URL https://arxiv.org/abs/2609.06976.
  29. [29]OpenAI. Addendum to GPT-6 Astra system card: GPT-6.1 Sol, 2026. URL https://deploymentsafety.openai.com/gpt-6-1-sol. Accessed November 2, 2026.
  30. [30]OpenAPS community. OpenAPS documentation and the oref0 reference design. https://openaps.readthedocs.io, 2026. Accessed October 2026.
  31. [31]Michael C Riddell, Ian W Gallen, Carmel E Smart, Craig E Taplin, Peter Adolfsson, Alistair N Lumb, Aaron Kowalski, Remi Rabasa-Lhoret, Rory J McCrimmon, Carin Hume, Francesca Annan, Paul A Fournier, Claudia Graham, Bruce Bode, Pietro Galassetti, Timothy W Jones, Iñigo San Millán, Tim Heise, Anne L Peters, Andreas Petz, and Lori M Laffel. Exercise management in type 1 diabetes: a consensus statement. The Lancet Diabetes & Endocrinology, 5(5):377–390, 2017. doi: 10.1016/S2213-8587(17)30014-1. URL https://doi.org/10.1016/S2213-8587(17)30014-1.
  32. [32]Maya Sarkar. Interpretable Language Model for Closed-Loop Type 1 Diabetes Control, 2026. URL https://arxiv.org/abs/2607.14126.
  33. [33]Samuel Schmidgall, Rojin Ziaei, Carl Harris, Eduardo Reis, Jeffrey Jopling, and Michael Moor. AgentClinic: a multimodal agent benchmark to evaluate AI in simulated clinical environments, 2024. URL https://arxiv.org/abs/2405.07960.
  34. [34]Jennifer L. Sherr, Lutz Heinemann, G. Alexander Fleming, Richard M. Bergenstal, Daniela Bruttomesso, Hélène Hanaire, Reinhard W. Holl, John R. Petrie, Anne L. Peters, and Mark Evans. Automated Insulin Delivery: Benefits, Challenges, and Recommendations. A Consensus Report of the Joint Diabetes Technology Working Group of the European Association for the Study of Diabetes and the American Diabetes Association. Diabetes Care, 45(12):3058–3074, 2022. doi: 10.2337/dci22-0018. URL https://doi.org/10.2337/dci22-0018.
  35. [35]Noah Shinn, Federico Cassano, Edward Berman, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao. Reflection: Language Agents with Verbal Reinforcement Learning, 2023. URL https://arxiv.org/abs/2303.11366.
  36. [36]Karan Singhal, Shekoofeh Azizi, Tao Tu, S. Sara Mahdavi, Jason Wei, Hyung Won Chung, Nathan Scales, Ajay Tanwani, Heather Cole-Lewis, Stephen Pfohl, Perry Payne, Martin Seneviratne, Paul Gamble, Chris Kelly, Abubakr Babiker, Nathanael Schärli, Aakanksha Chowdhery, Philip Mansfield, Dina Demner-Fushman, Blaise Agüera y Arcas, Dale Webster, Greg S. Corrado, Yossi Matias, Katherine Chou, Juraj Gottweis, Nenad Tomasev, Yun Liu, Alvin Rajkomar, Joelle Barral, Christopher Semturs, Alan Karthikesalingam, and Vivek Natarajan. Large language models encode clinical knowledge. Nature, 620(7972):172–180, 2023. doi: 10.1038/s41586-023-06291-2. URL https://doi.org/10.1038/s41586-023-06291-2.
  37. [37]Tao Tu, Mike Schaekermann, Anil Palepu, Khaled Saab, Jan Freyberg, Ryutaro Tanno, Amy Wang, Brenna Li, Mohamed Amin, Yong Cheng, Elahe Vedadi, Nenad Tomasev, Shekoofeh Azizi, Karan Singhal, Le Hou, Albert Webson, Kavita Kulkarni, S. Sara Mahdavi, Christopher Semturs, Juraj Gottweis, Joelle Barral, Katherine Chou, Greg S. Corrado, Yossi Matias, Alan Karthikesalingam, and Vivek Natarajan. Towards conversational diagnostic artificial intelligence. Nature, 642(8067):442–450, 2025. doi: 10.1038/s41586-025-08866-7. URL https://doi.org/10.1038/s41586-025-08866-7.
  38. [38]Martina Vettoretti, Cristina Battocchio, Giovanni Sparacino, and Andrea Facchinetti. Development of an Error Model for a Factory-Calibrated Continuous Glucose Monitoring Sensor with 10-Day Lifetime. Sensors, 19(23):5320, 2019. doi: 10.3390/s19235320.DOI
  39. [39]Roberto Visentin, Enrique Campos-Náñez, Michele Schiavon, Dayu Lv, Martina Vettoretti, Marc Breton, Boris P. Kovatchev, Chiara Dalla Man, and Claudio Cobelli. The UVA/Padova Type 1 Diabetes Simulator Goes From Single Meal to Single Day. Journal of Diabetes Science and Technology, 12(2):273–281, 2018. doi: 10.1177/1932296818757747. URL https://doi.org/10.1177/1932296818757747.
  40. [40]Guanzhi Wang, Yuqi Xie, Yunfan Jiang, Ajay Mandlekar, Chaowei Xiao, Yuke Zhu, Linxi Fan, and Anima Anandkumar. Voyager: An Open-Ended Embodied Agent with Large Language Models, 2023. URL https://arxiv.org/abs/2305.16291.
  41. [41]Jinyu Xie. simglucose: A Type-1 Diabetes Simulator Implemented in Python for Reinforcement Learning Purpose. https://github.com/jxx123/simglucose, 2018. Accessed October 2026.
  42. [42]Tianbao Xie, Danyang Zhang, Jixuan Chen, Xiaochuan Li, Siheng Zhao, Ruisheng Cao, Toh Jing Hua, Zhoujun Cheng, Dongchan Shin, Fangyu Lei, Yitao Liu, Yiheng Xu, Shuyan Zhou, Silvio Savarese, Caiming Xiong, Victor Zhong, and Tao Yu. OSWorld: Benchmarking Multimodal Agents for Open-Ended Tasks in Real Computer Environments, 2024. URL https://arxiv.org/abs/2404.07972.
  43. [43]Zihan Xu, Yanzhen Chen, Xiaocheng Zhang, Zhiting Fan, Weiqi Zhai, Hongxia Xu, and Zuozhu Liu. LongMedBench: Benchmarking Medical Agents for Long-Horizon Clinical Decision-Making, 2026. URL https://arxiv.org/abs/2607.09322.
  44. [44]John Yang, Carlos E. Jimenez, Alexander Wettig, Kilian Lieret, Shunyu Yao, Karthik Narasimhan, and Ofir Press. SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering, 2024. URL https://arxiv.org/abs/2405.15793.
  45. [45]Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, and Yuan Cao. ReAct: Synergizing Reasoning and Acting in Language Models. In International Conference on Learning Representations, 2023. URL https://arxiv.org/abs/2210.03629.
  46. [46]Shunyu Yao, Noah Shinn, Pedram Razavi, and Karthik Narasimhan. τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domains, 2024. URL https://arxiv.org/abs/2406.12045.
  47. [47]Hanyu Zeng, Hui Ji, and Pengfei Zhou. DIETS: Diabetic Insulin Management System in Everyday Life, 2024. URL https://arxiv.org/abs/2411.12812.
  48. [48]Andrew Zhao, Daniel Huang, Quentin Xu, Matthieu Lin, Yong-Jin Liu, and Gao Huang. Expel: LLM Agents Are Experiential Learners. Proceedings of the AAAI Conference on Artificial Intelligence, 38(17):19632–19642, 2024. doi: 10.1609/aaai.v38i17.29936. URL https://doi.org/10.1609/aaai.v38i17.29936.

Paper details

vlnc:W_ayzztsjm
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 8

downloads · 1

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents