journal article·2026-06-29Open access

A Hybrid Feature-Enhanced IndoBERT Framework with Controlled Semi-Supervised Learning for Low-Resource Indonesian Hate Speech Detection

Shoffan Saifullah, Rafał Dreżewski

Applied Sciences· Volume 16· Issue 13

Abstract

Low-resource hate speech detection remains a challenging task for Indonesian social media due to limited labeled annotations, highly informal linguistic expressions, and substantial lexical variability. Under such conditions, purely supervised transformer models often suffer from unstable semantic generalization, while conventional pseudo-labeling methods are vulnerable to noisy unlabeled sample propagation. To address these limitations, this study proposes a hybrid feature-enhanced IndoBERT framework integrated with a controlled semi-supervised learning strategy. The proposed model combines contextual IndoBERT embeddings with abusive lexicon cues, handcrafted linguistic indicators, and TF-IDF–SVD statistical representations through a lightweight concatenation–projection feature fusion mechanism, while unlabeled data are incorporated via adaptive confidence thresholding and class-balanced pseudo-label selection to improve pseudo-label reliability. Extensive experiments were conducted under realistic low-resource supervision settings using only 5%, 10%, and 20% labeled data, and the proposed framework was systematically compared against representative baselines, including sparse lexical machine learning models, shallow neural architectures, multilingual transformers, IndoBERTweet, naive pseudo-labeling, and LLM-based prompting. The results show that model effectiveness is strongly supervision-dependent. Under the most extreme low-resource setting, compact statistical augmentation provides the most stable complementary signal, whereas under moderate low-resource supervision, the full hybrid representation combined with controlled semi-supervised learning yields the strongest and most consistent gains. The proposed Hybrid IndoBERT + controlled SSL framework outperforms all baselines at the 20% labeled setting, reaching an accuracy of 0.8654, Macro-F1 of 0.8633, and ROC-AUC of 0.9334. Additional analyses of pseudo-label reliability, calibration behavior, computational efficiency, and qualitative error patterns further show that the proposed framework improves low-resource robustness while maintaining comparable inference-time efficiency. These findings demonstrate that low-resource hate speech detection benefits most from the staged integration of contextual semantic modeling, interpretable linguistic cues, global lexical–statistical structure, and carefully regulated unlabeled data exploitation. Additional experiments using GPT-4o-mini and Llama-3.1-8B further demonstrate that the proposed framework remains competitive against general-purpose large language model prompting approaches under low-resource Indonesian hate speech detection scenarios. The proposed framework provides a practical and reproducible direction for hate speech detection in annotation-constrained social media environments.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Hate Speech and Cyberbullying Detection · Emotion and Mood Recognition · Bullying, Victimization, and Aggression

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Faculty of Computer Science, AGH University of Krakow, 30-059 Krakow, Poland

Department of Informatics, Universitas Pembangunan Nasional Veteran Yogyakarta, Yogyakarta 55281, Indonesia

Funding

Polish Ministry of Science and Higher Education · PLGrid Infrastructure · UPN Veteran Yogyakarta

References (93)

Show source-provided references
1. Deep learning-based approaches for abusive content detection and classification for multi-class online user-generated data
2. Igartua, J.J., and Ballesteros-Herencia, C.A. (2026). Hate Speech on Social Media: Unpacking How Toxic Language Fuels Anti-Immigrant Hostility. Soc. Sci., 15.10.3390/socsci15020091 ↗
3. Dinarta, F., and Wicaksana, A. (2025). Enhanced Hate Speech Detection in Indonesian-English Code-Mixed Texts Using XLM-RoBERTa. Informatica, 49.10.31449/inf.v49i21.7713 ↗
4. Enhancing Hate Speech Detection in Low-Resource Code-Mixed Indonesian Tweets via GPT-Based Data Augmentation10.48084/etasr.14342 ↗
5. Reading between modalities: Multimodal hate speech detection in low-resource Indonesian social media10.1007/s42001-026-00473-4 ↗
6. Sentiment Analysis in Low-Resource Settings: A Comprehensive Review of Approaches, Languages, and Data Sources10.1109/ACCESS.2024.3398635 ↗
7. Hate Speech Detection Research in South Asian Languages: A Survey of Tasks, Datasets and Methods10.1145/3711710 ↗
8. Transformer models for text-based emotion detection: A review of BERT-based approaches10.1007/s10462-021-09958-2 ↗
9. End-to-End Transformer-Based Models in Textual-Based NLP10.3390/ai4010004 ↗
10. BERT applications in natural language processing: A review10.1007/s10462-025-11162-5 ↗
11. Leveraging IndoBERT and DistilBERT for Indonesian emotion classification in e-commerce reviews10.1016/j.procs.2025.08.284 ↗
12. Exploring emotion classification of indonesian tweets using large scale transfer learning via IndoBERT10.1007/s13278-025-01439-6 ↗
13. Efficient Transformer Models via Language-Aware Frequency-Based Vocabulary Pruning10.1109/ACCESS.2026.3679735 ↗
14. Hate Speech Detection Using Large Language Models: A Comprehensive Review10.1109/ACCESS.2025.3532397 ↗
15. BERT-OTA: Enhancing Hate Speech Detection with Ontology-Guided Transformer Attention10.1109/ACCESS.2026.3650874 ↗
16. BERT-based ensemble learning for multi-aspect hate speech detection10.1007/s10586-022-03956-x ↗
17. Enhancing social media hate speech detection in low-resource languages using transformers and explainable AI10.1007/s13278-025-01497-w ↗
18. Evaluating feature combination strategies for hate-speech detection in Spanish using linguistic features and transformers10.1007/s40747-022-00693-x ↗
19. Advancements in Transformer-Based Models for Enhanced Hate Speech Detection in Arabic: Addressing Dialectal Variations and Cross-Platform Challenges
20. A Survey of Text Representation and Embedding Techniques in NLP10.1109/ACCESS.2023.3266377 ↗
21. Enhanced sentiment classification of phone brands on Twitter with a modified walrus optimizer and novel ensemble method10.1007/s00521-025-11194-6 ↗
22. Saifullah, S., Dreżewski, R., Dwiyanto, F.A., Aribowo, A.S., Fauziah, Y., and Cahyana, N.H. (2024). Automated Text Annotation Using a Semi-Supervised Approach with Meta Vectorizer and Machine Learning Algorithms for Hate Speech Detection. Appl. Sci., 14.10.3390/app14031078 ↗
23. Semi-Supervised Self-Training of Hate and Offensive Speech from Social Media10.1080/08839514.2021.1988443 ↗
24. A Review of Unlabeled and Imbalanced Data Challenges in Machine Learning: Strategies and Solutions10.1002/widm.70043 ↗
25. Naive semi-supervised deep learning using pseudo-label10.1007/s12083-018-0702-9 ↗
26. A survey of class-imbalanced semi-supervised learning10.1007/s10994-023-06344-7 ↗
27. Semi-supervised Text Annotation for Hate Speech Detection using K-Nearest Neighbors and Term Frequency-Inverse Document Frequency
28. Advances in Machine Learning Algorithms for Hate Speech Detection in Social Media: A Review10.1109/ACCESS.2021.3089515 ↗
29. Naseeb, A., Zain, M., Hussain, N., Qasim, A., Ahmad, F., Sidorov, G., and Gelbukh, A. (2025). Machine Learning- and Deep Learning-Based Multi-Model System for Hate Speech Detection on Facebook. Algorithms, 18.10.3390/a18060331 ↗
30. Comparison of machine learning for sentiment analysis in detecting anxiety based on social media data
31. Comparing Machine Learning and Deep Learning Techniques for Text Analytics: Detecting the Severity of Hate Comments Online10.1007/s10796-023-10446-x ↗
32. Allam, H., Makubvure, L., Gyamfi, B., Graham, K.N., and Akinwolere, K. (2025). Text Classification: How Machine Learning Is Revolutionizing Text Categorization. Information, 16.10.3390/info16020130 ↗
33. Cyberbullying-Related Automated Hate Speech Detection on Social Media Platforms Using Stack Ensemble Classification Method10.1007/s44196-025-00919-z ↗
34. Enhancing Hate Speech Detection with a Distil BERT and BiLSTM Hybrid Mode10.1007/s42979-026-04913-w ↗
35. A Robust and Linguistically-Aware Hate Speech Detection System for Roman Urdu10.1145/3768571 ↗
36. Hybrid Feature and Optimized Deep Learning Model Fusion for Detecting Hateful Arabic Content10.1109/ACCESS.2025.3591673 ↗
37. Detection of offensive content in the Kazakh language using machine learning and deep learning approaches10.7717/peerj-cs.3027 ↗
38. Exploring hate speech detection: Challenges, resources, current research and future directions10.1007/s11042-025-20716-2 ↗
39. Hate speech detection: A comprehensive review of recent works10.1111/exsy.13562 ↗
40. Machine learning and deep learning approaches for fake news detection and related topics in multilingual contexts: A systematic literature review10.1007/s11042-026-21238-1 ↗
41. Decoding Fake News and Hate Speech: A Survey of Explainable AI Techniques10.1145/3711123 ↗
42. Ngalawan Ujaran Sengit: Hate speech detection in indonesian code-mixed social media data10.1007/s10579-025-09810-x ↗
43. Hate speech and abusive language detection in Indonesian social media: Progress and challenges10.1016/j.heliyon.2023.e18647 ↗
44. Resources and benchmark corpora for hate speech detection: A systematic review10.1007/s10579-020-09502-8 ↗
45. A comprehensive review on detection of hate speech for multi-lingual data10.1007/s13278-024-01401-y ↗
46. Survey of Cultural Awareness in Language Models: Text and Beyond10.1162/COLI.a.14 ↗
47. Nkemelu, D., Shah, H., Best, M., and Essa, I. (2022, January 27–29). Tackling Hate Speech in Low-resource Languages with Context Experts. Proceedings of the International Conference on Information & Communication Technologies and Development 2022, New York, NY, USA.10.1145/3572334.3572372 ↗
48. Explainable AI for Hate Speech Moderation: A Stakeholder-Centered and Sociotechnical Review10.1002/widm.70076 ↗
49. A Comprehensive Survey of Transformers in Text Recognition: Techniques, Challenges, and Future Directions
50. Yu, J.S., and Yao, Y. (2026). Language Modeling and Large Language Models. Intelligent Language Services, Springer Nature.10.1007/978-981-95-4632-9 ↗
51. Systematic literature review on sentiment analysis using transformers10.1007/s41060-026-01021-z ↗
52. A Survey on Text Classification: From Traditional to Deep Learning
53. A Comparative Survey of Instance Selection Methods applied to Non-Neural and Transformer-Based Text Classification10.1145/3582000 ↗
54. Pre-trained language model for code-mixed text in Indonesian, Javanese, and English using transformer10.1007/s13278-025-01444-9 ↗
55. Sentiment analysis of Indonesian reviews using fine-tuning IndoBERT and R-CNN10.33096/ilkom.v14i3.1505.348-354 ↗
56. Ridha, M., Nurjanah, D., and Rakha, M. (2024). Multilabel Classification Abusive Language and Hate Speech on Indonesian Twitter Using Transformer Model: IndoBERTweet & IndoRoBERTa. Proceedings of the 2024 International Conference on Intelligent Cybernetics Technology & Applications (ICICyTA), IEEE.10.1109/ICICYTA64807.2024.10912874 ↗
57. A Comparison of BiLSTM, BERT, and Ensemble Method for Emotion Recognition on Indonesian Product Reviews10.1016/j.procs.2024.10.266 ↗
58. Model-Agnostic Meta-Learning for Multilingual Hate Speech Detection10.1109/TCSS.2023.3252401 ↗
59. MMBERT: Scaled Mixture-of-Experts Multimodal BERT for Robust Chinese Hate Speech Detection Under Cloaking Perturbations
60. Depuru, S., Mahathi, T., Prasad, V.V., Devi Daswanth, S., and Rohini, T. (2025). Cross-Lingual Hate Speech Detection using XLM-R and Transformer based Classification. Proceedings of the 2025 International Conference on Sustainable Communication Networks and Application (ICSCN), IEEE.10.1109/ICSCN67106.2025.11308584 ↗
61. Nurrahmi, H., Wibowo, A.T. (2025). Evaluating Classification Models Over IndoBERT and IndoBERTweet Embeddings for Indonesian Cyberbullying Detection. Proceedings of the 2025 5th International Conference on Intelligent Cybernetics Technology & Applications (ICICyTA), IEEE.10.1109/ICICyTA68677.2025.11362735 ↗
62. Transformer-based deep learning models for the sentiment analysis of social media data10.1016/j.array.2022.100157 ↗
63. A comprehensive review on automatic hate speech detection in the age of the transformer10.1007/s13278-024-01361-3 ↗
64. Comparing Fine-Tuning, Zero and Few-Shot Strategies with Large Language Models in Hate Speech Detection in English
65. A Literature Review of Textual Cyber Abuse Detection Using Cutting-Edge Natural Language Processing Techniques: Language Models and Large Language Models10.1002/widm.70029 ↗
66. Multi-label Aspect Dangerous Speech Classification Using Keyword-Driven Ensemble Classifier on Imbalanced Data
67. A comprehensive framework for multi-modal hate speech detection in social media using deep learning10.1038/s41598-025-94069-z ↗
68. NLP based text classification using TF-IDF enabled fine-tuned long short-term memory: An empirical analysis10.1016/j.array.2025.100467 ↗
69. HateFusion: Harnessing Attention-Based Techniques for Enhanced Filtering and Detection of Implicit Hate Speech10.1109/TCSS.2024.3512573 ↗
70. MMFFHS: Multi-Modal Feature Fusion for Hate Speech Detection on Social Media10.1109/TBDATA.2024.3445372 ↗
71. Deep feature fusion for hate speech detection: A transfer learning approach10.1007/s11042-023-14850-y ↗
72. A Systematic Review on Semantic Role Labeling for Information Extraction in Low-Resource Data10.1109/ACCESS.2024.3392370 ↗
73. A comprehensive survey on federated semi-supervised learning: Applications, challenges, and future directions10.1007/s10586-026-06028-6 ↗
74. Pseudo-Labeling with Large Language Models for Multi-Label Emotion Classification of French Tweets10.1109/ACCESS.2024.3354705 ↗
75. Dirting, B.D., Chukwudebe, G.A., Nwokorie, E.C., and Ayogu, I.I. (2022). Multi-Label Classification of Hate Speech Severity on Social Media using BERT Model. Proceedings of the 2022 IEEE Nigeria 4th International Conference on Disruptive Technologies for Sustainable Development (NIGERCON), IEEE.10.1109/NIGERCON54645.2022.9803164 ↗
76. A Survey on Self-Supervised Learning: Algorithms, Applications, and Future Trends10.1109/TPAMI.2024.3415112 ↗
77. Abdulrazzaq, M.M., Ramaha, N.T.A., Hameed, A.A., Salman, M., Yon, D.K., Fitriyani, N.L., Syafrudin, M., and Lee, S.W. (2024). Consequential Advancements of Self-Supervised Learning (SSL) in Deep Learning Contexts. Mathematics, 12.10.3390/math12050758 ↗
78. Systematic literature review on hate speech detection in Indian low-resource languages10.1007/s42001-025-00432-5 ↗
79. A Survey on Online Aggression: Content Detection and Behavioral Analysis on Social Media10.1145/3711125 ↗
80. Natural language processing applications for low-resource languages10.1017/nlp.2024.33 ↗
81. Ronny Mabokela, K., Primus, M., and Celik, T. (2025). Advancing sentiment analysis for low-resourced african languages using pre-trained language models. PLoS ONE, 20.10.1371/journal.pone.0325102 ↗
82. Khandokar, I.A., and Deshpande, P. (2026). SSABE-TSCM: Drift-aware and interpretable financial sentiment analysis for low-resource Bangla via adaptive semi-supervised and temporal contrastive modeling. Front. Artif. Intell., 9.10.3389/frai.2026.1724407 ↗
83. Big Data Analytics in IoT, social media, NLP, and information security: Trends, challenges, and applications10.1186/s40537-025-01192-9 ↗
84. A Survey of Domain-Specific Fine-Tuned Large Language Models10.1109/ACCESS.2026.3658096 ↗
85. Large Language Models for Combinatorial Optimization: A Systematic Review
86. Usman, M., Ahmad, M., Sidorov, G., Gelbukh, I., and Tellez, R.Q. (2025). A Large Language Model-Based Approach for Multilingual Hate Speech Detection on Social Media. Computers, 14.10.3390/computers14070279 ↗
87. Machine learning intervention on cyber-hate in code-switch texts: A systematic review with open challenges and solutions10.7717/peerj-cs.3537 ↗
88. Semi-Supervised Sentiment Classification Using Self-Learning and Enhanced Co-Training10.20895/infotel.v17i3.1344 ↗
89. Data oversampling and imbalanced datasets: An investigation of performance for machine learning and feature engineering10.1186/s40537-024-00943-4 ↗
90. Enhancing network traffic classification with autoencoders and TF–IDF-based dimensionality reduction: A data-centric comparative study10.1016/j.comnet.2026.112306 ↗
91. Performance analysis of transformer-based architectures and their ensembles to detect trait-based cyberbullying10.1007/s13278-022-00934-4 ↗
92. OpenAI (2026, May 12). GPT-4o Mini: Advancing Cost-Efficient Intelligence. Available online: https://openai.com/index/gpt-4o-mini-advancing-cost-efficient-intelligence/.
93. Grattafiori, A., Dubey, A., Jauhri, A., Pandey, A., Kadian, A., Al-Dahle, A., Letman, A., Mathur, A., Schelten, A., and Vaughan, A. (2024). The Llama 3 Herd of Models. arXiv.