Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2025 Jan;8(1):e70023.
doi: 10.1002/edm2.70023.

Diagnosis Osteoporosis Risk: Using Machine Learning Algorithms Among Fasa Adults Cohort Study (FACS)

Affiliations

Diagnosis Osteoporosis Risk: Using Machine Learning Algorithms Among Fasa Adults Cohort Study (FACS)

Saghar Tabib et al. Endocrinol Diabetes Metab. 2025 Jan.

Abstract

Introduction: In Iran, the assessment of osteoporosis through tools like dual-energy X-ray absorptiometry poses significant challenges due to their high costs and limited availability, particularly in small cities and rural areas. Our objective was to employ a variety of machine learning (ML) techniques to evaluate the accuracy and precision of each method, with the aim of identifying the most accurate pattern for diagnosing the osteoporosis risks.

Methods: We analysed the data related to osteoporosis risk factors obtained from the Fasa Adults Cohort Study in eight ML methods, including logistic regression (LR), baseline LR, decision tree classifiers (DT), support vector classifiers (SVC), random forest classifiers (RF), linear discriminant analysis (LDA), K nearest neighbour classifiers (KNN) and extreme gradient boosting (XGB). For each algorithm, we calculated accuracy, precision, sensitivity, specificity, F1 score and area under the curve (AUC) and compared them.

Results: The XGB model with an AUC of 0.78 (95% confidence interval [CI]: 0.74-0.82) and an accuracy of 0.79 (0.75-0.83) demonstrated the best performance, while AUC and accuracy values of RF were achieved (0.78 and 0.77), LR (0.78 and 0.77), LDA (0.78 and 0.76), DT (0.76 and 0.79), SVC (0.71 and 0.64), KNN (0.63 and 0.59) and baseline LR (0.72 and 0.82), respectively.

Conclusion: The XGB model had the best performance in assessing the risk of osteoporosis in the Iranian population. Given the disadvantages and challenges associated with traditional osteoporosis diagnostic tools, the implementation of ML algorithms for the early identification of individuals with osteoporosis can lead to a significant reduction in morbidity and mortality related to this condition. This advancement not only alleviates the substantial financial burden placed on the healthcare systems of various countries due to the treatment of complications arising from osteoporosis but also encourages health policies to shift toward more preventive approaches for managing this disease.

Keywords: Fasa Adult Cohort Study; diagnosis; machine learning; osteoporosis.

PubMed Disclaimer

Conflict of interest statement

The authors declare no conflicts of interest.

Figures

FIGURE 1
FIGURE 1
Feature importance of top‐20 diagnosers.
FIGURE 2
FIGURE 2
Shapley additive explanation force plot for two selected patients.

Similar articles

References

    1. Ou Yang W. Y., Lai C. C., Tsou M. T., and Hwang L. C., “Development of Machine Learning Models for Prediction of Osteoporosis From Clinical Health Examination Data,” International Journal of Environmental Research and Public Health 18, no. 14 (2021): 7635, 10.3390/ijerph18147635. - DOI - PMC - PubMed
    1. Rizoevna K. D., “Osteoporosis: A Modern View of the Problem,” Scientific Journal of Applied and Medical Sciences 3, no. 4 (2024): 77–83.
    1. Choi M. H., Yang J. H., Seo J. S., Kim Y. J., and Kang S. W., “Prevalence and Diagnosis Experience of Osteoporosis in Postmenopausal Women Over 50: Focusing on Socioeconomic Factors,” PLoS One 16, no. 3 (2021): e0248020, 10.1371/journal.pone.0248020. - DOI - PMC - PubMed
    1. Lin Y.‐T., Chu C.‐Y., Hung K.‐S., et al., “Can Machine Learning Predict Pharmacotherapy Outcomes? An Application Study in Osteoporosis,” Computer Methods and Programs in Biomedicine 225 (2022): 107028. - PubMed
    1. Wu X. and Park S., “A Prediction Model for Osteoporosis Risk Using a Machine‐Learning Approach and Its Validation in a Large Cohort,” Journal of Korean Medical Science 38, no. 21 (2023): e162, 10.3346/jkms.2023.38.e162. - DOI - PMC - PubMed