Popular Boards

Tao Yang, Qicheng Yang, Yibo Zhou | Mathematical Biosciences & Engineering | (2023)

Abstract

Glucose trend prediction based on continuous glucose monitoring (CGM) data is a crucial step in the implementation of an artificial pancreas (AP). A glucose trend prediction model with high accuracy in real-time can greatly improve the glycemic control effect of the artificial pancreas and effectively prevent the occurrence of hyperglycemia and hypoglycemia. In this paper, we propose an improved wavelet transform threshold denoising algorithm for the non-linearity and non-smoothness of the original CGM data. By quantitatively comparing the mean square error (MSE) and signal-to-noise ratio (SNR) before and after the improvement, we prove that the improved wavelet transform threshold denoising algorithm can reduce the degree of distortion after the smoothing of CGM data and improve the extraction effect of CGM data features at the same time. Based on this finding, we propose a glucose trend prediction model (IWT-GRU) based on the improved wavelet transform threshold denoising algorithm and gated recurrent unit. We compared the root mean square error (RMSE), mean absolute percentage error (MAPE), and coefficient of determination ($ {\mathrm{R}}^{2} $) of Recurrent Neural Networks (RNN), Long Short-Term Memory (LSTM), Support vector regression (SVR), Gated Recurrent Unit (GRU) and IWT-GRU on the original CGM monitoring data of 80 patients for 7 consecutive days with different prediction horizon (PH). The results showed that the IWT-GRU model outperformed the other four models. At PH = 45 min, the RMSE was 0.5537 mmol/L, MAPE was 2.2147%, $ {\mathrm{R}}^{2} $ was 0.989 and the average runtime was only 37.2 seconds. Finally, we analyze the limitations of this study and provide an outlook on the future direction of blood glucose trend prediction.

Tags

Plain English Takeaway

This study shows that a new computer method can predict blood sugar changes more accurately and quickly, which could help people with diabetes manage their health better.

Study Aim

The main goal of this paper is to create a more accurate and real-time model for predicting blood glucose trends using continuous glucose monitoring (CGM) data. The authors aim to improve the way CGM data is cleaned and processed, so that the prediction model can better help artificial pancreas systems prevent dangerous high or low blood sugar events. Simply put: The study wants to make blood sugar predictions more reliable and useful for people with diabetes.

Study Design

The researchers collected CGM data from 80 patients over 7 days, recording blood glucose every 5 minutes. They developed an improved wavelet transform threshold denoising algorithm (a method to clean up noisy data) and combined it with a gated recurrent unit (GRU), a type of neural network that learns from time-based data. They compared their new model (IWT-GRU) to four other models—RNN, LSTM, SVR, and standard GRU—using measures like root mean square error (RMSE), mean absolute percentage error (MAPE), and coefficient of determination (R²). They also checked how well the models worked in a clinical setting using Clarke Error Grid Analysis. Simply put: The team tested their new computer model on real patient data and compared it to other common prediction methods.

Findings

The study demonstrates that the improved wavelet transform threshold denoising algorithm cleans CGM data better than traditional methods, leading to less distortion and better feature extraction. The IWT-GRU model, which uses this improved data cleaning, outperformed all other tested models in predicting blood glucose trends. At a 45-minute prediction window, it achieved the lowest RMSE (0.5537 mmol/L), lowest MAPE (2.2147%), and highest R² (0.989), with a fast average runtime of 37.2 seconds. Clinical analysis showed that 98.69% of its predictions were in the safe range. The authors note that their model could help improve artificial pancreas systems, but more testing is needed with different patient groups and CGM devices. Simply put: The new method predicts blood sugar changes more accurately and quickly than older methods, but it still needs more testing in different situations.

Referenced In

🤖 AI Wearables for Managing Diabetes ~

In this paper - Fraser et al., 2025 - Researchers reviewed 60 studies on AI-powered wearables - continuous glucose monitors (CGMs), for Type 2 diabetes care. The tech is advancing fast—but major gaps remain before it reaches your doctor's office.

What's New:

Smarter Glucose Prediction: Deep learning models,particularly LSTMs and transformers, can predict blood sugar swings 30-120 minutes ahead of time by spotting patterns humans miss. One model achieved R² = 0.989 accuracy, essentially forecasting your glucose curve in real-time.

AI That Acts, Not Just Predicts: We're moving from forecasting to actual intervention. Reinforcement learning models, like Warren et al., 2024 now can suggest insulin doses autonomously, with results showing HbA1c drops by 1.3%.

Non-Invasive Hacks: Researchers are ditching finger pricks entirely—using smartphone photoplethysmography (PPG), ECG signals, even tear fluid infrared sensors to estimate glucose. One PPG-based deep learning model reached 90.6% accuracy for diabetes detection.

The AI Toolkit Deep-Dive:

>> LSTMs & GRUs (45% of studies): These recurrent neural networks are the workhorses—they process CGM time-series data sequentially, remembering past glucose values to predict future trends.

>> Transformers: They use "attention mechanisms" to weigh which past data points matter most — handling longer prediction windows across diverse populations better than LSTMs.

>> Temporal Fusion Transformers: Combine static data (age, BMI) with time-varying data (glucose, heart rate) in one model. Emerging but promising for personalized predictions.

>> Multi-Agent Reinforcement Learning (MARL): Multiple AI agents compete to identify which patient features (lab values, meds, demographics) most predict adverse glycemic events in hospitals. One study achieved 92.8% precision for hypoglycemia detection.

>> XGBoost & Random Forests: Traditional machine learning still dominates when doctors need interpretability. XGBoost ranked features by importance (SHAP values), showing clinicians why the AI flagged a patient as high-risk.

>> Deep-Ensemble Learning: Stacks multiple neural networks together—CNNs for pattern recognition, BiLSTMs for sequence memory, meta-learners for combining outputs.

Despite the great advances made, there are still some hard truths to tackle:

  • 60% use "black box" models that doctors can't explain - the pattern is unknown.

  • Only 7% report race/ethnicity data.

  • Most studies are tiny (median 150 people).

  • No long-term follow-ups exist - What would we see in 1 year's time?

The authors close off the review --- The tech works in pilots but we need diverse data, transparent models, and real-world validation before this becomes standard care.

0