Sentiment Analysis of Indonesian E-Commerce Product Reviews Using Indobert Fine-Tuning on A Multi-Source Combined Corpus

Authors

  • ADITYA RAHMATULLAH UIN ALAUDDIN MAKASSAR
  • Adhy Rizaldy Universitas Islam Negeri Alauddin Makassar
  • Syahbudin Universitas Islam Negeri Alauddin Makassar
  • Izmy Alwiah Musdar Universitas Islam Negeri Alauddin Makassar
  • Hastuti Universitas Islam Negeri Alauddin Makassar

DOI:

https://doi.org/10.59934/jaiea.v6i1.3040

Keywords:

Class Imbalance, Fine-tuning, IndoBERT, Multi-source corpus, Sentiment analysis

Abstract

Consumer reviews on Indonesian e-commerce platforms now arrive faster than manual analysis can process them, and IndoBERT has become a common choice for classifying them automatically. Many studies, however, train on a single data source and report one training run, with no documented hyperparameter search and no test of stability. This study addressed both shortcomings. The training corpus combined three public datasets that differ in writing style and domain: SmSA, PRDECT-ID, and Review Product Shopee, totalling 20,608 reviews labelled Positive, Negative, or Neutral. Evaluation ran in three stages: a focused random search over seven hyperparameter combinations, 5-fold cross-validation, and an A/B ablation study. Class weighting compensated for a 51.9% imbalance spread between classes, and the macro F1-score served as the primary metric. The best configuration (learning rate 3×10⁻⁵, batch size 8, three epochs) reached 94.19% accuracy and a macro F1-score of 90.31% on 2,064 test reviews, above the initial target of 0.85. Across five folds the mean macro F1 was 90.16%, with a standard deviation of 1.0%. Back-translation augmentation of the minority Neutral class raised recall but lowered precision, so the model without augmentation was kept as final.

Downloads

Download data is not yet available.

References

D. Setyowati, “Transaksi Belanja Online 2024 Diramal Rp 487 Triliun, Live Shopping Jadi Tren,” katadata.co.id. Accessed: Oct. 12, 2025. [Online]. Available: https://katadata.co.id/digital/e-commerce/675ab54ee7981/transaksi-belanja-online-2024-diramal-rp-487-triliun-live-shopping-jadi-tren

M. Ulya and S. R. Zannah, “Dampak Daya Beli dan Penetrasi Internet Terhadap Pertumbuhan Bisnis Start Up di Indonesia,” J-DBS J. Darunnajah Bus. Sch., vol. 1, no. 1, pp. 21–30, 2024.

M. Siahaan, “E-commerce in Indonesia - statistics & Facts,” statista.com. [Online]. Available: https://www.statista.com/topics/5742/e-commerce-in-indonesia/#topicOverview

T. Chen, P. Samaranayake, X. Y. Cen, M. Qi, and Y. C. Lan, “The Impact of Online Reviews on Consumers’ Purchasing Decisions: Evidence From an Eye-Tracking Study,” Front. Psychol., vol. 13, no. June, 2022, doi: 10.3389/fpsyg.2022.865702.

Y. Filahi et al., “Enhanced E-commerce decision-making through sentiment analysis using machine learning-based approaches and IoT,” PLoS One, vol. 20, no. 6 June, pp. 1–33, 2025, doi: 10.1371/journal.pone.0326744.

T. Dye, “Review Analysis: How to Analyze Customer & Product Reviews,” getthematic.com.

H. Huang, A. A. Zavareh, and M. B. Mustafa, “Sentiment Analysis in E-Commerce Platforms: A Review of Current Techniques and Future Directions,” IEEE Access, vol. 11, pp. 90367–90382, 2023, doi: 10.1109/ACCESS.2023.3307308.

G. K. Putri, H. Sujaini, and D. I. Ulumi, “Perbandingan Algoritma Support Vector Machine (SVM) dan Naive Bayes pada Analisis Sentimen Bahasa Jawa dan Sunda,” JUSTIN J. Sist. dan Teknol. Inf., vol. 13, no. 2, pp. 299–306, 2025, doi: 10.26418/justin.v13i2.88285.

E. Miranda, V. Gabriella, S. A. Wahyudi, and J. Chai, “Text Classification untuk Menganalisis Sentimen Pendapat Masyarakat Indonesia terhadap Vaksinasi Covid-19,” Sist. J. Sist. Inf., vol. 12, p. 11530, 2023, [Online]. Available: http://sistemasi.ftik.unisi.ac.id

E. Daniati, A. Nugroho, A. Ristyawan, and H. Utama, “Perbandingan Kinerja Algoritma SVM , LSTM , dan Fine- tuned IndoBERT dalam Analisis Sentimen Opini Masyarakat Indonesia terhadap Mobil Listrik,” IJCSR Indones. J. Comput. Sci. Res., vol. 5, no. 1, pp. 1–13, 2026, doi: 10.59095/ijcsr.v5i1.245.

W. Christian, D. Adamlu, A. Yu, and D. Suhartono, “Leveraging IndoBERT and DistilBERT for Indonesian Emotion Classification in E-Commerce Reviews,” Procedia Comput. Sci., vol. 00, 2025, [Online]. Available: http://arxiv.org/abs/2509.14611

M. R. Manoppo et al., “Analisis Sentimen Publik Di Media Sosial Terhadap Kenaikan Ppn 12% Di Indonesia Menggunakan Indobert,” J. Kecerdasan Buatan dan Teknol. Inf., vol. 4, no. 2, pp. 152–163, 2025, doi: 10.69916/jkbti.v4i2.322.

H. Jayadianti, W. Kaswidjanti, A. T. Utomo, S. Saifullah, F. A. Dwiyanto, and R. Drezewski, “Sentiment analysis of Indonesian reviews using fine-tuning IndoBERT and R-CNN,” Ilk. J. Ilm., vol. 14, no. 3, pp. 348–354, 2022, doi: 10.33096/ilkom.v14i3.1505.348-354.

A. A. Qolbu, N. Fitriyati, and N. Inayah, “Performa Naïve Bayes , SVM , dan IndoBERT pada Analisis Sentimen Twitter IndiHome dengan Strategi Penanganan Data Tidak Seimbang,” J. FOURIER, vol. 814, no. 1, pp. 29–44, 2025, doi: 10.14421/fourier.2025.141.29-44.

Y. A. Singgalen, “IndoBERT-Based Sentiment Analysis for Understanding Hotel Guests’ Preferences,” J. Comput. Syst. Informatics, vol. 6, no. 2, pp. 532–544, 2025, doi: 10.47065/josyc.v6i2.6864.

Statista, “Beauty & Personal Care - Indonesia,” statista.com. Accessed: May 24, 2026. [Online]. Available: https://www.statista.com/outlook/cmo/beauty-personal-care/indonesia#revenue

A. Fayola and R. Darianty, “Analisis Sentimen Ulasan Produk Kecantikan di Tokopedia Menggunakan IndoBERT,” Inf. Syst. Appl. J., vol. 1, no. 1, pp. 11–18, 2025.

D. Nuryadi, F. Metandi, N. A. Hadiwijaya, M. Z. Rohman, S. Hartanto, and A. S. E. Yadie, “Fine Tuning Indobert untuk Analisis Sentimen pada Ulasan Pengguna Aplikasi Tiket.Com di Google Play Store,” J. Mhs. Tek. Inform., vol. 9, no. 2, pp. 3577–3583, 2025.

R. I. Perwira and V. A. Permadi, “Domain-Specific Fine-Tuning of IndoBERT for Aspect- Based Sentiment Analysis in Indonesian Travel User- Generated Content,” J. Inf. Syst. Eng. Bus. Intell., vol. 11, no. 1, pp. 30–40, 2025, doi: https://doi.org/10.20473/jisebi.11.1.30-40.

F. Koto, A. Rahimi, J. H. Lau, and T. Baldwin, “IndoLEM and IndoBERT: A Benchmark Dataset and Pre-trained Language Model for Indonesian NLP,” COLING 2020 - 28th Int. Conf. Comput. Linguist. Proc. Conf., pp. 757–770, 2020, doi: 10.18653/v1/2020.coling-main.66.

M. Fahrezi, Y. B. Pratama, and A. Pramudiyantoro, “Analisis Sentimen Debat Publik Pilpres 2024 Menggunakan Metode Algoritma LSTM dan IndoBERT Pada Platform Youtube,” JPIM J. Penelit. Ilm. Multidisipliner, vol. 02, no. 03, pp. 1936–1961, 2025.

C. Ramadhan, V. Atina, and H. Permatasari, “Analisis Perbandingan Model CNN dan IndoBERT Dalam Sentimen Berita Politik Indonesia,” Pros. Semin. Nas. Teknol. Inf. dan Bisnis, pp. 110–118, 2025, doi: 10.47701/v1r9ka69.

R. F. Reza, Muhmmad Thoriq, and Rd. Imam Saepul Millah, “Sentiment Analysis of Marketplace Review with Islamic Perspective using Fine-Tuning DistilBERT,” Khazanah J. Relig. Technol., vol. 2, no. 2, pp. 45–54, 2025, doi: 10.15575/kjrt.v2i2.1118.

R. A. E. V. T. Sapanji, D. Hamdani, and P. Harahap, “Sentiment Analysis of the Top 5 E-commerce Platforms in Indonesia using Text Mining and Natural Language Processing (NLP),” J. Appl. Informatics Comput., vol. 7, no. 2, pp. 202–211, 2023, doi: 10.30871/jaic.v7i2.6517.

U. Khairani, V. Mutiawani, and H. Ahmadian, “Pengaruh Tahapan Preprocessing terhadap Model IndoBERT dan IndoBERTweet untuk Mendeteksi Emosi pada Komentar Akun Berita Instagram,” J. Teknol. Inf. dan Ilmu Komput., vol. 11, no. 4, pp. 887–894, 2024, doi: 10.25126/jtiik.1148315.

D. R. Alfinsyah and B. P. Hartato, “Evaluating the Impact of Random Over Sampling on IndoBERT Performance for Indonesian Sentiment Analysis,” J. Appl. Informatics Comput., vol. 9, no. 6, pp. 3270–3282, 2025, doi: https://doi.org/10.30871/jaic.v9i6.11488.

V. B. Lestari and C. A. Hutagalung, “Evaluation of TF-IDF Extraction Techniques in Sentiment Analysis of Indonesian-Language Marketplaces Using SVM , Logistic Regression , and Naive Bayes,” no. 021, pp. 36–44, 2025.

B. P. Aji and C. S. K. Aditya, “Klasifikasi Sentimen Ulasan Produk pada Platform E-Commerce di Indonesia dengan Menggunakan Model Pre-Trained IndoBERT,” Build. Informatics, Technol. Sci., vol. 6, no. 4, pp. 2491–5000, 2025, doi: 10.47065/bits.v6i4.6968.

A. P. Putra, Ismarmiaty, and Apriani, “Pengukuran Tingkat Akurasi Pada Ulasan E-Commerce Menggunakan Metode INDOBERT Dengan Optimizer,” J. Komputer, Inf. dan Teknol., vol. 5, no. 1, pp. 1–15, 2025, doi: 10.53697/jkomitek.v5i1.2448.

S. Apriliani, A. Erfina, and C. Warman, “Fine-Tuned IndoBERT for Aspect-Based Sentiment Analysis of Indonesian Five-Star Hotel Reviews,” J. SISFOKOM (Sistem Inf. dan Komputer), vol. 14, no. 4, pp. 437–445, 2025, doi: https://doi.org/10.32736/sisfokom.v14i4.2491.

M. N. Zaidan, Y. Sibaroni, and S. S. Prasetiyowati, “Learning Rate and Epoch Optimization in The Fine-Tuning Process for Indobert’s Performance on Sentiment Analysis of Mytelkomsel App Reviews,” J. Tek. Inform., vol. 5, no. 5, pp. 1443–1450, 2024, doi: https://doi.org/10.52436/1.jutif.2024.5.5.2396.

S. Eltahier, O. Dawood, and I. Saeed, “BERT Fine-Tuning for Software Requirement Classification : Impact of Model Components and Dataset Size,” information, vol. 16, no. 981, pp. 1–16, 2025, doi: https://doi.org/10.3390/info16110981.

C. Eang and S. Lee, “applied sciences Improving the Accuracy and Effectiveness of Text Classification Based on the Integration of the Bert Model and a Recurrent Neural Network ( RNN _ Bert _ Based ),” Appl. Sci., vol. 14, no. 8388, 2024, doi: https://doi.org/10.3390/app14188388.

T. Abedin, H. Xu, and S. Uddin, “The impact of K selection in K ‑ fold cross-validation on bias and variance in supervised learning models,” Sci. Rep., vol. 16, no. 6084, pp. 1–13, 2026, doi: 10.1038/s41598-026-37247-x.

N. Jahan, J. Ahamed, and D. Nandi, “Enhancing E-commerce Sentiment Analysis with Advanced BERT Techniques,” I.J. Inf. Eng. Electron. Bus., vol. 17, no. 3, pp. 49–61, 2025, doi: 10.5815/ijieeb.2025.03.04.

Downloads

Published

2026-10-15

How to Cite

RAHMATULLAH, A., Rizaldy, A., Syahbudin, Alwiah Musdar , I., & Hastuti. (2026). Sentiment Analysis of Indonesian E-Commerce Product Reviews Using Indobert Fine-Tuning on A Multi-Source Combined Corpus. Journal of Artificial Intelligence and Engineering Applications (JAIEA), 6(1), 1647–1655. https://doi.org/10.59934/jaiea.v6i1.3040