Sentiment Analysis and Classification of Public Opinion on Prabowo Subianto Using Naïve Bayes on Twitter

In recent years, microblogging platforms have emerged as highly popular communication tools among internet users. Microblogging refers to a form of social media that enables users to share short messages—typically limited to fewer than 200 characters—containing opinions, comments, or news. One widely used microblogging service is Twitter, which attracts users from diverse backgrounds. Following the Indonesian presidential election in February 2024, numerous trending tweets expressed various opinions about Prabowo Subianto, the 8th President of Indonesia. These tweets reflected a range of sentiments, including positive, negative, and neutral viewpoints. Based on this, a sentiment analysis system is needed to efficiently analyze and classify public responses on Twitter according to sentiment categories: positive, negative, or neutral. To perform this classification, an appropriate algorithm is required. One suitable method is the Naïve Bayes classifier, a probabilistic algorithm that categorizes data by computing probability values. This method is well-suited for text classification tasks such as sentiment analysis of tweets. In this study, a dataset comprising tweets was used, consisting of 96 entries for training and 150 entries for testing, totaling 246 data points. The Naïve Bayes classifier achieved an accuracy rate of 84% using this dataset.

Authors

Publication Details

Journal
Journal of Global Engineering Research and Science
Published
2024-12-23
DOI
https://doi.org/10.56904/j-gers.v3i2.98
Primary Topic
Data Mining and Machine Learning Applications
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Sentiment Analysis and Classification of Public Opinion on Prabowo Subianto Using Naïve Bayes on Twitter

Safira Faizah, Umi Salamah, Risna Oktaviati, Cucu Sulaiman
Journal of Global Engineering Research and Science
Data Mining and Machine Learning Applications
article

Sentiment Analysis and Classification of Public Opinion on Prabowo Subianto Using Naïve Bayes on Twitter

Safira Faizah, Umi Salamah, Risna Oktaviati, Cucu Sulaiman
article en

Abstract

In recent years, microblogging platforms have emerged as highly popular communication tools among internet users. Microblogging refers to a form of social media that enables users to share short messages—typically limited to fewer than 200 characters—containing opinions, comments, or news. One widely used microblogging service is Twitter, which attracts users from diverse backgrounds. Following the Indonesian presidential election in February 2024, numerous trending tweets expressed various opinions about Prabowo Subianto, the 8th President of Indonesia. These tweets reflected a range of sentiments, including positive, negative, and neutral viewpoints. Based on this, a sentiment analysis system is needed to efficiently analyze and classify public responses on Twitter according to sentiment categories: positive, negative, or neutral. To perform this classification, an appropriate algorithm is required. One suitable method is the Naïve Bayes classifier, a probabilistic algorithm that categorizes data by computing probability values. This method is well-suited for text classification tasks such as sentiment analysis of tweets. In this study, a dataset comprising tweets was used, consisting of 96 entries for training and 150 entries for testing, totaling 246 data points. The Naïve Bayes classifier achieved an accuracy rate of 84% using this dataset.

Journal of Global Engineering Research and ScienceVol. 3(2)
Openalex Percentile: Top 49%
Data Mining and Machine Learning Applications
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.