1Jiangxi University of Chinese Medicine, Nanchang, Jiangxi, China
2Affiliated Hospital of Jiangxi University of Chinese Medicine, Nanchang, Jiangxi, China
Objective: This study was aimed at developing an interpretable machine learning model for predicting osteoporosis (OP) risk using real-world clinical data, and at establishing a web-based visualization tool for assisting clinical decision-making.
Methods: A total of 5,328 individuals from the Affiliated Hospital of Jiangxi University of Chinese Medicine (2015–2024) were included. Multidimensional data, including demographic characteristics, anthropometric measures, lumbar spine bone mineral density (L1–L4), and more than 90 blood biochemical and inflammatory markers, were collected. Key variables were identified using univariate analysis followed by least absolute shrinkage and selection operator (LASSO) regression. Five machine learning algorithms—Decision Tree, Random Forest, XGBoost, CatBoost, and Multi-Layer Perceptron (MLP)—were developed and compared. SHapley Additive exPlanations (SHAP) analysis was conducted to enhance model interpretability, and a web-based tool was subsequently developed based on the best-performing model.
Results: Five key predictive variables—age, sex, body mass index (BMI), uric acid (UA), and alkaline phosphatase (ALP)—were ultimately selected. Among the five models evaluated, the Random Forest model achieved the highest AUC (0.759) in the test set, demonstrating moderate discriminative performance and good model stability. SHAP analysis revealed that BMI contributed most to the model’s predictions, while increased age, female sex, elevated ALP, and reduced UA were associated with a higher risk of osteoporosis. Based on this model, a web-based tool was developed to enable individualized risk prediction and feature-level visualization, providing a quantitative reference for clinical risk assessment.
Conclusion: The osteoporosis prediction model developed in this study achieved quantitative risk estimation and interpretable outputs using a limited set of features, providing a feasible technical approach for early screening of osteoporosis. Future work should focus on external validation and recalibration in multicenter populations to further evaluate and optimize the model’s predictive performance and clinical applicability.
1 Introduction
Osteoporosis (OP) is a systemic skeletal disorder characterized by a reduction in bone mineral density (BMD) and the disruption of bone microarchitecture, which together compromise bone strength and increase the risk of fractures. It is considered a major threat to both the quality of life and survival among the elderly population (1). According to the International Osteoporosis Foundation (IOF), approximately one-third of women and one-fifth of men over the age of 50 worldwide are expected to experience at least one osteoporotic fracture during their lifetime, thereby rendering OP a significant global public health concern (2, 3). Given the accelerating pace of population aging, the burden of osteoporosis continues to grow, underscoring the urgent need for early, accurate, and interpretable predictive models to identify high-risk individuals and facilitate timely intervention (4).
Currently, the clinical diagnosis of OP is primarily based on dual-energy X-ray absorptiometry (DXA) to assess BMD, with a T-score ≤ − 2.5 serving as the diagnostic threshold (5). However, the availability of DXA in primary healthcare settings remains limited due to its high cost and technical requirements. Moreover, DXA does not capture the dynamic nature of bone metabolism, limiting its effectiveness in large-scale screening programs (6). Traditional tools, such as the FRAX model, incorporate only a narrow set of clinical risk factors (e.g., age, sex, weight, fracture history), thereby limiting their predictive performance across diverse populations and reflecting a restricted ability to capture the multidimensional regulation of bone metabolism (7, 8). Recent studies have increasingly highlighted that the pathogenesis of OP involves complex interactions among age, sex, endocrine function, inflammatory status, nutritional factors, and numerous biochemical indicators related to bone turnover (9). Serum biochemical and inflammatory markers such as alkaline phosphatase (ALP), uric acid (UA), lymphocyte ratio, serum amyloid A (SAA), and systemic immune-inflammation index (SII) have been shown to be significantly associated with OP risk, providing a theoretical basis for the construction of high-dimensional, multiparameter predictive models (10–12). Nonetheless, identifying the most informative predictors from extensive clinical datasets and developing robust, interpretable models remain core challenges in OP risk modeling.
Machine learning (ML) algorithms have demonstrated substantial potential in medical prediction tasks due to their capacity to handle nonlinear associations, high-dimensional features, and intricate interactions among variables (13). Studies have reported that ML-based models outperform conventional statistical approaches in OP prediction (4, 14). For instance, ML models trained on the NHANES database using algorithms such as XGBoost, LightGBM, and CatBoost identified age, sex, body mass index (BMI), and ALP as key predictors and demonstrated robust generalizability across various validation folds (15). In another study, deep neural networks combined with the LIME explanation algorithm were applied to the Korean KNHANES dataset, achieving high-accuracy prediction of femoral neck BMD (AUC = 0.922) (16). Regarding model interpretability, SHapley Additive exPlanations (SHAP) has gained increasing attention in medical AI research for its ability to generate both global and individual-level attributions, thereby enhancing transparency and trust in model outputs (17, 18). A comparative analysis conducted by Elias et al. found that SHAP outperformed LIME and permutation importance in terms of consistency in feature ranking, local explanation accuracy, and overall model transparency, further reinforcing its clinical applicability (13). Despite these advancements, several challenges persist. Most existing models have been developed using publicly accessible datasets, often without validation in real-world clinical populations, which limits their generalizability. Moreover, many studies rely on univariate statistical tests or expert-driven methods for feature selection, lacking comprehensive variable screening strategies. Furthermore, the absence of user-friendly visualization tools has impeded the clinical translation of such predictive models.
To address these gaps, the present study utilized a decade of real-world clinical data (2015–2024) from the Affiliated Hospital of Jiangxi University of Chinese Medicine, including 5,328 participants. A comprehensive dataset encompassing demographic characteristics, anthropometric measurements, lumbar spine BMD (L1–L4), and over 90 blood biochemical and inflammatory markers was compiled. Through univariate analysis followed by least absolute shrinkage and selection operator (LASSO) regression, five key predictors—age, sex, BMI, UA, and ALP—were identified. Five ML algorithms (Decision Tree, Random Forest, XGBoost, CatBoost, and Multi-Layer Perceptron) were developed and systematically evaluated, with Random Forest selected as the best-performing model. To enhance model interpretability, SHAP was incorporated to provide global and individualized explanations of model predictions. Additionally, a web-based visualization tool was designed, enabling real-time OP risk assessment and SHAP-based interpretation using the five selected input features. This platform offers an intuitive and practical decision support tool for clinicians.
2 Methods
2.1 Data collection and preprocessing
Clinical data were retrospectively collected from patients treated at the Affiliated Hospital of Jiangxi University of Chinese Medicine over a 10-year period (2015–2024). The dataset was composed of demographic characteristics, anthropometric measurements, lumbar spine bone mineral density (BMD; L1–L4), and a broad spectrum of serum biochemical and inflammatory indicators. Data were extracted from the hospital’s Information Department and the Bone Densitometry Unit. During the data cleaning stage, at the patient level, cases with more than 30% missing clinical variables or missing key variables (such as sex, age, or major laboratory indicators) were excluded from further analysis. At the variable level, clinical indicators with a missing rate exceeding 20% across the total sample were removed if they were non-essential variables. Finally, missing values were imputed using the Random Forest imputation method. Based on the diagnostic criteria for osteoporosis, 5,328 participants were enrolled and subsequently categorized into a non-osteoporotic group (n = 3,431) and an osteoporotic group (n = 1,897) according to a T-score ≤ − 2.5, in line with World Health Organization (WHO) criteria and the instrument manufacturer’s reference standards (19). Demographic variables comprised age and sex, while anthropometric variables included body mass index (BMI). Biochemical indicators consisted of total protein (TP), albumin (ALB), globulin (GLOB), albumin/globulin (A/G) ratio, cholesterol (CHOL), high-density lipoprotein cholesterol (HDL-C), low-density lipoprotein cholesterol (LDL-C), triglycerides (TG), lipoprotein(a) [LPa], apolipoprotein B (APO-B), apolipoprotein A1 (APO-A1), total bilirubin (TBIL), direct bilirubin (DBIL), indirect bilirubin (IBIL), total bile acid (TBA), alkaline phosphatase (ALP), aspartate aminotransferase (AST), alanine aminotransferase (ALT), AST/ALT ratio, γ-glutamyl transferase (GGT), alpha-L-fucosidase (AFU), white blood cell count (WBC), absolute and percentage values of neutrophils (NEUT#/%), lymphocytes (LYMPH#/%), monocytes (MONO#/%), eosinophils (EOS#/%), and basophils (BASO#/%). Additional variables included red blood cell count (RBC), hemoglobin (HGB), hematocrit (HCT), mean corpuscular volume (MCV), mean corpuscular hemoglobin (MCH), mean corpuscular hemoglobin concentration (MCHC), red cell distribution width-standard deviation (RDW-SD), red cell distribution width-coefficient of variation (RDW-CV), platelet count (PLT), plateletcrit (PCT), platelet distribution width (PDW), mean platelet volume (MPV), platelet-large cell ratio (P-LCR), glucose (GLU), uric acid (UA), urea (UREA), sodium (Na), chloride (Cl), potassium (K), phosphorus (P), calcium (Ca), complement C1q, serum amyloid A (SAA), serum sialic acid (SA), β2-microglobulin (β2-MG), and adenosine deaminase (ADA). In addition, derived ratios and composite indices included neutrophil-to-lymphocyte ratio (NLR), platelet-to-lymphocyte ratio (PLR), lymphocyte-to-monocyte ratio (LMR), neutrophil-to-platelet ratio (NPR), platelet-to-albumin ratio (PAR), systemic inflammatory response index (SIRI), systemic immune-inflammation index (SII), uric acid to HDL-C ratio (UHR), cholesterol-to-HDL-C ratio (TC/HDL-C), and hemoglobin-to-RDW ratio (HRR). This study was a single-center retrospective analysis, in which model development and internal validation were conducted using data from the same source. The absence of external independent cohort validation may limit the model’s generalizability to other regions and diverse healthcare populations. The study protocol was approved by the Ethics Committee of the Affiliated Hospital of Jiangxi University of Chinese Medicine (Approval No. JZFYLL20220727032).
2.2 Feature selection using LASSO regression
To identify key features associated with OP, least absolute shrinkage and selection operator (LASSO) regression was applied to variables demonstrating statistical significance (p < 0.05) in the baseline analysis. The optimal penalty parameter (λ) was determined using ten-fold cross-validation. Features with non-zero coefficients were retained for subsequent model construction.
2.3 Machine learning model construction and validation
Five machine learning (ML) models—Decision Tree, Random Forest, XGBoost, CatBoost, and Multi-Layer Perceptron (MLP)—were constructed and comparatively evaluated. The dataset was randomly partitioned into a training set (70%) and a test set (30%). Models were trained using the training set and evaluated on the test set. Model performance was assessed using area under the receiver operating characteristic curve (AUC), accuracy, precision, recall, F1-score, positive predictive value (PPV), and negative predictive value (NPV). The model demonstrating the highest AUC and strongest generalizability was selected as the final predictive model and subsequently subjected to 10-fold cross-validation across the training, validation, and test sets to evaluate its robustness and predictive performance. To evaluate the clinical applicability of the model, a decision curve analysis (DCA) was further conducted to compare the optimal machine learning model with the optimal model built on a simple clinical rule comprising age, sex, and BMI. By comparing the two DCA curves, the net clinical benefit of the machine learning model over the traditional clinical rule model was quantitatively assessed.
2.4 Model interpretation using SHAP and LIME
To improve interpretability, SHapley Additive exPlanations (SHAP) was utilized to generate both global and local explanations for the optimal predictive model. Mean SHAP values were computed to quantify the contribution of each feature to the model output. In addition, SHAP force plots were generated for representative samples to visualize individual-level feature importance and the directionality of their effects. To further validate the local interpretability results, the Local Interpretable Model-agnostic Explanations (LIME) algorithm was additionally applied. LIME constructs locally linear surrogate models around individual predictions by perturbing the input data and observing corresponding output changes, thereby estimating each feature’s local contribution to the prediction. For representative cases, LIME explanation maps were visualized to compare the probability contributions of each variable toward osteoporosis and non-osteoporosis classifications, providing complementary interpretive evidence to the SHAP analysis.
2.5 Web-based visualization tool development
An interactive web-based tool was developed using the optimal model to facilitate individualized OP risk prediction. By inputting individual feature values, real-time predictions of OP probability are generated along with SHAP-based visual explanations. This functionality thereby offers clinicians a transparent and intuitive decision-support interface.
2.6 Statistical analysis
Statistical analyses were performed using R software (v4.2.1) and Python (v3.9). Normally distributed variables were reported as mean ± standard deviation (SD) and compared using the independent samples t-test. Non-normally distributed variables were presented as median (interquartile range, IQR) and analyzed using the Mann–Whitney U test. Categorical variables were expressed as frequency (percentage) and compared using the chi-square (χ2) test. Variables with p < 0.05 were included in least absolute shrinkage and selection operator (LASSO) regression for feature selection. Model performance was assessed using area under the receiver operating characteristic curve (AUC), accuracy, precision, recall, and F1-score. Ten-fold cross-validation was conducted to assess model stability. SHapley Additive exPlanations (SHAP) was applied for model interpretability analysis. A two-tailed p-value < 0.05 was considered statistically significant.
3 Results
3.1 Baseline characteristics
The overall study workflow is illustrated in Figure 1. A total of 5,328 patients were enrolled and classified into the non-osteoporosis (non-OP) group (n = 3,431) and the osteoporosis (OP) group (n = 1,897). Of the total cohort, 939 were male (17.6%) and 4,389 were female (82.4%). Compared with the non-OP group, patients in the OP group were significantly older (p < 0.001), had a higher proportion of females (p < 0.001), and exhibited lower BMI (p < 0.001). Laboratory findings revealed significantly elevated levels of NEUT%, LPa, SA, SAA, and ADA in the OP group (all p < 0.001), whereas PDW was markedly decreased (p < 0.001). Furthermore, significantly lower values were observed in HGB, EOS#, EOS%, LYMPH#, LYMPH%, HCT, RBC, ALT, GGT, TG, UA, P-LCR, WBC, ALB, and AFU in the OP group (all p < 0.001). Levels of AST/ALT, ALP, HDL-C, MONO%, NLR, PLR, PAR, SIRI, and SII were significantly elevated (all p < 0.001), while HRR, LMR, UHR, and TC/HDL-C were significantly decreased in the OP group (all p < 0.001). Additional significant differences were observed in TP, potassium (K), MCHC, A/G ratio, and BASO# between the two groups (p < 0.05). A total of 42 clinical variables with p < 0.05 were identified through baseline comparisons and selected for further analysis (Table 1; Figure 1).
Figure 1
Figure 1. Workflow diagram of the study.
Table 1
Table 1. Baseline characteristics of study participants.
3.2 Feature selection using LASSO regression
Clinical variables included in the analysis encompassed demographic data, anthropometric measures, and a broad range of biochemical parameters. Based on the 42 significant features identified from baseline analysis, LASSO regression was employed to select the most predictive features. Five variables with non-zero coefficients were ultimately retained: age, sex, BMI, UA, and ALP (Figure 2). The optimal λ value of the LASSO regression was 0.0296. In the ten-fold cross-validation, Age, Sex, BMI, UA, and ALP consistently retained non-zero coefficients across all folds, with a selection frequency of 100%, indicating high feature selection consistency and model stability.
Figure 2
Figure 2. LASSO regression for feature selection in osteoporosis prediction. (A) Path of coefficients as a function of the regularization parameter λ. (B) Ten-fold cross-validation for optimal λ selection. Five non-zero coefficient variables—age, sex, MI, UA, and ALP—were selected.
3.3 Construction and selection of machine learning models
In this study, five machine learning models—Decision Tree, Random Forest, XGBoost, CatBoost, and MLP—were constructed and compared for predictive performance in both the training and test sets. In the training set, the CatBoost model demonstrated superior performance, achieving an AUC of 0.818 (95% CI: 0.710–0.824) and an accuracy of 0.754 (95% CI: 0.709–0.825), followed by the Random Forest model with an AUC of 0.802 (95% CI: 0.694–0.809). In the test set, the Random Forest model achieved the highest AUC (0.759, 95% CI: 0.645–0.770), followed by XGBoost (0.753, 95% CI: 0.624–0.765) and CatBoost (0.752, 95% CI: 0.616–0.764). Considering both training and test results, the Random Forest model exhibited stable performance across datasets without evident overfitting or performance fluctuation. Given its consistent and moderate predictive capability in the test set, the Random Forest model was selected as the primary model for subsequent analyses (Table 2; Figure 3). In the simple clinical rule model constructed with age, sex, and BMI, the CatBoost algorithm achieved the best performance in the test set, with an AUC of 0.747 (95% CI: 0.650–0.758), and was identified as the optimal model for the Age + Sex + BMI group. The DCA results indicated that both the Random Forest and CatBoost models provided higher net benefits than the treat-all and treat-none strategies in both the training and test sets. Compared with the optimal simple clinical rule model (CatBoost), the optimal machine learning model (Random Forest) demonstrated greater net benefit and a wider range of effective threshold probabilities across most thresholds, suggesting superior clinical applicability for individualized osteoporosis risk assessment (Figure 4).
Table 2
Table 2. Performance comparison of machine learning classifiers for OP risk prediction.
Figure 3
Figure 3. Construction and evaluation of machine learning models. (A,E) Receiver operating characteristic (ROC) curves for training and testing sets, respectively. (B,F) Decision curve analysis (DCA) for net clinical benefit evaluation. (C,G) Calibration curves for assessing model agreement between predicted and actual probabilities. (D,H) Precision–recall (PR) curves for evaluating classification performance across thresholds.
Figure 4
Figure 4. Decision curve analysis (DCA) of the models. (A) DCA curves of the Random Forest and CatBoost models in the training set; (B) DCA curves of the Random Forest and CatBoost models in the test set.
3.4 Ten-fold cross-validation of the optimal machine learning model
Random Forest was identified as the optimal machine learning (ML) model. To further assess its predictive accuracy and robustness, ten-fold cross-validation was conducted. The entire dataset was randomly split in a stratified manner, with 70% of the samples assigned to the training set and 30% to the independent test set, while maintaining the same proportion of positive (osteoporosis) and negative (non-osteoporosis) cases in both subsets. Ten-fold cross-validation was then performed within the training data to optimize hyperparameters and evaluate internal performance. The Random Forest model achieved an area under the receiver operating characteristic curve (AUC) of 0.804 (95% CI: 0.801–0.807) on the training set, 0.758 (95% CI: 0.730–0.785) on the validation set, and 0.758 (95% CI: 0.755–0.761) on the test set (Figure 5). The results indicated that the model demonstrated stable performance during internal validation and exhibited a certain degree of generalizability. Its predictive performance was at a moderate level, warranting further validation using external datasets.
Figure 5
Figure 5. ROC curves of the Random Forest model on the (A) training set, (B) validation set, and (C) test set.
3.5 Model interpretability based on SHAP and LIME analyses
Figure 6 displays the SHapley Additive exPlanations (SHAP) visualization results for the Random Forest model. SHAP facilitates interpretation of model outputs by quantifying the contribution of each feature to individual predictions. Lower BMI, female sex, older age, decreased uric acid (UA), and elevated alkaline phosphatase (ALP) were associated with increased osteoporosis (OP) risk, thereby identifying them as key risk factors (Figure 6A). Based on mean SHAP values, BMI contributed most to the model’s predictive output, followed by sex, age, UA, and ALP (Figure 6B). SHAP force plots were used to illustrate individual-level predictions for two representative cases (Figures 6C,D). For Patient 1 (f(x) = 0.67), the SHAP force plot showed the following values: age = 74.0, ALP = 157.3, sex = 0 (female), BMI = 22.51, and UA = 531.0. Age and ALP exhibited positive contributions to OP risk prediction, whereas BMI and UA contributed negatively, thereby reducing the predicted risk. For Patient 2 (f(x) = 0.41), the values were ALP = 116.7, sex = 1 (male), BMI = 26.37, UA = 356.0, and age = 60.0. In this case, ALP contributed positively to risk, while BMI, UA, and age contributed negatively. These individual-level SHAP analyses confirmed the relevance and directional impact of the five selected features—BMI, sex, age, UA, and ALP—in predicting OP, thereby supporting the interpretability of the model. LIME analysis provided additional case-level interpretability for the model. As shown in Figures 6E,F, the LIME explanation plots presented the predicted probabilities of osteoporosis and non-osteoporosis for representative individuals, together with the contribution weights of each variable. In high-risk cases (Figure 6E), lower BMI, advanced age, female sex, decreased uric acid, and elevated alkaline phosphatase were the main drivers that increased the predicted probability of osteoporosis (0.72). Conversely, in low-risk cases (Figure 6F), higher BMI, male sex, and higher uric acid contributed to a reduced probability of osteoporosis (0.13). The LIME results were largely consistent with the SHAP interpretations, confirming that BMI, sex, and age exerted the strongest local influence on prediction outcomes, while UA and ALP provided complementary information. This dual-model interpretive framework strengthens the reliability and transparency of the model’s decision process.
Figure 6
Figure 6. Model interpretability based on SHAP and LIME analyses. (A) SHAP summary plot of feature contributions. (B) Bar plot of mean absolute SHAP values. (C) SHAP force plot for a typical high-risk patient (f(x) = 0.67). (D) SHAP force plot for a typical low-risk patient (f(x) = 0.41). (E) LIME explanation plot for a representative high-risk individual. The bars show each variable’s local contribution to the predicted probability of osteoporosis. Lower BMI, advanced age, female sex, decreased UA, and elevated ALP jointly increased the probability of osteoporosis (0.72). (F) LIME explanation plot for a representative low-risk individual. Higher BMI, male sex, and higher UA contributed to a reduced probability of osteoporosis (0.13).
3.6 Development of a web-based visualization tool
To enhance clinical applicability, the final Random Forest model was deployed as a web-based application (Figure 7). By inputting the five required feature values, the tool generates an immediate OP risk probability for the individual patient. Additionally, a personalized SHAP force plot is produced, visually illustrating the contribution of each feature to the prediction. In the SHAP visualization, blue-colored features shift the prediction toward the non-OP category, while red-colored features increase the likelihood of OP. For instance, when a patient’s predicted OP probability is 83%, the SHAP plot highlights the primary risk-enhancing and risk-reducing features, thereby improving transparency in clinical decision-making. This study developed an online osteoporosis risk calculator based on the Flask framework and HTML5, which can be directly accessed through a web browser without additional installation. The tool integrates five key variables—age (30–90 years), sex (male/female), BMI (15.0–40.0 kg/m2), uric acid (100–800 μmol/L), and alkaline phosphatase (30–300 U/L)—with built-in input range checks, format constraints, and logical validation to ensure data integrity and reliability of results. It is currently undergoing usability evaluation and functional optimization. Although not yet implemented in clinical pilot settings, its modular design enables future integration as an independent module within hospital electronic medical record or health examination management systems. The tool is intended for deployment in health examination centers, endocrinology departments, and orthopedic clinics to provide physicians with real-time, visualized risk scoring and feature interpretation for stratified screening and personalized follow-up planning (Figure 8).
Figure 7
Figure 7. Web-based OP risk prediction and SHAP interpretability tool. The deployed application based on the five-feature Random Forest model enables real-time OP risk prediction. Upon data entry, the tool provides a probability estimate and an individualized SHAP force plot. Blue features shift the model toward non-OP, while red features indicate OP risk factors.
Figure 8
Figure 8. Flowchart illustrating the clinical integration process and application scenarios of the web-based Random Forest osteoporosis risk prediction model.
4 Discussion
Osteoporosis (OP) is a chronic metabolic bone disorder characterized by decreased bone mineral density (BMD) and deterioration of bone microarchitecture, which significantly increases the risk of fragility fractures, especially in the elderly population (20). Conventional diagnostic methods, such as dual-energy X-ray absorptiometry (DXA), are often constrained by cost and limited accessibility. Additionally, widely used tools such as FRAX lack the capacity to capture complex, multidimensional clinical data (21). The present study aimed to develop an OP risk prediction model using high-dimensional real-world clinical data to improve the accuracy and efficiency of early screening. This study introduces three primary innovations. First, a large real-world dataset from the Affiliated Hospital of Jiangxi University of Chinese Medicine was utilized, comprising over 5,000 patients and integrating multi-level clinical characteristics and biochemical indicators. Second, a combined approach involving least absolute shrinkage and selection operator (LASSO) regression and machine learning algorithms was employed to identify key predictors and construct a robust risk assessment model. Third, SHapley Additive exPlanations (SHAP) were integrated to enhance model interpretability, thereby improving the transparency and clinical applicability of the prediction results. The results showed that the Random Forest model achieved an AUC of 0.759 on the test set, indicating a moderate discriminative ability. Among the selected predictors, body mass index (BMI), sex, age, uric acid (UA), and alkaline phosphatase (ALP) were identified as the most influential features. These variables align with previously reported risk factors for OP and further support their relevance in osteoporosis risk assessment.
A systematic comparison was conducted to evaluate the performance of five machine learning (ML) models for predicting osteoporosis (OP) risk. Considering the combined results from the training and test sets, the Random Forest model demonstrated stable performance across datasets without evident overfitting or performance fluctuation. Given its consistent and moderate predictive capability in the test set, the Random Forest model was selected as the primary model for subsequent analyses. For comparison, Wu et al. reported an XGBoost model with an AUC of 0.890 and an accuracy of 0.902 for OP prediction (22), while Je et al. achieved an AUC of 0.86 and an accuracy of 0.85 using the same algorithm (14). The AUC obtained by the Random Forest model in the present study is comparable to these findings, thereby supporting its clinical validity. Furthermore, Elias et al. observed that XGBoost performs well across multiple evaluation metrics, including accuracy, precision, and F1-score (13). Taken together, although CatBoost exhibited strong training-phase performance, Random Forest demonstrated the most consistent and generalizable results in the test set and was therefore selected as the final predictive model.
LASSO regression was employed in this study to identify five key clinical predictors of osteoporosis (OP) risk from an initial set of 42 variables: age, sex, body mass index (BMI), uric acid (UA), and alkaline phosphatase (ALP). Among these, BMI exhibited an inverse association with OP risk, consistent with prior findings (23). A study utilizing data from the Taiwan Biobank reported a significant negative correlation between BMI and OP prevalence, suggesting a higher risk among individuals with lower BMI (24). Another analysis proposed that maintaining a BMI between 23.0 and 24.9 kg/m2 minimizes the combined risk of OP and type 2 diabetes (25). There exists a complex and bidirectional biological relationship between BMI and osteoporosis. A low BMI markedly increases the risk of decreased bone mineral density (BMD) and fractures by reducing mechanical loading, lowering peak bone mass, and reflecting potential malnutrition or insufficient muscle mass. Reduced body weight decreases the mechanical stimuli exerted on bone tissue, leading to diminished osteogenic activity, while inadequate energy and protein intake further impairs bone matrix synthesis and repair (26). Obesity exerts a dual effect on bone health. Peripheral adiposity may increase bone mineral density (BMD) in certain skeletal sites by enhancing mechanical loading and producing estrogen-like metabolites. However, excessive body fat—particularly visceral adiposity—induces chronic low-grade inflammation and the secretion of pro-osteoclastic cytokines and adipokines (e.g., IL-6, TNF-α, and imbalances in adiponectin/leptin), which are often accompanied by increased bone marrow adiposity. The latter impairs bone formation through space-occupying effects and the release of inhibitory factors that suppress osteogenic differentiation of mesenchymal stem cells, ultimately compromising bone quality and elevating the risk of certain types of fractures (27). Sex was also recognized as a critical predictor, with females exhibiting substantially higher susceptibility to OP-related outcomes, including reduced bone mineral density (BMD) and increased fracture risk, primarily due to lower baseline bone mass and estrogen deficiency following menopause (28). Advancing age further compounds this risk. Studies have shown that women aged over 60 years experience accelerated bone loss and higher fracture rates compared to men (9), with OP prevalence reaching 37.3% in women and 7.5% in men over 50 years of age (29). The sharp decline in estrogen after menopause is a key driver of bone loss in women. Estrogen not only directly promotes bone formation by stimulating osteoblast activity but also inhibits bone resorption by upregulating osteoprotective factors such as osteoprotegerin (OPG) and suppressing pro-resorptive signals including RANKL and pro-inflammatory cytokines (e.g., TNF-α, IL-1, IL-6). Estrogen deficiency disrupts this balance, leading to increased osteoclast activity and an imbalance in bone remodeling (30). Beyond hormonal influences, sex differences are also reflected in immune and metabolic pathways. Following the loss of estrogen regulation, women are more prone to developing a state of chronic low-grade inflammation and a shift toward pro-resorptive immune cell phenotypes—such as increased Th17 and pro-inflammatory memory T cells. These immune alterations elevate both local and systemic levels of RANKL and inflammatory cytokines, thereby further promoting bone resorption (31). In addition, sex-related factors such as the lineage shift of bone marrow stromal cells (with mesenchymal stem cells more prone to adipogenic differentiation), interactions between the gut microbiota and estrogen metabolism, and sex chromosome– or receptor–dependent differences in gene expression collectively influence osteoblast and osteoclast function as well as the bone microenvironment. These factors jointly contribute to women’s greater susceptibility to bone quality deterioration in response to estrogen deficiency or age-related stress (32). A recent epidemiological study conducted in China in 2023 further supported this trend, reporting OP prevalence rates of 10.7% in men and 51.6% in women aged ≥60 years, thereby underscoring the significant influence of age and sex on OP risk (33, 34). With advancing age, bone tissue undergoes a series of cellular and molecular alterations that lead to reduced bone formation and relatively increased bone resorption, thereby elevating the risk of osteoporosis. Cellular senescence accumulates in bone marrow stromal cells, osteoblasts, and other bone-associated cells, and the resulting secretion of pro-inflammatory and matrix-degrading senescence-associated secretory phenotype (SASP) factors suppresses osteogenic differentiation while enhancing osteoclast activity, directly disrupting bone homeostasis (35). Age-related chronic low-grade inflammation and dysregulation of the immune–bone interplay lead to the upregulation of pro-resorptive cytokines such as RANKL, TNF-α, and IL-6, which further accelerate bone loss (31). The increased propensity of bone marrow mesenchymal stem cells to differentiate toward the adipogenic lineage leads to elevated marrow fat accumulation. This not only depletes the cellular pool available for osteogenesis but also suppresses bone formation and disrupts the bone microenvironment through adipose-derived secretory factors, ultimately reducing bone mineral density and bone quality (36). In addition, mitochondrial dysfunction, oxidative stress, epigenetic alterations, and the age-related decline of endocrine factors such as estrogen collectively impair the metabolic and reparative capacity of osteoblasts, reducing bone regeneration and mechanical adaptability. These cumulative effects establish aging as an independent and critical risk factor for osteoporosis (37). The relationship between UA and OP remains controversial. An analysis of the NHANES dataset identified a significant U-shaped relationship between UA levels and OP (non-linear p = 0.0287), with BMI fully mediating this association (mediation effect: −0.0024; 95% CI: −0.0026 to −0.0021), highlighting the critical role of body weight in modulating this interaction (38). A separate study involving 13,112 adults from the United States and China revealed a threshold effect between UA and BMD, with BMI accounting for approximately 13.6% of the mediation effect (39). In a cohort of 1,249 OP patients, a non-linear relationship between UA and BMD was again observed, particularly in individuals with BMI < 24 kg/m2. Notably, a 100 μmol/L increase in UA concentration corresponded to a 28.6% improvement in BMD, suggesting a potential protective role of moderate UA levels under specific conditions (40). Within a certain physiological range, serum uric acid (UA) can scavenge free radicals and alleviate oxidative stress, thereby preserving osteoblast function and preventing excessive osteoclast activation. This antioxidative property may help maintain bone mineral density (BMD), providing a biological basis for the positive associations observed in several epidemiological studies between low-to-moderate UA levels and higher BMD or reduced fracture risk (41). When UA levels rise to pathological ranges (hyperuricemia) or are accompanied by metabolic disturbances, the resulting excess reactive oxygen species and activation of inflammatory pathways—such as NLRP3 inflammasome activation and upregulation of pro-inflammatory cytokines—can enhance pro-resorptive signaling and disrupt the bone microenvironment, thereby increasing bone loss and fracture risk. Moreover, hyperuricemia is often associated with insulin resistance, endothelial dysfunction, and renal impairment, all of which can further affect bone metabolism by altering bone perfusion, nutrient supply, and endocrine signaling, ultimately shifting the impact of UA on bone from protective to detrimental (42). Therefore, clinical and epidemiological studies often reveal a nonlinear or “U-shaped” association—UA appears to exert a protective effect on bone at low-to-moderate levels, whereas elevated levels or specific metabolic contexts confer detrimental effects (43). Alkaline phosphatase (ALP), a key enzyme in bone metabolism, was also identified as a significant predictor. A study using NHANES data (2005–2018) involving 13,724 adults demonstrated a strong inverse association between total ALP (T-ALP) levels and BMD at both the lumbar spine and femoral neck. Each standard deviation increase in T-ALP corresponded to a 0.5% increase in OP risk (OR = 1.005, p < 0.001), and elevated T-ALP levels were associated with higher all-cause mortality among OP patients (44). Similarly, a cross-sectional analysis of 7,796 adults aged 20–59 years revealed a negative correlation between ALP and pelvic BMD (β ≈ −0.0008, p < 0.000001), with a plateau in BMD decline observed beyond ALP levels of approximately 97 U/L. This non-linear trend was consistent across age, sex, and ethnic subgroups, indicating that ALP may serve as a valuable biomarker for early identification of abnormal bone metabolism and elevated OP risk (45). Alkaline phosphatase (ALP), primarily produced by osteoblasts as bone-specific ALP (BsALP), promotes hydroxyapatite formation by hydrolyzing pyrophosphate, an inhibitor of mineralization. Thus, its serum level reflects bone formation activity and the mineralization process. Elevated or abnormal ALP levels often indicate increased bone remodeling or mineralization disorders, which are particularly evident in high-turnover bone diseases such as Paget’s disease or states of heightened bone metabolism (46). It is also important to note the multisource nature of total ALP. Tissues such as the liver, intestine, and placenta contribute to overall ALP activity; therefore, in assessing bone metabolism and osteoporosis risk, measuring bone-specific ALP (BsALP) provides greater specificity and interpretive value than total ALP (46). Therefore, the observed elevation of ALP associated with increased osteoporosis risk in this study may be interpreted as a biomarker of bone metabolic imbalance, characterized by high-turnover or aberrant mineralization processes (45). Consistent with the SHAP analysis, BMI showed the highest contribution (BMI > Sex > Age > UA > ALP), indicating that the model primarily relied on BMI-related variations to differentiate osteoporosis risk. The model inferred that lower BMI values strongly increased predicted risk, reflecting insufficient mechanical loading and poor nutritional or muscular support for bone formation. Sex and age exerted nonlinear SHAP effects, with postmenopausal females and older individuals showing higher risk contributions. Uric acid displayed a biphasic pattern, suggesting that moderate levels were protective while extremes elevated risk. ALP contributed modestly, indicating its role as a secondary marker of bone turnover. The SHAP pattern reveals that the model prioritized variables capturing metabolic, hormonal, and structural determinants of bone fragility. Collectively, the five variables identified via LASSO regression—BMI, sex, age, UA, and ALP—represent clinically meaningful and evidence-supported predictors of OP, forming a robust foundation for risk stratification and personalized screening.
SHapley Additive exPlanations (SHAP) were incorporated to interpret the Random Forest model developed for osteoporosis (OP) risk prediction. The global SHAP importance ranking indicated that BMI was the most influential predictor, as evidenced by the highest mean SHAP value, followed by sex, age, uric acid (UA), and alkaline phosphatase (ALP). At the local interpretation level, SHAP force plots clearly illustrated both the direction and magnitude of each feature’s influence on OP risk prediction for individual patients. Higher BMI and elevated UA levels were associated with negative contributions—suggesting protective effects—while increased age and elevated ALP levels were linked to positive contributions, reflecting their role in the pathogenesis of OP. The clinical utility of SHAP in disease prediction has been supported by prior studies. A comparative evaluation conducted by Elias et al. highlighted that SHAP significantly enhances interpretability and trust in clinical models, enabling the identification of dominant risk features for personalized intervention (13). Rietz et al. further demonstrated the integration of SHAP into the FREM-ML fracture risk model within clinical workflows, emphasizing the importance of visual explanations of individual-level risk drivers to facilitate treatment decisions (47). Similarly, Ghasemi et al. reported that SHAP, as a widely adopted model-agnostic interpretability method, substantially enhances transparency and credibility in oncology diagnostic modeling, and has shown robust generalizability across medical AI applications (18).
In this study, the Random Forest-based model was implemented as a web-based visualization tool to improve clinical applicability. By inputting five key variables—age, sex, BMI, UA, and ALP—the tool provides real-time individualized predictions of OP risk, accompanied by SHAP force plots that visually quantify each feature’s contribution. This enhances both interpretability and clinical usability in decision-making. In recent years, the integration of interpretable and visualized machine learning models into clinical workflows has gained traction. Lai et al. reported in a multi-cohort validation study that encapsulating complex machine learning models into interactive web applications can transform model predictions into intuitive risk assessment tools. Such applications also enable visualization of feature importance, thereby mitigating the “black box” criticism and enhancing clinical interpretability and acceptability (48). Lin et al. also proposed a web-based clinical decision support system (Web-CDSS) for AI-assisted decision-making, in which the predictive modeling and visualization interpretation modules (similar to SHAP outputs) are tightly integrated to facilitate interactive use by clinical practitioners (49). Yang et al. developed an interpretable machine learning model for low bone density risk assessment and subsequently deployed it as a web-based platform to provide clinicians with real-time risk prediction and model interpretability services (50). These studies demonstrate that integrating predictive models with web-based visualization interfaces enables clinicians without technical backgrounds to intuitively observe predicted probabilities as well as the direction and magnitude of key variable contributions to risk, thereby enhancing the usability and trustworthiness of such tools.
This study has several limitations. First, the data were obtained from a single medical institution, and the regional specificity of the sample may limit the model’s generalizability, making its applicability in different healthcare settings less robust. Second, all biochemical indicators were measured in a single laboratory, which may introduce measurement bias and affect variable consistency. Third, this study employed a retrospective design without any form of external validation (e.g., temporal, geographical, or inter-institutional validation). The absence of performance and calibration assessment using independent external cohorts may lead to an overestimation of the model’s true transferability. In addition, FRAX and GARVAN scores were not available in our dataset, which prevented comparison with established clinical risk assessment tools. Future studies should expand the sample size and incorporate multicenter and multi-regional data to strengthen external validation and enhance clinical applicability. We plan to conduct independent validations across different time frames and healthcare institutions or regions, systematically reporting model discrimination (AUC/AUCPR), calibration (Brier score, calibration slope/intercept), and clinical net benefit (decision curve analysis, DCA).
5 Conclusion
Based on a large-scale clinical dataset, this study identified five key predictive variables—age, sex, BMI, UA, and ALP—using LASSO regression and compared multiple machine learning algorithms. The Random Forest model was ultimately selected as the optimal predictive approach, achieving an AUC of 0.759 in the independent test set, indicating moderate predictive performance. Model interpretability analysis using SHAP clarified the relative contribution of each variable to osteoporosis risk prediction. Furthermore, a web-based visualization tool was developed based on this model to enable automated, individualized assessment of osteoporosis risk. External validation and recalibration using multicenter datasets are still required to confirm the model’s robustness and clinical applicability.
Data availability statement
The datasets presented in this study can be found in online repositories. The names of the repository/repositories and accession number(s) can be found in the article/supplementary material.
Author contributions
ZS: Formal analysis, Project administration, Writing – original draft, Writing – review & editing. JW: Data curation, Methodology, Writing – original draft. QD: Conceptualization, Methodology, Writing – original draft. LC: Investigation, Methodology, Software, Writing – original draft. XH: Data curation, Investigation, Methodology, Software, Writing – original draft. WS: Formal analysis, Resources, Visualization, Writing – original draft. WL: Writing –review & editing, Supervision, Conceptualization, Funding acquisition. HL: Formal analysis, Funding acquisition, Resources, Visualization, Writing – original draft, Writing – review & editing.
Funding
The author(s) declare that financial support was received for the research and/or publication of this article. This work was supported by grants from the National Traditional Chinese Medicine Dominant Specialty Construction Program in Orthopedics (Grant No. Gan Caishi Zhi [2024] No. 39), the Jiangxi Provincial TCM Master Program (Grant No. Ganrenshezi [2021] 201), the Key Laboratory for the Research of Bi Syndrome (Grant No. Ganzhongyiyaokejiaozi [2022] 8), and the Science and Technology Program of Jiangxi Provincial Health Commission (Grant No. 202510417).
Conflict of interest
The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
Generative AI statement
The authors declare that no Gen AI was used in the creation of this manuscript.
Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.
Publisher’s note
All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.
References
1. Sarfati, M, Chapurlat, R, Dufour, AB, Sornay-Rendu, E, Merle, B, Boyd, SK, et al. Short-term risk of fracture is increased by deficits in cortical and trabecular bone microarchitecture independent of DXA BMD and FRAX: bone microarchitecture international consortium (BoMIC) prospective cohorts. J Bone Miner Res. (2024) 39:1574–83. doi: 10.1093/jbmr/zjae143
2. Shen, Y, Huang, X, Wu, J, Lin, X, Zhou, X, Zhu, Z, et al. The global burden of osteoporosis, low bone mass, and its related fracture in 204 countries and territories, 1990-2019. Front Endocrinol. (2022) 13:882241. doi: 10.3389/fendo.2022.882241
3. Tang, N, Gao, L, Song, J, Li, Y, Song, M, Qiu, C, et al. Risk analysis for subsequent fracture of osteoporotic fractures in Chinese women over age 60: a nationwide cross-sectional study. Sci Rep. (2024) 14:13319. doi: 10.1038/s41598-024-64170-w
4. Tu, JB, Liao, WJ, Liu, WC, and Gao, XH. Using machine learning techniques to predict the risk of osteoporosis based on nationwide chronic disease data. Sci Rep. (2024) 14:5245. doi: 10.1038/s41598-024-56114-1
5. El Miedany, Y, El Gaafary, M, Gadallah, N, Sulimani, R, AlAli, NS, Alzoubi, Z, et al. Standards for structured reporting of dual-energy X-ray absorptiometry scans: best practice recommendations by the Pan Arab osteoporosis society. Egypt Rheumatol Rehabil. (2023) 50:49. doi: 10.1186/s43166-023-00217-6
7. Jha, D, Chandran, M, Hong, N, Rhee, Y, Baek, S, Ferguson, SJ, et al. Discriminatory accuracy of fracture risk assessment tool in Asian populations: a systematic review and Meta-analysis. J Bone Metab. (2024) 31:296–315. doi: 10.11005/jbm.24.781
9. Smit, AE, Meijer, OC, and Winter, EM. The multi-faceted nature of age-associated osteoporosis. Bone Rep. (2024) 20:101750. doi: 10.1016/j.bonr.2024.101750
10. Zhuo, H, Zhou, Z, Chen, X, Song, Z, Shang, Q, Huang, H, et al. Constructing and validating a predictive nomogram for osteoporosis risk among Chinese single-center male population using the systemic immune-inflammation index. Sci Rep. (2024) 14:12637. doi: 10.1038/s41598-024-63193-7
11. Bai, B, Xie, X, Yue, Y, Cui, J, Xie, F, and Yao, F. Association between immune-inflammatory index and osteoporosis: a systematic review and meta-analysis. Eur J Med Res. (2025) 30:632. doi: 10.1186/s40001-025-02893-w
13. Elias, F, Reza, MS, Mahmud, MZ, Islam, S, and Alve, SR. Machine learning meets transparency in osteoporosis risk assessment: a comparative study of ML and explainability analysis. arXiv preprint. (2025) arXiv:2505.00410. doi: 10.48550/arXiv.2505.00410
14. Je, M, Hwang, S, Lee, S, and Kim, Y. Development and evaluation of a machine learning model for osteoporosis risk prediction in Korean women. BMC Womens Health. (2025) 25:146. doi: 10.1186/s12905-025-03669-4
16. Suh, B, Yu, H, Kim, H, Lee, S, Kong, S, Kim, JW, et al. Interpretable deep-learning approaches for osteoporosis risk screening and individualized feature analysis using large population-based data: model development and performance evaluation. J Med Internet Res. (2023) 25:e40179. doi: 10.2196/40179
17. Nouis, SC, Uren, V, and Jariwala, S. Evaluating accountability, transparency, and bias in AI-assisted healthcare decision- making: a qualitative study of healthcare professionals' perspectives in the UK. BMC Med Ethics. (2025) 26:89. doi: 10.1186/s12910-025-01243-z
18. Ghasemi, A, Hashtarkhani, S, Schwartz, DL, and Shaban-Nejad, A. Explainable artificial intelligence in breast cancer detection and risk prediction: a systematic scoping review. Cancer Innov. (2024) 3:e136. doi: 10.1002/cai2.136
19. Kanis, JA. Assessment of fracture risk and its application to screening for postmenopausal osteoporosis: synopsis of a WHO report. WHO study group. Osteoporos Int. (1994) 4:368–81. doi: 10.1007/BF01622200
20. Zhang, J, Hu, Y, and Cai, W. Bone metabolism factors in predicting the risk of osteoporosis fracture in the elderly. BMC Musculoskelet Disord. (2024) 25:442. doi: 10.1186/s12891-024-07560-5
22. Wu, X, and Park, S. A prediction model for osteoporosis risk using a machine-learning approach and its validation in a large cohort. J Korean Med Sci. (2023) 38:e162. doi: 10.3346/jkms.2023.38.e162
23. Luo, Q, Zhang, S, Liang, Z, Wang, D, Zhong, Y, Xia, B, et al. The obesity paradox in osteoporosis risk among older adults is mostly driven by women: a population-based prospective study. BMC Geriatr. (2025) 25:58. doi: 10.1186/s12877-025-05704-3
24. Chiu, CT, Lee, JI, Lu, CC, Huang, SP, Chen, SC, and Geng, JH. The association between body mass index and osteoporosis in a Taiwanese population: a cross-sectional and longitudinal study. Sci Rep. (2024) 14:8509. doi: 10.1038/s41598-024-59159-4
25. Ha, J, and Baek, KH. Body mass index at the crossroads of osteoporosis and type 2 diabetes. Korean J Intern Med. (2020) 35:1333–5. doi: 10.3904/kjim.2020.540
26. Cui, P, Wang, W, Wang, Z, Hu, X, Liu, X, Kong, C, et al. The association between body mass index and bone mineral density in older adults: a cross-sectional study of community population in Beijing. BMC Musculoskelet Disord. (2024) 25:655. doi: 10.1186/s12891-024-07782-7
27. Wang, X, Zhang, C, Zhao, G, Yang, K, and Tao, L. Obesity and lipid metabolism in the development of osteoporosis (review). Int J Mol Med. (2024) 54:61. doi: 10.3892/ijmm.2024.5385
28. Zhang, YY, Xie, N, Sun, XD, Nice, EC, Liou, YC, Huang, C, et al. Insights and implications of sexual dimorphism in osteoporosis. Bone Res. (2024) 12:8. doi: 10.1038/s41413-023-00306-4
30. Hsu, SH, Chen, LR, and Chen, KH. Primary osteoporosis induced by androgen and estrogen deficiency: the molecular and cellular perspective on pathophysiological mechanisms and treatments. Int J Mol Sci. (2024) 25:12139. doi: 10.3390/ijms252212139
31. Mi, B, Xiong, Y, Knoedler, S, Alfertshofer, M, Panayi, AC, Wang, H, et al. Ageing-related bone and immunity changes: insights into the complex interplay between the skeleton and the immune system. Bone Res. (2024) 12:42. doi: 10.1038/s41413-024-00346-4
32. Kverka, M, and Stepan, JJ. Associations among estrogens, the gut microbiome and osteoporosis. Curr Osteoporos Rep. (2024) 23:2. doi: 10.1007/s11914-024-00896-w
33. Wang, J, Zheng, Y, Wang, Y, Zhang, C, Jiang, Y, Suo, C, et al. BMI trajectory of rapid and excessive weight gain during adulthood is associated with bone loss: a cross-sectional study from NHANES 2005-2018. J Transl Med. (2023) 21:536. doi: 10.1186/s12967-023-04397-9
35. He, X, Hu, W, Zhang, Y, Chen, M, Ding, Y, Yang, H, et al. Cellular senescence in skeletal disease: mechanisms and treatment. Cell Mol Biol Lett. (2023) 28:88. doi: 10.1186/s11658-023-00501-5
36. Chandra, A, Lagnado, AB, Farr, JN, Schleusner, M, Monroe, DG, Saul, D, et al. Bone marrow adiposity in models of radiation- and aging-related bone loss is dependent on cellular senescence. J Bone Miner Res. (2022) 37:997–1011. doi: 10.1002/jbmr.4537
38. Tu, J, Mo, X, Zhang, X, Chen, Z, Xi, L, Wu, C, et al. BMI mediates the association of serum uric acid with bone health: a cross-sectional study of the National Health and nutrition examination survey (NHANES). BMC Musculoskelet Disord. (2024) 25:482. doi: 10.1186/s12891-024-07595-8
39. Xiu, Z, Gao, Z, and Luo, L. The triangular relationship of serum uric acid, osteoporosis or osteopenia, and body mass index for men and postmenopausal women. Sci Rep. (2025) 15:24859. doi: 10.1038/s41598-025-10191-y
40. Xu, MZ, Lu, K, Yang, XF, Ye, YW, Xu, SM, Shi, Q, et al. Association between serum uric acid levels and bone mineral density in patients with osteoporosis: a cross-sectional study. BMC Musculoskelet Disord. (2023) 24:306. doi: 10.1186/s12891-023-06414-w
41. Kim, S, Lee, S, and Kwon, H. Association between serum uric acid level and bone mineral density in men more than 50 years of age. Front Endocrinol. (2023) 14:1259077. doi: 10.3389/fendo.2023.1259077
42. Du, L, Zong, Y, Li, H, Wang, Q, Xie, L, Yang, B, et al. Hyperuricemia and its related diseases: mechanisms and advances in therapy. Signal Transduct Target Ther. (2024) 9:212. doi: 10.1038/s41392-024-01916-y
43. Zinellu, A, and Mangoni, AA. A systematic review and meta-analysis of the association between uric acid and allantoin and rheumatoid arthritis. Antioxidants. (2023) 12:1569. doi: 10.3390/antiox12081569
44. Chen, R, Gong, K, Chen, W, Chen, Z, Hua, X, Tan, J, et al. Association of serum alkaline phosphatase levels with bone mineral density, osteoporosis prevalence, and mortality in US adults with osteoporosis: evidence from NHANES 2005-2018. Osteoporos Int. (2025) 36:283–97. doi: 10.1007/s00198-024-07324-w
45. Cheng, X, and Zhao, C. The correlation between serum levels of alkaline phosphatase and bone mineral density in adults aged 20 to 59 years. Medicine. (2023) 102:e34755. doi: 10.1097/MD.0000000000034755
47. Rietz, M, Brond, JC, Moller, S, Sondergaard, J, Bo, A, and Hass, RK. Interpretable (“explainable”) machine learning in osteoporosis case finding: using SHAP values in clinical decision-support for the FREM fracture prediction algorithm. In: Endocrine Abstracts (2025) doi: 10.1530/endoabs.109.op7.4
49. Lin, TH, Chung, HY, Jian, MJ, Chang, CK, Perng, CL, Liao, GS, et al. An advanced machine learning model for a web-based artificial intelligence-based clinical decision support system application: model development and validation study. J Med Internet Res. (2024) 26:e56022. doi: 10.2196/56022
50. Yang, X, Liu, J, Huang, X, Liang, H, Cui, P, He, S, et al. Machine learning-driven clinical decision support for low bone mineral density: a web-based prediction model with explainable AI integration. Bone. (2025) 200:117592. doi: 10.1016/j.bone.2025.117592
Keywords: osteoporosis, machine learning, LASSO regression, Random Forest, SHAP, clinical decision support
Citation: Shao Z, Wu J, Deng Q, Cheng L, Huang X, Sun W, Liang W and Li H (2025) Development of a machine learning-based predictive model for osteoporosis risk and its application in clinical decision support. Front. Med. 12:1680731. doi: 10.3389/fmed.2025.1680731
Received: 06 August 2025; Accepted: 29 October 2025; Published: 13 November 2025.
†These authors have contributed equally to this work
Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.