ANALISIS KOMPARATIF KINERJA ALGORITMARANDOM FOREST DAN NAÏVE BAYES DALAM KLASIFIKASI SKALA INDUSTRI DI KABUPATEN KUBU RAYA
DOI:
https://doi.org/10.55681/sentri.v5i9.7290Keywords:
Random Forest, Naive Bayes, classification, industrial scale, Machine LearningAbstract
The rapid growth of the industrial sector in Kubu Raya Regency has generated large volumes of company data, making manual classification increasingly difficult. This study compares the performance of the Random Forest and Naive Bayes algorithms in classifying industrial scale based on location, business type, and production capacity. The dataset consists of 591 industrial company records with an imbalanced class distribution. The research process includes data preprocessing, model training, testing, and performance evaluation using the Confusion Matrix, Accuracy, Precision, Recall, F1-Score, and AUC-ROC metrics implemented in Python through Google Colab. The results show that Random Forest outperformed Naive Bayes, achieving 95.80% accuracy, a macro-average F1-score of 60.51%, a macro-average AUC-ROC of 94.50%, and a five-fold cross-validation accuracy of 95.34%. In contrast, Naive Bayes achieved only 45.38% accuracy and a macro-average AUC-ROC of 71.33%. Statistical testing confirmed a significant performance difference, indicating that Random Forest is more effective for industrial-scale classification despite challenges in identifying the minority middle-scale class.
Downloads
References
Ernawati, Z. Sitorus, M. Iqbal, and D. Nasution, “Penerapan data mining untuk klasifikasi penduduk miskin di Kabupaten Labuhanbatu menggunakan Random Forest dan K-Nearest Neighbors,” Bulletin of Information Technology (BIT), vol. 6, no. 2, pp. 23–35, 2025, doi: 10.47065/bit.v5i2.1783.
N. Fayza, N. Svensons, S. A. Fatmawati, P. Rotua, and K. Erviona, “Analisis perbandingan algoritma klasifikasi Decision Tree, K-Nearest Neighbors, Naive Bayes, dan Random Forest pada data pemilihan legislatif KPU menggunakan kurva ROC,” Journal of Data Science Methods and Applications, vol. 1, no. 1, pp. 7–17, 2025, doi: 10.30873/jodmapps.v1i1.pp7-17.
R. G. Guntara, “Visualisasi data laporan penjualan toko online melalui pendekatan data science menggunakan Google Colab,” ULIL ALBAB: Jurnal Ilmiah Multidisiplin, vol. 2, no. 6, pp. 2091–2100, 2023.
M. Z. Haq, C. S. Octiva, A. Ayuliana, U. W. Nuryanto, and D. Suryadi, “Algoritma Naïve Bayes untuk mengidentifikasi hoaks di media sosial,” Jurnal Minfo Polgan, vol. 13, no. 1, pp. 1079–1084, 2024.
T. Hardoyo and E. H. P. Eko, “Klasifikasi usaha mikro kecil menengah menggunakan jaringan syaraf tiruan backpropagation,” KONSTELASI: Konvergensi Teknologi dan Sistem Informasi, vol. 2, no. 1, pp. 111–123, 2022, doi: 10.24002/konstelasi.v2i1.5625.
D. Kurniasari, R. N. Hidayah, N. Notiragayu, W. Warsono, and R. K. Nisa, “Classification models for academic performance: A comparative study of Naïve Bayes and Random Forest algorithms in analyzing University of Lampung student grades,” Jurnal Teknik Informatika (JUTIF), vol. 5, no. 5, pp. 1267–1276, 2024, doi: 10.52436/1.jutif.2024.5.5.2066.
K. Nugroho, L. N. Hayati, and S. R. Jabir, “Analisis perbandingan metode Naive Bayes dan Random Forest pada klasifikasi sentimen publik terhadap aplikasi Identitas Kependudukan Digital (IKD),” Jurnal Algoritma, vol. 22, no. 2, pp. 619–631, 2025, doi: 10.33364/algoritma/v.22-2.2729.
Prasetyo, D. M. Fazri, M. F. Prasetyo, and H. Supendar, “Analisis perbandingan algoritma Naive Bayes dan Random Forest dalam klasifikasi prediksi area rawan kebakaran di DKI Jakarta,” vol. 4, no. 2, pp. 399–409, 2026.
Rohanah, D. L. Rianti, B. N. Sari, T. Informatika, U. S. Karawang, and K. Pelanggan, “Perbandingan Naive Bayes dan Support Vector Machine,” vol. 6, no. 1, pp. 23–30, 2025.
R. Sari, K. Sadik, A. M. Soleh, and C. Suhaeni, “Evaluasi model klasifikasi dalam deteksi penipuan transaksi: Studi kasus pada data tidak seimbang,” Jurnal Gaussian, vol. 14, no. 2, pp. 565–576, 2025, doi: 10.14710/j.gauss.14.2.565-576.
M. Sumual, J. Supriadi, E. Effendy, and A. Wijaya, “Klasifikasi kategori produk terlaris pada e-commerce menggunakan algoritma Naive Bayes,” vol. 5, no. 2, pp. 51–60, 2024.
N. M. Surbakti, A. Angelyca, A. Talia, C. B. Perangin-Angin, D. O. Nainggolan, N. D. Friskauly, and S. R. B. Tumorang, “Penggunaan bahasa pemrograman Python dalam pembelajaran kalkulus fungsi dua variabel,” Algoritma: Jurnal Matematika, Ilmu Pengetahuan Alam, Kebumian dan Angkasa, vol. 2, no. 3, pp. 98–107, 2024.
Yohannes, “Analisis perbandingan algoritma,” Annual Research Seminar 2016, vol. 2, no. 1, pp. 151–155, 2016.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Sadilla Evrillia, Dedi Saputra, Siti Nurdiani

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.





