Your new experience awaits. Try the new design now and help us make it even better

ORIGINAL RESEARCH article

Front. Nutr.

Sec. Nutritional Epidemiology

This article is part of the Research TopicPersonalized Nutrition: Current Status and Future DirectionsView all articles

Multidimensional dietary assessment and interpretable machine learning models predict the risk of prediabetes/diabetes and osteoporosis comorbidity in older adults

Provisionally accepted
  • 1Kunsan National University, Gunsan-si, Republic of Korea
  • 2Shantou University Medical College, Shantou, China
  • 3Xi'an Jiaotong University, Xi'an, China
  • 4The Education University of Hong Kong, Hong Kong, Hong Kong, SAR China
  • 5First Affiliated Hospital of Soochow University, Suzhou, China
  • 6China Academy of Chinese Medical Sciences, Beijing, China

The final, formatted version of the article will be published soon.

Background: Background: The health burden of diabetes mellitus and osteoporosis (DM-OP) comorbidity in the aging population is increasing, and dietary factors are modifiable risk determinants. This study developed and validated a machine learning model to predict DM-OP comorbidity using multidimensional dietary assessment. Methods: This study utilized data from NHANES cycles 2005-2010, 2013-2014, and 2017-2020, ultimately including 4,678 participants aged ≥65 years. Dietary data were collected through 24-hour dietary recalls, encompassing macronutrients, micronutrients, food processing classification (NOVA), and five dietary quality scores. Missing data were handled using random forest algorithm, feature selection was performed using Boruta algorithm, and SMOTE technique addressed class imbalance. Eight machine learning algorithms (XGBoost, decision tree, logistic regression, multilayer perceptron, naive Bayes, k-nearest neighbors, random forest, and support vector machine) were implemented with 10-fold cross-validation for performance evaluation. Results: A total of 4,678 participants were included, with 347 (7.4%) having DM-OP comorbidity (concurrent prediabetes/diabetes and osteoporosis). After feature selection, 46 variables were retained for model construction. The random forest model demonstrated superior predictive performance with the lowest error rate (0.161), highest accuracy (0.839), ROC AUC of 0.965, sensitivity of 0.827, and specificity of 0.852. SHAP analysis revealed gender as the most important predictor, with females at higher risk; BMI showed positive correlation with comorbidity risk; while carotenoid, vitamin E, magnesium, and zinc intake were negatively correlated with disease risk, suggesting potential protective associations. An online risk prediction tool was developed based on the optimized random forest model for real-time individual comorbidity risk calculation. Conclusions: The random forest model demonstrated excellent performance in predicting diabetes-osteoporosis comorbidity in elderly adults, with gender, BMI, and specific nutrient intake as key predictors. This model provides an effective tool for clinical early identification of high-risk populations and implementation of preventive interventions.

Keywords: machine learning, Diabetes Mellitus, Osteoporosis, Comorbidity, Dietary nutrient intake, SHAP analysis, older adults

Received: 15 Jul 2025; Accepted: 29 Oct 2025.

Copyright: © 2025 ShangGuan, He, Lin, Liu, Sim, Huang, Wu, Yan, Xu and Li. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

* Correspondence:
Litao Yan, yanlitaodtc@163.com
Kunyuan Xu, xky3371@gmail.com
Huan Li, lihuan1317@sina.com

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.