Sentiment Analysis of Shopee Electronic Product Reviews Using TF-IDF, Logistic Regression, and 1D CNN
DOI:
https://doi.org/10.65897/jadis.v1.i1.98Keywords:
Sentiment Analysis, Shopee Reviews, TF-IDF, Logistic Regression, 1D CNNAbstract
Indonesian e-commerce platforms generate large volumes of product reviews that contain useful evidence about customer satisfaction, product quality, delivery performance, and seller service. This study develops SentiTech-ID, a sentiment classification pipeline for Shopee electronic product reviews. The dataset contains 5,499 reviews collected with Selenium from three electronic products and labeled into positive, neutral, and negative classes using rating-based rules. The study compares two methods: TF-IDF word n-gram representation with balanced Logistic Regression and a 1D Convolutional Neural Network implemented in PyTorch. The preprocessing stage handles informal Indonesian text, removes platform noise, normalizes slang, preserves negation words, and retains English sentiment expressions to reduce information loss in code-switched reviews. The results show that Logistic Regression achieved 93.64% accuracy and 0.5641 macro-F1, while the 1D CNN achieved 94.00% accuracy and 0.4545 macro-F1. Although CNN produced a slightly higher accuracy, Logistic Regression performed better on macro-F1 because it recognized minority sentiment classes more effectively. These findings indicate that accuracy alone is not sufficient for highly imbalanced e-commerce review data. The study contributes a reproducible baseline for Indonesian marketplace sentiment analysis and highlights the need for class balancing, stronger minority-class evaluation, and better treatment of code-switching in future work.
Downloads
References
[1] V. Gooljar, T. Issa, S. Hardin-Ramanan, and B. Abu-Salih, “Sentiment-based predictive models for online purchases in the era of marketing 5.0: a systematic review,” Journal Of Big Data, vol. 11, no. 1, Aug. 2024, doi: 10.1186/s40537-024-00947-0.
[2] H. Murfi, Syamsyuriani, T. Gowandi, G. Ardaneswari, and S. Nurrohmah, “BERT-based combination of convolutional and recurrent neural network for indonesian sentiment analysis,” Applied Soft Computing, vol. 151, pp. 111112–111112, Dec. 2023, doi: 10.1016/j.asoc.2023.111112.
[3] W. Widyananda, M. Maskur, and M. F. A. Fauzi, “Sentiment analysis of Indonesian e-commerce product reviews using machine learning classifiers,” International Journal of Science and Research Archive, vol. 16, no. 2, pp. 445–450, Aug. 2025, doi: 10.30574/ijsra.2025.16.2.2345.
[4] A. A. Lutfi, A. E. Permanasari, and S. Fauziati, “Sentiment Analysis in the Sales Review of Indonesian Marketplace by Utilizing Support Vector Machine,” Journal of Information Systems Engineering and Business Intelligence, vol. 4, no. 1, pp. 57–57, Apr. 2018, doi: 10.20473/jisebi.4.1.57-64.
[5] N. Nabiilah, S. Rohimah, and S. K. P. Loka, “Analyzing Customer Sentiment Towards Marketplace Reviews Using Classification Algorithms,” Indonesian Journal of Applied Technology and Innovation Science, vol. 2, no. 1, pp. 23–30, Feb. 2025, doi: 10.57152/ijatis.v2i1.1774.
[6] C. Lin and U. Nuha, “Sentiment analysis of Indonesian datasets based on a hybrid deep-learning strategy,” Journal Of Big Data, vol. 10, no. 1, pp. 88–88, May 2023, doi: 10.1186/s40537-023-00782-9.
[7] H. Ahmadian, T. F. Abidin, H. Riza, and K. Muchtar, “Hybrid Models for Emotion Classification and Sentiment Analysis in Indonesian Language,” Applied Computational Intelligence and Soft Computing, vol. 2024, no. 1, Jan. 2024, doi: 10.1155/2024/2826773.
[8] M. A. Ayu and A. H. Muhendra, “Preprocessing of Slang Words for Sentiment Analysis on Public Perceptions in Twitter,” in Contact-less Assessment of In-vivo Body Signals Using Microwave Doppler Radar (InTech), Intech (Slovakia), 2023. doi: 10.5772/intechopen.113725.
[9] J. Li, Advances in Sentiment Analysis - Techniques, Applications, and Challenges. IntechOpen, 2023. doi: 10.5772/intechopen.111293.
[10] Y. Yunitasari, A. Musdholifah, and A. K. Sari, “Sarcasm Detection For Sentiment Analysis in Indonesian Tweets,” IJCCS (Indonesian Journal of Computing and Cybernetics Systems), vol. 13, no. 1, pp. 53–53, Jan. 2019, doi: 10.22146/ijccs.41136.
[11] L. W. Astuti, Y. Sari, and S. Suprapto, “Code-Mixed Sentiment Analysis using Transformer for Twitter Social Media Data,” International Journal of Advanced Computer Science and Applications, vol. 14, no. 10, Jan. 2023, doi: 10.14569/ijacsa.2023.0141053.
[12] S. Cahyawijaya et al., “NusaCrowd: Open Source Initiative for Indonesian NLP Resources,” Dec. 19, 2022, Cornell University. doi: 10.48550/arxiv.2212.09648.
[13] B. Wilie et al., “IndoNLU: Benchmark and Resources for Evaluating Indonesian Natural Language Understanding,” Sep. 11, 2020, Cornell University. doi: 10.48550/arxiv.2009.05387.
[14] S. A. H. Bahtiar, C. K. Dewa, and A. Luthfi, “Comparison of Naïve Bayes and Logistic Regression in Sentiment Analysis on Marketplace Reviews Using Rating-Based Labeling,” Journal of Information Systems and Informatics, vol. 5, no. 3, pp. 915–927, Aug. 2023, doi: 10.51519/journalisi.v5i3.539.
[15] A. Setiyawan, A. W. Wijayanto, and Y. He, “Extracting Consumer Opinion on Indonesian E-Commerce: A Rating Evaluation and Lexicon-Based Sentiment Analysis,” Proceedings of The International Conference on Data Science and Official Statistics, vol. 2021, no. 1, pp. 2–11, Jan. 2022, doi: 10.34123/icdsos.v2021i1.22.
[16] Herlinah, S. Aziz, H. M. I. Sultan, Yuyun, M. A. Nur, and Nurfaedah, “Comparison of Machine Learning Models for Indonesian Housewifes’ Digital Discourse,” pp. 422–427, Dec. 2025, doi: 10.1109/bts-i2c67944.2025.11399412.
[17] N. Chamidah, D. Widiyanto, H. B. Seta, and A. A. Aziz, “The Impact of Oversampling and Undersampling on Aspect-Based Sentiment Analysis of Indramayu Tourism Using Logistic Regression,” Revue d intelligence artificielle, vol. 38, no. 3, pp. 795–804, Jun. 2024, doi: 10.18280/ria.380306.
[18] A. Romadhony, S. A. Faraby, R. Rismala, U. N. Wisesty, and A. Arifianto, “Sentiment Analysis on a Large Indonesian Product Review Dataset,” Journal of Information Systems Engineering and Business Intelligence, vol. 10, no. 1, pp. 167–178, Feb. 2024, doi: 10.20473/jisebi.10.1.167-178.
[19] Y. A. Singgalen, “Performance Analysis of IndoBERT for Sentiment Classification in Indonesian Hotel Review Data,” Journal of Information System Research (JOSH), vol. 6, no. 2, pp. 976–986, Jan. 2025, doi: 10.47065/josh.v6i2.6505.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Mohammad Raihan Akbar, Morin Pita Laura, Wildan Ramdani, Gina Khayatun Nufus (Author)

This work is licensed under a Creative Commons Attribution 4.0 International License.
Copyright is retained by the author(s).
Authors grant Journal of Applied Digital and Information Systems (JADIS) the right of first publication and the non-exclusive right to publish, distribute, archive, and identify itself as the original publisher of the article.
All articles published by JADIS are licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0)
Under this license, users are permitted to share, copy, redistribute, adapt, remix, transform, and build upon the material in any medium or format for any lawful purpose, including commercial use, provided that proper attribution is given to the original author(s), the article title, JADIS as the original source, the article DOI or URL, and the license link.
