Skip to content

DiabAgent and SweetBench: An Agentic Benchmark for Insulin Dosing

THE ARGUMENT

The real contribution is not that an AI beats OpenAPS by 2.3 points; it is that physiological control now has a reproducible multi-day trajectory score, and the ablation signals — personal records and context — matter more for buyers than the headline gap.

On this page

You have 3 quotes for a glucose-management AI, and all 3 claim better glycemic control, but every document they sent is a question-answering accuracy score. Should you sign based on that number? This paper offers a different check: put a language model inside a simulated type 1 diabetes patient, give it the interfaces of a real insulin pump and glucose monitor, let it make dosing decisions for 72 hours on its own, and score only the glucose trajectory it leaves behind [1]. The authors call this Agentic Physiological Control (APC), a setup where a program observes, acts, and waits through medical devices the way a person would. The question underneath is plain: can a language model combine context, personal experience, and device operations to hold a physiological variable under control across multiple days? The usual advice is to compare time in range (TIR, the share of time glucose stays inside a target band) from a clinical trial. That advice fails when the system makes hour-by-hour decisions and its own actions change what it observes next.

The APC Framework: Physiology as Environment, Devices as Tools

APC treats treatment as a control problem whose controller is an agent and whose sensors and actuators are medical devices. An APC problem has four parts: a physiological system with hidden state, devices that measure and act on it, reports from the person, and a score on the true physiological trajectory [1]. The agent repeatedly observes, acts through the devices, and decides when to reassess.

Four components close the loop. Decision making picks an intervention, a measurement, or a wait, and states its rationale. Device tools execute the operation and return readings and delivery logs. Monitoring watches incoming observations and hands control back when the chosen waiting interval ends or a trigger fires. The personal record carries what has been learned about the individual into later decisions. In multi-day episodes the conversation resets each day while the record persists, so adaptation happens with model weights fixed — the agent learns from experience, not from fine-tuning [1]. Reporting comes in three levels: I2 gives sensor glucose, device state, and records of the agent's own actions but no meal reports; I1 adds meal time and carbohydrate content; I0 further adds free-text reports such as stated meal plans and upcoming events.

DiabetSim: 8 Physiological Types, 5 Pumps, 10 Insulins

DiabetSim has three parts: a physiological engine, monitoring and delivery device models, and an instance generator. The engine models glucose–insulin dynamics following Deichmann et al. (2023), including the effects of physical activity. Individual parameters specify insulin sensitivity and body-mass-dependent responses. There are 8 physiological types differing in body mass and dawn phenomenon (the natural early-morning glucose rise), plus day-to-day variation in insulin sensitivity [1].

CategoryCount / configurationNote
Physiological types8Different body mass and dawn phenomenon
Sensor models8Real-time CGM reads every 5 minutes; flash sensors require a scan
Glucose-meter models6Fingerstick measurement
Pump models5Subsets of boluses, temporary basal rates, extended boluses, cancellation, suspend/resume
Pen models10Discrete injections
Insulin formulations10Determine 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 change actual delivery, separating the requested intervention from the dose received. This matters because the agent sees what it asked for, while the body receives something else [1].

SweetBench: 32 Scenario Designs, 212 Tasks

SweetBench turns DiabetSim into a fixed set of 212 evaluation tasks. Each task is a fixed patient–scenario configuration specifying 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 [1]. The 32 scenario designs fall into 7 groups, each instantiated for 4 to 8 simulated individuals with event timing and magnitude adapted to each person, producing 212 tasks.

GroupThemeDesignsTasksExample
AMeal timing and absorption428A03: a meal cancelled after pre-bolusing, followed by activity
BResidual insulin from earlier doses428B01: repeated doses after a small meal overlap as absorption ends
CExercise424C04: breakfast and lunch skipped during prolonged aerobic activity
DChanging insulin needs638D02: needs returning after sleep loss and the dawn phenomenon
EPump under-delivery428E04: silent under-delivery with progressively false-high sensor readings
FSensor errors636F06: missed meals and exercise causing lows masked by positive sensor bias
HIllness and recovery430H03: insulin needs recover before appetite returns
Total32212

The default task is a 72-hour episode with a Dana-i pump delivering insulin aspart and a real-time CGM with sensor error and delay, under information condition I2. Because a configuration fixes the individual, the event calendar, and the random seed, the same task can be rerun with other devices, information conditions, or decision schedules; a seven-day version of selected designs supports multi-day evaluation with the same individual and personal record [1]. The paper also runs a scope comparison: HealthBench, AgentClinic, MedAgentBench, LongMedBench, DM-Bench, and HealthLoopQA each cover either a single encounter or longitudinal reasoning over records, and only SweetBench combines multi-day intervention with fully programmatic scoring [1].

COGI 73.5 vs OpenAPS 71.2: How to Read the Gap

The main result runs APC with five backend models. With a fixed decision interval of one hour, Claude Opus 5.5 reaches a COGI of 73.5, against 71.2 for the open-source closed-loop baseline OpenAPS [1]. COGI is a composite score combining time in range (TIR), hypoglycemia, and variability of true glucose. One detail matters for anyone reproducing it: TIR is the share of 5-minute samples where true glucose falls between 72.064 and 144.128 mg/dL. Those thresholds look like converted values from mmol/L, and the excerpt does not explain the choice, but they are the hard boundary used for scoring [1].

Ablations: Personal Records and Context Beat Decision Frequency

  • Personal experience: in multi-day episodes the conversation resets daily but the personal record persists, and records plus end-of-day review support cross-day improvement without weight updates [1].
  • Device effects: with 5 pumps, 10 pens, and 10 insulin formulations, different configurations change the available action set and the actual dose delivered, which directly changes control difficulty.
  • Information and decision frequency: in the tested cases, adding context improved control more than raising the agent's decision frequency, while more frequent agent calls also increased computation; combining high-frequency rule-based background control with lower-frequency agent decisions is the promising direction the paper names [1].

Pushing decision frequency higher buys limited control gains at real computational cost, while what the agent sees and what it remembers are the variables that moved the score. For evaluators, the practical order is to check the information condition first, the personal record second, and the decision interval last.

Where This Method Fails

This method fails when you need evidence about real patients. DiabetSim is a simulator: the physiological engine, device errors, and patient reports all come from models, not from human data, and the paper reports no real-world validation numbers [1]. It is also out of scope beyond type 1 diabetes — the APC framework is general, but this instantiation only covers glucose control. The headline result is a single model: Claude Opus 5.5 supplies the 73.5, and the per-model COGI values of the five backends are not enumerated in the excerpt. Finally, COGI and TIR are proxy metrics that score the trajectory, not patient-reported quality of life or long-term complications.

So if you have a purchasing decision in hand, this work can change how you evaluate: replace question-answering accuracy with a multi-day closed-loop trajectory score, and ask vendors for reproducible results on a fixed task set like SweetBench. It cannot tell you how the system will perform in real patients, and it cannot be used to compare 73.5 against a clinical endpoint.

References

  1. DiabAgent: Toward Agentic Physiological Control

Sign in to Padda

A code in your inbox. No password to remember.

Connecting to sign-in…