Research Article

Comparison of Prediction Models for Diabetes: Accuracy Analysis of Logistic Regression, Random Forest, and Back Propagation Neural Network

Wei Zhu*
School of Information Engineering, Hubei University of Chinese Medicine, Wuhan, China

* Corresponding author: [email protected]

Abstract

Diabetes is one of the major non-communicable diseases and the second largest chronic disease, which has a huge impact on human health, medical resources, and social economy. In this study, the effectiveness of three machine learning models was verified, including Logistic Regression model (LR model), Random Forest model (RF model), and Back Propagation Neural Network model (BPNN model) in diabetes prediction, provided important reference and guidance for the selection of diabetes prediction models, and is expected to provide more reliable support for clinical decision-making. In the model evaluation, this study used the diabetes data set (containing 1879 samples and 46 feature variables). Firstly, 10 core variables were screened out by calculating the Spearman coefficient. Secondly, taking accuracy as the main indicator, the LR, RF, and BPNN models were analyzed in detail. The results show that the RF model performed best in this study and achieved the highest accuracy. Therefore, in the field of diabetes prediction, the RF model may be more suitable for this dataset. However, this study has not systematically compared the performance of different models under multi-parameter configuration, and further exploration can be carried out through parameter optimization and model tuning to clarify the optimal model architecture, and on this basis, the prediction performance of the three models can be compared and analyzed, to construct a more scientific and reliable evaluation system. The study also suggests that the performance of the RF model can be further optimized.

Keywords: diabetes; logistic regression; random forest; back propagation neural network
Published: June 27, 2025
DOI: 10.54254/2753-8818/2025.AU24412
Volume: TNS Vol.119
pp. 70-77
Download PDF

References

  1. Zimmet, P. Z., Magliano, D. J., Herman, W. H., & Shaw, J. E. (2014). Diabetes: a 21st-century challenge. The lancet Diabetes & endocrinology, 2(1), 56-64.
  2. Sun, C. (2014). A study of biomarker analysis in association with type 1 diabetes and its shared features in rheumatoid arthritis. Karolinska Institutet (Sweden).
  3. National Geriatrics Center, Chinese Medical Association Geriatrics Branch & Chinese Geriatrics Association Diabetes Professional Committee. (2024). Chinese elderly diabetes diagnosis and treatment guidelines (2024 edition). Peking Union Medical College Journal, 15(04), 771-800.
  4. Roglic, G. (2016). WHO Global report on diabetes: A summary. International Journal of Noncommunicable Diseases, 1(1), 3-8.
  5. Ouyang, P, Li X, Leng, F, Lai, X, Zhang, H, Yan, C, ... & Li, W. (2021). Application of a machine learning algorithm in diabetes risk prediction in the physical examination population. Chinese Journal of Disease Control, 25(7), 849-853.
  6. Chunlan. L. (2023). Early diabetes risk prediction based on machine learning methods. Statistics and Application, 12, 974.
  7. Li, J.S. (2023). Diabetes prediction based on machine learning and SHAP feature analysis. Intelligent Computers and Applications, 13(1), 153-157.
  8. Zhang, Q., Zhou, L., Zou, Q., & Yu, X. (2020). Research on a diabetes prediction method based on stacking. Intelligent Computers and Applications, 10(2), 107-110.
  9. Han, Q., Zhijun, R., Ying, X., Binbin D., & Hui, Z.. (2022). Early prediction method of diabetes based on multi-feature attribute similarity. Science, Technology and Engineering, 21(36), 15497-15502.
  10. Han, J., Pei, J., & Tong, H. (2022). Data mining: concepts and techniques. Morgan Kaufmann.
  11. Kaggle. (2024). https://www.kaggle.com/datasets/rabieelkharoua/diabetes-health-dataset-analysis
  12. Zhu, T. (2020, August). Analysis on the applicability of the random forest. In Journal of Physics: Conference Series (Vol. 1607, No. 1, p. 012123). IOP Publishing.
  13. Qin, X. (2020). Improvement and application of the random forest algorithm (Master's thesis, Lanzhou Jiaotong University). Master's degree.