Optimizing BERT Models with Fine-Tuning for Indonesian Twitter Sentiment Analysis
Twitter has emerged as a critical platform for capturing public sentiment, offering a valuable source for sentiment analysis. This study presents a comparative evaluation of two BERT (Bidirectional Encoder Representations from Transformers) models—baseline and fine-tuned—targeted at analyzing Indonesian-language tweets. Employing the CRISP-DM framework, the methodology encompasses automated data crawling, comprehensive text pre-processing (including case folding, cleaning, tokenisation, normalisation, and data augmentation), and model development using the IndoBERT-base-p1 architecture. The experimental results reveal that the fine-tuned BERT model achieves significantly improved performance over the non-optimized model, with accuracy, precision, recall, and F1-score values reaching 91%, 0.91, 0.90, and 0.91, respectively. These findings indicate the fine-tuned model's superior ability to capture linguistic subtleties and contextual sentiment features within informal social media text. Furthermore, the model is deployed in a web-based application for real-time sentiment classification, demonstrating its practical applicability. This study underscores the effectiveness of Fine-tuning in enhancing BERT-based sentiment analysis for low-resource languages. It highlights its potential for informing decisionmaking in digital communication, marketing, and policy research contexts.
Authors
- Nurul Hidayat (ORCID: https://orcid.org/0000-0003-1959-4884)
- Lasmedi Afuan (ORCID: https://orcid.org/0000-0003-4493-4684)
- Heru Ismanto (ORCID: https://orcid.org/0000-0002-0379-4008)
- Bedy Purnama (ORCID: https://orcid.org/0000-0002-6188-4685)
- Hamdani Hamdani (ORCID: https://orcid.org/0000-0002-4255-7662)
- Dzakwan Irfan Ramdhani
Publication Details
- Journal
- Journal of Wireless Mobile Networks Ubiquitous Computing and Dependable Applications
- Published
- 2025-06-30
- DOI
- https://doi.org/10.58346/jowua.2025.i2.016
- Citations
- 2
- Primary Topic
- Sentiment Analysis and Opinion Mining
- Type
- article
- Field-Weighted Citation Impact
- 4.96
Funders
- Jenderal Soedirman University