Public Sentiment Classification of Danantara in Social Media X Using Support Vector Machine and Random Forest

Authors

  • Primandani Arsi Universitas Amikom Purwokerto Author
  • Pungkas Subarkah Universitas Amikom Purwokerto Author
  • Ranggi Praharaningtyas Aji Universitas Amikom Purwokerto Author

DOI:

https://doi.org/10.15294/edukom.v12i2.38254

Keywords:

Danantara, Random Forest, Sentiment Analysis, Social Media X, Support Vector Machine

Abstract

The increasing use of social media as a platform for public discourse provides valuable data for understanding societal responses to national strategic policies. One prominent example is the establishment of Danantara (Daya Anagata Nusantara), a sovereign wealth fund launched by the Indonesian government in February 2025. This study aims to analyze public sentiment toward Danantara using Indonesian-language posts collected from social media platform X and to comparatively evaluate the performance of Support Vector Machine (SVM) and Random Forest (RF) algorithms. A dataset of 1,434 public tweets was collected through web scraping and processed using text preprocessing techniques, including cleaning, tokenization, stopword removal, stemming, and TF-IDF feature extraction. Sentiment labels were generated using an Indonesian RoBERTa model and validated by a linguistic expert. Class imbalance was addressed using the Synthetic Minority Oversampling Technique (SMOTE). Model performance was evaluated using 5-fold stratified cross-validation with accuracy, precision, recall, and F1-score metrics. Experimental results show that Random Forest achieved slightly superior performance, reaching an average accuracy of 91.47%, compared to 91.06% obtained by SVM. Confusion matrix analysis indicates that RF better distinguishes neutral sentiment, while SVM performs competitively in identifying strong sentiment polarity. This study contributes by providing the first empirical comparison of classical machine learning approaches for analyzing public sentiment toward Indonesia’s sovereign wealth fund discourse, offering methodological insights and practical implications for data-driven policy evaluation using social media analytics.

References

Abdul, R. (2024). Analisis Sentimen Masyarakat Terhadap Undang-Undang Perlindungan Data Pribadi Pada Aplikasi X Dengan Metode Support Vector Machine. Jurnal METHODIKA, 10(1), 6–10. doi: https://doi.org/10.46880/mtk.v10i1.2335.

Arsi, P. A., & Retno, W. (2021). Analisis Sentimen Wacana Pemindahan Ibu Kota Indonesia Menggunakan Algoritma Support Vector Machine (SVM). Jurnal Teknologi Informasi dan Ilmu Komputer, 8(1), 147–156. https://doi.org/10.25126/jtiik.0813944.

Astuti, F. D., & Lenti, F. N. (2023). Perbandingan Algoritma Klasifikasi KNN, Gaussian Naive Bayes, dan Random Forest pada dataset LCMS tanaman keladi tikus yang diseimbangkan dengan metode Synthetic Minority Over-Sampling Technique. Prosiding SINTaKS, 2(1), 89–98. doi: http://dx.doi.org/10.35842/sintaks.v2i1.27.

Ayu, C. D., Febiani, F., Ardhani, M. L., Syahwa, N., & Nuraya, A. S. (2025). Keterkaitan Danantara dengan Stabilitas Keuangan Makro di Indonesia. Indonesian Research Journal on Education, 5(2), 1026–1031. doi:https://doi.org/10.31004/irje.v5i2.2418.

Dayani, A. D., Yuhandri, & Widi Nurcahyo, G. (2024). Analisis Sentimen Terhadap Opini Publik pada Sosial Media Twitter Menggunakan Metode SVM. Jurnal KomtekInfo, 11(1), 1–10. doi: 10.35134/komtekinfo.v11i1.439.

Dongoran, D., & Sari, I. P. (2025). Implementasi Klasifikasi Data Tracer Study ... Hello World Jurnal Ilmu Komputer, 4(1), 12–24. doi: 10.56211/helloworld.v4i1.619.

Ernawati, S., & Wati, R. (2024). Evaluasi Performa Kernel SVM ... Jurnal Buana Informatika, 15(1), 40–49. doi: https://doi.org/10.24002/jbi.v15i1.7925.

Fachreza, R., & Handoko, W. T. (2024). Analisis Sentimen Masyarakat Terhadap Kinerja Trans Semarang ... Progresif: Jurnal Ilmiah Komputer, 20(2), 724–734. doi:10.35889/progresif.v20i2.2093.

Firdaus, A. A. F., Anton, & Imam, R. (2023). Analisis Sentimen Pada Proyeksi Pemilihan Presiden 2024 ... Decode: Jurnal Pendidikan Teknologi Informasi, 3(2), 236–245. doi: 10.51454/decode.v3i2.172.

Firmansyach, W. A., Hayati, U., & Wijaya, Y. A. (2023). Analisa Terjadinya Overfitting dan Underfitting ... Jurnal Mahasiswa Teknik Informatika, 7(1), 262–269. doi: https://doi.org/10.36040/jati.v7i1.6329.

Hadi, N., & Sugiarto, D. (2025). Analisis Sentimen Pembangunan IKN ... Jurnal Informatika: Jurnal Pengembangan IT, 10(1), 37–49. doi: 10.30591/jpit.v10i1.7106.

Halim, S. F. N., & Azmi, U. (2023). Analisis Perbandingan Klasifikasi dan Penerapan SMOTE ... Jurnal Sains dan Seni ITS, 12(2), 127–134. doi: 10.12962/j23373520.v12i2.111833.

Herdiyani, T. C., & Zailani, A. U. (2022). Sentiment Analysis Terkait Pemindahan Ibu Kota Indonesia ... JTSI, 3(2), 154–165. doi: https://doi.org/10.35957/jtsi.v3i2.2920.

Hidayat, J. J., Setyowati, C., Amin, M. D. I., Bimasakti, K., & Werdana, A. P. (2025). Deep Learning-based Sentiment Analysis ... Jurnal Media Computer Science, 4(2), 277–292. doi: 10.37676/jmcs.v4i2.

Indrayanto, C. G., Ratnawati, D. E., & Rahayudi, B. (2023). Analisis Sentimen Data Ulasan MyPertamina ... JPTIIK, 7(3), 1131–1139. doi: https://j-ptiik.ub.ac.id/index.php/j-ptiik/article/view/12390.

Meriana, V., Wirayanti, N. K. A. W., Laksono, J. R. B., Binanto, I., & Sianipar, N. F. (2023). Perbandingan Algoritma KNN ... ICCCI 2021, 1(1), 1–3. doi: 10.35842/sintaks.v2i1.27.

Permana, R. A., & Pratama, A. R. (2025). Analisis sentimen kenaikan harga BBM ... Scientific Student Journal for Information, Technology and Science, 6(1), 39–49.

Purnama, S. J., & Chotib. (2022). Analisis Kebijakan Publik Pemindahan Ibu Kota Negara. Jurnal Ekonomi dan Kebijakan Publik, 13(2), 155–168. doi: 10.22212/jekp.v13i2.3486.

Putra, K. T., Anggraini, S., Sutriani, L., & Impron, A. (2025). Analisis Sentimen Masyarakat Kalimantan Tengah ... Journal Scientific of Mandalika, 6(5), 1115–1123. doi: https://doi.org/10.36312/10.36312/vol6iss5pp1115-1123.

Rahayu, S. P., Afuan, L., & Yunindar, G. A. (2025). Implementation of Text Mining ... JUTIF, 6(1), 359–368. doi: 10.52436/1.jutif.2025.6.1.4429.

Rihastuti, S., & Rosyidi, A. (2025). Analisis Sentimen Pengguna Tiktok ... JCS-TECH, 5(1), 19–23.

Setiawan, A., & Suryono, R. R. (2024). Analisis Sentimen IKN Menggunakan SVM dan Naïve Bayes. Edumatic, 8(1), 183–192. doi: 10.29408/edumatic.v8i1.25667.

Setiawan, A., Febrio, R. W., Purnama, M. A., & Efrizoni, L. (2024). Komparasi algoritma KNN, SVM, dan Decision Tree ... Jurnal Informatika & Rekayasa Elektronika, 7(1), 107–114. doi: https://doi.org/10.36595/jire.v7i1.1161.

Umam, F., Haryoko, A., & Ulum, M. (2024). Analisis Sentimen Pengguna Twitter Terhadap Mata Uang Kripto ... doi: https://doi.org/10.55719/curtina.v5i2.1649.

Wijiyanto, W., Pradana, A. I., Sopingi, S., & Atina, V. (2024). Teknik K-Fold Cross Validation untuk Mengevaluasi Kinerja Mahasiswa. Jurnal Algoritma, 21(1), 239–248. doi: 10.33364/algoritma/v.21-1.1618.

Downloads

Published

2025-12-31

Article ID

38254

How to Cite

Arsi, P., Subarkah, P., & Aji, R. P. (2025). Public Sentiment Classification of Danantara in Social Media X Using Support Vector Machine and Random Forest. Edu Komputika Journal, 12(2), 194-201. https://doi.org/10.15294/edukom.v12i2.38254