Analisis Sentimen Polemik Kebijakan Pemerintah Makan Siang Gratis pada Twitter Menggunakan Metode Neural Network Classification
DOI:
https://doi.org/10.62951/modem.v4i3.924Keywords:
Neural Networks, Random Over Sampling, Sentiment Analysis, Social Media X, TF-IDFAbstract
This study aims to investigate public sentiment toward the Indonesian government's free lunch program by analyzing discussions on the X social media platform. A total of 1,500 tweets were collected through a web scraping process using relevant keywords and hashtags. The research workflow consisted of text preprocessing, including data cleaning, case folding, tokenization, stop-word removal, and stemming. The processed text was then transformed into numerical features using the Term Frequency–Inverse Document Frequency (TF-IDF) weighting method, followed by sentiment classification using the Neural Network Classification algorithm. Model performance was evaluated through K-Fold Cross Validation and a Confusion Matrix based on accuracy, precision, recall, and F1-score metrics. To address the issue of class imbalance, Random Over Sampling (ROS) was applied before the classification stage. The experimental results indicate that incorporating ROS improved the classification performance compared with the model trained on the original imbalanced dataset. Furthermore, the Neural Network Classification model effectively categorized public opinions into positive, negative, and neutral sentiments. The findings of this study are expected to provide valuable insights for policymakers in understanding public perceptions of the free lunch program and supporting future policy evaluation.
Downloads
References
Dwijayanti, A. (2024). Policy Spillover: Analisis Jaringan Dampak Kebijakan Makan Siang Bergizi Gratis terhadap Sektor Pertanian. Jurnal Administrasi Publik, 20(2), 281–308. https://doi.org/10.52316/jap.v20i2.435
Farid, M., #1, N., Ferdiana Kusuma, S., Ngagel, J., & Selatan, J. (2022). JEPIN (Jurnal Edukasi dan Penelitian Informatika) Analisis Sentimen pada Media Sosial Twitter Terhadap Kebijakan Pemberlakuan Pembatasan Kegiatan Masyarakat Berbasis Deep Learning.
Fauziyyah, A. K. (2020). Analisis Sentimen Pandemi Covid19 Pada Streaming Twitter Dengan Text Mining Python. Jurnal Ilmiah SINUS, 18(2), 31. https://doi.org/10.30646/sinus.v18i2.491
Iswantoro, D., & Handayani UN, D. (2022). Klasifikasi Penyakit Tanaman Jagung Menggunakan Metode Convolutional Neural Network (CNN). Jurnal Ilmiah Universitas Batanghari Jambi, 22(2), 900. https://doi.org/10.33087/jiubj.v22i2.2065
Kearney, M. (2019). rtweet: Collecting and analyzing Twitter data. Journal of Open Source Software, 4(42), 1829. https://doi.org/10.21105/joss.01829
Listyarini, S. N., & Anggoro, D. A. (2021). Analisis Sentimen Pilkada di Tengah Pandemi Covid-19 Menggunakan Convolution Neural Network (CNN). Jurnal Pendidikan Dan Teknologi Indonesia, 1(7), 261–268. https://doi.org/10.52436/1.jpti.60
Machine Learning and Computer Science, 4(1), 78–84. https://doi.org/10.57152/malcom.v4i1.1018
Merinda Lestandy, Abdurrahim Abdurrahim, & Lailis Syafa’ah. (2021). Analisis Sentimen Tweet Vaksin COVID-19 Menggunakan Recurrent Neural Network dan Naïve Bayes. Jurnal RESTI (Rekayasa Sistem Dan Teknologi Informasi), 5(4), 802–808. https://doi.org/10.29207/resti.v5i4.3308
Muzaki, A., & Witanti, A. (2021). Sentiment Analysis Of The Community In The Twitter To The 2020 Election In Pandemic Covid-19 By Method Naive Bayes Classifier. Jurnal Teknik Informatika (Jutif), 2(2), 101–107. https://doi.org/10.20884/1.jutif.2021.2.2.51
Nisa, C., & Candra, F. (2023). Klasifikasi Jenis Rempah-Rempah Menggunakan Algoritma Convolutional Neural Network. MALCOM: Indonesian Journal of Machine Learning and Computer Science, 4(1), 78–84. https://doi.org/10.57152/malcom.v4i1.1018
Noor, I. M., & Turan, M. (2020). Sentiment Analysis on New Currency in Kenya using Twitter Dataset. IJID (International Journal on Informatics for Development), 8(2), 81. https://doi.org/10.14421/ijid.2019.08206
Noor, I. M., & Turan, M. (2020). Sentiment Analysis on New Currency in Kenya using Twitter Dataset. IJID (International Journal on Informatics for Development), 8(2), 81. https://doi.org/10.14421/ijid.2019.08206
Nooraeni, R., Safiruddin, A. B., Afifah, A. F., Agung, K. D., & Rosyad, N. N. (2020). Analisis Sentimen Publik terhadap Sistem Zonasi Sekolah Menggunakan Data Twitter dengan Metode Naïve Bayes Classification. Faktor Exacta, 12(4), 315. https://doi.org/10.30998/faktorexacta.v12i4.5205
Nooraeni, R., Safiruddin, A. B., Afifah, A. F., Agung, K. D., & Rosyad, N. N. (2020). Analisis Sentimen Publik terhadap Sistem Zonasi Sekolah Menggunakan Data Twitter dengan Metode Naïve Bayes Classification. Faktor Exacta, 12(4), 315. https://doi.org/10.30998/faktorexacta.v12i4.5205
Program, T., Siang, M., Tundo, G., & Rachmawati, D. N. (2024). Implementasi Algoritma Naive Bayes untuk Analisis Sentimen. In Jurnal Indonesia : Manajemen Informatika dan Komunikasi (JIMIK) (Vol. 5, Issue 3). https://journal.stmiki.ac.id
Qaiser, S., & Ali, R. (2018). Text Mining: Use of TF-IDF to Examine the Relevance of Words to Documents. International Journal of Computer Applications, 181(1), 25–29. https://doi.org/10.5120/ijca2018917395
Safruddin, A., Hermawan, A., & Wibowo, A. P. (2020). Implementation Of BackPropagation Nueral Network In Sentiment Analisys On Twitter To Public Figures. Compiler, 9(2), 101. https://doi.org/10.28989/compiler.v9i2.834
Saiful Anwar, M. (2019). Prosiding Konferensi Ilmiah Mahasiswa Unissula (Kimu) 2 Sistem Pencarian E-Journal Menggunakan Metode Stopword Removal Dan Steming Berbasis Android.
Sitanggang, A., Umaidah, Y., Umaidah, Y., Adam, R. I., & Adam, R. I. (2024). Analysis Sentiment Masyarakat Terahdap Program Makan Siang Gratis Pada Media Sosial X Menggunakan Algoritma Naive Bayes. Jurnal Informatika Dan Teknik Elektro Terapan, 12(3). https://doi.org/10.23960/jitet.v12i3.4902
Sujadi, H. (2022). Analysis Sentimen Pengguna Media Sosial Twitter Terhadap Wabah Covid-19 Dengan Metode Naive Bayes Classifier Dan Support Vektor Machine. Infotech Journal, 8(1), 22–27. https://doi.org/10.31949/infotech.v8i1.1883
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Modem : Jurnal Informatika dan Sains Teknologi.

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



