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 intake (μg) | 0.00 | 68.98 | 2.92 ± 5.26 | 0.00 | 68.98 | 2.83 ± 5.29 | 0.00 | 60.48 | 3.14 ± 5.20

Source: Results table. View original paper

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

Study design Cross-sectional study.

Cross-sectional study

Examines a population at a particular point in time.

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.

Development and validation of machine learning models to predict prediabetes using dietary intake data in young adults in Korea: a cross-sectional study

Source: Article title.

Data from the ninth Korea National Health and Nutrition Examination Survey were used, with 823 participants aged 19–35 years selected after excluding those with missing data.

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

Development and validation of machine learning models to predict prediabetes using dietary intake data in young adults in Korea: a cross-sectional study

Cross-sectional study · Journal of Korean Biological Nursing Science · 2024

Original publication title

Development and validation of machine learning models to predict prediabetes using dietary intake data in young adults in Korea: a cross-sectional study

Myoung-Lyun Heo

© 2024 Korean Society of Biological Nursing Science

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?

This study aimed to develop and compare machine learning models for predicting prediabetes in young adults in Korea using dietary intake data and to identify the most effective model.

Source: Purpose

Study methods

What methods does the paper describe?

1. Study design

This study is a secondary data analysis using the first-year data of the 9th Korea National Health and Nutrition Examination Survey (KNHANES), which was released by the Korea Disease Control and Prevention Agency (KDCA) in January 2024.

2. Samples

1) KNHANES

The KNHANES was conducted with the approval of the Institutional Review Board of the KDCA (2018-01-03-4C-A), and the researcher obtained permission from the KDCA to download and analyze the anonymized data for research purposes. For the analysis, this study utilized data from the health and nutrition surveys and medical examinations and integrated data from the various surveys within the same cycle. After aligning IDs, only data without missing values were selected for analysis. Although the KNHANES data were collected using a complex sampling design, which recommends applying complex sample analysis, this study primarily aims to predict and learn data patterns using machine learning rather than estimating specific population statistics.

Therefore, sampling weights were not applied [13].

3. Data Collection and instruments

1) Data selection

Out of the total 453,888 data points provided in the raw dataset, 64,043 data points corresponding to individuals aged 19 to 35 years were selected. After excluding data with missing values in at least one of the medical examination, health survey, or nutrition survey datasets, a total of 823 data points were preprocessed and used for analysis. Of the data, 70% was randomly selected using Excel's random function and used as machine learning training data, while the remaining 30% was used as test data [14].

2) Prediabetes and diabetes classification

The classification of individuals with prediabetes and diabetes was based on fasting blood glucose and HbA1c results from the medical examination data. Diabetes was defined as having a fasting blood glucose level of 126 mg/dL or higher, having received a diagnosis from a doctor, taking glucose-lowering medications, using insulin injections, or having an HbA1c level of 6.5% or higher. Prediabetes was defined as having a fasting blood glucose level between 100 and 125 mg/dL or an HbA1c level between 5.7% and 6.4%, without meeting the criteria for diabetes [13].

Since individuals with prediabetes are at a high risk of progressing to diabetes, these two conditions were combined to enhance the predictive power of the model. In this study, diabetes and prediabetes were combined into a single category referred to as “prediabetes or higher,” which was compared with the normal group. Individuals who did not meet these criteria were classified as normal.

3) General characteristics

The general characteristics were analyzed using data from the health survey, including sex, age, educational level, occupation, whether the participant lived alone, marital status, and type of health insurance. Sex was used as recorded as biological sex in the raw data, while educational level, occupation, marital status, and type of health insurance were used as categorical variables based on recoded categories in the raw data. Age was used as a continuous variable.

4) Dietary intake survey

The dietary intake survey utilized the 24-hour dietary recall data from the nutrition survey. Information regarding whether and why the participant followed a specific diet was used as categorical variables, as recorded in the raw data. The processed data on nutrient intake, as provided by the survey, were used directly as independent variables. The variables included daily food intake (g), daily energy intake (kcal), daily water intake (g), daily protein intake (g), daily fat intake (g), daily saturated fatty acid intake (g), daily monounsaturated fatty acid intake (g), daily polyunsaturated fatty acid intake (g), daily n-3 fatty acid intake (g), daily n-6 fatty acid intake (g), daily cholesterol intake (mg), daily carbohydrate intake (g), daily dietary fiber intake (g), daily sugar intake (g), daily calcium intake (mg), daily phosphorus intake (mg), daily sodium intake (mg), daily potassium intake (mg), daily magnesium intake (mg), daily iron intake (mg), daily zinc intake (mg), vitamin A (retinol activity equivalent) intake (μg RAE), daily vitamin D intake (μg), daily vitamin E intake (mg α-TE), daily beta-carotene intake (μg), daily retinol intake (μg), daily thiamine intake (mg), daily riboflavin intake (mg), daily niacin intake (mg), daily folate intake (μg), and daily vitamin C intake (mg).

4. Machine learning model

1) Logistic regression

Logistic regression is used to predict the probability of a dependent variable by considering the effects of independent variables in binary classification problems. In particular, this model is useful for producing dichotomous outcomes, such as the presence or absence of a disease, and is commonly applied in various fields including healthcare and marketing. The logistic function, which forms an S-shaped curve, is used to transform the output into a probability value between 0 and 1. Based on this probability, the data is classified, and the model's performance is evaluated using metrics such as accuracy, specificity, precision, recall, and the F1 score (the harmonic mean of precision and recall).

A performance value closer to 1 indicates that the model exhibits high diagnostic accuracy [14].

2) k-Nearest Neighbors (kNN)

kNN is a widely used classification algorithm in supervised learning. This algorithm is instance-based, meaning it does not require the creation of a separate model but classifies or predicts new data points based on the k-nearest neighbors from the training data. It operates as a non-parametric method, using distance-based calculations such as Euclidean distance or Manhattan distance to determine proximity. kNN is more beneficial in scenarios with smaller datasets rather than large-scale data owing to its simplicity and ease of implementation [14].

3) Random forest

Random forest is a widely used supervised learning algorithm for both classification and regression tasks. This model trains multiple decision trees independently and generalizes their predictions to create an optimal model, often referred to as an ensemble model. Averaging the results or using a majority vote determines the final prediction. Each tree is trained through random sampling of the data and feature selection to prevent overfitting and improve the model's generalization performance. The advantages of random forest include high prediction accuracy, stability, and strong handling of non-linear data [14].

5. Data analysis

This study employed the Orange 3.5 program to analyze a diabetes prediction model based on dietary intake data. Orange is an open-source data mining and machine learning tool that allows for easy data preprocessing, visualization, modeling, and evaluation. It provides an intuitive interface for efficiently managing complex data analyses [15].

To evaluate the performance of the models, a five-fold cross-validation was conducted, thereby reducing variance due to data partitioning and verifying the model's generalization capability. After cross-validation, a separate test set was used to evaluate whether the model avoided overfitting and maintained consistent performance on new data. This dual-validation process ensured the stability of the model and its practical applicability (Figure 1).

6. Ethical Considerations

This study is a secondary data analysis utilizing the first-year data from the 9th Korea National Health and Nutrition Examination Survey (KNHANES), publicly released by the Korea Disease Control and Prevention Agency (KDCA). The KNHANES received ethical approval from the Institutional Review Board (IRB) of the KDCA (Approval No: 2018-01-03-4C-A). De-identified data were provided to the researchers upon official authorization for research purposes, ensuring the protection of participant confidentiality. This study adhered to the ethical principles outlined in the Declaration of Helsinki.

As a secondary data analysis of anonymized datasets, additional IRB approval was not required.

Source: METHODS Source: METHODS Source: METHODS Source: METHODS Source: METHODS Source: METHODS

INTRODUCTION: What objectives does the paper state?

This study aims to verify the effectiveness of machine learning models for predicting individuals with prediabetes using dietary intake data from young adults in Korea and to propose the most effective prediction model.

Source: Purpose

Data characteristics

RESULTS / Dataset composition and participant characteristics: Data characteristics

In the total dataset, 14.7% were classified as prediabetic or diabetes, with 14.2% in the training dataset and 15.8% in the test dataset. Regarding sex, the total dataset comprised 45.3% male and 54.7% female, while the training dataset had 44.8% male and the test dataset had 46.6% male. For education level, 57.8% of the total dataset had a university education or higher, with 59.2% in the training dataset and 54.7% in the test dataset. In terms of occupation, 25.4% of the total dataset were professionals, and 32.2% were unemployed; the training dataset had 25.5% professionals and 34.0% unemployed, while the test dataset had 25.1% professionals and 27.9% unemployed.

As for household size, 82.1% of the total dataset lived in households of two or more people, with 81.9% in the training dataset and 82.6% in the test dataset. Marital status showed 22.5% of the total dataset were married, compared to 22.4% in the training dataset and 22.7% in the test dataset (Table 1).

Table 1.

General Characteristics of Participants (N = 823)

VariablesTypeRoleCategoriesTotal (n = 823)Training data (n = 576)Test data (n = 247)
DiabetesCategoricalTargetPrediabetes or diabetes121 (14.7)82 (14.2)39 (15.8)
Normal702 (85.3)494 (85.8)208 (84.2)
SexCategoricalFeatureMen373 (45.3)258 (44.8)115 (46.6)
Women450 (54.7)318 (55.2)132 (53.4)
Education levelCategoricalFeatureElementary and below3 (0.4)2 (0.3)1 (0.4)
Middle school8 (1.0)4 (0.7)4 (1.6)
High school336 (40.8)229 (39.8)107 (43.3)
College or higher476 (57.8)341 (59.2)135 (54.7)
OccupationCategoricalFeatureManager, professional and related workers209 (25.4)147 (25.5)62 (25.1)
Office workers134 (16.3)97 (16.8)37 (15.0)
Service and sales workers127 (15.4)73 (12.7)54 (21.9)
Skilled workers, machinery operators, and assemblers53 (6.4)41 (7.1)12 (4.9)
Simple labor workers35 (4.3)22 (3.8)13 (5.3)
Unemployed (housewives, students, etc.)265 (32.2)196 (34.0)69 (27.9)
Single householdCategoricalFeatureSingle-person household147 (17.9)104 (18.1)43 (17.4)
Two or more people676 (82.1)472 (81.9)204 (82.6)
Marital statusCategoricalFeatureMarried185 (22.5)129 (22.4)56 (22.7)
Single638 (77.5)447 (77.6)191 (77.3)
Health insuranceCategoricalFeatureNational health insurance (local)213 (25.9)158 (27.4)55 (22.3)
National health insurance (workplace)581 (70.6)397 (68.9)184 (74.5)
Medical aid29 (3.5)21 (3.7)8 (3.2)
Dietary therapyCategoricalFeatureYes248 (30.1)165 (28.7)83 (33.6)
No575 (69.9)411 (71.4)164 (66.4)
Reason for dietary therapyCategoricalFeatureDisease17 (2.1)11 (1.9)6 (2.4)
Weight control219 (26.6)146 (25.4)73 (29.6)
Others12 (1.5)8 (1.4)4 (1.6)
Not applicable575 (69.9)411 (71.3)164 (66.4)
AgeNumericFeature27.20 ± 4.7827.21 ± 4.6827.19 ± 5.02

Values are presented as the mean ± standard deviation or n (%). Percentages may not sum to 100% due to rounding.

Source: 1) Data characteristics Source: 1) Data characteristics

Daily nutrient intake

RESULTS / Dataset composition and participant characteristics: Daily nutrient intake

The results of the nutrient intake data for the total dataset are as follows: water intake (cup) was 5.44 ± 3.49, food intake (g) was 1478.81 ± 723.18, energy intake (kcal) was 1899.42 ± 860.86, and water intake (g) was 1019.16 ± 585.79. Protein intake (g) was 76.03 ± 40.26, fat intake (g) was 59.88 ± 35.89, saturated fatty acid intake (g) was 19.85 ± 13.44, monounsaturated fatty acid intake (g) was 19.80 ± 13.23, and polyunsaturated fatty acid intake (g) was 14.32 ± 9.88.

Intake of n-3 fatty acids (g) was 1.73 ± 1.35, n-6 fatty acids (g) was 12.51 ± 8.70, and cholesterol intake (mg) was 310.56 ± 222.60. Carbohydrate intake (g) was 242.64 ± 110.80, dietary fiber intake (g) was 18.71 ± 10.09, and sugar intake (g) was 58.09 ± 40.32. Key minerals included calcium intake (mg) at 461.68 ± 268.61, phosphorus intake (mg) at 1030.84 ± 471.83, sodium intake (mg) at 3078.38 ± 1692.97, potassium intake (mg) at 2297.17 ± 1059.54, magnesium intake (mg) at 253.65 ± 120.40, iron intake (mg) at 9.22 ± 7.65, and zinc intake (mg) at 9.72 ± 5.60.

For vitamins, vitamin A intake (μgRAE) was 373.23 ± 314.54, vitamin D intake (μg) was 2.92 ± 5.26, vitamin E intake (mg α-TE) was 7.20 ± 3.94, beta-carotene intake (μg) was 2050.29 ± 2203.79, retinol intake (μg) was 199.39 ± 250.25, thiamine intake (mg) was 1.15 ± 0.76, riboflavin intake (mg) was 1.67 ± 0.87, niacin intake (mg) was 13.43 ± 9.53, folate intake (μgDFE) was 248.47 ± 131.54, and vitamin C intake (mg) was 62.23 ± 85.94.

The training and test datasets showed similar nutrient intake patterns, as detailed in Table 2.

Table 2.

Dietary Intake Characteristics of Participants (N = 823)

Variable (/1 day)Total (n = 823)Training data (n = 576)Test data (n = 247)
(Type = numeric, Role = feature)MinMax M ± SDMinMax M ± SDMinMax M ± SD
Water intake (cup)0.0030.005.44 ± 3.490.5030.005.47 ± 3.460.0030.005.37 ± 3.58
Food intake (g)183.706895.631478.81 ± 723.18183.704806.911464.52 ± 698.80273.526895.631512.12 ± 777.52
Energy intake (kcal)264.806757.001899.42 ± 860.86264.805637.901882.74 ± 839.54528.856757.001938.33 ± 909.20
Water intake (g)25.605666.101019.16 ± 585.7925.603798.331006.58 ± 558.5365.475666.091048.49 ± 645.15
Protein intake (g)7.03299.5476.03 ± 40.267.03299.5474.95 ± 40.1721.31253.1878.56 ± 40.44
Fat intake (g)7.71248.9659.88 ± 35.897.71248.9659.71 ± 35.4310.43223.5960.29 ± 37.02
Saturated fatty acid intake (g)2.14100.4819.85 ± 13.442.14100.4820.00 ± 13.602.4275.3019.50 ± 13.06
Monounsaturated fatty acid intake (g)1.7693.7019.80 ± 13.231.7687.1319.88 ± 13.122.5093.7019.61 ± 13.50
Polyunsaturated fatty acid intake (g)0.2590.9714.32 ± 9.880.2560.0213.93 ± 8.881.8190.9715.21 ± 11.85
N-3 fatty acid intake (g)0.0412.501.73 ± 1.350.048.271.65 ± 1.200.0612.501.91 ± 1.63
N-6 fatty acid intake (g)0.2180.8912.51 ± 8.700.2152.3812.21 ± 7.861.6780.8913.22 ± 10.39
Cholesterol intake (mg)0.002447.99310.56 ± 222.600.001392.19300.45 ± 209.050.002447.99334.13 ± 250.26
Carbohydrate intake (g)30.03883.33242.64 ± 110.8030.03883.33240.40 ± 108.0454.53797.07247.87 ± 117.06
Dietary fiber intake (g)0.9968.5618.71 ± 10.090.9968.5618.60 ± 10.023.3457.7618.98 ± 10.24
Sugar intake (g)3.63328.7858.09 ± 40.324.53328.7858.05 ± 41.303.63198.3758.18 ± 38.01
Calcium intake (mg)62.642359.11461.68 ± 268.6162.872359.11456.09 ± 271.4662.641326.26474.72 ± 261.94
Phosphorus intake (mg)140.763467.331030.84 ± 471.83140.763467.331015.69 ± 467.91267.953435.251066.16 ± 479.94
Sodium intake (mg)134.139702.563078.38 ± 1692.97134.139496.703060.87 ± 1673.57238.339702.563119.22 ± 1740.14
Potassium intake (mg)267.268276.792297.17 ± 1059.54267.268276.792284.03 ± 1056.01559.846190.342327.80 ± 1069.24
Magnesium intake (mg)23.22787.94253.65 ± 120.4023.22787.94249.56 ± 116.9253.57780.26263.17 ± 127.88
Iron intake (mg)0.22108.059.22 ± 7.650.22108.059.24 ± 8.481.9126.719.16 ± 5.23
Zinc intake (mg)0.7546.439.72 ± 5.600.7546.439.72 ± 5.641.6835.019.71 ± 5.53
Vitamin A (retinol activity equivalents) intake (μgRAE)14.092969.08373.23 ± 314.5414.092298.14354.15 ± 276.2321.122969.08417.73 ± 386.51
Vitamin D intake (μg)0.0068.982.92 ± 5.260.0068.982.83 ± 5.290.0060.483.14 ± 5.20
Vitamin E intake (mg α-TE)0.7632.907.20 ± 3.940.7624.387.12 ± 3.721.9432.907.38 ± 4.40
Beta-carotene intake (μg)0.7125666.852050.29 ± 2203.790.7115906.431913.97 ± 1942.038.0025666.852368.17 ± 2695.93
Retinol intake (μg)0.002722.48199.39 ± 250.250.002113.19191.70 ± 220.620.002722.48217.33 ± 308.26
Thiamine intake (mg)0.127.791.15 ± 0.760.127.791.17 ± 0.780.205.831.10 ± 0.71
Riboflavin intake (mg)0.266.531.67 ± 0.870.265.961.65 ± 0.840.276.531.70 ± 0.95
Niacin intake (mg)0.04124.4413.43 ± 9.530.0469.1013.17 ± 8.511.55124.4414.06 ± 11.58
Folate intake (μgDFE)19.891148.79248.47 ± 131.5419.89814.66246.97 ± 128.6836.601148.79251.97 ± 138.18
Vitamin C intake (mg)0.00901.6762.23 ± 85.940.00613.4859.53 ± 76.160.13901.6768.54 ± 105.18

Min = Minimum; Max = Maximum; M = Mean; SD = Standard deviation; g = Grams; kcal = Kilocalories; μgRAE = Micrograms retinol activity equivalent; α-TE = Alpha-tocopherol equivalents; μgDFE = Micrograms dietary folate equivalent.

Source: 2) Daily nutrient intake Source: 2) Daily nutrient intake Source: 2) Daily nutrient intake Source: 2) Daily nutrient intake

RESULTS: Prediction accuracy of algorithm models

To verify the prediction accuracy of the algorithm models using the training data, we compared the models using the performance metrics: area under the curve (AUC), classification accuracy (CA), the harmonic mean of precision and recall (F1 score), precision, and recall. The results are shown in Table 3. The logistic regression model recorded an AUC of 0.61, CA of 0.83, F1 score of 0.80, precision of 0.77, and recall of 0.83. The kNN model showed an AUC of 0.58, CA of 0.84, F1 score of 0.80, precision of 0.77, and recall of 0.84.

The random forest model recorded an AUC of 0.61, CA of 0.86, F1 score of 0.80, precision of 0.85, and recall of 0.86.

In addition, according to the analysis of variable importance using the Gini index, age (.01), thiamine intake (mg) (.01), and water intake (cup) (.01) ranked as the top variables, and the top 10 variables are presented in Figure 2.

Table 3.

Prediction Accuracy Validation for the Training and Test Datasets

DatasetModelAUCCAF1PrecisionRecall
Training dataLogistic regression.61.83.80.77.83
kNN.58.84.80.77.84
Random forest.61.86.80.85.86
Test dataRandom forest.49.84.77.71.84
Logistic regression.54.82.76.71.82
kNN.47.83.77.74.83

AUC = Area under the curve; CA = Classification accuracy; F1 = Harmonic mean of precision and recall; kNN = k-Nearest Neighbors.

Source: 2. Prediction accuracy of algorithm models Source: 2. Prediction accuracy of algorithm models Source: 2. Prediction accuracy of algorithm models

Validation of prediction accuracy of algorithm models

RESULTS: Validation of prediction accuracy of algorithm models

The validation results of the prediction accuracy of the algorithm models using the test data are shown in Table 3. The random forest model recorded an AUC of 0.49, CA of 0.84, F1 score of 0.77, precision of 0.71, and recall of 0.84. The logistic regression model showed an AUC of 0.54, CA of 0.82, F1 score of 0.76, precision of 0.71, and recall of 0.82. The kNN model recorded an AUC of 0.47, CA of 0.83, F1 score of 0.77, precision of 0.74, and recall of 0.83.

Table 3.

Prediction Accuracy Validation for the Training and Test Datasets

DatasetModelAUCCAF1PrecisionRecall
Training dataLogistic regression.61.83.80.77.83
kNN.58.84.80.77.84
Random forest.61.86.80.85.86
Test dataRandom forest.49.84.77.71.84
Logistic regression.54.82.76.71.82
kNN.47.83.77.74.83

AUC = Area under the curve; CA = Classification accuracy; F1 = Harmonic mean of precision and recall; kNN = k-Nearest Neighbors.

Source: 3. Validation of prediction accuracy of algorithm models Source: 3. Validation of prediction accuracy of algorithm models

DISCUSSION

Based on the key results, the following discussion is provided.

In the total, training, and test datasets, the proportion of individuals with prediabetes or higher was consistently 14%–15%. Although this study excluded missing data from individuals who did not participate in the dietary intake survey, did not undergo blood tests, or did not respond, which somewhat limits the generalizability to the entire Korean population, the Korean Diabetes Association has also reported that the prevalence of prediabetes is increasing among younger adults, highlighting the need for management as the duration of diabetes may be prolonged [3].

This indicates that various prediction methods are necessary for prevention and early intervention.

In this study, dietary intake survey data were applied to three machine learning models—logistic regression, kNN, and random forest—to predict individuals with prediabetes or higher. AUC is used to assess how well a model distinguishes between individuals with prediabetes and normal individuals, with values closer to 1 indicating better model performance. Precision represents the proportion of true positive results out of all positive predictions, while recall measures the proportion of actual positive cases that were correctly identified. These metrics help evaluate a model’s prediction accuracy and sensitivity [16,17].

Among the models, random forest achieved the highest performance, with a classification accuracy of 86%, indicating that the model can accurately distinguish between prediabetic and normal individuals. The precision of the random forest model was 85%, meaning it had a low rate of false positives, and the recall was 84%, indicating a well-balanced trade-off between precision and recall [16,17].

The logistic regression model showed a classification accuracy of .83, slightly lower than that of random forest, with a precision of .77 and a recall of .71. This suggests that logistic regression has a higher rate of false positives and may miss some individuals with prediabetes. And the kNN model demonstrated a classification accuracy of .84, with a precision of .77 and a recall of .84. While its recall is similar to that of random forest, the lower precision suggests that the kNN model may generate more false positives, potentially leading to unnecessary treatments or interventions [16,17].

These results indicate that random forest offers the best balance among the three models and is the most reliable tool for predicting prediabetes in young adults. By using this model, early intervention can be achieved, reducing unnecessary treatments and diagnostic errors.

In terms of AUC, which was employed to evaluate how well the model distinguishes between individuals with prediabetes and normal individuals [18], the logistic regression model demonstrated the highest value. An AUC value close to 1 indicates excellent classification performance, whereas a value below 0.5 suggests no classification ability [19]. As the logistic regression model showed an AUC value greater than 0.5, this suggests that this model provides more consistent performance compared with the other models.

Although the logistic regression model showed somewhat lower performance in AUC and precision in the prediction validation, its overall accuracy was still acceptable. Synthesizing the results across models confirmed that the random forest model may outperform in managing the complexity of the data, while both the logistic regression and kNN models were found to maintain adequate predictive performance, suggesting their potential applicability in specific contexts.

Meanwhile, the random forest model has the advantage of handling complex interactions between various variables [20], making it suitable for managing complicated variables such as dietary intake data. However, to precisely understand the model's prediction patterns, it is necessary to refer to the variable importance determined by the Gini index [21]. Among such variables, age, followed by thiamine and water, contributed the most to predicting individuals with prediabetes or higher.

Due to the nature of machine learning analysis, it is difficult to determine the precise directionality of the variables. However, based on previous studies, it can be inferred that as individuals advance in age, insulin resistance increases and metabolic rate decreases, increasing the likelihood of progressing to prediabetes [22]. In particular, adults aged 19–35 are in a phase of life whereby lifestyle changes often occur simultaneously [23], possibly leading to increased insulin resistance and difficulty in blood sugar regulation.

These factors likely explain why age emerged as an important variable in the machine learning model. Additionally, thiamine plays a crucial role in carbohydrate metabolism by acting as a coenzyme in the conversion of glucose to energy. It supports insulin secretion and helps reduce oxidative stress and inflammation, which are exacerbated by hyperglycemia and contribute to diabetic complications. Research has shown that thiamine enhances hexokinase activity, increases insulin secretion, and restores normal enzyme function in the liver and kidneys of diabetic models, thereby alleviating pathological abnormalities associated with diabetes [24].

Therefore, a deficiency in thiamine may result in impaired insulin secretion, leading to problems in glucose metabolism, and potentially accelerating the progression to prediabetes. This likely explains why thiamine intake emerged as an important variable in this study. Similarly, adequate water intake is known to help in maintaining stable blood sugar levels by diluting glucose concentrations in the bloodstream [25], which may account for its significance as a key variable in the machine learning model.

By considering the connection between physiological mechanisms and individual characteristics, as well as dietary intake patterns, blood sugar regulation can be approached from a physiological perspective based on the consumption of specific nutrients. Although the contribution scores of carbohydrates and sugar intake were low in this study, these nutrients rapidly increase blood glucose levels, as previous studies have shown. However, as various nutrients such as fats and dietary fibers interact in a complex manner to influence blood glucose regulation [26], by utilizing the random forest machine learning model, which employs an ensemble learning method with multiple decision trees to learn dietary patterns, it is expected to effectively reflect multidimensional interactions and provide more accurate predictions of prediabetes.

This study highlights the utility of machine learning models for predicting prediabetes in young adults using dietary intake data, which are relatively easy to collect. According to previous studies, while older adults may develop prediabetes due to age-related metabolic changes, younger adults are primarily influenced by lifestyle factors such as diet and physical activity [22,23]. The results of this study emphasize the importance of addressing these factors early in life to prevent the progression to diabetes.

This finding has significant implications for public health policy development, as it enables early intervention for the prevention of chronic diseases among young adults, a group often overlooked in healthcare. Key variables identified in this study, such as age, thiamine, and water, play a critical role in predicting prediabetes and should be incorporated into future predictive models. By properly utilizing these variables, the predictive performance of the models can be further enhanced, allowing for more accurate predictions of prediabetes and thereby strengthening early intervention and prevention strategies.

Overall, this study contributes to the theoretical development of disease prevention and health management strategies by validating a model for predicting prediabetes. It also provides a foundation for future research by analyzing multidimensional variable interactions, offering new insights into diabetes prediction in young adults. Practically, this study offers foundational data that nurses can use as a tool for early intervention and personalized health education, helping to improve patient health outcomes effectively.

However, the relatively lower performance of the random forest model in terms of AUC and precision indicates that caution is needed when considering its clinical application. Future research should aim to enhance the model's reliability and conduct further validation. While the 24-hour dietary recall method provides detailed nutritional data, it has the limitation of relying on participants' memory, which may reduce accuracy [27]. Therefore, future studies could improve the model by incorporating additional data, including psychological factors such as stress and depression, as well as physical activity and lifestyle factors that influence diabetes risk.

Moreover, this study focused exclusively on young adults aged 19 to 35, limiting the generalizability of the findings to other age groups. As such, care must be taken when applying the results to the prediction of prediabetes across different age ranges.

Source: DISCUSSION Source: DISCUSSION Source: DISCUSSION Source: DISCUSSION Source: DISCUSSION Source: DISCUSSION Source: DISCUSSION Source: DISCUSSION Source: DISCUSSION Source: DISCUSSION

RESULTS

1. Dataset composition and participant characteristics

1) Data characteristics

In the total dataset, 14.7% were classified as prediabetic or diabetes, with 14.2% in the training dataset and 15.8% in the test dataset. Regarding sex, the total dataset comprised 45.3% male and 54.7% female, while the training dataset had 44.8% male and the test dataset had 46.6% male. For education level, 57.8% of the total dataset had a university education or higher, with 59.2% in the training dataset and 54.7% in the test dataset. In terms of occupation, 25.4% of the total dataset were professionals, and 32.2% were unemployed; the training dataset had 25.5% professionals and 34.0% unemployed, while the test dataset had 25.1% professionals and 27.9% unemployed.

As for household size, 82.1% of the total dataset lived in households of two or more people, with 81.9% in the training dataset and 82.6% in the test dataset. Marital status showed 22.5% of the total dataset were married, compared to 22.4% in the training dataset and 22.7% in the test dataset (Table 1).

2) Daily nutrient intake

The results of the nutrient intake data for the total dataset are as follows: water intake (cup) was 5.44 ± 3.49, food intake (g) was 1478.81 ± 723.18, energy intake (kcal) was 1899.42 ± 860.86, and water intake (g) was 1019.16 ± 585.79. Protein intake (g) was 76.03 ± 40.26, fat intake (g) was 59.88 ± 35.89, saturated fatty acid intake (g) was 19.85 ± 13.44, monounsaturated fatty acid intake (g) was 19.80 ± 13.23, and polyunsaturated fatty acid intake (g) was 14.32 ± 9.88.

Intake of n-3 fatty acids (g) was 1.73 ± 1.35, n-6 fatty acids (g) was 12.51 ± 8.70, and cholesterol intake (mg) was 310.56 ± 222.60. Carbohydrate intake (g) was 242.64 ± 110.80, dietary fiber intake (g) was 18.71 ± 10.09, and sugar intake (g) was 58.09 ± 40.32. Key minerals included calcium intake (mg) at 461.68 ± 268.61, phosphorus intake (mg) at 1030.84 ± 471.83, sodium intake (mg) at 3078.38 ± 1692.97, potassium intake (mg) at 2297.17 ± 1059.54, magnesium intake (mg) at 253.65 ± 120.40, iron intake (mg) at 9.22 ± 7.65, and zinc intake (mg) at 9.72 ± 5.60.

For vitamins, vitamin A intake (μgRAE) was 373.23 ± 314.54, vitamin D intake (μg) was 2.92 ± 5.26, vitamin E intake (mg α-TE) was 7.20 ± 3.94, beta-carotene intake (μg) was 2050.29 ± 2203.79, retinol intake (μg) was 199.39 ± 250.25, thiamine intake (mg) was 1.15 ± 0.76, riboflavin intake (mg) was 1.67 ± 0.87, niacin intake (mg) was 13.43 ± 9.53, folate intake (μgDFE) was 248.47 ± 131.54, and vitamin C intake (mg) was 62.23 ± 85.94.

The training and test datasets showed similar nutrient intake patterns, as detailed in Table 2.

2. Prediction accuracy of algorithm models

To verify the prediction accuracy of the algorithm models using the training data, we compared the models using the performance metrics: area under the curve (AUC), classification accuracy (CA), the harmonic mean of precision and recall (F1 score), precision, and recall. The results are shown in Table 3. The logistic regression model recorded an AUC of 0.61, CA of 0.83, F1 score of 0.80, precision of 0.77, and recall of 0.83. The kNN model showed an AUC of 0.58, CA of 0.84, F1 score of 0.80, precision of 0.77, and recall of 0.84.

The random forest model recorded an AUC of 0.61, CA of 0.86, F1 score of 0.80, precision of 0.85, and recall of 0.86.

In addition, according to the analysis of variable importance using the Gini index, age (.01), thiamine intake (mg) (.01), and water intake (cup) (.01) ranked as the top variables, and the top 10 variables are presented in Figure 2.

3. Validation of prediction accuracy of algorithm models

The validation results of the prediction accuracy of the algorithm models using the test data are shown in Table 3. The random forest model recorded an AUC of 0.49, CA of 0.84, F1 score of 0.77, precision of 0.71, and recall of 0.84. The logistic regression model showed an AUC of 0.54, CA of 0.82, F1 score of 0.76, precision of 0.71, and recall of 0.82. The kNN model recorded an AUC of 0.47, CA of 0.83, F1 score of 0.77, precision of 0.74, and recall of 0.83.

Table 1.

General Characteristics of Participants (N = 823)

VariablesTypeRoleCategoriesTotal (n = 823)Training data (n = 576)Test data (n = 247)
DiabetesCategoricalTargetPrediabetes or diabetes121 (14.7)82 (14.2)39 (15.8)
Normal702 (85.3)494 (85.8)208 (84.2)
SexCategoricalFeatureMen373 (45.3)258 (44.8)115 (46.6)
Women450 (54.7)318 (55.2)132 (53.4)
Education levelCategoricalFeatureElementary and below3 (0.4)2 (0.3)1 (0.4)
Middle school8 (1.0)4 (0.7)4 (1.6)
High school336 (40.8)229 (39.8)107 (43.3)
College or higher476 (57.8)341 (59.2)135 (54.7)
OccupationCategoricalFeatureManager, professional and related workers209 (25.4)147 (25.5)62 (25.1)
Office workers134 (16.3)97 (16.8)37 (15.0)
Service and sales workers127 (15.4)73 (12.7)54 (21.9)
Skilled workers, machinery operators, and assemblers53 (6.4)41 (7.1)12 (4.9)
Simple labor workers35 (4.3)22 (3.8)13 (5.3)
Unemployed (housewives, students, etc.)265 (32.2)196 (34.0)69 (27.9)
Single householdCategoricalFeatureSingle-person household147 (17.9)104 (18.1)43 (17.4)
Two or more people676 (82.1)472 (81.9)204 (82.6)
Marital statusCategoricalFeatureMarried185 (22.5)129 (22.4)56 (22.7)
Single638 (77.5)447 (77.6)191 (77.3)
Health insuranceCategoricalFeatureNational health insurance (local)213 (25.9)158 (27.4)55 (22.3)
National health insurance (workplace)581 (70.6)397 (68.9)184 (74.5)
Medical aid29 (3.5)21 (3.7)8 (3.2)
Dietary therapyCategoricalFeatureYes248 (30.1)165 (28.7)83 (33.6)
No575 (69.9)411 (71.4)164 (66.4)
Reason for dietary therapyCategoricalFeatureDisease17 (2.1)11 (1.9)6 (2.4)
Weight control219 (26.6)146 (25.4)73 (29.6)
Others12 (1.5)8 (1.4)4 (1.6)
Not applicable575 (69.9)411 (71.3)164 (66.4)
AgeNumericFeature27.20 ± 4.7827.21 ± 4.6827.19 ± 5.02

Values are presented as the mean ± standard deviation or n (%). Percentages may not sum to 100% due to rounding.

Table 2.

Dietary Intake Characteristics of Participants (N = 823)

Variable (/1 day)Total (n = 823)Training data (n = 576)Test data (n = 247)
(Type = numeric, Role = feature)MinMax M ± SDMinMax M ± SDMinMax M ± SD
Water intake (cup)0.0030.005.44 ± 3.490.5030.005.47 ± 3.460.0030.005.37 ± 3.58
Food intake (g)183.706895.631478.81 ± 723.18183.704806.911464.52 ± 698.80273.526895.631512.12 ± 777.52
Energy intake (kcal)264.806757.001899.42 ± 860.86264.805637.901882.74 ± 839.54528.856757.001938.33 ± 909.20
Water intake (g)25.605666.101019.16 ± 585.7925.603798.331006.58 ± 558.5365.475666.091048.49 ± 645.15
Protein intake (g)7.03299.5476.03 ± 40.267.03299.5474.95 ± 40.1721.31253.1878.56 ± 40.44
Fat intake (g)7.71248.9659.88 ± 35.897.71248.9659.71 ± 35.4310.43223.5960.29 ± 37.02
Saturated fatty acid intake (g)2.14100.4819.85 ± 13.442.14100.4820.00 ± 13.602.4275.3019.50 ± 13.06
Monounsaturated fatty acid intake (g)1.7693.7019.80 ± 13.231.7687.1319.88 ± 13.122.5093.7019.61 ± 13.50
Polyunsaturated fatty acid intake (g)0.2590.9714.32 ± 9.880.2560.0213.93 ± 8.881.8190.9715.21 ± 11.85
N-3 fatty acid intake (g)0.0412.501.73 ± 1.350.048.271.65 ± 1.200.0612.501.91 ± 1.63
N-6 fatty acid intake (g)0.2180.8912.51 ± 8.700.2152.3812.21 ± 7.861.6780.8913.22 ± 10.39
Cholesterol intake (mg)0.002447.99310.56 ± 222.600.001392.19300.45 ± 209.050.002447.99334.13 ± 250.26
Carbohydrate intake (g)30.03883.33242.64 ± 110.8030.03883.33240.40 ± 108.0454.53797.07247.87 ± 117.06
Dietary fiber intake (g)0.9968.5618.71 ± 10.090.9968.5618.60 ± 10.023.3457.7618.98 ± 10.24
Sugar intake (g)3.63328.7858.09 ± 40.324.53328.7858.05 ± 41.303.63198.3758.18 ± 38.01
Calcium intake (mg)62.642359.11461.68 ± 268.6162.872359.11456.09 ± 271.4662.641326.26474.72 ± 261.94
Phosphorus intake (mg)140.763467.331030.84 ± 471.83140.763467.331015.69 ± 467.91267.953435.251066.16 ± 479.94
Sodium intake (mg)134.139702.563078.38 ± 1692.97134.139496.703060.87 ± 1673.57238.339702.563119.22 ± 1740.14
Potassium intake (mg)267.268276.792297.17 ± 1059.54267.268276.792284.03 ± 1056.01559.846190.342327.80 ± 1069.24
Magnesium intake (mg)23.22787.94253.65 ± 120.4023.22787.94249.56 ± 116.9253.57780.26263.17 ± 127.88
Iron intake (mg)0.22108.059.22 ± 7.650.22108.059.24 ± 8.481.9126.719.16 ± 5.23
Zinc intake (mg)0.7546.439.72 ± 5.600.7546.439.72 ± 5.641.6835.019.71 ± 5.53
Vitamin A (retinol activity equivalents) intake (μgRAE)14.092969.08373.23 ± 314.5414.092298.14354.15 ± 276.2321.122969.08417.73 ± 386.51
Vitamin D intake (μg)0.0068.982.92 ± 5.260.0068.982.83 ± 5.290.0060.483.14 ± 5.20
Vitamin E intake (mg α-TE)0.7632.907.20 ± 3.940.7624.387.12 ± 3.721.9432.907.38 ± 4.40
Beta-carotene intake (μg)0.7125666.852050.29 ± 2203.790.7115906.431913.97 ± 1942.038.0025666.852368.17 ± 2695.93
Retinol intake (μg)0.002722.48199.39 ± 250.250.002113.19191.70 ± 220.620.002722.48217.33 ± 308.26
Thiamine intake (mg)0.127.791.15 ± 0.760.127.791.17 ± 0.780.205.831.10 ± 0.71
Riboflavin intake (mg)0.266.531.67 ± 0.870.265.961.65 ± 0.840.276.531.70 ± 0.95
Niacin intake (mg)0.04124.4413.43 ± 9.530.0469.1013.17 ± 8.511.55124.4414.06 ± 11.58
Folate intake (μgDFE)19.891148.79248.47 ± 131.5419.89814.66246.97 ± 128.6836.601148.79251.97 ± 138.18
Vitamin C intake (mg)0.00901.6762.23 ± 85.940.00613.4859.53 ± 76.160.13901.6768.54 ± 105.18

Min = Minimum; Max = Maximum; M = Mean; SD = Standard deviation; g = Grams; kcal = Kilocalories; μgRAE = Micrograms retinol activity equivalent; α-TE = Alpha-tocopherol equivalents; μgDFE = Micrograms dietary folate equivalent.

Table 3.

Prediction Accuracy Validation for the Training and Test Datasets

DatasetModelAUCCAF1PrecisionRecall
Training dataLogistic regression.61.83.80.77.83
kNN.58.84.80.77.84
Random forest.61.86.80.85.86
Test dataRandom forest.49.84.77.71.84
Logistic regression.54.82.76.71.82
kNN.47.83.77.74.83

AUC = Area under the curve; CA = Classification accuracy; F1 = Harmonic mean of precision and recall; kNN = k-Nearest Neighbors.

Source: RESULTS Source: RESULTS Source: RESULTS Source: RESULTS Source: RESULTS Source: RESULTS

CONCLUSION

In this study, we compared machine learning models to predict prediabetes in young adults in Korea using dietary intake data from the KNHANES. Among the models evaluated, the random forest model demonstrated the highest predictive accuracy and precision compared with logistic regression and kNN models. The key predictive variables were age, thiamine intake, and water intake, which contributed significantly to the model's performance. Based on these results, we confirmed the feasibility of predicting prediabetes in young adults and provided foundational data for early intervention in diabetes prevention.

However, given the need for improvement in certain performance metrics, such as AUC, we recommend that future studies incorporate additional variables, such as physical activity, lifestyle factors, and psychological variables, to enhance the predictive power of the models.

Source: CONCLUSION
Authors’ abstract

Purpose

This study aimed to develop and compare machine learning models for predicting prediabetes in young adults in Korea using dietary intake data and to identify the most effective model.

Methods

Data from the ninth Korea National Health and Nutrition Examination Survey were used, with 823 participants aged 19–35 years selected after excluding those with missing data. Logistic regression, k-nearest neighbors, and random forest models were applied to predict prediabetes, and the analysis was conducted using the Orange 3.5 program. Five-fold cross-validation was performed to reduce performance variability, and test data were used for final model validation.

Results

In the dataset, 14%–15% of participants were classified as having prediabetes. The random forest model showed the highest performance in terms of classification accuracy, harmonic mean of precision and recall, and precision. Logistic regression had the highest performance regarding the model’s ability to distinguish between individuals with and without prediabetes. Age, thiamine intake, and water intake emerged as the most important predictors.

Conclusion

This study demonstrated the utility of using dietary intake data to predict prediabetes in young adults. The random forest model provided the highest prediction accuracy, supporting early detection and intervention, which could help to reduce unnecessary treatment. This highlights nurses’ important role in educating patients about lifestyle changes and implementing preventive care. Future studies should incorporate additional factors, such as psychological and lifestyle variables, to improve the model's performance.

Read the full paper

INTRODUCTION

Diabetes mellitus is a metabolic disorder characterized by chronically elevated blood glucose levels due to insufficient insulin secretion or insulin resistance. According to the World Health Organization, inadequate long-term blood glucose control can lead to severe complications, affecting the nervous system, kidneys, and cardiovascular system [1]. In South Korea, diabetes is considered a significant public health issue. While the incidence of diabetes among individuals aged 40 years and older has decreased, with a drop of approximately 0.1% annually from 2006 to 2015, national cohort studies show a concerning rise in diabetes prevalence among young adults aged 20–39 years.

Specifically, the rate increased from 0.5 to 0.7 per 1,000 individuals in the 20–29 age group and from 2.0 to 2.6 per 1,000 in the 30–39 age group, highlighting the need for increased societal attention [2].

The prevalence of prediabetes, a condition where blood sugar levels are higher than normal but not yet high enough to be classified as diabetes, has also been rapidly increasing among young adults in South Korea [3]. Individuals with prediabetes are at high risk of the condition progressing to diabetes. Early intervention, including lifestyle modifications, during this stage, can effectively prevent the onset of diabetes. Therefore, accurately predicting prediabetes in individuals is crucial for public health strategies aimed at diabetes prevention [4].

Diabetes is one of the chronic diseases caused by lifestyle factors, and the primary reason for the increased risk of diabetes in young adults can be attributed to lifestyle changes that lead to obesity [5]. During the coronavirus disease 2019 pandemic, social distancing and the increase in remote work resulted in decreased physical activity, accompanied by mental health issues such as depression and anxiety. These factors contributed to unhealthy eating habits and the proliferation of irregular diets, which in turn increased the rate of obesity [6,7].

Therefore, assessing nutritional status can provide valuable information for predicting diabetes or prediabetes.

However, accurately assessing dietary intake is a challenging task. Therefore, methodologies such as the 24-hour dietary recall are useful for comprehensively evaluating nutrient intake [8]. The 24-hour dietary recall requires participants to meticulously record all foods and beverages consumed in the past 24 hours, making it a reliable tool for precisely assessing habitual dietary patterns and nutrient intake [9]. The method enables the collection and analysis of important data related to an individual's diet, including carbohydrates, sugars, fiber, and protein, to inform preventive interventions for diabetes [10].

Therefore, dietary intake data obtained through 24-hour dietary recalls can provide valuable information for predicting individuals with prediabetes.

Previous studies have primarily focused on causal analyses and meta-analyses that explore the relationship between specific nutrients and diabetes [11]. While these approaches are advantageous for evaluating the interactions between single variables, they may yield lower prediction accuracy in complex data environments. By contrast, prediction modeling using machine learning accounts for the interactions among multiple variables and employs algorithms capable of efficiently addressing non-linearity and high dimensionality. This enables machine learning models to maintain high predictive accuracy even with complex datasets, capturing intricate patterns that might be overlooked in causal analysis to support better decision-making [12].

Since diabetes can be influenced by a combination of factors beyond nutrition, it is essential to use machine learning models that can integrate and analyze these various variables.

Therefore, integrating various dietary intake data with individual characteristics and applying machine learning algorithms can enable high-accuracy predictions for identifying individuals with prediabetes. This study aims to verify a model for the early prediction of prediabetes in young adults by utilizing dietary intake data, which is easier to collect than blood tests. This model will provide a basis for early interventions for improving the health management of young adults.

Purpose

This study aims to verify the effectiveness of machine learning models for predicting individuals with prediabetes using dietary intake data from young adults in Korea and to propose the most effective prediction model.

METHODS

1. Study design

This study is a secondary data analysis using the first-year data of the 9th Korea National Health and Nutrition Examination Survey (KNHANES), which was released by the Korea Disease Control and Prevention Agency (KDCA) in January 2024.

2. Samples

1) KNHANES

The KNHANES was conducted with the approval of the Institutional Review Board of the KDCA (2018-01-03-4C-A), and the researcher obtained permission from the KDCA to download and analyze the anonymized data for research purposes. For the analysis, this study utilized data from the health and nutrition surveys and medical examinations and integrated data from the various surveys within the same cycle. After aligning IDs, only data without missing values were selected for analysis. Although the KNHANES data were collected using a complex sampling design, which recommends applying complex sample analysis, this study primarily aims to predict and learn data patterns using machine learning rather than estimating specific population statistics.

Therefore, sampling weights were not applied [13].

3. Data Collection and instruments

1) Data selection

Out of the total 453,888 data points provided in the raw dataset, 64,043 data points corresponding to individuals aged 19 to 35 years were selected. After excluding data with missing values in at least one of the medical examination, health survey, or nutrition survey datasets, a total of 823 data points were preprocessed and used for analysis. Of the data, 70% was randomly selected using Excel's random function and used as machine learning training data, while the remaining 30% was used as test data [14].

2) Prediabetes and diabetes classification

The classification of individuals with prediabetes and diabetes was based on fasting blood glucose and HbA1c results from the medical examination data. Diabetes was defined as having a fasting blood glucose level of 126 mg/dL or higher, having received a diagnosis from a doctor, taking glucose-lowering medications, using insulin injections, or having an HbA1c level of 6.5% or higher. Prediabetes was defined as having a fasting blood glucose level between 100 and 125 mg/dL or an HbA1c level between 5.7% and 6.4%, without meeting the criteria for diabetes [13].

Since individuals with prediabetes are at a high risk of progressing to diabetes, these two conditions were combined to enhance the predictive power of the model. In this study, diabetes and prediabetes were combined into a single category referred to as “prediabetes or higher,” which was compared with the normal group. Individuals who did not meet these criteria were classified as normal.

3) General characteristics

The general characteristics were analyzed using data from the health survey, including sex, age, educational level, occupation, whether the participant lived alone, marital status, and type of health insurance. Sex was used as recorded as biological sex in the raw data, while educational level, occupation, marital status, and type of health insurance were used as categorical variables based on recoded categories in the raw data. Age was used as a continuous variable.

4) Dietary intake survey

The dietary intake survey utilized the 24-hour dietary recall data from the nutrition survey. Information regarding whether and why the participant followed a specific diet was used as categorical variables, as recorded in the raw data. The processed data on nutrient intake, as provided by the survey, were used directly as independent variables. The variables included daily food intake (g), daily energy intake (kcal), daily water intake (g), daily protein intake (g), daily fat intake (g), daily saturated fatty acid intake (g), daily monounsaturated fatty acid intake (g), daily polyunsaturated fatty acid intake (g), daily n-3 fatty acid intake (g), daily n-6 fatty acid intake (g), daily cholesterol intake (mg), daily carbohydrate intake (g), daily dietary fiber intake (g), daily sugar intake (g), daily calcium intake (mg), daily phosphorus intake (mg), daily sodium intake (mg), daily potassium intake (mg), daily magnesium intake (mg), daily iron intake (mg), daily zinc intake (mg), vitamin A (retinol activity equivalent) intake (μg RAE), daily vitamin D intake (μg), daily vitamin E intake (mg α-TE), daily beta-carotene intake (μg), daily retinol intake (μg), daily thiamine intake (mg), daily riboflavin intake (mg), daily niacin intake (mg), daily folate intake (μg), and daily vitamin C intake (mg).

4. Machine learning model

1) Logistic regression

Logistic regression is used to predict the probability of a dependent variable by considering the effects of independent variables in binary classification problems. In particular, this model is useful for producing dichotomous outcomes, such as the presence or absence of a disease, and is commonly applied in various fields including healthcare and marketing. The logistic function, which forms an S-shaped curve, is used to transform the output into a probability value between 0 and 1. Based on this probability, the data is classified, and the model's performance is evaluated using metrics such as accuracy, specificity, precision, recall, and the F1 score (the harmonic mean of precision and recall).

A performance value closer to 1 indicates that the model exhibits high diagnostic accuracy [14].

2) k-Nearest Neighbors (kNN)

kNN is a widely used classification algorithm in supervised learning. This algorithm is instance-based, meaning it does not require the creation of a separate model but classifies or predicts new data points based on the k-nearest neighbors from the training data. It operates as a non-parametric method, using distance-based calculations such as Euclidean distance or Manhattan distance to determine proximity. kNN is more beneficial in scenarios with smaller datasets rather than large-scale data owing to its simplicity and ease of implementation [14].

3) Random forest

Random forest is a widely used supervised learning algorithm for both classification and regression tasks. This model trains multiple decision trees independently and generalizes their predictions to create an optimal model, often referred to as an ensemble model. Averaging the results or using a majority vote determines the final prediction. Each tree is trained through random sampling of the data and feature selection to prevent overfitting and improve the model's generalization performance. The advantages of random forest include high prediction accuracy, stability, and strong handling of non-linear data [14].

5. Data analysis

This study employed the Orange 3.5 program to analyze a diabetes prediction model based on dietary intake data. Orange is an open-source data mining and machine learning tool that allows for easy data preprocessing, visualization, modeling, and evaluation. It provides an intuitive interface for efficiently managing complex data analyses [15].

To evaluate the performance of the models, a five-fold cross-validation was conducted, thereby reducing variance due to data partitioning and verifying the model's generalization capability. After cross-validation, a separate test set was used to evaluate whether the model avoided overfitting and maintained consistent performance on new data. This dual-validation process ensured the stability of the model and its practical applicability (Figure 1).

6. Ethical Considerations

This study is a secondary data analysis utilizing the first-year data from the 9th Korea National Health and Nutrition Examination Survey (KNHANES), publicly released by the Korea Disease Control and Prevention Agency (KDCA). The KNHANES received ethical approval from the Institutional Review Board (IRB) of the KDCA (Approval No: 2018-01-03-4C-A). De-identified data were provided to the researchers upon official authorization for research purposes, ensuring the protection of participant confidentiality. This study adhered to the ethical principles outlined in the Declaration of Helsinki.

As a secondary data analysis of anonymized datasets, additional IRB approval was not required.

RESULTS

1. Dataset composition and participant characteristics

1) Data characteristics

In the total dataset, 14.7% were classified as prediabetic or diabetes, with 14.2% in the training dataset and 15.8% in the test dataset. Regarding sex, the total dataset comprised 45.3% male and 54.7% female, while the training dataset had 44.8% male and the test dataset had 46.6% male. For education level, 57.8% of the total dataset had a university education or higher, with 59.2% in the training dataset and 54.7% in the test dataset. In terms of occupation, 25.4% of the total dataset were professionals, and 32.2% were unemployed; the training dataset had 25.5% professionals and 34.0% unemployed, while the test dataset had 25.1% professionals and 27.9% unemployed.

As for household size, 82.1% of the total dataset lived in households of two or more people, with 81.9% in the training dataset and 82.6% in the test dataset. Marital status showed 22.5% of the total dataset were married, compared to 22.4% in the training dataset and 22.7% in the test dataset (Table 1).

2) Daily nutrient intake

The results of the nutrient intake data for the total dataset are as follows: water intake (cup) was 5.44 ± 3.49, food intake (g) was 1478.81 ± 723.18, energy intake (kcal) was 1899.42 ± 860.86, and water intake (g) was 1019.16 ± 585.79. Protein intake (g) was 76.03 ± 40.26, fat intake (g) was 59.88 ± 35.89, saturated fatty acid intake (g) was 19.85 ± 13.44, monounsaturated fatty acid intake (g) was 19.80 ± 13.23, and polyunsaturated fatty acid intake (g) was 14.32 ± 9.88.

Intake of n-3 fatty acids (g) was 1.73 ± 1.35, n-6 fatty acids (g) was 12.51 ± 8.70, and cholesterol intake (mg) was 310.56 ± 222.60. Carbohydrate intake (g) was 242.64 ± 110.80, dietary fiber intake (g) was 18.71 ± 10.09, and sugar intake (g) was 58.09 ± 40.32. Key minerals included calcium intake (mg) at 461.68 ± 268.61, phosphorus intake (mg) at 1030.84 ± 471.83, sodium intake (mg) at 3078.38 ± 1692.97, potassium intake (mg) at 2297.17 ± 1059.54, magnesium intake (mg) at 253.65 ± 120.40, iron intake (mg) at 9.22 ± 7.65, and zinc intake (mg) at 9.72 ± 5.60.

For vitamins, vitamin A intake (μgRAE) was 373.23 ± 314.54, vitamin D intake (μg) was 2.92 ± 5.26, vitamin E intake (mg α-TE) was 7.20 ± 3.94, beta-carotene intake (μg) was 2050.29 ± 2203.79, retinol intake (μg) was 199.39 ± 250.25, thiamine intake (mg) was 1.15 ± 0.76, riboflavin intake (mg) was 1.67 ± 0.87, niacin intake (mg) was 13.43 ± 9.53, folate intake (μgDFE) was 248.47 ± 131.54, and vitamin C intake (mg) was 62.23 ± 85.94.

The training and test datasets showed similar nutrient intake patterns, as detailed in Table 2.

2. Prediction accuracy of algorithm models

To verify the prediction accuracy of the algorithm models using the training data, we compared the models using the performance metrics: area under the curve (AUC), classification accuracy (CA), the harmonic mean of precision and recall (F1 score), precision, and recall. The results are shown in Table 3. The logistic regression model recorded an AUC of 0.61, CA of 0.83, F1 score of 0.80, precision of 0.77, and recall of 0.83. The kNN model showed an AUC of 0.58, CA of 0.84, F1 score of 0.80, precision of 0.77, and recall of 0.84.

The random forest model recorded an AUC of 0.61, CA of 0.86, F1 score of 0.80, precision of 0.85, and recall of 0.86.

In addition, according to the analysis of variable importance using the Gini index, age (.01), thiamine intake (mg) (.01), and water intake (cup) (.01) ranked as the top variables, and the top 10 variables are presented in Figure 2.

3. Validation of prediction accuracy of algorithm models

The validation results of the prediction accuracy of the algorithm models using the test data are shown in Table 3. The random forest model recorded an AUC of 0.49, CA of 0.84, F1 score of 0.77, precision of 0.71, and recall of 0.84. The logistic regression model showed an AUC of 0.54, CA of 0.82, F1 score of 0.76, precision of 0.71, and recall of 0.82. The kNN model recorded an AUC of 0.47, CA of 0.83, F1 score of 0.77, precision of 0.74, and recall of 0.83.

DISCUSSION

Based on the key results, the following discussion is provided.

In the total, training, and test datasets, the proportion of individuals with prediabetes or higher was consistently 14%–15%. Although this study excluded missing data from individuals who did not participate in the dietary intake survey, did not undergo blood tests, or did not respond, which somewhat limits the generalizability to the entire Korean population, the Korean Diabetes Association has also reported that the prevalence of prediabetes is increasing among younger adults, highlighting the need for management as the duration of diabetes may be prolonged [3].

This indicates that various prediction methods are necessary for prevention and early intervention.

In this study, dietary intake survey data were applied to three machine learning models—logistic regression, kNN, and random forest—to predict individuals with prediabetes or higher. AUC is used to assess how well a model distinguishes between individuals with prediabetes and normal individuals, with values closer to 1 indicating better model performance. Precision represents the proportion of true positive results out of all positive predictions, while recall measures the proportion of actual positive cases that were correctly identified. These metrics help evaluate a model’s prediction accuracy and sensitivity [16,17].

Among the models, random forest achieved the highest performance, with a classification accuracy of 86%, indicating that the model can accurately distinguish between prediabetic and normal individuals. The precision of the random forest model was 85%, meaning it had a low rate of false positives, and the recall was 84%, indicating a well-balanced trade-off between precision and recall [16,17].

The logistic regression model showed a classification accuracy of .83, slightly lower than that of random forest, with a precision of .77 and a recall of .71. This suggests that logistic regression has a higher rate of false positives and may miss some individuals with prediabetes. And the kNN model demonstrated a classification accuracy of .84, with a precision of .77 and a recall of .84. While its recall is similar to that of random forest, the lower precision suggests that the kNN model may generate more false positives, potentially leading to unnecessary treatments or interventions [16,17].

These results indicate that random forest offers the best balance among the three models and is the most reliable tool for predicting prediabetes in young adults. By using this model, early intervention can be achieved, reducing unnecessary treatments and diagnostic errors.

In terms of AUC, which was employed to evaluate how well the model distinguishes between individuals with prediabetes and normal individuals [18], the logistic regression model demonstrated the highest value. An AUC value close to 1 indicates excellent classification performance, whereas a value below 0.5 suggests no classification ability [19]. As the logistic regression model showed an AUC value greater than 0.5, this suggests that this model provides more consistent performance compared with the other models.

Although the logistic regression model showed somewhat lower performance in AUC and precision in the prediction validation, its overall accuracy was still acceptable. Synthesizing the results across models confirmed that the random forest model may outperform in managing the complexity of the data, while both the logistic regression and kNN models were found to maintain adequate predictive performance, suggesting their potential applicability in specific contexts.

Meanwhile, the random forest model has the advantage of handling complex interactions between various variables [20], making it suitable for managing complicated variables such as dietary intake data. However, to precisely understand the model's prediction patterns, it is necessary to refer to the variable importance determined by the Gini index [21]. Among such variables, age, followed by thiamine and water, contributed the most to predicting individuals with prediabetes or higher.

Due to the nature of machine learning analysis, it is difficult to determine the precise directionality of the variables. However, based on previous studies, it can be inferred that as individuals advance in age, insulin resistance increases and metabolic rate decreases, increasing the likelihood of progressing to prediabetes [22]. In particular, adults aged 19–35 are in a phase of life whereby lifestyle changes often occur simultaneously [23], possibly leading to increased insulin resistance and difficulty in blood sugar regulation.

These factors likely explain why age emerged as an important variable in the machine learning model. Additionally, thiamine plays a crucial role in carbohydrate metabolism by acting as a coenzyme in the conversion of glucose to energy. It supports insulin secretion and helps reduce oxidative stress and inflammation, which are exacerbated by hyperglycemia and contribute to diabetic complications. Research has shown that thiamine enhances hexokinase activity, increases insulin secretion, and restores normal enzyme function in the liver and kidneys of diabetic models, thereby alleviating pathological abnormalities associated with diabetes [24].

Therefore, a deficiency in thiamine may result in impaired insulin secretion, leading to problems in glucose metabolism, and potentially accelerating the progression to prediabetes. This likely explains why thiamine intake emerged as an important variable in this study. Similarly, adequate water intake is known to help in maintaining stable blood sugar levels by diluting glucose concentrations in the bloodstream [25], which may account for its significance as a key variable in the machine learning model.

By considering the connection between physiological mechanisms and individual characteristics, as well as dietary intake patterns, blood sugar regulation can be approached from a physiological perspective based on the consumption of specific nutrients. Although the contribution scores of carbohydrates and sugar intake were low in this study, these nutrients rapidly increase blood glucose levels, as previous studies have shown. However, as various nutrients such as fats and dietary fibers interact in a complex manner to influence blood glucose regulation [26], by utilizing the random forest machine learning model, which employs an ensemble learning method with multiple decision trees to learn dietary patterns, it is expected to effectively reflect multidimensional interactions and provide more accurate predictions of prediabetes.

This study highlights the utility of machine learning models for predicting prediabetes in young adults using dietary intake data, which are relatively easy to collect. According to previous studies, while older adults may develop prediabetes due to age-related metabolic changes, younger adults are primarily influenced by lifestyle factors such as diet and physical activity [22,23]. The results of this study emphasize the importance of addressing these factors early in life to prevent the progression to diabetes.

This finding has significant implications for public health policy development, as it enables early intervention for the prevention of chronic diseases among young adults, a group often overlooked in healthcare. Key variables identified in this study, such as age, thiamine, and water, play a critical role in predicting prediabetes and should be incorporated into future predictive models. By properly utilizing these variables, the predictive performance of the models can be further enhanced, allowing for more accurate predictions of prediabetes and thereby strengthening early intervention and prevention strategies.

Overall, this study contributes to the theoretical development of disease prevention and health management strategies by validating a model for predicting prediabetes. It also provides a foundation for future research by analyzing multidimensional variable interactions, offering new insights into diabetes prediction in young adults. Practically, this study offers foundational data that nurses can use as a tool for early intervention and personalized health education, helping to improve patient health outcomes effectively.

However, the relatively lower performance of the random forest model in terms of AUC and precision indicates that caution is needed when considering its clinical application. Future research should aim to enhance the model's reliability and conduct further validation. While the 24-hour dietary recall method provides detailed nutritional data, it has the limitation of relying on participants' memory, which may reduce accuracy [27]. Therefore, future studies could improve the model by incorporating additional data, including psychological factors such as stress and depression, as well as physical activity and lifestyle factors that influence diabetes risk.

Moreover, this study focused exclusively on young adults aged 19 to 35, limiting the generalizability of the findings to other age groups. As such, care must be taken when applying the results to the prediction of prediabetes across different age ranges.

CONCLUSION

In this study, we compared machine learning models to predict prediabetes in young adults in Korea using dietary intake data from the KNHANES. Among the models evaluated, the random forest model demonstrated the highest predictive accuracy and precision compared with logistic regression and kNN models. The key predictive variables were age, thiamine intake, and water intake, which contributed significantly to the model's performance. Based on these results, we confirmed the feasibility of predicting prediabetes in young adults and provided foundational data for early intervention in diabetes prevention.

However, given the need for improvement in certain performance metrics, such as AUC, we recommend that future studies incorporate additional variables, such as physical activity, lifestyle factors, and psychological variables, to enhance the predictive power of the models.

CONFLICT OF INTEREST

The author declared no conflict of interest.

AUTHORSHIP

MLH solely conducted the conceptualization and design of this study, as well as the data processing, statistical analysis, interpretation, and the drafting and review of the manuscript.

FUNDING

None.

ACKNOWLEDGMENTS

The author would like to express their sincere gratitude to the Korea Disease Control and Prevention Agency for providing the essential data for this study, as well as to all the participants of the Korea National Health and Nutrition Examination Survey for their valuable contributions.

DATA AVAILABILITY

The data that support the findings of this study are available from the corresponding author upon reasonable request.

REFERENCES

1 World Health Organization Diabetes [Internet] GenevaWorld Health Organization2023 [cited 2024 Sep 9]. Available from: https://www.who.int/health-topics/diabetes/diabetes#tab=tab_1
2 Choi HH Choi G Yoon H Ha KH Kim DJ Rising incidence of diabetes in young adults in South Korea: a national cohort study Diabetes & Metabolism Journal 2022 46 5 803 807 10.4093/dmj.2021.0236 35581145 PMC9532172
3 Lee KA Kim DJ Han K Chon S Moon MK Screening for prediabetes and diabetes in Korean nonpregnant adults: a position statement of the Korean Diabetes Association, 2022 Diabetes & Metabolism Journal 2022 46 6 819 826 10.4093/dmj.2022.0364 36455530 PMC9723194
4 Jang BN Nari F Kim S Park EC Association between relative handgrip strength and prediabetes among South Korean adults PLoS One 2020 15 10 10.1371/journal.pone.0240027 PMC7529255 33002067
5 Bostock-Cox B Understanding the link between obesity and diabetes Nursing Standard 2017 31 44 52 62 https://doi.org/ 10.7748/ns.2017.e10106 10.7748/ns.2017.e10106 28656862
6 Puccinelli PJ da Costa TS Seffrin A de Lira CAB Vancini RL Nikolaidis PT Reduced level of physical activity during COVID-19 pandemic is associated with depression and anxiety levels: an internet-based survey BMC Public Health 2021 21 10470 10.1186/s12889-021-10470-z PMC7919983 33648487
7 Nour TY Altintaş KH Effect of the COVID-19 pandemic on obesity and its risk factors: a systematic review BMC Public Health 2023 23 15833 10.1186/s12889-023-15833-2 PMC10227822 37254139
8 Saravia L Moliterno P Skapino E Moreno LA Food diary, food frequency questionnaire, and 24-hour dietary recall Betim Cazarin CB Basic Protocols in Foods and Nutrition. Methods and Protocols in Food Science New York, NYHumana2022 223 247
9 Foster E Lee C Imamura F Hollidge SE Westgate KL Venables MC Validity and reliability of an online self-report 24-h dietary recall method (Intake24): a doubly labelled water study and repeated-measures analysis Journal of Nutritional Science 2019 8 e29 10.1017/jns.2019.20 31501691 PMC6722486
10 Bantle JP Wylie-Rosett J Albright AL Apovian CM Clark NG Franz MJ Nutrition recommendations and interventions for diabetes: a position statement of the American Diabetes Association Diabetes Care 2008 31 Suppl 1 S61 S78 10.2337/dc08-S061 18165339
11 Neuenschwander M Ballon A Weber KS Norat T Aune D Schwingshackl L Role of diet in type 2 diabetes incidence: umbrella review of meta-analyses of prospective observational studies BMJ 2019 366 l2368 10.1136/bmj.l2368 31270064 PMC6607211
12 Al-Jarrah OY Yoo PD Muhaidat S Karagiannidis GK Taha K Efficient machine learning for big data: a review Big Data Research 2015 2 3 87 93 10.1016/j.bdr.2015.04.001
13 Korea Disease Control and Prevention Agency. The Korea National Health and Nutrition Examination Survey (KNHANES), 2022 [Internet]. Cheongju: Korea Disease Control and Prevention Agency; 2022 [cited 2024 Sep 9]. Available from: https://knhanes.kdca.go.kr/knhanes/sub03/sub03_06_02.do [link unavailable]
14 Kim G ORANGE for artificial intelligence and data analysis 1st edSeoulHankyungsa2024
15 University of Ljubljana, Bioinformatics Laboratory Orange data mining: data mining fruitful and fun [Internet] University of Ljubljana[cited 2024 Oct 1]. Available from: https://orangedatamining.com
16 Bharathidason S Venkataeswaran CJ Improving classification accuracy based on random forest model with uncorrelated high performing trees International Journal of Computer Applications 2014 101 26 26 30 10.5120/17749-8829
17 Marchese Robinson RL Palczewska A Palczewski JA Kidley N Comparison of the predictive performance and interpretability of random forest and linear models on benchmark data sets Journal of Chemical Information and Modeling 2017 57 8 1773 1792 10.1021/acs.jcim.6b00753 28715209
18 Norton M Uryasev S Maximization of AUC and buffered AUC in binary classification Mathematical Programming 2018 174 575 612 10.1007/s10107-018-1312-2
19 Marius OU Ibezimako MJ Estimation of AUC and its significance in the assessment of classification models Journal of Natural Sciences Research 2019 9 9 17 29 10.7176/JNSR/9-9-03
20 Lu T Research on the variable selection methods based on random forests 2022 7th International Conference on Computational Intelligence and Applications (ICCIA); 2022 Jun 24-26; Nanjing, China. IEEE; 2022. p. 59-64
21 Han H Guo X Yu H Variable selection using mean decrease accuracy and mean decrease Gini based on random forest 2016 7th IEEE International Conference on Software Engineering and Service Science (ICSESS); 2016 Aug 26-28; Beijing, China. IEEE; 2016. p. 219-224
22 Chow H Shi M Cheng A Gao Y Chen G Song X Age-related hyperinsulinemia leads to insulin resistance in neurons and cell-cycle-induced senescence Nature Neuroscience 2019 22 12 1806 1819 10.1038/s41593-019-0505-1 31636448
23 Jääskeläinen T Koponen P Lundqvist A Borodulin K Koskinen S Lifestyle of young adults–changes and accumulation European Journal of Public Health 2019 29 Suppl 4 10.1093/eurpub/ckz185.113
24 Abdullah KM Arefeen A Shamsi A Alhumaydhi F Naseem I Insight into the in vitro antiglycation and in vivo antidiabetic effects of thiamine: implications of vitamin B1 in controlling diabetes ACS Omega 2021 6 19 12605 12614 10.1021/acsomega.1c00631 34056411 PMC8154133
25 Seal A Colburn AT Suh HG Kavouras S The acute effect of adequate water intake on glucose regulation in low drinkers Annals of Nutrition and Metabolism 2022 77 suppl 4 33 36 10.1159/000520479
26 Park MH Chung SJ Shim JE Jang SH Nam KS Effects of macronutrients in mixed meals on postprandial glycemic response Journal of Nutrition and Health 2018 51 1 31 39 10.4163/jnh.2018.51.1.31
27 Osadchiy T Poliakov I Olivier P Rowland M Foster E Progressive 24-hour recall: usability study of short retention intervals in web-based dietary assessment surveys Journal of Medical Internet Research 2020 22 2 1 12 10.2196/13266 PMC7055775 32012055
Figure 1.

Workflow of machine learning models for prediabetes prediction using dietary intake data in the Orange 3.5 program.

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

Top 10 variables by Gini decrease for predicting prediabetes in young adults.

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

General Characteristics of Participants (N = 823)

VariablesTypeRoleCategoriesTotal (n = 823)Training data (n = 576)Test data (n = 247)
DiabetesCategoricalTargetPrediabetes or diabetes121 (14.7)82 (14.2)39 (15.8)
Normal702 (85.3)494 (85.8)208 (84.2)
SexCategoricalFeatureMen373 (45.3)258 (44.8)115 (46.6)
Women450 (54.7)318 (55.2)132 (53.4)
Education levelCategoricalFeatureElementary and below3 (0.4)2 (0.3)1 (0.4)
Middle school8 (1.0)4 (0.7)4 (1.6)
High school336 (40.8)229 (39.8)107 (43.3)
College or higher476 (57.8)341 (59.2)135 (54.7)
OccupationCategoricalFeatureManager, professional and related workers209 (25.4)147 (25.5)62 (25.1)
Office workers134 (16.3)97 (16.8)37 (15.0)
Service and sales workers127 (15.4)73 (12.7)54 (21.9)
Skilled workers, machinery operators, and assemblers53 (6.4)41 (7.1)12 (4.9)
Simple labor workers35 (4.3)22 (3.8)13 (5.3)
Unemployed (housewives, students, etc.)265 (32.2)196 (34.0)69 (27.9)
Single householdCategoricalFeatureSingle-person household147 (17.9)104 (18.1)43 (17.4)
Two or more people676 (82.1)472 (81.9)204 (82.6)
Marital statusCategoricalFeatureMarried185 (22.5)129 (22.4)56 (22.7)
Single638 (77.5)447 (77.6)191 (77.3)
Health insuranceCategoricalFeatureNational health insurance (local)213 (25.9)158 (27.4)55 (22.3)
National health insurance (workplace)581 (70.6)397 (68.9)184 (74.5)
Medical aid29 (3.5)21 (3.7)8 (3.2)
Dietary therapyCategoricalFeatureYes248 (30.1)165 (28.7)83 (33.6)
No575 (69.9)411 (71.4)164 (66.4)
Reason for dietary therapyCategoricalFeatureDisease17 (2.1)11 (1.9)6 (2.4)
Weight control219 (26.6)146 (25.4)73 (29.6)
Others12 (1.5)8 (1.4)4 (1.6)
Not applicable575 (69.9)411 (71.3)164 (66.4)
AgeNumericFeature27.20 ± 4.7827.21 ± 4.6827.19 ± 5.02

Values are presented as the mean ± standard deviation or n (%). Percentages may not sum to 100% due to rounding.

Table 2.

Dietary Intake Characteristics of Participants (N = 823)

Variable (/1 day)Total (n = 823)Training data (n = 576)Test data (n = 247)
(Type = numeric, Role = feature)MinMax M ± SDMinMax M ± SDMinMax M ± SD
Water intake (cup)0.0030.005.44 ± 3.490.5030.005.47 ± 3.460.0030.005.37 ± 3.58
Food intake (g)183.706895.631478.81 ± 723.18183.704806.911464.52 ± 698.80273.526895.631512.12 ± 777.52
Energy intake (kcal)264.806757.001899.42 ± 860.86264.805637.901882.74 ± 839.54528.856757.001938.33 ± 909.20
Water intake (g)25.605666.101019.16 ± 585.7925.603798.331006.58 ± 558.5365.475666.091048.49 ± 645.15
Protein intake (g)7.03299.5476.03 ± 40.267.03299.5474.95 ± 40.1721.31253.1878.56 ± 40.44
Fat intake (g)7.71248.9659.88 ± 35.897.71248.9659.71 ± 35.4310.43223.5960.29 ± 37.02
Saturated fatty acid intake (g)2.14100.4819.85 ± 13.442.14100.4820.00 ± 13.602.4275.3019.50 ± 13.06
Monounsaturated fatty acid intake (g)1.7693.7019.80 ± 13.231.7687.1319.88 ± 13.122.5093.7019.61 ± 13.50
Polyunsaturated fatty acid intake (g)0.2590.9714.32 ± 9.880.2560.0213.93 ± 8.881.8190.9715.21 ± 11.85
N-3 fatty acid intake (g)0.0412.501.73 ± 1.350.048.271.65 ± 1.200.0612.501.91 ± 1.63
N-6 fatty acid intake (g)0.2180.8912.51 ± 8.700.2152.3812.21 ± 7.861.6780.8913.22 ± 10.39
Cholesterol intake (mg)0.002447.99310.56 ± 222.600.001392.19300.45 ± 209.050.002447.99334.13 ± 250.26
Carbohydrate intake (g)30.03883.33242.64 ± 110.8030.03883.33240.40 ± 108.0454.53797.07247.87 ± 117.06
Dietary fiber intake (g)0.9968.5618.71 ± 10.090.9968.5618.60 ± 10.023.3457.7618.98 ± 10.24
Sugar intake (g)3.63328.7858.09 ± 40.324.53328.7858.05 ± 41.303.63198.3758.18 ± 38.01
Calcium intake (mg)62.642359.11461.68 ± 268.6162.872359.11456.09 ± 271.4662.641326.26474.72 ± 261.94
Phosphorus intake (mg)140.763467.331030.84 ± 471.83140.763467.331015.69 ± 467.91267.953435.251066.16 ± 479.94
Sodium intake (mg)134.139702.563078.38 ± 1692.97134.139496.703060.87 ± 1673.57238.339702.563119.22 ± 1740.14
Potassium intake (mg)267.268276.792297.17 ± 1059.54267.268276.792284.03 ± 1056.01559.846190.342327.80 ± 1069.24
Magnesium intake (mg)23.22787.94253.65 ± 120.4023.22787.94249.56 ± 116.9253.57780.26263.17 ± 127.88
Iron intake (mg)0.22108.059.22 ± 7.650.22108.059.24 ± 8.481.9126.719.16 ± 5.23
Zinc intake (mg)0.7546.439.72 ± 5.600.7546.439.72 ± 5.641.6835.019.71 ± 5.53
Vitamin A (retinol activity equivalents) intake (μgRAE)14.092969.08373.23 ± 314.5414.092298.14354.15 ± 276.2321.122969.08417.73 ± 386.51
Vitamin D intake (μg)0.0068.982.92 ± 5.260.0068.982.83 ± 5.290.0060.483.14 ± 5.20
Vitamin E intake (mg α-TE)0.7632.907.20 ± 3.940.7624.387.12 ± 3.721.9432.907.38 ± 4.40
Beta-carotene intake (μg)0.7125666.852050.29 ± 2203.790.7115906.431913.97 ± 1942.038.0025666.852368.17 ± 2695.93
Retinol intake (μg)0.002722.48199.39 ± 250.250.002113.19191.70 ± 220.620.002722.48217.33 ± 308.26
Thiamine intake (mg)0.127.791.15 ± 0.760.127.791.17 ± 0.780.205.831.10 ± 0.71
Riboflavin intake (mg)0.266.531.67 ± 0.870.265.961.65 ± 0.840.276.531.70 ± 0.95
Niacin intake (mg)0.04124.4413.43 ± 9.530.0469.1013.17 ± 8.511.55124.4414.06 ± 11.58
Folate intake (μgDFE)19.891148.79248.47 ± 131.5419.89814.66246.97 ± 128.6836.601148.79251.97 ± 138.18
Vitamin C intake (mg)0.00901.6762.23 ± 85.940.00613.4859.53 ± 76.160.13901.6768.54 ± 105.18

Min = Minimum; Max = Maximum; M = Mean; SD = Standard deviation; g = Grams; kcal = Kilocalories; μgRAE = Micrograms retinol activity equivalent; α-TE = Alpha-tocopherol equivalents; μgDFE = Micrograms dietary folate equivalent.

Table 3.

Prediction Accuracy Validation for the Training and Test Datasets

DatasetModelAUCCAF1PrecisionRecall
Training dataLogistic regression.61.83.80.77.83
kNN.58.84.80.77.84
Random forest.61.86.80.85.86
Test dataRandom forest.49.84.77.71.84
Logistic regression.54.82.76.71.82
kNN.47.83.77.74.83

AUC = Area under the curve; CA = Classification accuracy; F1 = Harmonic mean of precision and recall; kNN = k-Nearest Neighbors.

Publication and source details

Original title: Development and validation of machine learning models to predict prediabetes using dietary intake data in young adults in Korea: a cross-sectional study

Myoung-Lyun Heo

Journal of Korean Biological Nursing Science · 2024

Corresponding author: Myoung-Lyun Heo Department of Nursing, Jeonju University, 303 Chunjam-ro, Wansan-gu, Jeonju 55069, Korea Tel: +82-63-220-2209 Fax: +82-63-220-2054 E-mail: prayerhj23@jj.ac.kr© 2024 Korean Society of Biological Nursing Science2024https://creativecommons.org/licenses/by/4.0/This is an Open Access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/) which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.None.

Repository JATS snapshot; version as supplied

Source retrieved: 2026-11-11T08:17:27.170420+00:00

DOI: 10.7586/jkbns.24.029 · PMC13268345