Analisa Sentimen terhadap Twitter Pemilu 2024 menggunakan Perbandingan Algoritma Naïve Baiyes
DOI:
https://doi.org/10.58776/jriti.v2i3.157Kata Kunci:
sentiment analysis, twitter, pemilu 2024, naïve bayesAbstrak
In the digital era, sentiment analysis has become essential for understanding public opinion on various issues, including general elections. In the context of the 2024 General Election (Pemilu), this study aims to analyze sentiments expressed on the Twitter platform regarding the event. A primary classification algorithm, Naïve Bayes, was used to classify sentiments into positive, negative, and neutral categories and compare its performance. Twitter data was collected using a crawling technique during the 2024 election campaign period and used as the dataset. The data was then processed to remove noise and underwent text preprocessing, including tokenization, stemming, and stop word removal. Subsequently, the Naïve Bayes algorithm was applied to classify the sentiment of the collected tweets. Naïve Bayes, with its probabilistic approach and feature independence assumption, offers a fast and straightforward solution for classification tasks. The analysis results show that the algorithm was able to classify sentiments effectively. In tests using a separate test set, Naïve Bayes achieved an accuracy of approximately 82%. However, this algorithm has strengths and weaknesses that must be considered in the context of sentiment analysis on Twitter related to the 2024 election. For example, Naïve Bayes is more efficient in terms of time and resources. The study concludes that although Naïve Bayes produced accurate results, selecting the best algorithm depends on specific analysis needs, such as processing speed and resource availability. Further research is recommended to explore hybrid methods and deep learning techniques to enhance the accuracy and efficiency of sentiment analysis on social media platforms. The processed data consisted of 1,500 tweets. This study shows that the classification of Twitter data using the Naïve Bayes algorithm achieved an accuracy of 80%.
Referensi
L. D. Mahbubah and E. Zuliarso, ““Analisa Sentimen Twitter Pada Pilpres 2019 Menggunakan Algoritma Naive Bayes,” Sintak, 2019.
R. T. R. Rian Damara, “Analisa Sentimen Terhadap Twitter Pemilu 2024 Menggunakan Perbandingan Algoritma Naïve Baiyes,” 2024.
D. A. Kristiyanti, A. H. Umam, M. Wahyudi, R. Amin, and L. Marlinda, “Comparison of SVM & Naïve Bayes Algorithm for Sentiment Analysis Toward West Java Governor Candidate Period 2018-2023 Based on Public Opinion on Twitter,” in 2018 6th International Conference on Cyber and IT Service Management (CITSM), IEEE, Aug. 2018, pp. 1–6. doi: 10.1109/CITSM.2018.8674352.
S. I. H. H. and S. A. J. Nasional, “Pebandingan Metode Decision Tree dan XGBoost untuk Klasifikasi Sentimen Vaksin Covid-19 di Twitter,” vol. 03, pp. 107–114, 2022.
. Y.S. Nugroho and N. Emiliyawati, “Sistem klasi ikasi variabel tingkat penerimaan konsumen terhadap mobil menggunakan metode random forest,” Jurnal Teknik Elektro, vol. 9, no. 1, pp. 24–29, 2017.
A. Guterres, Gunawan, and J. Santoso, “Stemming Bahasa Tetun Menggunakan Pendekatan Rule Based,” Teknika, vol. 8, no. 2, pp. 142–147, Oct. 2019, doi: 10.34148/teknika.v8i2.224.
R. Y. H. and S. N. M. R. Sari, “Penerapan Algoritma Naive Bayes Untuk Analisis Sentimen Pada Wisata TMII Berbasis Website,” IJSE-Indonesian Journal on Software Engineering, vol. 5, no. 2, pp. 51–60, 2016.
H. Nalatissifa, W. Gata, S. Diantika, and K. Nisa, “Perbandingan Kinerja Algoritma Klasifikasi Naive Bayes, Support Vector Machine (SVM), dan Random Forest untuk Prediksi Ketidakhadiran di Tempat Kerja,” Jurnal Informatika Universitas Pamulang, vol. 5, no. 4, p. 578, Dec. 2021, doi: 10.32493/informatika.v5i4.7575.
R. G. and S. P. J. Nata Permana, “Comparison Of C4.5 Algorithm and Naïve Bayes for Prediction Of Student Study Timeliness (Case Study: Departement of Statistics Mulawarman University),” “Comparison Of C4.5 Algorithm and Naïve B EKSPONENSIAL, vol. 13, no. 2, pp. 161–170ayes for Prediction Of Student Study Timeliness (Case Study: Departement of Statistics Mulawarman University), 2022.
J. Elektronik et al, “Implementasi Algoritma Naive Bayes Classifier (NBC) Dan Information Gain Untuk Mendeteksi DDoS,” vol. 11, no. 2, pp. 273–282, 2022.
E. Widya Ningsih, “Penerapan Algoritma Naïve Bayes Dalam Penentuan Kelayakan Penerima Kartu Jakarta Pintar Plus,” 2019.
Unduhan
Diterbitkan
Cara Mengutip
Terbitan
Bagian
Lisensi
Hak Cipta (c) 2025 reyhan tri rahmaddyan, Rian, Ajif

Artikel ini berlisensiCreative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.






