Analysis of Public Sentiment Regarding the Indonesian Ministry of Trade's Policy Banning the Import of Secondhand Clothing, using the Naïve Bayes Method
DOI:
https://doi.org/10.59934/jaiea.v6i1.2958Keywords:
Naïve Bayes; public opinion; sentiment analysis; thrifting; Twitter/XAbstract
This study analyzes public sentiment toward the Indonesian Ministry of Trade policy on the import ban of second-hand clothing (thrifting) using the Naïve Bayes method. Public opinions were obtained from the X platform and processed through text preprocessing, Term Frequency–Inverse Document Frequency (TF-IDF) feature weighting, Naïve Bayes classification, and evaluation using a confusion matrix. The study collected 537 tweet data and used a 70:30 split, resulting in 375 training data and 162 test data. The TF-IDF stage produced 1,957 features. Sentiment was classified into positive, neutral, and negative categories. The model achieved an accuracy of 76.5%. The actual test-data distribution consisted of 18 positive data, 18 neutral data, and 120 negative data, indicating that negative sentiment was dominant. For the negative class, the thesis reports precision of 76.9%, recall of 98.4%, and F1-score of 86.3%. The system was implemented as an interactive application using Streamlit and provided data input, preprocessing, TF-IDF, Naïve Bayes, evaluation, visualization, and analysis-result interfaces. Black-box testing showed that all ten tested interface functions operated successfully. The results indicate that Naïve Bayes can be used to classify public sentiment on X, although class imbalance limits the recognition of positive and neutral sentiments.
Downloads
References
T. Amalia, “Analisis Sentimen Publik Terkait Kebijakan Larangan Impor Thrifting oleh Kementerian Perdagangan Indonesia Menggunakan Metode Naïve Bayes,” Skripsi, Program Studi Sistem Informasi, STMIK Kaputama, Binjai, 2026.
L. K. Adiyani and J. A. Khusyairi, “Consumption practices of thrifting: Cultural materialism analysis of consumer perspectives,” Jurnal Sosiologi Dialektika, vol. 20, no. 1, pp. 87–100, 2025, doi: 10.20473/jsd.v20i1.2025.87-100.
U. A. Susilo et al., “Analisis Sentimen Opini Masyarakat Twitter Terhadap Kasus Diabetes Di Indonesia Menggunakan Algoritma Naïve Bayes Classifier,” Jurnal Informatika dan Teknik Elektro Terapan, vol. 13, no. 3, pp. 682–689, 2025, doi: 10.23960/jitet.v13i3.6942.
S. Puad et al., “Analisis Sentimen Masyarakat Pada Twitter Terhadap Pemilihan Umum 2024 Menggunakan Algoritma Naïve Bayes,” JATI (Jurnal Mahasiswa Teknik Informatika), vol. 7, no. 3, pp. 1560–1566, 2023, doi: 10.36040/jati.v7i3.6920.
F. P. Syah et al., “Implementasi Naive Bayes Untuk Analisis Sentimen Pada data Twitter Tentang Isu Politik di Indonesia,” LINIER: Literatur Informatika dan Komputer, vol. 2, no. 3, pp. 302–316, 2025, doi: 10.33096/linier.v2i3.3142.
I. Hulu and H. Budiati, “Implementasi Text mining Pada Pengukuran Sentimen Opini Masyarakat Terhadap Universitas Kristen Immanuel,” Jurnal Sains dan Komputer, vol. 7, no. 2, pp. 1–7, 2023, doi: 10.61179/jurnalinfact.v7i02.445.
Khadapi M, Pakpahan VM. Analisis sentimen berbasis jaringan LSTM dan BERT terhadap diskusi Twitter tentang Pemilu 2024. JUKI: Jurnal Komputer dan Informatika. 2024 Nov;6(2):130-7.W. Brata et al., “Streamlit” (as cited and discussed in the thesis), 2024.
B. A. M. Mustofa and W. L. Y. Saptomo, “Use of Natural Language Processing in Social Media Text Analysis,” Journal of Artificial Intelligence and Engineering Applications (JAIEA), vol. 4, no. 2, pp. 1235–1238, 2025, doi: 10.59934/jaiea.v4i2.875.
N. Sari Br Siagian et al., “Analisis Pengaruh Impor Baju Bekas Terhadap Pengusaha Tekstil Dalam Negeri di Indonesia,” Madani: Jurnal Ilmiah Multidisiplin, vol. 1, no. 4, 2023, doi: 10.5281/zenodo.7952262.
R. Wulantari et al., “Pandangan tentang Sustainable Fashion di Kalangan Pengguna Pakaian Bekas di Kota Jambi,” Jurnal Kawistara, vol. 15, no. 1, p. 19, 2025, doi: 10.22146/kawistara.98017.
A. A. Purnama and Y. R. Sipayung, “Sentiment analysis of Public Service Using Naïve Bayes Classifier,” Journal of Information Systems and Informatics, vol. 7, no. 3, pp. 2439–2457, 2025, doi: 10.51519/journalisi.v7i3.120
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Journal of Artificial Intelligence and Engineering Applications (JAIEA)

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








