Classification of Smartphone Product Reviews on E-Commerce using the Recurrent Neural Network (RNN) Method

Main Article Content

Rajibul Anam
Fernanda Tata Pradhana
Imam Abu Yasin
Junta Zeniarja

Abstract

Understanding how consumers behave in e-commerce is essential for businesses, especially in today’s digital world where people rely heavily on online shopping platforms. A key part of this understanding comes from sentiment analysis, which looks at customer reviews to find out what buyers really think and feel about products. However, analysing these reviews is not always straightforward. Many people use informal language, slang, or mixed languages, which makes it hard for computers to interpret their opinions accurately. On top of that, there is often an imbalance in the types of data available, particularly in developing countries, where some opinions might be overrepresented while others are missing. In this study, we tackled these challenges by collecting a large number of smartphone reviews from a leading e-commerce site. We used a Recurrent Neural Network (RNN) with a bidirectional Long Short-Term Memory (LSTM) architecture, which is good at understanding the context and meaning in sequences of words. Our approach also involved optimizing the model with the Adam optimizer, using 100-dimensional word embeddings, and applying dropout regularisation to prevent overfitting. For comparison, we tested more traditional techniques, like Support Vector Machine (SVM) and Naïve Bayes, against our RNN model. By balancing the dataset with random oversampling, the RNN achieved an impressive accuracy of 95.13%, outperforming the baseline methods by 7–9%. Overall, our results highlight the potential of advanced neural network models in improving sentiment analysis for e-commerce platforms, especially in challenging environments. This research provides a practical foundation for future work in natural language processing and can help businesses better understand and respond to their customers’ needs.

Article Details

How to Cite
Anam, R., Tata Pradhana, F., Abu Yasin, I., & Zeniarja, J. (2025). Classification of Smartphone Product Reviews on E-Commerce using the Recurrent Neural Network (RNN) Method. Journal of Informatics and Web Engineering, 4(2), 375–386. https://doi.org/10.33093/jiwe.2025.4.2.24
Section
Thematic (Augmented Intelligence)

References

H. Zhao, Z. Liu, X. Yao, and Q. Yang, ‘A machine learning-based sentiment analysis of online product reviews with a novel term weighting and feature selection approach’, Information Processing & Management, vol. 58, no. 5, p. 102656, Sep. 2021. doi: 10.1016/j.ipm.2021.102656.

R. Deora, S. Ramakrishnan, R. Prathikantam, and S. Seth, ‘Revolutionizing Customer Experience Through NLP and Sentiment Analysis Strategies’, in 2025 2nd International Conference on Computational Intelligence, Communication Technology and Networking (CICTN), Feb. 2025, pp. 1005–1009. doi: 10.1109/CICTN64563.2025.10932467.

‘5 Besar Vendor Smartphone di Indonesia pada 2022, Oppo-Samsung Mendominasi’. Accessed: May 18, 2025. [Online]. Available: https://tekno.kompas.com/read/2023/02/20/09030057/5-besar-vendor-smartphone-di-indonesia-pada-2022-oppo-samsung-mendominasi

A. Shaik, B. A. Devi, R. Baskaran, S. Bojjawar, P. Vidyullatha, and P. Balaji, ‘Recurrent neural network with emperor penguin-based Salp swarm (RNN- EPS2) algorithm for emoji based sentiment analysis’, Multimed Tools Appl, vol. 83, no. 12, pp. 35097–35116, Apr. 2024. doi: 10.1007/s11042-023-16808-6.

H. M. U. Ali, Q. Farooq, A. Imran, and K. El Hindi, ‘A systematic literature review on sentiment analysis techniques, challenges, and future trends’, Knowl Inf Syst, vol. 67, no. 5, pp. 3967–4034, May 2025. doi: 10.1007/s10115-025-02365-x.

I. H. Hafidz, A. Sulistya, and B. R. Lidiawaty, ‘Sentiment Analysis of Public Complaints: A Machine Learning Comparison of SVM, Naive Bayes, Random Forest, and XGBoost’, in 2025 International Conference on Advancement in Data Science, E-learning and Information System (ICADEIS), Feb. 2025, pp. 1–6. doi: 10.1109/ICADEIS65852.2025.10933382.

K. Xu, H. Zhou, H. Zheng, M. Zhu, and Q. Xin, ‘Intelligent Classification and Personalized Recommendation of E-commerce Products Based on Machine Learning’, Mar. 28, 2024, arXiv: arXiv:2403.19345. doi: 10.48550/arXiv.2403.19345.

M. Zaghloul, S. Barakat, and A. Rezk, ‘Predicting E-commerce customer satisfaction: Traditional machine learning vs. deep learning approaches’, Journal of Retailing and Consumer Services, vol. 79, p. 103865, Jul. 2024. doi: 10.1016/j.jretconser.2024.103865.

K. Lin, X. Kan, and M. Liu, ‘Knowledge extraction by integrating emojis with text from online reviews’, Journal of Knowledge Management, vol. 28, no. 9, pp. 2712–2728, Jul. 2024. doi: 10.1108/JKM-01-2024-0104.

A. Daza, N. D. González Rueda, M. S. Aguilar Sánchez, W. F. Robles Espíritu, and M. E. Chauca Quiñones, ‘Sentiment Analysis on E-Commerce Product Reviews Using Machine Learning and Deep Learning Algorithms: A Bibliometric Analysis, Systematic Literature Review, Challenges and Future Works’, International Journal of Information Management Data Insights, vol. 4, no. 2, p. 100267, Nov. 2024. doi: 10.1016/j.jjimei.2024.100267.

Y. Yu, X. Si, C. Hu, and J. Zhang, ‘A Review of Recurrent Neural Networks: LSTM Cells and Network Architectures’, Neural Computation, vol. 31, no. 7, pp. 1235–1270, Jul. 2019. doi: 10.1162/neco_a_01199.

E. F. Can, A. Ezen-Can, and F. Can, ‘Multilingual Sentiment Analysis: An RNN-Based Framework for Limited Data’, Jun. 08, 2018, arXiv: arXiv:1806.04511. doi: 10.48550/arXiv.1806.04511.

G. Keren and B. Schuller, ‘Convolutional RNN: An enhanced model for extracting features from sequential data’, in 2016 International Joint Conference on Neural Networks (IJCNN), Jul. 2016, pp. 3412–3419. doi: 10.1109/IJCNN.2016.7727636.

M. R. Raza, W. Hussain, and J. M. Merigó, ‘Cloud Sentiment Accuracy Comparison using RNN, LSTM and GRU’, in 2021 Innovations in Intelligent Systems and Applications Conference (ASYU), Oct. 2021, pp. 1–5. doi: 10.1109/ASYU52992.2021.9599044.

T. A. Zuraiyah, M. M. Mulyati, and G. H. F. Harahap, ‘PERBANDINGAN METODE NAÏVE BAYES, SUPPORT VECTOR MACHINE DAN RECURRENT NEURAL NETWORK PADA ANALISIS SENTIMEN ULASAN PRODUK E-COMMERCE’, MULTITEK INDONESIA, vol. 17, no. 1, Art. no. 1, Jul. 2023. doi: 10.24269/mtkind.v17i1.7092.

H. Utami, ‘Analisis Sentimen dari Aplikasi Shopee Indonesia Menggunakan Metode Recurrent Neural Network’, Indonesian Journal of Applied Statistics, vol. 5, no. 1, Art. no. 1, May 2022. doi: 10.13057/ijas.v5i1.56825.

A. Topbas, A. Jamil, A. A. Hameed, S. M. Ali, S. Bazai, and S. A. Shah, ‘Sentiment Analysis for COVID-19 Tweets Using Recurrent Neural Network (RNN) and Bidirectional Encoder Representations (BERT) Models’, in 2021 International Conference on Computing, Electronic and Electrical Engineering (ICE Cube), Oct. 2021, pp. 1–6. doi: 10.1109/ICECube53880.2021.9628315.

M. A. Saputra and E. B. Setiawan, ‘Aspect Based Sentiment Analysis Using Recurrent Neural Networks (RNN) on Social Media Twitter’, in 2023 International Conference on Data Science and Its Applications (ICoDSA), Aug. 2023, pp. 265–270. doi: 10.1109/ICoDSA58501.2023.10276768.

S. A. Lashari, M. M. Khan, A. Khan, S. Salahuddin, and M. N. . Ata, “Comparative Evaluation of Machine Learning Models for Mobile Phone Price Prediction: Assessing Accuracy, Robustness, and Generalization Performance”, Journal of Informatics and Web Engineering, vol. 3, no. 3, pp. 147–163, Oct. 2024. doi: 10.33093/jiwe.2024.3.3.9

C. P. Ling Tung, S.-C. Haw, W.-E. Kong, and P. Naveen, “Movie Recommender System Based on Generative AI,” 2024 International Symposium on Parallel Computing and Distributed Systems (PCDS), pp. 1–7, Sep. 2024. doi: 10.1109/pcds61776.2024.10743897.

P. A. Naidu, K. D. K. Yadav, B. Meena, and Y. V. N. Meesala, ‘Sentiment Analysis By Using Modified RNN And A Tree LSTM’, in 2022 International Conference on Computing, Communication and Power Technology (IC3P), Jan. 2022, pp. 6–10. doi: 10.1109/IC3P52835.2022.00012.

A. F. Agarap, ‘Statistical Analysis on E-Commerce Reviews, with Sentiment Classification using Bidirectional Recurrent Neural Network (RNN)’, Jun. 16, 2020, arXiv: arXiv:1805.03687. doi: 10.48550/arXiv.1805.03687.

N. M. Alharbi, N. S. Alghamdi, E. H. Alkhammash, and J. F. Al Amri, ‘Evaluation of Sentiment Analysis via Word Embedding and RNN Variants for Amazon Online Reviews’, Mathematical Problems in Engineering, vol. 2021, no. 1, p. 5536560, 2021. doi: 10.1155/2021/5536560.

Rianto, A. B. Mutiara, E. P. Wibowo, and P. I. Santosa, ‘Improving the accuracy of text classification using stemming method, a case of non-formal Indonesian conversation’, J Big Data, vol. 8, no. 1, p. 26, Jan. 2021. doi: 10.1186/s40537-021-00413-1.

E. D. Madyatmadja, B. N. Yahya, and C. Wijaya, ‘Contextual Text Analytics Framework for Citizen Report Classification: A Case Study Using the Indonesian Language’, IEEE Access, vol. 10, pp. 31432–31444, 2022. doi: 10.1109/ACCESS.2022.3158940.