Klasifikasi risiko diabetes menggunakan algoritma naive bayes berdasarkan dataset pima indians diabetes

Authors

  • Qusay Mutawali Universitas Islam Negeri Maulana Malik Ibrahim Malang

Keywords:

Diabetes Melitus, naive bayes, classification, Pima Indian Diabetes, Data Mining

Abstract

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

Download data is not yet available.

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.

Published

2026-11-02

How to Cite

Mutawali, Q. (2026). Klasifikasi risiko diabetes menggunakan algoritma naive bayes berdasarkan dataset pima indians diabetes. Maliki Interdisciplinary Journal, 4(11), 2101–2112. Retrieved from https://urj.uin-malang.ac.id/index.php/mij/article/view/33372

Issue

Section

Articles