Penerapan Algoritma Naïve Bayes Pada Analisa Sentimen Twitter Terhadap Opini Publik Badan Pangan Nasional
DOI:
https://doi.org/10.22441/jitkom.v9i1.007Keywords:
Analisa Sentimen, Naïve Bayes, Badan Pangan Nasional, Klasifikasi, TwitterAbstract
Penelitian ini fokus pada penerapan algoritma Naïve Bayes untuk menganalisis sentimen Twitter terhadap Badan Pangan Nasional (BAPANAS). Dalam era digital, media sosial, khususnya Twitter, menjadi saluran utama masyarakat untuk menyampaikan opini terkait instansi pemerintah. Algoritma Naïve Bayes digunakan untuk mengklasifikasikan sentimen menjadi positif atau negatif. Dengan langkah-langkah yang melibatkan crawling data, preprocessing, pelabelan data otomatis menggunakan InSet Lexicon, pembobotan kata dengan TF-IDF, data splitting, dan klasifikasi dengan algoritma Naïve Bayes. Hasil klasifikasi menunjukkan akurasi sebesar 79.7%, dengan presisi 78.6%, recall 74.0%, dan F1 score 76.2%. algoritma Naïve Bayes mengklasifikasikan sebanyak 1.093 data. Dari hasil tersebut, 453 sentimen positif (41.4%) sementara 640 sentimen negatif (58.6%) berdasarkan data testing sebanyak 20%.
References
M. Al Khadafi, K. P. Kartika, and F. Febrinita, "Penerapan metode naïve Bayes classifier Dan Lexicon based Untuk Analisis Sentimen cyberbullying Pada BPJS," JATI (Jurnal Mahasiswa Teknik Informatika), vol. 6, no. 2, pp. 725–733, 2022. DOI: 10.36040/jati.v6i2.5633.
M. R. Amly, Y. Yusra, and M. Fikry, "Penerapan Metode Naïve Bayes Classifier Pada Klasifikasi Sentimen Terhadap Anies Baswedan Sebagai Bakal Calon Presiden 2024," Jurnal Sistem Komputer Dan Informatika (JSON), vol. 4, no. 4, p. 621, July 2, 2023. DOI: 10.30865/json.v4i4.6214.
M. R. F. S. Bani, U. Enri, and T. N. Padilah, "Analisis sentimen terhadap bakal calon presiden 2024 dengan algoritme Naïve Bayes," JURIKOM (Jurnal Riset Komputer), vol. 9, no. 2, p. 265, 2022. DOI: 10.30865/jurikom.v9i2.3989.
R. S. Buana et al., "Analisis Sentimen pada Komen Twitter Pawang Hujan Mandalika dengan Support Vector Machine (SVM) dan Naïve Bayes," Jurnal JTIK (Jurnal Teknologi Informasi Dan Komunikasi), vol. 7, no. 2, pp. 194–200, April 1, 2023. DOI: 10.35870/jtik.v7i2.705.
M. H. Casandy and D. Mahdiana, "Penerapan algoritma Naïve Bayes untuk melakukan analisis sentimen pada PT Pos Indonesia (Persero)," KRESNA Jurnal Riset Dan Pengabdian Masyarakat, vol. 2, no. 2, pp. 221–229, 2022. DOI: 10.36080/jk.v2i2.51.
D. Darwis, N. Siskawati, and Z. Abidin, "PENERAPAN ALGORITMA NAIVE BAYES UNTUK ANALISIS SENTIMEN REVIEW DATA TWITTER BMKG NASIONAL," Jurnal Tekno Kompak, vol. 15, no. 1, p. 131, February 17, 2021. DOI: 10.33365/jtk.v15i1.744.
D. Putri, G. F. Nama, and W. E. Sulistiono, "Analisis Sentimen Kinerja Dewan Perwakilan Rakyat (DPR) Pada Twitter Menggunakan Metode Naive Bayes Classifier," Jurnal Informatika Dan Teknik Elektro Terapan, vol. 10, no. 1, January 7, 2022. DOI: 10.23960/jitet.v10i1.2262.
M. N. Fadillah and R. N. Sukmana, "Penerapan algoritma naïve Bayes classifier untuk analisis sentimen Kelangkaan Minyak Goreng Pada media sosial twitter," Infotronik: Jurnal Teknologi Informasi Dan Elektronika, vol. 7, no. 2, p. 82, 2022. DOI: 10.32897/infotronik.2022.7.2.1716.
A. Fauzi, M. F. Akbar, and Y. F. A. Asmawan, "Sentimen Analisis Berinternet Pada Media Sosial dengan Menggunakan Algoritma Bayes," Jurnal Informatika, vol. 6, no. 1, pp. 77–83, April 14, 2019. DOI: 10.31311/ji.v6i1.5437.
S. N. J. Fitriyyah, N. Safriadi, and E. E. Pratama, "Analisis Sentimen Calon Presiden Indonesia 2019 dari Media Sosial Twitter Menggunakan Metode Naive Bayes," JEPIN (Jurnal Edukasi Dan Penelitian Informatika), vol. 5, no. 3, 2019. DOI: 10.26418/jp.v5i3.34368.
F. Hasibuan, W. Priatna, and T. S. Lestari, "Analisis sentimen terhadap kementrian perdagangan pada sosial media Twitter menggunakan metode Naïve Bayes," Techno.COM Jurnal, vol. 21, no. 4, pp. 741–752, 2022. DOI: 10.33633/tc.v21i4.6565.
F. Koto and G. Rahmaningtyas, "InSet Lexicon: Evaluation of a Word List for Indonesian Sentiment Analysis in Microblogs," 2017. DOI: 10.1109/IALP.2017.8300625.
T. Krisdiyanto, "Analisis Sentimen Opini Masyarakat Indonesia Terhadap Kebijakan PPKM pada Media Sosial Twitter Menggunakan Naïve Bayes Clasifiers," Jurnal CoreIT: Jurnal Hasil Penelitian Ilmu Komputer Dan Teknologi Informasi, vol. 7, no. 1, p. 32, July 2, 2021. DOI: 10.24014/coreit.v7i1.12945.
A. Kusuma and A. Nugroho, "Analisa Sentimen Pada Twitter Terhadap Kenaikan Tarif Dasar Listrik Dengan Metode Naïve Bayes," Jurnal Ilmiah Teknologi Informasi Asia, vol. 15, no. 2, p. 137, December 3, 2021. DOI: 10.32815/jitika.v15i2.557.
F. A. Maulana and I. Ernawati, "Analisa Sentimen Cyberbullying Di Jejaring Sosial Twitter Dengan Algoritma Naïve Bayes," Senamika, vol. 1, no. 2, pp. 529–538, 2020. DOI: https://conference.upnvj.ac.id/index.php/senamika/article/download/619/461.
S. Mujahidin, M. N. Hasyim, and B. M. Pratama, "Implementasi analisissentimen opini publik mengenai Sirkuit Internasional Mandalika padaTwitter menggunakan metode multinomial naïve Bayes Classifier," Bianglala Informatika (E-journal), vol. 10, no. 2, 2022. DOI: 10.31294/bi.v10i2.13544.
D. Musfiroh et al., "Analisis Sentimen terhadap Perkuliahan Daring di Indonesia dari Twitter Dataset Menggunakan InSet Lexicon," MALCOM: Indonesian Journal of Machine Learning and Computer Science, vol. 1, no. 1, pp. 24–33, March 6, 2021. DOI: 10.57152/malcom.v1i1.20.
R. Noviana and I. Rasal, "PENERAPAN ALGORITMA NAIVE BAYES DAN SVM UNTUK ANALISIS SENTIMEN BOY BAND BTS PADA MEDIA SOSIAL TWITTER," Jurnal Teknik Dan Sains, vol. 2, no. 2, pp. 51–60, 2023. DOI: 10.56127/jts.v2i2.791.
A. A. Permana et al., "Sentimen Analisis Opini Masyarakat Pada Media Sosial Twitter Terhadap Vaksin Berbayar Menggunakan Metode Naïve Bayes Classifier (NBC)," Jurnal Teknik, vol. 10, no. 2, August 6, 2021. DOI: 10.31000/jt.v10i2.5471.
N. Ruhyana, “ANALISIS SENTIMEN TERHADAP PENERAPAN SISTEM PLAT NOMOR GANJIL/GENAP PADA TWITTER DENGAN METODE KLASIFIKASI NAIVE BAYES”, ikraith-informatika, vol. 3, no. 1, pp. 94-99, Nov. 2018.
S. Samsir et al., "Analisis Sentimen Pembelajaran Daring Pada Twitter di Masa Pandemi COVID-19 Menggunakan Metode Naïve Bayes," Jurnal Media Informatika Budidarma, vol. 5, no. 1, p. 157, 2021. DOI: 10.30865/mib.v5i1.2580.
A. Turmudi Zy et al., "Analisis Sentimen Terhadap Pembobolan Data pada Twitter dengan Algoritma Naive Bayes," Jurnal Teknologi Informatika Dan Komputer, vol. 8, no. 2, pp. 202–213, September 30, 2022. DOI: 10.37012/jtik.v8i2.1240
Downloads
Published
How to Cite
Issue
Section
License
The copyright to this article is transferred to Universitas Mercu Buana (UMB) if and when the article is accepted for publication. The undersigned hereby transfers any and all rights in and to the paper including without limitation all copyrights to UMB. The undersigned hereby represents and warrants that the paper is original and that he/she is the author of the paper, except for material that is clearly identified as to its original source, with permission notices from the copyright owners where required. The undersigned represents that he/she has the power and authority to make and execute this assignment.
We declare that this paper has not been published in the same form elsewhere.
Furthermore, I/We hereby transfer the unlimited rights of publication of the above-mentioned paper as a whole to UMB. The copyright transfer covers the right to reproduce and distribute the article, including reprints, translations, photographic reproductions, microform, electronic form (offline, online) or any other reproductions of similar nature.
The corresponding author signs for and accepts responsibility for releasing this material on behalf of any and all co-authors. This agreement is to be signed by at least one of the authors who have obtained the assent of the co-author(s) where applicable. After submission of this agreement signed by the corresponding author, changes of authorship or in the order of the authors listed will not be accepted.
Retained Rights/Terms and Conditions
Although authors are permitted to re-use all or portions of the Work in other works, this does not include granting third-party requests for reprinting, republishing, or other types of re-use.
Our Articles are licensed under CC BY-NC

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