Bulletin of Computer Science Research
Vol. 6 No. 4 (2026): June 2026

Implementasi dan Evaluasi Performa Algoritma Naïve Bayes dalam Deteksi Dini Penyakit Diabetes

Nurhasanah Nurhasanah (Universitas Pamulang, Tangerang Selatan)
Nilovar Asyiah (Universitas Pamulang, Tangerang Selatan)
Rahmawati Rahmawati (Universitas Pamulang, Tangerang Selatan)



Article Info

Publish Date
30 Jun 2026

Abstract

Diabetes mellitus is one of the most prevalent chronic diseases worldwide and requires early detection to reduce the risk of severe complications through timely intervention. This study aims to implement and evaluate the performance of the Naïve Bayes algorithm in supporting the early detection of diabetes based on patients' health data. The study employed the Pima Indians Diabetes Dataset, consisting of 768 patient records with eight input attributes and one output attribute. During the preprocessing stage, zero values in physiological attributes were treated as missing values and replaced using the median of each respective attribute, followed by data consistency checking and dataset partitioning using the 80:20 split validation method. Model performance was evaluated using a confusion matrix with four performance metrics: accuracy, precision, recall, and F1-score. The experimental results showed that the Naïve Bayes algorithm achieved an accuracy of 88.31%, precision of 87.80%, recall of 90.00%, and an F1-score of 88.89%. These findings indicate that the proposed model performs well in classifying diabetes risk. The implementation of the model in a web-based application is expected to assist healthcare professionals and the general public as an early screening tool to support preliminary decision-making before comprehensive medical examination.

Copyrights © 2026






Journal Info

Abbrev

bulletincsr

Publisher

Subject

Computer Science & IT

Description

Bulletin of Computer Science Research covers the whole spectrum of Computer Science, which includes, but is not limited to : • Artificial Immune Systems, Ant Colonies, and Swarm Intelligence • Bayesian Networks and Probabilistic Reasoning • Biologically Inspired Intelligence • Brain-Computer ...