Open access Journal SINTA 1
Comparative Performance of Fine-Tuned IndoBERT BASE and LARGE Variants for Emotion Detection in Indonesian Tweets
Jurnal Online Informatika · Vol. 11 No. 1 (2026) · pp. 14–26
- ISSN
- 2527-9165, 2528-1682
- Published
- 2026-04-24
- Publisher
- Sunan Gunung Djati State Islamic University Bandung
- Language
- en
Abstract
In the digital era, where emotions play a crucial role in shaping human behavior, communication, and decision-making, their expressions are often conveyed through short and informal texts on platforms such as Twitter. This research aims to improve the accuracy of emotion detection in Indonesian text using the IndoBERT-BASE-P2 and IndoBERT-LARGE-P2 transformer models. The dataset consists of 7,080 tweets annotated with six basic emotion categories (anger, fear, joy, love, neutral, and sad). The research methodology included text preprocessing, class balancing using SMOTE, and fine-tuning with optimized training parameters. Evaluation results show that IndoBERT-BASE-P2 achieved an accuracy of 84.43% and a macro F1-score of 84.33%, surpassing previous studies, while the larger IndoBERT-LARGE-P2 model tended to overfit and offered no meaningful improvement. Error analysis showed the neutral class was the most difficult to classify. These findings demonstrate that with effective preprocessing and parameter optimization, a smaller model can be a highly efficient solution for emotion classification in Indonesian text, especially in resource-constrained conditions.
Keywords
Collaboration network of the authors
20 authors · 62 co-authorship links
Hover or tap a name to highlight its co-authors. Double-click to open the author's page.
- Universitas Dian Nuswantoro
- Affiliation unknown
- Different organisations
- Same organisation
- Affiliation unknown
- Thicker line = more joint articles · bigger circle = more articles
Show as table
| Co-author | Organisation | Joint articles |
|---|---|---|
| Julius Immanuel Theo Krisna | Universitas Dian Nuswantoro | 2 |
| Ardytha Luthfiarta | Universitas Dian Nuswantoro | 2 |
| Leno Dwi Cahya | Universitas Dian Nuswantoro | 2 |
| Fawwaz Atha Rohmatullah | Affiliation unknown | 1 |
| Farrikh Alzami | Universitas Dian Nuswantoro | 1 |
| Ramadhan Rakhmat Sani | Universitas Dian Nuswantoro | 1 |
| Ika Novita Dewi | Affiliation unknown | 1 |
| Teguh Sulistyono | Universitas Dian Nuswantoro | 1 |
| Ailsa Nurina Cahyani | Universitas Dian Nuswantoro | 1 |
| Junta Zeniarja | Universitas Dian Nuswantoro | 1 |
| Rusyda Tsaniya Eka Putri | Universitas Dian Nuswantoro | 1 |
| Ahmad Alaik Maulani | Universitas Dian Nuswantoro | 1 |
Affiliations come from OpenAlex; journal OAI-PMH metadata carries none. Authors without an OpenAlex ID are matched by name, which can merge or split people.