JOURNAL ARTICLE

Analisis Sentimen Calon Presiden 2024 di Media Sosial X Menggunakan Naive Bayes dan SMOTE

Abstract

In the era of digital advancement, the utilization of social media has surged, enabling individuals to express their viewpoints openly. This research underscores the utilization of social media platform X as the primary avenue for users to express their opinions, particularly on political matters, notably within the framework of the presidential election. Sentiment analysis techniques, specifically employing the Naïve Bayes algorithm and the Synthetic Minority Oversampling (SMOTE) method, have been the central focus of inquiry to infer people's inclinations toward presidential candidates. Despite numerous antecedent studies, deficiencies persist in terms of precision and data imbalance. This study endeavors to enhance the efficacy of sentiment analysis by integrating the Naïve Bayes approach with SMOTE. By scrutinizing tweets on social media X spanning from December 12, 2023, to March 31, 2024, the data is categorized into positive and negative sentiments. The findings reveal that employing SMOTE bolstered accuracy to 88% for the Ganjar-Mahfud dataset, whereas accuracy without SMOTE languished at approximately 69% for the Anies-Imin dataset. Out of 1589 tweets conveying positive sentiments, approximately 27.7% were directed towards Anies-Imin, 28.7% towards Prabowo-Gibran, and 43.5% towards Ganjar-Mahfud. The preponderance of negative sentiments was aimed at Anies-Imin (41.5%) and Prabowo-Gibran (40.8%).

Keywords:
Naive Bayes classifier Viewpoints Sentiment analysis Social media Presidential system Antecedent (behavioral psychology) Computer science Artificial intelligence Oversampling Politics Machine learning Psychology Political science World Wide Web Social psychology Support vector machine Physics Telecommunications

Metrics

0
Cited By
0.00
FWCI (Field Weighted Citation Impact)
25
Refs
0.18
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Topics

Multimedia Learning Systems
Physical Sciences →  Computer Science →  Information Systems
Information Retrieval and Data Mining
Physical Sciences →  Computer Science →  Information Systems
Data Mining and Machine Learning Applications
Physical Sciences →  Computer Science →  Information Systems
© 2026 ScienceGate Book Chapters — All rights reserved.