Forecasting glucose values for patients with type 1 diabetes using heart rate data
Related Experiment Video
Updated: Jun 11, 2025

Calculating Heart Rate Variability from ECG Data from Youth with Cerebral Palsy During Active Video Game Sessions
Published on: June 5, 2019
Raffaele Giancotti1, Pietro Bosoni2, Patrizia Vizza1
1Department of Surgical and Medical Sciences, Magna Graecia University of Catanzaro, Italy.
Background:
Type 1 Diabetes Mellitus (T1DM) is a chronic metabolic disease affecting millions of people worldwide. T1DM requires patients to continuously monitor their blood glucose levels. Due to pancreatic dysfunctions, patients use insulin injections to correct glucose values by synthetic insulin. Continuous Glucose Monitoring (CGM) is a system which includes an algorithm allowing to measure (and in some cases to predict) glucose levels at a frequent sampling time. This enable implementing advanced devices, including automated insulin pump delivery. Nevertheless, CGM still presents some limitations, including (i) the delay (time lag) in detecting change in glucose levels compared to the traditional blood glucose measurement, and (ii) the lack of a sufficient and acceptable time to accurately predict glucose values.
Methods:
We propose a framework based on a Gated Recurrent Unit (GRU) model to forecast both short- and long-term glucose values using heart rate (HR) and interstitial glucose (IG) values. The framework acquires HR and IG data and predicts glucose values with higher precision compared to state-of-the-art models. For training and testing the proposed framework, we used the OhioT1DM Dataset, which includes physiological data such as HR and IG values collected over an 8-week observation period. Additionally, we validated our framework using two other glucose datasets to ensure its generalizability across different HR and IG sampling frequencies. The proposed framework can be used to optimize the CGM system by incorporating patient HR measurements, thereby improving the prediction of short- and long-term glucose levels and reducing risks associated with conditions like hypoglycemia.
Results:
Experimental tests were conducted using HR and IG data from the OhioT1DM Dataset, as well as from two additional T1DM patient datasets. We analyzed 6 patients from Ohio dataset while we validated the algorithm on 23 patients coming from two different university hospitals (6 from the University of Catanzaro medical hospital and 17 gathered from a validated study at IRCCS San Matteo Hospital in Pavia) for a total number of 29 patients. Our framework demonstrates an improvement in forecasting IG values in terms of RMSE and MAE for different choice of prediction horizons (PH). In the case of a PH of 5, 10, 20, 30, and 60 min, we reach an RMSE of 5.0, 9.38, 15.27, 20.48, and 34.16 respectively. The framework is freely available as an open-source, with an example dataset on a GitHub repository (see https://github.com/rafgia/attention_to_glycemia).
Conclusion:
Our framework offers a promising solution for improving glucose level prediction and management in T1DM patients. By leveraging a GRU model and incorporating HR and IG values, we achieve more precise glucose level forecasting compared to state-of-the-art models. This approach not only enhances the accuracy of glucose predictions but also mitigates the risks associated with hypoglycemia.
Related Concept Videos
Pulse rhythm
Conversely, an irregular pulse pattern is termed dysrhythmia, stemming from disruptions in cardiac...
Diabetes Mellitus: Type 2 and Gestational
Hypoglycemia and Glucagon
Glucose Homeostasis: Regulation of Blood Glucose
During fasting, when blood glucose levels are low, the pancreas secretes glucagon. it...
Diabetes Mellitus: Overview and Type I Subtype
Type 1 diabetes is an autoimmune disease in which the immune system mistakenly attacks and destroys the insulin-producing beta cells in the pancreas. As a result, the body is unable to produce sufficient insulin, and individuals with...
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...

