Indonesian Fake News Detection on Imbalanced Data Using IndoBERT with Focal Loss

Authors

  • Akbar Bimantara T Universitas Islam Negeri Maulana Malik Ibrahim Malang
  • Zainal Abidin Universitas Islam Negeri Maulana Malik Ibrahim Malang
  • Nur Fitriyah Ayu Tunjung Sari Universitas Islam Negeri Maulana Malik Ibrahim Malang

Keywords:

fake news detection, indobert, focal loss, data imbalance, text classification

Abstract

The spread of fake news (hoaxes) in Indonesia's digital space is increasingly massive and has an impact on social polarization and declining public trust, while Indonesian-language hoax news datasets generally face extreme class imbalance problems that cause the classification model to be biased towards the majority class. This study aims to implement the IndoBERT model for binary classification of fake news categories FALSE (misinformation) and FRAUD (disinformation) and test the effectiveness of Focal Loss in overcoming data imbalance. The method used is experimental by fine-tuning the IndoBERT-base-p1 model on the Indonesia False News Dataset 2025 dataset from Turnbackhoax.id containing 970 samples (71.96% FALSE, 28.04% FRAUD). Two loss function scenarios are tested: Cross Entropy as the baseline and Focal Loss with parameters α=0.25/0.75 and γ=2.0. The results showed that the Focal Loss model achieved 98.63% accuracy, a macro F1-score of 98.33%, and successfully reduced the loss value by 93.61% compared to the baseline (from 0.0923 to 0.0059). The most significant improvement occurred in the FRAUD minority class with a 2.62% increase in F1-score and the elimination of all false negative errors. In conclusion, the combination of IndoBERT and Focal Loss proved effective for hoax detection in imbalanced Indonesian language data. The implication of this research is that the developed system can be integrated into digital platforms to assist in automatic news verification and support public digital literacy.

References

D. R. Faisal dan R. Mahendra, “Two-Stage Classifier for COVID-19 Misinformation Detection Using BERT: a Study on Indonesian Tweets,” 30 Juni 2022, arXiv: arXiv:2206.15359. doi: 10.48550/arXiv.2206.15359.

F. Koto, J. H. Lau, dan T. Baldwin, “IndoBERTweet: A Pretrained Language Model for Indonesian Twitter with Effective Domain-Specific Vocabulary Initialization,” dalam Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, Online and Punta Cana, Dominican Republic: Association for Computational Linguistics, 2021, hlm. 10660–10668. doi: 10.18653/v1/2021.emnlp-main.833.

T.-Y. Lin, P. Goyal, R. Girshick, K. He, dan P. Dollar, “Focal Loss for Dense Object Detection”.

C. R. S. Hati dan H. Sulistiani, “Implementation of CNN Algorithm for Indonesian Hoax News Detection on Online News Portals,” vol. 9, no. 3.

H. K. Putra, M. A. Bijaksana, dan A. Romadhony, “Deteksi Penggunaan Kalimat Abusive Pada Teks Bahasa Indonesia Menggunakan Metode IndoBERT”.

M. Y. Ridho dan E. Yulianti, “From Text to Truth: Leveraging IndoBERT and Machine Learning Models for Hoax Detection in Indonesian News,” J. Ilm. Tek. Elektro Komput. Dan Inform, vol. 10, no. 3, hlm. 544–555, Sep 2024, doi: 10.26555/jiteki.v10i3.29450.

D. Z. Abidin, A. Siswanto, C. Saputra, B. Betantiyo, dan A. Nehemia Toscany, “Enhancing Fake News Detection on Imbalanced Data Using Resampling Techniques and Classical Machine Learning Models,” J. Tek. Inform. (JUTIF), vol. 6, no. 5, hlm. 3769–3786, Okt 2025, doi: 10.52436/1.jutif.2025.6.5.5177.

J. Devlin, M.-W. Chang, K. Lee, dan K. Toutanova, “BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding”.

V. Prisscilya dan A. S. Girsang, “Classification of Indonesia False News Detection Using Bertopic and Indobert,” jist, vol. 5, no. 8, hlm. 3061–3079, Agu 2024, doi: 10.59141/jist.v5i8.1310.

D. Y. Yefferson, V. Lawijaya, dan A. S. Girsang, “Hybrid model: IndoBERT and long short-term memory for detecting Indonesian hoax news,” IJ-AI, vol. 13, no. 2, hlm. 1913, Jun 2024, doi: 10.11591/ijai.v13.i2.pp1913-1924.

M. Beseiso dan S. Al-Zahrani, “A Context-Enhanced Model for Fake News Detection,” Eng. Technol. Appl. Sci. Res., vol. 15, no. 1, hlm. 19128–19135, Feb 2025, doi: 10.48084/etasr.9192.

L. Aslan, M. Ptaszynski, dan J. Jauhiainen, “Are Strong Baselines Enough? False News Detection with Machine Learning,” Future Internet, vol. 16, no. 9, hlm. 322, Sep 2024, doi: 10.3390/fi16090322.

K. I. Roumeliotis, N. D. Tselikas, dan D. K. Nasiopoulos, “Fake News Detection and Classification: A Comparative Study of Convolutional Neural Networks, Large Language Models, and Natural Language Processing Models,” Future Internet, vol. 17, no. 1, hlm. 28, Jan 2025, doi: 10.3390/fi17010028.

S. Harris, H. J. Hadi, N. Ahmad, dan M. A. Alshara, “Fake News Detection Revisited: An Extensive Review of Theoretical Frameworks, Dataset Assessments, Model Constraints, and Forward-Looking Research Agendas,” Technologies, vol. 12, no. 11, hlm. 222, Nov 2024, doi: 10.3390/technologies12110222.

F. Rustam, W. Aljedaani, A. D. Jurcut, S. Alfarhood, M. Safran, dan I. Ashraf, “Fake news detection using enhanced features through text to image transformation with customized models,” Discov Computing, vol. 27, no. 1, hlm. 54, Des 2024, doi: 10.1007/s10791-024-09490-1.

Downloads

Published

2026-11-16

How to Cite

Akbar Bimantara T, Zainal Abidin, & Nur Fitriyah Ayu Tunjung Sari. (2026). Indonesian Fake News Detection on Imbalanced Data Using IndoBERT with Focal Loss. Jurnal Teknik Indonesia, 5(02), 308–318. Retrieved from https://jurnal.seaninstitute.or.id/index.php/juti/article/view/937