Sentiment Analysis of the 2022 Fuel Price Hike Using the Naïve Bayes Classifier

This study examines public opinion towards Indonesia’s 2022 fuel price hike using social media analytics and assesses the pace of a supervised machine learning classifier for policy-oriented sentiment analysis. The research aimed to answer the following two questions (1) What was the prevailing public sentiment articulated on Twitter after fuel pricing announcement? and (2) How well is a Naïve Bayes classifier able to classify sentiment polarity in this domain? We employed a quantitative cross-sectional design utilizing Twitter data obtained from 3–4 September 2022 via the hashtags #hargabbm and #bbmnaik. Ultimately, after preprocessing, there were 1,867 unique tweets out of the 2,003 retrieved ones. Training data consisted of a total of 489 manually labeled tweets, and 1,378 for testing. Tokenization and TF–IDF weighting were performed on text data, while the sentiment classification was done using Gaussian Naïve Bayes model and evaluated through confusion matrix metrics. The results suggest that public sentiment was overwhelmingly negative during the analysis period and that the classifier reached an accuracy of 94.89% with a precision of 73.40%, recall of 100%, and F1-score of 84.66. These findings show that probabilistic text classification offers newsworthy evidence about whether the public unanimously supports economically sensitive policies (or not), with voltage and salience meaningfully specified.

Authors

Institutions

Publication Details

Journal
CAUCHY Jurnal Matematika Murni dan Aplikasi
Published
2026-03-12
DOI
https://doi.org/10.18860/cauchy.v11i1.36473
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

Sentiment Analysis of the 2022 Fuel Price Hike Using the Naïve Bayes Classifier

Muhammad Hajarul Aswad, Alia Lestari, Subekti Masri
CAUCHY Jurnal Matematika Murni dan Aplikasi
Sentiment Analysis and Opinion Mining
article

Sentiment Analysis of the 2022 Fuel Price Hike Using the Naïve Bayes Classifier

Muhammad Hajarul Aswad, Alia Lestari, Subekti Masri
article en

Abstract

This study examines public opinion towards Indonesia’s 2022 fuel price hike using social media analytics and assesses the pace of a supervised machine learning classifier for policy-oriented sentiment analysis. The research aimed to answer the following two questions (1) What was the prevailing public sentiment articulated on Twitter after fuel pricing announcement? and (2) How well is a Naïve Bayes classifier able to classify sentiment polarity in this domain? We employed a quantitative cross-sectional design utilizing Twitter data obtained from 3–4 September 2022 via the hashtags #hargabbm and #bbmnaik. Ultimately, after preprocessing, there were 1,867 unique tweets out of the 2,003 retrieved ones. Training data consisted of a total of 489 manually labeled tweets, and 1,378 for testing. Tokenization and TF–IDF weighting were performed on text data, while the sentiment classification was done using Gaussian Naïve Bayes model and evaluated through confusion matrix metrics. The results suggest that public sentiment was overwhelmingly negative during the analysis period and that the classifier reached an accuracy of 94.89% with a precision of 73.40%, recall of 100%, and F1-score of 84.66. These findings show that probabilistic text classification offers newsworthy evidence about whether the public unanimously supports economically sensitive policies (or not), with voltage and salience meaningfully specified.

CAUCHY Jurnal Matematika Murni dan AplikasiVol. 11(1)
Universitas Islam Negeri Sumatera Utara (ID)
Openalex Percentile: Top 33%
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.