Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2020 Jul 20;10(1):11981.
doi: 10.1038/s41598-020-68771-z.

Early detection of type 2 diabetes mellitus using machine learning-based prediction models

Affiliations

Early detection of type 2 diabetes mellitus using machine learning-based prediction models

Leon Kopitar et al. Sci Rep. .

Abstract

Most screening tests for T2DM in use today were developed using multivariate regression methods that are often further simplified to allow transformation into a scoring formula. The increasing volume of electronically collected data opened the opportunity to develop more complex, accurate prediction models that can be continuously updated using machine learning approaches. This study compares machine learning-based prediction models (i.e. Glmnet, RF, XGBoost, LightGBM) to commonly used regression models for prediction of undiagnosed T2DM. The performance in prediction of fasting plasma glucose level was measured using 100 bootstrap iterations in different subsets of data simulating new incoming data in 6-month batches. With 6 months of data available, simple regression model performed with the lowest average RMSE of 0.838, followed by RF (0.842), LightGBM (0.846), Glmnet (0.859) and XGBoost (0.881). When more data were added, Glmnet improved with the highest rate (+ 3.4%). The highest level of variable selection stability over time was observed with LightGBM models. Our results show no clinically relevant improvement when more sophisticated prediction models were used. Since higher stability of selected variables over time contributes to simpler interpretation of the models, interpretability and model calibration should also be considered in development of clinical prediction models.

PubMed Disclaimer

Conflict of interest statement

The authors declare no competing interests.

Figures

Figure 1
Figure 1
Flow diagram of data pre-processing.
Figure 2
Figure 2
Variable importance. Ranking of variables for Glmnet (A), LightGBM (B), Random Forest (C) and XGBoost (D) over the observed period (T6–T30).
Figure 3
Figure 3
Actual vs. predicted plots. Visualisation of actual vs. predicted values for all predictive models (lm, Glmnet, LightGBM, RF, XGBoost) in three time points (T6, T18 and T30) reveal discrepancies in calibration of the compared models. Additional classification performance results in terms of TP, FP, TN and FN are provided where it can be seen that lm, Glmnet and RF outperformed both boosting based methods by identifying more TP as well as TN cases. Model-time point combinations are represented in the following way: lm 6, 18 and 30 months (AC), Glmnet 6, 18 and 30 months (DF), LightGBM 6, 18 and 30 months (GI), RF 6, 18 and 30 months (JL), XGBoost 6, 8 and 30 months (MO).

References

    1. International Diabetes Federation. IDF DIABETES ATLAS (2017), 8 edn.
    1. Mohammedi K, et al. Comparative effects of microvascular and macrovascular disease on the risk of major outcomes in patients with type 2 diabetes. Cardiovasc. Diabetol. 2017;16:95. doi: 10.1186/s12933-017-0574-y. - DOI - PMC - PubMed
    1. Cavan D. Why screen for type 2 diabetes? Diabetes Res. Clin. Pract. 2016;121:215–217. doi: 10.1016/j.diabres.2016.11.004. - DOI - PubMed
    1. Rahimloo P, Jafarian A. Prediction of diabetes by using artificial neural network, logistic regression statistical model and combination of them. Bull. Soc. R. Sci. Liège. 2016;85:1148–1164.
    1. Wu H, Yang S, Huang Z, He J, Wang X. Type 2 diabetes mellitus prediction model based on data mining. Inform. Med. Unlocked. 2018;10:100–107. doi: 10.1016/j.imu.2017.12.006. - DOI

Publication types