Perbandingan Analisis Sentimen Ulasan Produk pada Platform E-Commerce Menggunakan Algoritma Naïve Bayes dan Random Forest
DOI:
https://doi.org/10.53696/venn.v5i3.458Keywords:
Sentiment Analysis, Multinomial Naïve Bayes, Random Forest, TF-IDF, E-CommerceAbstract
Sentiment analysis has become increasingly important in e-commerce because product reviews influence consumer purchasing decisions and provide feedback for sellers to evaluate product quality and improve services. The large number of online reviews on e-commerce platforms makes manual analysis inefficient and time-consuming, thereby requiring automated sentiment classification methods that are accurate and computationally efficient. This study aims to compare the performance of the Multinomial Naïve Bayes and Random Forest algorithms in classifying sentiment in Tokopedia product reviews using the PRDECT-ID dataset, which consists of 5,400 Indonesian-language reviews. The research methodology involved several preprocessing stages, including case folding, cleaning, normalization, tokenization, stopword removal, and stemming using the Sastrawi library, followed by feature extraction using the TF-IDF method. The dataset was divided using a stratified random split approach with 80% training data and 20% testing data, and the models were evaluated using accuracy, precision, recall, F1-score, and ROC-AUC metrics. The results indicate that Multinomial Naïve Bayes outperformed Random Forest, achieving an accuracy of 93.59%, precision of 91.82%, recall of 94.65%, F1-score of 93.21%, and ROC-AUC of 0.9813. In comparison, Random Forest achieved an accuracy of 90.35%, precision of 85.63%, recall of 93.67%, F1-score of 89.47%, and ROC-AUC of 0.9635. In addition to its superior classification performance, Multinomial Naïve Bayes also demonstrated greater computational efficiency with significantly faster training time. These findings suggest that Multinomial Naïve Bayes is a more effective approach for sentiment classification of Indonesian-language e-commerce product reviews.
Downloads
References
Aisyah, A., Siregar, H., & Apriliani, R. R. (2025). Analisis Korelasi Statistik Antara Populasi Jumlah Penduduk dan Pengguna Internet Di Indonesia. Journal of Artificial Intelligence and Digital Business (RIGGS), 4(3), 4776–4781. https://doi.org/10.31004/riggs.v4i3.2684
Aji, B. P., Sri, C., & Aditya, K. (2025). Klasifikasi Sentimen Ulasan Produk pada Platform E-Commerce di Indonesia dengan Menggunakan Model Pre-Trained IndoBERT. Building of Informatics, Technology and Science, 6(4). https://doi.org/10.47065/bits.v6i4.6968
Andreyestha, & Azizah, Q. N. (2022). Analisa Sentimen Kicauan Twitter Tokopedia Dengan Optimalisasi Data Tidak Seimbang Menggunakan Algoritma SMOTE. Infotek : Jurnal Informatika Dan Teknologi, 5(1), 108–116. https://doi.org/10.29408/jit.v5i1.4581 e-ISSN
Atimi, R. L., & Pratama, E. E. (2022). Implementasi Model Klasifikasi Sentimen Pada Review Produk Lazada Indonesia. Jurnal Sains Dan Informatika, 8, 88–96. https://doi.org/10.34128/jsi.v8i1.419
Azis, A. R. (2024). Analisis Komparasi Algoritma Machine Learning dalam Prediksi Performa Akademik Mahasiswa : Literature Review. Jurnal Ilmu Komputer Dan Informatika (JIKI), 4(2), 143–150. https://doi.org/10.54082/jiki.212
Darwis, D., Siskawati, N., & Abidin, Z. (2021). Penerapan Algoritma Naive Bayes untuk Analisis Sentimen Review Data Twitter BMKG Nasional. Jurnal Tekno Kompak, 15(1), 131–145. https://doi.org/10.33365/jtk.v15i1.744
Dewi, C., Chen, R., Christanto, H. J., & Cauteruccio, F. (2023). Multinomial Naive Bayes Classifier for Sentiment Analysis of Internet Movie Database. Vietnam Journal of Computer Science, 10(4), 485–498. https://doi.org/10.1142/S2196888823500100
Enjelia, L., Cahyana, Y., Rahmat, & Wahiddin, D. (2025). Comparison of K-Nearest Neighbors and Naive Bayes Classifier Algorithms in Sentiment Analysis of 2024 Election in Twitter ( X ). Journal of Applied Informatics and Computing (JAIC), 9(3), 946–954. https://doi.org/10.30871/jaic.v9i3.9593
Hasugian, A. H., Fakhriza, M., & Zukhoiriyah, D. (2023). Analisis Sentimen Pada Review Pengguna E-Commerce Menggunakan Algoritma Naïve Bayes. Jurnal Teknologi Sistem Informasi Dan Sistem Komputer TGD, 6, 98–107. https://doi.org/10.53513/jsk.v6i1.7400
Iqbal, M., Abdullah, D., & Afrillia, Y. (2025). Penerapan Algoritma Random Forest untuk Menentukan Kelayakan Penerima BLT. RABIT : Jurnal Teknologi Dan Sistem Informasi Univrab, 10(2), 1220–1230. https://doi.org/10.36341/rabit.v10i2.6503
Kembau, A. S., Putri, J. G. E., & Makarawung, R. J. N. (2025). Customer Indecisiveness pada E-Commerce Indonesia: Peran Price Sensitivity, Product Involvement, Risk, dan Social Inference. Indonesian Journal of Digital Business Journal, 5(2), 460–472. https://doi.org/10.17509/ijdb.v5i2.86161
Nawawi, H. M., Hikmah, A. B., Mustopa, A., & Wijaya, G. (2024). Model Klasifikasi Machine Learning untuk Prediksi Ketepatan Penempatan Karir. Jurnal Saintekom : Sains, Teknologi, Komputer Dan Manajemen, 14(1), 13–25. https://doi.org/10.33020/saintekom.v14i1.512
Pandu W, M. A., Saputro, R. E., & Rohmah, U. A. (2025). Analisis Tingkat Akurasi Metode Naive Bayes dan Random Forest dalam Prediksi Penjualan Emas. Jurnal Pendidikan Dan Teknologi Indonesia (JPTI), 5(7), 1809–1821. https://doi.org/10.52436/1.jpti.732
Panggabean, S., & Junika, A. (2024). Sentiment Analysis on Public Opinions Regarding the 2024 Regional Elections Using Long Short-Term Memory ( LSTM ), Random Forest , and Naive Bayes. JOISTECH: Journal of Information System and Technology, 01(02), 67–75.
Rayhan, F. M., Wijoyo, S. H., Hayuhardhika, W., Putra, N., Studi, P., Informatika, T., Komputer, F. I., Brawijaya, U., Ulasan, S., Forest, R., & Analysis, R. C. (2018). ANALISIS SENTIMEN ROOT CAUSE ANALISIS KEPUASAN PENGGUNA APLIKASI TOKOPEDIA PADA ULASAN MENGGUNAKAN METODE RANDOM FOREST. Jurnal Pengembangan Teknologi Informasi Dan Ilmu Komputer, 1(1).
Saadah, S., Auditama, K. M., Fattahila, A. A., & Amorokhman, F. I. (2026). Implementation of BERT , IndoBERT , and CNN-LSTM in Classifying. JURNAL RESTI(Rekayasa Sistem Dan Teknologi Informasi), 5(158), 2–7. https://doi.org/10.29207/resti.v6i4.4215
Saputra, F. D., & Budiman, F. (2026). Comparison of Random Forest and LSTM for Tokopedia Sentiment Analysis. Journal of Applied Informatics and Computing (JAIC), 10(1), 630–639. https://doi.org/10.30871/jaic.v10i1.12042
Sutarso, Y., Suminar, B., & Ilfitriah, A. M. (2024). Do shopping anxiety and data leakage risks matter to e- commerce customers ? Evidence from the largest economy in Southeast Asia. Jurnal Manajemen Dan Pemasaran Jasa, 17(1), 97–116. https://doi.org/10.25105/jmpj.v17i1.18673
Sutoyo, R., Achmad, S., Chowanda, A., Widhi, E., & Isa, S. M. (2022). PRDECT-ID : Indonesian product reviews dataset for emotions classification tasks. Data in Brief, 44, 108554. https://doi.org/10.1016/j.dib.2022.108554
Syah, A., Nurdiyansyah, F., & Rahman, A. Y. (2024). Analisis Sentimen Aplikasi Shopee, Tokopedia, Lazada dan Blibli Menggunakan Leksikon dan Random Forest. JITET (Jurnal Informatika Dan Teknik Elektro Terapan), 12(3). https://doi.org/10.23960/jitet.v12i3S1.5155
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Afjf Budi Andy B B, Kusnaeni Kusnaeni, Irwan Usman, Muhammad Hidayatullah, Muh. Rifandi

This work is licensed under a Creative Commons Attribution 4.0 International License.
The authors certify that:
- if the manuscript is co-authored, they are authorized by their co-authors to enter into these arrangements.
- the work described has not been formally published before in a registered ISSN or ISBN media, except in the form of an abstract or as part of a published lecture, review, or thesis.
- it is not under consideration for publication elsewhere,
- its publication has been approved by all the author(s) and by the responsible authorities – tacitly or explicitly – of the institutes where the work has been carried out.
- they secure the right to reproduce any material that has already been published or copyrighted elsewhere (it does not infringe on the rights of others).
- they agree to the license and copyright agreement.
All articles published are licensed under Creative Commons Attribution 4.0 International License.
- Authors retain copyright and other proprietary rights related to the article.
- Authors retain the right and are permitted to use the substance of the article in their own future works, including lectures and books.
- Authors grant the journal right of first publication with the work simultaneously licensed under Creative Commons Attribution License (CC BY 4.0) that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post or self-archive their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work.













