Application of Naive Bayes Classifier Method to Analyze Social Media User Sentiment Towards the Presidential Election Phase

  • Dharta F
  • Januar Mahardhani A
  • Rachmawati Yahya S
  • et al.
N/ACitations
Citations of this article
13Readers
Mendeley users who have this article in their library.

Abstract

This research aims to analyze the sentiment of social media users towards the election. The author collected data in this research through a literature study and observation. The author uses a classification method with the Naïve Bayes Classifier Algorithm and Support Vector Machine to analyze sentiment results. Next, this research extracts word assessment features using TextBlob, which changes text into positive or negative classes. Based on the research results, after going through the text preprocessing stage of more than 15,000 tweets, 11,000 clean tweets were obtained, which were then labelled using the text blob library in Python. The labelling results show that 4,000 tweets are positive, and the rest are harmful, indicating that most social media users' sentiment towards the election is positive. Words that often appear in the positive class express support and confidence in implementing elections that are considered honest and fair. On the other hand, words in the negative class reflect negative sentiment towards implementing elections, which are considered unsuccessful and time-consuming. The Naïve Bayes method provides accuracy, precision, and recall values of 85%, 80%, and 75%. In the Support Vector Machine method, testing is carried out with three kernels (linear, RBF, and poly), where the poly kernel with the best parameter values C is ten and degree is 1 produces the highest accuracy, precision, and recall of 90%, 90%, and 85%, respectively.

Cite

CITATION STYLE

APA

Dharta, F. Y., Januar Mahardhani, A., Rachmawati Yahya, S., Dirsa, A., & M. Usulu, E. (2024). Application of Naive Bayes Classifier Method to Analyze Social Media User Sentiment Towards the Presidential Election Phase. Jurnal Informasi Dan Teknologi, 176–181. https://doi.org/10.60083/jidt.v6i1.494

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free