An Extreme Gradient Boosting machine learning model incorporating body composition metrics and standard laboratory markers showed strong discrimination for prevalent osteoporosis among individuals diagnosed with type 2 diabetes mellitus, according to research published in the European Journal of Medical Research. The cross-sectional investigation sought to address key limitations in conventional diagnostic workflows, as existing clinical tools often fail to capture the metabolic influences that drive skeletal deterioration. While patients presenting with type 2 diabetes experience elevated probabilities of osteoporosis and fragile fractures despite maintaining preserved bone mineral density, standard evaluation frameworks frequently miss these underlying metabolic dynamics.
The investigation analyzed data across distinct clinical cohorts, encompassing a total development cohort of 871 patients diagnosed with type 2 diabetes mellitus. Investigators partitioned this primary sample using an outcome-stratified seven-to-three sampling approach into a training set comprising 609 individuals and an internal validation set containing 262 individuals. Among the training cohort, 182 participants met the diagnostic criteria for osteoporosis, whereas 79 patients in the internal validation cohort had the condition. To further evaluate model transportability, the research team assembled an independent external validation cohort consisting of 179 patients with type 2 diabetes, of whom 35 had prevalent osteoporosis.
Osteoporosis diagnoses across the cohorts were established through dual-energy X-ray absorptiometry scans in strict alignment with World Health Organization criteria. To determine which parameters contributed most informatively to identifying bone loss, the researchers executed feature selection via Least Absolute Shrinkage and Selection Operator regression. This screening pipeline successfully isolated eight key predictors from the broader panel of evaluated clinical indicators and body composition measurements.
To construct and refine their predictive architectures, the research team utilized five-fold cross-validation coupled with systematic hyperparameter optimization. Within this training architecture, the Synthetic Minority Over-sampling Technique was applied exclusively within each individual training fold to address potential outcome imbalances without introducing data leakage into evaluation steps. Model assessment relied on receiver operating characteristic curves, precision-recall curves, calibration plots, and classification metrics calculated at the Youden-optimal threshold.
Among the evaluated candidate algorithms, the Extreme Gradient Boosting framework, known as XGBoost, exhibited the highest discriminatory capability across all testing stages. In the training set, the model attained an area under the receiver operating characteristic curve of 0.875, with a 95 percent confidence interval spanning 0.845 to 0.903. Performance remained robust in testing sets, yielding an area under the curve of 0.902 with a 95 percent confidence interval of 0.862 to 0.938 in the internal validation cohort, and 0.893 with a 95 percent confidence interval of 0.836 to 0.940 in the independent external validation cohort. At the Youden-optimal threshold within the internal validation set, the model achieved a sensitivity of 0.772, a specificity of 0.869, and an F1-score of 0.744.
Beyond overall discriminatory accuracy, investigators examined model interpretability using Local Interpretable Model-Agnostic Explanations and SHapley Additive exPlanations frameworks. These explainability techniques demonstrated that reduced total muscle mass, advanced participant age, decreased relative skeletal muscle index, and elevated glycated hemoglobin concentrations were consistently associated with an increased probability of prevalent osteoporosis among individuals with type 2 diabetes mellitus.
Despite these favorable statistical results, the researchers emphasized that the framework remains hypothesis-generating and is not a validated clinical decision tool. Because the investigation was restricted to a cross-sectional design, a single development center, and a single external validation cohort, prospective external validation is necessary before any clinical deployment can occur. For now, the system serves as a transparent research framework for risk stratification specifically among patients who have already completed dual-energy X-ray absorptiometry body composition assessments.
Subject of Research: Machine learning evaluation of prevalent osteoporosis in type 2 diabetes
Article Title: Interpretable machine learning for identifying prevalent osteoporosis in type 2 diabetes using clinical and body composition parameters
Article References: Ma, W., Zhao, S., Liu, Y., Chen, S., Huang, Y., & He, J. (2026). Interpretable machine learning for identifying prevalent osteoporosis in type 2 diabetes using clinical and body composition parameters. European Journal of Medical Research. https://doi.org/10.1186/s40001-026-05524-0
Image Credits: AI Generated
DOI: 10.1186/s40001-026-05524-0
Keywords: osteoporosis, type 2 diabetes, machine learning, XGBoost, body composition, dual-energy X-ray absorptiometry, relative skeletal muscle index, glycated hemoglobin, muscle mass, LIME, SHAP, cross-sectional study, receiver operating characteristic, LASSO regression, bone mineral density, fracture risk
News Source: Teresa Odom. (November 24, 2026). Machine Learning Model Identifies Prevalent Osteoporosis in Type 2 Diabetes Patients. Scienmag.



