Prediction of type 2 diabetes based on machine learning algorithm

Henock M. Deberneh, Intaek Kim

Research output: Contribution to journalArticlepeer-review


Prediction of type 2 diabetes (T2D) occurrence allows a person at risk to take actions that can prevent onset or delay the progression of the disease. In this study, we developed a machine learning (ML) model to predict T2D occurrence in the following year (Y + 1) using variables in the current year (Y). The dataset for this study was collected at a private medical institute as electronic health records from 2013 to 2018. To construct the prediction model, key features were first selected using ANOVA tests, chi-squared tests, and recursive feature elimination methods. The resultant features were fasting plasma glucose (FPG), HbA1c, triglycerides, BMI, gamma-GTP, age, uric acid, sex, smoking, drinking, physical activity, and family history. We then employed logistic regression, random forest, support vector machine, XGBoost, and ensemble machine learning algorithms based on these variables to predict the outcome as normal (non-diabetic), prediabetes, or diabetes. Based on the experimental results, the performance of the prediction model proved to be reasonably good at forecasting the occurrence of T2D in the Korean population. The model can provide clinicians and patients with valuable predictive information on the likelihood of developing T2D. The cross-validation (CV) results showed that the ensemble models had a superior performance to that of the single models. The CV performance of the prediction models was improved by incorporating more medical history from the dataset.

Original languageEnglish (US)
Article number3317
JournalInternational Journal of Environmental Research and Public Health
Issue number6
StatePublished - Mar 2 2021
Externally publishedYes


  • Machine learning
  • Prediction
  • Type 2 diabetes

ASJC Scopus subject areas

  • Pollution
  • Public Health, Environmental and Occupational Health
  • Health, Toxicology and Mutagenesis


Dive into the research topics of 'Prediction of type 2 diabetes based on machine learning algorithm'. Together they form a unique fingerprint.

Cite this