Interpretable machine learning for identifying prevalent osteoporosis in type 2 diabetes using clinical and body composition parameters
Year: 2026
Type: article
Abstract: Type 2 diabetes mellitus (T2DM) is associated with an elevated risk of osteoporosis (OP) and fractures, even when bone mineral density is preserved. Existing OP assessment tools do not capture the metabolic factors influencing bone health. We aimed to develop and validate a machine learning framework to evaluate the likelihood of OP in patients with T2DM. This cross-sectional study included 871 patients with T2DM, divided by outcome-stratified 7:3 sampling into training (n = 609; OP = 182) and internal validation sets (n = 262; OP = 79); an independent external validation cohort comprised 179 patients (OP = 35). OP was diagnosed using dual-energy X-ray absorptiometry (DXA) according to World Health Organization criteria. Features were selected using Least Absolute Shrinkage and Selection Operator regression. Machine learning models were constructed using 5-fold cross-validation and hyperparameter optimization, with the Synthetic Minority Over-sampling Technique applied only within each training fold. Model performance was assessed using receiver operating characteristic curves, precision–recall curves, calibration plots, and classification metrics at the Youden-optimal threshold. Local Interpretable Model-Agnostic Explanations (LIME) and SHapley Additive exPlanations (SHAP) explained the optimized model. Feature selection identified eight predictors. The Extreme Gradient Boosting (XGBoost) model performed best, with an area under the receiver operating characteristic curve of 0.875 (95% CI 0.845–0.903), 0.902 (95% CI 0.862–0.938), and 0.893 (95% CI 0.836–0.940) in the training, internal validation, and external validation sets, respectively. At the Youden-optimal threshold, its sensitivity, specificity, and F1-score in the internal validation set were 0.772, 0.869, and 0.744, respectively. LIME and SHAP indicated that reduced muscle mass, advanced age, decreased relative skeletal muscle index, and higher glycated hemoglobin were associated with increased OP risk. Machine learning models, particularly XGBoost, incorporating body-composition metrics and standard laboratory markers yield good discrimination of prevalent OP in patients with T2DM. Given the cross-sectional design, single development center, and single external validation cohort, the model is hypothesis-generating and requires prospective external validation before clinical deployment. Nevertheless, it provides a transparent framework for research-use risk stratification in patients who have already undergone DXA body-composition assessment; it is not a validated clinical decision tool.
Language: English
Subfield: Orthopedics and Sports Medicine
Field: Medicine
Domain: Health Sciences
Open Access status: gold
Estimated APC paid: $3,190
Funder: Wenzhou Medical University
OpenAlex ID: W7238746176
FWCI:
Cites:
Cited by:
Related to:
