The most comprehensive diabetes knowledge base online. Understand your diabetes. Know your supplies. Make better decisions.
MDS Diabetes
Diabetes
Encyclopedia
Shop Supplies β†’
Researchβœ“ Reviewed for accuracy

AI Model Predicts Blood Sugar Levels 45 Minutes Ahead

A new AI model combines two machine learning techniques to predict blood sugar levels up to 45 minutes in advance, outperforming older prediction methods.

M
MDS Diabetes Team
Β·6 min read
𝕏f
Key takeaways
  • βœ“A hybrid AI model using CGM data can predict blood sugar levels up to 45 minutes ahead with greater accuracy than standard models, potentially giving people with diabetes more time to prevent dangerous highs and lows.
Quick specs
JournalPloS one
Year2024
AuthorsBian, As'arry, Cong
PMID39259758
DOI10.1371/journal.pone.0310084

What This Study Found

Researchers tested a new artificial intelligence (AI) model that can predict blood sugar levels up to 45 minutes into the future. The model β€” called a hybrid Transformer-LSTM β€” was trained on continuous glucose monitor (CGM) data from eight patients and outperformed older AI prediction methods at every time interval tested. The closer the prediction window, the more accurate the model was, with the best results seen at the 15-minute mark.

Why This Matters for Your Daily Diabetes Management

Managing blood sugar is a constant balancing act. Dangerous low blood sugar (hypoglycemia) and high blood sugar (hyperglycemia) can happen quickly, and by the time your CGM alerts you, you may already be symptomatic. A tool that warns you before your glucose swings out of range gives you a critical head start.

Think of it like a weather forecast for your blood sugar. Instead of reacting to a storm already happening, you get a warning in time to grab an umbrella β€” or in diabetes terms, a fast-acting snack or a corrective insulin dose.

How the AI Model Works

The model combines two types of machine learning:

  • LSTM (Long Short-Term Memory): Good at recognizing patterns in data over time, like how your blood sugar tends to rise after meals.
  • Transformer: Originally developed for language processing, Transformers are powerful at identifying relationships across longer stretches of data.

By combining both, the hybrid model picks up on both short-term and longer-term glucose trends at the same time. The researchers trained it on more than 32,000 CGM data points collected at Suzhou Municipal Hospital in China.

What the Numbers Mean

The study measured accuracy using Mean Square Error (MSE) β€” a lower number means better accuracy. Here is how the hybrid model performed:

  • 15 minutes ahead: MSE of 1.18
  • 30 minutes ahead: MSE of 1.70
  • 45 minutes ahead: MSE of 2.00

The standard LSTM model scored worse at all three intervals. While these numbers are technical, the key point is straightforward: the new model is meaningfully more accurate, especially for shorter prediction windows.

Important Limitations to Know

This study was conducted on a relatively small group of eight patients, and the data came from a single hospital in China. Results may differ across larger or more diverse populations. This model is also not yet a consumer product β€” it is a research prototype. Real-world use would require regulatory review and integration with existing CGM platforms.

The Bottom Line

Accurate blood sugar prediction is one of the most promising frontiers in diabetes technology. Tools like this could one day be built into CGM apps to give people with diabetes earlier, smarter warnings. In the meantime, getting the most out of the CGM technology available today is a great first step.

At mdsdiabetes.com, we carry a range of CGM-compatible supplies and diabetes monitoring accessories to help you stay on top of your glucose data every day.

📋 Key Takeaway

A new hybrid AI model can predict blood sugar levels up to 45 minutes in advance using CGM data, giving people with diabetes a potential early warning system to prevent dangerous highs and lows before they happen.


Citation: Bian, As'arry, Cong (2024). A hybrid Transformer-LSTM model apply to glucose prediction. PloS One. PMID: 39259758. DOI: 10.1371/journal.pone.0310084

References & Sources

Editorial note
This article is for educational purposes only and does not constitute medical advice. Always consult your healthcare provider before making changes to your diabetes management. Last reviewed: July 6, 2026 by the MDS Diabetes editorial team.
What to do next
πŸ“š
Read more Research articles
Explore all guides in this topic
β†’
πŸ›’
Shop related supplies at MDS
FSA/HSA eligible Β· Free shipping $60+
β†’
Topics
continuous glucose monitorblood sugar predictiondiabetes technologyCGMartificial intelligencehypoglycemia preventionresearchclinical studypeer reviewed

Related articles

Ask Mila about diabetes