ANALISIS OPINI PUBLIK TWITTER TERHADAP ISU ENERGI NASIONAL MENGGUNAKAN PENDEKATAN INDOBERT DAN NAÏVE BAYES
##plugins.themes.academic_pro.article.main##
Abstract
The increase in fuel oil prices and electric vehicles has become an issue that continues to develop on Twitter. This study aims to analyze public sentiment regarding fuel oil price increases and Public Electric Vehicle Charging Stations (SPKLU) in Indonesia, comparing the Naive Bayes and IndoBERT methods in sentiment classification. The research method includes tweet data collection, data preprocessing, public sentiment labeling, model training, and performance evaluation using accuracy, precision, recall, and F1-score metrics. The preprocessing stage consists of case folding, tokenization, stopword removal, and stemming of Indonesian-language text. The data consist of 700 tweets collected from Twitter using the keywords related to fuel oil, electric vehicles, and Public Electric Vehicle Charging Stations (SPKLU). The results show that the IndoBERT method has better performance than Naive Bayes in sentiment classification because it is able to understand the context of the Indonesian language. This study is expected to contribute to the development of Indonesian-language sentiment analysis.
##plugins.themes.academic_pro.article.details##

This work is licensed under a Creative Commons Attribution 4.0 International License.
References
[2] D. Alfatah, “Penerapan Model Transformer Untuk Deteksi Sentimen Pada Data Twitter Berbahasa Indonesia Application Of Transformer Model For Sentiment Detection On Indonesian Twitter Data.”
[3] N. Nyoman Aprianti et al., “Public Sentiment Analysis of the Free Nutritious Meals Program (MBG) on Social Media X Using the Naive Bayes Method,” 2025. [Online]. Available: http://jurnal.polibatam.ac.id/index.php/JAIC
[4] M. F. Manao and S. Mujiyono, “Sentiment Analysis of the Free Nutritious Meal Program on Twitter Using Naive Bayes and IndoBERT-Based Labeling,” Journal of Information Systems and Informatics, vol. 8, no. 1, pp. 1302–1327, Mar. 2026, doi: 10.63158/journalisi.v8i1.1345.
[5] A. Amanda and E. Nurmawati, “ANALISIS SENTIMEN DAN PEMODELAN TOPIK PADA TWEET TERKAIT DATA BADAN PUSAT STATISTIK,” Jurnal Sistem Informasi dan Informatika (Simika) P-ISSN, vol. 6, no. 2, pp. 2622–6901, 2023.
[6] A. Mauluvy Senjaya and Y. Sibaroni, “Geospatial Sentiment Analysis of Twitter User (X) on Government Performance in Overcoming Floods in Jabodetabek Using IndoBERT and CNN-LSTM Methods,” Jurnal Pendidikan dan Teknologi Indonesia, vol. 5, no. 11, pp. 3386–3398, Nov. 2025, doi: 10.52436/1.jpti.1182.
[7] D. Retno Budiastuti, R. Kartika Sari, and S. Sembiring, “Peran Regulasi Pemerintah Terhadap Penjualan Mobil Listrik pada Agustus 2025,” 2025.
[8] F. Koto, J. H. Lau, and T. Baldwin, “IndoBERTweet: A Pretrained Language Model for Indonesian Twitter with Effective Domain-Specific Vocabulary Initialization,” INDOBERTWEET: A Pretrained Language Model for Indonesian Twitter with Effective Domain-Specific Vocabulary Initialization, Sep. 2021, [Online]. Available: http://arxiv.org/abs/2109.04607
[9] S. Fitrianti and A. Yudhistira, “Analisis Sentimen Media Sosial Terhadap Calon Pilkada 2024 Dengan Metode Naïve Bayes,” Jurnal Pendidikan dan Teknologi Indonesia, vol. 5, no. 1, pp. 167–176, Jan. 2025, doi: 10.52436/1.jpti.610.
[10] A. H. A. Zharifa and E. I. H. Ujianto, “Analisis Sentimen Publik di Twitter Pasca Debat Kelima Pilpres 2024 dengan Naive Bayes,” Edumatic: Jurnal Pendidikan Informatika, vol. 8, no. 2, pp. 754–763, Dec. 2024, doi: 10.29408/edumatic.v8i2.28048.