arXiv:2610.28976cs.LGOct 2026

Manuscript Offprint

arXiv:2610.28976

SSMCGM-Stream: A Streaming State-Space Model for Personalized Diabetes Management

Shakson Isaac, Chirag Patel

Abstract

Continuous glucose monitoring supports diabetes management but requires forecasting models that are accurate, interpretable, and efficient enough for real-time deployment. We present SSMCGM-Stream, a streaming state-space model that maintains a personalized hidden state updated with each incoming glucose reading to provide constant-time forecasting, physiologically structured counterfactual reasoning, and interpretable forecasts through hidden-state attribution. Built on this foundation, SSMCGM-Agent delivers risk-aware, natural-language decision support by translating forecasts, explanations, and counterfactuals into grounded recommendations through a guarded language-model interface. Evaluated on the T1DEXI cohort, SSMCGM-Stream achieves forecasting performance comparable to strong neural baselines while substantially reducing computational cost, enabling continuous on-device diabetes decision support.

1 Introduction

Managing type 1 diabetes involves a constant stream of decisions about meals, insulin, and physical activity [1]. Continuous glucose monitoring (CGM) provides real-time glucose measurements that support these decisions [2]. Despite advances in sensor technology and algorithmic control [3–5], current systems provide limited insight into the factors driving an individual’s glucose dynamics.

Currently, glucose forecasting models can anticipate hypo- and hyperglycemic events 30-60 minutes ahead [6, 7]. These forecasts support proactive glucose management, such as maintaining time-in-range [8], lowering an individual's risk for diabetic complications [9]. However, these models are typically optimized for predictive performance without revealing whether they learn physiologically meaningful insulin and meal effects on glucose. Moreover, emerging transformer-based glucose foundation models [10] introduce computational challenges for continuous deployment such as attention scaling quadratically with sequence length [11]. This is problematic when type 1 diabetes decision support requires efficient inference and training over continuously arriving data. Instead, state-space models (SSMs) can maintain a compact recurrent state with constant-time updates [12, 13], making them useful for streaming and on-device inference.

We present SSMCGM-Stream, a streaming state-space forecasting model for personalized type 1 diabetes decision support using the T1DEXI cohort [14]. SSMCGM-Stream maintains a constant-memory recurrent state paired with a scenario-conditioned horizon decoder. From a single running state, SSMCGM-Stream (i) forecasts impending hypo- and hyperglycemia events; (ii) attributes forecasts to individual-specific drivers; (iii) answers counterfactual ‘what-if’ questions about meals, exercise, and insulin; (iv) cold-starts from population priors while adapting to individuals over time; and lastly (v) integrates large-language models (LLM) as an advisory agent. Together, SSMCGM-Stream provides a framework for interpretable, personalized, real-time glucose decision support.

Accepted to AI4Science and GenAI4Health NeurIPS 2026 workshops

Figure

Figure 1: SSMCGM-Stream Architecture. Static and time-varying covariates update a streaming hidden state, hth_{t}, while scenario conditioning enables forecasts under planned future actions.

References (36)