Klasifikasi risiko diabetes menggunakan algoritma naive bayes berdasarkan dataset pima indians diabetes
Keywords:
Diabetes Melitus, naive bayes, classification, Pima Indian Diabetes, Data MiningAbstract
Diabetes mellitus is a non-communicable disease with a continuously rising prevalence, making early detection essential to prevent further complications. Conventional diagnostic methods that rely on laboratory examination are often constrained by time, cost, and limited access to healthcare facilities. This study aims to build and evaluate a diabetes risk classification model using the Gaussian Naive Bayes algorithm on the Pima Indians Diabetes dataset, consisting of 768 patient records with eight clinical variables. The research stages include data preprocessing to handle medically implausible zero values, splitting the data into training and testing sets using an 80:20 stratified scheme, model training, and evaluation using accuracy, precision, recall, F1-score, and Area Under Curve (AUC) metrics. The results show that the model achieved an accuracy of 70.13%, precision of 56.67%, recall of 62.96%, F1-score of 59.65%, and an AUC of 0.765. Glucose and BMI were identified as the most influential variables in the classification outcome, consistent with clinical understanding of type 2 diabetes risk factors. This study concludes that Gaussian Naive Bayes, despite its computational simplicity, remains a viable instrument for early diabetes risk screening, with a recommendation to apply class-balancing techniques in future research to improve model sensitivity.
Downloads
References
American Diabetes Association. (2023). 2. Classification and diagnosis of diabetes: Standards of Care in Diabetes—2023. Diabetes Care, 46(Supplement_1), S19–S40.
Bishop, C. M. (2006). Pattern recognition and machine learning. Springer.
Chawla, N. V., Bowyer, K. W., Hall, L. O., & Kegelmeyer, W. P. (2002). SMOTE: Synthetic minority over-sampling technique. Journal of Artificial Intelligence Research, 16, 321–357.
Fauziyah, N. J., Rahmania, F., Daniyal, M., & Sari, N. F. A. T. (2024). Analisis dan optimalisasi performa algoritma Gaussian Naive Bayes pada prediksi metabolic syndrome menggunakan SMOTE. JISKA (Jurnal Informatika Sunan Kalijaga), 9(2), 112–122. https://repository.uin-malang.ac.id/20732/
International Diabetes Federation. (2021). IDF diabetes atlas (10th ed.). International Diabetes Federation.
Mahendra, Y. H., Kusumawati, R., & Imamudin, M. (2025). Analisis data mining untuk deteksi diabetes mellitus menggunakan Naïve Bayes. Jurnal Computer Science and Information Technology (CoSciTech), 6(1), 39–44. https://repository.uin-malang.ac.id/25515/
Nurussakinah, N., & Faisal, M. (2023). Klasifikasi penyakit diabetes menggunakan algoritma decision tree. Jurnal Informatika, 10(2), 143–149. https://repository.uin-malang.ac.id/17886/
Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V., Thirion, B., Grisel, O., Blondel, M., Prettenhofer, P., Weiss, R., Dubourg, V., Vanderplas, J., Passos, A., Cournapeau, D., Brucher, M., Perrot, M., & Duchesnay, E. (2011). Scikit-learn: Machine learning in Python. Journal of Machine Learning Research, 12, 2825–2830.
Rish, I. (2001). An empirical study of the naive Bayes classifier. IJCAI 2001 Workshop on Empirical Methods in Artificial Intelligence, 3, 41–46.
Smith, J. W., Everhart, J. E., Dickson, W. C., Knowler, W. C., & Johannes, R. S. (1988). Using the ADAP learning algorithm to forecast the onset of diabetes mellitus. Proceedings of the Symposium on Computer Applications and Medical Care, 261–265.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Qusay Mutawali

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work’s authorship and initial publication in this journal.
- 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 this journal.
- 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.
