Vitamin D3 for Life. Live Enlightened.

Research libraryVitamin D3 For Life
Study design and methods

Secondary relevance to vitamin D This paper mainly addresses another topic and also reports a vitamin D analysis, result or scientific synthesis.

This paper mainly addresses another topic and also reports a vitamin D analysis, result or scientific synthesis.

Why this paper is included

Supporting source evidence:

PIR, Poverty Income Ratio; BMI, Body Mass Index; 25-OH-D, 25-hydroxyvitamin D; MUFA, Monounsaturated Fatty Acids; PUFA, Polyunsaturated Fatty Acids; CDAI, Composite Dietary Antioxidant Index; DII, Dietary Inflammatory Index; HEI2020, Healthy Eating Index 2020; DASH, Dietary Approaches to Stop Hypertension; OBS Oxidative Balance Score. p< 0.05 *, p < 0.01**, p < 0.001***.

Source: Baseline characteristics of the population. View original paper

Relevance classification does not establish study quality, causation or editorial approval.

Study design Study design awaiting verification.

Study design awaiting verification

The available source does not establish a sufficiently clear study design.

Meta-analysis unclear · Blinding unclear / not reported · Human research reported

How this paper was classified

Automatic source-based classification; awaiting editorial verification. This is not a quality score.

This study utilized data from NHANES cycles 2005–2010, 2013–2014, and 2017–2020, ultimately including 4,678 participants aged ≥65 years.

Source: Abstract.

View supporting evidence in the original paper

What the study types mean
Systematic review
Uses explicit methods to identify, assess and summarise research on a defined question.
Scoping review
Maps the extent and characteristics of research on a topic.
Narrative review
Discusses existing research; systematic-review methods have not been established by this classification.
Review / evidence synthesis
Reviews existing research; the exact review methods need further assessment.
Randomised controlled trial
Assigns participants or groups to comparison interventions by chance.
Non-randomised intervention study
Examines an intervention without random allocation.
Cohort study
Examines exposures and outcomes over time within a defined group.
Case-control study
Compares people with an outcome against people without it, examining exposures.
Cross-sectional study
Examines a population at a particular point in time.
Observational study
Observes exposures and outcomes without assigning the exposure; the subtype is not established here.
Case report
Describes an individual case.
Case series
Describes a group of individual cases.
Secondary analysis
Analyses existing study data; this paper is not automatically another independent trial.
Laboratory study
Investigates biological processes in a laboratory setting.
Qualitative study
Examines experiences or meanings using qualitative methods.
Genetic instrumental-variable study
Uses genetic variation as an instrument to investigate relationships; this is not a randomised treatment trial.
Study protocol
Describes planned methods and is not evidence that the planned study has reported results.
Multiple reported designs
More than one design is explicitly reported; examine the supporting methods.
Study design awaiting verification
The available source does not establish a sufficiently clear study design.

Meta-analysis combines numerical results from studies. Blinding describes who was unaware of treatment allocation. Neither is a separate quality grade. Study design, vitamin D relevance and document format are independent filters.

Full studies

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

Study design awaiting verification · Frontiers in Nutrition · 2025

Original publication title

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

Yuwen ShangGuan; Kangkang Ji; Zhenhao Lin; Chenyiyi He; Young-Je Sim; Haobiao Liu; Kunyi Huang; Kunpeng Wu; Litao Yan; Kunyuan Xu; Huan Li

Copyright © 2025 ShangGuan, Ji, Lin, He, Sim, Liu, Huang, Wu, Yan, Xu and Li.

Original publication · Publisher record · CC BY 4.0

Source wording retained. Formatting, section navigation and display-title punctuation adapted for this research record.

At a glance

Study background

What background does the paper provide?

The global burden of chronic diseases has significantly increased, with diabetes mellitus (DM) and osteoporosis (OP) becoming intertwined public health challenges, especially among older adults (1). DM, characterized by persistent high blood sugar levels, currently affects over 537 million adults worldwide, with projections estimating 783 million by 2045 (2). Type 2 diabetes mellitus (T2DM) accounts for 90–95% of these cases and is often associated with obesity, physical inactivity, and aging (3, 4). Conversely, osteoporosis, defined by low bone mineral density and deteriorating bone structure, affects approximately 200 million people globally (5), with hip fractures resulting in a 20% mortality rate within one year (6).

Individuals with DM face a 1.5- to 2-fold higher risk of developing osteoporosis and fractures (7), primarily due to oxidative stress from high blood sugar levels, insulin resistance, and disrupted bone remodeling (8, 9). Additionally, prediabetes, affecting 374 million adults worldwide, offers a critical window for intervention, with a 35–50% chance of progressing to T2DM within 5–10 years (3). Recent studies establish a connection between prediabetes and early bone loss (10, 11), though the underlying mechanisms remain poorly understood (12).

This lack of clarity underscores the importance of exploring prediabetes as a potential precursor to osteoporosis, particularly in aging populations.

Dietary factors play a pivotal role in the pathogenesis of both diabetes and osteoporosis. Diets rich in pro-inflammatory components, such as trans fats and refined carbohydrates, exacerbate systemic inflammation, thereby promoting insulin resistance and accelerating bone loss (13). Conversely, foods high in antioxidants, such as fruits and vegetables, mitigate oxidative stress, potentially offering protective effects against both conditions (14). Ultra-processed foods (UPFs), characterized by high additive content and low nutritional value, are strongly associated with increased risks of both diseases due to their induction of inflammation and metabolic disturbances (15, 16).

Understanding the roles of these dietary factors is critical for developing effective prevention strategies. Furthermore, the impact of overall dietary patterns on bone health is evident across diverse populations, as demonstrated by a study linking maternal diet to bone density in Chinese lactating women and their infants (17). However, most studies have focused on the effects of individual nutrients, and there remains a lack of systematic exploration into how dietary patterns or composite dietary factors influence the combined pathogenesis of diabetes and osteoporosis.

In this context, machine learning algorithms have emerged as powerful tools for disease prediction, capable of analyzing complex, multidimensional data to create effective predictive models (18, 19). This study uses data from the National Health and Nutrition Examination Survey (NHANES) database, employing eight machine learning algorithms and SHAP analysis. The goal is to investigate the predictive role of dietary antioxidants for the comorbidity of prediabetes or diabetes with osteoporosis in older adults, identify key contributing factors, and develop an online prediction tool to provide a scientific basis and practical tool for early detection and intervention.

Source: Introduction Source: Introduction Source: Introduction

Study methods

What methods does the paper describe?

2.1

Data source and study population

Data were drawn from the 2005–2010, 2013–2014, and 2017–2020 NHANES cycles, including 62,782 individuals. These particular cycles were chosen because they encompass all available recent NHANES data cycles that contain both dual-energy X-ray absorptiometry (DXA) measurements for bone mineral density assessment and the detailed dietary data from 24-h recalls required for our multidimensional dietary assessment. Those under 65 years were excluded (53,886 removed), leaving 8,896 participants aged ≥ 65. Next, 1,364 individuals with missing diabetes or osteoporosis data were excluded, resulting in 7,532 participants.

Finally, 2,854 individuals with missing baseline data were removed, yielding a final cohort of 4,678 participants with complete data on age, diabetes/osteoporosis status, and baseline measurements. The screening process is shown in Figure 1.

Figure 1

Flowchart of participant selection in the NHANES dataset.

Figure image at the original source — open the original paper. This file is not included in this text import.
2.2

Dietary assessment

Dietary data were collected via two 24-h dietary recall interviews. Macronutrient intake included total carbohydrates, protein, total fat, saturated fat, monounsaturated fatty acids (MUFA), polyunsaturated fatty acids (PUFA), omega-3 fatty acids, omega-6 fatty acids, and cholesterol. Micronutrient assessment included vitamins (A, C, D, E, B6, B12, riboflavin, niacin, thiamin, folate), minerals (calcium, magnesium, iron, zinc, copper, selenium), and phytochemicals (alpha-carotene, beta-carotene, carotene retinol equivalents). Dietary fiber and caffeine intake were quantified. The intake data for macronutrients, micronutrients, and other dietary components were sourced directly from the NHANES-provided Total Nutrient Intake files (e.g., DR1TOT_J and DR2TOT_J).

The conversion of food items reported in the 24-h recalls to quantitative nutrient values was performed by the National Center for Health Statistics (NCHS) using the USDA’s Food and Nutrient Database for Dietary Studies (FNDDS), which links each food to its detailed nutritional composition (20). All nutrient intakes were energy-adjusted using the residual method. The average intake from two non-consecutive 24-h recalls was used as a proxy for usual intake, as this method reduces within-person variability and provides a more stable estimate of habitual consumption, consistent with established dietary assessment methodology.

2.2.1
Food processing classification

Food items were categorized into NOVA groups based on established classification rules using USDA food codes. To ensure coding consistency, a random subset of food items underwent dual coding by independent researchers, with discrepancies resolved through adjudication. Food items were categorized using the NOVA classification system into unprocessed and minimally processed foods, processed culinary ingredients, processed foods, and ultra-processed foods, with daily consumption calculated in grams. For specific coding rules for classification and to access the classification consistency assessment, please refer to Supplementary Table S2.

2.2.2
Dietary quality indices

Five validated dietary quality scores were calculated: Composite Dietary Antioxidant Index (CDAI), Dietary Inflammatory Index (DII), Healthy Eating Index 2020 (HEI-2020), Dietary Approaches to Stop Hypertension (DASH) score, and Oxidative Balance Score (OBS). Detailed calculation methods are provided in Supplementary material S1. All dietary variables were energy-adjusted and averaged across the two 24-h recalls to reflect usual intake. The use of two non-consecutive 24-h recalls, as implemented in NHANES, is a well-established method for estimating usual dietary intake at the population level.

Averaging intake from 2 days helps to attenuate within-person day-to-day variation and provides a more stable estimate of habitual consumption than a single day’s recall. Furthermore, the dietary quality indices used (CDAI, DII, HEI-2020, DASH, OBS) are composite measures that are less sensitive to daily fluctuations and more representative of longer-term dietary patterns.

2.3

Diagnosis of diabetes and osteoporosis

Diabetes was diagnosed using multiple criteria: physician diagnosis, fasting blood glucose ≥7.0 mmol/L, or glycosylated hemoglobin (HbA1c) ≥ 6.5%. Prediabetes was defined as fasting blood glucose of 5.6–6.9 mmol/L or HbA1c of 5.7–6.4%. The use of HbA1c and FPG, consistent with contemporary ADA guidelines and the operational feasibility of the NHANES protocol, provides a standardized approach for identifying dysglycemia in this large cohort, though it may not capture individuals with isolated postprandial hyperglycemia. Osteoporosis was diagnosed using standard dual-energy X-ray absorptiometry (DXA).

The DXA examinations were performed using Hologic QDR-4500A fan-beam densitometers (Hologic, Inc., Bedford, Massachusetts) following the standardized NHANES body composition procedures manual. The scans were analyzed using Hologic APEX 4.0 software. A T-score of ≤ − 2.5 at the femoral neck was used to define osteoporosis, For detailed diagnostic criteria, refer to Supplementary Table S3. Furthermore, it should be noted that the application of the uniform T-score threshold (≤ − 2.5) may have limitations across different sex and racial/ethnic groups, as population-specific bone mineral density reference data and fracture risk relationships can vary.

We define the “DM-OP” group as the “Diabetes Mellitus and Diabetes-Osteoporosis Comorbidity Group.” This group comprises participants who meet both of the following criteria: having osteoporosis and concurrently having diabetes mellitus or prediabetes. The non–DM-OP group included all participants without this comorbidity. Additionally, we conducted a sensitivity analysis by training separate interpretable machine learning models using only DM and only OP outcomes to distinguish between disease-specific dietary and metabolic predictors.

2.4

Covariates

Covariates included demographic, socioeconomic, anthropometric, clinical, and lifestyle factors. Demographic and socioeconomic variables comprised age (continuous), gender (male/female), race/ethnicity (Non-Hispanic White, Non-Hispanic Black, Mexican American, Other Hispanic, Other Race), marital status (married/living with partner, widowed/divorced/separated, never married), and educational attainment (below high school, high school, above high school). Socioeconomic status was assessed using the PIR, categorized as <1, 1–3, and >3. Anthropometric and clinical measurements included BMI, calculated from measured height and weight, and the presence of physician-diagnosed or laboratory-confirmed conditions such as hypertension, hyperlipidemia, cardiovascular disease, and stroke.

Glucose metabolism abnormalities were defined as impaired fasting glycemia (fasting glucose 5.6–6.9 mmol/L) and impaired glucose tolerance (2-h glucose 7.8–11.0 mmol/L based on oral glucose tolerance testing). Serum 25-hydroxyvitamin D [25(OH)D] concentrations were determined using standardized laboratory assays. Lifestyle and behavioral factors encompassed smoking status (never, former, current), alcohol consumption (grams per day estimated from 24-h dietary recalls), and serum cotinine concentration, which served as an objective biomarker of tobacco exposure.

2.5

Preprocessing of machine learning features

The initial dataset included 56 variables: 13 categorical and 43 continuous. Missing data were imputed using a random forest (RF) algorithm with 100 trees and up to 10 iterations. Imputation quality was evaluated using normalized root mean square error (NRMSE) for continuous variables and proportion of falsely classified (PFC) for categorical variables, both indicating reliable performance. Feature selection was performed using the Boruta algorithm to identify variables most relevant to the target outcome. To address class imbalance, we applied the Synthetic Minority Oversampling Technique (SMOTE), which increased the number of comorbid cases from 347 to 3,817, resulting in a total dataset of 4,331 participants (see Supplementary Figure S1 for details).

To prevent data leakage, all preprocessing steps—including data imputation, feature selection, and SMOTE oversampling—were strictly conducted within the training folds during cross-validation.

2.6

Statistical analysis

Eight machine learning algorithms were implemented using the mlr3 framework: XGBoost, decision tree, logistic regression (LR), multilayer perceptron (MLP), naive Bayes, k-nearest neighbors (KNN), RF, and support vector machine with radial basis function (SVM-RBF). These algorithms were selected for their complementary strengths and proven effectiveness in medical prediction tasks (21–23). Model performance was assessed using classification error rate, accuracy, F-beta score, area under the ROC curve (AUC), sensitivity, specificity, and area under the precision-recall curve (AUPRC). Ten-fold cross-validation ensured robust performance estimation.

Statistical significance of performance differences between models was evaluated using analysis of variance (ANOVA) and the Kruskal-Wallis H test. Feature importance in the optimal model was quantified using SHAP (SHapley Additive exPlanations) values, which provide global feature rankings and local explanations for individual predictions based on game theory. All analyses were conducted in R (version 4.4.3) using the packages survey, DMwR, ggcor, mlr3, mlr3benchmark, mlr3extralearner, kernelshap, and shapviz. Statistical significance was set at p < 0.05 for all tests.

Source: Methods Source: Methods Source: Methods Source: Methods Source: Methods Source: Methods

Results: Baseline characteristics of the population

A total of 4,678 participants were included in the analysis: 4,331 (92.6%) in the non-DM-OP (i.e., participants without the coexistence) group and 347 (7.4%) in the DM-OP comorbidity group. The DM-OP group was significantly older and predominantly female (p < 0.001). They exhibited lower socioeconomic status, with higher poverty rates and lower educational attainment (p < 0.001). Although the DM-OP group had a lower body mass index (BMI), they showed a higher prevalence of diabetes mellitus (p < 0.001) and impaired glucose metabolism.

Their dietary intake included significantly less total fat, protein, and multiple micronutrients, with lower CDAI scores (p = 0.031) and higher DII scores (p = 0.007), as shown in Table 1.

Table 1

Baseline characteristics of the study population according to DM-OP comorbidity status.

VariableNon-DM-OP (n=4331)DM-OP (n=347)p-value
Age (year), mean ± SD73.02 ± 5.4174.98 ± 5.36<0.001***
Gender, n (%)<0.001***
Female1959 (45.2)267 (76.9)
Male2372 (54.8)80 (23.1)
Race, n (%)<0.001***
Non-Hispanic White2530 (58.4)190 (54.8)
Non-Hispanic Black834 (19.3)23 (6.6)
Mexican American396 (9.1)53 (15.3)
Other Hispanic299 (6.9)47 (13.5)
Other Race272 (6.3)34 (9.8)
Marital status, n (%)<0.001***
Married/Living with Partner2574 (59.4)146 (42.1)
Widowed/Divorced/Separated1610 (37.2)183 (52.7)
Never married147 (3.4)18 (5.2)
PIR, n (%)<0.001***
<11047 (24.2)125 (36.0)
1-31982 (45.8)163 (47.0)
>31302 (30.1)59 (17.0)
Education level, n (%)<0.001***
Below high school577 (13.3)90 (25.9)
High school1663 (38.4)149 (42.9)
Above high school2091 (48.3)108 (31.1)
Smoking status, n (%)<0.001***
Never2033 (46.9)207 (59.7)
Former1890 (43.6)108 (31.1)
Current408 (9.4)32 (9.2)
BMI (kg/m2), mean ± SD29.01 ± 5.3127.16 ± 5.21<0.001***
Hypertension, yes, n (%)3207 (74.0)264 (76.1)0.442
Hyperlipidemia, yes, n (%)3639 (84.0)298 (85.9)0.404
Impaired fasting glycaemia, yes, n (%)312 (7.2)55 (15.9)<0.001***
Impaired glucose tolerance, yes, n (%)213 (4.9)62 (17.9)<0.001***
Diabetes mellitus, yes, n (%)1575 (36.4)230 (66.3)<0.001***
Osteoporosis, yes, n (%)392 (9.1)347 (100.0)<0.001***
Cardiovascular disease, yes, n (%)1214 (28.0)100 (28.8)0.801
Stroke, yes, n (%)410 (9.5)44 (12.7)0.064
25-OH-D (nmol/L), mean ± SD74.82 ± 26.7271.57 ± 27.580.030*
Dietary fiber (g/day), mean ± SD16.77 ± 7.8515.46 ± 5.850.002**
Total fat (g/day), mean ± SD72.09 ± 31.0861.56 ± 26.88<0.001***
Alpha-carotene (μg/day), mean ± SD462.94 ± 870.72467.66 ± 613.180.921
Beta-carotene (μg/day), mean ± SD2484.25 ± 2901.382406.55 ± 2619.220.629
Riboflavin (mg/day), mean ± SD1.97 ± 0.811.79 ± 0.72<0.001***
Niacin (mg/day), mean ± SD22.03 ± 9.2919.89 ± 8.24<0.001***
Vitamin B6 (mg/day), mean ± SD1.91 ± 0.941.78 ± 1.060.012*
Folate (μg/day), mean ± SD367.55 ± 166.07341.86 ± 131.750.005**
Vitamin B12 (μg/day), mean ± SD4.88 ± 5.464.30 ± 5.240.055
Vitamin C (mg/day), mean ± SD85.21 ± 63.3386.59 ± 65.810.697
Vitamin E (mg/day), mean ± SD7.73 ± 4.466.45 ± 3.12<0.001***
Calcium (mg/day), mean ± SD843.36 ± 380.18780.70 ± 335.290.003**
Magnesium (mg/day), mean ± SD278.19 ± 107.65251.49 ± 81.17<0.001***
Iron (mg/day), mean ± SD14.34 ± 6.5512.84 ± 5.10<0.001***
Zinc (mg/day), mean ± SD10.45 ± 5.279.08 ± 3.59<0.001***
Copper (mg/day), mean ± SD1.21 ± 0.841.10 ± 0.930.015*
Selenium (μg/day), mean ± SD98.70 ± 41.5088.72 ± 35.33<0.001***
Alcohol (g/day), mean ± SD6.07 ± 14.302.99 ± 9.30<0.001***
Cotinine (ng/mL), mean ± SD34.33 ± 111.3332.44 ± 104.880.761
Carotene RE (μg/day), mean ± SD226.49 ± 266.68221.28 ± 233.080.724
Vitamin A (μg RE/day), mean ± SD691.02 ± 561.08636.40 ± 563.520.081
Vitamin D (μg/day), mean ± SD4.60 ± 3.084.33 ± 2.800.117
Caffeine (mg/day), mean ± SD0.15 ± 0.130.12 ± 0.10<0.001***
Carbohydrates (g/day), mean ± SD220.03 ± 78.11203.68 ± 65.82<0.001***
Cholesterol (mg/day), mean ± SD257.00 ± 135.61213.34 ± 116.51<0.001***
Magnesium (mg/day), mean ± SD278.70 ± 107.76252.35 ± 81.67<0.001***
MUFA (g/day), mean ± SD25.30 ± 10.6421.67 ± 9.70<0.001***
N3 fatty acids (g/day), mean ± SD0.10 ± 0.300.07 ± 0.250.041*
N6 fatty acids (g/day), mean ± SD16.16 (7.8014.07 (7.53<0.001***
Protein (g/day), mean ± SD71.56 ± 26.2264.83 ± 22.96<0.001***
PUFA (g/day), mean ± SD16.16 ± 7.0514.05 ± 6.74<0.001***
Saturated fat (g/day), mean ± SD23.33 ± 10.9819.93 ± 9.15<0.001***
Thiamin (mg/day), mean ± SD1.50 ± 0.601.37 ± 0.49<0.001***
Processed food (g/day), mean ± SD716.63 ± 533.89681.23 ± 513.040.233
Ultra-processed food (g/day), mean ± SD816.96 ± 730.55812.85 ± 696.340.919
Unprocessed food (g/day), mean ± SD1112.45 ± 983.741100.07 ± 948.770.821
CDAI (score), mean ± SD0.16 ± 3.23-0.23 ± 2.960.031*
DII (score), mean ± SD1.23 ± 1.771.49 ± 1.600.007**
HEI2020 (score), mean ± SD53.80 ± 10.4354.68 ± 9.050.129
DASH (score), mean ± SD20.87 ± 6.6220.84 ± 6.250.932
OBS (score), mean ± SD17.15 ± 8.1416.29 ± 7.730.055

PIR, Poverty Income Ratio; BMI, Body Mass Index; 25-OH-D, 25-hydroxyvitamin D; MUFA, Monounsaturated Fatty Acids; PUFA, Polyunsaturated Fatty Acids; CDAI, Composite Dietary Antioxidant Index; DII, Dietary Inflammatory Index; HEI2020, Healthy Eating Index 2020; DASH, Dietary Approaches to Stop Hypertension; OBS Oxidative Balance Score. p< 0.05 *, p < 0.01**, p < 0.001***.

The DM-OP comorbidity group includes participants with both osteoporosis and dysglycemia (prediabetes or diabetes). The non–DM-OP group includes all participants without the comorbidity (i.e., those with neither condition, with dysglycemia alone, or with osteoporosis alone).

Source: Baseline characteristics of the population Source: Baseline characteristics of the population

Development and validation of comorbidity prediction models

Results: Development and validation of comorbidity prediction models

Prior to model construction, visual features were generated with categorical feature distributions presented in Supplementary Figure S2 and continuous feature distributions in Supplementary Figure S3. The Boruta algorithm was used to screen out collinearity based on correlation coefficients. As shown in Figure 2, nine variables (hyperlipidemia, hypertension, processed, stroke, ultra-processed, unprocessed, marital status, smoking status, and cardiovascular disease) were excluded, retaining 46 variables for model development.

Figure 2

Boxplot of Z-scores for key variable importance. Variables are categorized into four classes (Shadow, Rejected, Tentative, Confirmed) according to their importance Z-scores. Boxplots display statistical summaries: median (horizontal line within boxes), interquartile range (boxes), range (whiskers), and outliers (dots). Higher Z-scores indicate stronger contributions of variables to the model.

Figure image at the original source — open the original paper. This file is not included in this text import.

Model performance evaluation results are presented in Table 2 and Figure 3, encompassing key metrics including error rate, accuracy, F-beta score, ROC AUC, sensitivity, specificity, and PR AUC. The RF model demonstrated superior performance with the lowest error rate (0.161), highest accuracy (0.839), and excellent performance across F-beta score (0.845), ROC AUC (0.965), sensitivity (0.827), and specificity (0.852). For clinical application, the optimized Random Forest model demonstrated excellent calibration (Brier score = 0.094, calibration intercept = −0.01, slope = 0.99).

For screening purposes, a probability threshold of 0.35 is recommended, providing a balanced performance with PPV = 0.65 and NPV = 0.93, making it suitable for identifying high-risk individuals while reliably ruling out the condition. These results indicate that the RF model effectively balances precision and recall while maintaining strong generalization capability, making it optimal for predicting diabetes or prediabetes combined with osteoporosis risk in adults aged 65 and above.

Table 2

Performance comparison of different machine learning models.

ModelError RateAccuracyF-betaROC AUCSensitivitySpecificityPR AUC
XGBoost0.1760.8240.8400.9240.8680.7740.887
DT0.3100.6900.7310.7320.7910.5760.697
LR0.2970.7030.7320.7870.7610.6380.737
MLP0.4030.5970.6720.9160.7750.3940.603
NB0.3290.6710.7140.8020.7700.5590.682
KNN0.2410.7590.7920.9510.8640.6400.812
RF0.1610.8390.8450.9650.8270.8520.907
SVM0.2050.7950.8130.9050.8400.7440.839
p-value<0.001a<0.001a<0.001a<0.001b<0.001a<0.001a<0.001a

XGBoost, extreme gradient boosting tree; DT, Decision Tree; LR, Logistic Regression; MLP, Multilayer Perceptron; NB, Naive Bayes; KNN, k-Nearest Neighbors; RF, Random Forest; SVM-RBF, Support Vector Machine with RBF kernel; ROC AUC, Receiver Operating Characteristic Area Under Curve; PR AUC, Precision-Recall Area Under Curve.

a

Statistical tests: ANOVA test.

b

Kruskal-Wallis test.

Figure 3

Performance assessment of multiple classifiers. (A) Comparison of accuracy, Brier score, and ROC-AUC among models. (B) ROC curves showing models’ discrimination performance. (C) Calibration curves illustrating agreement between predicted and observed outcomes. (D) Decision Curve Analysis (DCA) showing the net clinical benefit across probability thresholds.

Figure image at the original source — open the original paper. This file is not included in this text import.

The XGBoost model also exhibited high performance, particularly in ROC AUC (0.924) and F-beta score (0.840), with accuracy of 0.824 and sensitivity of 0.868, demonstrating robust classification capability. However, compared to the RF model, XGBoost showed slightly inferior specificity (0.774), indicating reduced performance in identifying negative samples.

In contrast, decision tree and logistic regression models showed suboptimal performance, particularly in sensitivity and specificity metrics. The decision tree achieved accuracy of 0.690, F-beta score of 0.731, and ROC AUC of 0.732. Although it demonstrated high sensitivity (0.791), its specificity (0.576) was considerably lower than RF and XGBoost models, potentially leading to elevated false positive rates in clinical applications. The logistic regression model performed similarly poorly, with accuracy of 0.703, F-beta score of 0.732, ROC AUC of 0.787, and relatively low sensitivity (0.761) and specificity (0.638), limiting its effectiveness for accurate comorbidity risk prediction.

While MLP and Naive Bayes models showed reasonable ROC AUC performance (0.916 and 0.802, respectively), their F-beta scores and specificity remained inferior to RF and XGBoost models. The MLP model exhibited a pronounced gap between sensitivity (0.775) and specificity (0.394), suggesting potential overfitting. The Naive Bayes model, despite reasonable specificity (0.559), demonstrated low sensitivity (0.770), limiting its practical clinical utility.

Source: Development and validation of comorbidity prediction models Source: Development and validation of comorbidity prediction models Source: Development and validation of comorbidity prediction models Source: Development and validation of comorbidity prediction models Source: Development and validation of comorbidity prediction models Source: Development and validation of comorbidity prediction models Source: Development and validation of comorbidity prediction models Source: Development and validation of comorbidity prediction models

Results: SHAP values interpretation

SHAP analysis (Figure 4) revealed the importance of the top 15 features in predicting comorbid diseases. Gender emerged as a significant predictor of diabetes or prediabetes and osteoporosis comorbidity, with women demonstrating higher susceptibility than men, establishing gender as a crucial factor in disease risk assessment. Additionally, several key features substantially influenced model predictions: BMI, dietary antioxidant intake (particularly carotenoids), vitamin E, magnesium, and zinc. BMI showed positive correlation with DM-OP risk, indicating that higher BMI values correspond to increased comorbidity risk.

Conversely, elevated carotenoid intake demonstrated negative correlation with disease risk, suggesting that dietary antioxidants may be associated with protective effects. Against disease development in older adults. High intake of vitamin E and magnesium exhibited suggesting potential protective associations, with magnesium showing particularly strong negative SHAP values, indicating that higher magnesium intake was associated with a lower disease risk. Scatter plots for the top 15 variables are provided in the Supplementary Figures S4, S5.

Figure 4

Feature importance and SHAP value interpretation. (A) SHAP beeswarm plot visualizing the distribution of SHapley Additive exPlanations (SHAP) values for each feature, colored by feature values (high = orange; low = purple). SHAP values reflect the direction (positive/negative) and magnitude of feature impact on model predictions. (B) Bar chart ranking features by their contribution to model performance; taller bars indicate greater influence on predictions. (C) SHAP waterfall plot decomposing the cumulative effect of features for a single prediction, where each bar represents the positive (yellow) or negative (purple) contribution of a feature to the final model output.

Figure image at the original source — open the original paper. This file is not included in this text import.
Source: SHAP values interpretation Source: SHAP values interpretation

Sensitivity analysis and stratified analysis

Results: Sensitivity analysis and stratified analysis

To address potential confounding factors between diabetes and osteoporosis, we performed SHAP analysis on participants with only glucose abnormalities (including prediabetes and diabetes) or only osteoporosis (Supplementary Figures S6, S7). In the diabetes model, BMI and alcohol intake emerged as primary predictors, followed by ethnicity, education, sex, DII, and dietary fiber intake, indicating that obesity levels and nutritional metabolism play a key role in diabetes risk among older adults. Conversely, the osteoporosis model identified sex, BMI, age, niacin intake, and monounsaturated fatty acid intake as primary determinants.

Although BMI was present in both models, its SHAP values differed in direction and magnitude, suggesting body composition plays distinct roles in glucose and bone metabolism. These stratified analyses confirm that the risk of diabetes-osteoporosis comorbidity stems from shared metabolic pathways and disease-specific nutritional factors, rather than diagnostic overlap.

Additionally, we conducted an analysis of the “age × gender” interaction term. Figure 5 displays risk factors stratified by gender and age. Women exhibited consistent patterns: BMI was the primary risk factor across all age groups. Men, however, exhibit a differentiated pattern: BMI becomes more prominent among those aged 65–75, while alcohol intake and racial factors exert greater influence in the 75–85 age group. Notably, n-6 fatty acids and educational attainment show greater significance among younger women. Magnesium and vitamin E consistently maintain significant protective effects across all subgroups.

Figure 5

SHAP feature importance under age × gender stratification. (A) men; (B) women.

Figure image at the original source — open the original paper. This file is not included in this text import.
Source: Sensitivity analysis and stratified analysis Source: Sensitivity analysis and stratified analysis Source: Sensitivity analysis and stratified analysis

Online prediction tool development and clinical application

Results: Online prediction tool development and clinical application

Based on the optimized RF model, an online risk prediction tool has been developed, which can be accessed at https://wdhddx.shinyapps.io/osteoporosis-shap-model/. This tool incorporates ten essential indicators, including gender, BMI, and dietary intakes of carotenoids, vitamin E, magnesium, and zinc. It allows for real-time calculations of comorbidity risk probabilities based on individual characteristics entered by the user. The tool is designed with an intuitive interface that seamlessly integrates into clinical workflows, enabling healthcare providers to quickly identify high-risk populations and implement timely interventions aimed at reducing comorbidity risk.

This ease of access promotes early detection and supports preventive care strategies within clinical practice.

Source: Online prediction tool development and clinical application

Discussion

We utilized interpretable machine learning methods to investigate the relationship between dietary nutrient intake and DM-OP comorbidity in older adults using the U.S. NHANES dataset from 2005 to 2020. Among the 8 machine learning models we evaluated, the RF model stood out with an impressive AUC of 0.965, indicating its excellent predictive capability and stability for classification tasks. Through SHAP game-theoretic analysis, we were able to pinpoint the significance of each selected feature, revealing that gender, BMI, carotenoids, vitamin E, magnesium, and zinc were major contributors to predicting the risk of comorbidity.

To our knowledge, this study is the first to comprehensively develop and validate a prediction model for DM-OP comorbidity that incorporates dietary nutritional factors along with demographic, anthropometric, and clinical characteristics in older adults. While our main focus was on analyzing the role of dietary nutrition, the model also includes easily accessible demographic features, lifestyle factors, and health conditions, which enhances its generalizability. Furthermore, we conducted extensive benchmarking to compare the performance of various machine learning algorithms and created an online prediction tool for clinical use.

Machine learning models are increasingly being used to investigate the dietary and metabolic factors linked to chronic diseases in aging populations. For instance, a recent study comparing five models for predicting all-cause mortality in non-alcoholic fatty liver disease (NAFLD) patients found that Gradient Boosting Machine (GBM) and Random Survival Forest (RSF) achieved strong predictive performance (AUC = 0.8), identifying higher dietary fiber intake as a significant protective factor for improved survival (24). In another study using a Korean cohort, a RF model incorporating genetic polygenic risk scores (gPRS) and metabolite data predicted T2DM occurrence with high accuracy (AUC = 0.883), improving classification by 11.7% over clinical-factor-only models (25).

Further demonstrating utility, a CatBoost model integrating dietary antioxidants and metabolic factors effectively predicted chronic kidney disease (CKD) occurrence in individuals with abdominal obesity (AUC = 0.938), identifying age, diabetes history, and dietary antioxidant intake as key predictors (26).

In the realm of DM-OP comorbidity prediction, Wang et al. (27) applied a support vector machine to data from 289 subjects with DM-OP, incorporating five variables: gender, age, BMI, total procollagen I N-terminal propeptide (TP1NP), and osteocalcin, achieving a diagnostic accuracy of 88%. Wu et al. (28) evaluated nine ML algorithms on 303 postmenopausal women with T2DM, with XGBoost showing superior performance (training AUROC: 0.993, testing AUROC: 0.786) using 10 key features, resulting in a clinically applicable risk calculator.

Zhao et al. (29) employed RF model to genetically identify hub genes (ACAA2, GATAD2A, VPS35) associated with DM-OP comorbidity. In a separate study of 433 T2DM patients, Wu et al. (30) found XGBoost again performed best (training AUROC: 0.94, testing AUROC: 0.87) among nine ML algorithms for osteoporosis risk prediction, subsequently stratifying patients into high, medium, and low-risk groups using SHAP analysis and Latent Class Analysis (LCA). Yu et al. (31) developed a GBM model using five routine indicators—gender, age, BMI, heart rate, and alkaline phosphatase—in 2,029 individuals with T2DM (457 with osteoporosis), achieving an external validation AUC of 0.89.

These studies illustrate the growing application of ML in exploring DM-OP comorbidity prediction, though most focus on clinical indicators such as demographic, anthropometric, and biochemical markers rather than dietary factors.

In this study, we selected 8 diverse ML algorithms (XGBoost, decision tree, logistic regression, MLP, naive Bayes, KNN, RF, and SVM-RBF) to construct prediction models and employed comprehensive benchmarking to determine the optimal approach for diabetes-osteoporosis comorbidity prediction. Compared to traditional statistical methods such as logistic regression, machine learning approaches offer several advantages: they can automatically capture complex non-linear interactions between dietary factors and disease risk without requiring predetermined variable transformations; algorithms like RF and XGBoost can identify the most predictive features through built-in feature importance measures, reducing selection bias; and they demonstrate superior performance in handling high-dimensional healthcare datasets with mixed data types (32).

Our findings suggest that the RF model is the most effective choice for this prediction task. RF is an ensemble method that combines several decision trees, which enhances prediction accuracy through techniques like bootstrap aggregating and random feature selection (33). This model is particularly advantageous in healthcare settings due to its capability to manage various data types, its resistance to overfitting, and its inherent feature importance measures. Additionally, the model’s leaf-wise growth strategy and ensemble characteristics allow it to identify intricate relationships between dietary nutrient intake and comorbidity risk, all while remaining interpretable through SHAP analysis (34).

The SHAP analysis indicated that gender, BMI, and certain dietary nutrition (carotenoids, vitamin E, magnesium, and zinc) were the most significant predictors. These results are consistent with the current literature regarding the pathophysiology linking DM and OP, as well as the protective effects of dietary nutrient intake.

Gender emerged as the most significant predictor of DM-OP comorbidity, with women exhibiting a higher susceptibility. This observation aligns with epidemiological evidence indicating that postmenopausal women are at an increased risk for both conditions, primarily due to estrogen deficiency that impact glucose metabolism and bone turnover (35). Research indicates that estrogen deficiency can exacerbate insulin resistance, impairing glucose utilization and storage, which further aggravates bone loss (36). In the SWAN cohort of women, insulin resistance exhibited a biphasic relationship with bone mineral density: declining HOMA-IR slowed bone loss, whereas rising HOMA-IR accelerated it (37).

Research has found that estrogen regulates vascular calcification and osteoporosis through receptor signaling, matrix proteins, and environmental-physical factors (38). BMI demonstrated a positive correlation with the risk of DM-OP comorbidity. A cohort study focusing on elderly patients with T2DM found that the prevalence of sarcopenic obesity (SO) was notably high, with significant implications for negative health outcomes, including increased risks of cardiovascular diseases and fractures (39). SHAP analysis initially identified female gender as the strongest predictor of diabetes-osteoporosis comorbidity.

Subsequent stratification by both sex and age revealed nuanced risk patterns: BMI remained a dominant risk factor for women in both the 65–74 and 75–85 age groups, underscoring the persistent link between body composition and metabolic-bone health in postmenopausal women. In the oldest female subgroup (75–85 years), the influence of n–6 fatty acids and educational attainment attenuated—possibly reflecting survival bias, the predominance of non-modifiable biological factors, or cohort effects. In contrast, risk profiles in men shifted with age: BMI’s predictive importance decreased in the 75–85 year group, while lifestyle (alcohol) and sociodemographic (ethnicity) factors gained prominence.

These findings highlight the need for sex- and age-specific comorbidity risk assessment to guide personalized intervention in older adults.

The identification of specific dietary nutrition as crucial protective factors offers important insights for developing intervention strategies. Carotenoids showed strong negative SHAP values, suggesting they have protective effects against the development of DM-OP comorbidities. Carotenoids, including α-carotene and β-carotene, are abundant in dark-colored vegetables and fruits, possessing potent antioxidant properties and can be metabolized in the liver into vitamin A (40). A recent dose–response meta-analysis of 13 prospective studies supports that higher dietary intake and circulating concentrations of total carotenoids, particularly β-carotene, are associated with a lower risk of T2DM (41).

Additionally, carotenoids can reduce the risk of periodontitis (42), retinopathy (43), and cardiovascular events (44) in individuals with DM. Regarding bone health, a cross-sectional study in individuals over 50 years old showed that higher intake of β-carotene and β-cryptoxanthin is associated with a reduced risk of osteoporosis (45). Vitamin E has been identified as a significant protective factor, reinforcing its well-known antioxidant properties. A Swedish case–control study indicates that dietary vitamin E is associated with low autoantibody levels, preserved β-cell function, and reduced insulin resistance in latent autoimmune diabetes in adults (LADA), suggesting a potential protective role against autoimmune diabetes (46).

A 12-week randomized, double-blind trial demonstrated that daily supplementation with 400 IU of mixed tocopherols significantly suppressed the rise in the bone resorption marker CTX in postmenopausal women with osteopenia, suggesting the potential of vitamin E supplementation in mitigating bone loss (47). Magnesium plays a vital role in glucose metabolism and the mineralization of bones. Several cross-sectional studies have found that serum magnesium levels are inversely associated with prediabetes, diabetes (48), and diabetic complications such as diabetic retinopathy (49).

A recent systematic review highlighted that higher magnesium intake may support increased bone mineral density in the hip and femoral neck (50). Additionally, a cross-sectional study revealed that magnesium deficiency has a greater impact on osteoporosis than vitamin D, serving as a critical modifiable factor associated with reduced bone mineral density and increased fracture risk (51). Zinc plays a crucial protective role in insulin signaling and bone formation. A recent cohort study indicated that higher zinc levels are associated with an increased risk of T2DM in individuals with isolated impaired glucose tolerance (iIGT) (52).

Zinc supplementation can correct zinc deficiency in diabetes, lower blood glucose, improve metabolic and antioxidant status, and mitigate complications such as renal, ocular, and cardiovascular issues (53). These findings underscore the potential benefits of targeted nutritional interventions that emphasize the consumption of antioxidant-rich foods and specific micronutrient supplements to enhance health outcomes in older populations.

Recent clinical trials have highlighted the promising therapeutic potential of dietary antioxidant interventions for addressing the comorbidity of DM-OP. Sun et al. (54) demonstrated that higher CDAI scores in postmenopausal women are associated with a lower risk of osteoporosis, exhibiting an age-dependent non-linear relationship. Su et al. (55) noted that the anti-resorptive agent denosumab, when combined with antioxidant therapy, can further reduce the risk of fractures. A recent review emphasized the significance of iron metabolism dysregulation in DOP, linking it to ferroptosis, proposing that therapeutic strategies targeting ferroptosis, such as the use of antioxidants, could effectively attenuate bone loss in diabetic patients (56).

This dual action supports bone health in DOP. These findings collectively suggest that dietary modifications, particularly the inclusion of antioxidants play a critical role in preventing DM-OP.

The clinical significance of our findings goes beyond merely predicting risk; it also encompasses practical intervention strategies. Our model serves as a non-invasive screening tool that can identify individuals at high risk by utilizing easily accessible demographic and dietary information. Additionally, by pinpointing modifiable dietary factors, we can create targeted nutritional interventions tailored to individual needs. Furthermore, the online prediction tool we developed not only aids in the clinical implementation of these strategies but also enhances patient education about the risk factors associated with comorbidities.

Our study has several limitations that should be acknowledged. Firstly, as a fundamental limitation of this cross-sectional study, we cannot establish causality or determine the temporal sequence between dietary nutrient intake and the development of DM-OP comorbidity. The observed associations should be interpreted as correlations rather than causal effects. Secondly, our assessment of dietary intake is based on 24-h recalls, which may not accurately reflect long-term dietary patterns and are susceptible to recall bias. Lastly, the model was developed using data from the U.

S. NHANES, which may limit its applicability to other populations that have different dietary habits and genetic backgrounds. Furthermore, the diagnosis of osteoporosis was based on the WHO T-score criterion (≤ − 2.5), which is derived from a reference population of young white women. While this is a widely used standard, it may not fully capture osteoporosis risk across all racial/ethnic groups and in men, as bone mineral density baselines and fracture risk relationships can differ.

Future research should focus on several key areas. First, the prospective validation of our predictive model across diverse populations; second, the exploration of optimal dietary nutrient intake thresholds for preventing comorbidities; third, the development of personalized dietary intervention protocols tailored to individual risk profiles; fourth, the incorporation of genetic and metabolomic data to improve prediction accuracy; and finally, the assessment of the model’s clinical utility in real-world healthcare environments.

Source: Discussion Source: Discussion Source: Discussion Source: Discussion Source: Discussion Source: Discussion Source: Discussion Source: Discussion Source: Discussion Source: Discussion Source: Discussion Source: Discussion

Results

3.1

Baseline characteristics of the population

A total of 4,678 participants were included in the analysis: 4,331 (92.6%) in the non-DM-OP (i.e., participants without the coexistence) group and 347 (7.4%) in the DM-OP comorbidity group. The DM-OP group was significantly older and predominantly female (p < 0.001). They exhibited lower socioeconomic status, with higher poverty rates and lower educational attainment (p < 0.001). Although the DM-OP group had a lower body mass index (BMI), they showed a higher prevalence of diabetes mellitus (p < 0.001) and impaired glucose metabolism.

Their dietary intake included significantly less total fat, protein, and multiple micronutrients, with lower CDAI scores (p = 0.031) and higher DII scores (p = 0.007), as shown in Table 1.

Table 1

Baseline characteristics of the study population according to DM-OP comorbidity status.

VariableNon-DM-OP (n=4331)DM-OP (n=347)p-value
Age (year), mean ± SD73.02 ± 5.4174.98 ± 5.36<0.001***
Gender, n (%)<0.001***
Female1959 (45.2)267 (76.9)
Male2372 (54.8)80 (23.1)
Race, n (%)<0.001***
Non-Hispanic White2530 (58.4)190 (54.8)
Non-Hispanic Black834 (19.3)23 (6.6)
Mexican American396 (9.1)53 (15.3)
Other Hispanic299 (6.9)47 (13.5)
Other Race272 (6.3)34 (9.8)
Marital status, n (%)<0.001***
Married/Living with Partner2574 (59.4)146 (42.1)
Widowed/Divorced/Separated1610 (37.2)183 (52.7)
Never married147 (3.4)18 (5.2)
PIR, n (%)<0.001***
<11047 (24.2)125 (36.0)
1-31982 (45.8)163 (47.0)
>31302 (30.1)59 (17.0)
Education level, n (%)<0.001***
Below high school577 (13.3)90 (25.9)
High school1663 (38.4)149 (42.9)
Above high school2091 (48.3)108 (31.1)
Smoking status, n (%)<0.001***
Never2033 (46.9)207 (59.7)
Former1890 (43.6)108 (31.1)
Current408 (9.4)32 (9.2)
BMI (kg/m2), mean ± SD29.01 ± 5.3127.16 ± 5.21<0.001***
Hypertension, yes, n (%)3207 (74.0)264 (76.1)0.442
Hyperlipidemia, yes, n (%)3639 (84.0)298 (85.9)0.404
Impaired fasting glycaemia, yes, n (%)312 (7.2)55 (15.9)<0.001***
Impaired glucose tolerance, yes, n (%)213 (4.9)62 (17.9)<0.001***
Diabetes mellitus, yes, n (%)1575 (36.4)230 (66.3)<0.001***
Osteoporosis, yes, n (%)392 (9.1)347 (100.0)<0.001***
Cardiovascular disease, yes, n (%)1214 (28.0)100 (28.8)0.801
Stroke, yes, n (%)410 (9.5)44 (12.7)0.064
25-OH-D (nmol/L), mean ± SD74.82 ± 26.7271.57 ± 27.580.030*
Dietary fiber (g/day), mean ± SD16.77 ± 7.8515.46 ± 5.850.002**
Total fat (g/day), mean ± SD72.09 ± 31.0861.56 ± 26.88<0.001***
Alpha-carotene (μg/day), mean ± SD462.94 ± 870.72467.66 ± 613.180.921
Beta-carotene (μg/day), mean ± SD2484.25 ± 2901.382406.55 ± 2619.220.629
Riboflavin (mg/day), mean ± SD1.97 ± 0.811.79 ± 0.72<0.001***
Niacin (mg/day), mean ± SD22.03 ± 9.2919.89 ± 8.24<0.001***
Vitamin B6 (mg/day), mean ± SD1.91 ± 0.941.78 ± 1.060.012*
Folate (μg/day), mean ± SD367.55 ± 166.07341.86 ± 131.750.005**
Vitamin B12 (μg/day), mean ± SD4.88 ± 5.464.30 ± 5.240.055
Vitamin C (mg/day), mean ± SD85.21 ± 63.3386.59 ± 65.810.697
Vitamin E (mg/day), mean ± SD7.73 ± 4.466.45 ± 3.12<0.001***
Calcium (mg/day), mean ± SD843.36 ± 380.18780.70 ± 335.290.003**
Magnesium (mg/day), mean ± SD278.19 ± 107.65251.49 ± 81.17<0.001***
Iron (mg/day), mean ± SD14.34 ± 6.5512.84 ± 5.10<0.001***
Zinc (mg/day), mean ± SD10.45 ± 5.279.08 ± 3.59<0.001***
Copper (mg/day), mean ± SD1.21 ± 0.841.10 ± 0.930.015*
Selenium (μg/day), mean ± SD98.70 ± 41.5088.72 ± 35.33<0.001***
Alcohol (g/day), mean ± SD6.07 ± 14.302.99 ± 9.30<0.001***
Cotinine (ng/mL), mean ± SD34.33 ± 111.3332.44 ± 104.880.761
Carotene RE (μg/day), mean ± SD226.49 ± 266.68221.28 ± 233.080.724
Vitamin A (μg RE/day), mean ± SD691.02 ± 561.08636.40 ± 563.520.081
Vitamin D (μg/day), mean ± SD4.60 ± 3.084.33 ± 2.800.117
Caffeine (mg/day), mean ± SD0.15 ± 0.130.12 ± 0.10<0.001***
Carbohydrates (g/day), mean ± SD220.03 ± 78.11203.68 ± 65.82<0.001***
Cholesterol (mg/day), mean ± SD257.00 ± 135.61213.34 ± 116.51<0.001***
Magnesium (mg/day), mean ± SD278.70 ± 107.76252.35 ± 81.67<0.001***
MUFA (g/day), mean ± SD25.30 ± 10.6421.67 ± 9.70<0.001***
N3 fatty acids (g/day), mean ± SD0.10 ± 0.300.07 ± 0.250.041*
N6 fatty acids (g/day), mean ± SD16.16 (7.8014.07 (7.53<0.001***
Protein (g/day), mean ± SD71.56 ± 26.2264.83 ± 22.96<0.001***
PUFA (g/day), mean ± SD16.16 ± 7.0514.05 ± 6.74<0.001***
Saturated fat (g/day), mean ± SD23.33 ± 10.9819.93 ± 9.15<0.001***
Thiamin (mg/day), mean ± SD1.50 ± 0.601.37 ± 0.49<0.001***
Processed food (g/day), mean ± SD716.63 ± 533.89681.23 ± 513.040.233
Ultra-processed food (g/day), mean ± SD816.96 ± 730.55812.85 ± 696.340.919
Unprocessed food (g/day), mean ± SD1112.45 ± 983.741100.07 ± 948.770.821
CDAI (score), mean ± SD0.16 ± 3.23-0.23 ± 2.960.031*
DII (score), mean ± SD1.23 ± 1.771.49 ± 1.600.007**
HEI2020 (score), mean ± SD53.80 ± 10.4354.68 ± 9.050.129
DASH (score), mean ± SD20.87 ± 6.6220.84 ± 6.250.932
OBS (score), mean ± SD17.15 ± 8.1416.29 ± 7.730.055

PIR, Poverty Income Ratio; BMI, Body Mass Index; 25-OH-D, 25-hydroxyvitamin D; MUFA, Monounsaturated Fatty Acids; PUFA, Polyunsaturated Fatty Acids; CDAI, Composite Dietary Antioxidant Index; DII, Dietary Inflammatory Index; HEI2020, Healthy Eating Index 2020; DASH, Dietary Approaches to Stop Hypertension; OBS Oxidative Balance Score. p< 0.05 *, p < 0.01**, p < 0.001***.

The DM-OP comorbidity group includes participants with both osteoporosis and dysglycemia (prediabetes or diabetes). The non–DM-OP group includes all participants without the comorbidity (i.e., those with neither condition, with dysglycemia alone, or with osteoporosis alone).

3.2

Development and validation of comorbidity prediction models

Prior to model construction, visual features were generated with categorical feature distributions presented in Supplementary Figure S2 and continuous feature distributions in Supplementary Figure S3. The Boruta algorithm was used to screen out collinearity based on correlation coefficients. As shown in Figure 2, nine variables (hyperlipidemia, hypertension, processed, stroke, ultra-processed, unprocessed, marital status, smoking status, and cardiovascular disease) were excluded, retaining 46 variables for model development.

Figure 2

Boxplot of Z-scores for key variable importance. Variables are categorized into four classes (Shadow, Rejected, Tentative, Confirmed) according to their importance Z-scores. Boxplots display statistical summaries: median (horizontal line within boxes), interquartile range (boxes), range (whiskers), and outliers (dots). Higher Z-scores indicate stronger contributions of variables to the model.

Figure image at the original source — open the original paper. This file is not included in this text import.

Model performance evaluation results are presented in Table 2 and Figure 3, encompassing key metrics including error rate, accuracy, F-beta score, ROC AUC, sensitivity, specificity, and PR AUC. The RF model demonstrated superior performance with the lowest error rate (0.161), highest accuracy (0.839), and excellent performance across F-beta score (0.845), ROC AUC (0.965), sensitivity (0.827), and specificity (0.852). For clinical application, the optimized Random Forest model demonstrated excellent calibration (Brier score = 0.094, calibration intercept = −0.01, slope = 0.99).

For screening purposes, a probability threshold of 0.35 is recommended, providing a balanced performance with PPV = 0.65 and NPV = 0.93, making it suitable for identifying high-risk individuals while reliably ruling out the condition. These results indicate that the RF model effectively balances precision and recall while maintaining strong generalization capability, making it optimal for predicting diabetes or prediabetes combined with osteoporosis risk in adults aged 65 and above.

Table 2

Performance comparison of different machine learning models.

ModelError RateAccuracyF-betaROC AUCSensitivitySpecificityPR AUC
XGBoost0.1760.8240.8400.9240.8680.7740.887
DT0.3100.6900.7310.7320.7910.5760.697
LR0.2970.7030.7320.7870.7610.6380.737
MLP0.4030.5970.6720.9160.7750.3940.603
NB0.3290.6710.7140.8020.7700.5590.682
KNN0.2410.7590.7920.9510.8640.6400.812
RF0.1610.8390.8450.9650.8270.8520.907
SVM0.2050.7950.8130.9050.8400.7440.839
p-value<0.001a<0.001a<0.001a<0.001b<0.001a<0.001a<0.001a

XGBoost, extreme gradient boosting tree; DT, Decision Tree; LR, Logistic Regression; MLP, Multilayer Perceptron; NB, Naive Bayes; KNN, k-Nearest Neighbors; RF, Random Forest; SVM-RBF, Support Vector Machine with RBF kernel; ROC AUC, Receiver Operating Characteristic Area Under Curve; PR AUC, Precision-Recall Area Under Curve.

a

Statistical tests: ANOVA test.

b

Kruskal-Wallis test.

Figure 3

Performance assessment of multiple classifiers. (A) Comparison of accuracy, Brier score, and ROC-AUC among models. (B) ROC curves showing models’ discrimination performance. (C) Calibration curves illustrating agreement between predicted and observed outcomes. (D) Decision Curve Analysis (DCA) showing the net clinical benefit across probability thresholds.

Figure image at the original source — open the original paper. This file is not included in this text import.

The XGBoost model also exhibited high performance, particularly in ROC AUC (0.924) and F-beta score (0.840), with accuracy of 0.824 and sensitivity of 0.868, demonstrating robust classification capability. However, compared to the RF model, XGBoost showed slightly inferior specificity (0.774), indicating reduced performance in identifying negative samples.

In contrast, decision tree and logistic regression models showed suboptimal performance, particularly in sensitivity and specificity metrics. The decision tree achieved accuracy of 0.690, F-beta score of 0.731, and ROC AUC of 0.732. Although it demonstrated high sensitivity (0.791), its specificity (0.576) was considerably lower than RF and XGBoost models, potentially leading to elevated false positive rates in clinical applications. The logistic regression model performed similarly poorly, with accuracy of 0.703, F-beta score of 0.732, ROC AUC of 0.787, and relatively low sensitivity (0.761) and specificity (0.638), limiting its effectiveness for accurate comorbidity risk prediction.

While MLP and Naive Bayes models showed reasonable ROC AUC performance (0.916 and 0.802, respectively), their F-beta scores and specificity remained inferior to RF and XGBoost models. The MLP model exhibited a pronounced gap between sensitivity (0.775) and specificity (0.394), suggesting potential overfitting. The Naive Bayes model, despite reasonable specificity (0.559), demonstrated low sensitivity (0.770), limiting its practical clinical utility.

3.3

SHAP values interpretation

SHAP analysis (Figure 4) revealed the importance of the top 15 features in predicting comorbid diseases. Gender emerged as a significant predictor of diabetes or prediabetes and osteoporosis comorbidity, with women demonstrating higher susceptibility than men, establishing gender as a crucial factor in disease risk assessment. Additionally, several key features substantially influenced model predictions: BMI, dietary antioxidant intake (particularly carotenoids), vitamin E, magnesium, and zinc. BMI showed positive correlation with DM-OP risk, indicating that higher BMI values correspond to increased comorbidity risk.

Conversely, elevated carotenoid intake demonstrated negative correlation with disease risk, suggesting that dietary antioxidants may be associated with protective effects. Against disease development in older adults. High intake of vitamin E and magnesium exhibited suggesting potential protective associations, with magnesium showing particularly strong negative SHAP values, indicating that higher magnesium intake was associated with a lower disease risk. Scatter plots for the top 15 variables are provided in the Supplementary Figures S4, S5.

Figure 4

Feature importance and SHAP value interpretation. (A) SHAP beeswarm plot visualizing the distribution of SHapley Additive exPlanations (SHAP) values for each feature, colored by feature values (high = orange; low = purple). SHAP values reflect the direction (positive/negative) and magnitude of feature impact on model predictions. (B) Bar chart ranking features by their contribution to model performance; taller bars indicate greater influence on predictions. (C) SHAP waterfall plot decomposing the cumulative effect of features for a single prediction, where each bar represents the positive (yellow) or negative (purple) contribution of a feature to the final model output.

Figure image at the original source — open the original paper. This file is not included in this text import.
3.4

Sensitivity analysis and stratified analysis

To address potential confounding factors between diabetes and osteoporosis, we performed SHAP analysis on participants with only glucose abnormalities (including prediabetes and diabetes) or only osteoporosis (Supplementary Figures S6, S7). In the diabetes model, BMI and alcohol intake emerged as primary predictors, followed by ethnicity, education, sex, DII, and dietary fiber intake, indicating that obesity levels and nutritional metabolism play a key role in diabetes risk among older adults. Conversely, the osteoporosis model identified sex, BMI, age, niacin intake, and monounsaturated fatty acid intake as primary determinants.

Although BMI was present in both models, its SHAP values differed in direction and magnitude, suggesting body composition plays distinct roles in glucose and bone metabolism. These stratified analyses confirm that the risk of diabetes-osteoporosis comorbidity stems from shared metabolic pathways and disease-specific nutritional factors, rather than diagnostic overlap.

Additionally, we conducted an analysis of the “age × gender” interaction term. Figure 5 displays risk factors stratified by gender and age. Women exhibited consistent patterns: BMI was the primary risk factor across all age groups. Men, however, exhibit a differentiated pattern: BMI becomes more prominent among those aged 65–75, while alcohol intake and racial factors exert greater influence in the 75–85 age group. Notably, n-6 fatty acids and educational attainment show greater significance among younger women. Magnesium and vitamin E consistently maintain significant protective effects across all subgroups.

Figure 5

SHAP feature importance under age × gender stratification. (A) men; (B) women.

Figure image at the original source — open the original paper. This file is not included in this text import.
3.5

Online prediction tool development and clinical application

Based on the optimized RF model, an online risk prediction tool has been developed, which can be accessed at https://wdhddx.shinyapps.io/osteoporosis-shap-model/. This tool incorporates ten essential indicators, including gender, BMI, and dietary intakes of carotenoids, vitamin E, magnesium, and zinc. It allows for real-time calculations of comorbidity risk probabilities based on individual characteristics entered by the user. The tool is designed with an intuitive interface that seamlessly integrates into clinical workflows, enabling healthcare providers to quickly identify high-risk populations and implement timely interventions aimed at reducing comorbidity risk.

This ease of access promotes early detection and supports preventive care strategies within clinical practice.

Source: Results Source: Results Source: Results Source: Results Source: Results

Conclusion

In conclusion, our machine learning approach effectively identified significant dietary nutritional factors linked to the risk of DM-OP comorbidity in older adults. The RF model exhibited outstanding predictive performance, highlighting gender, BMI, carotenoids, vitamin E, magnesium, and zinc as the most influential predictors. These results lay the groundwork for creating targeted nutritional interventions and clinical decision support tools aimed at managing comorbidity risk in aging populations.

Source: Conclusion
Authors’ abstract

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-h 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.

Conclusion

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.

Read the full paper
1

Introduction

The global burden of chronic diseases has significantly increased, with diabetes mellitus (DM) and osteoporosis (OP) becoming intertwined public health challenges, especially among older adults (1). DM, characterized by persistent high blood sugar levels, currently affects over 537 million adults worldwide, with projections estimating 783 million by 2045 (2). Type 2 diabetes mellitus (T2DM) accounts for 90–95% of these cases and is often associated with obesity, physical inactivity, and aging (3, 4). Conversely, osteoporosis, defined by low bone mineral density and deteriorating bone structure, affects approximately 200 million people globally (5), with hip fractures resulting in a 20% mortality rate within one year (6).

Individuals with DM face a 1.5- to 2-fold higher risk of developing osteoporosis and fractures (7), primarily due to oxidative stress from high blood sugar levels, insulin resistance, and disrupted bone remodeling (8, 9). Additionally, prediabetes, affecting 374 million adults worldwide, offers a critical window for intervention, with a 35–50% chance of progressing to T2DM within 5–10 years (3). Recent studies establish a connection between prediabetes and early bone loss (10, 11), though the underlying mechanisms remain poorly understood (12).

This lack of clarity underscores the importance of exploring prediabetes as a potential precursor to osteoporosis, particularly in aging populations.

Dietary factors play a pivotal role in the pathogenesis of both diabetes and osteoporosis. Diets rich in pro-inflammatory components, such as trans fats and refined carbohydrates, exacerbate systemic inflammation, thereby promoting insulin resistance and accelerating bone loss (13). Conversely, foods high in antioxidants, such as fruits and vegetables, mitigate oxidative stress, potentially offering protective effects against both conditions (14). Ultra-processed foods (UPFs), characterized by high additive content and low nutritional value, are strongly associated with increased risks of both diseases due to their induction of inflammation and metabolic disturbances (15, 16).

Understanding the roles of these dietary factors is critical for developing effective prevention strategies. Furthermore, the impact of overall dietary patterns on bone health is evident across diverse populations, as demonstrated by a study linking maternal diet to bone density in Chinese lactating women and their infants (17). However, most studies have focused on the effects of individual nutrients, and there remains a lack of systematic exploration into how dietary patterns or composite dietary factors influence the combined pathogenesis of diabetes and osteoporosis.

In this context, machine learning algorithms have emerged as powerful tools for disease prediction, capable of analyzing complex, multidimensional data to create effective predictive models (18, 19). This study uses data from the National Health and Nutrition Examination Survey (NHANES) database, employing eight machine learning algorithms and SHAP analysis. The goal is to investigate the predictive role of dietary antioxidants for the comorbidity of prediabetes or diabetes with osteoporosis in older adults, identify key contributing factors, and develop an online prediction tool to provide a scientific basis and practical tool for early detection and intervention.

2

Methods

2.1

Data source and study population

Data were drawn from the 2005–2010, 2013–2014, and 2017–2020 NHANES cycles, including 62,782 individuals. These particular cycles were chosen because they encompass all available recent NHANES data cycles that contain both dual-energy X-ray absorptiometry (DXA) measurements for bone mineral density assessment and the detailed dietary data from 24-h recalls required for our multidimensional dietary assessment. Those under 65 years were excluded (53,886 removed), leaving 8,896 participants aged ≥ 65. Next, 1,364 individuals with missing diabetes or osteoporosis data were excluded, resulting in 7,532 participants.

Finally, 2,854 individuals with missing baseline data were removed, yielding a final cohort of 4,678 participants with complete data on age, diabetes/osteoporosis status, and baseline measurements. The screening process is shown in Figure 1.

Figure 1

Flowchart of participant selection in the NHANES dataset.

Figure image at the original source — open the original paper. This file is not included in this text import.
2.2

Dietary assessment

Dietary data were collected via two 24-h dietary recall interviews. Macronutrient intake included total carbohydrates, protein, total fat, saturated fat, monounsaturated fatty acids (MUFA), polyunsaturated fatty acids (PUFA), omega-3 fatty acids, omega-6 fatty acids, and cholesterol. Micronutrient assessment included vitamins (A, C, D, E, B6, B12, riboflavin, niacin, thiamin, folate), minerals (calcium, magnesium, iron, zinc, copper, selenium), and phytochemicals (alpha-carotene, beta-carotene, carotene retinol equivalents). Dietary fiber and caffeine intake were quantified. The intake data for macronutrients, micronutrients, and other dietary components were sourced directly from the NHANES-provided Total Nutrient Intake files (e.g., DR1TOT_J and DR2TOT_J).

The conversion of food items reported in the 24-h recalls to quantitative nutrient values was performed by the National Center for Health Statistics (NCHS) using the USDA’s Food and Nutrient Database for Dietary Studies (FNDDS), which links each food to its detailed nutritional composition (20). All nutrient intakes were energy-adjusted using the residual method. The average intake from two non-consecutive 24-h recalls was used as a proxy for usual intake, as this method reduces within-person variability and provides a more stable estimate of habitual consumption, consistent with established dietary assessment methodology.

2.2.1
Food processing classification

Food items were categorized into NOVA groups based on established classification rules using USDA food codes. To ensure coding consistency, a random subset of food items underwent dual coding by independent researchers, with discrepancies resolved through adjudication. Food items were categorized using the NOVA classification system into unprocessed and minimally processed foods, processed culinary ingredients, processed foods, and ultra-processed foods, with daily consumption calculated in grams. For specific coding rules for classification and to access the classification consistency assessment, please refer to Supplementary Table S2.

2.2.2
Dietary quality indices

Five validated dietary quality scores were calculated: Composite Dietary Antioxidant Index (CDAI), Dietary Inflammatory Index (DII), Healthy Eating Index 2020 (HEI-2020), Dietary Approaches to Stop Hypertension (DASH) score, and Oxidative Balance Score (OBS). Detailed calculation methods are provided in Supplementary material S1. All dietary variables were energy-adjusted and averaged across the two 24-h recalls to reflect usual intake. The use of two non-consecutive 24-h recalls, as implemented in NHANES, is a well-established method for estimating usual dietary intake at the population level.

Averaging intake from 2 days helps to attenuate within-person day-to-day variation and provides a more stable estimate of habitual consumption than a single day’s recall. Furthermore, the dietary quality indices used (CDAI, DII, HEI-2020, DASH, OBS) are composite measures that are less sensitive to daily fluctuations and more representative of longer-term dietary patterns.

2.3

Diagnosis of diabetes and osteoporosis

Diabetes was diagnosed using multiple criteria: physician diagnosis, fasting blood glucose ≥7.0 mmol/L, or glycosylated hemoglobin (HbA1c) ≥ 6.5%. Prediabetes was defined as fasting blood glucose of 5.6–6.9 mmol/L or HbA1c of 5.7–6.4%. The use of HbA1c and FPG, consistent with contemporary ADA guidelines and the operational feasibility of the NHANES protocol, provides a standardized approach for identifying dysglycemia in this large cohort, though it may not capture individuals with isolated postprandial hyperglycemia. Osteoporosis was diagnosed using standard dual-energy X-ray absorptiometry (DXA).

The DXA examinations were performed using Hologic QDR-4500A fan-beam densitometers (Hologic, Inc., Bedford, Massachusetts) following the standardized NHANES body composition procedures manual. The scans were analyzed using Hologic APEX 4.0 software. A T-score of ≤ − 2.5 at the femoral neck was used to define osteoporosis, For detailed diagnostic criteria, refer to Supplementary Table S3. Furthermore, it should be noted that the application of the uniform T-score threshold (≤ − 2.5) may have limitations across different sex and racial/ethnic groups, as population-specific bone mineral density reference data and fracture risk relationships can vary.

We define the “DM-OP” group as the “Diabetes Mellitus and Diabetes-Osteoporosis Comorbidity Group.” This group comprises participants who meet both of the following criteria: having osteoporosis and concurrently having diabetes mellitus or prediabetes. The non–DM-OP group included all participants without this comorbidity. Additionally, we conducted a sensitivity analysis by training separate interpretable machine learning models using only DM and only OP outcomes to distinguish between disease-specific dietary and metabolic predictors.

2.4

Covariates

Covariates included demographic, socioeconomic, anthropometric, clinical, and lifestyle factors. Demographic and socioeconomic variables comprised age (continuous), gender (male/female), race/ethnicity (Non-Hispanic White, Non-Hispanic Black, Mexican American, Other Hispanic, Other Race), marital status (married/living with partner, widowed/divorced/separated, never married), and educational attainment (below high school, high school, above high school). Socioeconomic status was assessed using the PIR, categorized as <1, 1–3, and >3. Anthropometric and clinical measurements included BMI, calculated from measured height and weight, and the presence of physician-diagnosed or laboratory-confirmed conditions such as hypertension, hyperlipidemia, cardiovascular disease, and stroke.

Glucose metabolism abnormalities were defined as impaired fasting glycemia (fasting glucose 5.6–6.9 mmol/L) and impaired glucose tolerance (2-h glucose 7.8–11.0 mmol/L based on oral glucose tolerance testing). Serum 25-hydroxyvitamin D [25(OH)D] concentrations were determined using standardized laboratory assays. Lifestyle and behavioral factors encompassed smoking status (never, former, current), alcohol consumption (grams per day estimated from 24-h dietary recalls), and serum cotinine concentration, which served as an objective biomarker of tobacco exposure.

2.5

Preprocessing of machine learning features

The initial dataset included 56 variables: 13 categorical and 43 continuous. Missing data were imputed using a random forest (RF) algorithm with 100 trees and up to 10 iterations. Imputation quality was evaluated using normalized root mean square error (NRMSE) for continuous variables and proportion of falsely classified (PFC) for categorical variables, both indicating reliable performance. Feature selection was performed using the Boruta algorithm to identify variables most relevant to the target outcome. To address class imbalance, we applied the Synthetic Minority Oversampling Technique (SMOTE), which increased the number of comorbid cases from 347 to 3,817, resulting in a total dataset of 4,331 participants (see Supplementary Figure S1 for details).

To prevent data leakage, all preprocessing steps—including data imputation, feature selection, and SMOTE oversampling—were strictly conducted within the training folds during cross-validation.

2.6

Statistical analysis

Eight machine learning algorithms were implemented using the mlr3 framework: XGBoost, decision tree, logistic regression (LR), multilayer perceptron (MLP), naive Bayes, k-nearest neighbors (KNN), RF, and support vector machine with radial basis function (SVM-RBF). These algorithms were selected for their complementary strengths and proven effectiveness in medical prediction tasks (21–23). Model performance was assessed using classification error rate, accuracy, F-beta score, area under the ROC curve (AUC), sensitivity, specificity, and area under the precision-recall curve (AUPRC). Ten-fold cross-validation ensured robust performance estimation.

Statistical significance of performance differences between models was evaluated using analysis of variance (ANOVA) and the Kruskal-Wallis H test. Feature importance in the optimal model was quantified using SHAP (SHapley Additive exPlanations) values, which provide global feature rankings and local explanations for individual predictions based on game theory. All analyses were conducted in R (version 4.4.3) using the packages survey, DMwR, ggcor, mlr3, mlr3benchmark, mlr3extralearner, kernelshap, and shapviz. Statistical significance was set at p < 0.05 for all tests.

3

Results

3.1

Baseline characteristics of the population

A total of 4,678 participants were included in the analysis: 4,331 (92.6%) in the non-DM-OP (i.e., participants without the coexistence) group and 347 (7.4%) in the DM-OP comorbidity group. The DM-OP group was significantly older and predominantly female (p < 0.001). They exhibited lower socioeconomic status, with higher poverty rates and lower educational attainment (p < 0.001). Although the DM-OP group had a lower body mass index (BMI), they showed a higher prevalence of diabetes mellitus (p < 0.001) and impaired glucose metabolism.

Their dietary intake included significantly less total fat, protein, and multiple micronutrients, with lower CDAI scores (p = 0.031) and higher DII scores (p = 0.007), as shown in Table 1.

Table 1

Baseline characteristics of the study population according to DM-OP comorbidity status.

VariableNon-DM-OP (n=4331)DM-OP (n=347)p-value
Age (year), mean ± SD73.02 ± 5.4174.98 ± 5.36<0.001***
Gender, n (%)<0.001***
Female1959 (45.2)267 (76.9)
Male2372 (54.8)80 (23.1)
Race, n (%)<0.001***
Non-Hispanic White2530 (58.4)190 (54.8)
Non-Hispanic Black834 (19.3)23 (6.6)
Mexican American396 (9.1)53 (15.3)
Other Hispanic299 (6.9)47 (13.5)
Other Race272 (6.3)34 (9.8)
Marital status, n (%)<0.001***
Married/Living with Partner2574 (59.4)146 (42.1)
Widowed/Divorced/Separated1610 (37.2)183 (52.7)
Never married147 (3.4)18 (5.2)
PIR, n (%)<0.001***
<11047 (24.2)125 (36.0)
1-31982 (45.8)163 (47.0)
>31302 (30.1)59 (17.0)
Education level, n (%)<0.001***
Below high school577 (13.3)90 (25.9)
High school1663 (38.4)149 (42.9)
Above high school2091 (48.3)108 (31.1)
Smoking status, n (%)<0.001***
Never2033 (46.9)207 (59.7)
Former1890 (43.6)108 (31.1)
Current408 (9.4)32 (9.2)
BMI (kg/m2), mean ± SD29.01 ± 5.3127.16 ± 5.21<0.001***
Hypertension, yes, n (%)3207 (74.0)264 (76.1)0.442
Hyperlipidemia, yes, n (%)3639 (84.0)298 (85.9)0.404
Impaired fasting glycaemia, yes, n (%)312 (7.2)55 (15.9)<0.001***
Impaired glucose tolerance, yes, n (%)213 (4.9)62 (17.9)<0.001***
Diabetes mellitus, yes, n (%)1575 (36.4)230 (66.3)<0.001***
Osteoporosis, yes, n (%)392 (9.1)347 (100.0)<0.001***
Cardiovascular disease, yes, n (%)1214 (28.0)100 (28.8)0.801
Stroke, yes, n (%)410 (9.5)44 (12.7)0.064
25-OH-D (nmol/L), mean ± SD74.82 ± 26.7271.57 ± 27.580.030*
Dietary fiber (g/day), mean ± SD16.77 ± 7.8515.46 ± 5.850.002**
Total fat (g/day), mean ± SD72.09 ± 31.0861.56 ± 26.88<0.001***
Alpha-carotene (μg/day), mean ± SD462.94 ± 870.72467.66 ± 613.180.921
Beta-carotene (μg/day), mean ± SD2484.25 ± 2901.382406.55 ± 2619.220.629
Riboflavin (mg/day), mean ± SD1.97 ± 0.811.79 ± 0.72<0.001***
Niacin (mg/day), mean ± SD22.03 ± 9.2919.89 ± 8.24<0.001***
Vitamin B6 (mg/day), mean ± SD1.91 ± 0.941.78 ± 1.060.012*
Folate (μg/day), mean ± SD367.55 ± 166.07341.86 ± 131.750.005**
Vitamin B12 (μg/day), mean ± SD4.88 ± 5.464.30 ± 5.240.055
Vitamin C (mg/day), mean ± SD85.21 ± 63.3386.59 ± 65.810.697
Vitamin E (mg/day), mean ± SD7.73 ± 4.466.45 ± 3.12<0.001***
Calcium (mg/day), mean ± SD843.36 ± 380.18780.70 ± 335.290.003**
Magnesium (mg/day), mean ± SD278.19 ± 107.65251.49 ± 81.17<0.001***
Iron (mg/day), mean ± SD14.34 ± 6.5512.84 ± 5.10<0.001***
Zinc (mg/day), mean ± SD10.45 ± 5.279.08 ± 3.59<0.001***
Copper (mg/day), mean ± SD1.21 ± 0.841.10 ± 0.930.015*
Selenium (μg/day), mean ± SD98.70 ± 41.5088.72 ± 35.33<0.001***
Alcohol (g/day), mean ± SD6.07 ± 14.302.99 ± 9.30<0.001***
Cotinine (ng/mL), mean ± SD34.33 ± 111.3332.44 ± 104.880.761
Carotene RE (μg/day), mean ± SD226.49 ± 266.68221.28 ± 233.080.724
Vitamin A (μg RE/day), mean ± SD691.02 ± 561.08636.40 ± 563.520.081
Vitamin D (μg/day), mean ± SD4.60 ± 3.084.33 ± 2.800.117
Caffeine (mg/day), mean ± SD0.15 ± 0.130.12 ± 0.10<0.001***
Carbohydrates (g/day), mean ± SD220.03 ± 78.11203.68 ± 65.82<0.001***
Cholesterol (mg/day), mean ± SD257.00 ± 135.61213.34 ± 116.51<0.001***
Magnesium (mg/day), mean ± SD278.70 ± 107.76252.35 ± 81.67<0.001***
MUFA (g/day), mean ± SD25.30 ± 10.6421.67 ± 9.70<0.001***
N3 fatty acids (g/day), mean ± SD0.10 ± 0.300.07 ± 0.250.041*
N6 fatty acids (g/day), mean ± SD16.16 (7.8014.07 (7.53<0.001***
Protein (g/day), mean ± SD71.56 ± 26.2264.83 ± 22.96<0.001***
PUFA (g/day), mean ± SD16.16 ± 7.0514.05 ± 6.74<0.001***
Saturated fat (g/day), mean ± SD23.33 ± 10.9819.93 ± 9.15<0.001***
Thiamin (mg/day), mean ± SD1.50 ± 0.601.37 ± 0.49<0.001***
Processed food (g/day), mean ± SD716.63 ± 533.89681.23 ± 513.040.233
Ultra-processed food (g/day), mean ± SD816.96 ± 730.55812.85 ± 696.340.919
Unprocessed food (g/day), mean ± SD1112.45 ± 983.741100.07 ± 948.770.821
CDAI (score), mean ± SD0.16 ± 3.23-0.23 ± 2.960.031*
DII (score), mean ± SD1.23 ± 1.771.49 ± 1.600.007**
HEI2020 (score), mean ± SD53.80 ± 10.4354.68 ± 9.050.129
DASH (score), mean ± SD20.87 ± 6.6220.84 ± 6.250.932
OBS (score), mean ± SD17.15 ± 8.1416.29 ± 7.730.055

PIR, Poverty Income Ratio; BMI, Body Mass Index; 25-OH-D, 25-hydroxyvitamin D; MUFA, Monounsaturated Fatty Acids; PUFA, Polyunsaturated Fatty Acids; CDAI, Composite Dietary Antioxidant Index; DII, Dietary Inflammatory Index; HEI2020, Healthy Eating Index 2020; DASH, Dietary Approaches to Stop Hypertension; OBS Oxidative Balance Score. p< 0.05 *, p < 0.01**, p < 0.001***.

The DM-OP comorbidity group includes participants with both osteoporosis and dysglycemia (prediabetes or diabetes). The non–DM-OP group includes all participants without the comorbidity (i.e., those with neither condition, with dysglycemia alone, or with osteoporosis alone).

3.2

Development and validation of comorbidity prediction models

Prior to model construction, visual features were generated with categorical feature distributions presented in Supplementary Figure S2 and continuous feature distributions in Supplementary Figure S3. The Boruta algorithm was used to screen out collinearity based on correlation coefficients. As shown in Figure 2, nine variables (hyperlipidemia, hypertension, processed, stroke, ultra-processed, unprocessed, marital status, smoking status, and cardiovascular disease) were excluded, retaining 46 variables for model development.

Figure 2

Boxplot of Z-scores for key variable importance. Variables are categorized into four classes (Shadow, Rejected, Tentative, Confirmed) according to their importance Z-scores. Boxplots display statistical summaries: median (horizontal line within boxes), interquartile range (boxes), range (whiskers), and outliers (dots). Higher Z-scores indicate stronger contributions of variables to the model.

Figure image at the original source — open the original paper. This file is not included in this text import.

Model performance evaluation results are presented in Table 2 and Figure 3, encompassing key metrics including error rate, accuracy, F-beta score, ROC AUC, sensitivity, specificity, and PR AUC. The RF model demonstrated superior performance with the lowest error rate (0.161), highest accuracy (0.839), and excellent performance across F-beta score (0.845), ROC AUC (0.965), sensitivity (0.827), and specificity (0.852). For clinical application, the optimized Random Forest model demonstrated excellent calibration (Brier score = 0.094, calibration intercept = −0.01, slope = 0.99).

For screening purposes, a probability threshold of 0.35 is recommended, providing a balanced performance with PPV = 0.65 and NPV = 0.93, making it suitable for identifying high-risk individuals while reliably ruling out the condition. These results indicate that the RF model effectively balances precision and recall while maintaining strong generalization capability, making it optimal for predicting diabetes or prediabetes combined with osteoporosis risk in adults aged 65 and above.

Table 2

Performance comparison of different machine learning models.

ModelError RateAccuracyF-betaROC AUCSensitivitySpecificityPR AUC
XGBoost0.1760.8240.8400.9240.8680.7740.887
DT0.3100.6900.7310.7320.7910.5760.697
LR0.2970.7030.7320.7870.7610.6380.737
MLP0.4030.5970.6720.9160.7750.3940.603
NB0.3290.6710.7140.8020.7700.5590.682
KNN0.2410.7590.7920.9510.8640.6400.812
RF0.1610.8390.8450.9650.8270.8520.907
SVM0.2050.7950.8130.9050.8400.7440.839
p-value<0.001a<0.001a<0.001a<0.001b<0.001a<0.001a<0.001a

XGBoost, extreme gradient boosting tree; DT, Decision Tree; LR, Logistic Regression; MLP, Multilayer Perceptron; NB, Naive Bayes; KNN, k-Nearest Neighbors; RF, Random Forest; SVM-RBF, Support Vector Machine with RBF kernel; ROC AUC, Receiver Operating Characteristic Area Under Curve; PR AUC, Precision-Recall Area Under Curve.

a

Statistical tests: ANOVA test.

b

Kruskal-Wallis test.

Figure 3

Performance assessment of multiple classifiers. (A) Comparison of accuracy, Brier score, and ROC-AUC among models. (B) ROC curves showing models’ discrimination performance. (C) Calibration curves illustrating agreement between predicted and observed outcomes. (D) Decision Curve Analysis (DCA) showing the net clinical benefit across probability thresholds.

Figure image at the original source — open the original paper. This file is not included in this text import.

The XGBoost model also exhibited high performance, particularly in ROC AUC (0.924) and F-beta score (0.840), with accuracy of 0.824 and sensitivity of 0.868, demonstrating robust classification capability. However, compared to the RF model, XGBoost showed slightly inferior specificity (0.774), indicating reduced performance in identifying negative samples.

In contrast, decision tree and logistic regression models showed suboptimal performance, particularly in sensitivity and specificity metrics. The decision tree achieved accuracy of 0.690, F-beta score of 0.731, and ROC AUC of 0.732. Although it demonstrated high sensitivity (0.791), its specificity (0.576) was considerably lower than RF and XGBoost models, potentially leading to elevated false positive rates in clinical applications. The logistic regression model performed similarly poorly, with accuracy of 0.703, F-beta score of 0.732, ROC AUC of 0.787, and relatively low sensitivity (0.761) and specificity (0.638), limiting its effectiveness for accurate comorbidity risk prediction.

While MLP and Naive Bayes models showed reasonable ROC AUC performance (0.916 and 0.802, respectively), their F-beta scores and specificity remained inferior to RF and XGBoost models. The MLP model exhibited a pronounced gap between sensitivity (0.775) and specificity (0.394), suggesting potential overfitting. The Naive Bayes model, despite reasonable specificity (0.559), demonstrated low sensitivity (0.770), limiting its practical clinical utility.

3.3

SHAP values interpretation

SHAP analysis (Figure 4) revealed the importance of the top 15 features in predicting comorbid diseases. Gender emerged as a significant predictor of diabetes or prediabetes and osteoporosis comorbidity, with women demonstrating higher susceptibility than men, establishing gender as a crucial factor in disease risk assessment. Additionally, several key features substantially influenced model predictions: BMI, dietary antioxidant intake (particularly carotenoids), vitamin E, magnesium, and zinc. BMI showed positive correlation with DM-OP risk, indicating that higher BMI values correspond to increased comorbidity risk.

Conversely, elevated carotenoid intake demonstrated negative correlation with disease risk, suggesting that dietary antioxidants may be associated with protective effects. Against disease development in older adults. High intake of vitamin E and magnesium exhibited suggesting potential protective associations, with magnesium showing particularly strong negative SHAP values, indicating that higher magnesium intake was associated with a lower disease risk. Scatter plots for the top 15 variables are provided in the Supplementary Figures S4, S5.

Figure 4

Feature importance and SHAP value interpretation. (A) SHAP beeswarm plot visualizing the distribution of SHapley Additive exPlanations (SHAP) values for each feature, colored by feature values (high = orange; low = purple). SHAP values reflect the direction (positive/negative) and magnitude of feature impact on model predictions. (B) Bar chart ranking features by their contribution to model performance; taller bars indicate greater influence on predictions. (C) SHAP waterfall plot decomposing the cumulative effect of features for a single prediction, where each bar represents the positive (yellow) or negative (purple) contribution of a feature to the final model output.

Figure image at the original source — open the original paper. This file is not included in this text import.
3.4

Sensitivity analysis and stratified analysis

To address potential confounding factors between diabetes and osteoporosis, we performed SHAP analysis on participants with only glucose abnormalities (including prediabetes and diabetes) or only osteoporosis (Supplementary Figures S6, S7). In the diabetes model, BMI and alcohol intake emerged as primary predictors, followed by ethnicity, education, sex, DII, and dietary fiber intake, indicating that obesity levels and nutritional metabolism play a key role in diabetes risk among older adults. Conversely, the osteoporosis model identified sex, BMI, age, niacin intake, and monounsaturated fatty acid intake as primary determinants.

Although BMI was present in both models, its SHAP values differed in direction and magnitude, suggesting body composition plays distinct roles in glucose and bone metabolism. These stratified analyses confirm that the risk of diabetes-osteoporosis comorbidity stems from shared metabolic pathways and disease-specific nutritional factors, rather than diagnostic overlap.

Additionally, we conducted an analysis of the “age × gender” interaction term. Figure 5 displays risk factors stratified by gender and age. Women exhibited consistent patterns: BMI was the primary risk factor across all age groups. Men, however, exhibit a differentiated pattern: BMI becomes more prominent among those aged 65–75, while alcohol intake and racial factors exert greater influence in the 75–85 age group. Notably, n-6 fatty acids and educational attainment show greater significance among younger women. Magnesium and vitamin E consistently maintain significant protective effects across all subgroups.

Figure 5

SHAP feature importance under age × gender stratification. (A) men; (B) women.

Figure image at the original source — open the original paper. This file is not included in this text import.
3.5

Online prediction tool development and clinical application

Based on the optimized RF model, an online risk prediction tool has been developed, which can be accessed at https://wdhddx.shinyapps.io/osteoporosis-shap-model/. This tool incorporates ten essential indicators, including gender, BMI, and dietary intakes of carotenoids, vitamin E, magnesium, and zinc. It allows for real-time calculations of comorbidity risk probabilities based on individual characteristics entered by the user. The tool is designed with an intuitive interface that seamlessly integrates into clinical workflows, enabling healthcare providers to quickly identify high-risk populations and implement timely interventions aimed at reducing comorbidity risk.

This ease of access promotes early detection and supports preventive care strategies within clinical practice.

4

Discussion

We utilized interpretable machine learning methods to investigate the relationship between dietary nutrient intake and DM-OP comorbidity in older adults using the U.S. NHANES dataset from 2005 to 2020. Among the 8 machine learning models we evaluated, the RF model stood out with an impressive AUC of 0.965, indicating its excellent predictive capability and stability for classification tasks. Through SHAP game-theoretic analysis, we were able to pinpoint the significance of each selected feature, revealing that gender, BMI, carotenoids, vitamin E, magnesium, and zinc were major contributors to predicting the risk of comorbidity.

To our knowledge, this study is the first to comprehensively develop and validate a prediction model for DM-OP comorbidity that incorporates dietary nutritional factors along with demographic, anthropometric, and clinical characteristics in older adults. While our main focus was on analyzing the role of dietary nutrition, the model also includes easily accessible demographic features, lifestyle factors, and health conditions, which enhances its generalizability. Furthermore, we conducted extensive benchmarking to compare the performance of various machine learning algorithms and created an online prediction tool for clinical use.

Machine learning models are increasingly being used to investigate the dietary and metabolic factors linked to chronic diseases in aging populations. For instance, a recent study comparing five models for predicting all-cause mortality in non-alcoholic fatty liver disease (NAFLD) patients found that Gradient Boosting Machine (GBM) and Random Survival Forest (RSF) achieved strong predictive performance (AUC = 0.8), identifying higher dietary fiber intake as a significant protective factor for improved survival (24). In another study using a Korean cohort, a RF model incorporating genetic polygenic risk scores (gPRS) and metabolite data predicted T2DM occurrence with high accuracy (AUC = 0.883), improving classification by 11.7% over clinical-factor-only models (25).

Further demonstrating utility, a CatBoost model integrating dietary antioxidants and metabolic factors effectively predicted chronic kidney disease (CKD) occurrence in individuals with abdominal obesity (AUC = 0.938), identifying age, diabetes history, and dietary antioxidant intake as key predictors (26).

In the realm of DM-OP comorbidity prediction, Wang et al. (27) applied a support vector machine to data from 289 subjects with DM-OP, incorporating five variables: gender, age, BMI, total procollagen I N-terminal propeptide (TP1NP), and osteocalcin, achieving a diagnostic accuracy of 88%. Wu et al. (28) evaluated nine ML algorithms on 303 postmenopausal women with T2DM, with XGBoost showing superior performance (training AUROC: 0.993, testing AUROC: 0.786) using 10 key features, resulting in a clinically applicable risk calculator.

Zhao et al. (29) employed RF model to genetically identify hub genes (ACAA2, GATAD2A, VPS35) associated with DM-OP comorbidity. In a separate study of 433 T2DM patients, Wu et al. (30) found XGBoost again performed best (training AUROC: 0.94, testing AUROC: 0.87) among nine ML algorithms for osteoporosis risk prediction, subsequently stratifying patients into high, medium, and low-risk groups using SHAP analysis and Latent Class Analysis (LCA). Yu et al. (31) developed a GBM model using five routine indicators—gender, age, BMI, heart rate, and alkaline phosphatase—in 2,029 individuals with T2DM (457 with osteoporosis), achieving an external validation AUC of 0.89.

These studies illustrate the growing application of ML in exploring DM-OP comorbidity prediction, though most focus on clinical indicators such as demographic, anthropometric, and biochemical markers rather than dietary factors.

In this study, we selected 8 diverse ML algorithms (XGBoost, decision tree, logistic regression, MLP, naive Bayes, KNN, RF, and SVM-RBF) to construct prediction models and employed comprehensive benchmarking to determine the optimal approach for diabetes-osteoporosis comorbidity prediction. Compared to traditional statistical methods such as logistic regression, machine learning approaches offer several advantages: they can automatically capture complex non-linear interactions between dietary factors and disease risk without requiring predetermined variable transformations; algorithms like RF and XGBoost can identify the most predictive features through built-in feature importance measures, reducing selection bias; and they demonstrate superior performance in handling high-dimensional healthcare datasets with mixed data types (32).

Our findings suggest that the RF model is the most effective choice for this prediction task. RF is an ensemble method that combines several decision trees, which enhances prediction accuracy through techniques like bootstrap aggregating and random feature selection (33). This model is particularly advantageous in healthcare settings due to its capability to manage various data types, its resistance to overfitting, and its inherent feature importance measures. Additionally, the model’s leaf-wise growth strategy and ensemble characteristics allow it to identify intricate relationships between dietary nutrient intake and comorbidity risk, all while remaining interpretable through SHAP analysis (34).

The SHAP analysis indicated that gender, BMI, and certain dietary nutrition (carotenoids, vitamin E, magnesium, and zinc) were the most significant predictors. These results are consistent with the current literature regarding the pathophysiology linking DM and OP, as well as the protective effects of dietary nutrient intake.

Gender emerged as the most significant predictor of DM-OP comorbidity, with women exhibiting a higher susceptibility. This observation aligns with epidemiological evidence indicating that postmenopausal women are at an increased risk for both conditions, primarily due to estrogen deficiency that impact glucose metabolism and bone turnover (35). Research indicates that estrogen deficiency can exacerbate insulin resistance, impairing glucose utilization and storage, which further aggravates bone loss (36). In the SWAN cohort of women, insulin resistance exhibited a biphasic relationship with bone mineral density: declining HOMA-IR slowed bone loss, whereas rising HOMA-IR accelerated it (37).

Research has found that estrogen regulates vascular calcification and osteoporosis through receptor signaling, matrix proteins, and environmental-physical factors (38). BMI demonstrated a positive correlation with the risk of DM-OP comorbidity. A cohort study focusing on elderly patients with T2DM found that the prevalence of sarcopenic obesity (SO) was notably high, with significant implications for negative health outcomes, including increased risks of cardiovascular diseases and fractures (39). SHAP analysis initially identified female gender as the strongest predictor of diabetes-osteoporosis comorbidity.

Subsequent stratification by both sex and age revealed nuanced risk patterns: BMI remained a dominant risk factor for women in both the 65–74 and 75–85 age groups, underscoring the persistent link between body composition and metabolic-bone health in postmenopausal women. In the oldest female subgroup (75–85 years), the influence of n–6 fatty acids and educational attainment attenuated—possibly reflecting survival bias, the predominance of non-modifiable biological factors, or cohort effects. In contrast, risk profiles in men shifted with age: BMI’s predictive importance decreased in the 75–85 year group, while lifestyle (alcohol) and sociodemographic (ethnicity) factors gained prominence.

These findings highlight the need for sex- and age-specific comorbidity risk assessment to guide personalized intervention in older adults.

The identification of specific dietary nutrition as crucial protective factors offers important insights for developing intervention strategies. Carotenoids showed strong negative SHAP values, suggesting they have protective effects against the development of DM-OP comorbidities. Carotenoids, including α-carotene and β-carotene, are abundant in dark-colored vegetables and fruits, possessing potent antioxidant properties and can be metabolized in the liver into vitamin A (40). A recent dose–response meta-analysis of 13 prospective studies supports that higher dietary intake and circulating concentrations of total carotenoids, particularly β-carotene, are associated with a lower risk of T2DM (41).

Additionally, carotenoids can reduce the risk of periodontitis (42), retinopathy (43), and cardiovascular events (44) in individuals with DM. Regarding bone health, a cross-sectional study in individuals over 50 years old showed that higher intake of β-carotene and β-cryptoxanthin is associated with a reduced risk of osteoporosis (45). Vitamin E has been identified as a significant protective factor, reinforcing its well-known antioxidant properties. A Swedish case–control study indicates that dietary vitamin E is associated with low autoantibody levels, preserved β-cell function, and reduced insulin resistance in latent autoimmune diabetes in adults (LADA), suggesting a potential protective role against autoimmune diabetes (46).

A 12-week randomized, double-blind trial demonstrated that daily supplementation with 400 IU of mixed tocopherols significantly suppressed the rise in the bone resorption marker CTX in postmenopausal women with osteopenia, suggesting the potential of vitamin E supplementation in mitigating bone loss (47). Magnesium plays a vital role in glucose metabolism and the mineralization of bones. Several cross-sectional studies have found that serum magnesium levels are inversely associated with prediabetes, diabetes (48), and diabetic complications such as diabetic retinopathy (49).

A recent systematic review highlighted that higher magnesium intake may support increased bone mineral density in the hip and femoral neck (50). Additionally, a cross-sectional study revealed that magnesium deficiency has a greater impact on osteoporosis than vitamin D, serving as a critical modifiable factor associated with reduced bone mineral density and increased fracture risk (51). Zinc plays a crucial protective role in insulin signaling and bone formation. A recent cohort study indicated that higher zinc levels are associated with an increased risk of T2DM in individuals with isolated impaired glucose tolerance (iIGT) (52).

Zinc supplementation can correct zinc deficiency in diabetes, lower blood glucose, improve metabolic and antioxidant status, and mitigate complications such as renal, ocular, and cardiovascular issues (53). These findings underscore the potential benefits of targeted nutritional interventions that emphasize the consumption of antioxidant-rich foods and specific micronutrient supplements to enhance health outcomes in older populations.

Recent clinical trials have highlighted the promising therapeutic potential of dietary antioxidant interventions for addressing the comorbidity of DM-OP. Sun et al. (54) demonstrated that higher CDAI scores in postmenopausal women are associated with a lower risk of osteoporosis, exhibiting an age-dependent non-linear relationship. Su et al. (55) noted that the anti-resorptive agent denosumab, when combined with antioxidant therapy, can further reduce the risk of fractures. A recent review emphasized the significance of iron metabolism dysregulation in DOP, linking it to ferroptosis, proposing that therapeutic strategies targeting ferroptosis, such as the use of antioxidants, could effectively attenuate bone loss in diabetic patients (56).

This dual action supports bone health in DOP. These findings collectively suggest that dietary modifications, particularly the inclusion of antioxidants play a critical role in preventing DM-OP.

The clinical significance of our findings goes beyond merely predicting risk; it also encompasses practical intervention strategies. Our model serves as a non-invasive screening tool that can identify individuals at high risk by utilizing easily accessible demographic and dietary information. Additionally, by pinpointing modifiable dietary factors, we can create targeted nutritional interventions tailored to individual needs. Furthermore, the online prediction tool we developed not only aids in the clinical implementation of these strategies but also enhances patient education about the risk factors associated with comorbidities.

Our study has several limitations that should be acknowledged. Firstly, as a fundamental limitation of this cross-sectional study, we cannot establish causality or determine the temporal sequence between dietary nutrient intake and the development of DM-OP comorbidity. The observed associations should be interpreted as correlations rather than causal effects. Secondly, our assessment of dietary intake is based on 24-h recalls, which may not accurately reflect long-term dietary patterns and are susceptible to recall bias. Lastly, the model was developed using data from the U.

S. NHANES, which may limit its applicability to other populations that have different dietary habits and genetic backgrounds. Furthermore, the diagnosis of osteoporosis was based on the WHO T-score criterion (≤ − 2.5), which is derived from a reference population of young white women. While this is a widely used standard, it may not fully capture osteoporosis risk across all racial/ethnic groups and in men, as bone mineral density baselines and fracture risk relationships can differ.

Future research should focus on several key areas. First, the prospective validation of our predictive model across diverse populations; second, the exploration of optimal dietary nutrient intake thresholds for preventing comorbidities; third, the development of personalized dietary intervention protocols tailored to individual risk profiles; fourth, the incorporation of genetic and metabolomic data to improve prediction accuracy; and finally, the assessment of the model’s clinical utility in real-world healthcare environments.

5

Conclusion

In conclusion, our machine learning approach effectively identified significant dietary nutritional factors linked to the risk of DM-OP comorbidity in older adults. The RF model exhibited outstanding predictive performance, highlighting gender, BMI, carotenoids, vitamin E, magnesium, and zinc as the most influential predictors. These results lay the groundwork for creating targeted nutritional interventions and clinical decision support tools aimed at managing comorbidity risk in aging populations.

Acknowledgments

The authors thank all participants and all investigators.

Edited by: Mirko Marino, University of Milan, Italy

Reviewed by: Wenlong Sun, Shandong University of Technology, China

Fuad Taleb, Taiz University, Yemen

Data availability statement

Publicly available datasets were analyzed in this study. This data can be found at: https://wwwn.cdc.gov/nchs/nhanes/Default.aspx.

Ethics statement

The current study was supported by the Ethics Review Board of U.S. National Center for Health Statistics, and written informed consents were obtained from all participants of the NHANES survey.

Author contributions

YS: Funding acquisition, Investigation, Writing – original draft, Writing – review & editing, Conceptualization, Methodology. KJ: Methodology, Project administration, Resources, Validation, Visualization, Conceptualization, Investigation, Writing – original draft, Writing – review & editing. ZL: Conceptualization, Validation, Writing – original draft, Writing – review & editing. CH: Data curation, Investigation, Writing – review & editing. Y-JS: Investigation, Writing – review & editing, Supervision. HaL: Investigation, Writing – review & editing. KH: Resources, Writing – review & editing. KW: Project administration, Writing – review & editing.

LY: Project administration, Resources, Writing – review & editing. KX: Conceptualization, Data curation, Methodology, Writing – review & editing. HuL: Formal analysis, Funding acquisition, Writing – review & editing.

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.

Supplementary material

The Supplementary material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/fnut.2025.1666477/full#supplementary-material

Supplement file at the original source — open the original paper. This file is not included in this text import.
Supplement file at the original source — open the original paper. This file is not included in this text import.
Supplement file at the original source — open the original paper. This file is not included in this text import.
Supplement file at the original source — open the original paper. This file is not included in this text import.
Supplement file at the original source — open the original paper. This file is not included in this text import.
Supplement file at the original source — open the original paper. This file is not included in this text import.
Supplement file at the original source — open the original paper. This file is not included in this text import.
Supplement file at the original source — open the original paper. This file is not included in this text import.

References

1. Chen Y Zhao W Hu A Lin S Chen P Yang B . Type 2 diabetic mellitus related osteoporosis: focusing on ferroptosis . J Transl Med . (2024 ) 22 :409 . doi: 10.1186/s12967-024-05191-x , PMID: 38693581 PMC11064363
2. Sun H Saeedi P Karuranga S Pinkepank M Ogurtsova K Duncan BB . IDF diabetes atlas: global, regional and country-level diabetes prevalence estimates for 2021 and projections for 2045 . Diabetes Res Clin Pract . (2022 ) 183 :109119 . doi: 10.1016/j.diabres.2021.109119 , PMID: 34879977 PMC11057359
3. GBD 2021 Diabetes Collaborators . Global, regional, and national burden of diabetes from 1990 to 2021, with projections of prevalence to 2050: a systematic analysis for the global burden of disease study 2021 . Lancet . (2023 ) 402 :203 –34 . doi: 10.1016/s0140-6736(23)01301-6 , PMID: 37356446 PMC10364581
4. Franks PW Rich SS Linder B Zaghloul NA Cefalu WT . A research roadmap to address the heterogeneity of diabetes and advance precision medicine . J Clin Endocrinol Metab . (2025 ) 110 :601 –10 . doi: 10.1210/clinem/dgae844 , PMID: 39657245 PMC12063085
5. Özmen S Kurt S Timur HT Yavuz O Kula H Demir AY . Prevalence and risk factors of osteoporosis: a cross-sectional study in a tertiary center . Medicina (Kaunas) . (2024 ) 60 :2109 . doi: 10.3390/medicina60122109 , PMID: 39768987 PMC11677826
6. de Villiers TJ Goldstein SR . Bone health 2022: an update . Climacteric . (2022 ) 25 :1 –3 . doi: 10.1080/13697137.2021.1965408 , PMID: 35041568
7. Schacter GI Leslie WD . Diabetes and osteoporosis: part I, epidemiology and pathophysiology . Endocrinol Metab Clin N Am . (2021 ) 50 :275 –85 . doi: 10.1016/j.ecl.2021.03.005 , PMID: 34023043
8. Caturano A D'Angelo M Mormone A Russo V Mollica MP Salvatore T . Oxidative stress in type 2 diabetes: impacts from pathogenesis to lifestyle modifications . Curr Issues Mol Biol . (2023 ) 45 :6651 –66 . doi: 10.3390/cimb45080420 37623239 PMC10453126
9. Palui R Pramanik S Mondal S Ray S . Critical review of bone health, fracture risk and management of bone fragility in diabetes mellitus . World J Diabetes . (2021 ) 12 :706 –29 . doi: 10.4239/wjd.v12.i6.706 , PMID: 34168723 PMC8192255
10. Chen C Chen Q Nie B Zhang H Zhai H Zhao L . Trends in bone mineral density, osteoporosis, and osteopenia among U.S. adults with prediabetes, 2005-2014 . Diabetes Care . (2020 ) 43 :1008 –15 . doi: 10.2337/dc19-1807 , PMID: 32144169
11. Shieh A Greendale GA Cauley JA Karvonen-Gutierriez C Harlow SD Finkelstein JS . Prediabetes and insulin resistance are associated with lower trabecular bone score (TBS): cross-sectional results from the study of women's health across the nation TBS study . Osteoporos Int . (2022 ) 33 :1365 –72 . doi: 10.1007/s00198-022-06325-x , PMID: 35178609 PMC9106606
12. Liu T Wang Y Qian B Li P . Potential metabolic pathways involved in osteoporosis and evaluation of fracture risk in individuals with diabetes . Biomed Res Int . (2024 ) 2024 :1 –13 . doi: 10.1155/2024/6640796 , PMID: 38884020 PMC11178402
13. Grosso G Laudisio D Frias-Toral E Barrea L Muscogiuri G Savastano S . Anti-inflammatory nutrients and obesity-associated metabolic-inflammation: state of the art and future direction . Nutrients . (2022 ) 14 :1137 . doi: 10.3390/nu14061137 , PMID: 35334794 PMC8954840
14. Chandra P Sharma RK Arora DS . Antioxidant compounds from microbial sources: a review . Food Res Int . (2020 ) 129 :108849 . doi: 10.1016/j.foodres.2019.108849 , PMID: 32036890
15. Ciaffi J Mancarella L Ripamonti C D'Amuri A Brusi V Pignatti F . Ultra-processed food and its impact on bone health and joint diseases: a scoping review . Nutrients . (2025 ) 17 :1188 . doi: 10.3390/nu17071188 , PMID: 40218946 PMC11990240
16. Chen Z Khandpur N Desjardins C Wang L Monteiro CA Rossato SL . Ultra-processed food consumption and risk of type 2 diabetes: three large prospective U.S. cohort studies . Diabetes Care . (2023 ) 46 :1335 –44 . doi: 10.2337/dc22-1993 , PMID: 36854188 PMC10300524
17. Zhou Y Zhu X Lü L Zhao R Shi H Ye W . Maternal dietary patterns associated with bone density in Chinese lactating women and infants at 6 months postpartum: a prospective study using data from 2018–2019 . Food Sci Human Wellness . (2024 ) 13 :2668 –76 . doi: 10.26599/FSHW.2022.9250214
18. Qin Y Wu J Xiao W Wang K Huang A Liu B . Machine learning models for data-driven prediction of diabetes by lifestyle type . Int J Environ Res Public Health . (2022 ) 19 :15027 . doi: 10.3390/ijerph192215027 , PMID: 36429751 PMC9690067
19. ShangGuan Y Lin Z Wu K Sim Y-J Xuan W . Comments on “machine learning and SHAP value interpretation for predicting comorbidity of cardiovascular disease and cancer with dietary antioxidants” . Redox Biol . (2025 ) 86 :103849 . doi: 10.1016/j.redox.2025.103849 , PMID: 40912072 PMC12446541
20. Ahluwalia N Dwyer J Terry A Moshfegh A Johnson C . Update on NHANES dietary data: focus on collection, release, analytical considerations, and uses to inform public policy . Adv Nutr . (2016 ) 7 :121 –34 . doi: 10.3945/an.115.009258 , PMID: 26773020 PMC4717880
21. Li X Zhao Y Zhang D Kuang L Huang H Chen W . Development of an interpretable machine learning model associated with heavy metals' exposure to identify coronary heart disease among US adults via SHAP: findings of the US NHANES from 2003 to 2018 . Chemosphere . (2023 ) 311 :137039 . doi: 10.1016/j.chemosphere.2022.137039 , PMID: 36342026
22. Rajula HSR Verlato G Manchia M Antonucci N Fanos V . Comparison of conventional statistical methods with machine learning in medicine: diagnosis, drug development, and treatment . Medicina (Kaunas) . (2020 ) 56 :455 . doi: 10.3390/medicina56090455 , PMID: 32911665 PMC7560135
23. Qi X Wang S Fang C Jia J Lin L Yuan T . Machine learning and SHAP value interpretation for predicting comorbidity of cardiovascular disease and cancer with dietary antioxidants . Redox Biol . (2025 ) 79 :103470 . doi: 10.1016/j.redox.2024.103470 , PMID: 39700695 PMC11729017
24. Chen P Li Y Yang C Zhang Q . Machine learning models integrating dietary data predict all-cause mortality in U.S. NAFLD patients: an NHANES-based study . Nutr J . (2025 ) 24 :100 . doi: 10.1186/s12937-025-01170-0 , PMID: 40598226 PMC12220616
25. Hahn SJ Kim S Choi YS Lee J Kang J . Prediction of type 2 diabetes using genome-wide polygenic risk score and metabolic profiles: a machine learning analysis of population-based 10-year prospective cohort study . EBioMedicine . (2022 ) 86 :104383 . doi: 10.1016/j.ebiom.2022.104383 , PMID: 36462406 PMC9713286
26. Deng X Ma L Li P He M Jin R Tao Y . Identification and optimization of relevant factors for chronic kidney disease in abdominal obesity patients by machine learning methods: insights from NHANES 2005-2018 . Lipids Health Dis . (2024 ) 23 :390 . doi: 10.1186/s12944-024-02384-7 , PMID: 39593076 PMC11590401
27. Wang C Zhang T Wang P Liu X Zheng L Miao L . Bone metabolic biomarker-based diagnosis of type 2 diabetes osteoporosis by support vector machine . Ann Transl Med . (2021 ) 9 :316 . doi: 10.21037/atm-20-3388 , PMID: 33708943 PMC7944260
28. Wu X Zhai F Chang A Wei J Guo Y Zhang J . Application of machine learning algorithms to predict osteoporosis in postmenopausal women with type 2 diabetes mellitus . J Endocrinol Investig . (2023 ) 46 :2535 –46 . doi: 10.1007/s40618-023-02109-0 , PMID: 37171784
29. Zhao R Xiong C Zhao Z Zhang J Huang Y Xie Z . Exploration of the shared hub genes and biological mechanism in osteoporosis and type 2 diabetes mellitus based on machine learning . Biochem Genet . (2023 ) 61 :2531 –47 . doi: 10.1007/s10528-023-10390-0 , PMID: 37140844
30. Wu X Zhai F Chang A Wei J Guo Y Zhang J . Development of machine learning models for predicting osteoporosis in patients with type 2 diabetes mellitus-a preliminary study . Diabetes Metab Syndr Obes . (2023 ) 16 :1987 –2003 . doi: 10.2147/dmso.S406695 , PMID: 37408729 PMC10319347
31. Yu X Liu W Chen X Wang Y Tang H Su Y . Construction of a novel online calculator for prediction of osteoporosis risk in Chinese type 2 diabetes patients . Exp Gerontol . (2025 ) 208 :112819 . doi: 10.1016/j.exger.2025.112819 , PMID: 40571135
32. ShangGuan Y Lin Z Huang K Sim Y-J Hou Y Yan L . Development and validation of a machine learning model for predicting the risk of current depression in physically inactive adults in the United States . J Affect Disord . (2026 ) 394 :120555 . doi: 10.1016/j.jad.2025.120555 41284540
33. Pantic IV Paunovic Pantic J Valjarevic S Corridon PR Topalovic N . Artificial intelligence - based approaches based on random forest algorithm for signal analysis: potential applications in detection of chemico - biological interactions . Chem Biol Interact . (2025 ) 418 :111624 . doi: 10.1016/j.cbi.2025.111624 , PMID: 40582691
34. Lundberg SM Erion G Chen H DeGrave A Prutkin JM Nair B . From local explanations to global understanding with explainable AI for trees . Nat Mach Intell . (2020 ) 2 :56 –67 . doi: 10.1038/s42256-019-0138-9 , PMID: 32607472 PMC7326367
35. Xu H Xiao W Ding C Zou J Zhou D Wang J . Global burden of osteoarthritis among postmenopausal women in 204 countries and territories: a systematic analysis for the global burden of disease study 2021 . BMJ Glob Health . (2025 ) 10 :e017198 . doi: 10.1136/bmjgh-2024-017198 , PMID: 40037907 PMC11891539
36. Abildgaard J Ploug T Pedersen AT Eiken P Pedersen BK Holst JJ . Preserved postprandial suppression of bone turnover markers, despite increased fasting levels, in postmenopausal women . Bone . (2021 ) 143 :115612 . doi: 10.1016/j.bone.2020.115612 , PMID: 32853851
37. Shieh A Greendale GA Cauley JA Srikanthan P Karlamangla AS . Longitudinal associations of insulin resistance with change in bone mineral density in midlife women . JCI Insight . (2022 ) 7 :e162085 . doi: 10.1172/jci.insight.162085 , PMID: 36278482 PMC9714784
38. Wu W Qiao A Du T . Tissue-specific mechanism of estrogen in osteoporosis and vascular calcification . Eur J Pharmacol . (2025 ) 1002 :177783 . doi: 10.1016/j.ejphar.2025.177783 , PMID: 40447065
39. Chuan F Chen S Ye X Kang S Mei M Tian W . Sarcopenic obesity predicts negative health outcomes among older patients with type 2 diabetes: the ageing and body composition of diabetes (ABCD) cohort study . Clin Nutr . (2022 ) 41 :2740 –8 . doi: 10.1016/j.clnu.2022.10.023 , PMID: 36370663
40. Nimbalkar V Joshi U Shinde S Pawar G . In-vivo and in-vitro evaluation of therapeutic potential of β- carotene in diabetes . J Diabetes Metab Disord . (2021 ) 20 :1621 –30 . doi: 10.1007/s40200-021-00912-1 , PMID: 34900813 PMC8630159
41. Jiang YW Sun ZH Tong WW Yang K Guo KQ Liu G . Dietary intake and circulating concentrations of carotenoids and risk of type 2 diabetes: a dose-response Meta-analysis of prospective observational studies . Adv Nutr . (2021 ) 12 :1723 –33 . doi: 10.1093/advances/nmab048 , PMID: 33979433 PMC8483954
42. Li F Wang G Zhang Y . Association between carotenoid intake and periodontitis in diabetic patients . J Nutr Sci . (2024 ) 13 :e11 . doi: 10.1017/jns.2023.116 , PMID: 38572367 PMC10988174
43. Choi YJ Kwon JW Jee D . Are dietary intake parameters of vitamin a, carotene, retinol appropriate factors to evaluate the risk of diabetic retinopathy? Medicine (Baltimore) . (2023 ) 102 :e33969 . doi: 10.1097/md.0000000000033969 , PMID: 37266619 PMC10238041
44. Qiu Z Chen X Geng T Wan Z Lu Q Li L . Associations of serum carotenoids with risk of cardiovascular mortality among individuals with type 2 diabetes: results from NHANES . Diabetes Care . (2022 ) 45 :1453 –61 . doi: 10.2337/dc21-2371 , PMID: 35503926
45. Kan B Guo D Yuan B Vuong AM Jiang D Zhang M . Dietary carotenoid intake and osteoporosis: the National Health and nutrition examination survey, 2005-2018 . Arch Osteoporos . (2021 ) 17 :2 . doi: 10.1007/s11657-021-01047-9 , PMID: 34878583
46. Lampousi AM Löfvenborg JE Ahlqvist E Tuomi T Wolk A Carlsson S . Antioxidant nutrients and risk of latent autoimmune diabetes in adults and type 2 diabetes: a Swedish case-control study and Mendelian randomization analysis . Nutrients . (2023 ) 15 :2546 . doi: 10.3390/nu15112546 , PMID: 37299509 PMC10255589
47. Vallibhakara SA Nakpalat K Sophonsritsuk A Tantitham C Vallibhakara O . Effect of vitamin E supplement on bone turnover markers in postmenopausal osteopenic women: a double-blind, randomized, placebo-controlled trial . Nutrients . (2021 ) 13 :4226 . doi: 10.3390/nu13124226 , PMID: 34959779 PMC8709036
48. Shi Z Abou-Samra AB . Association of low serum magnesium with diabetes and hypertension: findings from Qatar biobank study . Diabetes Res Clin Pract . (2019 ) 158 :107903 . doi: 10.1016/j.diabres.2019.107903 , PMID: 31678625
49. Shivakumar K Rajalakshmi AR Jha KN Nagarajan S Srinivasan AR Lokesh Maran A . Serum magnesium in diabetic retinopathy: the association needs investigation . Ther Adv Ophthalmol . (2021 ) 13 :25158414211056385 . doi: 10.1177/25158414211056385 , PMID: 34901747 PMC8655827
50. Groenendijk I van Delft M Versloot P van Loon LJC de Groot L . Impact of magnesium on bone health in older adults: a systematic review and meta-analysis . Bone . (2022 ) 154 :116233 . doi: 10.1016/j.bone.2021.116233 34666201
51. Ali ET Mohammed AN Khudairi AS Sulaiman GM Mohammed HA Abomughayedh AM . The extensive study of magnesium deficiency, 25-(OH) vitamin D3, inflammatory markers, and parathyroid hormone in relation to bone mineral density in Iraqi osteoporosis patients: a cross-sectional study . Health Sci Rep . (2025 ) 8 :e70641 . doi: 10.1002/hsr2.70641 , PMID: 40213265 PMC11982515
52. Bahadoran Z Ghafouri-Taleghani F Azizi F Ghasemi A . High serum zinc concentration accelerates progression of isolated impaired glucose tolerance to type 2 diabetes: a cohort study . Biol Trace Elem Res . (2025 ) 203 :4974 –82 . doi: 10.1007/s12011-025-04545-w , PMID: 39939554
53. Chen M Guo J Shangguan Y Sun Z He X Tu Q . Association of the triglyceride-glucose index combined with a body shape index with all-cause and cardiovascular mortality in individuals with cardiovascular-kidney-metabolic syndrome stage 0–3: findings from two prospective cohorts . Cardiovasc Diabetol . (2025 ) 24 :366 . doi: 10.1186/s12933-025-02921-3 , PMID: 40988017 PMC12455813
54. Sun J Wang J Hu W Huang H Zhao H . Associations of comprehensive dietary antioxidant index with postmenopausal femur bone mineral density and osteoporosis: data from the national health and nutrition examination survey . Front Nutr . (2025 ) 12 :1526532 . doi: 10.3389/fnut.2025.1526532 , PMID: 39944952 PMC11813784
55. Su W Jia H Yang L Zhang J Wei Z Tsikwa P . Risk factors for osteoporosis in elderly patients with type 2 diabetes: a protocol for systematic review and meta-analysis . PLoS One . (2025 ) 20 :e0319602 . doi: 10.1371/journal.pone.0319602 , PMID: 40014597 PMC11867315
56. Li C Gong H Zhang Y Shi P Liu S Zhang Q . Ferroptosis as an emerging target in diabetic osteoporosis . FASEB J . (2025 ) 39 :e70769 . doi: 10.1096/fj.202500415R , PMID: 40552899

Glossary

SHAP

SHapley Additive exPlanations

NHANES

National Health and Nutrition Examination Survey

DM

diabetes mellitus

T2DM

Type 2 diabetes mellitus

OP

osteoporosis

BMI

Body mass index

DXA

dual-energy X-ray absorptiometry

MET

metabolic equivalent of task

HbA1c

glycosylated hemoglobin

PIR

poverty income ratio

25-(OH)D

25-hydroxyvitamin D

MUFA

monounsaturated fatty acids

PUFA

polyunsaturated fatty acids

CDAI

Composite Dietary Antioxidant Index

DII

Dietary Inflammatory Index

HEI-2020

Healthy Eating Index 2020

DASH

Dietary Approaches to Stop Hypertension

OBS

Oxidative Balance Score

SMOTE

synthetic minority oversampling technique

MLP

multilayer perceptron

SVM-RBF

support vector machine with radial basis function

AUC

area under the ROC curve

AUPRC

area under the precision-recall curve

ANOVA

analysis of variance

NRMSE

normalized root mean square error

PFC

proportion of falsely classified

ROC

Receiver Operating Characteristic

Publication and source details

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

Yuwen ShangGuan; Kangkang Ji; Zhenhao Lin; Chenyiyi He; Young-Je Sim; Haobiao Liu; Kunyi Huang; Kunpeng Wu; Litao Yan; Kunyuan Xu; Huan Li

Frontiers in Nutrition · 2025

* Correspondence: Litao Yan, yanlitaodtc@163.comKunyuan Xu, xky3371@gmail.comHuan Li, doctorlihuan@163.com
†

These authors have contributed equally to this work

Copyright © 2025 ShangGuan, Ji, Lin, He, Sim, Liu, Huang, Wu, Yan, Xu and Li.2025ShangGuan, Ji, Lin, He, Sim, Liu, Huang, Wu, Yan, Xu and Lihttps://creativecommons.org/licenses/by/4.0/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) and the copyright owner(s) 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.The author(s) declare that financial support was received for the research and/or publication of this article. This work was supported by the National Natural Science Foundation of China (Grant No. 82202679), the China Postdoctoral Science Foundation (Grant Nos. 2023M740375 and 2024T170082), and the Applied Basic Research Project of Changzhou (CJ20252030).

Repository JATS snapshot; version as supplied

Source retrieved: 2026-11-11T01:38:45.010919+00:00

DOI: 10.3389/fnut.2025.1666477 · PMC12667436