Penerapan Naïve Bayes untuk Analisis Sentimen Publik terhadap Isu Korupsi Pertamina di Media Sosial
DOI:
https://doi.org/10.61132/jupiter.v4i4.1464Keywords:
Corruption, Naïve Bayes, Sentiment Analysis, Social Media, TF-IDFAbstract
Corruption remains a major public issue in Indonesia, including the Pertamina corruption case, which has triggered diverse reactions across social media. This study aims to analyze public sentiment toward the Pertamina corruption issue using the Naïve Bayes algorithm as a text classification method. The research process includes data collection, text preprocessing consisting of slang normalization, stopword removal, and stemming, term weighting using Term Frequency-Inverse Document Frequency (TF-IDF), sentiment classification using Naïve Bayes, and model evaluation using a confusion matrix. The dataset used in this study consists of public comments in Indonesian that were processed and classified into negative, neutral, and positive sentiment categories. The evaluation results show that the model achieved an accuracy of 0.7592 with a macro F1-score of 0.4642. The negative sentiment class produced the best performance compared with the neutral and positive classes. Dominant negative terms such as corruption, law, corruptor, and death indicate that public opinion tends to respond negatively to the case. These findings provide a clearer picture of public perception regarding the Pertamina corruption issue and may serve as a reference for stakeholders in understanding public opinion expressed on social media.
References
Abdullah Wahid, Y., & Darma Andayani, D. (2025). Performance comparison of SVM and naïve Bayes for Indonesian-language sentiment analysis on Free Fire reviews using TF-IDF and SMOTE. Journal of Embedded System Security and Intelligent Systems, 6(4), 674–689.
Abidin, D. Z., Afuan, L., Toscany, A. N., & Nurhadi, N. (2025). A comprehensive benchmarking pipeline for transformer-based sentiment analysis using cross-validated metrics. Jurnal Teknik Informatika (JUTIF), 6(4), 1797–1810. https://doi.org/10.52436/1.jutif.2025.6.4.4894
Ardi, A., & Kurniawan. (2024). Optimasi metode naïve Bayes classifier menggunakan pendekatan term frequency–inverse document frequency (TF-IDF) pada analisis sentimen. JSAI (Journal Scientific and Applied Informatics), 7(3), 458–463. https://doi.org/10.36085/jsai.v7i3.7153
Arya, M., Nugraha, A., Budiarto, S., & Supriyadi, S. (2026). Implementasi metode naïve Bayes untuk analisis sentimen terhadap program makan siang gratis pada media sosial X. XVI.
Astuti, Y. D. (2025). Online media and narrative hegemony: Discourse network analysis of the 2025 Pertamina case. 10(2), 347–372.
Hartimar, L., Manza, Y., & Putriani Siregar, K. (2025). Text classification using TF-IDF and naïve Bayes: Case study of MyXL app user review data. Journal of Technology and Computer (JOTECHCOM), 2(2), 100–108.
Katya, E., & Rahman, S. R. (2024). Applications of natural language processing in social media sentiment analysis.
Khoerunnisa, S., Shiddieq, D. F., & Nurhayati, D. (2025). Penerapan algoritma naïve Bayes dengan teknik TF-IDF dan cross validation untuk analisis sentimen terhadap Starlink. MALCOM: Indonesian Journal of Machine Learning and Computer Science, 5(2), 566–577. https://doi.org/10.57152/malcom.v5i2.1852
Lestari, V. B., & Hutagalung, C. A. (2025). Evaluation of TF-IDF extraction techniques in sentiment analysis of Indonesian-language marketplaces using SVM, logistic regression, and naïve Bayes. Journal of Computer Science and Applications, 8(1), 22–35. https://doi.org/10.21009/j-
Muhaimin, A., Fahrudin, T. M., Alamiyah, S. S., & Arviani, H. (2024). Sentiment analysis in social media: Case study in Indonesia. 2024, 27–30. https://doi.org/10.11594/nstp.2024.4106
Pebrianti, R. D. (2025). Analisis sentimen masyarakat platform X terhadap korupsi PT Pertamina (Persero) menggunakan SVM. JITET (Jurnal Informatika dan Teknik Elektro Terapan), 13(2).
Ramadhan, M. F., Panjaitan, F., & Oktafiandi, H. (2025). Analisis sentimen kutipan media sosial berbahasa Indonesia menggunakan convolutional neural network. 2, 1–17.
Rasmila, R., Saputri, Y., Syaki, F., & Hadinata, N. (2025). Sentiment analysis of trending topics on social media X using natural language processing and LSTM. Journal of Applied Informatics and Computing, 9(6), 3034–3041. https://doi.org/10.30871/jaic.v9i6.10931
Rodríguez-Ibánez, M., Casánez-Ventura, A., Castejón-Mateos, F., & Cuenca-Jiménez, P. M. (2023). A review on sentiment analysis from social media platforms. Expert Systems with Applications, 223, Article 119862. https://doi.org/10.1016/j.eswa.2023.119862
W, A. W., Andana, H. H., Zeniarja, J., & Febriyanto, A. (2025). Sentiment analysis of the 2024 general election through Twitter using long short-term memory algorithm. Journal of Informatics and Web Engineering, 4(2), 387–400. https://doi.org/10.33093/jiwe.2025.4.2.25
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Jupiter: Publikasi Ilmu Keteknikan Industri, Teknik Elektro dan Informatika

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.




