Analisis Perbandingan Algoritma XGBOOST dan BiLSTM Dalam Klasifikasi Sentimen Publik Terhadap Kebijakan Penempatan Dana Pemerintah di Bank
DOI:
https://doi.org/10.59696/prinsip.v4i2.237Keywords:
Analisis sentimen, XGBoost, BiLSTM, Klasifikasi Teks, Kebijakan Publik, Media SosialAbstract
Penempatan dana pemerintah di sektor perbankan merupakan salah satu kebijakan strategis yang bertujuan untuk menjaga stabilitas ekonomi dan meningkatkan likuiditas perbankan. Namun, kebijakan ini memunculkan beragam respons dari masyarakat yang tercermin dalam opini publik di media sosial. Penelitian ini bertujuan untuk menganalisis dan membandingkan kinerja algoritma Extreme Gradient Boosting (XGBoost) dan Bidirectional Long Short-Term Memory (BiLSTM) dalam melakukan klasifikasi sentimen publik terhadap kebijakan tersebut. Data yang digunakan berasal dari platform media sosial yang dikumpulkan melalui teknik scraping, kemudian melalui tahap preprocessing yang meliputi tokenisasi, normalisasi, dan penghapusan noise. Selanjutnya, fitur diekstraksi menggunakan metode Term Frequency-Inverse Document Frequency (TF-IDF) untuk XGBoost dan word embedding untuk BiLSTM. Evaluasi kinerja model dilakukan menggunakan metrik akurasi, presisi, recall, dan F1-score. Hasil penelitian menunjukkan bahwa model BiLSTM memiliki kemampuan yang lebih baik dalam menangkap konteks kalimat sehingga menghasilkan akurasi yang lebih tinggi dibandingkan XGBoost. Namun, XGBoost menunjukkan keunggulan dalam hal efisiensi komputasi dan waktu pelatihan. Penelitian ini memberikan kontribusi dalam pemilihan model klasifikasi sentimen yang optimal untuk analisis opini publik berbasis data teks, khususnya dalam konteks kebijakan ekonomi pemerintah.
References
Ahmadian, H., Abidin, T. F., Riza, H., & Muchtar, K. (2024). Hybrid Models for Emotion Classification and Sentiment Analysis in Indonesian Language. Applied Computational Intelligence and Soft Computing, 2024(1). https://doi.org/10.1155/2024/2826773
Alabdulkarim, N. A., Haq, M. A., & Gyani, J. (2024). Exploring Sentiment Analysis on Social Media Texts. Engineering, Technology & Applied Science Research, 14(3), 14442–14450. https://doi.org/10.48084/etasr.7238
Alhassan, A. M., & Altmami, N. I. (2025). IV3TM: Inception V3 enabled bidirectional long short-term memory network for brain tumor classification. PLOS One, 20(10), e0335397. https://doi.org/10.1371/journal.pone.0335397
Alqaryouti, O., Siyam, N., Abdel Monem, A., & Shaalan, K. (2024). Aspect-based sentiment analysis using smart government review data. Applied Computing and Informatics, 20(1/2), 142–161. https://doi.org/10.1016/j.aci.2019.11.003
Chandrasekaran, G., Dhanasekaran, S., Moorthy, C., & Arul Oli, A. (2025). Multimodal sentiment analysis leveraging the strength of deep neural networks enhanced by the XGBoost classifier. Computer Methods in Biomechanics and Biomedical Engineering, 28(6), 777–799. https://doi.org/10.1080/10255842.2024.2313066
Dina Wulan Yekti rahayu, Khothibul Umam, & Maya Rini Handayani. (2025). Performance of Machine Learning Algorithms on Imbalanced Sentiment Datasets Without Balancing Techniques. Journal of Applied Informatics and Computing, 9(3), 998–1005. https://doi.org/10.30871/jaic.v9i3.9584
INA Solutions. (2024). The future of public policy: Using natural language processing solutions for sentiment analysis. The Future of Public Policy: Using Natural Language Processing Solutions for Sentiment Analysis. https://ina-solutions.com/resources/2024/11/26/the-future-of-public-policy-using-natural-language-processing-solutions-for-sentiment-analysis/
Sari, I.P., Zulherry, A., Basri, M., & Hayani W. (2025). Pembelajaran Pemrograman berbasis Machine Learning sebagai Upaya Peningkatan Computational Thinking. Jurnal Penelitian, Pendidikan dan Pengajaran: JPPP 6 (3), 245-250
Bisono, A. T., & Zulherry, A. (2025). Analisis sentimen game Genshin Impact untuk mengetahui reaksi dan harapan pemain menggunakan metode Naïve Bayes. sudo Jurnal Teknik Informatika, 4(2), 183-193.
Basri, M., & Zulherry, A. (2025). Analysis of the Impact of Gambling and Online Loans in the Perspective of Informatics, Islam, and Kemuhammadiyahan. Ar-Rasyid: Jurnal Pendidikan Agama Islam, 5(1), 65-73.
Asadel, A., & Zulherry, A. (2025). Detecting Zero-Width Characters Obfuscated in Phishing URLs using the XGBOOST Algorithm. Hanif Journal of Information Systems 3 (1), 43-53
Zulherry, A., Sari, I.P., & Basri, M. (2025). Perancangan Aplikasi Monitoring Kehadiran Pegawai Menggunakan RFID. sudo Jurnal Teknik Informatika 4 (4), 378-384
Ichsan, A., Zulherry, A., Lubis, T. A., & Shahnaz, B. A. Z. (2025). Utilization of Mobile Applications to Speed Up The Search for Android-Based Index Places. IJATCoS: Indonesian Journal of Applied Technology. Computer and Science, 2(1).
Amada, E.P., & Zulherry, A. (2025). Klasterisasi Minat Dan Bakat Siswa Menggunakan Metode X-Means Berbasis Web: Studi Kasus SMA Negeri 1 Hamparan Perak. sudo Jurnal Teknik Informatika 4 (4), 276-283.
Zulherry, A., Ramadhani, F., & Satria, A. (2024). Klasifikasi Data Tracer Study Dengan Pemanfaatan Data Mining Menggunakan Algoritma Support Vector Machine dan Neural Network. Portal Riset dan Inovasi Sistem Perangkat Lunak 2 (1), 45-54
Zulherry, A. (2023). Decision making for network security with simple additive weighting method. Journal of Intelligent Decision Support System (IDSS), 6(3), 155-159.
Sari, I.P., Novita, A., Al-Khowarizmi, A., Ramadhani, F., & Satria, A. (2024). Pemanfaatan Internet of Things (IoT) pada Bidang Pertanian Menggunakan Arduino UnoR3. Blend Sains Jurnal Teknik 2 (4), 337-343
Husaini, A., & Sari, I.P. (2023). Konfigurasi dan Implementasi RB750Gr3 sebagai RT-RW Net pada Dusun V Suka Damai Desa Sei Meran. sudo Jurnal Teknik Informatika 2 (4), 151-158
Khadija, M. A., Jayanti, I. S. D., & Nimah, F. U. (2024). Towards Smart City: Aspect Based Sentiment Analysis of Indonesian Public Aspiration Complaints Data Using Machine Learning. 2024 7th International Conference on Informatics and Computational Sciences (ICICoS), 215–220. https://doi.org/10.1109/ICICoS62600.2024.10636859
Lin, C.-H., & Nuha, U. (2023). Sentiment analysis of Indonesian datasets based on a hybrid deep-learning strategy. Journal of Big Data, 10(1), 88. https://doi.org/10.1186/s40537-023-00782-9
Nguyen, H.-H. (2024). Enhancing Sentiment Analysis on Social Media Data with Advanced Deep Learning Techniques. International Journal of Advanced Computer Science and Applications, 15(5). https://doi.org/10.14569/IJACSA.2024.0150598
Nsaif, A. A., & Abd, D. H. (2022). Sentiment Analysis of Political Post Classification Based on XGBoost (pp. 177–188). https://doi.org/10.1007/978-981-19-0604-6_16
Rahman, M. M., Shiplu, A. I., Watanobe, Y., & Alam, M. A. (2025). RoBERTa-BiLSTM: A Context-Aware Hybrid Model for Sentiment Analysis. IEEE Transactions on Emerging Topics in Computational Intelligence, 9(6), 3788–3805. https://doi.org/10.1109/TETCI.2025.3572150
Rifqi Yafik, & Mulkan Azhari. (2025). Analisis Perbandingan Metode LSTM Dan BiLSTM Untuk Prediksi Harga Saham Menggunnakan Alpha Vantage. Jurnal Komputer Teknologi Informasi Sistem Informasi (JUKTISI), 4(3), 1542–1551. https://doi.org/10.62712/juktisi.v4i3.650
Sari, I.P., Al-Khowarizmi,A.K., Apdilah, D., Manurung, A.A., & Basri, M. (2023). Perancangan Sistem Pengaturan Suhu Ruangan Otomatis Berbasis Hardware Mikrokontroler Berbasis AVR. sudo Jurnal Teknik Informatika 2 (3), 131-142
Wardani., S, & Dewantoro., RW. (2024). Internet of Things: Home Security System based on Raspberry Pi and Telegram Messenger. Indonesian Journal of Applied Technology, Computer and Science 1 (1), 7-13
Romadhony, A., Al Faraby, S., Rismala, R., Wisesty, U. N., & Arifianto, A. (2024). Sentiment Analysis on a Large Indonesian Product Review Dataset. Journal of Information Systems Engineering and Business Intelligence, 10(1), 167–178. https://doi.org/10.20473/jisebi.10.1.167-178
Russell, S. N., Rao-Graham, L., & McNaughton, M. (2024). Mining social media data to inform public health policies: a sentiment analysis case study. Revista Panamericana de Salud Pública, 48, 1. https://doi.org/10.26633/RPSP.2024.79
Sari, I.P., Al-Khowarizmi, A.K., Hariani, P.P., Perdana, A., & Manurung, A.A. (2023). Implementation And Design of Security System On Motorcycle Vehicles Using Raspberry Pi3-Based GPS Tracker And Facedetection. Sinkron: jurnal dan penelitian teknik informatika 8 (3), 2003-2007
Sari, I.P., Basri, M., Ramadhani, F., & Manurung, A.A. (2023). Penerapan Palang Pintu Otomatis Jarak Jauh Berbasis RFID di Perumahan. Blend Sains Jurnal Teknik 2 (1), 16-25
Setiawan, M. J., & Nastiti, V. R. S. (2024). DANA App Sentiment Analysis: Comparison of XGBoost, SVM, and Extra Trees. Jurnal Sisfokom (Sistem Informasi Dan Komputer), 13(3), 337–345. https://doi.org/10.32736/sisfokom.v13i3.2239
Talaat, A. S. (2023). Sentiment analysis classification system using hybrid BERT models. Journal of Big Data, 10(1), 110. https://doi.org/10.1186/s40537-023-00781-w
Verma, S. (2022). Sentiment analysis of public services for smart society: Literature review and future research directions. Government Information Quarterly, 39(3), 101708. https://doi.org/10.1016/j.giq.2022.101708
Xu, G., Chen, Z., & Zhang, Z. (2025). Aspect category sentiment analysis based on pre-trained BiLSTM and syntax-aware graph attention network. Scientific Reports, 15(1), 3333. https://doi.org/10.1038/s41598-025-86009-8
Sari, I.P., & Batubara, I.H. (2020). Aplikasi Berbasis Teknologi Raspberry Pi Dalam Manajemen Kehadiran Siswa Berbasis Pengenalan Wajah. JMP-DMT 1 (4), 6
Sari, I.P., Batubara, I.H., & Basri, M. (2022). Implementasi Internet of Things Berbasis Website dalam Pemesanan Jasa Rumah Service Teknisi Komputer dan Jaringan Komputer. Blend Sains Jurnal Teknik 1 (2), 157-163
Matondang, M.H.A., Asadel, A., Fauzan, D., & Setiawan, A.R. (2024). Smart Helmet for Motorcycle Safety Internet of Things Based. Tsabit Journal of Computer Science 1 (1), 35-39
Zulherry, A., Riadi, I., & Umar, R. (2026). Anomaly Detection in Cloud Device-Based Information Technology Infrastructure Using Isolation Forest Algorithm. Journal Of Informatics And Telecommunication Engineering 9 (2)
Sari, I.P., & Zulherry, A. (2025). Development of A Smart Monitoring System for IoT–Based Tide Observation. Al'adzkiya International of Computer Science and Information Technology (AIoCSIT) Journal, 6 (2), 18-23
Zulherry, A., Gunawan, M., & Sari, I.P. (2025). Development of an Android-Based Smart Health Monitoring Device for Heartbeat Detection. Al'adzkiya International of Computer Science and Information Technology (AIoCSIT) Journal, 6 (2), 43-47
Yulistiani, Y., & Styawati, S. (2024). Analisis Sentimen Terhadap Calon Presiden Indonesia 2024 dengan Metode Extreme Gradient Boosting (XGBOOST). Jurnal Informatika: Jurnal Pengembangan IT, 9(3), 322–328. https://doi.org/10.30591/jpit.v9i3.6127
Zhao, J., Liu, H., Wang, Y., Zhang, W., Zhang, X., Li, B., Sun, T., Qi, Y., & Zhang, S. (2024). Sentiment analysis of video danmakus based on MIBE-RoBERTa-FF-BiLSTM. Scientific Reports, 14(1), 5827. https://doi.org/10.1038/s41598-024-56518-z
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Wahyu Purnomo, Mhd. Basri

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














