Research Article

Machine Learning Models for Diabetes Prediction: Logistic Regression, SVM, Random Forest, and Neural Networks

Yueyue Tian*
University of California

* Corresponding author: [email protected]

Abstract

This research is concerned with the application of machine learning techniques to predict the risk of diabetes. Diabetes is a very personal and medical problem. Development of accurate and efficient predictive models for diabetes is vital for its early screening and detection. This paper exploits the Pima Indian Diabetes Dataset to train models using individual clinical features like blood glucose level, body mass index, age, etc., and evaluate the predictive capabilities of four widely used supervised learning algorithms (logistic regression, support vector machine, random forest, and neural network). Accuracy, precision, recall and area under ROC curve (AUC) were primarily considered in this study to measure the performance of the models. Results: It is observed that Logistic Regression achieves the highest in AUC = 0.84 for small medical data. Additional experiments show that the factors that have most impact on diabetes are blood glucose, body mass index, and age. Unlike some complex models, logistic regression has substantial advantages with regard to stability and interpretability, which may make it more suitable for the prediction task in small clinical studies such as this. This work also emphasizes the significance of feature analysis and model selection for medical AI application, and provides empirical support for early warnings systems which predict diseases on the basis of data.

Keywords: Diabetes; Machine Learning; Risk Prediction; Logistic Regression; Feature Importance
Published: December 18, 2025
DOI: 10.54254/2755-2721/2026.TJ30648
Volume: ACE Vol.211
pp. 174-179
Download PDF

References

  1. International Diabetes Federation. (2023). IDF diabetes atlas (10th ed.).
  2. Choi, E., Bahadori, M. T., Schuetz, A., Stewart, W. F., & Sun, J. (2017). Using recurrent neural network models for early detection of heart failure onset. Journal of the American Medical Informatics Association, 24(2), 361–370.
  3. Sisodia, D. S., & Sisodia, D. S. (2018). Prediction of diabetes using classification algorithms. Procedia Computer Science, 132, 1578–1585.
  4. Kavakiotis, I., Tsave, O., Salifoglou, A., Maglaveras, N., Vlahavas, I., & Chouvarda, I. (2017). Machine learning and data mining methods in diabetes research. Computational and Structural Biotechnology Journal, 15, 104–116.
  5. Zhou, L., Zhang, Z., & Chen, J. (2021). Comparative analysis of machine learning models for diabetes prediction. IEEE Access, 9, 103176–103184.
  6. Islam, M. M., Rahman, M. A. A., Islam, A. R., Iqbal, T. M., & Nooruddin, S. (2020). Machine learning in healthcare: A review of recent advancements. Computers in Biology and Medicine, 126, 104047.
  7. Chen, T., & Guestrin, C. (2016). XGBoost: A scalable tree boosting system. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (pp. 785–794).
  8. National Institute of Diabetes. (1990). Pima Indians diabetes dataset. Kaggle. https: //www.kaggle.com/datasets/uciml/pima-indians-diabetes-database
  9. Lundberg, S. M., & Lee, S. I. (2020). A unified approach to interpreting model predictions. Communications of the ACM, 63(1), 80–90.
  10. National Institute of Diabetes. (2016). Pima Indians diabetes dataset. Kaggle. Published May 9, 2016. Retrieved January 6, 2025.
  11. Alghamdi, A. R., Alrashdi, M. S., Almutairi, R. S., & Alqarni, H. S. (2022). Predicting diabetes mellitus using SMOTE and machine learning approaches: A comparative study. Healthcare, 10(2), 228.
  12. Nguyen, N. G., Nguyen, T. D., Nguyen, H. D., & Islam, M. M. (2022). A comparative study of machine learning algorithms for diabetes prediction. IEEE Access, 10, 58020–58031.