Implementation of IndoBERT and XGBoost Hybrid Architecture for Sentiment Analysis on Government Budget Issues
DOI:
https://doi.org/10.52436/1.jutif.2026.7.5.5604Keywords:
Budget Efficiency, Fine-Tuning, IndoBERT, Sentiment Analysis, XGBoostAbstract
Lexical similarity between sentiment classes, ambiguity of meaning, and the high number of overlapping words between labels are the main challenges in sentiment classification regarding government budget efficiency on social media. This issue is widely discussed because it relates to transparency and accountability in state financial management, so public perceptions of it need to be analyzed in context to support data-based policy evaluation. This study aims to develop an optimal sentiment classification model by integrating IndoBERT-based word representation and XGBoost classification algorithm. A total of 1,650 public comments were manually collected from platform X (Twitter), YouTube, TikTok, and Instagram, and annotated into three sentiment categories: positive, negative, and neutral, with inter-annotator reliability evaluated using Cohen's Kappa reaching 92.2%. The model was tested through three different scenarios. Experimental results show that the proposed method, a hybrid of IndoBERT fine-tuning and XGBoost, produced the best performance with an accuracy of 93% and an F1-score of 92%. Compared with the IndoBERT pre-trained model and the XGBoost baseline, the proposed model improved accuracy by 26 percentage points (from 67% to 93%). Contextual representation through fine-tuning proved effective in addressing meaning ambiguity, handling lexical similarity across classes, and improving model accuracy and stability. This study demonstrates the efficacy of hybrid transformer–ensemble models for handling high-ambiguity texts in the public-sector domain, thereby contributing to the literature on Indonesian sentiment classification.
Downloads
References
D. D. Cahyani, G. S. Amalia, J. A. Putri, and A. A. Zahira, “Analisis Pengukuran Kinerja Efisien dan Efektivitas Anggaran Belanja Pemerintah Provinsi DKI Jakarta Periode 2020-2023,” Jurnal Kajian dan Penalaran Ilmu Manajemen, vol. 3, no. 1, pp. 61–71, 2024, doi: 10.59031/jkpim.v3i1.515.
Humas, “Presiden Prabowo Tekankan Penyusunan Anggaran Harus Berorientasi pada Efisiensi dan Penghematan,” Sekretariat Kabinet Republik Indonesia, 2025. https://setkab.go.id/presiden-prabowo-tekankan-penyusunan-anggaran-harus-berorientasi-pada-efisiensi-dan-penghematan/ (accessed Mar. 25, 2025).
Badan Pusat Statistik, “Tabel Anggaran Belanja Pemerintah Pusat Berdasarkan Fungsi - Tabel Statistik.” BPS, 2024. https://www.bps.go.id/id/statistics-table/2/MTA4MiMy/tabel-anggaran-belanja-pemerintah-pusat-berdasarkan-fungsi.html (accessed Mar. 25, 2025).
DJPK KEMENKEU, “Instruksi Presiden Republik Indonesia Nomor 1 Tahun 2025 tentang Efisiensi Belanja dalam Pelaksanaan APBN dan APBD TA 2025.” Kementrian Keuangan RI, 2025. https://djpk.kemenkeu.go.id/?p=60835 (accessed Mar. 25, 2025).
M. R. Taufikurahman, E. Listiyanto, R. A. Pujarama, and A. M. Pulungan, “100 Hari Asta Cita Ekonomi, Memuaskan? – INDEF,” INDEF, 2025. https://indef.or.id/publikasi/100-hari-asta-cita-ekonomi/ (accessed Mar. 25, 2025).
A. Khan, H. Zhang, N. Boudjellal, A. Ahmad, and M. Khan, “Improving Sentiment Analysis in Election-Based Conversations on Twitter with ElecBERT Language Model,” Computers, Materials & Continua, vol. 76, no. 3, pp. 3345–3361, 2023, doi: 10.32604/cmc.2023.041520.
M. Tareq, Md. F. Islam, S. Deb, S. Rahman, and A. A. Mahmud, “Data-Augmentation for Bangla-English Code-Mixed Sentiment Analysis: Enhancing Cross Linguistic Contextual Understanding,” IEEE Access, vol. 11, pp. 51657–51671, 2023, doi: 10.1109/ACCESS.2023.3277787.
S. S. P. Shukla and M. P. Singh, “Stacked Classification Approach using Optimized Hybrid Deep Learning Model for Early Prediction of Behaviour Changes on Social Media,” ACM Transactions on Asian and Low-Resource Language Information Processing, vol. 23, no. 11, pp. 1–22, 2024, doi: 10.1145/3689906.
N. K. Nissa and E. Yulianti, “Multi-label text classification of Indonesian customer reviews using bidirectional encoder representations from transformers language model,” International Journal of Electrical and Computer Engineering (IJECE), vol. 13, no. 5, pp. 5641–5652, 2023, doi: 10.11591/ijece.v13i5.pp5641-5652.
N. A. Alabdulkarim, M. A. Haq, and J. Gyani, “Exploring Sentiment Analysis on Social Media Texts,” Engineering, Technology & Applied Science Research, vol. 14, no. 3, pp. 14442–14450, 2024, doi: 10.48084/etasr.7238.
E. Yulianti and N. K. Nissa, “ABSA of Indonesian customer reviews using IndoBERT: single-sentence and sentence-pair classification approaches,” Bulletin of Electrical Engineering and Informatics, vol. 13, no. 5, pp. 3579–3589, 2024, doi: 10.11591/eei.v13i5.8032.
Z. An, T. Xiong, Z. Zou, and H. Wan, “Aspect-based Sentiment Analysis with an Ensemble Learning Framework for Requirements Elicitation from App Reviews,” Journal of Internet Technology, vol. 25, no. 7, pp. 1083–1090, 2024, doi: 10.70003/160792642024122507012.
E. Hashmi and S. Y. Yayilgan, “A robust hybrid approach with product context-aware learning and explainable AI for sentiment analysis in Amazon user reviews,” Electronic Commerce Research, vol. 25, pp. 5139–5171, 2024, doi: 10.1007/s10660-024-09896-5.
A. Singh, A. K. Svv, H. Ragothaman, D. Nair, and S. Saxena, “Leveraging Large-Language Models based Machine Learning for Sentiment Analysis and Regional Consumer Insights in Amazon Product Reviews,” Journal of Computational Analysis and Applications (JoCAAA), vol. 33, no. 8, pp. 1074–1092, 2024, Retrieved from: https://eudoxuspress.com/index.php/pub/article/view/1569
E. Cicekyurt and G. Bakal, “Enhancing Sentiment Analysis in Stock Market Tweets Through BERT-Based Knowledge Transfer,” Computational Economics, 2025, doi: 10.1007/s10614-025-10901-8.
A. Irianti, H. Halimah, S. Sutedi, and M. Agariana, “Integration of BERT and SVM in Sentiment Analysis of Twitter/X Regarding Constitutional Court Decision No. 60/PUU-XXII/2024,” Jurnal Teknik Informatika (Jutif), vol. 6, no. 2, pp. 469–482, 2025, doi: 10.52436/1.jutif.2025.6.2.4068.
S. A. B. Sibarani, R. Purba, and R. P. Limbong, “Implementation of IndoBERT in Sarcasm Detection using Random Forest Towards Sentiment Analysis,” Building of Informatics, Technology and Science (BITS), vol. 6, no. 4, p. 2120−2130, 2025, doi: 10.47065/bits.v6i4.5801.
A. G. S. Moeslim, E. Firmansyah, and B. Sutara, “Perbandingan Kinerja XGBoost dan IndoBERT untuk Klasifikasi Teks Kesehatan Bahasa Indonesia,” Data Sciences Indonesia (DSI), vol. 5, no. 2, pp. 62–72, 2025, doi: 10.47709/dsi.v5i2.7281.
A. S. Talaat, “Sentiment analysis classification system using hybrid BERT models,” Journal of Big Data, vol. 10, no. 1, p. 110, 2023, doi: 10.1186/s40537-023-00781-w.
X. Jiang, C. Song, Y. Xu, Y. Li, and Y. Peng, “Research on sentiment classification for netizens based on the BERT-BiLSTM-TextCNN model,” PeerJ Computer Science, vol. 8, p. e1005, 2022, doi: 10.7717/peerj-cs.1005.
U. K. Das et al., “Enhancing sentiment analysis accuracy on social media comments using a tuned BERT model,” Discov Computing, vol. 28, no. 1, p. 198, 2025, doi: 10.1007/s10791-025-09599-x.
H. Ahmadian, T. F. Abidin, H. Riza, and K. Muchtar, “Hybrid Models for Emotion Classification and Sentiment Analysis in Indonesian Language,” Applied Computational Intelligence and Soft Computing, vol. 2024, no. 1, p. 2826773, 2024, doi: 10.1155/2024/2826773.
F. A. Larasati, D. E. Ratnawati, and B. T. Hanggara, “Analisis Sentimen Ulasan Aplikasi Dana dengan Metode Random Forest,” Jurnal Pengembangan Teknologi Informasi dan Ilmu Komputer, vol. 6, no. 9, pp. 4305–4314, 2022, Retrieved from: https://j-ptiik.ub.ac.id/index.php/j-ptiik/article/view/11562
M. S. U. Miah, J. Sulaiman, T. B. Sarwar, N. Ibrahim, M. Masuduzzaman, and R. Jose, “An automated materials and processes identification tool for material informatics using deep learning approach,” Heliyon, vol. 9, no. 9, p. e20003, 2023, doi: 10.1016/j.heliyon.2023.e20003.
D. A. R. Gono, A. Kouame, K. M. Brou, and B. T. Goore, “Hybrid Approach Using Multi-Relational Weighted Matrix Factorization (WMRMF) and Cohen’s Kappa (Sk) to Refine Educational Items Clustering,” International Journal of Emerging Technologies in Learning, vol. 19, no. 07, pp. 92–103, 2024, doi: 10.3991/ijet.v19i07.50943.
D. Indra, R. Ramdaniah, and W. Sukur, “Analysis of Hybrid Learning Sentiment among Information Systems Students using The Naïve Bayes Classifier,” Jurnal ELTIKOM : Jurnal Teknik Elektro, Teknologi Informasi dan Komputer, vol. 8, no. 2, pp. 91–99, 2024, doi: 10.31961/eltikom.v8i2.1144.
M. I. Raif, N. N. Hidayati, and T. Matulatan, “Otomatisasi Pendeteksi Kata Baku Dan Tidak Baku Pada Data Twitter Berbasis KBBI,” Jurnal Teknologi Informasi Dan Ilmu Komputer, vol. 11, no. 2, pp. 337–348, 2024, doi: 10.25126/jtiik.20241127404.
A. Hernandes, S. K. Gusti, F. Syafria, L. Handayani, and S. Ramadhani, “Klasifikasi Data Penerimaan Zakat dengan Algoritma K-Nearest Neighbor,” Kajian Ilmiah Informatika dan Komputer, vol. 4, no. 3, pp. 1632–1640, 2023, doi: 10.30865/klik.v4i3.1528.
A. A. Almazroi and N. Ayub, “Enhancing aspect-based multi-labeling with ensemble learning for ethical logistics,” PLoS ONE, vol. 19, no. 5, p. e0295248, 2024, doi: 10.1371/journal.pone.0295248.
M. Khadapi and V. M. Pakpahan, “Analisis Sentimen Berbasis Jaringan LSTM dan BERT terhadap Diskusi Twitter tentang Pemilu 2024,” JUKI : Jurnal Komputer Dan Informatika, vol. 6, no. 2, pp. 130–137, 2024, Retrieved from: https://ioinformatic.org/index.php/JUKI/article/view/681
A. C. Saputra, Saragih Agus Sehatman, and Ronaldo Deddy, “Perbandingan Nilai Akurasi DistilBERT dan BERT pada Dataset Analisis Sentimen Lembaga Kursus,” Jurnal Teknologi Informasi, vol. 18, no. 2, pp. 160–171, 2024, doi: 10.47111/JTI.
M. R. Alifi, D. C. U. Lieharyani, B. P. Sudimulya, and M. R. Maulidhan, “Implementation of IndoNLU Pre-Trained Model for Aspect-Based Sentiment Analysis of Indonesian Stock News,” Jurnal Teknik Informatika, vol. 16, no. 2, pp. 151–160, 2023, doi: 10.15408/jti.v16i2.33791.
J. Pranata, S. Agustian, J. Jasril, and E. Haerani, “Penggunaan Model Bahasa indoBERT pada metode Random Forest untuk Klasifikasi Sentimen dengan Dataset Terbatas,” Building of Informatics, Technology and Science, vol. 6, no. 3, pp. 1668–1676, 2024, doi: 10.47065/bits.v6i3.6335.
L. Liao, H. Li, W. Shang, and L. Ma, “An Empirical Study of the Impact of Hyperparameter Tuning and Model Optimization on the Performance Properties of Deep Neural Networks,” ACM Transactions on Software Engineering and Methodology, vol. 31, no. 3, pp. 1–40, 2022, doi: 10.1145/3506695.
C. E. Benarab and S. Gui, “CNN-Trans-Enc: A CNN-Enhanced Transformer-Encoder On Top Of Static BERT representations for Document Classification,” Sep. 13, 2022, arXiv: arXiv:2209.06344. doi: 10.48550/arXiv.2209.06344.
A. Sancaktaroğlu, B. Gokgur, and A. Kocabıyıkoğlu, “Data-Driven Mechanisms for a Newsvendor Problem: A Case Study,” Gazi University Journal of Science, vol. 37, no. 4, pp. 1853–1869, 2024, doi: 10.35378/gujs.1334184.
K. He et al., “Improving fire severity prediction in south-eastern Australia using vegetation-specific information,” Natural Hazards and Earth System Sciences, vol. 24, no. 10, pp. 3337–3355, 2024, doi: 10.5194/nhess-24-3337-2024.
T. Chen and C. Guestrin, “XGBoost: A Scalable Tree Boosting System,” in Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco California USA: ACM, 2016, pp. 785–794. doi: 10.1145/2939672.2939785.
K. Neupane and I. Griva, “An extreme Gradient Boosting (XGBoost) Trees approach to Detect and Identify Unlawful Insider Trading (UIT) Transactions,” 2025, arXiv: arXiv:2511.08306. doi: 10.48550/arXiv.2511.08306.
T. Ridwansyah, “Implementasi Text Mining Terhadap Analisis Sentimen Masyarakat Dunia Di Twitter Terhadap Kota Medan Menggunakan K-Fold Cross Validation Dan Naïve Bayes Classifier,” Kajian Ilmiah Informatika dan Komputer, vol. 2, no. 5, pp. 178–185, 2022, doi: 10.30865/klik.v2i5.362.
F. Chahyadi, A. Uperiati, R. A. I. Pratiwi, and N. Hamid, “Evaluating Lexicon Weighting and Machine Learning Models for Sentiment Classification of Indonesian Mangrove Ecotourism Reviews,” Jurnal Teknik Informatika (Jutif), vol. 6, no. 6, pp. 5679–5698, 2025, doi: 10.52436/1.jutif.2025.6.6.5563.
A. G. Chifu and S. Fournier, “Sentiment Difficulty in Aspect-Based Sentiment Analysis,” Mathematics, vol. 11, no. 22, p. 4647, 2023, doi: 10.3390/math11224647.
A. B. A. Gi̇Rgi̇N and S. Şahi̇N, “Improving the Performance of Sentiment Analysis by Ensemble Hybrid Learning Algorithm With NLP And Cascaded Feature Extraction,” International Journal of Advances in Engineering and Pure Sciences, vol. 35, no. 1, pp. 125–141, 2023, doi: 10.7240/jeps.1249586.
D. I. Af’idah and A. Susanto, “Hyperparameter Tuning Seq2Seq Gated Recurrent Unit untuk Penerjemahan Bahasa Daerah ke Nasional,” Jurnal Informatika Teknologi dan Sains, vol. 6, no. 4, pp. 1238–1248, 2025, doi: 10.51401/jinteks.v6i4.5645.
R. I. Perwira, V. A. Permadi, D. I. Purnamasari, and R. P. Agusdin, “Domain-Specific Fine-Tuning of IndoBERT for Aspect-Based Sentiment Analysis in Indonesian Travel User-Generated Content,” Journal of Information Systems Engineering and Business Intelligence, vol. 11, no. 1, pp. 30–40, 2025, doi: 10.20473/jisebi.11.1.30-40.
C. M. V. D. Andrade et al., “Explaining the Hardest Errors of Contextual Embedding Based Classifiers,” in Proceedings of the 28th Conference on Computational Natural Language Learning, Miami, FL, USA: Association for Computational Linguistics, 2024, pp. 419–434. doi: 10.18653/v1/2024.conll-1.31.
M. Kumar, L. Khan, and H.-T. Chang, “Evolving techniques in sentiment analysis: a comprehensive review,” PeerJ Computer Science, vol. 11, p. e2592, 2025, doi: 10.7717/peerj-cs.2592.
A. Ali et al., “DEEP LEARNING-BASED SENTIMENT ANALYSIS USING A HYBRID BERT AND BI-LSTM MODEL,” JODAC: Journal of Dynamics and Control, vol. 9, no. 5, pp. 287–300, 2025, doi: 10.71058/jodac.v9i5023.
E. Hashmi, S. Y. Yayilgan, and S. Shaikh, “Augmenting sentiment prediction capabilities for code-mixed tweets with multilingual transformers,” Social Network Analysis and Mining, vol. 14, no. 1, p. 86, 2024, doi: 10.1007/s13278-024-01245-6.
Additional Files
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Shahnaz Tasha Kurnia, Muh Fajrin Bakri, Dewi Fatmarani Surianto, Nur Azizah Eka Budiarti, Syahrul

This work is licensed under a Creative Commons Attribution 4.0 International License.

</a



