Post-Election Sentiment Analysis 2024 via Twitter (X) Using the Naive Bayes Classifier Algorithm

  • Yessi Mayasari Universitas Islam Negeri Sumatera Utara
  • Yusuf Ramadhan Nasution Universitas Islam Negeri Sumatera Utara
Keywords: Sentiment Analysis, Naïve Bayes Classifier, Political Elections, Twitter Data Analysis

Abstract

This study examines sentiment related to the topic of Twitter after the 2024 election, where the topic focused on the 2024 presidential election. Where there are a lot of public opinions and comments after the 2024 presidential election. One of them is the phenomenon when Anies-Muhaimin and Ganjar-Mahfud filed a lawsuit with the Constitutional Court (MK) to appeal over suspicions of fraud over the victory of the elected pair Prabowo-Gibran. By applying the Naïve Bayes Classifier algorithm to analyze public sentiment. Through data crawling, preprocessing, feature extraction, and sentiment classification, the study identified the dominant sentiment and its intensity among social media users. This methodology utilizes quantitative data analysis, using Twitter data linked to specific election-related hashtags. The findings reveal a mix of negative and positive sentiments, reflecting diverse public opinion about election results and related political developments. The accuracy of Naïve Bayes Classifier is highlighted, demonstrating its effectiveness in sentiment classification in the context of social media. This research contributes to understanding public sentiment in the political realm and improving methodological approaches in sentiment analysis using machine learning.

Published
2024-08-10
Section
Articles