Evaluating the Predictive Performance and Computational Efficiency of Logistic Regression and Naïve Bayes for Diabetes Classification
DOI:
https://doi.org/10.33003/fjs-2026-1023-6123Keywords:
Classification algorithms, Diabetes dataset and Performance metricsAbstract
Diabetes is a growing global health concern, affecting millions of individuals and placing a significant burden on healthcare systems. Early and accurate diagnosis is crucial for effective disease management, yet traditional diagnostic methods may be time-consuming or less efficient in handling large volumes of patient data. Machine learning algorithms, such as Logistic Regression Model (LRM) and Naive Bayes (NBayes), offer potential solutions for improving the accuracy and speed of diabetes classification based on available datasets. However, there is limited research on comparing the effectiveness of these two widely used algorithms in predicting diabetes dataset, particularly in terms of their performance metrics such as accuracy, precision, recall, and computational efficiency. This study aims to address this gap by evaluating and comparing the performance of LRM and NBayes in predicting the presence or absence of diabetes, utilizing a publicly available dataset on the WEKA platform. The results showed that LRM outperforms NBayes in terms of prediction accuracy, correctly classifying 15,081 instances compared to NBayes' 14,748. LRM also achieves superior performance across multiple metrics, including accuracy (88.71% vs 86.75%), precision, recall, F-measure, and ROC Area, while maintaining a lower error rate (11.29% vs 13.25%). However, NBayes exhibits faster model build time (0.09 sec vs 1.17 sec). Based on these findings, LRM is recommended for diabetes dataset classification. Future research may explore comparisons of LRM with other algorithms such as Support Vector Machines, Decision Trees, and Neural Networks to assess LRM's generalizability and robustness
References
American Diabetes Association. (2020). Standards of Medical Care in Diabetes. Diabetes Care, 43(Supplement 1), S1-S212.
Blenkinsop, B., Smith, D., & Lee, J. (2020). Machine learning in diabetes management: A systematic review. Journal of Diabetes Research, 2020, 1-13.
Francesco, A., Marini, E., & Russo, P. (2020). Challenges and opportunities in machine learning for diabetes management. Journal of Healthcare Engineering, 2020, 1-12.
Gulshan, V., Rajan, R. P., & Widner, R. J. (2019). Development and validation of a deep learning algorithm for detection of diabetic retinopathy. JAMA, 322(22), 2211-2223.
Homberger, M., Brennan, P., & Zisser, H. (2020). Machine learning-powered decision support improves blood glucose control in type 2 diabetes. Diabetes Technology & Therapeutics, 22(5), 341-348.
Huang, X., Li, Y., & Wang, J. (2020). Mobile app-based machine learning model for improving medication adherence in patients with type 2 diabetes. Journal of Medical Systems, 44(10), 2109.
Ibrahim, S. A., Isiaka, K. S., & Mustapha, I. O. (2021). A Comparison of Classification Algorithms on Students' Performance in Computer Science Programme using Weka. Transactions of Nigerian Association of Mathematical Physics, 15(April-June, 2021), 43-46.
Ibrahim, S.A., AbdulRauf, U.T, Mustapha, I.O and Oni, A.A. (2024) Comparing the Efficency of Logistic Regression Classifier and K-Nearest Neighbour Cassifier for Predicting Students' Performance in Computer Science Programme. The Nexus (Science Edition) A Publication of Al-Hikmah University, Ilorin, Nigeria, 3(1)
Kandula, S., Xu, Y., & Liu, Y. (2020). Predicting hypoglycemic events using machine learning algorithms. Journal of Diabetes Science and Technology, 14(2), 239-246.
Kim, J., Lee, J., & Kim, B. (2020). Machine learning-powered decision support system for patients with type 2 diabetes. Healthcare Informatics Research, 26(2), 123-130.
Kumar, N., Kumar, V., & Gupta, R. (2020). Supervised machine learning algorithms in diabetes management: A review. Journal of Diabetes Research, 2020, 1-15.
Lee, J., Kim, J., & Lee, Y. (2020). Wearable device-based machine learning model for predicting blood glucose levels. Sensors, 20(11), 3172.
Li, Y., Wang, J., & Huang, X. (2019). Medication optimization for patients with diabetes using machine learning algorithms. Journal of Clinical Pharmacy and Therapeutics, 44(9), 1280-1286.
Madden, J., O’Shea, D., & Kirwan, J. (2018). Predicting blood glucose levels using machine learning algorithms. Journal of Diabetes Science and Technology, 12(4), 693-701.
Munoz, E., Lopez, J., & Garcia, A. (2020). Wearable device-based machine learning model for predicting blood glucose levels. Journal of Medical Systems, 44(10), 2110.
Rajalakshmi, R., Subashini, M. M., & Mahalakshmi, K. (2020). Deep learning algorithm for detection of diabetic retinopathy. Journal of Medical Systems, 44(10), 2123.
Ravi, D., Kumar, N., & Kumar, V. (2019). Machine learning algorithms for diabetes management: A review. Journal of Diabetes Research, 2019, 1-13.
Shanholtzer, J., Xu, Y., & Liu, Y. (2020). Analyzing electronic health records using machine learning algorithms for diabetes management. Journal of Healthcare Engineering, 2020, 1-12.
Sutton, R. T., Pincock, D., & Coughlin, K. M. (2019). Personalized medicine for diabetes management using machine learning algorithms. Journal of Diabetes Research, 2019, 1-11.
Wang, J., Li, Y., & Huang, X. (2020). Machine learning algorithms for optimizing medication regimens in patients with diabetes. Journal of Clinical Pharmacy and Therapeutics, 45(1), 34-41.
World Health Organization. (2020). Diabetes. Retrieved from (link unavailable)
Zhang, Y., Li, Y., & Wang, J. (2020). Clustering analysis for identifying patient subgroups in diabetes management. Journal of Medical Systems, 44(10), 2134
Downloads
Published
Issue
Section
Categories
License
Copyright (c) 2026 Suleman Adeniyi Ibrahim, Hassanat Motunrayo Yahaya

This work is licensed under a Creative Commons Attribution 4.0 International License.