ANALYSIS OF PUBLIC SENTIMENT TOWARDS 2024 PRESIDENTIAL CANDIDACY USING NAÏVE BAYES ALGORITHM

This study analyzes public sentiment towards presidential nominations using text mining techniques and machine learning. The dataset consists of 670 tweets collected from social media. The analysis process includes a data pre-processing phase, encompassing text cleaning, case folding, tokenization, stopword removal, and stemming using the Sastrawi library for the Indonesian language. Sentiment labeling was was performed using NLTK's SentimentIntensityAnalyzer, categorizing tweets into positive, negative, or neutral sentiments. The analysis results reveal the sentiment distribution among the analyzed tweets. Data modeling was performed using the Naive Bayes algorithm, which achieved an accuracy of 97.78% on the Iris dataset as an implementation example. The confusion matrix and classification report demonstrate the model's excellent performance in distinguishing sentiment classes. This research provides insights into public opinion regarding presidential nominations and demonstrates the effectiveness of text mining techniques and machine learning in sentiment analysis. The method can be applied to understand public opinion trends in other political and social contexts

Authors

Institutions

Publication Details

Journal
Jurnal Riset Informatika
Published
2024-12-15
DOI
https://doi.org/10.34288/jri.v7i1.356
Primary Topic
Sentiment Analysis and Opinion Mining
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

ANALYSIS OF PUBLIC SENTIMENT TOWARDS 2024 PRESIDENTIAL CANDIDACY USING NAÏVE BAYES ALGORITHM

Nanang Ruhyana, Rianggi
Jurnal Riset Informatika
Sentiment Analysis and Opinion Mining
article

ANALYSIS OF PUBLIC SENTIMENT TOWARDS 2024 PRESIDENTIAL CANDIDACY USING NAÏVE BAYES ALGORITHM

Nanang Ruhyana, Rianggi
article en

Abstract

This study analyzes public sentiment towards presidential nominations using text mining techniques and machine learning. The dataset consists of 670 tweets collected from social media. The analysis process includes a data pre-processing phase, encompassing text cleaning, case folding, tokenization, stopword removal, and stemming using the Sastrawi library for the Indonesian language. Sentiment labeling was was performed using NLTK's SentimentIntensityAnalyzer, categorizing tweets into positive, negative, or neutral sentiments. The analysis results reveal the sentiment distribution among the analyzed tweets. Data modeling was performed using the Naive Bayes algorithm, which achieved an accuracy of 97.78% on the Iris dataset as an implementation example. The confusion matrix and classification report demonstrate the model's excellent performance in distinguishing sentiment classes. This research provides insights into public opinion regarding presidential nominations and demonstrates the effectiveness of text mining techniques and machine learning in sentiment analysis. The method can be applied to understand public opinion trends in other political and social contexts

Jurnal Riset InformatikaVol. 7(1)
Universitas Katolik Widya Mandira (ID)
Openalex Percentile: Top 73%
Sentiment Analysis and Opinion Mining
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.