Analisis Sentimen Rencana Penerapan Cukai Pada Minuman Manis Kemasan Menggunakan Algoritma Naive Bayes dan Logistic Regression
Abstract
The plan to impose excise tax on packaged sweetened beverages (PSB) is proposed as a strategic measure to reduce sugar consumption among the public. This policy has elicited various responses from society, especially on social media platforms such as TikTok. The purpose of this study is to evaluate public sentiment towards the PSB excise tax policy by analyzing comments posted on the TikTok platform, comparing the performance of the Naive Bayes and Logistic Regression algorithms. Data were collected from comments on news videos about the implementation of the excise tax on PSB posted by official journalist accounts on TikTok, using the TikTok Comments Scraper available on the apipy website, resulting in 1,332 comments. The data were processed through preprocessing steps including text cleaning, tokenization, stemming, and word weighting using TF-IDF. After expert sentiment labeling, the data were then split into training and testing sets with an 80:20 ratio. Evaluation was conducted using a confusion matrix to obtain performance metrics such as accuracy, precision, recall, and F1-score for each model. The analysis revealed that negative comments dominated at 65.2%, while positive comments accounted for 34.8%. The Logistic Regression algorithm achieved an accuracy of 81.37%, precision of 86.22%, recall of 75.14%, and an F1-score of 77.06%. Meanwhile, the Naive Bayes algorithm obtained an accuracy of 79.85%, precision of 82.19%, recall of 74.17%, and an F1-score of 75.76%. It can be concluded that the majority of TikTok users still express negative responses to the PSB excise tax policy, and the Logistic Regression algorithm demonstrates superior performance in sentiment classification compared to the Naive Bayes algorithm.
Downloads
References
N. Rahmawati and M. Marizal, “Kebebasan Berpendapat Terhadap Pemerintah Melalui Media Sosial Dalam Perspektif Uu Ite,” Jurnal Kajian dan Penelitian Hukum, vol. 3, no. 1, 2021, doi 10.37631/widyapranata.v3i1.270
D. P. R. Adawiyah, “Pengaruh Penggunaan Aplikasi TikTok Terhadap Kepercayaan Diri Remaja di Kabupaten Sampang,” Jurnal Komunikasi, vol. 14, no. 2, pp. 135–148, Oct. 2020, doi: 10.21107/ilkom.v14i2.7504.
International Diabetes Federation, “IDF Diabetes Atlas, 11th Edition - Indonesia Data,” International Diabetes Federation. Accessed: Apr. 27, 2025. [Online]. Available: https://diabetesatlas.org/data-by-location/country/indonesia/
A. N. Rahma, “Urgensi Pengenaan Cukai Pada Minuman Berpemanis Dalam Kemasan,” djpb.kemenkeu.go.id. Accessed: Nov. 28, 2024. [Online]. Available: https://djpb.kemenkeu.go.id/kanwil/sultra/id/data-publikasi/artikel/3134-urgensi-pengenaan-cukai-pada-minuman-berpemanis-dalam-kemasan.html
BPKN-RI, “Penerapan Cukai Minuman Berpemanis, Kemenkeu Mundur Teratur?,” https://bpkn.go.id/. Accessed: Dec. 06, 2024. [Online]. Available: https://bpkn.go.id/beritaterkini/detail/penerapan-cukai-minuman-berpemanis-kemenkeu-mundur-teratur
R. A. Pratama, “Harapan Manis, Cukai Minuman Manis,” https://mediakeuangan.kemenkeu.go.id/. Accessed: Jan. 27, 2025. [Online]. Available: https://mediakeuangan.kemenkeu.go.id/article/show/harapan-manis-cukai-minuman-manis
D. Manuel, Y. Sinurat, D. E. Ratnawati, and D. W. Brata, “Analisis Sentimen Terhadap Kenaikan Cukai Rokok pada Media Sosial Twitter menggunakan Algoritma Naïve Bayes Classifier,” JPTIIK, vol. 7, no. 1, 2023
J. S. Gea and H. Budiati, “Analisis Sentimen Masyarakat Terhadap Direktorat Jenderal Pajak,” Jurnal Sains Dan Komputer, vol. 8, no. 01, pp. 30–36, Jan. 2024, doi: 10.61179/jurnalinfact.v8i01.466.
E. M. Thoriq, D. E. Ratnawati, and B. Rahayudi, “Analisis Sentimen Opini Publik pada Media Sosial Twitter terhadap Vaksin Covid-19 menggunakan Algoritma Support Vector Machine dan Term Frequency-Inverse Document Frequency,” JPTIIK, vol. 5, no. 12, 2021
T. Setiawan, S. Liem, and D. M. R. Pribadi, “Perbandingan Algoritma SVM dan Naïve Bayes dalam Analisis Sentimen Komentar Tiktok pada Produk Skincare,” Applied Information Technology and Computer Science, vol. 3, no. 2, 2024
M. Ridwan Pratama, A. Fauzi, D. Wahiddin, and A. R. Pratama, “Analisis Sentimen Kebijakan Pembelian Gas 3 Kg dengan KTP Menggunakan Naïve Bayes” Jutisi, vol. 13, no. 2, 2024
M. Khoirul, U. Hayati, and O. Nurdiawan, “Analisis Sentimen Aplikasi Brimo Pada Ulasan Pengguna Di Google Play Menggunakan Algoritma Naive Bayes,” Jurnal Mahasiswa Teknik Informatika, Vol. 7, No. 1, 2023, doi 10.36040/jati.v7i1.6373
F. Rizal, A. Wijaya, and F. Hasyim, “Analisis Sentimen Masyarakat Indonesia Terhadap Aplikasi TikTok Menggunakan Algoritma Logistic Regression,” AKIRATECH : Journal of Computer and Electrical Engineering, vol. 1, no. 2, 2024, [Online]. Available: https://journal.ajbnews.com/index.php/akiratech
N. L. P. C. Savitri, R. A. Rahman, R. Venyutzky, and N. A. Rakhmawati, “Analisis Klasifikasi Sentimen Terhadap Sekolah Daring pada Twitter Menggunakan Supervised Machine Learning,” Jurnal Teknik Informatika dan Sistem Informasi, vol. 7, no. 1, Apr. 2021, doi: 10.28932/jutisi.v7i1.3216.
T. M. Fahrudin et al., “Analisis Speech-to-Text pada Video Mengandung Kata Kasar dan Ujaran Kebencian dalam Ceramah Agama Islam Menggunakan Interpretasi Audiens dan Visualisasi Word Cloud,” SKANIKA: Sistem Komputer dan Teknik Informatika, vol. 5, no. 2, pp. 190–202, 2022.
K. Septiani, “Perbandingan Analisis Sentimen Terhadap Pembayaran Digital ‘Go-Pay’ Dan ‘Ovo’ Di Media Sosial Twitter Menggunakan Metode Naive Bayes Dan Word Cloud,” Repository Telkom University, 2022.
A. Ermillian and K. Nugroho, “Perancangan Model Deteksi Potensi Siswa Putus Sekolah Menggunakan Metode Logistic Regression Dan Decision Tree,” Jurnal Informatika: Jurnal Pengembangan IT, vol. 9, no. 3, pp. 281–295, Dec. 2024, doi: 10.30591/jpit.v9i3.8007.
R. Alwi and A. Arif Budiman, “Technology Information and Data Analytic Analisis Sentimen Kepuasan Pelanggan Parfum Scentplus dan Moris di Platform Tik Tok menggunakan Metode Regresi Logistik,” Jurnal Tifda, vol. 1, no. 2, 2024, doi: 10.70491/tifda.v1i2.45.
C. Sa, T. Widiharih, and A. Rachman Hakim, “Klasifikasi Pemberian Kredit Sepeda Motor Menggunakan Metode Regresi Logistik Biner Dan Chi-Squared Automatic Interaction Detection (Chaid) Dengan Gui R (Studi Kasus: Kredit Sepeda Motor di PT X),” Jurnal Gaussian, vol. 10, no. 2, pp. 159–169, 2021, https://ejournal3.undip.ac.id/index.php/gaussian/
D. Putra Marbun et al., “Klasifikasi Kelayakan Pinjaman Nasabah Koperasi Simpan Pinjam Menggunakan Metode Regresi Logistik Biner,” SNESTIK Seminar Nasional Teknik Elektro, Sistem Informasi, dan Teknik Informatika, pp. 415–420, 2022, doi: 10.31284/p.snestik.2022.2810.
Tania Puspa Rahayu Sanjaya, Ahmad Fauzi, and Anis Fitri Nur Masruriyah, “Analisis sentimen ulasan pada e-commerce shopee menggunakan algoritma naive bayes dan support vector machine,” INFOTECH : Jurnal Informatika & Teknologi, vol. 4, no. 1, pp. 16–26, Jun. 2023, doi: 10.37373/infotech.v4i1.422.
S. Proboningrum and A. Sidauruk, “Sistem Pendukung Keputusan Pemilihan Supplier Kain Dengan Metode Moora,” (JSiI) Jurnal Sistem Informasi, vol. 8, no. 1, pp. 43–48, 2021.
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Analisis Sentimen Rencana Penerapan Cukai Pada Minuman Manis Kemasan Menggunakan Algoritma Naive Bayes dan Logistic Regression
Pages: 814-822
Copyright (c) 2025 Gozali Gozali, Kiki Ahmad Baihaqi, Cici Emilia Sukmawati, Deden Wahiddin

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).





















