arXiv:2611.04126cs.AINov 2026

Manuscript Offprint

arXiv:2611.04126

GlucoAgent: Personalized Glucose Forecasting from Multimodal Personal Context

Xingzhi Sun, Hyo Jin Kim, Zhiyuan Wang, Hao Chen

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

Abstract

Continuous glucose monitors, smartwatches, meal logs, and health profiles form a rich multimodal personal context that can significantly enhance glucose forecasting. However, existing methods struggle to effectively utilize these signals to improve glucose prediction because the relevance of different modalities varies drastically across individuals and time. We present GlucoAgent, an LLM-based agentic system that addresses this challenge through dynamic, case-by-case analysis at inference time. For each forecast, GlucoAgent writes and runs code over an individual's multimodal context and returns predictions with a reason and supporting evidence. The generated programs are highly diverse, ranging from retrieving similar past meals to fitting and back-testing physiological and statistical models. On CGMacros, a multimodal glucose dataset, GlucoAgent outperforms time series foundation models on every forecasting horizon, achieving an average RMSE of 22.5 mg/dL compared to 23.5 mg/dL of Chronos-2, the leading multimodal time series foundation model. Furthermore, GlucoAgent is highly effective at leveraging multimodal data. The addition of multimodal data reduces its average RMSE by 1.4 mg/dL (24.0 mg/dL to 22.5 mg/dL), compared to a marginal 0.3 mg/dL (23.8 mg/dL to 23.5 mg/dL) improvement for Chronos-2. This advantage is most pronounced in challenging post-meal windows, where GlucoAgent uses multimodal context to reduce 60-minute forecast RMSE by 4.6 mg/dL (31.0 mg/dL to 26.5 mg/dL), far exceeding the 0.8 mg/dL (31.9 mg/dL to 31.1 mg/dL) reduction achieved by Chronos-2.

1 Introduction

Glucose forecasting is becoming increasingly important as continuous glucose monitors (CGMs) provide dense and longitudinal glucose measurements for people with or without diabetes [Zeevi et al., 2015, Das et al., 2025]. Researchers have used CGM measurements to predict individual responses to meals and support personalized nutrition [Zeevi et al., 2015], while commercial insulin-pump systems use glucose forecasts to automatically adjust insulin delivery [Battelino et al., 2017, Forlenza et al., 2018, Brown et al., 2019]. Therefore, accurate glucose forecasting is crucial for applications ranging from personalized metabolic-health management to automated diabetes care.

In this work, we study short-horizon glucose forecasting, which focuses on predicting continuous glucose monitor (CGM) measurements 30 to 120 minutes ahead. An accurate forecast can provide advance warning of changes in glucose and act as a useful reference for users who need to control their glucose levels [Woldaregay et al., 2019, Zhu et al., 2021]. Existing glucose forecasters range from physiological models of glucose–insulin dynamics to autoregressive models, neural

*Work done at Meta.

GenAI for Health Workshop @ NeurIPS 2026, Sydney.

(a) Time series foundation models

Figure

(b) One person's multimodal context

(c) GlucoAgent loop

Figure

(d) What it hands back

Figure 1: One person's multimodal context enters GlucoAgent. The agent writes and runs code to construct a case-by-case analysis, then submits a forecast with a reason and supporting evidence. (a) Time series foundation models receive the last twelve hours of glucose and return a forecast without a reason. (b) GlucoAgent receives one person's glucose, heart rate, activity, logged meals and health profile. (c) The agent writes and runs code over that context, reads the outputs and continues until submission. (d) It returns each forecast with a reason and supporting evidence. In this example, it combines responses to the person's past large meals with a regression fitted and validated on that person's history.

networks and general-purpose time series foundation models [Sparacino et al., 2007, Woldaregay et al., 2019, Zhu et al., 2021, Ansari et al., 2025, Das et al., 2023, Liu et al., 2025a, 2024b, Lu et al., 2026]. Forecasts have also been tailored to individuals by training a model for each participant [Farahmand et al., 2025, Huang et al., 2026] or selecting a model based on validation error among different neural network architectures [Lara-Abelenda et al., 2025].

Additional signals measured with smartwatches, meal logs, and health profiles can complement the CGM to provide a multimodal personal context. Because glucose is affected by an individual's physiology and daily activities, such multimodal personal context has the potential to significantly improve glucose prediction. Multimodal forecasters have incorporated insulin and carbohydrates [Jeffries et al., 2026], wearable signals [Farahmand et al., 2025, Isaac et al., 2025], and health-record context [Zhu et al., 2026]. Yet, existing methods have struggled to demonstrate substantial improvements after adding the multimodal context to glucose inputs. For instance, in MetaboNet-Bench [Jeffries et al., 2026], adding insulin and carbohydrate inputs to five forecasting models reduced 30-minute RMSE by only 0.13 to 0.71 mg/dL. We argue that such limited improvements indicate underutilized multimodal personal context. This stems from a core challenge that the predictive utility of such context can vary across people and forecast moments. For example, a person's earlier meal responses might be more helpful for forecasting near a meal, while forecasting near a quiet period may benefit more from recent glucose dynamics. Across existing approaches, researchers determine the model class and the way multimodal context enters it during development. What remains underexplored is whether constructing the analysis case-by-case at forecast time can better address this challenge.

To study this question, we introduce GlucoAgent, an LLM-based agentic system that constructs a tailored analysis from one person's multimodal context at the time of each forecast. Building on language models that act through tools or executable programs [Yao et al., 2023, Gao et al., 2023] and related agents that analyze personal health data [Merrill et al., 2026, Wang et al., 2026], GlucoAgent uses an agent loop that writes and runs code, reads the outputs, and continues until it submits a forecast with a reason and supporting evidence. Because the agent can construct a different analysis for a different person or at a different time, this dynamic N-of-1 analysis provides flexible personalized analyses that use the multimodal personal context exactly as needed for each case. The reason and supporting evidence returned with each forecast enable us to inspect the agent's logic, making our method more interpretable than a black-box forecasting model. We equip the Python environment with scientific and statistical libraries and observe, through the generated reason and evidence, that the agent uses these libraries to build and test physiological models as well as statistical machine learning models depending on the scenario. Figure 1 illustrates how GlucoAgent processes the multimodal personal context to make a forecast and submits a reason and supporting evidence.

On CGMacros [Das et al., 2025], a public multimodal glucose dataset, we compare GlucoAgent with time series foundation models evaluated in GlucoFM-Bench [Lu et al., 2026]. With multimodal inputs, GlucoAgent achieves a lower RMSE at every horizon from 30 to 120 minutes, with its widest lead of 1.6 mg/dL at 60 minutes compared with Chronos-2 [Ansari et al., 2025], the leading multimodal time series foundation model. Across the four forecast horizons, adding the multimodal context reduces GlucoAgent's RMSE by 1.1 to 2.1 mg/dL, compared with 0.1 to 0.7 mg/dL for Chronos-2. To find out in which situations the multimodal context helps the most, we divided the prediction origins into post-meal, post-exercise, meal + exercise, and quiet situations. The multimodal context, compared to using glucose only, helps GlucoAgent most after meals, where it reduces the RMSE by 2.5 mg/dL on average, and by a massive 4.6 mg/dL at 60 minutes. In contrast, Chronos-2's RMSE is reduced by only 0.9 mg/dL on average and 0.8 mg/dL at 60 minutes. On public glucose-only benchmarks, including the nine datasets in GlucoFM-Bench [Lu et al., 2026], GlucoAgent remains competitive with time series foundation models and CGM-LSM, a foundation model trained specifically for glucose forecasting [Luo et al., 2025].

Our main contributions are as follows:

  1. We introduce GlucoAgent, an LLM agentic system for personalized multimodal glucose forecasting that dynamically writes and runs code over a person's multimodal context for each forecast and submits a reason and supporting evidence.

  2. We demonstrate the efficacy of GlucoAgent by comparing it against time series foundation models on the CGMacros dataset with multimodal records as well as the glucose-only datasets from GlucoFM-Bench [Das et al., 2025, Lu et al., 2026]. GlucoAgent outperforms time series foundation models at every evaluated horizon with multimodal context, and matches their performance on glucose-only univariate settings.

  3. Through stratified evaluations across distinct physiological states (e.g., post-meal), qualitative case studies, and a systematic analysis of the generated code, we reveal when and how multimodal context improves predictions, offering transparency into the forecasting process.

References (100)

Couldn't load all references. Reload the page to try again.