Related Experiment Video
Updated: Jan 18, 2026

Implementation of a Real-Time Psychosis Risk Detection and Alerting System Based on Electronic Health Records using CogStack
Published on: May 15, 2020
Predicting the Risk of COVID-19 Among Adult Patients With Diabetes: A Machine Learning Approach
Dean T Eurich1, Darren Lau2, Weiting Li3
1School of Public Health, University of Alberta, Edmonton, Alberta, Canada.
Objectives:
In this study our aim was to develop a machine learning model that could accurately predict the risk of acquiring COVID-19 in community-dwelling adults with type 1 and/or type 2 diabetes in Alberta, Canada.
Methods:
This predictive supervised machine learning study included adults (≥18 years old) living in Alberta, Canada, between April 1, 2019, and March 31, 2021, with pre-existing diabetes (n=372,055, excluding 2,541 due to migration; final sample size 369,514). The outcome of interest was a positive severe acute respiratory syndrome-coronavirus-2 (SARS-CoV-2) polymerase chain reaction test result between March 1, 2020, and March 1, 2021. Model features were extracted from routinely collected Alberta administrative health data from March 1, 2015, to March 1, 2020. Fifteen algorithms were trained on 67% of the data and the top performer (Light Gradient Boost [LGBoost] model) was validated on the remaining 33%. The model was calibrated and model performance was assessed using area under the receiver-operating characteristic curve (AUROC), area under the precision recall curve (AUPRC), and threshold analyses.
Results:
Among the 369,514 individuals with diabetes, 140,511 were tested, of whom 13,082 had a positive SARS-CoV-2 test. The LGBoost model incorporated 367 features with AUROC and AUPRC of 0.69 and 0.08, respectively. The model was well-calibrated for common risk thresholds (<0.2 probability) with high specificity (≥0.98 at all thresholds); however, sensitivity and positive predictive values were low at all thresholds (≤0.08 and ≤0.18, respectively).
Conclusions:
The LGBoost model lacked the sensitivity to be clinically useful in predicting SARS-CoV-2 infection in Albertans with diabetes. Alternative data sources may be required to improve future COVID-19 prediction models from the community.
Related Concept Videos
Diabetes: Symptoms, Diagnosis, and Complications
Diabetes Mellitus: Type 2 and Gestational
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...
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,...
Steps in Outbreak Investigation
Diabetes: Management and Pharmacotherapy
Insulin remains the cornerstone of treatment for most patients with type 1 and many...
