Abstract
Our ML models allow for an identification of individuals with prediabetes or diabetes who are at increased risk of developing micro- or macrovascular complications. The prediction performance varied across complications and target populations but was in an acceptable range for most prediction tasks.
Introduction
Diabetes mellitus is a progressive metabolic disorder where complications—such as kidney failure (nephropathy) or cardiovascular disease (CVD)—often begin to manifest during the "prediabetic" phase, before a formal diagnosis of type 2 diabetes is made. While numerous predictive models exist for patients with established diabetes, there is a significant clinical gap in tools designed to identify risk within the prediabetic population. Early identification is paramount, as lifestyle interventions and pharmacological treatments are most effective before permanent vascular damage occurs. This study investigates whether machine learning (ML) can leverage high-dimensional, routine electronic health record (EHR) data to provide reliable 5-year risk forecasts for both microvascular and macrovascular complications in these populations.
Methods
The researchers conducted a retrospective cohort study using longitudinal EHR data from a large Israeli healthcare provider. Two primary modeling approaches were compared:
- Logistic Regression (with L1 regularization): Serving as a traditional, interpretable statistical baseline.
- Gradient-Boosted Decision Trees (GBDTs): Specifically the CatBoost implementation, chosen for its ability to handle categorical data and missing values without extensive preprocessing.
The models incorporated 105 predictors, including demographics, biomarkers (e.g., HbA1c, glucose, creatinine), medications, and ICD-9 diagnostic codes. To ensure the robustness of the results, the team employed nested cross-validation for hyperparameter tuning and out-of-sample evaluation. Furthermore, SHAP (Shapley Additive Explanations) values were utilized to interpret the GBDT models and rank the features most influential to the risk scores.
Study Population and Datasets
The study analyzed anonymized EHRs spanning the decade from 2003 to 2013. Two distinct cohorts were identified at the 2008 baseline: a Prediabetes Cohort (n=13,904) and a Diabetes Cohort (n=4,259). The selection process and final cohort sizes are detailed in Figure 1.
The models targeted six specific outcomes:
- Microvascular: Retinopathy, Nephropathy, and Neuropathy.
- Macrovascular: Peripheral Vascular Disease (PVD), Cerebrovascular Disease (CeVD), and Cardiovascular Disease (CVD).
Results and Key Insights
The predictive models achieved "acceptable" to "good" discriminatory power across the various tasks.
Predictive Performance
- Prediabetes Cohort: AUROCs ranged from 0.657 (retinopathy) to 0.815 (nephropathy).
- Diabetes Cohort: AUROCs ranged from 0.646 (CeVD) to 0.775 (nephropathy).
Notably, nephropathy was the most predictable complication in both groups, likely due to its strong association with frequently measured biomarkers like serum creatinine. Conversely, cerebrovascular disease (CeVD) proved the most challenging to predict, reflecting its multifactorial nature and the potential absence of key risk factors in standard blood panels.
Model Comparison and Feature Importance
A surprising finding was that GBDTs did not consistently outperform Logistic Regression. This suggests that for many clinical outcomes in EHR data, the relationships between standard biomarkers and risk are predominantly linear, or that the inherent noise in routine clinical data limits the advantages of complex non-linear models.
SHAP value analysis revealed a clear divergence in risk drivers:
- Microvascular complications were primarily driven by HbA1c (blood sugar) levels.
- Macrovascular complications were predominantly influenced by Age and Hypertension.
Discussion and Limitations
This study is the first to provide specific prediction models for the prediabetic population across all six complications, confirming that risk is both present and predictable before a formal diabetes diagnosis. However, several limitations must be considered:
- Generalizability: The data is derived from a single Israeli population; validation in more diverse global cohorts is necessary.
- Data Sparsity: EHR data, often collected for administrative purposes, may lack consistent values for critical lifestyle factors like BMI or smoking status.
- Time Horizon: A 5-year window may be too short to capture the full progression of complications in prediabetic individuals.
- Missing Context: The absence of socioeconomic, nutritional, and physical activity data may have constrained the models' performance.
Conclusion
Machine learning models applied to routine EHR data can effectively identify individuals with prediabetes or diabetes at high risk for vascular complications. While performance varies by organ system, these tools offer a promising path toward personalized early intervention and improved metabolic health management.
Summary updated