Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2023 Apr 13.
doi: 10.1007/s13300-023-01403-7. Online ahead of print.

Classification of Hypoglycemic Events in Type 1 Diabetes Using Machine Learning Algorithms

Affiliations

Classification of Hypoglycemic Events in Type 1 Diabetes Using Machine Learning Algorithms

Lars Cederblad et al. Diabetes Ther. .

Abstract

Introduction: To improve the utilization of continuous- and flash glucose monitoring (CGM/FGM) data we have tested the hypothesis that a machine learning (ML) model can be trained to identify the most likely root causes for hypoglycemic events.

Methods: CGM/FGM data were collected from 449 patients with type 1 diabetes. Of the 42,120 identified hypoglycemic events, 5041 were randomly selected for classification by two clinicians. Three causes of hypoglycemia were deemed possible to interpret and later validate by insulin and carbohydrate recordings: (1) overestimated bolus (27%), (2) overcorrection of hyperglycemia (29%) and (3) excessive basal insulin presure (44%). The dataset was split into a training (n = 4026 events, 304 patients) and an internal validation dataset (n = 1015 events, 145 patients). A number of ML model architectures were applied and evaluated. A separate dataset was generated from 22 patients (13 'known' and 9 'unknown') with insulin and carbohydrate recordings. Hypoglycemic events from this dataset were also interpreted by five clinicians independently.

Results: Of the evaluated ML models, a purpose-built convolutional neural network (HypoCNN) performed best. Masking the time series, adding time features and using class weights improved the performance of this model, resulting in an average area under the curve (AUC) of 0.921 in the original train/test split. In the dataset validated by insulin and carbohydrate recordings (n = 435 events), i.e. 'ground truth,' our HypoCNN model achieved an AUC of 0.917.

Conclusions: The findings support the notion that ML models can be trained to interpret CGM/FGM data. Our HypoCNN model provides a robust and accurate method to identify root causes of hypoglycemic events.

Keywords: Continuous glucose monitoring; Convolutional neural networks; Hypoglycemia; Machine learning; Type 1 diabetes.

References

    1. The Diabetes Control and Complications Trial/Epidemiology of Diabetes Interventions and Complications (DCCT/EDIC) Study Research Group. Long-term effect of diabetes and its treatment on cognitive function. N Engl J Med. 2007;356(18):1842–52.
    1. Feltbower RG, Bodansky HJ, Patterson CC, et al. Acute complications and drug misuse are important causes of death for children and young adults with type 1 diabetes: results from the Yorkshire Register of diabetes in children and young adults. Diabetes Care. 2008;31(5):922–6. - DOI - PubMed
    1. Skrivarhaug T, Bangstad HJ, Stene LC, Sandvik L, Hanssen KF, Joner G. Long-term mortality in a nationwide cohort of childhood-onset type 1 diabetic patients in Norway. Diabetologia. 2006;49(2):298–305. - DOI - PubMed
    1. Livingstone SJ, Levin D, Looker HC, et al. Estimated life expectancy in a Scottish cohort with type 1 diabetes, 2008–2010. JAMA. 2015;313(1):37–44. - DOI - PubMed - PMC
    1. Heald AH, Stedman M, Davies M, et al. Estimating life years lost to diabetes: outcomes from analysis of National Diabetes Audit and Office of National Statistics data. Cardiovasc Endocrinol Metab. 2020;9(4):183–5. - DOI - PubMed - PMC