Best Algorithm in Sentiment Analysis of Presidential Election in Indonesia on Twitter

Authors

  • April Lia Hananto Faculty of Computer Science, Information System Study Program, Universitas Buana Perjuangan Karawang,
  • Aprilia Putri Nardilasari Faculty of Computer Science, Information System Study Program, Universitas Buana Perjuangan Karawang,
  • Ahmad Fauzi Faculty of Computer Science, Informatics Engineering Study Program, Universitas Buana Perjuangan Karawang
  • Agustia Hananto Faculty of Computer Science, Information System Study Program, Universitas Buana Perjuangan Karawang,
  • Bayu Priyatna Faculty of Computer Science, Informatics Engineering Study Program, Universitas Buana Perjuangan Karawang
  • Aviv Yuniar Rahman Faculty of Engineering, Informatics Engineering Study Program, Universitas Widyagama Malang

Keywords:

Capres, Pilpres, v, SVM, Naive Bayes, KNN

Abstract

The election of presidential candidates for 2024 is included in the democratic process to elect the president and vice president for the period 2024-2029. In this case, there are already names of presidential candidates who have been nominated and many survey institutions have published survey results on several candidates who are eligible to become presidential candidates, based on this, not a few netizens have expressed their opinions that can be made regarding public sentiment. about the trend of presidential candidates which is currently being discussed on Twitter social media. In this study, public sentiment analysis was carried out on trends in presidential candidates by comparing three classification algorithms, namely support vector machine (SVM), K-Nearest Neighbor (K-NN) and Naïve Bayes (NB). Comparisons are made to find out which algorithm has better accuracy. This research is also expected to provide references and knowledge to the public about the trends of presidential candidates in the upcoming presidential election. The data taken are 9966 twitter data regarding presidential and presidential candidates as well as tweet data taken in the second week of 09-17 September 2022. The results of this test concluded that the SVM algorithm is superior to K-NN and Naïve Bayes which get an accuracy rate of 79.57%. The results of this study get the best and most effective algorithm in classifying positive and negative comments on the 2024 presidential candidate trend.

Downloads

Download data is not yet available.

References

S. Symeonidis, D. Effrosynidis, and A. Arampatzis, “A comparative evaluation of pre-processing techniques and their interactions for twitter sentiment analysis,” Expert Syst. Appl., vol. 110, pp. 298–310, Nov. 2018, doi: 10.1016/j.eswa.2018.06.022.

A. Mittal and S. Patidar, “Sentiment analysis on twitter data: A survey,” ACM Int. Conf. Proceeding Ser., pp. 91–95, 2019, doi: 10.1145/3348445.3348466.

N. Naw, “Twitter Sentiment Analysis Using Support Vector Machine and K-NN Classifiers,” Int. J. Sci. Res. Publ., vol. 8, no. 10, 2018, doi: 10.29322/ijsrp.8.10.2018.p8252.

F. Firmansyah et al., “Comparing Sentiment Analysis of Indonesian Presidential Election 2019 with Support Vector Machine and K-Nearest Neighbor Algorithm,” in 2020 6th International Conference on Computing Engineering and Design (ICCED), Oct. 2020, pp. 1–6. doi: 10.1109/ICCED51276.2020.9415767.

A. Salma and W. Silfianti, “Sentiment Analysis of User Review on COVID-19 Information Applications Using Naïve Bayes Classifier, Support Vector Machine, and K-Nearest Neighbors,” Int. Res. J. Adv. Eng. Sci., vol. 6, no. 4, pp. 158–162, 2021.

A. Lia Hananto et al., “Analysis of Drug Data Mining with Clustering Technique Using K-Means Algorithm,” J. Phys. Conf. Ser., vol. 1908, no. 1, 2021, doi: 10.1088/1742-6596/1908/1/012024.

C. Steven and W. Wella, “The Right Sentiment Analysis Method of Indonesian Tourism in Social Media Twitter,” IJNMT (International J. New Media Technol., vol. 7, no. 2, pp. 102–110, 2020, doi: 10.31937/ijnmt.v7i2.1732.

M. I. Fikri, T. S. Sabrila, and Y. Azhar, “Perbandingan Metode Naïve Bayes dan Support Vector Machine pada Analisis Sentimen Twitter,” Smatika J., vol. 10, no. 02, pp. 71–76, 2020, doi: 10.32664/smatika.v10i02.455.

E. Widawati, I. Iskandar, and C. Budiono, “Kajian Potensi Pengolahan Sampah (Studi Kasus : Kampung Banjarsari ),” J. Metris, vol. 15, pp. 119–126, 2014.

A. Lia Hananto, B. Priyatna, A. Fauzi, A. Yuniar Rahman, Y. Pangestika, and Tukino, “Analysis of the Best Employee Selection Decision Support System Using Analytical Hierarchy Process (AHP),” J. Phys. Conf. Ser., vol. 1908, no. 1, 2021, doi: 10.1088/1742-6596/1908/1/012023.

Y. S. Mahardika and E. Zuliarso, “Analisis Sentimen Terhadap Pemerintahan Joko Widodo Pada Media Sosial Twitter Menggunakan Algoritma Naives Bayes,” Pros. SINTAK 2018, no. 2015, pp. 409–413, 2018.

A. L. Hananto, B. Priyatna, and A. Y. Rahman, “Penerapan Algoritma Djikstra Pada Sistem Monitoring Petugas Lapangan Pemkab Bekasi Berbasis Android,” JOINTECS (Journal Inf. Technol. Comput. Sci., vol. 4, no. 3, p. 95, 2019, doi: 10.31328/jointecs.v4i3.1078.

F. Fathonah and A. Herliana, “Penerapan Text Mining Analisis Sentimen Mengenai Vaksin Covid - 19 Menggunakan Metode Naïve Bayes,” J. Sains dan Inform., vol. 7, no. 2, pp. 155–164, 2021, doi: 10.34128/jsi.v7i2.331.

A. Gormantara, “Analisis Sentimen Terhadap New Normal Era di Indonesia pada Twitter Analisis Sentimen Terhadap New Normal Era di Indonesia pada Twitter Menggunakan Metode Support Vector Machine,” Konf. Nas. Ilmu Komput. 2020, no. July, pp. 1–5, 2020.

H. Nurrun Muchammad Shiddieqy, S. Paulus Insap, and W. Wing Wahyu, “Studi Literatur Tentang Perbandingan Metode Untuk Proses Analisis Sentimen Di Twitter,” Semin. Nas. Teknol. Inf. dan Komun., vol. 2016, no. March, pp. 57–64, 2016.

S. Chohan, A. Nugroho, A. M. B. Aji, and W. Gata, “Analisis Sentimen Pengguna Aplikasi Duolingo Menggunakan Metode Naïve Bayes dan Synthetic Minority Over Sampling Technique,” Paradig. - J. Komput. dan Inform., vol. 22, no. 2, pp. 139–144, 2020, doi: 10.31294/p.v22i2.8251.

A. Alwi, I. Iskandar, and D. Setyanto, “The Philosophy of Naive Bayes and its Comparison with the Tree Augmented Naive Bayes (TAN) in Making Predictions (Case Study Using Course Student Data),” Saudi J. Eng. Technol., vol. 7, no. 7, pp. 377–385, 2022, doi: 10.36348/sjet.2022.v07i07.005.

F. Sodik and I. Kharisudin, “Analisis Sentimen dengan SVM , NAIVE BAYES dan KNN untuk Studi Tanggapan Masyarakat Indonesia Terhadap Pandemi Covid-19 pada Media Sosial Twitter,” Prisma, vol. 4, pp. 628–634, 2021.

G. Nugroho, D. T. Murdiansyah, and K. M. Lhaksmana, “Analisis Sentimen Pemilihan Presiden Amerika 2020 di Twitter Menggunakan Naïve Bayes dan Support Vector Machine,” vol. 8, no. 5, pp. 10106–10115, 2021.

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.

Preparation for Crawling Data

Downloads

Published

17.05.2023

How to Cite

Hananto, A. L. ., Nardilasari, A. P. ., Fauzi, A. ., Hananto , A. ., Priyatna, B. ., & Rahman, A. Y. . (2023). Best Algorithm in Sentiment Analysis of Presidential Election in Indonesia on Twitter. International Journal of Intelligent Systems and Applications in Engineering, 11(6s), 473–481. Retrieved from https://ijisae.org/index.php/IJISAE/article/view/2872

Issue

Section

Research Article