CAUCHY: Jurnal Matematika Murni dan Aplikasi
Vol 11, No 1 (2026): CAUCHY: JURNAL MATEMATIKA MURNI DAN APLIKASI

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

Lestari, Alia (Unknown)
Aswad, Muhammad Hajarul (Unknown)
Masri, Subekti (Unknown)



Article Info

Publish Date
30 May 2026

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.

Copyrights © 2026






Journal Info

Abbrev

Math

Publisher

Subject

Mathematics

Description

Jurnal CAUCHY secara berkala terbit dua (2) kali dalam setahun. Redaksi menerima tulisan ilmiah hasil penelitian, kajian kepustakaan, analisis dan pemecahan permasalahan di bidang Matematika (Aljabar, Analisis, Statistika, Komputasi, dan Terapan). Naskah yang diterima akan dikilas (review) oleh ...