Public Sentiment Analysis on Instagram and X toward the Cancellation of Fuel Purchases from Pertamina by Private Fuel Stations Using the BERT Method
Main Article Content
Abstract
This study aims to analyze public sentiment toward the cancellation of fuel purchases from Pertamina
by private fuel stations based on comments collected from Instagram and X (Twitter). Sentiment analysis was
conducted using the Bidirectional Encoder Representations from Transformers (BERT) model, which is capable
of capturing contextual semantic information in text more effectively than traditional machine learning
approaches.The research stages include data collection through web scraping, text preprocessing, sentiment
labeling into positive, neutral, and negative categories, fine-tuning a pretrained Indonesian BERT model, and
model evaluation using accuracy, macro recall, and F1-score. The experimental results indicate that the BERT
based model is able to classify public sentiment effectively. Negative sentiment dominates the dataset and is
characterized by expressions of dissatisfaction and criticism toward the policy. Neutral sentiment mainly contains
descriptive and informational statements, while positive sentiment appears in a considerably smaller proportion.
The findings provide insights into public perceptions of the policy related to Pertamina and private fuel stations
and demonstrate the potential of BERT-based sentiment analysis as a decision-support tool for monitoring public
opinion on social media.
Article Details
Section

This work is licensed under a Creative Commons Attribution 4.0 International License.
How to Cite
References
[1] Devlin, J., Chang, M.-W., Lee, K., & Toutanova, K. (2019). BERT: Pre-training of deep bidirectional transformers for language understanding. Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics (NAACL-HLT), 4171–4186.
[2] Laturiuw, A. K., & Singgalen, Y. A. (2023). Sentiment analysis of Raja Ampat tourism destination using CRISP-DM: SVM, NBC, DT, and k-NN algorithm. Journal of Information Systems and Informatics, 5(2), 518–535.
[3] Nikhil Sanjay Suryawanshi. (2024). Sentiment analysis with machine learning and deep learning: A survey of techniques and applications. International Journal of Science and Research Archive, 12(2), 005–015.
[4] Norlaila, N., Winarno, W. W., & Luthfi, E. T. (2024). Sentiment analysis of public opinion on mining in Indonesia using Twitter data. JIPI (Jurnal Ilmiah Penelitian dan Pembelajaran Informatika), 9(3), 1091–1099.
[5] Refianti, R., & Anggraeni, N. (2023). Sentiment analysis using convolutional neural network to classify Zoom Cloud Meetings application reviews. International Journal of Engineering, Science and Information Technology, 3(3), 7–16.
[6] Saragih, H., & Manurung, J. (2024). Leveraging the BERT model for enhanced sentiment analysis in multicontextual social media content.
[7] Awate, G. U., Dhus, R. S., Gaikwad, S. R., Lonkar, R. R., & Bhujbal, S. (2024). Sentiment analysis for social media. International Journal of Creative Research Thoughts (IJCRT), 12(1).