Submitted:
07 September 2023
Posted:
12 September 2023
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Materials and Methods
2.1. Data Collection
2.2. Feature Engineering
2.3. Forecasting Methodology


2.4. Population
3. Results
3.1. ARIMA

3.2. Logistic Regression

3.3. LSTM

4. Discussion
5. Conclusion
Author Contributions
Funding
Ethical Approval
Consent to participate
Consent for publication
Data availability
Competing Interests
References
- Zaharieva DP, Turksoy K, McGaugh SM, Pooni R, Vienneau T, Ly T, Riddell MC. Lag Time Remains with Newer Real-Time Continuous Glucose Monitoring Technology During Aerobic Exercise in Adults Living with Type 1 Diabetes. Diabetes Technol Ther. 2019, 21, 313–321. [Google Scholar] [CrossRef] [PubMed]
- Rodbard, D. Continuous Glucose Monitoring: A Review of Successes, Challenges, and Opportunities. Diabetes Technol Ther. 2016, 18 (Suppl. 2), S3–S13. [Google Scholar] [CrossRef] [PubMed]
- Blauw H, Keith-Hynes P, Koops R, DeVries JH. A Review of Safety and Design Requirements of the Artificial Pancreas. Ann Biomed Eng. 2016, 44, 3158–3172. [Google Scholar] [CrossRef]
- Available at https://github.com/jxx123/simglucose.
- Aberer F et al. Diabetes Care 2022.
- Mirshekarian Sadegh, Shen Hui, Bunescu Razvan, and Marling Cindy. Lstms and neural attention models for blood glucose prediction: Comparative experiments on real and synthetic data. In 2019 41st Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), pages 706–712. IEEE, 2019.
- Mohebbi Ali, Johansen Alexander R, Hansen Nicklas, Christensen Peter E, Tarp Jens M, Jensen Morten L, Bengtsson Henrik, and Mørup Morten. Short term blood glucose prediction based on continuous glucose monitoring data. arXiv 2020, preprint. arXiv:2002.02805.
- Dave D, DeSalvo DJ, Haridas B, et al. Feature-Based Machine Learning Model for Real-Time Hypoglycemia Prediction [published correction appears in J Diabetes Sci Technol. 2021 Jun 16;:19322968211027985] [published correction appears in J Diabetes Sci Technol. 2021 Nov 19;:19322968211059154]. J Diabetes Sci Technol. 2021, 15, 842–855. [Google Scholar]
- Prendin F, Del Favero S, Vettoretti M, Sparacino G, Facchinetti A. Forecasting of Glucose Levels and Hypoglycemic Events: Head-to-Head Comparison of Linear and Nonlinear Data-Driven Algorithms Based on Continuous Glucose Monitoring Data Only. Sensors (Basel) 2021, 21, 1647. [Google Scholar] [CrossRef]
- Omer Mujahid,Ivan Contreras and Josep Vehi,Machine Learning Techniques for Hypoglycemia Prediction: Trends and Challenges. Sensors 2021, 21, 546. [CrossRef]
- William P. T., M. van Doorn,Yuri D. Foreman,Nicolaas C. Schaper,Hans H. C. M. Savelberg,Annemarie Koster,Carla J. H. van der Kallen,Anke Wesselius,Miranda T. Schram,Ronald M. A. Henry,Pieter C. Dagnelie,Bastiaan E. de Galan,Otto Bekers,Coen D. A. Stehouwer,Steven J. R. Meex,Martijn C. G. J. ,: Brouwers, Machine learning-based glucose prediction with use of continuous glucose and physical activity monitoring data: The Maastricht Study, Published, 24 June 2021. [Google Scholar]
- Forbes JM, Cooper ME. Mechanisms of diabetic complications. Physiol Rev. 2013, 93, 137–88. [Google Scholar] [CrossRef]
- American Diabetes, A. 6. Glycemic Targets: Standards of Medical Care in Diabetes-2019. Diabetes Care. 2019, 42 (Suppl. 1), S61–S70. [Google Scholar] [CrossRef]
- International Hypoglycaemia Study, G. Hypoglycaemia, cardiovascular disease, and mortality in diabetes: epidemiology, pathogenesis, and management. Lancet Diabetes Endocrinol. 2019, 7, 385–96. [Google Scholar]
- Prince SA, Adamo KB, Hamel ME, Hardt J, Connor Gorber S, Tremblay M. A comparison of direct versus self-report measures for assessing physical activity in adults: A systematic review. Int J Behav Nutr Phys Act. 2008, 5. [Google Scholar]
- Moser O, Riddell MC, Eckstein ML, Adolfsson P, Rabasa-Lhoret R, van den Boom L, Gillard P, Nørgaard K, Oliver NS, Zaharieva DP, Battelino T, de Beaufort C, Bergenstal RM, Buckingham B, Cengiz E, Deeb A, Heise T, Heller S, Kowalski AJ, Leelarathna L, Mathieu C, Stettler C, Tauschmann M, Thabit H, Wilmot EG, Sourij H, Smart CE, Jacobs PG, Bracken RM, Mader JK. Glucose management for exercise using continuous glucose monitoring (CGM) and intermittently scanned CGM (isCGM) systems in type 1 diabetes: position statement of the European Association for the Study of Diabetes (EASD) and of the International Society for Pediatric and Adolescent Diabetes (ISPAD) endorsed by JDRF and supported by the American Diabetes Association (ADA). Diabetologia 2020, 63, 2501–2520. [Google Scholar]
- Tikkanen-Dolenc, H., Wadén, J., Forsblom, C. et al. Frequent physical activity is associated with reduced risk of severe diabetic retinopathy in type 1 diabetes. Acta Diabetol 2020, 57, 527–534. [CrossRef] [PubMed]
- Tikkanen-Dolenc H, Wadén J, Forsblom C, Harjutsalo V, Thorn LM, Saraheimo M, Elonen N, Tikkanen HO, Groop PH; FinnDiane Study Group. Physical Activity Reduces Risk of Premature Mortality in Patients With Type 1 Diabetes With and Without Kidney Disease. Diabetes Care. 2017, 40, 1727–1732. [Google Scholar] [CrossRef] [PubMed]
- Moser O, Tschakert G, Mueller A, Groeschl W, Pieber TR, Obermayer-Pietsch B, Koehler G, Hofmann P. Effects of High-Intensity Interval Exercise versus Moderate Continuous Exercise on Glucose Homeostasis and Hormone Response in Patients with Type 1 Diabetes Mellitus Using Novel Ultra-Long-Acting Insulin. PLoS One 2015, 10, e0136489. [Google Scholar]
- Brazeau AS, Mircescu H, Desjardins K, Dube MC, Weisnagel SJ, Lavoie C, et al. . The barriers to physical activity in Type 1 diabetes (BAPAD-1) scale: predictive validity and reliability. Diab Metabol. 2012, 38, 164–70. [Google Scholar] [CrossRef]
- Moser O, Rafferty J, Eckstein ML, Aziz F, Bain SC, Bergenstal R, Sourij H, Thomas RL. Impact of severe hypoglycaemia requiring hospitalization on mortality in people with type 1 diabetes: A national retrospective observational cohort study. Diabetes Obes Metab. 2023, 25, 2243–2254. [Google Scholar] [CrossRef]
- Standards of medical care in diabetes 2022 https://diabetesjournals.
- Tikkanen-Dolenc, H. , Wadén, J., Forsblom, C. et al. Frequent and intensive physical activity reduces risk of cardiovascular events in type 1 diabetes. Diabetologia 2017, 60, 574–580. [Google Scholar] [CrossRef]
- Zhang L, Xu H, Liu L, Bi Y, Li X, Kan Y, Liu H, Li S, Zou Y, Yuan Y, Gong W, Zhang Y. Related factors associated with fear of hypoglycemia in parents of children and adolescents with type 1 diabetes - A systematic review. J Pediatr Nurs. 2022, 66, 125–135. [Google Scholar] [CrossRef]
- Finn, M. , Sherlock, M., Feehan, S. et al. Adherence to physical activity recommendations and barriers to physical activity participation among adults with type 1 diabetes. Ir J Med Sci 2022, 191, 1639–1646. [Google Scholar] [CrossRef]
- Ahola, A.J. , Tikkanen-Dolenc, H., Forsblom, C. et al. Symptoms of depression are associated with reduced leisure-time physical activity in adult individuals with type 1 diabetes. Acta Diabetol 2021, 58, 1373–1380. [Google Scholar] [CrossRef] [PubMed]
- Moser O, Riddell MC, Eckstein ML, Adolfsson P, Rabasa-Lhoret R, van den Boom L, Gillard P, Nørgaard K, Oliver NS, Zaharieva DP, Battelino T, de Beaufort C, Bergenstal RM, Buckingham B, Cengiz E, Deeb A, Heise T, Heller S, Kowalski AJ, Leelarathna L, Mathieu C, Stettler C, Tauschmann M, Thabit H, Wilmot EG, Sourij H, Smart CE, Jacobs PG, Bracken RM, Mader JK. Glucose management for exercise using continuous glucose monitoring (CGM) and intermittently scanned CGM (isCGM) systems in type 1 diabetes: position statement of the European Association for the Study of Diabetes (EASD) and of the International Society for Pediatric and Adolescent Diabetes (ISPAD) endorsed by JDRF and supported by the American Diabetes Association (ADA). Diabetologia 2020, 63, 2501–2520. [Google Scholar]
- Woldaregay AZ, Arsand E, Walderhaug S, Albers D, Mamykina L, Botsis T, et al. Data-driven modeling and prediction of blood glucose dynamics: Machine learning applications in type 1 diabetes. Artif Intell Med. 2019, 98, 109–34. [Google Scholar] [CrossRef] [PubMed]
- Gyuk P, Vassányi I, Kósa I. Blood Glucose Level Prediction for Diabetics Based on Nutrition and Insulin Administration Logs Using Personalized Mathematical Models. J Healthc Eng. 2019, 2019, 8605206. [Google Scholar]
- Mathioudakis NN, Everett E, Routh S, Pronovost PJ, Yeh HC, Golden SH, Saria S. Development and validation of a prediction model for insulin-associated hypoglycemia in non-critically ill hospitalized adults. BMJ Open Diabetes Res Care. 2018, 6, e000499. [Google Scholar] [CrossRef]
- Gyuk P, Vassányi I, Kósa I. Blood Glucose Level Prediction for Diabetics Based on Nutrition and Insulin Administration Logs Using Personalized Mathematical Models. J Healthc Eng. 2019, 2019, 8605206. [Google Scholar]

| Feature Group | Meaning |
|---|---|
| CGM Differences | N-th order differences between consecutive CGM levels. |
| Rolling Range | Maximum and minimum values calculated over a window of observations. |
| Range Oscillator | Position of the latest value in the rolling range. Range Oscillator value of 1 means it is at the top of the range, 0 means it is at the bottom, and a value in between indicates its relative position. |
| Volatility | Effectively represents the changiness of the underlying data. Can be measured by rolling standard deviation, mean absolute deviation, etc. |
| Relative Speed | Ratio of level change value to volatility, which effectively means how fast the latest change is compared to the rolling metric. Positive Relative Speed means the underlying time series is rising and negative Relative Speed means its falling. Relative Speed values outside the range [–1, +1] can indicate trend acceleration, and inside the range – its deceleration. |
| Glycaemia class | This is effectively what we aim to predict – hypoglycemia, hyperglycemia or normal |
| ARIMA | Logistic Regression | LSTM | ||||
| 15-min | 1-hour | 15-min | 1-hour | 15-min | 1-hour | |
| Glycemia state | ||||||
| Hyper | 0.87 | 0.61 | 0.96 | 0.79 | 0.90 | 0.85 |
| Norm | 0.87 | 0.70 | 0.91 | 0.59 | 0.78 | 0.63 |
| Hypo | 0.60 | 0.07 | 0.98 | 0.83 | 0.88 | 0.87 |
| Accuracy | 0.86 | 0.63 | 0.93 | 0.69 | 0.84 | 0.73 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).