Analisis Sentimen Masyarakat Terhadap Kebijakan Ekspor Pasir Laut Berdasarkan Ulasan Twitter Menggunakan Algoritma Naive Bayes dan Support Vector Machine
Abstract
The export of sea sand has been banned since 2003 through a Decree of the Minister of Industry and Trade. However, on May 15, 2023, President Joko Widodo once again allowed the export of sea sand through Government Regulation No. 26 of 2023. This policy sparked controversy and went viral on social media, including on Twitter. This study aims to analyze public sentiment toward the policy based on reviews on Twitter using the Naïve Bayes and Support Vector Machine (SVM) algorithms. Data was collected through crawling techniques, then processed using text preprocessing methods, word weighting using TF-IDF, and random oversampling to balance the data. The data was then categorized into four thematic variables—economy, environment, social, and geological policy—to examine a more focused distribution of sentiment. Analysis of 2,765 data points revealed that the majority of sentiment was negative (55%), indicating public opposition to the sea sand export policy, followed by neutral sentiment (30%) and positive sentiment (15%). Performance evaluation shows that SVM excels in the Economy category with nearly 95% accuracy, while in other categories the difference with Naïve Bayes is relatively small. This study is expected to provide insights into the Indonesian public's perception of the sea sand export policy and its implications across various sectors.
Downloads
References
D. Lestari and I. Sari, “Kebijakan Ekspor Pasir Laut Pasca Diundangkan Peraturan Pemerintah Nomor 26 Tahun 2023 Berdasarkan Prespektif Teori Sistem Hukum,” Jurnal Hukum Samudra Keadilan, vol. 18, no. 2, 2023, doi: https://doi.org/10.33059/jhsk.v18i2.8322.
S. Surianti, A. Asrim, and R. Wardana, “Analisis Dampak Penambangan Pasir Laut Terhadap Lingkungan Dan Sosial-Ekonomi Di Desa Kamelanta Kecamatan Kapontori Kabupaten Buton,” Jurnal Media Inovasi Teknik Sipil UNIDAYAN, vol. 12, no. 2, pp. 59–64, Oct. 2023, doi: 10.55340/jmi.v12i2.1433.
C. Rahardjo, “Analisis Pemenuhan Ganti Kerugian Nelayan Akibat dari Kebijakan Ekspor Pasir Laut Melalui Gugatan Perdata,” Dialogia Iuridica, vol. 17, no. 1, pp. 082–110, Apr. 2025, doi: 10.28932/di.v17i1.11286.
D. Lestari and I. Sari, “Kebijakan Ekspor Pasir Laut Pasca Diundangkan Peraturan Pemerintah Nomor 26 Tahun 2023 Berdasarkan Prespektif Teori Sistem Hukum,” Jurnal Hukum Samudra Keadilan, vol. 18, no. 2, 2023, doi: https://doi.org/10.33059/jhsk.v18i2.8322.
D. Anggariani, S. Sahar, and M. Sayful, “Tambang Pasir dan Dampak Sosial Ekonomi Masyarakat di Pesisir Pantai,” SIGn Journal of Social Science, vol. 1, no. 1, pp. 15–29, Feb. 2021, doi: 10.37276/sjss.v1i1.96.
Muammar Gomareuzzaman, “Pemanfaatan Sumber Daya Alam Pasir Laut sebagai Komoditas Tambang Masyarakat di Perairan Kabupaten Karimun, Kepulauan Riau,” Syntax Admiration, vol. 5, p. 8, Aug. 2024, doi: https://doi.org/10.46799/jsa.v5i8.1350.
H. H. Mubaroroh, H. Yasin, and A. Rusgiyono, “Analisis Sentimen Data Ulasan Aplikasi Ruangguru Pada Situs Google Play Menggunakan Algoritma Naïve Bayes Classifier Dengan Normalisasi Kata Levenshtein Distance,” Jurnal Gaussian, vol. 11, no. 2, pp. 248–257, 2022, doi: https://doi.org/10.14710/j.gauss.v11i2.35472.
T. Hidayat, R. Cahyana, and I. T. Julianto, “Analisis Sentimen Layanan Sistem Informasi Akademik Mahasiswa Menggunakan Algoritma Naive Bayes,” Jurnal Algoritma, vol. 21, no. 1, pp. 119–130, May 2024, doi: 10.33364/algoritma/v.21-1.1514.
S. Catur Sakti Kendari and D. Panjaitan, “Penerapan Algoritma Support Vector Machine (SVM) untuk Deteksi Penyakit Mata Katarak Yonal Supit,” IJIDS, vol 2, no 2, 2024, doi: https://doi.org/10.30989/ijds.v2i2.1449.
R. A. Hasibuan, D. E. Ratnawati, and R. S. Perdana, “Analisis Sentimen Kebijakan Ekspor Pasir Laut Pada Sosial Media Twitter Menggunakan Algoritma Support Vector Machine,” Justsi, vol 5, no 1, 2024. doi: https://doi.org/10.25126/justsi.v5i1.373.
C. Fan, M. Chen, X. Wang, J. Wang, and B. Huang, “A Review on Data Preprocessing Techniques Toward Efficient and Reliable Knowledge Discovery From Building Operational Data,” Frontiers Media S.A., Mar. 29, 2021, doi: 10.3389/fenrg.2021.652801.
Q. Huang and T. Zhao, “Data Collection and Labeling Techniques for Machine Learning,” arxiv, Jun. 2024, [Online]. Available: http://arxiv.org/abs/2407.12793
I. Anbi Fahrezi, and N. Azmi Verdikha, “Analisis Sentimen Twitter Atas Isu Hak Angket Menggunakan Pembobotan TF-IDF dan Algoritma SVM,” Sci-Tech Journal, vol 3, no 2, 2024, doi: https://doi.org/10.56709/stj.v3i2.526.
G. Haixiang, L. Yijing, J. Shang, G. Mingyun, H. Yuanyue, and G. Bing, “Learning from class-imbalanced data: Review of methods and applications,” Elsevier Ltd., May 01, 2017, doi: 10.1016/j.eswa.2016.12.035.
N. P. Y. T. Wijayanti, E. N. Kencana, and I. W. Sumarjaya, “SMOTE: Potensi Dan Kekurangannya Pada Survei,” E-Jurnal Matematika, vol. 10, no. 4, p. 235, Nov. 2021, doi: 10.24843/mtk.2021.v10.i04.p348.
M. Mujahid et al., “Data oversampling and imbalanced datasets: an investigation of performance for machine learning and feature engineering,” J Big Data, vol. 11, no. 1, Dec. 2024, doi: 10.1186/s40537-024-00943-4.
S. Busono, “Optimasi Naive Bayes Menggunakan Algoritma Genetika Sebagai Seleksi Fitur Untuk Memprediksi Performa Siswa,” Jurnal Ilmiah Teknologi Informasi Asia, vol. 14, no. 1, 2020, doi: https://doi.org/10.32815/jitika.v14i1.400.
M. Wasil and M. Mahpuz, “Analisis Pengaruh Faktor Kemiskinan Terhadap Tingkat Kesehatan Dan Gaya Hidup Masyarakat Desa Suralaga, Lombok Timur, Menggunakan Algoritma Support Vector Machine (SVM),” Infotek: Jurnal Informatika dan Teknologi, vol. 4, no. 1, pp. 11–19, Jan. 2021, doi: 10.29408/jit.v4i1.2978.
M. Chandra and R. Yususf, “Visualization Of Keywords In The 2024 Election News Using Spacy And Wordcloud,” TEKNIMEDIA: Teknologi Informasi Dan Multimedia, vol. 5, pp. 41–46, Jun. 2024, doi: https://doi.org/10.46764/teknimedia.v5i1.187.
Y. Huang, Y. Wang, and F. Ye, “A Study of the application of word cloud visualization in college english teaching,” International Journal of Information and Education Technology, vol. 9, no. 2, pp. 119–122, Feb. 2019, doi: 10.18178/ijiet.2019.9.2.1185.
B. F. S. Supriyanto and S. Rosalin, “Analisis Sentimen Program Merdeka Belajar dengan Text Analysis Wordcloud & Word Frequency,” Jurnal Minfo Polgan, vol. 12, no. 1, pp. 25–32, Mar. 2023, doi: 10.33395/jmp.v12i1.12312.
C. Steven, “The Right Sentiment Analysis Method of Indonesian Tourism in Social Media Twitter Case Study: The City of Bali,” 102 IJNMT, vol. VII, no. 2, 2020, doi: http://dx.doi.org/10.31937/ijnmt.v7i2.1732.
J. K. Kim, A. Khondker, M. E. Chua, M. Rickard, and A. Lorenzo, “Sentiment analysis of U.S. News & World Report Best Children’s Hospital urology rankings: A difference in positivity between the public and academic worlds,” J Pediatr Urol, vol. 20, pp. S81–S85, Jan. 2024, doi: 10.1016/j.jpurol.2024.06.001.
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Analisis Sentimen Masyarakat Terhadap Kebijakan Ekspor Pasir Laut Berdasarkan Ulasan Twitter Menggunakan Algoritma Naive Bayes dan Support Vector Machine
Pages: 1309-1319
Copyright (c) 2025 Zarqani Zarqani, M Afdal, Rice Novita, Megawati Megawati

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





















