Related Experiment Video
Updated: Aug 2, 2025

Improving IV Insulin Administration in a Community Hospital
Published on: June 11, 2012
Classification of Hypoglycemic Events in Type 1 Diabetes Using Machine Learning Algorithms
Lars Cederblad1, Gustav Eklund2, Amund Vedal2
1OneTwo Analytics Analytics AB, Fogdevreten 2A, 17165, Solna, Sweden.
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.
Related Concept Videos
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...
Hypoglycemia and Glucagon
Diabetes Mellitus: Type 2 and Gestational
Diabetes: Symptoms, Diagnosis, and Complications
Pathophysiology of Diabetes
Type 1 diabetes is characterized by autoimmune-mediated destruction of pancreatic β cells, with environmental factors potentially triggering this process in genetically susceptible individuals. Despite many not having a family history, certain genes increase susceptibility,...
Carbohydrate Metabolism
Starch accounts for approximately 60% of the carbohydrates consumed by humans. Since amylase enzymes cannot function in the stomach's acidic environment, starch can only be digested in the mouth and small intestine. Simple sugars are found naturally in milk and fruits in...

