Jurnal Ilmu Komputer
Vol 2 No 2 (2024): Jurnal Ilmu Komputer (Edisi Desember 2024)

Analisis Sentimen Opini Masyarakat Terhadap Pemilu 2024 Melalui Media Sosial X Dengan Menggunakan Naive Bayes, K-Nearest Neighbor Dan Decision Tree

Cut Shifa Khoirunnisa (Unknown)
Tukiyat (Unknown)
Sajarwo Anggai (Unknown)



Article Info

Publish Date
08 Jan 2025

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.

Copyrights © 2024






Journal Info

Abbrev

jikom

Publisher

Subject

Computer Science & IT Control & Systems Engineering Decision Sciences, Operations Research & Management

Description

Jurnal Ilmu Komputer merupakan jurnal ilmiah dalam bidang Ilmu Komputer, Informatika, IoT, Network Security dan Digital Forensics yang diterbitkan secara konsisten oleh Program Studi Teknik Informatika S-2, Program Pascasarjana, Universitas Pamulang, Indonesia. Tujuan penerbitannya adalah untuk ...