Evaluating IndoBERT and Classical Classifiers for Imbalanced Tokopedia Reviews
DOI:
https://doi.org/10.30871/jaic.v10i6.14339Keywords:
Sentiment Analysis, IndoBERT, Imbalanced data, Classical classifiers, Tokopedia app reviewsAbstract
Rating-based sentiment datasets of app reviews are typically imbalanced and contain many duplicates. This study compares classical classifiers and IndoBERT for binary sentiment classification of Indonesian Tokopedia app reviews and examines how imbalanced-data handling strategies affect performance. A public dataset of 500,000 reviews was labelled from star ratings (1-2 negative, 4-5 positive; neutral 3-star reviews excluded), deduplicated before splitting, and reduced to 274,941 unique reviews divided 80:20. Naive Bayes, linear SVM, and Logistic Regression with TF-IDF features were tested under four strategies (no handling, class weight, SMOTE, undersampling), while IndoBERT was fine-tuned on a 30,000-review subset (27,000 for training and 3,000 for validation). All models were evaluated on the same 54,989-review test set using macro F1, bootstrap confidence intervals, and McNemar's test. Deduplication reduced the class ratio from 3.8:1 to 2:1; otherwise, 43.8% of test texts leaked into training, inflating accuracy by 2.5 points. Under this mild imbalance, no strategy improved macro F1: Logistic Regression without handling was the best classical model (0.8953), and SMOTE reduced macro F1 by about 2 points. IndoBERT achieved a macro F1 of 0.9064, significantly outperforming all classical models (p < 0.001), including one trained on over seven times more data. Deduplication should therefore precede splitting, on this dataset, where the imbalance after deduplication was mild (2:1), the tested strategies did not meaningfully improve macro F1.
Downloads
References
[1] N. Genc-Nayebi and A. Abran, “A systematic literature review: Opinion mining studies from mobile app store user reviews,” J. Syst. Softw., vol. 125, pp. 207–219, 2017, doi: 10.1016/j.jss.2016.11.027.
[2] J. Dąbrowski, E. Letier, A. Perini, and A. Susi, “Analysing app reviews for software engineering: A systematic literature review,” Empir. Softw. Eng., vol. 27, no. 2, p. 43, 2022, doi: 10.1007/s10664-021-10065-7.
[3] M. Wankhade, A. C. S. Rao, and C. Kulkarni, “A survey on sentiment analysis methods, applications, and challenges,” Artif. Intell. Rev., vol. 55, no. 7, pp. 5731–5780, 2022, doi: 10.1007/s10462-022-10144-1.
[4] M. Birjali, M. Kasri, and A. Beni-Hssane, “A comprehensive survey on sentiment analysis: Approaches, challenges and trends,” Knowledge-Based Syst., vol. 226, p. 107134, 2021, doi: 10.1016/j.knosys.2021.107134.
[5] nuricahyono, “Tokopedia – 500.000 Ulasan Bahasa Indonesia,” 2024, Kaggle. [Online]. Available: https://www.kaggle.com/datasets/nuricahyono/ulasan-tokopedia
[6] K. Kowsari, K. Jafari Meimandi, M. Heidarysafa, S. Mendu, L. Barnes, and D. Brown, “Text classification algorithms: A survey,” Information, vol. 10, no. 4, p. 150, 2019, doi: 10.3390/info10040150.
[7] Q. Li et al., “A survey on text classification: From traditional to deep learning,” ACM Trans. Intell. Syst. Technol., vol. 13, no. 2, p. 31, 2022, doi: 10.1145/3495162.
[8] S. Minaee, N. Kalchbrenner, E. Cambria, N. Nikzad, M. Chenaghlu, and J. Gao, “Deep learning–based text classification: A comprehensive review,” ACM Comput. Surv., vol. 54, no. 3, pp. 1–40, 2022, doi: 10.1145/3439726.
[9] J. Devlin, M.-W. Chang, K. Lee, and K. Toutanova, “BERT: Pre-training of deep bidirectional transformers for language understanding,” in Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT), 2019, pp. 4171–4186. doi: 10.18653/v1/N19-1423.
[10] A. Rogers, O. Kovaleva, and A. Rumshisky, “A primer in BERTology: What we know about how BERT works,” Trans. Assoc. Comput. Linguist., vol. 8, pp. 842–866, 2020, doi: 10.1162/tacl_a_00349.
[11] B. Wilie et al., “IndoNLU: Benchmark and resources for evaluating Indonesian natural language understanding,” in Proceedings of the 1st Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics and the 10th International Joint Conference on Natural Language Processing (AACL-IJCNLP), 2020, pp. 843–857.
[12] G. Lumban Gaol and A. Ichwani, “Perbandingan kinerja IndoBERT dan KNN dalam analisis sentimen ulasan Tokopedia Google Playstore,” J. Rekayasa Teknol. Inf., vol. 9, no. 4, pp. 427–436, 2025, doi: 10.30872/jurti.v9i4.26305.
[13] D. Nuryadi et al., “Fine tuning IndoBERT untuk analisis sentimen pada ulasan pengguna aplikasi Tiket.com di Google Play Store,” JATI (Jurnal Mhs. Tek. Inform., vol. 9, no. 2, pp. 3577–3583, 2025, doi: 10.36040/jati.v9i2.13204.
[14] W. A. Hidayat and V. R. S. Nastiti, “Perbandingan kinerja pre-trained IndoBERT-base dan IndoBERT-lite pada klasifikasi sentimen ulasan TikTok Tokopedia Seller Center dengan model IndoBERT,” JSiI (Jurnal Sist. Informasi), vol. 11, no. 2, pp. 13–20, 2024, doi: 10.30656/jsii.v11i2.9168.
[15] 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, 2025, [Online]. Available: https://garuda.kemdiktisaintek.go.id/documents/detail/4898634
[16] F. A. Dara and I. Pratama, “Sentiment analysis of the TikTok Tokopedia Seller Center application using support vector machine (SVM) and naive Bayes algorithms,” Int. J. Softw. Eng. Comput. Sci., vol. 5, no. 1, pp. 177–189, 2025, doi: 10.35870/ijsecs.v5i1.3463.
[17] B. Krawczyk, “Learning from imbalanced data: Open challenges and future directions,” Prog. Artif. Intell., vol. 5, no. 4, pp. 221–232, 2016, doi: 10.1007/s13748-016-0094-0.
[18] A. Fernández, S. García, F. Herrera, and N. V Chawla, “SMOTE for learning from imbalanced data: Progress and challenges, marking the 15-year anniversary,” J. Artif. Intell. Res., vol. 61, pp. 863–905, 2018, doi: 10.1613/jair.1.11192.
[19] H. Barus, I. N. Fajri, and Y. Pristyanto, “Sentiment classification analysis of Tokopedia reviews using TF-IDF, SMOTE, and traditional machine learning models,” J. Appl. Informatics Comput., vol. 9, no. 5, 2025, doi: 10.30871/jaic.v9i5.10524.
[20] A. Safitri, M. Risaldi, M. N. R. Alwi, D. F. Surianto, N. Fadilah, and J. M. Parenreng, “Improving sentiment classification of Kredit Pintar reviews using IndoBERT, SMOTE, and stacking ensemble,” J. Tek. Inform., vol. 7, no. 3, pp. 2411–2424, 2026, doi: 10.52436/1.jutif.2026.7.3.5342.
[21] 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, 2025, doi: 10.30871/jaic.v9i6.11488.
[22] S. Kapoor and A. Narayanan, “Leakage and the reproducibility crisis in machine-learning-based science,” Patterns, vol. 4, no. 9, p. 100804, 2023, doi: 10.1016/j.patter.2023.100804.
[23] N. Z. Zahra, S. Farhanatussaidah, N. N. Afifah, L. Muthoharoh, A. Satria, and M. C. T. Manullang, “Benchmarking logistic regression, SVM, naive Bayes, and IndoBERT fine-tuning for sentiment analysis on Indonesian product reviews,” arXiv Prepr. arXiv2605.03439, 2026, [Online]. Available: https://arxiv.org/abs/2605.03439
[24] G. Lemaître, F. Nogueira, and C. K. Aridas, “Imbalanced-learn: A Python toolbox to tackle the curse of imbalanced datasets in machine learning,” J. Mach. Learn. Res., vol. 18, no. 17, pp. 1–5, 2017.
[25] B. Hazarika, K. Chen, and M. Razi, “Are numeric ratings true representations of reviews? A study of inconsistency between reviews and ratings,” Int. J. Bus. Inf. Syst., vol. 38, no. 1, 2021, doi: 10.48550/arXiv.2605.03439.
[26] N. A. Salsabila, Y. A. Winatmoko, A. A. Septiandri, and A. Jamal, “Colloquial Indonesian lexicon,” in Proceedings of the 2018 International Conference on Asian Language Processing (IALP), 2018, pp. 226–229. doi: 10.1109/IALP.2018.8629151.
[27] G. Haixiang, L. Yijing, J. Shang, G. Mingyun, H. Yuanyue, and G. Bing, “Learning from class-imbalanced data: Review of methods and applications,” Expert Syst. Appl., vol. 73, pp. 220–239, 2017, doi: 10.1016/j.eswa.2016.12.035.
[28] J. M. Johnson and T. M. Khoshgoftaar, “Survey on deep learning with class imbalance,” in Journal of Big Data, 2019, p. 27. doi: 10.1186/s40537-019-0192-5.
[29] D. Chicco and G. Jurman, “The advantages of the Matthews correlation coefficient (MCC) over F1 score and accuracy in binary classification evaluation,” BMC Genomics, vol. 21, no. 1, p. 6, 2020, doi: 10.1186/s12864-019-6413-7.
[30] T. G. Dietterich, “Approximate statistical tests for comparing supervised classification learning algorithms,” Neural Comput., vol. 10, no. 7, pp. 1895–1923, 1998, doi: 10.1162/089976698300017197.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Arvin Claudy Frobenius, F.X Wisnu Yudo Untoro, Eko Rahmat Slamet Hidayat Saputra

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License (Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) ) that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).



