Sistemasi: Jurnal Sistem Informasi
Vol 13, No 6 (2024): Sistemasi: Jurnal Sistem Informasi

Analysis of Public Sentiment on Election Results using Naïve Bayes in Social Media X

Ahmad Syakir Muliana (Universitas Sriwijaya)
Dinda Lestarini (Universitas Sriwijaya)
Sarifah Putri Raflesia (Universitas Sriwijaya)



Article Info

Publish Date
27 Nov 2024

Abstract

The objective of the research is to examine the public opinion regarding the 2024 Indonesian election results by applying Naïve Bayes to social media data obtained from platform X of Twitter. A dataset comprising 2,500 election-related tweets was obtained by web scraping and then subjected to tokenization, stopword elimination, stemming, and TF-IDF weighting for preprocessing. The application of the Synthetic Minority Oversampling Technique (SMOTE) was attempted to mitigate class imbalance. The performance of the Naïve Bayes model was assessed using Stratified K-Fold Cross-Validation. The model achieved an average accuracy of 66.90% on the test set and 80% during cross-validation. The results demonstrate successful categorization of positive sentiment, although the model encountered difficulties in precisely detection of negative and neutral sentiments. The results underscore significant consequences for policymakers and political parties in formulating effective communication strategies. Further study is advised to investigate sophisticated algorithms to improve the accuracy of sentiment classification, namely in detecting neutral sentiments.

Copyrights © 2024






Journal Info

Abbrev

stmsi

Publisher

Subject

Computer Science & IT Electrical & Electronics Engineering

Description

Sistemasi adalah nama terbitan jurnal ilmiah dalam bidang ilmu sains komputer program studi Sistem Informasi Universitas Islam Indragiri, Tembilahan Riau. Jurnal Sistemasi Terbit 3x setahun yaitu bulan Januari, Mei dan September,Focus dan Scope Umum dari Sistemasi yaitu Bidang Sistem Informasi, ...