Majority-Class Collapse in Low-Resource E-Commerce Emotion Mining: Diagnostic Evaluation of LSTM on Imbalanced and Linguistically Noisy Indonesian Reviews

Authors

  • Muhammad Raihan Universitas Harapan Medan
  • Tommy Universitas Harapan Medan

DOI:

https://doi.org/10.69916/comtechno.v4i1.407

Keywords:

Long Short-Term Memory, Class Imbalance, Majority-Class Collapse; , Low-Resource NLP, Heuristic Labeling

Abstract

Product reviews on e-commerce platforms such as Shopee provide valuable emotional information that can support customer behavior analysis and business decision-making. However, automatically identifying fine-grained emotions remains challenging because user-generated reviews often contain informal language, abbreviations, spelling variations, and severe class imbalance. Although Long Short-Term Memory (LSTM) networks have demonstrated strong capabilities in sequential text modeling, their robustness under highly imbalanced and low-resource real-world conditions remains insufficiently investigated. This study evaluates an LSTM-Word2Vec architecture for multi-class emotion classification (positive, neutral, and negative) using 306 Indomie product reviews collected from Shopee through web crawling. The proposed methodology includes comprehensive text preprocessing, custom Word2Vec semantic embedding generation, LSTM-based classification, and performance evaluation using Accuracy, Precision, Recall, and F1-Score. To further quantify prediction deviations, numerical error metrics including Mean Squared Error (MSE), Root Mean Squared Error (RMSE), and Mean Absolute Error (MAE) are also employed. Experimental results reveal a pronounced majority-class collapse, where the model achieved only 31% accuracy by predicting nearly all testing samples as the negative class. Detailed diagnostic analysis indicates that this failure is primarily caused by the combined effects of severe class imbalance, the limited dataset size, and noisy labels generated through heuristic proxy annotation. These findings demonstrate that conventional LSTM architectures are highly vulnerable to noisy, colloquial marketplace language when adequate data quality is unavailable. Consequently, this research establishes a realistic baseline for e-commerce emotion mining and emphasizes that model complexity alone cannot overcome fundamental data limitations.

References

M. F. Septokasya, “The Influence of Consumer Reviews on Purchasing Decisions on Shopee E-Commerce, Indonesia,” Int. J. Adm. Bus. Organ., vol. 5, no. 3, pp. 118–128, 2024, doi: 10.61242/ijabo.24.362 JEL.

M. Andriyani and R. Ardianto, “Pengaruh Kualitas Layanan dan Kualitas Produk Terhadap Kepuasan Nasabah Bank,” EKOMABIS J. Ekon. Manaj. Bisnis, vol. 1, no. 02, pp. 133–140, 2020, doi: 10.37366/ekomabis.v1i02.73.

R. Gunawan, M. B. Dimiliu, K. Valerine, and S. P. Tamba, “ANALISIS PREDIKSI PENJUALAN TOKO FURNITUR DENGAN METODE LONG SHORT-TERM MEMORY (LSTM),” J. Tekinkom (Teknik Inf. dan Komputer), vol. 7, no. 2, pp. 716–725, 2024, doi: 10.37600/tekinkom.v7i2.1511

S. Ayu, B. Irawan, and N. A. Ramdhan, “Sentiment Analysis of Shopee User Reviews Using Recurrent Neural Network with LSTM for Real-Time Web-Based Prediction,” J. Comput. Networks, Archit. High Perform. Comput., vol. 08, no. 1, pp. 123–132, 2026, doi: 10.47709/cnahpc.v8i1.7824

H. Akbar, D. Aryani, M. K. M. Al-shammari, and M. B. Ulum, “SENTIMENT ANALYSIS FOR E-COMMERCE PRODUCT REVIEWS BASED ON FEATURE FUSION AND BIDIRECTIONAL LONG SHORT-TERM MEMORY,” J. Tek. Inform., vol. 5, no. 4, pp. 1385–1391, 2024, doi: 10.52436/1.jutif.2024.5.5.2675.

N. K. Gondhi, E. Sharma, A. H. Alharbi, R. Verma, and M. A. Shah, “Efficient Long Short-Term Memory-Based Sentiment Analysis of E-Commerce Reviews,” Comput. Intell. Neurosci., vol. 2022, 2022, doi: 10.1155/2022/3464524

K. Nasution, K. Saddami, R. Roslidar, and A. Akhyar, “Comparative Study of BiLSTM and GRU for Sentiment Analysis on Indonesian E-Commerce Product Reviews Using Deep Sequential Modeling,” J. Tek. Inform., vol. 6, no. 4, pp. 1881–1896, 2025, doi: 10.52436/1.jutif.2025.6.4.4878.

A. Hariz, A. Azrir, P. Naveen, and S. Haw, “Sentiment Analysis using Machine Learning Models on Shopee Reviews,” J. Syst. Manag. Sci., vol. 14, no. 2, pp. 214–228, 2024, doi: 10.33168/JSMS.2024.0213.

L. F. Azsyams, A. Pebrianggara, and I. K. Almanfaluti, “Analysis of the LSTM Model on the Demand Patterns of Indonesian Traditional Cookies in Online Marketplaces,” Int. J. Artif. Intell. Digit. Mark., vol. 2, no. 10, pp. 35–48, 2025, doi: 10.61796/ijaifd.v2i10.419.

M. Bayu, B. Dharmasaguna, and A. Retnowardhani, “Comparison of LSTM and TCN Models for Customer Churn Prediction Based on Sentiment and Transaction Data,” Int. J. Eng. Sci. Inf. Technol., vol. 5, no. 4, pp. 64–74, 2025, doi: 10.52088/ijesty.v5i4.979

D. B. W. Alfredo Gormantara, “KLASIFIKASI KATEGORI DAN PELABELAN BERITA BAHASA INDONESIA MENGGUNAKAN MUTUAL INFORMATION DAN K- NEAREST NEIGHBORS,” J. Temat., vol. 8, pp. 75–82, 2020, doi: 10.56963/tematika.vi.257

O. Stephen, M. Sain, U. J. Maduh, and D. U. Jeong, “An Efficient Deep Learning Approach to Pneumonia Classification in Healthcare,” J. Healthc. Eng., vol. 2019, 2019, doi: 10.1155/2019/4180949.

G. N. A. H. Yar, M. Taha, Z. Afzal, F. Zafar, I. U. R. Shahid, and A. Noor-Ul-Hassan, “TexGAN: Textile Pattern Generation Using Deep Convolutional Generative Adversarial Network (DCGAN),” Proc. - 2023 IEEE Int. Conf. Emerg. Trends Eng. Sci. Technol. ICES T 2023, no. June, 2023, doi: 10.1109/ICEST56843.2023.10138848.

Guruh Wijaya, Dudi Irawan, Zainul Arifin, Hardian Oktavianto, Miftahur Rahman, and Ginanjar Abdurrahman, “Studi Klasifikasi Topik Berita Dengan Algoritma Machine Learning,” J-Ensitec, vol. 11, no. 01, pp. 10202–10206, 2024, doi: 10.31949/jensitec.v11i01.12037.

P. Sayarizki and H. Nurrahmi, “Implementation of IndoBERT for Sentiment Analysis of Indonesian Presidential Candidates,” J. Comput., vol. 9, no. 2, pp. 61–72, 2024, doi: 10.34818/indojc.2024.9.2.934.

A. Muhaddisi, “Sentiment Analysis With Sarcasm Detection on Politician’s Instagram,” Ijccs (Indonesian J. Comput. Cybern. Syst., 2021, doi: 10.22146/ijccs.66375.

N. Tabassum, A. Namoun, T. Alyas, A. Tufail, M. Taqi, and K. H. Kim, “Classification of Bugs in Cloud Computing Applications Using Machine Learning Techniques,” Appl. Sci., vol. 13, no. 5, 2023, doi: 10.3390/app13052880.

F. D. K. Romario Onsu, Daniel Febrian Sengkey, “IMPLEMENTASI BI-LSTM DENGAN EKSTRAKSI FITUR WORD2VEC UNTUK PENGEMBANGAN ANALISIS SENTIMEN APLIKASI IDENTITAS KEPENDUDUKAN DIGITAL,” vol. 10, no. 1, pp. 46–55, 2024, doi: 10.54914/jtt.v10i1.1225

J. Yu, S. Park, S. H. Kwon, C. M. B. Ho, C. S. Pyo, and H. Lee, “AI-based stroke disease prediction system using real-time electromyography signals,” Appl. Sci., vol. 10, no. 19, 2020, doi: 10.3390/app10196791.

A. M. Hasan, M. M. AL-Jawad, H. A. Jalab, H. Shaiba, R. W. Ibrahim, and A. R. AL-Shamasneh, “Classification of Covid-19 Coronavirus, Pneumonia and Healthy Lungs in CT Scans Using Q-Deformed Entropy and Deep Learning Features,” Entropy, vol. 22, 2020, doi: 10.3390/e22050517

B. Imran, H. Hambali, A. Subki, Z. Zaeniah, A. Yani, and M. R. Alfian, “Data Mining Using Random Forest, Naïve Bayes, and Adaboost Models for Prediction and Classification of Benign and Malignant Breast Cancer,” J. Pilar Nusa Mandiri, vol. 18, no. 1, pp. 37–46, 2022, doi: 10.33480/pilar.v18i1.2912.

Downloads

Published

2026-07-22

PlumX Metrics

Scite Metrics

Altmetric

How to Cite

Muhammad Raihan, & Tommy. (2026). Majority-Class Collapse in Low-Resource E-Commerce Emotion Mining: Diagnostic Evaluation of LSTM on Imbalanced and Linguistically Noisy Indonesian Reviews. Journal Computer and Technology, 4(1), 76–91. https://doi.org/10.69916/comtechno.v4i1.407

Issue

Section

Articles