Related Experiment Video
Updated: Aug 5, 2025

Improving IV Insulin Administration in a Community Hospital
Published on: June 11, 2012
Long-Term Glucose Forecasting for Open-Source Automated Insulin Delivery Systems: A Machine Learning Study with
Ahtsham Zafar1, Dana M Lewis2, Arsalan Shahid3
1School of Electrical Engineering and Computer Science, National University of Sciences and Technology, Islamabad 44000, Pakistan.
Machine learning and deep learning accurately forecast glucose variability up to 48 hours in advance for individuals using automated insulin delivery systems. These models offer reliable glucose forecasting and variability analysis for diabetes management.
Area of Science:
- Biomedical Engineering
- Artificial Intelligence in Healthcare
- Diabetes Technology
Background:
- Glucose forecasting is crucial for diabetes management, particularly for real-time insulin dosing and optimizing physical activity.
- Open-source automated insulin delivery (AID) systems generate large datasets valuable for developing predictive models.
Purpose of the Study:
- To evaluate machine learning (ML) and deep learning (DL) methods for predicting glucose variability (GV) in individuals using open-source AID systems.
- To assess the accuracy, performance, and resource costs of various ML/DL models for glucose forecasting up to 48 hours ahead.
Main Methods:
- A three-stage framework: data collection, data preparation/analysis, and ML/DL model development/evaluation.
- Systematic implementation and fine-tuning of ML/DL models on a large-scale diabetes dataset.
- Evaluation of 17 GV metrics, including mean absolute error (MAE) and root mean square error (RMSE), alongside model execution time and memory consumption.
Main Results:
- Fine-tuned ML/DL models demonstrated considerable accuracy in glucose forecasting and variability analysis up to 48 hours in advance.
- Long Short-Term Memory (LSTM) models achieved the lowest average MAE (2.50 mg/dL) and RMSE (3.7 mg/dL), outperforming Autoregressive Integrated Moving Average (ARIMA) models.
- Model execution time correlated with training data size; LSTM models had the lowest execution time but highest memory usage.
Conclusions:
- ML/DL methods, particularly LSTM, show significant potential for accurate glucose forecasting and variability analysis in AID systems.
- The study highlights the importance of considering model performance, resource costs, and sustainable implementation for real-world applications.
- This research supports the integration of advanced computational tools for enhanced diabetes management through AID systems.
Related Concept Videos
Insulin: Dosing Regimen and Adverse Effects
The basal dose constitutes about 40%-50% of the total daily dose, with the rest as premeal insulin. The mealtime insulin dose should mirror...
Insulin Formulations: Types and Delivery
Short-acting insulins are divided into...
Hypoglycemia and Glucagon
Glucose Homeostasis: Pancreatic Islets and Insulin Secretion
Insulin and C-peptide are...
Glucose Homeostasis: Regulation of Blood Glucose
During fasting, when blood glucose levels are low, the pancreas secretes glucagon. it...
Diabetes Mellitus: Type 2 and Gestational

