Development and validation of a machine learning model to predict comorbid hypertension in patients with type 2 diabetes
Hailu Yang, Changfeng Fan, Chunyan Liu
Lishui City People's Hospital · Nanjing Traditional Chinese Medicine Hospital
Key points
From the paper's conclusion- Conclusion: The validated random forest model effectively predicts hypertension in type 2 diabetes patients, integrating metabolic, behavioral, and socioeconomic factors.
Abstract
Background: Hypertension is a critical comorbidity in patients with type 2 diabetes mellitus that significantly increases cardiovascular risk. Although several predictive models have been developed using conventional logistic regression or basic machine learning algorithms, these approaches often face significant limitations. Many existing models suffer from a lack of external validation which limits their generalizability, or they operate as black boxes without providing interpretable clinical insights. Furthermore, most prior studies have focused exclusively on biological indicators while overlooking the potential impact of socioeconomic determinants and lifestyle factors on disease progression. Objective: To address these gaps, this study aimed to develop a high-performance Random Forest model for predicting hypertension risk in diabetic patients by integrating multidimensional data, including clinical metrics, lifestyle habits, and socioeconomic status. The study further sought to validate the model's robustness using an independent external cohort and assess its clinical utility through SHAP analysis, providing transparent interpretations of risk factors to guide personalized medical decision-making. Methods: A multicenter retrospective cohort study was conducted using electronic medical records from two tertiary hospitals. Eligible adults with type 2 diabetes and no prior hypertension were included. A total of 900 eligible patients were included, with 420, 180, and 300 participants in the training, testing, and external validation cohorts, respectively. Feature selection combined Boruta and LASSO methods, yielding seven predictors. Seven algorithms were tested, and model performance was assessed through cross-validation, independent testing, and external validation. The random forest model was explained using SHAP analysis. Results: Among 900 participants, the random forest model achieved the best discrimination, with AUCs of 0.89 in internal testing and 0.83 in external validation. Calibration and decision curve analyses confirmed stability and clinical utility. Key predictors included alcohol consumption, triglycerides, diabetes duration, health insurance type, fasting blood glucose, estimated glomerular filtration rate, and exercise frequency. Conclusion: The validated random forest model effectively predicts hypertension in type 2 diabetes patients, integrating metabolic, behavioral, and socioeconomic factors. Its interpretability and robust performance support its potential use for early identification and personalized prevention of hypertension in clinical practice.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Development and Validation of a Machine Learning-Based Model for Predicting All-Cause Mortality Risk in Patients With Type 2 Diabetes Mellitus Combined With Hypertension: National Cohort Study.JMIR medical informatics · 2026
- 308 Development and Validation of an Interpretable Machine Learning Model for the Risk Assessment of Diabetic Nephropathy Among Patients With Different Hypertension Phenotypes: A Cross-sectional StudyAmerican Journal of Clinical Pathology · 2026
- Construction and validation of a hypoglycemia risk prediction model for hospitalized type 2 diabetes patients based on machine learningBMC Endocrine Disorders · 2025
- An explainable and calibrated LightGBM model for hypertension risk stratification in older adults with diabetes.Frontiers in cardiovascular medicine · 2026
- Predicting cardiovascular disease among diabetic patients in Ethiopia using machine learning models: evidence from Ethiopian public health Institute data (2024/2025)BMC Public Health · 2025
- An interpretable machine learning model for predicting 1-year major adverse cardiovascular events in patients with type 2 diabetes and hypertension.Frontiers in medicine · 2026