Manuscript Offprint

arXiv:2611.03601

DiabAgent: Toward Agentic Physiological Control

Chengxi Li, Shaoxuan Li, Deyao Hong, Qingle Liu, Yi Huang, Puheng Bian, Minzhi Xu, Lanyue Zhang, Mingze Sun, Xin Li, Calvin Xiao, Shengyuan Wang, Huan-ang Gao, Jiazheng Xu, Kaisen Yang, Hongning Wang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Chengxi Li1,∗^{1,*}, Shaoxuan Li1,∗^{1,*}, Deyao Hong1,∗^{1,*}, Qingle Liu1^{1}, Yi Huang1^{1}, Puheng Bian1^{1}, Minzhi Xu1^{1}, Lanyue Zhang1^{1}, Mingze Sun1^{1}, Xin Li2^{2}, Calvin Xiao3^{3}, Shengyuan Wang1^{1}, Huan-ang Gao1^{1}, Jiazheng Xu1^{1}, Kaisen Yang1,†,‡^{1,\dagger,\ddagger}, Hongning Wang1,†^{1,\dagger}

1^{1}Tsinghua University, 2^{2}Sweetie Online Community, 3^{3}Einsia AI

∗^{*} Core contributor; †^{\dagger} Corresponding author; ‡^{\ddagger} Project leader.

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.

Contact: yks23@mails.tsinghua.edu.cn

Homepage: diabagent.github.io

Codebase: github.com/THU-CST-SAST/DiabAgent

Figure

1 Introduction

As pretraining scales, medical language models have advanced rapidly in clinical question answering and treatment advice (Singhal et al., 2023; Arora et al., 2025). Agents combine language models with tools, memory, and environment feedback to execute multi-step tasks (Yao et al., 2023; Shinn et al., 2023). They complete long tasks in software and service environments and reuse experience in later decisions (Yang et al., 2024; Yao et al., 2024; Zhao et al., 2024). Medical agents conduct diagnostic dialogue, analyze treatment options, and operate electronic health records (Tu et al., 2025; Gao et al., 2025; Jiang et al., 2025). 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 (Holt et al., 2021; Riddell et al., 2017). 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 (Brown et al., 2019; Sherr et al., 2022; Hettiarachchi et al., 2024; Sarkar, 2026). Existing dynamical models and evaluation metrics also provide a basis for simulating glucose dynamics and assessing control outcomes (Deichmann et al., 2023; Battelino et al., 2019). 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 (OpenAPS community, 2026). 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 (Holt et al., 2021). 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

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.

  2. 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.

  3. 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.

References (50)