Interpretable machine learning for identifying prevalent osteoporosis in type 2 diabetes using clinical and body composition parameters

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.

Authors

Institutions

Publication Details

Journal
European journal of medical research
Published
2026-11-23
DOI
https://doi.org/10.1186/s40001-026-05524-0
Primary Topic
Bone health and osteoporosis research
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Interpretable machine learning for identifying prevalent osteoporosis in type 2 diabetes using clinical and body composition parameters

shaoqing Chen, Yutong Liu, Jiawei He, Shundan Zhao et al.
European journal of medical research
Bone health and osteoporosis research
article

Interpretable machine learning for identifying prevalent osteoporosis in type 2 diabetes using clinical and body composition parameters

shaoqing Chen, Yutong Liu, Jiawei He, Shundan Zhao, Wangcan Ma, Yingying Huang
article en

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.

European journal of medical research
Wenzhou Medical University (CN), Second Affiliated Hospital & Yuying Children's Hospital of Wenzhou Medical University (CN), Shaoxing No.6 People's Hospital (CN), Shaoxing People's Hospital (CN)
Wenzhou Medical University
Bone health and osteoporosis research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon