诊断学理论与实践2026,Vol.25Issue(4):467-475,9.DOI:10.16150/j.1671-2870.2026.04.010
基于机器学习算法的骨质疏松性骨折预测模型构建
Research on construction of osteoporotic fracture prediction models based on machine learning algorithms
摘要
Abstract
Objective Based on clinical data from patients with osteoporosis,five machine learning algorithms are used to construct osteoporotic fracture risk prediction models,and their performance is evaluated and compared.Methods A total of 333 consecutive patients with osteoporosis(66 males and 267 females;median age,69 years)who attended Song-jiang Hospital Affiliated to Shanghai Jiao Tong University School of Medicine from January 2020 to December 2025 were selected according to inclusion and exclusion criteria.Patients were divided into a fracture group(n=146)and a non-frac-ture group(n=187)based on the presence or absence of a history of fragility fractures.Baseline patient data and laboratory indicators were collected,and missing data were handled using multiple imputation by chained equations.Relevant studies were conducted using the R programming language.Feature variables were screened using logistic regression and lasso regression,and variable importance was ranked using random forest.Data were split into a training set and a test set at a 7∶3 ratio.Models were constructed using logistic regression,decision tree(DT),random forest,support vector machine,and extreme gradient boosting(XGBoost)algorithms.The performance of the models in predicting osteoporotic fracture risk was evaluated using indicators such as the area under the receiver operating characteristic curve(AUC),accuracy,sensitivity,and specificity.The optimal model was interpreted using SHAP(SHapley Additive exPlanations)values.Results Univaria-te logistic regression analysis showed that sex,parathyroid hormone(PTH),N-terminal mid-fragment osteocalcin(N-MID-OT),alkaline phosphatase,albumin,calcium,mean corpuscular hemoglobin(MCH),mean corpuscular hemoglobin concen-tration(MCHC),hemoglobin,and phosphorus were significantly associated with osteoporotic fractures.Lasso regression identified seven key features:sex,PTH,N-MID-OT,albumin,calcium,MCHC,and phosphorus.After random forest impor-tance ranking,six variables-sex,PTH,N-MID-OT,calcium,phosphorus,and MCHC-were included in machine learning modeling.Using the test set data as input,the performance of each machine learning model in predicting osteoporotic fractures was compared.The results showed that the XGBoost model performed best with an AUC of 0.974(95%CI:0.950-0.998).The other four machine learning models also achieved good prediction performance,with AUCs ranging from 0.891 to 0.964.SHAP results indicated that N-MID-OT,calcium,and PTH had relatively large weights in the model,which was consistent with clinical cognition.Conclusions The XGBoost model constructed based on routine clinical indicators demonstrates good discriminative ability and stability in predicting the risk of osteoporotic fractures,has potential clinical application value,and is suitable for primary hospitals that are unable to conduct complete bone metabolism marker testing.关键词
机器学习/骨质疏松性骨折/预测模型Key words
Machine learning/Osteoporotic fracture/Prediction model分类
医药卫生引用本文复制引用
马善源,彭亮,侯彦强,刘维薇..基于机器学习算法的骨质疏松性骨折预测模型构建[J].诊断学理论与实践,2026,25(4):467-475,9.基金项目
教育部中国高校产学研创新基金(2024DR031) (2024DR031)