Personalized neural network improves blood sugar predictions for type 1 diabetes

Personalized Physiological-Model-Based Neural Network for Glucose Forecasting in Type 1 Diabetes

Machine Learning

Summary

People with type 1 diabetes need to keep their blood sugar levels stable, which can be hard to predict. The authors created a computer model that uses both personalized body data and neural networks to forecast blood sugar changes ahead of time. This helps predict glucose levels more accurately compared to just using traditional physiological models. Their system learns from each person’s unique insulin, meal, and glucose patterns to make better forecasts up to two hours ahead.

What this means in practice

  • For medical device developers: Design more accurate insulin pump algorithms that personalize blood sugar predictions for individual diabetes patients using combined physiological and neural models.$Commercial implications: Enables development of smarter insulin delivery systems personalized to each user, improving diabetes management products.
  • For mobile health app developers: Create apps that provide personalized glucose forecasts based on user-specific insulin and meal data for better diabetes self-management.

Authors

Yaowen Zhang, Shuhao Que, Ying Wang

Abstract

Accurate, physiologically consistent glucose forecasts could help people with type 1 diabetes respond to impending excursions. We applied our physiological-model-based neural network (PMB--NN) framework to glucose forecasting. A temporal convolutional network (TCN) used 180 min of history, constrained during training by a personalized four-parameter physiological model. The main PMB--NN combined forecast and neural--physiological agreement losses; a three-term variant additionally fitted physiological predictions to measured glucose. Data comprised 6--8 weeks of continuous glucose monitoring, pump, and meal records from 25 AZT1D participants. Person-specific models used chronological 70/10/20 train/validation/test splits and 30-, 60-, and 120-min horizons. Median mean absolute errors were 16.24, 25.00, and 30.20 mg/dL with basal insulin records and 15.38, 24.21, and 31.79 mg/dL before these records became available. In the latter setting, PMB--NN had the lowest median error at 30 and 60 min; it outperformed the physiological model alone in all six settings. In input-increase tests, glucose predictions changed in the expected direction for 85\% of correction boluses and 100\% of carbohydrate rescues, versus 57\% for active insulin and 56\% for active carbohydrates. Most standalone physiological fits showed locally distinguishable parameter effects, with glucose-related coefficients more stable under resampling than insulin- or carbohydrate-related coefficients. The three-term variant improved hyperglycaemia accuracy with basal records, but did not significantly change overall MAE and reduced directional plausibility in three tests. PMB--NN combines personalized forecasting with an explicit physiological model, allowing assessment of predictive accuracy, physiological response behavior, and participant-specific coefficients.