Sentiment Analysis of the National Capital Relocation to IKN Using TF-IDF and Logistic Regression
DOI:
https://doi.org/10.58982/yhck9073Keywords:
Sentiment Analysis, TF-IDF, Logistic Regression, Emolex;Abstract
The relocation of the national capital from Jakarta to East Kalimantan has sparked various reactions from the public, many of which have been expressed through social media platforms such as YouTube. This study aims to analyze public responses from the perspective of sentiment and emotion toward the policy. The methodology employed involves keyword weighting using TF-IDF and Logistic Regression techniques. The data was then processed through preprocessing stages and labeled using the EmoLex Dictionary. Out of a total of 5,835 comments analyzed, the results showed that 2,180 comments (37.4%) were neutral in sentiment, followed by 2,077 comments (35.6%) with positive sentiment and 1,578 comments (27.0%) containing negative sentiment. In emotion classification, anger was the most dominant emotion, with 2,525 comments (43.3%), followed by trust with 897 comments (15.4%), anticipation with 750 comments (12.9%), and other emotions, such as disgust, neutral, sadness, fear, joy, and surprise, with smaller proportions. The results of the model performance evaluation for sentiment classification showed an accuracy of 93,9%, a precision of 94,6%, a recall of 93,0%, and an F1-score of 93,5%.
References
[1] S. J. Purnama and Chotib, “Analisis Kelayakan Pendirian Usaha Pengolahan Limbah Medis untuk Meningkatkan Pendapatan Asli Daerah,” J. Ekon. dan Kebijak. Publik, vol. 13, no. 1, pp. 57–70, 2022, doi: 10.22212/jekp.v13i1.2155.
[2] D. Duei Putri, G. F. Nama, and W. E. Sulistiono, “Analisis Sentimen Kinerja Dewan Perwakilan Rakyat (DPR) Pada Twitter Menggunakan Metode Naive Bayes Classifier,” J. Inform. Dan Tek. Elektro Terap., vol. 10, no. 1, pp. 34–40, 2022, doi: 10.23960/jitet.v10i1.2262.
[3] M. Sabiq, S. To Anwar, S. Muhammad, Hasbi, and Arisnawawi, “Perubahan Sosial Masyarakat Pedalaman (Studi Masyarakat Adat Kalimantan Timur Pada Proses Pemindahan Ibu Kota Negara),” in Konferensi Nasional Sosiologi IX APSSI 2022 Balikpapan, 2022, pp. 1–3. [Online]. Available: https://pkns.portalapssi.id/index.php/pkns/article/view/17
[4] G. Darmawan, S. Alam, and M. I. Sulistyo, “Analisis Sentimen Berdasarkan Ulasan Pengguna Aplikasi Mypertamina Pada Google Playstore Menggunakan Metode Naïve Bayes,” STORAGE – J. Ilm. Tek. Dan Ilmu Komput., vol. 2, no. 3, pp. 100–108, 2023.
[5] Mahpudoh and D. Romdhoningsih, “Pemanfaatan Sosial Media YouTube Sebagai Media Pembelajaran Bahasa Indonesia di Perguruan Tinggi,” J. Kiprah Pendidik., vol. 9, no. 2, pp. 109–114, 2024.
[6] A. P. Giovani, A. Ardiansyah, T. Haryanti, L. Kurniawati, and W. Gata, “Analisis Sentimen Aplikasi Ruang Guru Di Twitter Menggunakan Algoritma Klasifikasi,” J. Teknoinfo, vol. 14, no. 2, p. 115, 2020, doi: 10.33365/jti.v14i2.679.
[7] J. P. Suharsono and D. Nurahman, “Pemanfaatan Youtube Sebagai Media Peningkatan Pelayanan Dan Informasi,” Ganaya J. Ilmu Sos. Dan Hum., vol. 7, no. 1, pp. 298–304, 2024, doi: 10.37329/ganaya.v7i1.3157.
[8] G. H. A. H. Noer, “Implementasi Algoritma Naive Bayes dan TF-IDF dalam Analisis Sentimen Data Ulasan (Studi Kasus: Ulasan Review Aplikasi E-Commerce Shopee Di Situs Google Playstore),” 2024.
[9] R. A. Supono and M. A. Suprayogi, “Perbandingan Metode TF-ABS dan TF-IDF Pada Klasifikasi Teks Helpdesk Menggunakan K-Nearest Neighbor,” J. RESTI (Rekayasa Sist. Dan Teknol. Informasi), vol. 5, no. 5, pp. 911–918, 2021, doi: 10.29207/resti.v5i5.3403.
[10] S. A. Assaidi and F. Amin, “Analisis Sentimen Evaluasi Pembelajaran Tatap Muka 100 Persen pada Pengguna Twitter menggunakan Metode Logistic Regression,” J. Pendidik. Tambusai, vol. 6, no. 2, pp. 13217–13227, 2022.
[11] B. Ramadhani and R. R. Suryono, “Komparasi Algoritma Naïve Bayes dan Logistic Regression Untuk Analisis Sentimen Metaverse,” J. Media Inform. Budidarma, vol. 8, no. 2, p. 714, 2024, doi: 10.30865/mib.v8i2.7458.
[12] A. G. Budianto, R. Rusilawati, A. T. E. Suryo, G. R. Cahyono, A. F. Zulkarnain, and M. Martunus, “Perbandingan Performa Algoritma Support Vector Machine (SVM) dan Logistic Regression untuk Analisis Sentimen Pengguna Aplikasi Retail di Android,” J. Sains Dan Inform., vol. 10, no. 2, pp. 1–10, 2024, doi: 10.34128/jsi.v10i2.911.
[13] A. Siti, A. N. Aditya, S. Ahmad, and R. Farida, “Analisis Dampak Dan Resira Terhadap Ekonomi Di Indonesia,” J. Ekon., vol. 2, no. 2, pp. 10–18, 2023.
[14] I. Irwansyah, D. Daryono, and I. J. Mangele, “Dampak Pemindahan Ibukota Ke Kalimantan Timur : Perspektif Democracy Civil Society,” Innov. J. Soc. Sci. Res., vol. 4, no. 3, pp. 6681–6691, 2024.
[15] M. R. S. Alfarizi, M. Al-farish, M. Z. Taufiqurrahman, G. Ardiansah, and M. Elgar, “Penggunaan Python Sebagai Bahasa Pemrograman untuk Machine Learning dan Deep Learning,” Karya Ilm. Mhs. Bertauhid (KARIMAH TAUHID), vol. 2, no. 1, pp. 1–6, 2023.
[16] J. E. Widyaya and S. Budi, “The Effect of Preprocessing on the Classification of Diabetic Retinopathy with the Transfer Learning Convolutional Neural Network Approach,” J. Tek. Inform. Dan Sist. Inf., vol. 7, no. 1, pp. 110–124, 2021.
[17] M. Cindo and D. P. Rini, “Literatur Review: Metode Klasifikasi Pada Sentimen Analisis,” in Seminar Nasional Teknologi Komputer & Sains (SAINTEKS), 2019, pp. 66–70. [Online]. Available: https://seminar-id.com/semnas-sainteks2019.html
[18] A. K. N. Bany, “Analisis Sentimen dan Deteksi Emosi dengan Pendekatan Lexicon pada Judul Berita Media Online Mengenai COVID-19 di Indonesia,” 2022.
[19] K. Septiani, “Perbandingan Analisis Sentimen Terhadap Pembayaran Digital ‘ Go - Pay ’ Dan ‘ Ovo ’ Di Media Sosial Twitter Menggunakan Metode Naive Bayes Dan Word Cloud,” J. Sos. dan Teknol., vol. 2, no. 10, pp. 1–10, 2022.
[20] P. S. Hasugian and J. R. Sagala, “Penerapan Data Mining Untuk Pengelompokan Siswa Berdasarkan Nilai Akademik dengan Algoritma K-Means,” KLIK Kaji. Ilm. Inform. Dan Komput., vol. 3, no. 3, pp. 262–268, 2022, [Online]. Available: https://djournals.com/klik
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Ni Wayan Jeri Kusuma Dewi, Indra Pratistha, Tasya Alifah, Ni Komang Sri Wahyuni

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





















