Sentiment Analysis Kepercayaan Publik Terhadap Pertamina Pada Media Berita di YouTube
Abstract
Public trust in PT Pertamina (Persero) is reflected in public opinion expressed on social media, particularly through the comment sections of news videos on YouTube. This study aims to analyze public sentiment toward Pertamina based on comments posted on YouTube news videos in order to identify the distribution of positive, negative, and neutral opinions. The data were collected using the YouTube Data API through a web crawling process and subsequently processed using several text preprocessing techniques, including cleaning, case folding, word normalization, tokenization, and stopword removal. Sentiment labeling was performed automatically using the VADER Sentiment method, which classified the comments into three categories: positive, negative, and neutral. Feature extraction was then conducted using the Term Frequency–Inverse Document Frequency (TF-IDF) method. The classification process compared the performance of three Naïve Bayes variants, namely Gaussian Naïve Bayes, Multinomial Naïve Bayes, and Bernoulli Naïve Bayes. Of the 56,868 comments that were successfully crawled, 22,527 comments were successfully collected. The sentiment labeling results revealed that neutral sentiment dominated the dataset, accounting for 95.89% of all comments, followed by positive sentiment at 2.86% and negative sentiment at 1.25%. The experimental results demonstrated that Multinomial Naïve Bayes achieved the best performance with an accuracy of approximately 95%, outperforming Bernoulli Naïve Bayes (approximately 92%) and Gaussian Naïve Bayes (approximately 79%). This superior performance is attributed to the compatibility of the Multinomial Naïve Bayes algorithm with TF-IDF feature representation, which is based on word frequency. The findings of this study are expected to provide valuable insights for Pertamina and policymakers in formulating more responsive and effective public communication strategies.
Downloads
References
Chely Aulia Misrun, E. Haerani, M. Fikry, and E. Budianita, "Analisis sentimen komentar youtube terhadap Anies Baswedan sebagai bakal calon presiden 2024 menggunakan metode naive bayes classifier," J. CoSciTech (Computer Sci. Inf. Technol.), vol. 4, no. 1, pp. 207–215, 2023, doi: 10.37859/coscitech.v4i1.4790.
T. Putri, S. Nurhaliza, and D. Vionanda, "Sentiment Analysis of Using the YouTube Application Using the Naïve Bayes Method," J. Edukasi dan Penelitian Inform. (JEPIN), vol. 3, pp. 60–66, 2025, doi: https://doi.org/10.24036/ujsds/vol3-iss1/343.
M. S. P. Putra, Sri Dharma Wati, and Imam Solikin, "Analisis Sentimen Serikat Pekerja Pertamina Tolak Ahok Pada Media Sosial Youtube Menggunakan Algoritma Naive Bayes," J. Ilm. Betrik, vol. 12, no. 2, pp. 99–105, 2021, doi: 10.36050/betrik.v12i2.219.
C. G. Indrayanto, D. E. Ratnawati, and B. Rahayudi, "Analisis Sentimen Data Ulasan Pengguna Aplikasi MyPertamina di Indonesia pada Google Play Store menggunakan Metode Random Forest," J. Pengemb. Teknol. Inf. dan Ilmu Komput., vol. 7, no. 3, pp. 1131–1139, 2023, [Online]. Available: http://j-ptiik.ub.ac.id
S. Mujahidin, B. Prasetio, and M. C. C. Utomo, "Implementasi Analisis Sentimen Masyarakat Mengenai Kenaikan Harga BBM Pada Komentar Youtube Dengan Metode Gaussian naïve bayes," Voteteknika (Vocational Tek. Elektron. dan Inform., vol. 10, no. 3, p. 17, 2022, doi: 10.24036/voteteknika.v10i3.118299.
M. Hudha, E. Supriyati, and T. Listyorini, "Analisis Sentimen Pengguna YouTube Terhadap Tayangan #MataNajwaMenantiTerawan dengan Metode Naïve Bayes Classifier," JIKO (Jurnal Informatika dan Komputer), vol. 5, no. 1, pp. 1–6, 2022, doi: 10.33387/jiko.v5i1.3376.
H. A. R. Harpizon, R. Kurniawan, I. Iskandar, R. Salambue, E. Budianita, and F. Syafria, "Analisis Sentimen Komentar Di YouTube Tentang Ceramah Ustadz Abdul Somad Menggunakan Algoritma Naïve Bayes," JNKTI (Jurnal Nasional Komputasi dan Teknologi Informasi), vol. 5, no. 1, pp. 131–140, 2022, doi: 10.32672/jnkti.v5i1.4008.
M. I. Ahmadi, D. Gustian, and F. Sembiring, "Analisis Sentimen Masyarakat terhadap Kasus Covid-19 pada Media Sosial YouTube dengan Metode Naive Bayes," J-SAKTI (Jurnal Sains Komputer dan Informatika), vol. 5, no. 2, pp. 807–814, 2021, doi: 10.30645/j-sakti.v5i2.378.
O. I. Gifari, M. Adha, I. R. Hendrawan, and F. F. S. Durrand, "Analisis Sentimen Review Film Menggunakan TF-IDF dan Support Vector Machine," JIFOTECH (Journal of Information Technology), vol. 2, no. 1, pp. 36–40, 2022, doi: 10.46229/jifotech.v2i1.330.
S. Mujahidin, B. Prasetio, and M. C. C. Utomo, "Implementasi Analisis Sentimen Masyarakat Mengenai Kenaikan Harga BBM pada Komentar YouTube dengan Metode Gaussian Naïve Bayes," Voteteknika (Vocational Teknik Elektronika dan Informatika), vol. 10, no. 3, pp. 17–24, 2022, doi: 10.24036/voteteknika.v10i3.118299.
A. Liawati, R. Narasati, D. Solihudin, C. Lukman Rohmat, and S. Eka Permana, "Analisis Sentimen Komentar Politik Di Media Sosial X Dengan Pendekataan Deep Learning," JATI (Jurnal Mhs. Tek. Inform., vol. 7, no. 6, pp. 3557–3563, 2024, doi: 10.36040/jati.v7i6.8248.
R. A. Firsttama, A. A. Arifiyanti, and D. S. Y. Kartika, "Analisis Sentimen Komentar Youtube Konferensi Tingkat Tinggi G20 Menggunakan Metode Naive Bayes," J. Teknol. Dan Sist. Inf. Bisnis, vol. 6, no. 2, pp. 282–285, 2024, doi: 10.47233/jteksis.v6i2.1263.
Rayuwati, Husna Gemasih, and Irma Nizar, "Implementasi Algoritma Naive Bayes Untuk Memprediksi Tingkat Penyebaran Covid," Jural Ris. Rumpun Ilmu Tek., vol. 1, no. 1, pp. 38–46, 2022, doi: 10.55606/jurritek.v1i1.127.
B. Santoso, S. Prawiradiredja, D. Abror, S. A. Sufa, A. Raharja, and P. T. Mardianta, "Implementasi Metode VADER Pada Analisis Sentimen Komentar Video Youtube Desa Wisata Bejijong," JuTI (Jurnal Teknologi Informasi), vol. 3, no. 2, pp. 91–97, 2025, doi: 10.26798/juti.v3i2.1868.
N. Fauziah, M. Alkautsar, Y. Suryaman, and F. F. Roji, "Analisis Sentimen Publik Terhadap Kenaikan Tarif PPN di Indonesia dengan Pendekatan VADER," J. Akuntansi dan Keuangan, vol. 12, no. 2, pp. 228–238, 2024, doi: https://doi.org/10.29103/jak.v12i2.16796.
H. Murti, R. S. Redjeki, N. Mariana, A. P. Utomo, and W. T. Handoko, "Pemodelan Sentimen Komentar YouTube Berbasis Naive Bayes," J. Inform. dan Teknol. Komput. (JITEK), vol. 6, no. 1, pp. 1–12, 2026. doi: 10.55606/jitek.v6i1.8767.
D. Darwis, N. Siskawati, and Z. Abidin, "Penerapan Algoritma Naive Bayes Untuk Analisis Sentimen Review Data Twitter Bmkg Nasional," J. Tekno Kompak, vol. 15, no. 1, p. 131, 2021, doi: 10.33365/jtk.v15i1.744.
D. S. Hidayat, O. Nurdiawan, F. M. Basysyar, and M. Sulaeman, "Peningkatan Model Analisis Sentimen Melalui Algoritmanaive Bayes Berdasarkan Data Komentar Youtube," J. Manaj. Inform. Dan Sist. Inf. (MISI), vol. 8, pp. 164–175, 2025, doi: 10.36595/misi.v5i2.
B. Ramadhani and R. R. Suryono, "Komparasi Algoritma Naïve Bayes dan Logistic Regression Untuk Analisis Sentimen Metaverse," Jurnal Media Informatika Budidarma, vol. 8, no 2. April, pp. 714–725, 2024, doi: 10.30865/mib.v8i2.7458.
F. Khoirunnisa and S. Topiq, "Analisis Sentimen Terhadap Masyarakat Pada Proses Penegak Hukum Di Indonesia Dengan Menggunakan Algoritma Naïve Bayes," J. Teknik Informatika dan Teknik Elektro Terapan (JITET), vol. 12, no. 3, pp. 2128–2139, 2024, doi: https://doi.org/10.23960/jitet.v12i3.4683.
F. Septianingrum, J. H. Jaman, and U. Enri, "Analisis Sentimen Pada Isu Vaksin Covid-19 di Indonesia dengan Metode Naive Bayes Classifier," Jurnal Media Informatika Budidarma, vol. 5, pp. 1431–1437, 2021, doi: 10.30865/mib.v5i4.3260.
R. Amelia, N. S. Prastiwi, and M. E. Purbaya, "Impementasi Algoritma Naive Bayes Terhadap Analisis Sentimen Opini Masyarakat Indonesia Mengenai Drama Korea Pada Twitter," Jurnal Riset Komputer (JURIKOM), vol. 9, no. 2, pp. 338–343, 2022, doi: 10.30865/jurikom.v9i2.3895.
A. Karimah, G. Dwilestari, and M. Mulyawan, "Analisis Sentimen Komentar Video Mobil Listrik Di Platform Youtube Dengan Metode Naive Bayes," JATI (Jurnal Mhs. Tek. Inform., vol. 8, no. 1, pp. 767–737, 2024, doi: 10.36040/jati.v8i1.8373.
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Sentiment Analysis Kepercayaan Publik Terhadap Pertamina Pada Media Berita di YouTube
Pages: 1057-1066
Copyright (c) 2026 Alrafi Syammajaya, Daniel H. F. Manongga

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under Creative Commons Attribution 4.0 International License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (Refer to The Effect of Open Access).






















