Melola Discovery

← Melola Discovery

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

DOI
10.15575/join.v11i1.1704
ISSN
2527-9165, 2528-1682
Published
2026-04-24
Publisher
Sunan Gunung Djati State Islamic University Bandung
Language
en
License
creativecommons.org/licenses/by-nd/4.0/

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-authorOrganisationJoint articles
Julius Immanuel Theo KrisnaUniversitas Dian Nuswantoro2
Ardytha LuthfiartaUniversitas Dian Nuswantoro2
Leno Dwi CahyaUniversitas Dian Nuswantoro2
Fawwaz Atha RohmatullahAffiliation unknown1
Farrikh AlzamiUniversitas Dian Nuswantoro1
Ramadhan Rakhmat SaniUniversitas Dian Nuswantoro1
Ika Novita DewiAffiliation unknown1
Teguh SulistyonoUniversitas Dian Nuswantoro1
Ailsa Nurina CahyaniUniversitas Dian Nuswantoro1
Junta ZeniarjaUniversitas Dian Nuswantoro1
Rusyda Tsaniya Eka PutriUniversitas Dian Nuswantoro1
Ahmad Alaik MaulaniUniversitas Dian Nuswantoro1

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.

Metadata source: OpenAlex API (jurnal SINTA, ADR 0048) https://openalex.org/S4210216628, first harvested 21 Nov 2026, last seen 29 Nov 2026.
Original metadata (oai_dc)
<oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"><dc:title xml:lang="en">Comparative Performance of Fine-Tuned IndoBERT BASE and LARGE Variants for Emotion Detection in Indonesian Tweets</dc:title><dc:creator>Sri Winarno</dc:creator><dc:creator>Ika Novita Dewi</dc:creator><dc:creator>Adhitya Nugraha</dc:creator><dc:creator>Fahri Firdausillah</dc:creator><dc:creator>Melisa Fitri</dc:creator><dc:creator>Talitha Olga Ramadhani</dc:creator><dc:creator>Erna Amalia Widhiyanti</dc:creator><dc:creator>Ainur Rahma Miftakhul Rizqi</dc:creator><dc:subject>emotion recognition</dc:subject><dc:subject>IndoBERT</dc:subject><dc:subject>Indonesian tweets</dc:subject><dc:subject>fine-tuning</dc:subject><dc:subject>basic emotions</dc:subject><dc:subject>SMOTE</dc:subject><dc:subject>class imbalance</dc:subject><dc:subject>overfitting</dc:subject><dc:subject>resource-limited settings</dc:subject><dc:description xml:lang="en">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.</dc:description><dc:publisher>Sunan Gunung Djati State Islamic University Bandung</dc:publisher><dc:date>2026-04-24</dc:date><dc:type>info:eu-repo/semantics/article</dc:type><dc:format>application/pdf</dc:format><dc:identifier>https://doi.org/10.15575/join.v11i1.1704</dc:identifier><dc:identifier>10.15575/join.v11i1.1704</dc:identifier><dc:source>Jurnal Online Informatika; Vol 11 No 1 (2026); 14-26</dc:source><dc:source>2527-9165</dc:source><dc:source>2528-1682</dc:source><dc:language>en</dc:language><dc:relation>https://join.if.uinsgd.ac.id/index.php/join/article/download/1704/380</dc:relation><dc:rights>https://creativecommons.org/licenses/by-nd/4.0/</dc:rights></oai_dc:dc>