Sentiment Analysis of Public Opinion on the 2024 Presidential Election in Indonesia Using Twitter Data with the K-NN Method

Authors

  • Karno Diantoro Mercusuar College of Management and Informatics (STMIK Mercusuar)
  • Ahmad Soderi Mercusuar College of Management and Informatics (STMIK Mercusuar)
  • Abdur Rohman Mercusuar College of Management and Informatics (STMIK Mercusuar)
  • Anwar T. Sitorus Mercusuar College of Management and Informatics (STMIK Mercusuar)

DOI:

https://doi.org/10.61978/digitus.v1i1.27

Keywords:

K-NN, Election, Sentiment Analyst, Twitter

Abstract

Twitter is often used by the public as a platform to speak and express their opinions, especially in the context of the 2024 Presidential Election. Tweets related to the '2024 Presidential Election' can be used as a source of data for social media analysis to determine whether the expressed opinions tend to be positive or negative. The research process involves data collection of tweets, preprocessing, tokenization, class attribute determination, directory filling, sentiment analysis, and classification steps, including testing the value of k and testing the confusion matrix. The research and testing results show that the K-NN method successfully achieves a sentiment classification accuracy rate of 86.48%.

Downloads

Published

2023-10-13

How to Cite

Diantoro, K., Soderi, A., Rohman, A., & Sitorus, A. T. (2023). Sentiment Analysis of Public Opinion on the 2024 Presidential Election in Indonesia Using Twitter Data with the K-NN Method. Digitus : Journal of Computer Science Applications, 1(1), 1–10. https://doi.org/10.61978/digitus.v1i1.27

Issue

Section

Articles