Application of the Gaussian Naive Bayes Algorithm for Diabetes Mellitus Risk Classification Based on Simulated Patient Medical Record Data

Penerapan Algoritma Gaussian Naive Bayes Untuk Klasifikasi Risiko Diabetes Melitus Berdasarkan Data Simulasi Rekam Medis Pasien

Authors

  • Ilamsyah Universitas Yatsi Madani Tangerang
  • Aditya Dwi Nurcahyo Universitas Yatsi Madani Tangerang
  • Mutiara Anisa Universitas Yatsi Madani Tangerang

DOI:

https://doi.org/10.33050/sensi.v12i2.4536

Keywords:

Data Mining, Diabetes Mellitus, Gaussian Naive Bayes, Classification, Medical Records, Simulation

Abstract

Diabetes mellitus is a chronic disease with a number of cases that tends to increase over time and can lead to various complications if it is not recognized and treated at an early stage. In this context, the application of data mining techniques can be used to identify and classify the risk level of diabetes based on patients’ characteristics, thereby supporting a more effective decisionmaking process. This study applies the Gaussian Naive Bayes algorithm to classify the risk of diabetes mellitus using 200 simulated data records representing the characteristics of patients medical records. The data consist of several attributes, including age, gender, body weight, height, Body Mass Index (BMI), blood pressure, glucose level, cholesterol level, physical activity, family history of diabetes, smoking habits, and diabetes status as the target variable. The research process consists of several stages, beginning with Exploratory Data Analysis (EDA) to understand the characteristics of the dataset, followed by data preprocessing, conversion of categorical data using the Label Encoding method, and division of the dataset into training and testing sets using an 80:20 ratio. Subsequently, a classification model was developed using the Gaussian Naive Bayes algorithm, and its performance was evaluated using several evaluation metrics, including Accuracy, Precision, Recall, F1-Score, Confusion Matrix, and Classification Report. Based on the testing results, the model achieved an Accuracy of 97.50%, Precision of 94.74%, Recall of 100%, and F1-Score of 97.30%. These results indicate that the Gaussian Naive Bayes algorithm is capable of providing highly accurate classification results on the simulated dataset used in this study. Therefore, the algorithm has the potential to serve as a supporting approach for the identification and classification of diabetes mellitus risk.

Downloads

Download data is not yet available.

References

. Khasanah, L. U., Nasution, Y. N., Deny, F., & Amijaya, T. (2022). Klasifikasi Penyakit

Diabetes Melitus Menggunakan Algoritma Naïve Bayes Classifier. 1(1), 41–50.

http://jurnal.fmipa.unmul.ac.id/index.php/basis

. Rozi, F., Dwi Pamungkas, B., Panggayuh, V., & Satria Putra, F. (2024). JoEICT (Journal of Education and ICT) Journal homepage: https://jurnal.stkippgritulungagung.ac.id/index.php/joeict Gaussian Naive Bayes For Early Diabetes Prediction: A Comprehensive Evaluation Of Classification Performance Across Varying Training Test Proportions. 8(2), 63–69. https://doi.org/10.29100/joeict.v8i2.9282

. Irawan, F., Suprapti, T., & Bahtiar, A. (2023). Klasifikasi Algoritma Naive Bayes dan KNearest Neighbor pada PenderitaDiabetes. 18, 80.

. Arrayyan, A. Z., Setiawan, H., & Putra, K. T. (2024). Naive Bayes for Diabetes Prediction: Developing a Classification Model for Risk Identification in Specific Populations. Semesta Teknika, 27(1), 28–36. https://doi.org/10.18196/st.v27i1.21008

. Najla Salsabila, L., Riyo Dwi Pangga, M., Mauhub Yasser, S., Arin Riyani, N., & Aminah, S. (2024). Application of Naïve Bayes Algorithm for Diabetes Prediction. Jurnal UJMC, 10(1), 56–68.

. Reza Pahlevi, I. (2025). Penerapan Naive Bayes Untuk Prediksi Penyakit Diabetes dengan Menggunakan Rapid Miner. Jurnal Cendekia Ilmiah, 4(4).

. Handayani, F., Firdaus, R., Wahyudi, A., Fu’adah Amran, H., Taufiq, R. M., Informatika, T., Komputer, I., & Riau, U. M. (2025). Kombinasi Algoritma Gaussian Naïve Bayes Dan Adaboost Untuk Meningkatkan Akurasi Dalam Klasifikasi Penyakit Diabetes.

. Nugroho, A, Y. Penerapan Teknik analisis data untuk prediksi penjualan Exploratory Data Analysis (EDA)

. Wororomi, Jonathan, Felix Reba, Samuel Alexander Mandowen, Alvian M.Sroyer, Holomoan Edy manurung. 2024. Data Mining (Memahami Pola Di Balik Angka). CV.EUREKA MEDIA AKSARA

. Permana, Alfin Noval, Juwita Adinda, Roberto Kaban. 2026. Implementasi Naive

Bayesuntuk Memprediksi Prestasi Belajar Siswa MTs Fathurrahman Padang Tualan.

Merkurius: Jurnal Riset Sistem Informasi dan Teknik InformatikaVolume. 4 Nomor. 4 Juli

Downloads

Published

2026-08-20