Customer Complaint Classification at PT Pos Indonesia Manokwari Using Naive Bayes and Random Forest

Authors

  • Rizhmaria Ester Vieta Saphira University Of Papua
  • Christian Dwi Suhendra University Of Papua
  • Lilis Indrayani University Of Papua

DOI:

10.33395/sinkron.v10i3.16280

Keywords:

Complaint Classification, Machine Learning, ; Naive Bayes, Random Forest, TF-IDF

Abstract

Customer complaints represent an important source of information for evaluating service quality and improving organizational performance. However, the increasing volume of complaints received by PT Pos Indonesia Manokwari makes manual complaint classification inefficient and time-consuming. This study aims to compare the performance of Naive Bayes and Random Forest algorithms for customer complaint classification using the Term Frequency–Inverse Document Frequency (TF-IDF) feature extraction method. The dataset consisted of 1,490 customer complaint records collected from the Customer Complaint Handling (CCH) system and categorized into twelve complaint classes. The research process included data cleaning, case folding, stopword removal, TF-IDF transformation, dataset splitting, model training, and performance evaluation. The classification models were evaluated using accuracy, precision, recall, F1-weighted score, F1-macro score, and 5-fold cross-validation. The experimental results showed that Random Forest achieved better performance than Naive Bayes. Random Forest obtained an accuracy of 87.92%, precision of 85.22%, recall of 87.92% an F1-weighted score of 86.30%, and an F1-macro score of 70.85%, while Naive Bayes achieved an accuracy of 84.90%, an F1-weighted score of 84.00%, and an F1-macro score of 48.41%. The cross-validation results produced an average accuracy of 71.81%. Although Random Forest achieved the highest hold-out accuracy, the cross-validation results indicate performance variation across different data partitions, which may be caused by class imbalance among complaint categories. These findings demonstrate that Random Forest is more effective for multiclass customer complaint classification and can support the development of automated complaint management systems at PT Pos Indonesia Manokwari.

GS Cited Analysis

Downloads

Download data is not yet available.

References

Ahmadi, M., Khajavi, M., Varmaghani, A., Ala, A., Danesh, K., & Javaheri, D. (2025). Leveraging Large Language Models for Cybersecurity: Enhancing SMS Spam Detection with Robust and Context-Aware Text Classification. Retrieved from http://arxiv.org/abs/2502.11014

Aprianti, Y., Lia Hananto, A., Shofiah Hilabi, S., Informasi, S., & Buana Perjuangan Karawang, U. (n.d.). Klasifikasi Sentimen Komentar Pengguna pada Aplikasi Ruangguru Menggunakan Algoritma Naive Bayes. 9, 2025. https://doi.org/10.47002/metik.v9i1.1023

Breiman, L. (2001). Random Forests (Vol. 45).

C. A. Nurhaliza Agustina, R. Novita, Mustakim, & N. E. Rozanda. (2024). The Implementation of TF-IDF and Word2Vec on Booster Vaccine Sentiment Analysis Using Support Vector Machine Algorithm. Procedia Computer Science, 234, 156–163.

Fahrezi Putra Ichsansyah, R., & Korespondensi, P. (2026). PERBANDINGAN ALGORITMA NAÏVE BAYES DAN RANDOM FOREST DALAM KLASIFIKASI SENTIMEN ULASAN PENGGUNA KREDIVO DI PLAY STORE COMPARISON OF NAÏVE BAYES AND RANDOM FOREST ALGORITHMS IN SENTIMENT CLASSIFICATION OF KREDIVO USER REVIEWS ON THE PLAY STORE. 13(2), 297–308.

Fitriyani, A., Ibrahim, I., Studi Teknik Informatika, P., Belitung No, J., Sumur Bandung, K., Bandung, K., & Barat, J. (n.d.). Sistemasi: Jurnal Sistem Informasi Perbandingan Kinerja Algoritma Naïve Bayes, Random Forest, dan Support Vector Machine dalam Analisis Sentimen Aplikasi Weverse Performance Comparison of Naïve Bayes, Random Forest, and Support Vector Machine Algorithms in Sentiment Analysis of the Weverse Application. Retrieved from http://sistemasi.ftik.unisi.ac.id

Halim, A., Zidan, F., Handayani, I., & Anggara, A. (2025). Sentiment analysis of the 2024 election using the naïve bayes method using data x. 14(2), 225–234. Retrieved from www.ejournal.isha.or.id/index.php/Mandiri

Helmayanti, S. A., Hamami, F., & Fa’rifah, R. Y. (2023). PENERAPAN ALGORITMA TF-IDF DAN NAÏVE BAYES UNTUK ANALISIS SENTIMEN BERBASIS ASPEK ULASAN APLIKASI FLIP PADA GOOGLE PLAY STORE. Jurnal Indonesia : Manajemen Informatika Dan Komunikasi, 4(3), 1822–1834. https://doi.org/10.35870/jimik.v4i3.415

Jáñez-Martino, F., Alaiz-Rodríguez, R., González-Castro, V., Fidalgo, E., & Alegre, E. (n.d.). Classifying spam emails using agglomerative hierarchical clustering and a topic-based approach. Retrieved from https://talosintelligence.com/reputation_center/email_rep

Khoerunnisa, S., Shiddieq, D. F., & Nurhayati, D. (2025). Penerapan Algoritma Naive Bayes dengan Teknik TF-IDF dan Cross Validation untuk Analisis Sentimen Terhadap Starlink. MALCOM: Indonesian Journal of Machine Learning and Computer Science, 5(2), 566–577. https://doi.org/10.57152/malcom.v5i2.1852

Meinita, R., & Anshori, I. F. (2025). Perbandingan Algoritma Naïve Bayes dan Random Forest untuk Klasifikasi Intent Chatbot Layanan Pelanggan. Jurnal Algoritme, 6(1), 186–198. https://doi.org/10.35957/algoritme.v5i3.12639

Nugroho, A. K., Hayati, L. N., & Jabir, S. R. (2025). Analisis Perbandingan Metode Naive Bayes dan Random Forest pada Klasifikasi Sentimen Publik terhadap Aplikasi Identitas Kependudukan Digital (IKD). Jurnal Algoritma, 22(2). https://doi.org/10.33364/algoritma/v.22-2.2729

Prakoso Indaryono, N. A. (2024). ANALISA PERBANDINGAN ALGORITMA RANDOM FOREST DAN NAÏVE BAYES UNTUK KLASIFIKASI CURAH HUJAN BERDASARKAN IKLIM DI INDONESIA. JIPI (Jurnal Ilmiah Penelitian Dan Pembelajaran Informatika), 9(1), 158–167. https://doi.org/10.29100/jipi.v9i1.4421

Q. Li, & et al. (2022). A Survey on Text Classification: From Traditional to Deep Learning. ACM Transactions on Intelligent Systems and Technology, 13(2), 31.

Riswanto, R., Hidayat, T., & Nasiri, A. (2026). PENERAPAN ALGORITMA RANDOM FOREST DALAM BERBAGAI BIDANG KEILMUAN : SYSTIMATIC LITERATUR REVIEW. JIPI (Jurnal Ilmiah Penelitian Dan Pembelajaran Informatika), 11(1), 285–294. https://doi.org/10.29100/jipi.v11i1.7316

S. Akuma, T. Lubem, & I. T. Adom. (2022). Comparing Bag of Words and TF-IDF with Different Models for Hate Speech Detection from Live Tweets. International Journal of Information Technology, 14(7), 3629–3635.

Santoso, B. A., Nugroho, I., & Asyfiya, D. U. (2025). TIN: Terapan Informatika Nusantara Perbandingan Algoritma Naïve Bayes, Support Vector Machine, dan Random Forest Untuk Analisis Sentimen Komentar Politik Youtube. 6(4). https://doi.org/10.47065/tin.v6i4.8326

Y. Mao, Q. Liu, & Y. Zhang. (2024). Sentiment analysis methods, applications, and challenges: A systematic literature review. Journal of King Saud University - Computer and Information Sciences, 36(4), 102048.

Downloads


Crossmark Updates

How to Cite

Saphira, R. E. V., Suhendra, C. D. ., & Indrayani, L. . (2026). Customer Complaint Classification at PT Pos Indonesia Manokwari Using Naive Bayes and Random Forest. Sinkron : Jurnal Dan Penelitian Teknik Informatika, 10(3), 1319-1329. https://doi.org/10.33395/sinkron.v10i3.16280