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:

Vitamin D (mcg) | 4.4 (4.0–4.8) | 4.2 (3.9–4.6) | 0.4684

Source: Results table. 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.

The study subjects were 2084 nondiabetic women aged 45–64.

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

Discriminating insulin resistance in middle-aged nondiabetic women using machine learning approaches

Study design awaiting verification · AIMS Public Health · 2024

Original publication title

Discriminating insulin resistance in middle-aged nondiabetic women using machine learning approaches

Zailing Xing; Henian Chen; Amy C. Alman

© 2024 the Author(s), licensee AIMS Press

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

Abstract: What objectives does the paper state?

We employed machine learning algorithms to discriminate insulin resistance (IR) in middle-aged nondiabetic women.

Source: Objective

Study methods

What methods does the paper describe?

2.1.

Data source

Data was obtained from the NHANES from 2007 to 2018. The NHANES program is a cross-sectional and periodic health-related initiative in the United States administered by the National Center for Health Statistics (NCHS) of the Centers for Disease Control and Prevention. The ongoing survey and exam assess community-dwelling individuals' health and nutritional status using anthropometric measurements, health and nutrition questionnaires, and laboratory tests. The data is freely accessible to the public. The NCHS research ethics review board approved the NHANES protocol, and each participant signed informed consent forms.

To obtain further details regarding the ethical approval of this research, please access: https://www.cdc.gov/nchs/nhanes/irba98.htm.

We analyzed middle-aged female NHANES participants from the 2007–2018 survey cycles that included the same variables of interest. This study defines the middle age as 45–64 years old [19]. Participants were excluded from analyses if they were male, younger than 45 years old or older than 64 years old, lacked lab testing data such as glucose, insulin, and triglycerides, or did not have information on daily nutrient intake. We also excluded individuals with diabetes mellitus or cancer, as previous research has indicated that these two health conditions could affect IR [20].

Consequently, the ultimate sample size was 2084.

2.2.

Insulin resistance

IR was evaluated using the homeostasis model assessment of IR (HOMA-IR), which is widely employed as the predominant approach for determining IR using the formula: fasting insulin (µU/mL) × fasting glucose (mg/dL)/405 [21]. A HOMA-IR value exceeding 2.73 has previously been shown to indicate the presence of IR in nondiabetic American adults [22]. Therefore, we set the IR cutoff value for nondiabetic middle-aged women at HOMA-IR values greater than 2.73.

2.3.

Predictors

The predictors included demographic and behavioral factors, laboratory data, daily nutritional intake, and reproductive health variables. Demographic and behavioral factors encompassed age, race (non-Hispanic white, non-Hispanic Black, Hispanic, and others), education (high school or below, and college or above), marital status (married/living with a partner, widowed/divorced/separated, and never married), family monthly poverty level index, smoking (current, former, and never), family history of diabetes, body mass index (BMI, kg/m2), physical activity, hypertension, systolic and diastolic blood pressure (mmHg). We defined hypertension based on the responses to the questions “Has a physician ever informed you that you have high blood pressure?” and “Are you currently taking medication for hypertension?”, systolic blood pressure ≥140 mmHg, or diastolic blood pressure ≥90 mmHg.

Using metabolic equivalent scores, we measured physical activity [23].

Laboratory data included fasting glucose (mg/dL), high-density lipoprotein cholesterol (HDL-C) (mg/dL), triglyceride (mg/dL), glycohemoglobin (%), total cholesterol (mg/dL), and estimated glomerular filtration rate (eGFR, mL/min/1.73m2). The laboratory data-gathering procedures and tests have been documented in earlier publications [24]. We used the chronic kidney disease epidemiology creatinine equation to estimate eGFR [25].

We gathered the following information regarding daily nutritional intake: energy intake (kcal/kg), protein intake ratio (%), carbohydrate intake ratio (%), total fat intake ratio (%), total sugars (gm), dietary fiber (gm), cholesterol intake (mg), folate intake (mcg), total saturated and monounsaturated fatty acid (gm), alcohol (gm), vitamin C (mg), vitamin D (mcg), vitamin B6 (mg), vitamin B12 (mcg), caffeine (mg), iron (mg), calcium (mg), zinc (mg), sodium (mg), phosphorus (mg), magnesium (mg), copper (mg), selenium (mcg), potassium (mg), and theobromine (mg).

Reproductive variables included age at menarche, number of pregnancies, number of abortions/miscarriages/stillbirths, birth control pills, hysterectomy, bilateral oophorectomy, and female hormones. Birth control pills, hysterectomy, bilateral oophorectomy, and female hormones were categorical variables (yes and no), while others were continuous.

2.4.

Model building process

Regarding the model construction procedure, the study subjects were first randomly separated into the training (80%) and testing (20%) datasets [26]. Next, one-hot encoding was used to encode categorical variables [27], and min-max scaling was used to standardize continuous variables [28]. This allowed the variable values to be compared across dimensions by rescaling them from 0 to 1. We utilized the Synthetic Minority Oversampling Technique in the training dataset to overcome the issue of unbalanced data. Creating synthetic samples of the minority class is a helpful approach, which improves its representation and boosts the model's ability to learn from data [29].

To examine the interrelationships among the predictors, we performed Spearman correlation analyses. If the correlation coefficient was greater than 0.75, one of two variables was removed to ensure the robustness of the model [30]. Among the 56 predictors, the following pairings of variables had correlation coefficients greater than 0.75: magnesium and potassium (0.81), folate and iron (0.76), monounsaturated fatty acid and saturated fatty acids (0.81), monounsaturated fatty acids and fat (0.84), carbohydrate and energy (0.87), energy and fat (0.86), saturated fatty acids and fat (0.77), total cholesterol and low-density lipoprotein cholesterol (0.89), BMI and waist (0.87), and number of pregnancies and number of live births (0.87).

We eliminated the following variables: magnesium, folate, monounsaturated fatty acids, carbohydrate, fat, low-density lipoprotein cholesterol, waist, and number of live births, based on previous pertinent studies [12],[13].

In this study, four machine learning techniques, namely random forest (RF), extreme gradient boosting (XGBoosting), gradient boosting machine (GBM), and decision tree (DT), were chosen for hyperparameter optimization within the dataset. The RF algorithm is a type of ensemble learning that builds many decision trees during training and finds the average prediction (regression) of the individual trees or the mode of the classes (classification) [31]. XGBoosting is a distributed gradient boosting library optimized for flexible and effective implementation. Due to its speed and performance, it is scalable, highly efficient, and extensively utilized in machine learning competitions and industry applications [32].

Sequentially constructing an ensemble of weak learners (typically decision trees), GBM is renowned for its exceptional predictive accuracy and resistance to overfitting [33]. DT is a nonparametric algorithm for supervised learning in classification and regression tasks. The algorithm divides the data into subsets according to the feature values and builds a tree-like structure for making predictions [34].

Additionally, a 5-fold cross-validation method was employed. The training dataset was divided into five groups for the 5-fold cross-validation, with one group as the internal validation set and four as the internal training dataset. The average performance was computed using a grid search, and the hyperparameters were optimized to maximize the AUC of receiver operating characteristic (ROC) for the internal validation set [35]. Following the completion of model training, we utilized the testing dataset for validation.

We compared the performance metrics of different models using the AUC of ROC, accuracy, sensitivity, specificity, positive predictive value (PPV), negative predictive value (NPV), and F1 score [36]. The F1 score is a metric to quantify accuracy by precision and sensitivity [37]. Finally, we used the SHapley Additive exPlanations (SHAP) framework to illustrate the predictors' contributions and identify the threshold values of the predictors [38].

2.5.

Statistical analysis

Since NHANES is a multistage, complicated probability sampling design, we used weighted mean (95% confidence interval) to describe continuous predictors and frequency (weighted percentage) to characterize categorical ones. We compared predictor differences between IR statuses using the Rao-Scott chi-square test for categorical variables and the t-test for continuous variables.

As participants lacking lab testing or daily nutrient intake data were excluded, other variables, except for family monthly poverty level index and physical activity, had no missing values. We used mean values to deal with the missing values of the two variables. All p-values presented in this study were two-sided and deemed statistically significant at a significance level of p < 0.05. The statistical analyses were conducted using SAS (version 9.4; SAS, Cary, NC, USA). The machine learning algorithms were implemented using R (version 4.3.0) and Python (version 3.10.11).

Source: Materials and methods Source: Materials and methods Source: Materials and methods Source: Materials and methods Source: Materials and methods

Results: Baseline characteristics

The study initially included a total of 56 predictors. After excluding variables that exhibited a high correlation with another one, 48 predictors were finally included in this analysis (Supplemental Figures 1 and 2).

In Table 1, data (n = 2084) were divided into the IR group (HOMA-IR > 2.73, n = 848) and the non-IR group (HOMA-IR ≤ 2.73, n = 1236). The IR group exhibited a higher likelihood of including Black or Hispanic women, possessing a lower family monthly poverty level index, having a higher BMI, engaging in lower levels of physical activity, and being diagnosed with hypertension. Regarding the laboratory data, the IR group had significantly higher mean values of glucose, HDL-C, triglycerides, glycohemoglobin, and total cholesterol than the non-IR group.

The mean values of energy, sugar, cholesterol, saturated fatty acid, alcohol, sodium, and phosphorus intake were significantly different between the IR and non-IR groups. The two groups had no significant differences in the mean values of other daily nutrients.

Women in the IR group had a lower mean age at menarche and more pregnancies than those in the non-IR group. A higher proportion of women in the IR group had histories of hysterectomy or bilateral oophorectomy. However, no significant differences were observed in the number of abortions/miscarriages/stillbirths, oral contraceptive use, and hormone therapy treatment between the two groups.

Table 1.

Baseline characteristics of 2084 middle-aged nondiabetic women by HOMA-IR.

Characteristics HOMA-IR > 2.73
IR group (n = 848)
HOMA-IR ≤ 2.73
Non-IR group (n = 1236)
p-value
Demographic and behavioral variables
Age (years)54.4 (54.0–54.8)54.1 (53.7–54.4)0.1723
Race*<0.0001
Non-Hispanic White276 (66.6)521 (74.9)
Non-Hispanic Black207 (12.1)252 (9.0)
Hispanic283 (14.7)302 (8.8)
Others82 (6.5)161 (7.4)
Education*0.0985
High school or below389 (40.3)517 (34.4)
College or above459 (59.7)719 (65.6)
Marital status*0.1553
Married/living with a partner512 (65.0)753 (70.0)
Widowed/divorced/separated239 (25.4)353 (22.7)
Never married97 (9.6)130 (7.3)
Family monthly poverty level index2.6 (2.5–2.7)2.8 (2.7–2.9)0.0066
Smoking*0.3337
Current391 (42.9)576 (47.6)
Former185 (25.5)266 (23.7)
Never272 (31.5)394 (28.7)
Family history of diabetes*383 (43.2)497 (37.8)0.1260
BMI, kg/m233.3 (32.9–33.8)26.8 (26.5–27.1)<0.0001
Physical activity14.1 (12.2–16.0)18.1 (16.3–19.8)0.0029
Hypertension*470 (54.4)480 (33.4)<0.0001
Systolic BP (mmHg)126 (125–127)122 (121–123)<0.0001
Diastolic BP (mmHg)72.6 (71.9–73.3)71.2 (70.7–71.8)0.0032
Laboratory variables
Glucose (mg/dL)104.3 (103.7–104.9)96.1 (95.7–96.6)<0.0001
HDL-c (mg/dL)53.4 (52.4–54.3)64.1 (63.1–65.0)<0.0001
Triglycerides (mg/dL)135 (130–140)105 (100–110)<0.0001
Glycohemoglobin (%)5.70 (5.68–5.73)5.48 (5.47–5.50)<0.0001
Total cholesterol (mg/dL)205 (203–208)209 (207–211)0.0413
eGFR(mL/min/1.73m2)90.6 (89.4–91.8)90.8 (89.8–91.7)0.8456
Daily intake of nutrients
Energy intake (kcal/kg)22.7 (22.0–23.3)26.7 (26.0–27.4)<0.0001
Protein intake ratio (%)0.16 (0.15–0.16)0.16 (0.15–0.16)0.3799
Carbohydrate intake ratio (%)0.50 (0.49–0.51)0.49 (0.48–0.50)0.0741
Total fat intake ratio (%)0.34 (0.34-0.35)0.34 (0.33–0.34)0.1623
Total sugars (gm)106.9 (102.0–111.9)96.3 (92.9–99.7)0.0003
Dietary fiber (gm)15.9 (15.3–16.6)16.1 (15.6–16.7)0.7188
Cholesterol intake (mg)276 (262–290)249 (238–261)0.0029
Daily intake of nutrients
Saturated fatty acid (gm)23.7 (22.8–24.6)22.0 (21.2–22.7)0.0032
Alcohol (gm)5.4 (4.2–6.6)8.9 (7.7–10.1)<0.0001
Vitamin C (mg)77.1 (71.0–83.2)81.9 (77.1–86.7)0.2209
Vitamin D (mcg)4.4 (4.0–4.8)4.2 (3.9–4.6)0.4684
Vitamin B6 (mg)1.74 (1.67–1.82)1.77 (1.71–1.84)0.5562
Vitamin B12 (mcg)4.2 (4.0–4.5)4.3 (4.0–4.7)0.5827
Iron (mg)12.9 (12.5–13.4)12.9 (12.5–13.3)0.8268
Calcium (mg)849 (816–881)814 (788–841)0.1116
Zinc (mg)9.7 (9.4–10.0)9.6 (9.2–10.1)0.8370
Sodium (mg)3117 (3025–3210)2971 (2888–3054)0.0229
Phosphorus (mg)1224 (1188–1260)1176 (1147–1206)0.0434
Copper (mg)1.15 (1.11–1.19)1.21 (1.15–1.26)0.1176
Selenium (mcg)101.9 (98.5–105.3)99.1 (95.8–102.5)0.2761
Potassium (mg)2427 (2356–2498)2449 (2389–2509)0.6365
Theobromine (mg)30.5 (26.0–35.1)34.9 (31.1–38.8)0.1504
Caffeine (mg)160 (145–175)162 (151–173)0.8144
Reproductive health
Age at menarche (years)12.5 (12.1–12.9)12.9 (12.7–13.1)0.0437
Number of pregnancies2.7 (2.5–2.8)2.5 (2.3–2.6)0.0211
Number of abortions/miscarriage/stillbirths0.71 (0.64–0.79)0.66 (0.60–0.72)0.2561
Birth control pills*531 (64.1)766 (67.6)0.1872
Hysterectomy*215 (25.7)218 (17.1)0.0286
Bilateral oophorectomy*118 (14.3)102 (8.1)0.0453
Female hormones*161 (18.9)229 (21.6)0.3432

Note: *represents frequency (weighted proportion, %); other variables were characterized by weighted mean (95% confidence interval). The t-test or the Rao-Scott chi-square test determined the p-value to compare the two IR groups.

Source: Baseline characteristics Source: Baseline characteristics Source: Baseline characteristics Source: Baseline characteristics Source: Baseline characteristics

Comparing IR prediction models with 48 predictors

Results: Comparing IR prediction models with 48 predictors

We randomly assigned 1667 of 2084 nondiabetic women to the training dataset and 417 to the testing dataset. Table 2 summarizes the performance metrics results of training and testing datasets for XGBoosting, RF, GBM, and DT with 48 predictors. In the training dataset, the AUC of ROC for all models exceeded 0.85, with the maximum AUC value of 0.93 achieved by the XGBoosting model. The XGBoosting algorithm also exhibited superior performance in terms of accuracy (0.86), specificity (0.80), PPV (0.87), NPV (0.85), and F1 score (0.88), followed by the RF, GBM, and DT models.

Table 2.

The performance metrics of different models with 48 predictors.

XGBoost RF GBM DT
Training dataset
AUC of ROC0.930.910.900.87
Accuracy0.860.820.820.79
Sensitivity0.900.910.870.87
Specificity0.800.680.750.68
PPV0.870.800.840.80
NPV0.850.840.800.79
F1 score0.880.850.850.83
Testing dataset
AUC of ROC0.860.850.850.80
Accuracy0.790.770.780.73
Sensitivity0.860.900.850.84
Specificity0.690.580.680.56
PPV0.800.760.800.74
NPV0.770.800.760.71
F1 score0.830.820.820.79

Note: XGBoost = Extreme gradient boosting, RF = Random forest, GBM = Gradient boosting machine, DT = Decision tree, AUC of ROC = Area under receiver operating characteristic curve, PPV = Positive predictive value, NPV = Negative predictive value.

Figure 1.

ROC curves for predicting insulin resistance from four different models with 48 predictors. In the training and testing datasets with 48 predictors, the area under curve (AUC) of receiver operating characteristic (ROC) for all four models was higher in XGBoosting, followed by random forest, gradient boosting, and decision tree.

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

In the testing dataset, all AUCs of ROC were equal to or greater than 0.80, the maximum being 0.86 for XGBoosting. In addition, XGBoosting possessed greater accuracy (0.79), specificity (0.69), PPV (0.80), and F1 score (0.83). The RF, GBM, and DT models had the subsequent performance metrics. Figure 1 also illustrates the ROC curves for predicting IR from the four models with 48 predictors.

Source: Comparing IR prediction models with 48 predictors Source: Comparing IR prediction models with 48 predictors Source: Comparing IR prediction models with 48 predictors Source: Comparing IR prediction models with 48 predictors

Relative importance of 48 predictors in the XGBoosting model

Results: Relative importance of 48 predictors in the XGBoosting model

Figure 2 depicts the relatively important features of the XGBoosting model, with relative importance values of 0.3007, 0.2082, 0.3884, and 0.1022 for demographic and behavioral factors, laboratory variables, daily intake of nutrients, and reproductive health variables, respectively. Among the 48 variables, BMI (0.1235) had the greatest influence on IR, followed by glucose (0.0775), HDL-C (0.0384), glycohemoglobin (0.0347), and triglycerides (0.0273).

Figure 2.

Feature importance of XGBoosting model with 48 predictors. In the XGBoosting model with 48 predictors, the relative importance values of demographic and behavioral factors, laboratory variables, daily intake of nutrients, and reproductive health variables were 0.3007, 0.2082, 0.3884, and 0.1022, respectively.

Figure image at the original source — open the original paper. This file is not included in this text import.
Source: Relative importance of 48 predictors in the XGBoosting model Source: Relative importance of 48 predictors in the XGBoosting model

Comparing IR prediction models with five predictors

Results: Comparing IR prediction models with five predictors

Based on the above feature importance analysis of the 48 predictors, we attempted to use the top five predictors to develop models. Table 3 presents the performance metrics for the four machine learning algorithms in the training and testing datasets with five predictors. With the top five predictors, the AUC of ROC for all four models stayed at or above 0.87 in the training dataset. The XGBoosting model got a relatively high AUC value of 0.90. In terms of accuracy (0.82), sensitivity (0.87), specificity (0.75), PPV (0.83), NPV (0.79), and F1 score (0.85), the XGBoosting algorithm outperformed the other three algorithms.

In the testing dataset, all AUCs of ROC were equal to or greater than 0.83, with the AUC of XGBoosting being the greatest at 0.86. Figure 3 illustrates the ROC curves for predicting IR from the four models with the five predictors. Similar results are shown by the sensitivity analysis for the models' performance metrics using the first five predictors without using the synthetic minority oversampling technique (Supplemental Table 1).

Table 3.

Performance metrics of different models with the first five predictors.

XGBoost RF GBM DT
Training dataset
AUC of ROC0.900.890.880.87
Accuracy0.820.810.790.80
Sensitivity0.870.860.860.85
Specificity0.750.730.700.72
PPV0.830.820.810.82
NPV0.790.780.770.76
F1-score0.850.840.830.83
Testing dataset
AUC of ROC0.860.850.850.83
Accuracy0.780.760.770.76
Sensitivity0.850.840.860.83
Specificity0.680.660.650.65
PPV0.790.780.780.77
NPV0.750.740.760.73
F1-score0.820.810.820.80

Note: XGBoost = Extreme gradient boosting, RF = Random forest, GBM = Gradient boosting machine, DT = Decision tree, AUC of ROC = Area under receiver operating characteristic curve, PPV = Positive predictive value, NPV = Negative predictive value.

Figure 3.

ROC curves for predicting insulin resistance from four models with the top five predictors. In the training and testing datasets with the top five predictors, the area under curve (AUC) of receiver operating characteristic (ROC) for all four models decreased from XGBoosting to random forest, gradient boosting, and decision tree, in descending order.

Figure image at the original source — open the original paper. This file is not included in this text import.
Source: Comparing IR prediction models with five predictors Source: Comparing IR prediction models with five predictors Source: Comparing IR prediction models with five predictors

Relative importance of the five predictors in four models

Results: Relative importance of the five predictors in four models

The top five predictors in the XGBoosting, RF, and GBM models were BMI, glucose, HDL-C, glycohemoglobin, and triglycerides. However, the DT model included the variable of daily sugar intake instead of glycohemoglobin. Of the five predictors, BMI, glucose, and HDL-C were the top three predictors in all four models. BMI's relative importance was 0.42, 0.47, 0.54, and 0.54 in the XGBoosting, RF, GBM, and DT models, respectively. In the four models, the corresponding relative importance of glucose was 0.26, 0.26, 0.28, and 0.32, while the corresponding relative value of HDL-C was 0.12, 0.12, 0.08, and 0.06 (Figure 4).

The sensitivity analysis for the models' feature importance with the first five predictors produces similar results without using the synthetic minority oversampling technique (Supplemental Figure 3).

Figure 4.

Feature importance of four machine learning models with five predictors. The top five predictors of the XGBoosting, RF, and GBM models were all BMI, glucose, HDL-C, glycohemoglobin, and triglycerides, whereas one of the DT model's predictors was daily sugar intake instead of glycohemoglobin. All four models identified BMI, glucose, and HDL-C as the top three predictors.

Figure image at the original source — open the original paper. This file is not included in this text import.
Source: Relative importance of the five predictors in four models Source: Relative importance of the five predictors in four models

Discussion

We found that the XGBoosting model was the best of the four machine learning algorithms for predicting IR in middle-aged nondiabetic women. The AUC of the ROC curve was 0.90 in the training dataset and 0.86 in the testing dataset using the five predictors of BMI, glucose, HDL-C, glycohemoglobin, and triglycerides. Using the SHAP framework, we also determined the threshold values of the five predictors to predict IR.

The findings of our investigation align with those of prior studies [12]–[14], demonstrating that the XGBoosting algorithm was the optimal model for IR prediction. A study based on the NHANES from 1999 to 2012 reported that the XGBoosting model had a higher AUC of ROC than other machine learning algorithms (RF, logistic regression, and deep neural networks) for predicting IR in 1229 adults with chronic kidney disease [13]. Similarly, another Chinese study recognized XGBoosting as the optimal model with a relatively high AUC value (0.85) out of five machine-learning techniques for predicting IR in 503 children aged 6–12 [14].

XGBoosting is frequently recognized as the optimal model for predicting health conditions due to its ability to capture complex, non-linear relationships between features and the presence of a disease. This makes it well-suited for modeling intricate biological and clinical interactions [39]. Moreover, XGBoosting performs outstanding tasks requiring high accuracy [40]. It provides a range of hyperparameters that can be adjusted to suit the individual attributes of disease datasets. By adjusting the parameters, researchers can refine the model to improve its predictive performance [41].

Previous studies used different numbers of top features, ranging from 5 to 20, to predict diseases of interest [12],[35]. However, we observed that when employing the top five predictors to discriminate IR, the models' performance metrics did not significantly decline compared to the 48 predictors. As an illustration, the AUC for the XGBoosting model in the training dataset decreased from 0.93 to 0.90 when the number of predictors was reduced from 48 to 5.

In addition, the three models XGBoosting, RF, and GBM all identified BMI, glucose, HDL-C, glycohemoglobin, and triglycerides as the top five predictors, and all four models consistently recognized BMI, glucose, and HDL-C as the three most influential predictors. These results exhibited both congruence and divergence in comparison to prior research findings. Multiple prior research has demonstrated significant associations of BMI, glucose, HDL-C, and triglyceride with IR and their potential utility in the IR prediction models [42],[43]. Notably, some studies reported the critical role of blood pressure in predicting IR [44],[45], but neither diastolic nor systolic blood pressure appeared in the first five predictors of our four models.

Based on the results depicted in Figure 2, hypertension ranked eighth among the 48 predictors in terms of significance in predicting IR, whereas diastolic and systolic blood ranked outside of the top twenty.

The top three features of the five predictors explained approximately 80% in XGBoosting, 85% in RF, 90% in GBM, and 92% in DT, implying substantial effects of BMI, glucose, and HDL-C on IR (Figure 4). BMI scored unexpectedly highly, despite not being one of the parameters used in calculating HOMA-IR. In alignment with the present study, prior research has documented a robust association between BMI and IR or metabolic syndrome [46],[47]. As BMI increases, the body accumulates more fat, particularly in the abdominal region, which increases the likelihood of insulin resistance [48].

Besides, high BMI may induce a state of chronic low-grade inflammation. Inflammatory signals emitted by adipose tissue can interfere with insulin signaling, decreasing insulin sensitivity in cells [49]. Additionally, high BMI may disrupt the balance of adipokines, which can contribute to IR [50].

The dependent plot shows that the threshold values for predicting IR in the XGBoosting model were 29 kg/m2, 100 mg/dL, 54.5 mg/dL, 89 mg/dL, and 5.6% for BMI, glucose, HDL-C, triglycerides, and glycohemoglobin, respectively. These findings are both consistent with and distinct from those of previous research. It is well-known that a glucose level of 100 mg/dL serves as a diagnostic criterion for metabolic syndrome [51], while glucose levels ranging from 100 to 125 mg/dL and/or glycohemoglobin levels of 5.7%–6.4% can be utilized for the diagnosis of pre-diabetes [52].

However, the BMI threshold for IR can vary depending on the study and the population under consideration. A study indicated that a BMI ≥ 25 kg/m2 is a risk factor for IR [53], whereas another study found that a BMI ≥ 27 kg/m2 is optimal for identifying metabolic syndrome in adult populations [47]. In addition, a noteworthy disparity is that the cutoff level for triglycerides in diagnosing metabolic syndromes is 150 mg/dL [54]. In comparison, our results present the threshold value of 89 mg/dL for IR.

These variations may be attributable to differences in the study design and the characteristics of populations, but additional research is necessary to validate our findings.

The SHAP framework provides additional insight into how individual features contribute to the model's predictions, with BMI (strongly), glucose (strongly), glycohemoglobin (moderately), and triglycerides (moderately) having positive impacts on IR, and HDL-C indicating a medium negative impact. The decision plot depicting correct classification and misclassification provides additional evidence of these predictors' significant influence on IR (Supplemental Figure 4). Furthermore, our predictive model broadly agrees with earlier findings [12],[13],[55]. As per the findings from the National Health and Nutrition Examination Survey (2007–09) conducted in South Korea, the XGBoosting model in 8842 individuals aged 40–74 years old indicated that glucose had robust positive effects on IR, and glycohemoglobin (positive) and HDL-C (negative) had moderate effects on IR [12].

Moreover, these predictors are clinically commonplace and simple to measure, suggesting significant promise for middle-aged women's IR screening and prediction.

Despite the excellent accuracy and precision achieved by the XGBoosting model with the top five predictors in predicting IR, it is imperative to acknowledge that the influence of other factors, such as behavioral, nutritional, and reproductive health variables, cannot be disregarded. For instance, energy intake was not chosen as one of the top five predictors for the prediction models. Still, it had the highest feature importance among the variables of daily nutrient consumption. These characteristics can affect BMI, glucose levels, and other laboratory indicators [56]–[58].

Consequently, these anthropometric and laboratory indicators can be employed more directly to identify IR.

This study's strength was its novelty, specifically the inaugural investigation into utilizing machine learning to develop IR predictive models in middle-aged nondiabetic women. Furthermore, the machine learning models utilized in this work incorporated an extensive range of variables, encompassing demographic factors, behavioral lifestyles, laboratory data, and daily intake of macronutrients and micronutrients and reproductive profiles. Besides, the SHAP framework can better explain the impact of feature importance on IR. The clinical significance of our study was that our machine learning–based predictive model could potentially provide women with warnings using routine clinical measurements.

Some limitations existed in our investigation. The data was from a cross-sectional survey, so the findings cannot be interpreted as a cause-and-effect relationship. Demographic, behavioral lifestyle, and reproductive health variables were acquired by self-reported questionnaires, which could potentially be influenced by recall bias. In addition, the lab test was not administered to all NHANES participants, resulting in a sample size of 2084. Increasing the sample size could improve the model's performance [59]. An increased volume of data may enable the model to identify latent patterns more precisely, thereby enhancing its capacity to extrapolate to unobserved data [60].

The presence of IR was evaluated using HOMA-IR rather than hyperinsulinemic-euglycemic clamps. Nevertheless, we posit that our predictive model in middle-aged nondiabetic women can explain IR based on these characteristics in the current dataset.

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

The study initially included a total of 56 predictors. After excluding variables that exhibited a high correlation with another one, 48 predictors were finally included in this analysis (Supplemental Figures 1 and 2).

In Table 1, data (n = 2084) were divided into the IR group (HOMA-IR > 2.73, n = 848) and the non-IR group (HOMA-IR ≤ 2.73, n = 1236). The IR group exhibited a higher likelihood of including Black or Hispanic women, possessing a lower family monthly poverty level index, having a higher BMI, engaging in lower levels of physical activity, and being diagnosed with hypertension. Regarding the laboratory data, the IR group had significantly higher mean values of glucose, HDL-C, triglycerides, glycohemoglobin, and total cholesterol than the non-IR group.

The mean values of energy, sugar, cholesterol, saturated fatty acid, alcohol, sodium, and phosphorus intake were significantly different between the IR and non-IR groups. The two groups had no significant differences in the mean values of other daily nutrients.

Women in the IR group had a lower mean age at menarche and more pregnancies than those in the non-IR group. A higher proportion of women in the IR group had histories of hysterectomy or bilateral oophorectomy. However, no significant differences were observed in the number of abortions/miscarriages/stillbirths, oral contraceptive use, and hormone therapy treatment between the two groups.

Table 1.

Baseline characteristics of 2084 middle-aged nondiabetic women by HOMA-IR.

Characteristics HOMA-IR > 2.73
IR group (n = 848)
HOMA-IR ≤ 2.73
Non-IR group (n = 1236)
p-value
Demographic and behavioral variables
Age (years)54.4 (54.0–54.8)54.1 (53.7–54.4)0.1723
Race*<0.0001
Non-Hispanic White276 (66.6)521 (74.9)
Non-Hispanic Black207 (12.1)252 (9.0)
Hispanic283 (14.7)302 (8.8)
Others82 (6.5)161 (7.4)
Education*0.0985
High school or below389 (40.3)517 (34.4)
College or above459 (59.7)719 (65.6)
Marital status*0.1553
Married/living with a partner512 (65.0)753 (70.0)
Widowed/divorced/separated239 (25.4)353 (22.7)
Never married97 (9.6)130 (7.3)
Family monthly poverty level index2.6 (2.5–2.7)2.8 (2.7–2.9)0.0066
Smoking*0.3337
Current391 (42.9)576 (47.6)
Former185 (25.5)266 (23.7)
Never272 (31.5)394 (28.7)
Family history of diabetes*383 (43.2)497 (37.8)0.1260
BMI, kg/m233.3 (32.9–33.8)26.8 (26.5–27.1)<0.0001
Physical activity14.1 (12.2–16.0)18.1 (16.3–19.8)0.0029
Hypertension*470 (54.4)480 (33.4)<0.0001
Systolic BP (mmHg)126 (125–127)122 (121–123)<0.0001
Diastolic BP (mmHg)72.6 (71.9–73.3)71.2 (70.7–71.8)0.0032
Laboratory variables
Glucose (mg/dL)104.3 (103.7–104.9)96.1 (95.7–96.6)<0.0001
HDL-c (mg/dL)53.4 (52.4–54.3)64.1 (63.1–65.0)<0.0001
Triglycerides (mg/dL)135 (130–140)105 (100–110)<0.0001
Glycohemoglobin (%)5.70 (5.68–5.73)5.48 (5.47–5.50)<0.0001
Total cholesterol (mg/dL)205 (203–208)209 (207–211)0.0413
eGFR(mL/min/1.73m2)90.6 (89.4–91.8)90.8 (89.8–91.7)0.8456
Daily intake of nutrients
Energy intake (kcal/kg)22.7 (22.0–23.3)26.7 (26.0–27.4)<0.0001
Protein intake ratio (%)0.16 (0.15–0.16)0.16 (0.15–0.16)0.3799
Carbohydrate intake ratio (%)0.50 (0.49–0.51)0.49 (0.48–0.50)0.0741
Total fat intake ratio (%)0.34 (0.34-0.35)0.34 (0.33–0.34)0.1623
Total sugars (gm)106.9 (102.0–111.9)96.3 (92.9–99.7)0.0003
Dietary fiber (gm)15.9 (15.3–16.6)16.1 (15.6–16.7)0.7188
Cholesterol intake (mg)276 (262–290)249 (238–261)0.0029
Daily intake of nutrients
Saturated fatty acid (gm)23.7 (22.8–24.6)22.0 (21.2–22.7)0.0032
Alcohol (gm)5.4 (4.2–6.6)8.9 (7.7–10.1)<0.0001
Vitamin C (mg)77.1 (71.0–83.2)81.9 (77.1–86.7)0.2209
Vitamin D (mcg)4.4 (4.0–4.8)4.2 (3.9–4.6)0.4684
Vitamin B6 (mg)1.74 (1.67–1.82)1.77 (1.71–1.84)0.5562
Vitamin B12 (mcg)4.2 (4.0–4.5)4.3 (4.0–4.7)0.5827
Iron (mg)12.9 (12.5–13.4)12.9 (12.5–13.3)0.8268
Calcium (mg)849 (816–881)814 (788–841)0.1116
Zinc (mg)9.7 (9.4–10.0)9.6 (9.2–10.1)0.8370
Sodium (mg)3117 (3025–3210)2971 (2888–3054)0.0229
Phosphorus (mg)1224 (1188–1260)1176 (1147–1206)0.0434
Copper (mg)1.15 (1.11–1.19)1.21 (1.15–1.26)0.1176
Selenium (mcg)101.9 (98.5–105.3)99.1 (95.8–102.5)0.2761
Potassium (mg)2427 (2356–2498)2449 (2389–2509)0.6365
Theobromine (mg)30.5 (26.0–35.1)34.9 (31.1–38.8)0.1504
Caffeine (mg)160 (145–175)162 (151–173)0.8144
Reproductive health
Age at menarche (years)12.5 (12.1–12.9)12.9 (12.7–13.1)0.0437
Number of pregnancies2.7 (2.5–2.8)2.5 (2.3–2.6)0.0211
Number of abortions/miscarriage/stillbirths0.71 (0.64–0.79)0.66 (0.60–0.72)0.2561
Birth control pills*531 (64.1)766 (67.6)0.1872
Hysterectomy*215 (25.7)218 (17.1)0.0286
Bilateral oophorectomy*118 (14.3)102 (8.1)0.0453
Female hormones*161 (18.9)229 (21.6)0.3432

Note: *represents frequency (weighted proportion, %); other variables were characterized by weighted mean (95% confidence interval). The t-test or the Rao-Scott chi-square test determined the p-value to compare the two IR groups.

3.2.

Comparing IR prediction models with 48 predictors

We randomly assigned 1667 of 2084 nondiabetic women to the training dataset and 417 to the testing dataset. Table 2 summarizes the performance metrics results of training and testing datasets for XGBoosting, RF, GBM, and DT with 48 predictors. In the training dataset, the AUC of ROC for all models exceeded 0.85, with the maximum AUC value of 0.93 achieved by the XGBoosting model. The XGBoosting algorithm also exhibited superior performance in terms of accuracy (0.86), specificity (0.80), PPV (0.87), NPV (0.85), and F1 score (0.88), followed by the RF, GBM, and DT models.

Table 2.

The performance metrics of different models with 48 predictors.

XGBoost RF GBM DT
Training dataset
AUC of ROC0.930.910.900.87
Accuracy0.860.820.820.79
Sensitivity0.900.910.870.87
Specificity0.800.680.750.68
PPV0.870.800.840.80
NPV0.850.840.800.79
F1 score0.880.850.850.83
Testing dataset
AUC of ROC0.860.850.850.80
Accuracy0.790.770.780.73
Sensitivity0.860.900.850.84
Specificity0.690.580.680.56
PPV0.800.760.800.74
NPV0.770.800.760.71
F1 score0.830.820.820.79

Note: XGBoost = Extreme gradient boosting, RF = Random forest, GBM = Gradient boosting machine, DT = Decision tree, AUC of ROC = Area under receiver operating characteristic curve, PPV = Positive predictive value, NPV = Negative predictive value.

Figure 1.

ROC curves for predicting insulin resistance from four different models with 48 predictors. In the training and testing datasets with 48 predictors, the area under curve (AUC) of receiver operating characteristic (ROC) for all four models was higher in XGBoosting, followed by random forest, gradient boosting, and decision tree.

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

In the testing dataset, all AUCs of ROC were equal to or greater than 0.80, the maximum being 0.86 for XGBoosting. In addition, XGBoosting possessed greater accuracy (0.79), specificity (0.69), PPV (0.80), and F1 score (0.83). The RF, GBM, and DT models had the subsequent performance metrics. Figure 1 also illustrates the ROC curves for predicting IR from the four models with 48 predictors.

3.3.

Relative importance of 48 predictors in the XGBoosting model

Figure 2 depicts the relatively important features of the XGBoosting model, with relative importance values of 0.3007, 0.2082, 0.3884, and 0.1022 for demographic and behavioral factors, laboratory variables, daily intake of nutrients, and reproductive health variables, respectively. Among the 48 variables, BMI (0.1235) had the greatest influence on IR, followed by glucose (0.0775), HDL-C (0.0384), glycohemoglobin (0.0347), and triglycerides (0.0273).

Figure 2.

Feature importance of XGBoosting model with 48 predictors. In the XGBoosting model with 48 predictors, the relative importance values of demographic and behavioral factors, laboratory variables, daily intake of nutrients, and reproductive health variables were 0.3007, 0.2082, 0.3884, and 0.1022, respectively.

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

Comparing IR prediction models with five predictors

Based on the above feature importance analysis of the 48 predictors, we attempted to use the top five predictors to develop models. Table 3 presents the performance metrics for the four machine learning algorithms in the training and testing datasets with five predictors. With the top five predictors, the AUC of ROC for all four models stayed at or above 0.87 in the training dataset. The XGBoosting model got a relatively high AUC value of 0.90. In terms of accuracy (0.82), sensitivity (0.87), specificity (0.75), PPV (0.83), NPV (0.79), and F1 score (0.85), the XGBoosting algorithm outperformed the other three algorithms.

In the testing dataset, all AUCs of ROC were equal to or greater than 0.83, with the AUC of XGBoosting being the greatest at 0.86. Figure 3 illustrates the ROC curves for predicting IR from the four models with the five predictors. Similar results are shown by the sensitivity analysis for the models' performance metrics using the first five predictors without using the synthetic minority oversampling technique (Supplemental Table 1).

Table 3.

Performance metrics of different models with the first five predictors.

XGBoost RF GBM DT
Training dataset
AUC of ROC0.900.890.880.87
Accuracy0.820.810.790.80
Sensitivity0.870.860.860.85
Specificity0.750.730.700.72
PPV0.830.820.810.82
NPV0.790.780.770.76
F1-score0.850.840.830.83
Testing dataset
AUC of ROC0.860.850.850.83
Accuracy0.780.760.770.76
Sensitivity0.850.840.860.83
Specificity0.680.660.650.65
PPV0.790.780.780.77
NPV0.750.740.760.73
F1-score0.820.810.820.80

Note: XGBoost = Extreme gradient boosting, RF = Random forest, GBM = Gradient boosting machine, DT = Decision tree, AUC of ROC = Area under receiver operating characteristic curve, PPV = Positive predictive value, NPV = Negative predictive value.

Figure 3.

ROC curves for predicting insulin resistance from four models with the top five predictors. In the training and testing datasets with the top five predictors, the area under curve (AUC) of receiver operating characteristic (ROC) for all four models decreased from XGBoosting to random forest, gradient boosting, and decision tree, in descending order.

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

Relative importance of the five predictors in four models

The top five predictors in the XGBoosting, RF, and GBM models were BMI, glucose, HDL-C, glycohemoglobin, and triglycerides. However, the DT model included the variable of daily sugar intake instead of glycohemoglobin. Of the five predictors, BMI, glucose, and HDL-C were the top three predictors in all four models. BMI's relative importance was 0.42, 0.47, 0.54, and 0.54 in the XGBoosting, RF, GBM, and DT models, respectively. In the four models, the corresponding relative importance of glucose was 0.26, 0.26, 0.28, and 0.32, while the corresponding relative value of HDL-C was 0.12, 0.12, 0.08, and 0.06 (Figure 4).

The sensitivity analysis for the models' feature importance with the first five predictors produces similar results without using the synthetic minority oversampling technique (Supplemental Figure 3).

Figure 4.

Feature importance of four machine learning models with five predictors. The top five predictors of the XGBoosting, RF, and GBM models were all BMI, glucose, HDL-C, glycohemoglobin, and triglycerides, whereas one of the DT model's predictors was daily sugar intake instead of glycohemoglobin. All four models identified BMI, glucose, and HDL-C as the top three predictors.

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

SHAP value of the five predictors in the XGBoosting model

Figure 5 indicates the relationship between the XGBoosting model's five predictors and their SHAP values. The SHAP values of BMI, glucose, glycohemoglobin, and triglycerides increase as their levels rise. However, as HDL-C increases, its SHAP value decreases. The threshold values for predicting IR were identified to be 29 kg/m2, 100 mg/dL, 54.5 mg/dL, 89 mg/dL, and 5.6% for BMI, glucose, HDL-C, triglycerides, and glycohemoglobin, respectively.

Figure 5.

The dependence plot of the five predictors in the XGBoosting model. When the SHAP value is equal to 0, it signifies that the corresponding feature's value does not exert a statistically significant influence on the predictive outcome of the model. The cutoff values for BMI, glucose, HDL-C, triglycerides, and glycohemoglobin are 29 kg/m2, 100 mg/dL, 54.5 mg/dL, 89 mg/dL, and 5.6%, respectively.

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

In Figure 6, the SHAP values for the XGBoosting algorithm reveal the associations between the five predictors and IR, including BMI (strongly positive impact on IR prediction), fasting glucose (strongly positive), HDL-C (medium negative), triglycerides (medium positive), and glycohemoglobin (medium positive). Additionally, the SHAP decision plot further enhances the visualization of the importance and direction of these predictors' contribution, as depicted in Supplemental Figure 4.

Figure 6.

SHAP value of the five predictors in the XGBoosting model. The SHAP values for the XGBoosting model indicate a positive or negative relationship with IR. Specifically, BMI has a strong positive effect on IR. Glucose, triglycerides, and glycohemoglobin all have moderately positive impacts on IR, whereas HDL-C has a medium negative impact.

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

Conclusions

In this study, we used four machine learning algorithms, namely XGBoosting, random forest, gradient boosting, and decision tree, to identify IR in 2084 middle-aged women who do not have diabetes. Our analysis involved 48 variables encompassing demographic and behavioral factors, laboratory variables, daily nutrient intake, and reproductive health variables. The XGBoost algorithm demonstrated a relatively high AUC of ROC, followed by the RF, GBM, and DT models. When modeled with the top five predictors, the XGBoosting model's performance metrics remain optimal, with BMI (strongly positive impact), fasting glucose (strongly positive impact), HDL-C (medium negative impact), triglycerides (medium positive impact), and glycohemoglobin (medium positive impact) being associated with IR.

Source: Conclusions
Authors’ abstract

Objective

We employed machine learning algorithms to discriminate insulin resistance (IR) in middle-aged nondiabetic women.

Methods

The data was from the National Health and Nutrition Examination Survey (2007–2018). The study subjects were 2084 nondiabetic women aged 45–64. The analysis included 48 predictors. We randomly divided the data into training (n = 1667) and testing (n = 417) datasets. Four machine learning techniques were employed to discriminate IR: extreme gradient boosting (XGBoosting), random forest (RF), gradient boosting machine (GBM), and decision tree (DT). The area under the curve (AUC) of receiver operating characteristic (ROC), accuracy, sensitivity, specificity, positive predictive value, negative predictive value, and F1 score were compared as performance metrics to select the optimal technique.

Results

The XGBoosting algorithm achieved a relatively high AUC of 0.93 in the training dataset and 0.86 in the testing dataset to discriminate IR using 48 predictors and was followed by the RF, GBM, and DT models. After selecting the top five predictors to build models, the XGBoost algorithm with the AUC of 0.90 (training dataset) and 0.86 (testing dataset) remained the optimal prediction model. The SHapley Additive exPlanations (SHAP) values revealed the associations between the five predictors and IR, namely BMI (strongly positive impact on IR), fasting glucose (strongly positive), HDL-C (medium negative), triglycerides (medium positive), and glycohemoglobin (medium positive).

The threshold values for identifying IR were 29 kg/m2, 100 mg/dL, 54.5 mg/dL, 89 mg/dL, and 5.6% for BMI, glucose, HDL-C, triglycerides, and glycohemoglobin, respectively.

Conclusion

The XGBoosting algorithm demonstrated superior performance metrics for discriminating IR in middle-aged nondiabetic women, with BMI, glucose, HDL-C, glycohemoglobin, and triglycerides as the top five predictors.

Read the full paper
1.

Introduction

Insulin resistance (IR) is a physiological state characterized by diminished responsiveness to insulin signaling in multiple tissues, including skeletal muscles, adipose tissues, and the liver [1]. This state necessitates increasing insulin secretion to maintain normal blood glucose levels [2],[3]. It is a prevalent underlying cause of metabolic syndrome, characterized by abdominal obesity, hyperlipidemia, hyperglycemia, and hypertension [4]. IR has been identified as a potential indicator for the early identification of metabolic syndrome, type 2 diabetes, and cardiovascular illnesses [5],[6].

So, identifying IR is important in safeguarding individuals' long-term health.

IR can be directly measured using a hyperinsulinemic-euglycemic clamp, but this method has drawbacks such as invasiveness, subject discomfort, and technical challenges [7]. The homeostasis model assessment of insulin resistance (HOMA-IR) is a widely used indicator for indirectly measuring IR [8]. However, fasting insulin is not typically included in routine blood tests, which could impede the identification of IR when insulin is employed to calculate HOMA-IR [9]. Straightforward determination of IR is still needed for regular screening.

In addition, using machine learning techniques for disease detection and prediction has experienced a recent surge in popularity [10]. This application holds promise in enhancing our understanding of how features are associated with health conditions [11]. Although some characteristics contributing to IR have been identified [12]–[14], there is currently a lack of an appropriate model to predict IR accurately, specifically in women.

Middle-aged women are generally at a higher risk of developing IR due to age-related changes in metabolism and hormonal fluctuations [15]. The menopausal transition is associated with hormonal changes impacting insulin sensitivity [16]. Identifying and managing IR during the pivotal stage of middle age can help mitigate the risk of metabolic disorders and cardiovascular disease in later life [17]. Although some researchers attempted to predict IR using machine learning methods, their models did not account for reproductive health variables [12],[13].

Specifically targeting the female population can allow for the addition of reproductive health factors into models. Developing predictive models tailored for middle-aged women can improve risk assessment and personalized medicines and address potential disparities [18].

Therefore, we aimed to use machine learning algorithms to identify the optimal IR prediction model from demographic and behavioral factors, laboratory variables, daily nutrient intake, and reproductive health variables in middle-aged, nondiabetic American women based on the National Health and Nutrition Examination Survey (NHANES). We hypothesized that the predictors identified by machine learning methods would provide a more comprehensive metabolic health evaluation than HOMA-IR alone. Additionally, if the IR prediction model is accessible, we can use it to identify women with IR despite the absence of HOMA-IR values.

By incorporating multiple biomarkers and clinical indicators, a more nuanced and holistic understanding of IR can be acquired, resulting in focused interventions and preventive strategies.

2.

Materials and methods

2.1.

Data source

Data was obtained from the NHANES from 2007 to 2018. The NHANES program is a cross-sectional and periodic health-related initiative in the United States administered by the National Center for Health Statistics (NCHS) of the Centers for Disease Control and Prevention. The ongoing survey and exam assess community-dwelling individuals' health and nutritional status using anthropometric measurements, health and nutrition questionnaires, and laboratory tests. The data is freely accessible to the public. The NCHS research ethics review board approved the NHANES protocol, and each participant signed informed consent forms.

To obtain further details regarding the ethical approval of this research, please access: https://www.cdc.gov/nchs/nhanes/irba98.htm.

We analyzed middle-aged female NHANES participants from the 2007–2018 survey cycles that included the same variables of interest. This study defines the middle age as 45–64 years old [19]. Participants were excluded from analyses if they were male, younger than 45 years old or older than 64 years old, lacked lab testing data such as glucose, insulin, and triglycerides, or did not have information on daily nutrient intake. We also excluded individuals with diabetes mellitus or cancer, as previous research has indicated that these two health conditions could affect IR [20].

Consequently, the ultimate sample size was 2084.

2.2.

Insulin resistance

IR was evaluated using the homeostasis model assessment of IR (HOMA-IR), which is widely employed as the predominant approach for determining IR using the formula: fasting insulin (µU/mL) × fasting glucose (mg/dL)/405 [21]. A HOMA-IR value exceeding 2.73 has previously been shown to indicate the presence of IR in nondiabetic American adults [22]. Therefore, we set the IR cutoff value for nondiabetic middle-aged women at HOMA-IR values greater than 2.73.

2.3.

Predictors

The predictors included demographic and behavioral factors, laboratory data, daily nutritional intake, and reproductive health variables. Demographic and behavioral factors encompassed age, race (non-Hispanic white, non-Hispanic Black, Hispanic, and others), education (high school or below, and college or above), marital status (married/living with a partner, widowed/divorced/separated, and never married), family monthly poverty level index, smoking (current, former, and never), family history of diabetes, body mass index (BMI, kg/m2), physical activity, hypertension, systolic and diastolic blood pressure (mmHg). We defined hypertension based on the responses to the questions “Has a physician ever informed you that you have high blood pressure?” and “Are you currently taking medication for hypertension?”, systolic blood pressure ≥140 mmHg, or diastolic blood pressure ≥90 mmHg.

Using metabolic equivalent scores, we measured physical activity [23].

Laboratory data included fasting glucose (mg/dL), high-density lipoprotein cholesterol (HDL-C) (mg/dL), triglyceride (mg/dL), glycohemoglobin (%), total cholesterol (mg/dL), and estimated glomerular filtration rate (eGFR, mL/min/1.73m2). The laboratory data-gathering procedures and tests have been documented in earlier publications [24]. We used the chronic kidney disease epidemiology creatinine equation to estimate eGFR [25].

We gathered the following information regarding daily nutritional intake: energy intake (kcal/kg), protein intake ratio (%), carbohydrate intake ratio (%), total fat intake ratio (%), total sugars (gm), dietary fiber (gm), cholesterol intake (mg), folate intake (mcg), total saturated and monounsaturated fatty acid (gm), alcohol (gm), vitamin C (mg), vitamin D (mcg), vitamin B6 (mg), vitamin B12 (mcg), caffeine (mg), iron (mg), calcium (mg), zinc (mg), sodium (mg), phosphorus (mg), magnesium (mg), copper (mg), selenium (mcg), potassium (mg), and theobromine (mg).

Reproductive variables included age at menarche, number of pregnancies, number of abortions/miscarriages/stillbirths, birth control pills, hysterectomy, bilateral oophorectomy, and female hormones. Birth control pills, hysterectomy, bilateral oophorectomy, and female hormones were categorical variables (yes and no), while others were continuous.

2.4.

Model building process

Regarding the model construction procedure, the study subjects were first randomly separated into the training (80%) and testing (20%) datasets [26]. Next, one-hot encoding was used to encode categorical variables [27], and min-max scaling was used to standardize continuous variables [28]. This allowed the variable values to be compared across dimensions by rescaling them from 0 to 1. We utilized the Synthetic Minority Oversampling Technique in the training dataset to overcome the issue of unbalanced data. Creating synthetic samples of the minority class is a helpful approach, which improves its representation and boosts the model's ability to learn from data [29].

To examine the interrelationships among the predictors, we performed Spearman correlation analyses. If the correlation coefficient was greater than 0.75, one of two variables was removed to ensure the robustness of the model [30]. Among the 56 predictors, the following pairings of variables had correlation coefficients greater than 0.75: magnesium and potassium (0.81), folate and iron (0.76), monounsaturated fatty acid and saturated fatty acids (0.81), monounsaturated fatty acids and fat (0.84), carbohydrate and energy (0.87), energy and fat (0.86), saturated fatty acids and fat (0.77), total cholesterol and low-density lipoprotein cholesterol (0.89), BMI and waist (0.87), and number of pregnancies and number of live births (0.87).

We eliminated the following variables: magnesium, folate, monounsaturated fatty acids, carbohydrate, fat, low-density lipoprotein cholesterol, waist, and number of live births, based on previous pertinent studies [12],[13].

In this study, four machine learning techniques, namely random forest (RF), extreme gradient boosting (XGBoosting), gradient boosting machine (GBM), and decision tree (DT), were chosen for hyperparameter optimization within the dataset. The RF algorithm is a type of ensemble learning that builds many decision trees during training and finds the average prediction (regression) of the individual trees or the mode of the classes (classification) [31]. XGBoosting is a distributed gradient boosting library optimized for flexible and effective implementation. Due to its speed and performance, it is scalable, highly efficient, and extensively utilized in machine learning competitions and industry applications [32].

Sequentially constructing an ensemble of weak learners (typically decision trees), GBM is renowned for its exceptional predictive accuracy and resistance to overfitting [33]. DT is a nonparametric algorithm for supervised learning in classification and regression tasks. The algorithm divides the data into subsets according to the feature values and builds a tree-like structure for making predictions [34].

Additionally, a 5-fold cross-validation method was employed. The training dataset was divided into five groups for the 5-fold cross-validation, with one group as the internal validation set and four as the internal training dataset. The average performance was computed using a grid search, and the hyperparameters were optimized to maximize the AUC of receiver operating characteristic (ROC) for the internal validation set [35]. Following the completion of model training, we utilized the testing dataset for validation.

We compared the performance metrics of different models using the AUC of ROC, accuracy, sensitivity, specificity, positive predictive value (PPV), negative predictive value (NPV), and F1 score [36]. The F1 score is a metric to quantify accuracy by precision and sensitivity [37]. Finally, we used the SHapley Additive exPlanations (SHAP) framework to illustrate the predictors' contributions and identify the threshold values of the predictors [38].

2.5.

Statistical analysis

Since NHANES is a multistage, complicated probability sampling design, we used weighted mean (95% confidence interval) to describe continuous predictors and frequency (weighted percentage) to characterize categorical ones. We compared predictor differences between IR statuses using the Rao-Scott chi-square test for categorical variables and the t-test for continuous variables.

As participants lacking lab testing or daily nutrient intake data were excluded, other variables, except for family monthly poverty level index and physical activity, had no missing values. We used mean values to deal with the missing values of the two variables. All p-values presented in this study were two-sided and deemed statistically significant at a significance level of p < 0.05. The statistical analyses were conducted using SAS (version 9.4; SAS, Cary, NC, USA). The machine learning algorithms were implemented using R (version 4.3.0) and Python (version 3.10.11).

3.

Results

3.1.

Baseline characteristics

The study initially included a total of 56 predictors. After excluding variables that exhibited a high correlation with another one, 48 predictors were finally included in this analysis (Supplemental Figures 1 and 2).

In Table 1, data (n = 2084) were divided into the IR group (HOMA-IR > 2.73, n = 848) and the non-IR group (HOMA-IR ≤ 2.73, n = 1236). The IR group exhibited a higher likelihood of including Black or Hispanic women, possessing a lower family monthly poverty level index, having a higher BMI, engaging in lower levels of physical activity, and being diagnosed with hypertension. Regarding the laboratory data, the IR group had significantly higher mean values of glucose, HDL-C, triglycerides, glycohemoglobin, and total cholesterol than the non-IR group.

The mean values of energy, sugar, cholesterol, saturated fatty acid, alcohol, sodium, and phosphorus intake were significantly different between the IR and non-IR groups. The two groups had no significant differences in the mean values of other daily nutrients.

Women in the IR group had a lower mean age at menarche and more pregnancies than those in the non-IR group. A higher proportion of women in the IR group had histories of hysterectomy or bilateral oophorectomy. However, no significant differences were observed in the number of abortions/miscarriages/stillbirths, oral contraceptive use, and hormone therapy treatment between the two groups.

Table 1.

Baseline characteristics of 2084 middle-aged nondiabetic women by HOMA-IR.

Characteristics HOMA-IR > 2.73
IR group (n = 848)
HOMA-IR ≤ 2.73
Non-IR group (n = 1236)
p-value
Demographic and behavioral variables
Age (years)54.4 (54.0–54.8)54.1 (53.7–54.4)0.1723
Race*<0.0001
Non-Hispanic White276 (66.6)521 (74.9)
Non-Hispanic Black207 (12.1)252 (9.0)
Hispanic283 (14.7)302 (8.8)
Others82 (6.5)161 (7.4)
Education*0.0985
High school or below389 (40.3)517 (34.4)
College or above459 (59.7)719 (65.6)
Marital status*0.1553
Married/living with a partner512 (65.0)753 (70.0)
Widowed/divorced/separated239 (25.4)353 (22.7)
Never married97 (9.6)130 (7.3)
Family monthly poverty level index2.6 (2.5–2.7)2.8 (2.7–2.9)0.0066
Smoking*0.3337
Current391 (42.9)576 (47.6)
Former185 (25.5)266 (23.7)
Never272 (31.5)394 (28.7)
Family history of diabetes*383 (43.2)497 (37.8)0.1260
BMI, kg/m233.3 (32.9–33.8)26.8 (26.5–27.1)<0.0001
Physical activity14.1 (12.2–16.0)18.1 (16.3–19.8)0.0029
Hypertension*470 (54.4)480 (33.4)<0.0001
Systolic BP (mmHg)126 (125–127)122 (121–123)<0.0001
Diastolic BP (mmHg)72.6 (71.9–73.3)71.2 (70.7–71.8)0.0032
Laboratory variables
Glucose (mg/dL)104.3 (103.7–104.9)96.1 (95.7–96.6)<0.0001
HDL-c (mg/dL)53.4 (52.4–54.3)64.1 (63.1–65.0)<0.0001
Triglycerides (mg/dL)135 (130–140)105 (100–110)<0.0001
Glycohemoglobin (%)5.70 (5.68–5.73)5.48 (5.47–5.50)<0.0001
Total cholesterol (mg/dL)205 (203–208)209 (207–211)0.0413
eGFR(mL/min/1.73m2)90.6 (89.4–91.8)90.8 (89.8–91.7)0.8456
Daily intake of nutrients
Energy intake (kcal/kg)22.7 (22.0–23.3)26.7 (26.0–27.4)<0.0001
Protein intake ratio (%)0.16 (0.15–0.16)0.16 (0.15–0.16)0.3799
Carbohydrate intake ratio (%)0.50 (0.49–0.51)0.49 (0.48–0.50)0.0741
Total fat intake ratio (%)0.34 (0.34-0.35)0.34 (0.33–0.34)0.1623
Total sugars (gm)106.9 (102.0–111.9)96.3 (92.9–99.7)0.0003
Dietary fiber (gm)15.9 (15.3–16.6)16.1 (15.6–16.7)0.7188
Cholesterol intake (mg)276 (262–290)249 (238–261)0.0029
Daily intake of nutrients
Saturated fatty acid (gm)23.7 (22.8–24.6)22.0 (21.2–22.7)0.0032
Alcohol (gm)5.4 (4.2–6.6)8.9 (7.7–10.1)<0.0001
Vitamin C (mg)77.1 (71.0–83.2)81.9 (77.1–86.7)0.2209
Vitamin D (mcg)4.4 (4.0–4.8)4.2 (3.9–4.6)0.4684
Vitamin B6 (mg)1.74 (1.67–1.82)1.77 (1.71–1.84)0.5562
Vitamin B12 (mcg)4.2 (4.0–4.5)4.3 (4.0–4.7)0.5827
Iron (mg)12.9 (12.5–13.4)12.9 (12.5–13.3)0.8268
Calcium (mg)849 (816–881)814 (788–841)0.1116
Zinc (mg)9.7 (9.4–10.0)9.6 (9.2–10.1)0.8370
Sodium (mg)3117 (3025–3210)2971 (2888–3054)0.0229
Phosphorus (mg)1224 (1188–1260)1176 (1147–1206)0.0434
Copper (mg)1.15 (1.11–1.19)1.21 (1.15–1.26)0.1176
Selenium (mcg)101.9 (98.5–105.3)99.1 (95.8–102.5)0.2761
Potassium (mg)2427 (2356–2498)2449 (2389–2509)0.6365
Theobromine (mg)30.5 (26.0–35.1)34.9 (31.1–38.8)0.1504
Caffeine (mg)160 (145–175)162 (151–173)0.8144
Reproductive health
Age at menarche (years)12.5 (12.1–12.9)12.9 (12.7–13.1)0.0437
Number of pregnancies2.7 (2.5–2.8)2.5 (2.3–2.6)0.0211
Number of abortions/miscarriage/stillbirths0.71 (0.64–0.79)0.66 (0.60–0.72)0.2561
Birth control pills*531 (64.1)766 (67.6)0.1872
Hysterectomy*215 (25.7)218 (17.1)0.0286
Bilateral oophorectomy*118 (14.3)102 (8.1)0.0453
Female hormones*161 (18.9)229 (21.6)0.3432

Note: *represents frequency (weighted proportion, %); other variables were characterized by weighted mean (95% confidence interval). The t-test or the Rao-Scott chi-square test determined the p-value to compare the two IR groups.

3.2.

Comparing IR prediction models with 48 predictors

We randomly assigned 1667 of 2084 nondiabetic women to the training dataset and 417 to the testing dataset. Table 2 summarizes the performance metrics results of training and testing datasets for XGBoosting, RF, GBM, and DT with 48 predictors. In the training dataset, the AUC of ROC for all models exceeded 0.85, with the maximum AUC value of 0.93 achieved by the XGBoosting model. The XGBoosting algorithm also exhibited superior performance in terms of accuracy (0.86), specificity (0.80), PPV (0.87), NPV (0.85), and F1 score (0.88), followed by the RF, GBM, and DT models.

Table 2.

The performance metrics of different models with 48 predictors.

XGBoost RF GBM DT
Training dataset
AUC of ROC0.930.910.900.87
Accuracy0.860.820.820.79
Sensitivity0.900.910.870.87
Specificity0.800.680.750.68
PPV0.870.800.840.80
NPV0.850.840.800.79
F1 score0.880.850.850.83
Testing dataset
AUC of ROC0.860.850.850.80
Accuracy0.790.770.780.73
Sensitivity0.860.900.850.84
Specificity0.690.580.680.56
PPV0.800.760.800.74
NPV0.770.800.760.71
F1 score0.830.820.820.79

Note: XGBoost = Extreme gradient boosting, RF = Random forest, GBM = Gradient boosting machine, DT = Decision tree, AUC of ROC = Area under receiver operating characteristic curve, PPV = Positive predictive value, NPV = Negative predictive value.

Figure 1.

ROC curves for predicting insulin resistance from four different models with 48 predictors. In the training and testing datasets with 48 predictors, the area under curve (AUC) of receiver operating characteristic (ROC) for all four models was higher in XGBoosting, followed by random forest, gradient boosting, and decision tree.

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

In the testing dataset, all AUCs of ROC were equal to or greater than 0.80, the maximum being 0.86 for XGBoosting. In addition, XGBoosting possessed greater accuracy (0.79), specificity (0.69), PPV (0.80), and F1 score (0.83). The RF, GBM, and DT models had the subsequent performance metrics. Figure 1 also illustrates the ROC curves for predicting IR from the four models with 48 predictors.

3.3.

Relative importance of 48 predictors in the XGBoosting model

Figure 2 depicts the relatively important features of the XGBoosting model, with relative importance values of 0.3007, 0.2082, 0.3884, and 0.1022 for demographic and behavioral factors, laboratory variables, daily intake of nutrients, and reproductive health variables, respectively. Among the 48 variables, BMI (0.1235) had the greatest influence on IR, followed by glucose (0.0775), HDL-C (0.0384), glycohemoglobin (0.0347), and triglycerides (0.0273).

Figure 2.

Feature importance of XGBoosting model with 48 predictors. In the XGBoosting model with 48 predictors, the relative importance values of demographic and behavioral factors, laboratory variables, daily intake of nutrients, and reproductive health variables were 0.3007, 0.2082, 0.3884, and 0.1022, respectively.

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

Comparing IR prediction models with five predictors

Based on the above feature importance analysis of the 48 predictors, we attempted to use the top five predictors to develop models. Table 3 presents the performance metrics for the four machine learning algorithms in the training and testing datasets with five predictors. With the top five predictors, the AUC of ROC for all four models stayed at or above 0.87 in the training dataset. The XGBoosting model got a relatively high AUC value of 0.90. In terms of accuracy (0.82), sensitivity (0.87), specificity (0.75), PPV (0.83), NPV (0.79), and F1 score (0.85), the XGBoosting algorithm outperformed the other three algorithms.

In the testing dataset, all AUCs of ROC were equal to or greater than 0.83, with the AUC of XGBoosting being the greatest at 0.86. Figure 3 illustrates the ROC curves for predicting IR from the four models with the five predictors. Similar results are shown by the sensitivity analysis for the models' performance metrics using the first five predictors without using the synthetic minority oversampling technique (Supplemental Table 1).

Table 3.

Performance metrics of different models with the first five predictors.

XGBoost RF GBM DT
Training dataset
AUC of ROC0.900.890.880.87
Accuracy0.820.810.790.80
Sensitivity0.870.860.860.85
Specificity0.750.730.700.72
PPV0.830.820.810.82
NPV0.790.780.770.76
F1-score0.850.840.830.83
Testing dataset
AUC of ROC0.860.850.850.83
Accuracy0.780.760.770.76
Sensitivity0.850.840.860.83
Specificity0.680.660.650.65
PPV0.790.780.780.77
NPV0.750.740.760.73
F1-score0.820.810.820.80

Note: XGBoost = Extreme gradient boosting, RF = Random forest, GBM = Gradient boosting machine, DT = Decision tree, AUC of ROC = Area under receiver operating characteristic curve, PPV = Positive predictive value, NPV = Negative predictive value.

Figure 3.

ROC curves for predicting insulin resistance from four models with the top five predictors. In the training and testing datasets with the top five predictors, the area under curve (AUC) of receiver operating characteristic (ROC) for all four models decreased from XGBoosting to random forest, gradient boosting, and decision tree, in descending order.

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

Relative importance of the five predictors in four models

The top five predictors in the XGBoosting, RF, and GBM models were BMI, glucose, HDL-C, glycohemoglobin, and triglycerides. However, the DT model included the variable of daily sugar intake instead of glycohemoglobin. Of the five predictors, BMI, glucose, and HDL-C were the top three predictors in all four models. BMI's relative importance was 0.42, 0.47, 0.54, and 0.54 in the XGBoosting, RF, GBM, and DT models, respectively. In the four models, the corresponding relative importance of glucose was 0.26, 0.26, 0.28, and 0.32, while the corresponding relative value of HDL-C was 0.12, 0.12, 0.08, and 0.06 (Figure 4).

The sensitivity analysis for the models' feature importance with the first five predictors produces similar results without using the synthetic minority oversampling technique (Supplemental Figure 3).

Figure 4.

Feature importance of four machine learning models with five predictors. The top five predictors of the XGBoosting, RF, and GBM models were all BMI, glucose, HDL-C, glycohemoglobin, and triglycerides, whereas one of the DT model's predictors was daily sugar intake instead of glycohemoglobin. All four models identified BMI, glucose, and HDL-C as the top three predictors.

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

SHAP value of the five predictors in the XGBoosting model

Figure 5 indicates the relationship between the XGBoosting model's five predictors and their SHAP values. The SHAP values of BMI, glucose, glycohemoglobin, and triglycerides increase as their levels rise. However, as HDL-C increases, its SHAP value decreases. The threshold values for predicting IR were identified to be 29 kg/m2, 100 mg/dL, 54.5 mg/dL, 89 mg/dL, and 5.6% for BMI, glucose, HDL-C, triglycerides, and glycohemoglobin, respectively.

Figure 5.

The dependence plot of the five predictors in the XGBoosting model. When the SHAP value is equal to 0, it signifies that the corresponding feature's value does not exert a statistically significant influence on the predictive outcome of the model. The cutoff values for BMI, glucose, HDL-C, triglycerides, and glycohemoglobin are 29 kg/m2, 100 mg/dL, 54.5 mg/dL, 89 mg/dL, and 5.6%, respectively.

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

In Figure 6, the SHAP values for the XGBoosting algorithm reveal the associations between the five predictors and IR, including BMI (strongly positive impact on IR prediction), fasting glucose (strongly positive), HDL-C (medium negative), triglycerides (medium positive), and glycohemoglobin (medium positive). Additionally, the SHAP decision plot further enhances the visualization of the importance and direction of these predictors' contribution, as depicted in Supplemental Figure 4.

Figure 6.

SHAP value of the five predictors in the XGBoosting model. The SHAP values for the XGBoosting model indicate a positive or negative relationship with IR. Specifically, BMI has a strong positive effect on IR. Glucose, triglycerides, and glycohemoglobin all have moderately positive impacts on IR, whereas HDL-C has a medium negative impact.

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

Discussion

We found that the XGBoosting model was the best of the four machine learning algorithms for predicting IR in middle-aged nondiabetic women. The AUC of the ROC curve was 0.90 in the training dataset and 0.86 in the testing dataset using the five predictors of BMI, glucose, HDL-C, glycohemoglobin, and triglycerides. Using the SHAP framework, we also determined the threshold values of the five predictors to predict IR.

The findings of our investigation align with those of prior studies [12]–[14], demonstrating that the XGBoosting algorithm was the optimal model for IR prediction. A study based on the NHANES from 1999 to 2012 reported that the XGBoosting model had a higher AUC of ROC than other machine learning algorithms (RF, logistic regression, and deep neural networks) for predicting IR in 1229 adults with chronic kidney disease [13]. Similarly, another Chinese study recognized XGBoosting as the optimal model with a relatively high AUC value (0.85) out of five machine-learning techniques for predicting IR in 503 children aged 6–12 [14].

XGBoosting is frequently recognized as the optimal model for predicting health conditions due to its ability to capture complex, non-linear relationships between features and the presence of a disease. This makes it well-suited for modeling intricate biological and clinical interactions [39]. Moreover, XGBoosting performs outstanding tasks requiring high accuracy [40]. It provides a range of hyperparameters that can be adjusted to suit the individual attributes of disease datasets. By adjusting the parameters, researchers can refine the model to improve its predictive performance [41].

Previous studies used different numbers of top features, ranging from 5 to 20, to predict diseases of interest [12],[35]. However, we observed that when employing the top five predictors to discriminate IR, the models' performance metrics did not significantly decline compared to the 48 predictors. As an illustration, the AUC for the XGBoosting model in the training dataset decreased from 0.93 to 0.90 when the number of predictors was reduced from 48 to 5.

In addition, the three models XGBoosting, RF, and GBM all identified BMI, glucose, HDL-C, glycohemoglobin, and triglycerides as the top five predictors, and all four models consistently recognized BMI, glucose, and HDL-C as the three most influential predictors. These results exhibited both congruence and divergence in comparison to prior research findings. Multiple prior research has demonstrated significant associations of BMI, glucose, HDL-C, and triglyceride with IR and their potential utility in the IR prediction models [42],[43]. Notably, some studies reported the critical role of blood pressure in predicting IR [44],[45], but neither diastolic nor systolic blood pressure appeared in the first five predictors of our four models.

Based on the results depicted in Figure 2, hypertension ranked eighth among the 48 predictors in terms of significance in predicting IR, whereas diastolic and systolic blood ranked outside of the top twenty.

The top three features of the five predictors explained approximately 80% in XGBoosting, 85% in RF, 90% in GBM, and 92% in DT, implying substantial effects of BMI, glucose, and HDL-C on IR (Figure 4). BMI scored unexpectedly highly, despite not being one of the parameters used in calculating HOMA-IR. In alignment with the present study, prior research has documented a robust association between BMI and IR or metabolic syndrome [46],[47]. As BMI increases, the body accumulates more fat, particularly in the abdominal region, which increases the likelihood of insulin resistance [48].

Besides, high BMI may induce a state of chronic low-grade inflammation. Inflammatory signals emitted by adipose tissue can interfere with insulin signaling, decreasing insulin sensitivity in cells [49]. Additionally, high BMI may disrupt the balance of adipokines, which can contribute to IR [50].

The dependent plot shows that the threshold values for predicting IR in the XGBoosting model were 29 kg/m2, 100 mg/dL, 54.5 mg/dL, 89 mg/dL, and 5.6% for BMI, glucose, HDL-C, triglycerides, and glycohemoglobin, respectively. These findings are both consistent with and distinct from those of previous research. It is well-known that a glucose level of 100 mg/dL serves as a diagnostic criterion for metabolic syndrome [51], while glucose levels ranging from 100 to 125 mg/dL and/or glycohemoglobin levels of 5.7%–6.4% can be utilized for the diagnosis of pre-diabetes [52].

However, the BMI threshold for IR can vary depending on the study and the population under consideration. A study indicated that a BMI ≥ 25 kg/m2 is a risk factor for IR [53], whereas another study found that a BMI ≥ 27 kg/m2 is optimal for identifying metabolic syndrome in adult populations [47]. In addition, a noteworthy disparity is that the cutoff level for triglycerides in diagnosing metabolic syndromes is 150 mg/dL [54]. In comparison, our results present the threshold value of 89 mg/dL for IR.

These variations may be attributable to differences in the study design and the characteristics of populations, but additional research is necessary to validate our findings.

The SHAP framework provides additional insight into how individual features contribute to the model's predictions, with BMI (strongly), glucose (strongly), glycohemoglobin (moderately), and triglycerides (moderately) having positive impacts on IR, and HDL-C indicating a medium negative impact. The decision plot depicting correct classification and misclassification provides additional evidence of these predictors' significant influence on IR (Supplemental Figure 4). Furthermore, our predictive model broadly agrees with earlier findings [12],[13],[55]. As per the findings from the National Health and Nutrition Examination Survey (2007–09) conducted in South Korea, the XGBoosting model in 8842 individuals aged 40–74 years old indicated that glucose had robust positive effects on IR, and glycohemoglobin (positive) and HDL-C (negative) had moderate effects on IR [12].

Moreover, these predictors are clinically commonplace and simple to measure, suggesting significant promise for middle-aged women's IR screening and prediction.

Despite the excellent accuracy and precision achieved by the XGBoosting model with the top five predictors in predicting IR, it is imperative to acknowledge that the influence of other factors, such as behavioral, nutritional, and reproductive health variables, cannot be disregarded. For instance, energy intake was not chosen as one of the top five predictors for the prediction models. Still, it had the highest feature importance among the variables of daily nutrient consumption. These characteristics can affect BMI, glucose levels, and other laboratory indicators [56]–[58].

Consequently, these anthropometric and laboratory indicators can be employed more directly to identify IR.

This study's strength was its novelty, specifically the inaugural investigation into utilizing machine learning to develop IR predictive models in middle-aged nondiabetic women. Furthermore, the machine learning models utilized in this work incorporated an extensive range of variables, encompassing demographic factors, behavioral lifestyles, laboratory data, and daily intake of macronutrients and micronutrients and reproductive profiles. Besides, the SHAP framework can better explain the impact of feature importance on IR. The clinical significance of our study was that our machine learning–based predictive model could potentially provide women with warnings using routine clinical measurements.

Some limitations existed in our investigation. The data was from a cross-sectional survey, so the findings cannot be interpreted as a cause-and-effect relationship. Demographic, behavioral lifestyle, and reproductive health variables were acquired by self-reported questionnaires, which could potentially be influenced by recall bias. In addition, the lab test was not administered to all NHANES participants, resulting in a sample size of 2084. Increasing the sample size could improve the model's performance [59]. An increased volume of data may enable the model to identify latent patterns more precisely, thereby enhancing its capacity to extrapolate to unobserved data [60].

The presence of IR was evaluated using HOMA-IR rather than hyperinsulinemic-euglycemic clamps. Nevertheless, we posit that our predictive model in middle-aged nondiabetic women can explain IR based on these characteristics in the current dataset.

5.

Conclusions

In this study, we used four machine learning algorithms, namely XGBoosting, random forest, gradient boosting, and decision tree, to identify IR in 2084 middle-aged women who do not have diabetes. Our analysis involved 48 variables encompassing demographic and behavioral factors, laboratory variables, daily nutrient intake, and reproductive health variables. The XGBoost algorithm demonstrated a relatively high AUC of ROC, followed by the RF, GBM, and DT models. When modeled with the top five predictors, the XGBoosting model's performance metrics remain optimal, with BMI (strongly positive impact), fasting glucose (strongly positive impact), HDL-C (medium negative impact), triglycerides (medium positive impact), and glycohemoglobin (medium positive impact) being associated with IR.

Use of AI tools declaration

The authors declare they have not used Artificial Intelligence (AI) tools in the creation of this article.

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

We appreciate the Centers for Disease Control and Prevention for providing the National Health and Nutritional Examination Survey data for public use.

Conflict of interest: All authors declare no conflicts of interest in this paper.

References

1 Sah SP Singh B Choudhary S Animal models of insulin resistance: A review Pharmacol Rep 2016 68 1165 1177 10.1016/j.pharep.2016.07.010 27639595
2 Cavaghan MK Ehrmann DA Polonsky KS Interactions between insulin resistance and insulin secretion in the development of glucose intolerance J Clin Invest 2000 106 329 333 10.1172/JCI10761 10930434 PMC314336
3 Haffner SM Insulin resistance, inflammation, and the prediabetic state Am J Cardiol 2003 92 18 26 10.1016/s0002-9149(03)00612-x 12957323
4 Guo S Insulin signaling, resistance, and the metabolic syndrome: insights from mouse models to disease mechanisms J Endocrinol 2014 220 1 23 10.1530/JOE-13-0327 24281010 PMC4087161
5 Chitturi S Abeygunasekera S Farrell GC NASH and insulin resistance: insulin hypersecretion and specific association with the insulin resistance syndrome Hepatology 2002 35 373 379 10.1053/jhep.2002.30692 11826411
6 Dassie F Favaretto F Bettini S Alström syndrome: an ultra-rare monogenic disorder as a model for insulin resistance, type 2 diabetes mellitus and obesity Endocrine 2021 71 618 625 10.1007/s12020-021-02643-y 33566311
7 Muniyappa R Lee S Chen H Current approaches for assessing insulin sensitivity and resistance in vivo: advantages, limitations, and appropriate usage Am J Physiol Endocrinol Metab 2008 294 E15 26 10.1152/ajpendo.00645.2007 17957034
8 Gutch M Kumar S Razi SM Assessment of insulin sensitivity/resistance Indian J Endocrinol Metab 2015 19 160 164 10.4103/2230-8210.146874 25593845 PMC4287763
9 Khan MS Cuda S Karere GM Breath biomarkers of insulin resistance in pre-diabetic Hispanic adolescents with obesity Sci Rep 2022 12 339 10.1038/s41598-021-04072-3 35013420 PMC8748903
10 Khan P Kader MF Islam SMR Machine learning and deep learning approaches for brain disease diagnosis: Principles and recent advances IEEE Access 2021 9 37622 37655 10.1109/ACCESS.2021.3062484
11 Zitnik M Nguyen F Wang B Machine learning for integrating data in biology and medicine: Principles, practice, and opportunities Inf Fusion 2019 50 71 91 https://doi.org/doi: 10.1016/j.inffus.2018.09.012 30467459 10.1016/j.inffus.2018.09.012 PMC6242341
12 Park S Kim C Wu X Development and validation of an insulin resistance predicting model using a machine-learning approach in a population-based cohort in Korea Diagnostics 2022 12 212 10.3390/diagnostics12010212 35054379 PMC8774355
13 Lee CL Liu WJ Tsai SF Development and validation of an insulin resistance model for a population with chronic kidney disease using a machine learning approach Nutrients 2022 14 2832 10.3390/nu14142832 35889789 PMC9319821
14 Zhang Q Wan NJ Simple method to predict insulin resistance in children aged 6–12 years by using machine learning Diabetes Metab Syndr Obes 2022 15 2963 2975 10.2147/DMSO.S380772 36193541 PMC9526431
15 Tramunt B Smati S Grandgeorge N Sex differences in metabolic regulation and diabetes susceptibility Diabetologia 2020 63 453 461 10.1007/s00125-019-05040-3 31754750 PMC6997275
16 Ciarambino T Crispino P Guarisco G Gender differences in insulin resistance: new knowledge and perspectives Curr Issues Mol Biol 2023 45 7845 7861 10.3390/cimb45100496 37886939 PMC10605445
17 Shin HJ Lee HS Kwon YJ Association between reproductive years and insulin resistance in middle-aged and older women: A 10-year prospective cohort study Maturitas 2020 142 31 37 10.1016/j.maturitas.2020.07.004 33158485
18 Mohsen F Al-Absi HRH Yousri NA A scoping review of artificial intelligence-based methods for diabetes risk prediction NPJ Digit Med 2023 6 197 10.1038/s41746-023-00933-5 37880301 PMC10600138
19 Koenig W Sund M Fröhlich M C-Reactive protein, a sensitive marker of inflammation, predicts future risk of coronary heart disease in initially healthy middle-aged men: results from the MONICA (Monitoring Trends and Determinants in Cardiovascular Disease) Augsburg Cohort Study, 1984 to 1992 Circulation 1999 99 237 242 10.1161/01.cir.99.2.237 9892589
20 Dev R Bruera E Dalal S Insulin resistance and body composition in cancer patients Ann Oncol 2018 29 ii18 26 10.1093/annonc/mdx815 29506229
21 Matthews DR Hosker J Rudenski A Homeostasis model assessment: insulin resistance and β-cell function from fasting plasma glucose and insulin concentrations in man Diabetologia 1985 28 412 419 10.1007/BF00280883 3899825
22 Sumner AE Cowie CC Ethnic differences in the ability of triglyceride levels to identify insulin resistance Atherosclerosis 2008 196 696 703 10.1016/j.atherosclerosis.2006.12.018 17254586
23 Xing Z Alman AC Kirby RS Parity and risk of cardiovascular disease in women over 45 years in the United States: National Health and Nutrition Examination Survey 2007–2018 J Womens Health 2022 31 1459 1466 10.1089/jwh.2021.0650 35727098
24 Cao J Qiu W Lin Y Appropriate sleep duration modifying the association of insulin resistance and hepatic steatosis is varied in different status of metabolic disturbances among adults from the United States, NHANES 2017-March 2020 Prev Med Rep 2023 36 102406 10.1016/j.pmedr.2023.102406 37744738 PMC10511803
25 Levey AS Stevens LA Schmid CH A new equation to estimate glomerular filtration rate Ann Intern Med 2009 150 604 612 10.7326/0003-4819-150-9-200905050-00006 19414839 PMC2763564
26 Du R Tsougenis ED Ho JW Machine learning application for the prediction of SARS-CoV-2 infection using blood tests and chest radiograph Sci Rep 2021 11 14250 10.1038/s41598-021-93719-2 34244563 PMC8270945
27 Lopez-Arevalo I Aldana-Bobadilla E Molina-Villegas A A memory-efficient encoding method for processing mixed-type data on machine learning Entropy 2020 22 1391 10.3390/e22121391 33316972 PMC7763608
28 Oka M Interpreting a standardized and normalized measure of neighborhood socioeconomic status for a better understanding of health differences Arch Public Health 2021 79 226 10.1186/s13690-021-00750-w 34911564 PMC8672510
29 Hassanzadeh R Farhadian M Rafieemehr H Hospital mortality prediction in traumatic injuries patients: comparing different SMOTE-based machine learning algorithms BMC Med Res Methodol 2023 23 101 10.1186/s12874-023-01920-w 37087425 PMC10122327
30 Grewal R Cote JA Baumgartner H Multicollinearity and Measurement Error in Structural Equation Models: Implications for Theory Testing Mark Sci 2004 23 519 529 10.1287/mksc.1040.0070
31 Yadav DC Pal S Prediction of heart disease using feature selection and random forest ensemble method Int J Pharm Res 2020 12 56 66 10.31838/ijpr/2020.12.04.013
32 Ali ZA Abduljabbar ZH Taher HA Exploring the Power of eXtreme Gradient Boosting Algorithm in Machine Learning: a Review Nawroz Univ J 2023 12 320 334 10.1186/s12873-024-00939-6
33 Konstantinov AV Utkin LV Interpretable machine learning with an ensemble of gradient boosting machines Knowl Based Syst 2021 222 106993 10.1016/j.knosys.2021.106993
34 Arabameri A Chandra Pal S Rezaie F Decision tree based ensemble machine learning approaches for landslide susceptibility mapping Geocarto Int 2022 37 4594 4627 10.1080/10106049.2021.1892210
35 Liu Y Qiu T Hu H Machine Learning models for prediction of severe pneumocystis carinii pneumonia after kidney transplantation: A single-center retrospective study Diagnostics 2023 13 2735 10.3390/diagnostics13172735 37685276 PMC10486565
36 Liu YX Liu X Cen C Comparison and development of advanced machine learning tools to predict nonalcoholic fatty liver disease: An extended study Hepatobiliary Pancreat Dis Int 2021 20 409 415 10.1016/j.hbpd.2021.08.004 34420885
37 Wang X Ahmad I Javeed D Intelligent hybrid deep learning model for breast cancer detection Electronics 2022 11 2767 10.3390/electronics11172767
38 Liu Y Qiu T Hu H Machine learning models for prediction of severe pneumocystis carinii pneumonia after kidney transplantation: A single-center retrospective study Diagnostics 2023 13 2735 10.3390/diagnostics13172735 37685276 PMC10486565
39 Tsui A Tudosiu P-D Brudfors M Predicting mortality in acutely hospitalised older patients: the impact of model dimensionality BMC Med 2023 21 10 10.1186/s12916-022-02698-2 36617542 PMC9827638
40 Kavzoglu T Teke A Predictive performances of ensemble machine learning algorithms in landslide susceptibility mapping using random forest, extreme gradient boosting (XGBoost) and natural gradient boosting (NGBoost) Arab J Sci Eng 2022 47 7367 7385 10.1007/s13369-022-06560-8
41 Dalal S Onyema EM Malik A Hybrid XGBoost model with hyperparameter tuning for prediction of liver disease with better accuracy World J Gastroenterol 2022 28 6551 6563 10.3748/wjg.v28.i46.6551 36569269 PMC9782838
42 Stern SE Williams K Ferrannini E Identification of individuals with insulin resistance using routine clinical measurements Diabetes 2005 54 333 339 10.2337/diabetes.54.2.333 15677489
43 Kurniawan LB Bahrun U Hatta M Body mass, total body fat percentage, and visceral fat level predict insulin resistance better than waist circumference and body mass index in healthy young male adults in Indonesia J Clin Med 2018 7 96 10.3390/jcm7050096 29723977 PMC5977135
44 Duca LM Maahs DM Schauer IE Development and validation of a method to estimate insulin sensitivity in patients with and without type 1 diabetes J Clin Endocrinol Metab 2016 101 686 695 10.1210/jc.2015-3272 26672636 PMC4880115
45 Dabelea D D'agostino R Mason C Development, validation and use of an insulin sensitivity score in youths with diabetes: the SEARCH for Diabetes in Youth study Diabetologia 2011 54 78 86 10.1007/s00125-010-1911-9 20886205 PMC5412950
46 Ärnlöv J Sundström J Ingelsson E Impact of BMI and the metabolic syndrome on the risk of diabetes in middle-aged men Diabetes Care 2011 34 61 65 10.2337/dc10-0955 20852030 PMC3005442
47 Kobo O Leiba R Avizohar O Normal body mass index (BMI) can rule out metabolic syndrome: An Israeli cohort study Medicine 2019 98 e14712 10.1097/MD.0000000000014712 30817613 PMC6831180
48 Kahn BB Flier JS Obesity and insulin resistance J Clin Invest 2000 106 473 481 10.1172/JCI10842 10953022 PMC380258
49 Qatanani M Lazar MA Mechanisms of obesity-associated insulin resistance: many choices on the menu Genes Dev 2007 21 1443 1455 10.1101/gad.1550907 17575046
50 Antuna-Puente B Feve B Fellahi S Adipokines: the missing link between insulin resistance and obesity Diabetes Meta 2008 34 2 11 10.1016/j.diabet.2007.09.004 18093861
51 Alberti KGM Zimmet P Shaw J The metabolic syndrome—a new worldwide definition Lancet 2005 366 1059 1062 10.1016/S0140-6736(05)67402-8 16182882
52 Lorenzo C Wagenknecht LE Hanley AJ A1C between 5.7 and 6.4% as a marker for identifying pre-diabetes, insulin sensitivity and secretion, and cardiovascular risk factors: the Insulin Resistance Atherosclerosis Study (IRAS) Diabetes Care 2010 33 2104 2109 https://doi.org/doi: 10.2337/dc10-0679 20573754 10.2337/dc10-0679 PMC2928372
53 American Diabetes Association Professional Practice CommitteeClassification and diagnosis of diabetes: Standards of Medical Care in Diabetes—2022 Diabetes Care 2022 45 S17 38 10.2337/dc22-S002 34964875
54 Grundy SM Cleeman JI Daniels SR Diagnosis and management of the metabolic syndrome: an American Heart Association/National Heart, Lung, and Blood Institute scientific statement Circulation 2005 112 2735 2752 10.1161/CIRCULATIONAHA.105.169404 16157765
55 Chakradar M Aggarwal A Cheng X A non-invasive approach to identify insulin resistance with triglycerides and HDL-c ratio using machine learning Neural Process Let 2021 1 21 10.1007/s11063-021-10461-6
56 Osler M Daugbjerg S Frederiksen BL Body mass and risk of complications after hysterectomy on benign indications Hum Reprod 2011 26 1512 1518 10.1093/humrep/der060 21467207
57 Wolongevicz DM Zhu L Pencina MJ Diet quality and obesity in women: the Framingham Nutrition Studies Br J Nutr 2010 103 1223 1229 10.1017/S0007114509992893 19930766 PMC3700728
58 Reynolds R Osmond C Phillips D Maternal BMI, parity, and pregnancy weight gain: influences on offspring adiposity in young adulthood J Clin Endocrinol Metab 2010 95 5365 5369 10.1210/jc.2010-0697 20702520
59 Rajput D Wang WJ Chen CC Evaluation of a decided sample size in machine learning applications BMC Bioinformatics 2023 24 48 10.1186/s12859-023-05156-9 36788550 PMC9926644
60 Moghaddam DD Rahmati O Panahi M The effect of sample size on different machine learning models for groundwater potential mapping in mountain bedrock aquifers Catena 2020 187 104421 10.1016/j.catena.2019.104421
Publication and source details

Original title: Discriminating insulin resistance in middle-aged nondiabetic women using machine learning approaches

Zailing Xing; Henian Chen; Amy C. Alman

AIMS Public Health · 2024

* Correspondence: Email: xingzailing@gmail.com.© 2024 the Author(s), licensee AIMS Press2024the Author(s)https://creativecommons.org/licenses/by/4.0/This is an open access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/4.0)

Repository JATS snapshot; version as supplied

Source retrieved: 2026-11-11T11:35:12.419355+00:00

DOI: 10.3934/publichealth.2024034 · PMC11252584