Penerapan Data Mining Untuk Analisis Sentimen Masyarakat Terhadap Ibu Kota Nusantara Pada Media Sosial X
Abstract
The policy of relocating the National Capital City to Nusantara (IKN) has become a viral and hotly debated issue in Indonesia, triggering diverse public reactions ranging from support to opposition. To understand the dynamics of this public sentiment, this research analyzed user responses from the social media platform X. A total of 1000 tweet data were collected, equally divided into 500 tweets before and 500 tweets after Indonesia's 2024 Independence Day ceremony. These tweet data were then manually labeled and classified for sentiment analysis using Naive Bayes and Random Forest data mining algorithms, with the SMOTE technique applied to address data class imbalance. The analysis results showed that before the Independence Day ceremony, sentiment towards the National Capital City to Nusantara (IKN) was dominated by 44% negative tweets (219 data points), followed by 30% positive (151 data points), and 26% neutral (130 data points). Post-ceremony, negative sentiment significantly increased to 50% (252 data points), while positive sentiment slightly rose to 33% (165 data points), and neutral sentiment decreased to 17% (83 data points). In model performance evaluation, the Random Forest algorithm demonstrated higher classification accuracy compared to Naive Bayes. Nevertheless, the accuracy difference between the two algorithms was relatively small, indicating that both were quite effective for sentiment analysis on this research dataset. This study successfully presents a comprehensive overview of the dynamics and polarity of public opinion on social media X regarding the ongoing policy of relocating the National Capital City to Nusantara.
Downloads
References
D. Pramana, M. Afdal, M. Mustakim, and I. Permana, “Analisis Sentimen Terhadap Pemindahan Ibu Kota Negara Menggunakan Algoritma Naive Bayes Classifier dan K-Nearest Neightbors,” JURNAL MEDIA INFORMATIKA BUDIDARMA, vol. 7, no. 3, pp. 1306–1314, Jul. 2023, doi: 10.30865/mib.v7i3.6523.
T. C. Herdiyani and A. U. Zailani, “Sentiment Analysis Terkait Pemindahan Ibu Kota Indonesia Menggunakan Metode Random Forest Berdasarkan Tweet Warga Negara Indonesia,” Jurnal Teknologi Sistem Informasi, vol. 3, no. 2, pp. 154–165, Sep. 2022, doi: 10.35957/JTSI.V3I2.2920.
R. Y. Liemawan, “Pengembangan Aplikasi Analisis Sentimen Terhadap Rencana Pemindahan Ibu Kota Negara Republik Indonesia,” KALBISIANA Jurnal Sains, Bisnis dan Teknologi, vol. 9, no. 2, pp. 455–461, Jul. 2023, Accessed: Feb. 18, 2024. [Online]. Available: http://ojs.kalbis.ac.id/index.php/kalbisiana/article/view/755
R. K. Septiani, S. Anggraeni, and S. D. Saraswati, “Klasifikasi Sentimen Terhadap Ibu Kota Nusantara (IKN) pada Media Sosial Menggunakan Naive Bayes,” TEKNIKA: Jurnal Ilmiah Bidang Ilmu Rekayasa, vol. 16, no. 2, pp. 245–254, Sep. 2022, doi: 10.5281/ZENODO.7535887.
A. Wahyu and A. Frinaldi, “Analisa Dampak Lingkungan Ibu Kota Nusantara,” Jurnal Kajian Hukum Dan Kebijakan Publik, vol. 1, no. 2, pp. 29–33, Jan. 2024, doi: 10.62379/JKHKP/V1I2.97.
S. Aripiyanto, T. Tukino, A. Sufyan, and R. Nandaputra, “Sentimen Analisis Twitter Ibu Kota Negara Nusantara Menggunakan Long Short-Term Memory dan Lexicon Based,” EXPERT: Jurnal Manajemen Sistem Informasi dan Teknologi, vol. 12, no. 2, pp. 119–125, Dec. 2022, doi: 10.36448/expert.v12i2.2821.
K. lubis, T. Ari Bangsa, and A. Yudertha, “Analisis Sentimen Opinimasyarakat Terhadap Pindahnya Ibu Kota Indonesia Dengan Menggunakan Klasifikasi Naïve Bayes,” Jurnal Teknoinfo, vol. 18, no. 1, pp. 226–238, Jan. 2024, Accessed: Feb. 18, 2024. [Online]. Available: https://ejurnal.teknokrat.ac.id/index.php/teknoinfo/article/view/3708
Y. Cahyana and A. Mutoi Siregar, “Analisis Sentimen Pindah Ibu Kota Negara (IKN) Baru pada Twitter Menggunakan Algoritma Naive Bayes dan Support Vector Machine (SVM),” Faktor Exacta, vol. 16, no. 3, pp. 1979–276, Oct. 2023, doi: 10.30998/faktorexacta.v16i3.16703.
E. R. Indriyani, Paradise, and M. Wibowo, “Perbandingan Metode Naïve Bayes dan Support Vector Machine Untuk Analisis Sentimen Terhadap Vaksin Astrazeneca di Twitter,” JURNAL MEDIA INFORMATIKA BUDIDARMA, vol. 6, no. 3, pp. 1545–1553, Jul. 2022, doi: 10.30865/mib.v6i3.4220.
D. Aryanti, “Analisis Sentimen Ibukota Negara Baru Menggunakan Metode Naïve Bayes Classifier,” Journal of Information System Research (JOSH), vol. 3, no. 4, pp. 524–531, Jul. 2022, doi: 10.47065/JOSH.V3I4.1944.
A. Susanto and I. Agung Dzulkarnain, “Analisis Sentimen Data Twitter Topik Ekonomi Dan Industri Dengan Metode Naive Bayes Dan Random Forest,” Jurnal Ilmiah Wahana Pendidikan, vol. 9, no. 20, pp. 59–65, Oct. 2023, doi: 10.5281/ZENODO.8398895.
D. J. Putnarubun, “Penerapan Metode Machine Learning-Naive Bayes Pada Analisis Sentimen Pemindahan Ibu Kota Negara Baru,” PARAMETER: Jurnal Matematika, Statistika dan Terapannya, vol. 2, no. 01, pp. 87–95, 2023.
S. Dwi, Prasetyo, S. Shofiah Hilabi, and F. Nurapriani, “Analisis Sentimen Relokasi Ibukota Nusantara Menggunakan Algoritma Naïve Bayes dan KNN,” Jurnal KomtekInfo, vol. 10, no. 1, pp. 1–7, Jan. 2023, doi: 10.35134/KOMTEKINFO.V10I1.330.
D. Pramudita, Y. Akbar, and T. Wahyudi, “Analisis Sentimen Terhadap Program Kartu Indonesia Pintar Kuliah pada Media Sosial X Menggunakan Algoritma Naive Bayes,” MALCOM: Indonesian Journal of Machine Learning and Computer Science, vol. 4, no. 4, pp. 1420–1430, Aug. 2024, doi: 10.57152/MALCOM.V4I4.1565.
E. Fitri, Y. Yuliani, S. Rosyida, and W. Gata, “Analisis Sentimen Terhadap Aplikasi Ruangguru Menggunakan Algoritma Naive Bayes, Random Forest Dan Support Vector Machine,” Jurnal Transformatika, vol. 18, no. 1, pp. 71–80, Jul. 2020, doi: 10.26623/TRANSFORMATIKA.V18I1.2317.
H. Dhery, A. Assyam, and F. N. Hasan, “Analisis Sentimen Twitter Terhadap Perpindahan Ibu Kota Negara Ke IKN Nusantara Menggunakan Orange Data Mining,” KLIK: Kajian Ilmiah Informatika dan Komputer, vol. 4, no. 1, pp. 341–349, Aug. 2023, doi: 10.30865/KLIK.V4I1.957.
R. Sabian, “TA : Analisis Sentimen Publik terhadap Bjorka dalam Insiden Kebocoran Data KOMINFO menggunakan Algoritma Support Vector Machine,” Skripsi, Universitas Dinamika, Surabaya, 2023. Accessed: Jun. 27, 2024. [Online]. Available: http://repository.dinamika.ac.id/id/eprint/6945
Z. Cindy Dwinnie and R. Novita, “Penerapan Machine Learning Pada Analisis Sentimen Twitter Sebelum Dan Sesudah Debat Calon Presiden Dan Wakil Presiden Tahun 2024 Tugas Akhir,” JURNAL MEDIA INFORMATIKA BUDIDARMA, vol. 8, no. 2, pp. 758–767, 2024, doi: https://doi.org/10.30865/mib.v8i2.7504.
M. Y. Aldean, P. Paradise, and N. A. S. Nugraha, “Analisis Sentimen Masyarakat Terhadap Vaksinasi Covid-19 di Twitter Menggunakan Metode Random Forest Classifier (Studi Kasus: Vaksin Sinovac),” Journal of Informatics Information System Software Engineering and Applications (INISTA), vol. 4, no. 2, pp. 64–72, 2022.
M. Persada Pulungan, A. Purnomo, and A. Kurniasih, “Penerapan SMOTE untuk Mengatasi Imbalance Class dalam Klasifikasi Kepribadian MBTI Menggunakan Naive Bayes Classifier,” Jurnal Teknologi Informasi dan Ilmu Komputer, vol. 11, no. 5, pp. 1033–1042, Oct. 2024, doi: 10.25126/JTIIK.1077989.
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Penerapan Data Mining Untuk Analisis Sentimen Masyarakat Terhadap Ibu Kota Nusantara Pada Media Sosial X
Pages: 421-430
Copyright (c) 2025 Rival Valentino Rayean, M Afdal, Inggih Permana, Nesdi Evrilyan Rozanda

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under Creative Commons Attribution 4.0 International License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (Refer to The Effect of Open Access).





















