This Author published in this journals
All Journal Jurnal Ilmu Komputer
Claim Missing Document
Check
Articles

Found 1 Documents
Search
Journal : Jurnal Ilmu Komputer

Analisis Sentimen Opini Masyarakat Terhadap Pemilu 2024 Melalui Media Sosial X Dengan Menggunakan Naive Bayes, K-Nearest Neighbor Dan Decision Tree Cut Shifa Khoirunnisa; Tukiyat; Sajarwo Anggai
Jurnal Ilmu Komputer Vol 2 No 2 (2024): Jurnal Ilmu Komputer (Edisi Desember 2024)
Publisher : Universitas Pamulang

Show Abstract | Download Original | Original Source | Check in Google Scholar

Abstract

This study aims to analyze public opinion sentiment towards the 2024 election using three machine learning classification algorithms: Naïve Bayes, K-Nearest Neighbors and Decision Tree. The data used in this study were taken from Social Media X, which is one of the social media platforms with a large and diverse data volume. The object of this study is public opinion expressed on Social Media X, with the subject of research in the form of tweets taken using the Twitter API, resulting in 5000 data with 2469 clean data. Data analysis involves text extraction and preprocessing processes that include data cleaning, tokenization, stopwords and stemming. The results of the study show the distribution of sentiment as follows: positive sentiment dominates with 96% of the total tweets, followed by neutral sentiment at 2% and negative sentiment at 1%. From the modeling results among the algorithms tested, K-Nearest Neighbors showed the best performance with an accuracy value reaching 97.50%, followed by Decision Tree having a performance with an accuracy value of 97.25% while Naïve Bayes had the lowest performance with an accuracy value of 96.14%. Although there is variation in performance among the algorithms used, none of them are completely consistent in classifying sentiment. This study makes a significant contribution in mapping public sentiment related to the 2024 election in Indonesia through data analysis from social media X, and provides insight into the effectiveness of various Data Mining Algorithms in sentiment analysis.