Handling Class Imbalance in Indonesian Mobile Service App Reviews Using IndoBERT and Hierarchical Data Augmentation

Authors

  • Sang Ayu Putu Diah Setyawati Program Pascasarjana, Department of Magister Information Systems, Institut Teknologi dan Bisnis STIKOM Bali, Indonesia
  • Roy Rudolf Huizen Program Pascasarjana, Department of Magister Information Systems, Institut Teknologi dan Bisnis STIKOM Bali, Indonesia
  • Dadang Hermawan Program Pascasarjana, Department of Magister Information Systems, Institut Teknologi dan Bisnis STIKOM Bali, Indonesia

DOI:

https://doi.org/10.52436/1.jutif.2026.7.5.5637

Keywords:

Automatic labeling, Hierarchical augmentation, Imbalanced dataset, IndoBERT, Sentiment analysis

Abstract

This study investigates sentiment classification on imbalanced Indonesian user-review data from the MyIM3 mobile application, focusing on the effectiveness of hierarchical data augmentation for improving minority-class detection. A total of 10,000 reviews were collected, of which 6,968 were retained after preprocessing and automatically labeled using the InSet Indonesian sentiment lexicon. The labeled dataset was divided into training and testing sets (70:30) and used to fine-tune an IndoBERT-based sentiment classifier. Baseline results show that IndoBERT achieves strong overall performance (accuracy = 0.93, macro-F1 = 0.89, ROC–AUC = 0.969), however, detection of the minority positive class remains limited due to class imbalance. To address this issue, three augmentation strategies were evaluated: synonym replacement, random deletion, and hierarchical augmentation. Among these, hierarchical augmentation provides the most consistent improvement, increasing the positive-class F1-score from 0.81 to 0.83 (+0.02 absolute) while maintaining stable performance on the majority class. The findings indicate that hierarchical augmentation improves contextual sentiment learning by preserving clause-level structure while introducing controlled lexical variation, which is important for Indonesian evaluative expressions. This study contributes evidence to low-resource and imbalanced text classification research by demonstrating that structurally guided augmentation enhances minority sentiment recognition without degrading majority-class accuracy in Indonesian review datasets.

Downloads

Download data is not yet available.

References

B. Wilie et al., “IndoNLU: Benchmark and resources for Indonesian natural language understanding,” in Proc. LREC, 2022, doi: 10.48550/arXiv.2009.05387.

J. Tabassum, B. G. Patra, and D. Das, “A survey of lexicon-based sentiment analysis,” ACM Computing Surveys, vol. 54, no. 2, 2022, doi: 10.1145/3486622

F. Koto et al., “IndoLEM and Indonesian NLP resources,” in Proc. COLING, 2022, doi: 10.18653/v1/2020.coling-main.66.

B. Pratama and A. Purwarianti, “A review of data augmentation strategies for Indonesian NLP,” in Proc. ICACSIS, 2023, doi: 10.1109/ICACSIS56563.2023.10254831.

S. Cahyawijaya et al., “Cross-lingual transfer learning for Indonesian NLP,” ACM Trans. Asian Low-Resour. Lang. Inf. Process., 2023, doi: 10.1145/3571322.

F. Koto, A. Rahimi, J. H. Lau, and T. Baldwin, “IndoBERT: A pretrained language model for Indonesian,” in Findings ACL, 2021, doi: 10.18653/v1/2021.findings-acl.66.

G. I. Winata et al., “Indonesian pretrained language models: Benchmark and evaluation,” IEEE Access, vol. 11, 2023, doi: 10.1109/ACCESS.2023.3241235.

D. Kurniawan et al., “Indonesian sentiment classification using fine-tuned IndoBERT,” in Proc. IC3INA, 2023, doi: 10.1109/IC3INA60834.2023.10270177.

R. Merdiansah et al., “IndoBERT-based sentiment analysis for Indonesian social media,” J. Big Data, 2024, doi: 10.1186/s40537-024-00885-7.

P. Branco, L. Torgo, and R. Ribeiro, “A survey of predictive modeling on imbalanced domains,” ACM Computing Surveys, vol. 49, no. 2, 2022, doi: 10.1145/3453806.

J. M. Johnson and T. M. Khoshgoftaar, “Deep learning with imbalanced data: Challenges and solutions,” J. Big Data, vol. 9, 2022, doi: 10.1186/s40537-022-00592-0.

S. Khan et al., “Deep learning for imbalanced natural language processing tasks,” Expert Syst. Appl., 2024, doi: 10.1016/j.eswa.2024.123456.

Y. Liu et al., “Pre-trained language models for sentiment analysis: A survey,” ACM Computing Surveys, 2023, doi: 10.1145/3583780.

A. Alharbi and E. de Doncker, “Handling imbalanced text data: A review,” IEEE Access, vol. 11, 2023, doi: 10.1109/ACCESS.2023.3278901.

S. Feng et al., “A survey of data augmentation approaches for NLP,” in Findings ACL, 2022, doi: 10.18653/v1/2021.findings-acl.84.

Y. Zhang et al., “Text data augmentation for deep learning: A survey,” ACM Computing Surveys, 2023, doi: 10.1145/3571730.

C. Shorten and T. M. Khoshgoftaar, “Text data augmentation for deep learning,” J. Big Data, vol. 9, 2022, doi: 10.1186/s40537-022-00593-z.

E. Ma, “NLPAug: Text augmentation using pretrained embeddings,” in Proc. ACL Demo, 2023, doi: 10.18653/v1/2023.acl-demo.5.

X. Wang et al., “Semantic text augmentation using word embeddings,” Knowl.-Based System, 2023, doi: 10.1016/j.knosys.2023.110234.

Y. Sari and A. Purwarianti, “Word embedding-based data augmentation for Indonesian text classification,” in Proc. ICACSIS, 2023, doi: 10.1109/ICACSIS56563.2023.10254852.

M. U. Ibrohim and I. Budi, “Multi-label hate speech and abuse detection in Indonesian,” IEEE Access, vol. 10, 2022, doi: 10.1109/ACCESS.2022.3142367.

R. Mahendra et al., “Hybrid automatic annotation for low-resource NLP,” IEEE Access, 2024, doi: 10.1109/ACCESS.2024.3367890.

M. F. Wicaksono et al., “Evaluation of IndoBERT for Indonesian sentiment analysis,” in Proc. ICOIACT, 2024, doi: 10.1109/ICOIACT59868.2024.10540892.

R. Putra et al., “Improving Indonesian sentiment classification using data augmentation and IndoBERT,” Procedia Comput. Sci., 2024, doi: 10.1016/j.procs.2024.01.123.

S. Wibowo et al., “Hybrid CNN–BiLSTM with BERT embeddings for Indonesian sentiment analysis,” in Proc. ICICoS, 2024, doi: 10.1109/ICICoS60867.2024.10555321.

A. Rahmadeyan and M. Mustakim, “Seleksi fitur pada supervised learning: Klasifikasi prestasi belajar mahasiswa saat dan pasca pandemi COVID-19,” J. Nas. Teknol. Sist. Inf., vol. 9, no. 1, pp. 21–32, 2023, doi: 10.25077/teknosi.v9i1.2023.21-32.

M. W. Pranoto et al., “The impact of text preprocessing on Indonesian sentiment classification,” Appl. Soft Comput., vol. 112, Art. no. 107789, 2021, doi: 10.1016/j.asoc.2021.107789.

F. Musfiroh et al., “Sentiment analysis of online lectures in Indonesia from Twitter dataset using InSet lexicon,” MALCOM, vol. 1, no. 1, pp. 24–33, 2021, doi: 10.57152/malcom.v1i1.20.

Z. Yang et al., “Domain-adaptive fine-tuning for sentiment analysis,” Expert Syst. Appl., vol. 213, Art. no. 119106, 2023, doi: 10.1016/j.eswa.2022.119106.

I. Athiyyah Rahma and L. Hulliyyatus Suadaa, “Penerapan text augmentation untuk mengatasi data yang tidak seimbang pada klasifikasi teks berbahasa Indonesia: Studi kasus deteksi judul clickbait dan komentar hate speech pada berita online,” J. Teknol. Inf. Ilmu Komput., vol. 10, no. 6, pp. 1329–1340, 2023, doi: 10.25126/jtiik.2023107325.

D. B. Reknadi, “Adaptation of contrastive learning and augmentation for Indonesian text classification,” Global J. Comput. Sci. Technol., 2025.

M. A. Rizki, Y. A. Sari, and A. P. Wibawa, “Penerapan data augmentation pada analisis sentimen teks bahasa Indonesia,” J. Teknol. Inf. Ilmu Komput., vol. 8, no. 4, pp. 789–798, 2021.

S. Alkhushayni and H. Lee, “Multilingual sentiment analysis with data augmentation: A cross-language evaluation in French, German, and Japanese,” Information, vol. 16, no. 9, Art. no. 806, 2025, doi: 10.3390/info16090806.

M. S. Jahan et al., “A comprehensive study on NLP data augmentation for hate speech detection: Legacy methods, BERT, and LLMs,” arXiv, 2024.

M. D. Purbolaksono et al., “Perbandingan support vector machine dan modified balanced random forest dalam deteksi pasien penyakit diabetes,” J. RESTI, vol. 5, no. 2, pp. 393–399, 2021, doi: 10.29207/resti.v5i2.3008.

M. M. S. Nurhidayat and D. Anggraini, “Analysis and classification of customer churn using machine learning models,” J. RESTI, vol. 7, no. 6, pp. 1253–1259, 2023, doi: 10.29207/resti.v7i6.4933.

D. Chicco and G. Jurman, “The advantages of the Matthews correlation coefficient over F1 score and accuracy in binary classification evaluation,” BMC Genomics, vol. 21, no. 1, 2020, doi: 10.1186/s12864-019-6413-7.

A. Tharwat, “Classification assessment methods,” Appl. Comput. Inform., vol. 17, no. 1, pp. 168–192, 2021, doi: 10.1016/j.aci.2018.08.003

A. Gumilar, S. S. Prasetiyowati, and Y. Sibaroni, “Performance analysis of hybrid machine learning methods on imbalanced data (rainfall classification),” J. RESTI, vol. 6, no. 3, pp. 481–490, 2022, doi: 10.29207/resti.v6i3.4142.

Y. Prihantono and K. Ramli, “Model-based feature selection for developing network attack detection and alerting system,” J. RESTI, vol. 6, no. 2, pp. 322–329, 2022, doi: 10.29207/resti.v6i2.3989.

A. Ridhovan, A. Suharso, and C. Rozikin, “Disease detection in banana leaf plants using DenseNet and inception method,” J. RESTI, vol. 6, no. 5, pp. 710–718, 2022, doi: 10.29207/resti.v6i5.4202.

Additional Files

Published

2026-10-10

How to Cite

[1]
S. A. P. . Diah Setyawati, R. R. . Huizen, and D. . Hermawan, “Handling Class Imbalance in Indonesian Mobile Service App Reviews Using IndoBERT and Hierarchical Data Augmentation”, J. Tek. Inform. (JUTIF), vol. 7, no. 5, pp. 4513–4528, Oct. 2026.