Skip to main content
QUICK REVIEW

[Paper Review] BERT Fine-Tuning for Sentiment Analysis on Indonesian Mobile Apps Reviews

Kuncahyo Setyo Nugroho, Anantha Yullian Sukmadewa|arXiv (Cornell University)|Jul 14, 2021
Sentiment Analysis and Opinion MiningComputer Science43 references51 citations
TL;DR

This study proposes fine-tuning IndoBERT-Base, a multilingual BERT model pre-trained on Indonesian text, for sentiment analysis on Indonesian mobile app reviews. Using lexicon-based labeling and hyperparameter tuning, it achieves 84% accuracy with 25 epochs and 24 minutes of training time, outperforming both multilingual BERT and traditional machine learning models.

ABSTRACT

User reviews have an essential role in the success of the developed mobile apps. User reviews in the textual form are unstructured data, creating a very high complexity when processed for sentiment analysis. Previous approaches that have been used often ignore the context of reviews. In addition, the relatively small data makes the model overfitting. A new approach, BERT, has been introduced as a transfer learning model with a pre-trained model that has previously been trained to have a better context representation. This study examines the effectiveness of fine-tuning BERT for sentiment analysis using two different pre-trained models. Besides the multilingual pre-trained model, we use the pre-trained model that only has been trained in Indonesian. The dataset used is Indonesian user reviews of the ten best apps in 2020 in Google Play sites. We also perform hyper-parameter tuning to find the optimum trained model. Two training data labeling approaches were also tested to determine the effectiveness of the model, which is score-based and lexicon-based. The experimental results show that pre-trained models trained in Indonesian have better average accuracy on lexicon-based data. The pre-trained Indonesian model highest accuracy is 84%, with 25 epochs and a training time of 24 minutes. These results are better than all of the machine learning and multilingual pre-trained models.

Motivation & Objective

  • To evaluate the effectiveness of BERT fine-tuning for sentiment analysis on Indonesian mobile app reviews.
  • To compare performance between multilingual BERT-Base and IndoBERT-Base pre-trained models.
  • To assess the impact of two data labeling approaches—score-based and lexicon-based—on model accuracy.
  • To identify optimal hyperparameters, including learning rate and batch size, for improved model performance.
  • To determine whether domain-specific pre-training improves sentiment classification in low-resource Indonesian NLP.

Proposed method

  • Fine-tuned IndoBERT-Base and multilingual BERT-Base using transfer learning on a dataset of 10,615 Indonesian app reviews.
  • Applied two data labeling methods: score-based (using user ratings) and lexicon-based (using sentiment lexicons for sentiment polarity assignment).
  • Conducted hyperparameter tuning over learning rates (1e-5, 2e-5, 3e-5), batch sizes (16, 32), and number of epochs (10, 25).
  • Used 10-fold cross-validation to prevent overfitting and ensure robust evaluation.
  • Trained models using PyTorch and Hugging Face Transformers library, with early stopping based on validation accuracy.
  • Evaluated models using accuracy and training time as primary metrics.

Experimental results

Research questions

  • RQ1Does fine-tuning IndoBERT-Base outperform multilingual BERT-Base for sentiment analysis on Indonesian app reviews?
  • RQ2Which data labeling method—score-based or lexicon-based—yields higher model accuracy?
  • RQ3What is the optimal combination of learning rate, batch size, and number of epochs for maximum accuracy?
  • RQ4How does the training time scale with model size and hyperparameter settings?
  • RQ5Does domain-specific pre-training on Indonesian text improve performance over multilingual pre-training?

Key findings

  • IndoBERT-Base achieved the highest test accuracy of 84% when fine-tuned with a 2e-5 learning rate, batch size of 16, and 25 epochs on lexicon-based labeled data.
  • The lexicon-based labeling approach produced significantly better results (84% accuracy) than the score-based labeling approach (58.56% accuracy with IndoBERT-Base).
  • IndoBERT-Base outperformed multilingual BERT-Base across all metrics, particularly in validation and test accuracy on lexicon-based data.
  • Training time increased with smaller batch sizes, with 16-batch models taking 24 minutes (vs. 16–24 minutes for 32-batch models), though accuracy was slightly higher with smaller batches.
  • The best-performing model (IndoBERT-Base, 2e-5 LR, 16 batch size, 25 epochs) showed stable training and validation accuracy curves, indicating effective convergence.
  • Baseline machine learning models (e.g., SVM, random forest) achieved lower accuracy (max 78.9%) than the best BERT fine-tuned model, confirming the superiority of transfer learning with domain-specific pre-training.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.