SSM-CGM: Interpretable State-Space Forecasting Model of Continuous Glucose Monitoring for Personalized Diabetes Management
Shakson Isaac, Yentl Collin, Chirag Patel
TL;DR
This work tackles the need for interpretable near-term CGM forecasting to support personalized diabetes management by introducing SSM-CGM, a Mamba-based neural state-space model that fuses CGM with wearable signals from the AI-READI cohort. The model achieves improved short-term accuracy over a Temporal Fusion Transformer baseline and provides interpretability through variable selection networks and hidden temporal attention, while enabling counterfactual forecasts by intervening on planned future covariates like heart rate and respiration via a forward-pass implementation of the sequential g-formula under standard causal assumptions. Empirically, SSM-CGM yields MAE improvements on horizons up to 1 hour and reveals distinct HR- and RR-linked pathways influencing glucose, with daytime HR perturbations generally improving glucose tolerance and nighttime RR perturbations associating with adverse metabolic markers. The approach advances actionable, physiologically grounded guidance for personalized diabetes management, though it carries limitations such as imperfect meal annotations and substantial compute requirements, motivating future work on streaming deployment, multivariate counterfactuals, and integration with reinforcement-learning policies.
Abstract
Continuous glucose monitoring (CGM) generates dense data streams critical for diabetes management, but most used forecasting models lack interpretability for clinical use. We present SSM-CGM, a Mamba-based neural state-space forecasting model that integrates CGM and wearable activity signals from the AI-READI cohort. SSM-CGM improves short-term accuracy over a Temporal Fusion Transformer baseline, adds interpretability through variable selection and temporal attribution, and enables counterfactual forecasts simulating how planned changes in physiological signals (e.g., heart rate, respiration) affect near-term glucose. Together, these features make SSM-CGM an interpretable, physiologically grounded framework for personalized diabetes management.
