A Comparative Study of Naive Bayes, SVM, and Decision Tree Algorithms for Diabetes Detection Based on Health Datasets
DOI:
https://doi.org/10.47738/ijiis.v7i4.230Keywords:
Machine Learning, Decision Tree, Naive Bayes, SVM, Classification, Health, DiabetesAbstract
Diabetes is a chronic, progressive condition whose global prevalence continues to rise, creating substantial public health and economic burdens. Early diagnosis and timely intervention are critical to preventing severe complications and improving long-term patient outcomes. In recent years, artificial intelligence (AI) particularly machine learning (ML) has emerged as a powerful tool in medical diagnostics, offering capabilities in automated pattern recognition and disease classification. This study aims to evaluate and compare the predictive performance of three supervised ML algorithms such as Naïve Bayes, Support Vector Machine (SVM), and Decision Tree for classifying and predicting diabetes based on two primary physiological indicators: glucose level and blood pressure. The dataset employed was sourced from Kaggle, comprising 995 patient records containing relevant clinical attributes. The research methodology involved several stages, including data preprocessing to ensure quality and consistency, data partitioning into training and testing subsets using an 80:20 split ratio, model training, and performance evaluation. Each algorithm’s effectiveness was measured using accuracy, precision, recall, and F1-score metrics. The experimental findings demonstrate that the Decision Tree algorithm achieved the highest classification accuracy (94.47%), outperforming SVM and Naïve Bayes, both of which recorded 92.96% accuracy. Moreover, the Decision Tree exhibited balanced precision and recall values, underscoring its robustness in identifying both diabetic and non-diabetic cases with minimal misclassification. These outcomes indicate that the Decision Tree model provides an optimal balance between predictive accuracy and interpretability, making it particularly suitable for clinical decision-support applications.References
Leonard Baatiema et all, “Contextual awareness, response and evaluation (CARE) of diabetes in poorurban communities in Ghana: the CARE diabetes project qualitative studyprotocol,” Global Health Action, 2024.
A. R. B. N. Bin Zhou, “Worldwide trends in diabetes prevalence and treatment,” The Lancet 2024; 404: 2077–93, pp. 2077-2093, 2024.
A. Timbadiya, “Machine learning algorithms for healthcare,” World Journal of Advanced Research and Reviews, 2025, 25(02),, pp. 1139-1143, 2025.
B. J. T. K. M. K. P. R. Shikha Agarwal, “Hybrid of Naive Bayes and Gaussian Naive Bayes for Classification: A Map,” International Journal of Innovative Technology and Exploring Engineering (IJITEE), pp. 266-268, 2019.
A. G. G. A. K. I. S. Preeti Voditel, “Foetal Health Prediction using Random Forest and Support Vector Machine,” Journal of Neonatal Surgery, pp. 574-582, 2025.
V. H. S. D. S. H. N. S. R. S. D. M. E. D. S. R. S. S. Beatriz N. C. Silveira, “Advancing Test Data Selection by Leveraging Decision TreeStructures: An Investigation into Decision Tree Coverage and Mutation Analysis,” Journal of Software Engineering Research and Development, 2025.
N. A. H. N. M. C. ,. M. A. A. N. R. A. C. H. P. A. S. Amanda Iksanul Putri, “Implementation of K-Nearest Neighbors, NaïveBayes Classifier, Support Vector Machineand Decision Tree Algorithms for Obesity Risk Prediction,” Institute ofResearch and Publication Indonesia, Public Research Journal of Engineering, Data Technology and Computer Science, pp. 26-33, 2024.
A. F. P. L. L. B. Dewi Widyawati, “Comparison Analysis of Classification Model Performance in Lung Cancer Prediction Using Decision Tree, Naive Bayes, and Support Vector Machine,” Indonesian Journal of Data and Science, pp. 78-87, 2023.
O. D. R. D. A. S. A. J. Admi Syarif, “A Comprehensive Comparative Study of Machine Learning Methods for Chronic Kidney Disease Classification: Decision Tree, Support Vector Machine, and Naive Bayes,” International Journal of Advanced Computer Science and Applications, pp. 597-603, 2023.
N. L. N. S. Dhurba Subedi, “Sentiment Analysis of IMDb Movie Reviews Using SVM and Naive Bayes Classifier,” Journal of Engineering and Sciences, pp. 56-68, 2025.
D. S. K. Vaishali Mishra, “The performance of Logistic Regression, Decision Tree, KNN, Naive Bayes and SVM for identifying Automotive Cybersecurity Attack and Prevention: An Experimental Study,” Journal of Electrical Systems, pp. 687-699, 2024.
L. W. R. I. Sabda Norman Hayat, “Skin Cancer Detection Approach Using Convolutional Neural Network Artificial Intelligence,” International Journal of Informatics and Information Systems, pp. 46-54, 2024.
D. P. Yasodha, “Data Preprocessing Methods for Machine Learning: An Empirical Comparison,” International Journal for Multidisciplinary Research, 2025.
Z. H. E. W. Shuo Zhang, “Data Cleaning Using Large Language Models,” Cornell University Computer Science, 2024.
I. Olaniyi, “IDEAL DATASET SPLITTING RATIOS IN MACHINE LEARNING ALGORITHMS: GENERAL CONCERNS FOR DATA SCIENTISTS AND DATA ANALYSTS,” INTERNATIONAL MARDIN ARTUKLU SCIENTIFIC , 2022.
M. H. A. C. L. M. W. V. Karim Hossny, “Decision tree insights analytics (DTIA) tool: an analytic framework to identify insights from large data records across fields of science,” Machine Learning: Science and Technology, 2024.
B. K. G. A. S. M. S. B. V. M. H. A. A. S. A. A. S. G. Ajith Abraham, “Naïve Bayes Approach for Word Sense Disambiguation System With a Focus on Parts-of-Speech Ambiguity Resolution,” IEEE Access, vol. 12,, 2024.
P. R. S Shanmugapriya, “Adaptive Rhea Optimization Enhanced CNN SVM Framework (ROC-SVM) for Precise MRI Based Brain Tumor Classification,” INDIAN JOURNAL OF SCIENCE AND TECHNOLOGY, p. 1939–1952, 2025.
A. I. H. F. R. U. Hovi Sohibul Wafa, “Prediksi Penyakit Diabetes Menggunakan Algoritma Support Vector Machine (SVM),” INFORMATICS AND DIGITAL EXPERT, pp. 40-45, 2022.
K. B. S. S. Subhajeet Das, “Performance Analysis of Logistic Regression, Naive Bayes, KNN, Decision Tree, Random Forest and SVM on Hate Speech Detection from Twitter,” International Research Journal of Innovations in Engineering and Technology, 2023.
Downloads
Published
Issue
Section
License
Authors who publish with IJIIS : International Journal on Informatics and Information Systems agree to the following terms: Authors retain copyright and grant the IJIIS : International Journal on Informatics and Information Systems right of first publication with the work simultaneously licensed under a Creative Commons Attribution License (CC BY-SA 4.0) that allows others to share (copy and redistribute the material in any medium or format) and adapt (remix, transform, and build upon the material) the work for any purpose, even commercially with an acknowledgement of the work's authorship and initial publication in IJIIS : International Journal on Informatics and Information Systems. Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in IJIIS : International Journal on Informatics and Information Systems. Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).

