Development of a Web-Based E-Commerce Product Review Sentiment Analysis System: A Comparative Study of Naive Bayes and Support Vector Machine

Authors

  • Robby Tri Ardianto Gunadarma University, Indonesia
  • Dia Ragasari Universitas Gunadarma, Indonesia

DOI:

https://doi.org/10.56127/ijml.v5i3.3132

Keywords:

E-Commerce; Sentiment Analysis; Support Vector Machine; Naive Bayes; TF-IDF; Product Improvement Recommendation

Abstract

The increasing volume of customer reviews on e-commerce platforms presents challenges for micro, small, and medium enterprises (MSMEs) in identifying customer perceptions and translating feedback into actionable product improvements. This study aims to develop a web-based sentiment analysis system that compares the performance of Naive Bayes and Support Vector Machine (SVM) algorithms while providing automated product improvement recommendations. The system was developed using the Waterfall methodology, incorporating requirements analysis, system design, implementation, and functional testing. A total of 5,397 Indonesian-language product reviews from the PRDECT-ID dataset were processed using text preprocessing and Term Frequency–Inverse Document Frequency (TF-IDF) feature extraction. Sentiment classification was supported by a rule-based lexicon approach for handling neutral sentiment. Model performance was evaluated using accuracy, precision, recall, and F1-score, while system functionality was assessed through black-box testing. The experimental results demonstrate that SVM outperformed Naive Bayes, achieving an accuracy of 94.44%, precision of 94.46%, recall of 94.44%, and F1-score of 94.44%, compared with 93.98%, 94.13%, 93.98%, and 93.97%, respectively, for Naive Bayes. The resulting system, SentimenUMKM, was implemented using the Flask framework and provides sentiment visualization, individual and batch review analysis, and rule-based product improvement recommendations. These findings indicate that SVM offers superior classification performance for the evaluated dataset and demonstrate the practical potential of integrating sentiment classification with automated recommendations to support data-driven product improvement decisions among MSMEs.

References

Abighail, B., Fachrifansyah, Firmanda, M., Anggreainy, M., Harvianto, & Gintoro. (2023). Sentiment analysis e-commerce review. Procedia Computer Science, 227, 1039–1045. https://doi.org/10.1016/j.procs.2023.10.613

Badulescu, Y., Cañas, F., & Cheikhrouhou, N. (2024). Judgmental adjustment of demand forecasting models using social media data and sentiment analysis within Industry 5.0 ecosystems. International Journal of Information Management Data Insights, 4(2), 100272. https://doi.org/10.1016/j.jjimei.2024.100272

Brauwers, G., & Frasincar, F. (2023). A survey on aspect-based sentiment classification. ACM Computing Surveys, 55(4), Article 65. https://doi.org/10.1145/3503044

Chauhan, G. S., Nahta, R., Meena, Y. K., & Gopalani, D. (2023). Aspect based sentiment analysis using deep learning approaches: A survey. Computer Science Review, 49, 100576. https://doi.org/10.1016/j.cosrev.2023.100576

Gooljar, V., Issa, T., Hardin-Ramanan, S., & Abu-Salih, B. (2024). Sentiment-based predictive models for online purchases in the era of marketing 5.0: A systematic review. Journal of Big Data, 11, Article 107. https://doi.org/10.1186/s40537-024-00947-0

Jain, P. K., Pamula, R., & Srivastava, G. (2021). A systematic literature review on machine learning applications for consumer sentiment analysis using online reviews. Computer Science Review. [Volume, article number, dan DOI perlu diverifikasi.]

Kamal, A., & Astri, R. (2025). Eksplorasi sentimen pengguna pada aplikasi e-commerce dengan deep learning. Jurnal Teknologi dan Sistem Informasi Bisnis, 7(3), 435–441. https://doi.org/10.47233/jteksis.v7i3.2010

Mao, Y., Liu, Q., & Zhang, Y. (2024). Sentiment analysis methods, applications, and challenges: A systematic literature review. Journal of King Saud University – Computer and Information Sciences, 36(4), 102048. https://doi.org/10.1016/j.jksuci.2024.102048

Nurmadewi, D., Jailani, Z. F., Rafi, H., Anggoro, D. A., & Setiowati, D. (2026). Perbandingan Support Vector Machine dan Naïve Bayes untuk klasifikasi sentimen ulasan e-commerce. MALCOM: Indonesian Journal of Machine Learning and Computer Science, 6(2). https://doi.org/10.57152/malcom.v6i2.2648

Romadhony, A., Al Faraby, S., Rismala, R., Wisesty, U. N., & Arifianto, A. (2024). Sentiment analysis on a large Indonesian product review dataset. Journal of Information Systems Engineering and Business Intelligence, 10(1), 167–178. https://doi.org/10.20473/jisebi.10.1.167-178

Sutoyo, R., Achmad, S., Chowanda, A., Andangsari, E. W., & 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

Tarigan, A., Sahputra, I., & Multazam, T. (2024). Analisis algoritma Naive Bayes Classifier untuk mendeteksi berita hoax pada Dinas Komunikasi Informatika dan Persandian. SISFO: Jurnal Ilmiah Sistem Informasi, 8(1), 1–13. https://doi.org/10.29103/sisfo.v8i1.18083

Yolanda, A. M., & Tri Mulya, R. (2024). Implementasi metode Support Vector Machine untuk analisis sentimen pada ulasan aplikasi Sayurbox di Google Play Store. VARIANSI: Journal of Statistics and Its Application on Teaching and Research, 6(2), 76–83. https://doi.org/10.35580/variansiunm258

Zhang, W., Li, X., Deng, Y., Bing, L., & Lam, W. (2023). A survey on aspect-based sentiment analysis: Tasks, methods, and challenges. IEEE Transactions on Knowledge and Data Engineering, 35(11), 11019–11038. https://doi.org/10.1109/TKDE.2022.3230975

Zhao, G., Luo, Y., Chen, Q., & Qian, X. (2023). Aspect-based sentiment analysis via multitask learning for online reviews. Knowledge-Based Systems, 264, 110326. https://doi.org/10.1016/j.knosys.2023.110326.

Downloads

Published

2026-10-17

Citation Check