ANALISIS SENTIMEN MASYARAKAT INDONESIA TERHADAP KASUS PERSETERUAN YAI MIM DAN SAHARA DI TIKTOK MENGGUNAKAN ALGORITMA NAIVE BAYES

Authors

  • Darryl Yanuar Ar-rafi Universitas Pelita Bangsa
  • Asep Arwan Sulaeman Universitas Pelita Bangsa
  • Handala Simetris Harahap Universitas Pelita Bangsa

DOI:

https://doi.org/10.23969/jp.v11i02.48841

Keywords:

Analisis Sentimen, TikTok, Naïve Bayes, Neural Network, TF-IDF, Text Mining

Abstract

This study aims to analyze public sentiment toward the conflict case between Yai Mim and Sahara, which went viral on the TikTok platform. The data used in this study were TikTok user comments collected using Apify Instant Data Scraper, with a total of 10,504 comments. The research stages included data preprocessing (cleaning, normalization, tokenization, stopword removal, and stemming), sentiment labeling using a lexicon-based approach, feature weighting using the Term Frequency–Inverse Document Frequency (TF-IDF) method, and classification using the Naïve Bayes algorithm. As a comparison model, this study also implemented the Neural Network algorithm to compare classification performance. Model testing was conducted using four data split scenarios: 90:10, 80:20, 70:30, and 60:40 for training and testing data. The results showed that the Naïve Bayes model achieved the highest accuracy of 94.85% in the 90:10 scenario. Meanwhile, the Neural Network model demonstrated better performance with the highest accuracy of 96.49% in the 80:20 scenario. Based on these results, the 80:20 scenario was selected as the main reference because it provides a better balance in model evaluation. Overall, the combination of TF-IDF, Naïve Bayes, and Neural Network methods proved effective in classifying Indonesian sentiment comments on TikTok social media, with Neural Network showing more optimal performance compared to Naïve Bayes.

Downloads

Download data is not yet available.

References

S. R. Department, “Jumlah Pengguna TikTok di Indonesia Capai 157,6 Juta pada 2024,” 2024. [Online]. Available: https://tekno.kompas.com/read/2024/10/25/15020057/indonesia-pengguna-tiktok-terbesar-di-dunia-tembus-157-juta-kalahkan-as

DataReportal, “Rata-Rata Waktu Penggunaan TikTok di Indonesia Mencapai 45 Jam per Bulan,” 2025, Data.AI via GoodStats. [Online]. Available: https://data.goodstats.id/statistic/publik-ri-habiskan-hampir-45-jam-sebulan-di-tiktok-kalahkan-rata-rata-global-OxYPF

M. Arvyantomo and N. Ratama, “Analisis Sentimen Masyarakat Indonesia Terhadap Invasi Russia Di Ukraina Menggunakan Metode Naïve Bayes Pada Media Sosial Facebook,” J. Ilmu Komput. dan Pendidik., vol. 1, pp. 705–717, 2023, [Online]. Available: https://journal.mediapublikasi.id/index.php/logic

N. Apriliani, N. Suarna, and W. Prihartono, “Analisis Sentimen Review Penggunaan Tiktok Melalui Pendekatan Algoritma Naïve Bayes,” JATI (Jurnal Mhs. Tek. Inform., vol. 7, no. 6, pp. 3725–3731, 2024, doi: 10.36040/jati.v7i6.8299.

P. S. Rahmadani, F. C. Tampubolon, A. N. Jannah, N. L. H. Hutabarat, and A. M. Simarmata, “Tiktok Social Media Sentiment Analysis Using the Nave Bayes Classifier Algorithm,” SinkrOn, vol. 7, no. 3, pp. 995–999, 2022, doi: 10.33395/sinkron.v7i3.11579.

A. Kusuma and A. Nugroho, “Analisa Sentimen Pada Twitter Terhadap Kenaikan Tarif Dasar Listrik Dengan Metode Naïve Bayes,” J. Ilm. Teknol. Inf. Asia, vol. 15, no. 2, pp. 137–146, 2021, doi: 10.32815/jitika.v15i2.557.

Farendika Rezzi, “Penerapan Algoritma Multinomial Naïve Bayes dengan Penyeimbangan Data SMOTE pada Kl Asifikasi Sentimen Pengguna Shopee terhadap Produk Facial Wash Kahf,” Uranus J. Ilm. Tek. Elektro, Sains dan Inform., vol. 3, no. 3, pp. 01–12, 2025, doi: 10.61132/uranus.v3i3.1022.

R. A. Puspala Sari and I. D. Jaya, “Penerapan Algoritma Naïve Bayes Untuk Analisis Sentimen Pengguna My JNE,” J. Multidisiplin West Sci., vol. 2, no. 03, pp. 215–221, 2023, doi: 10.58812/jmws.v2i03.269.

A. Ashari, G. Dwi, F. Harahap, and R. Rosnelly, “ANALISIS SENTIMEN PADA ULASAN PENGGUNA TIKTOK DAN TOKOPEDIA MENGUNAKAN MESIN LEARNING BERBASIS NAIVE BAYES CLASSIFIER,” pp. 132–140, 2025, doi: https://doi.org/10.46576/syntax.v6i1.6960.

J. Alfiah Zulqornain and P. Pandu Adikara, “Analisis Sentimen Tanggapan Masyarakat Aplikasi Tiktok Menggunakan Metode Naïve Bayes dan Categorial Propotional Difference (CPD),” J. Pengemb. Teknol. Inf. dan Ilmu Komput., vol. 5, no. 7, pp. 2886–2890, 2021, [Online]. Available: https://j-ptiik.ub.ac.id/index.php/j-ptiik/article/view/9396

M. Ziddan, H. F. Adiyatma, and A. P. Sari, “Analisis Sentimen Produk pada Tiktok Shop dengan Metode Naive Bayes,” vol. 9, pp. 22098–22106, 2025.

A. N. Elly Indrayuni, “ANALISIS SENTIMEN APLIKASI TIKTOK SHOP SELLER CENTER MENGGUNAKAN NAIVE BAYES, SVM DAN LOGISTIC REGRESSION,” LPPM Nusa Mandiri, vol. 18, no. 1, pp. 84–92, 2023, doi: https://doi.org/10.33480/inti.v20i1.6851.

J. C. Setiawan, K. M. Lhaksmana, and B. Bunyamin, “Sentiment Analysis of Indonesian TikTok Review Using LSTM and IndoBERTweet Algorithm,” JIPI (Jurnal Ilm. Penelit. dan Pembelajaran Inform., vol. 8, no. 3, pp. 774–780, 2023, doi: 10.29100/jipi.v8i3.3911.

T. Ramadhani, Y. A. Sari, and E. Santoso, “Analisis Sentimen Masyarakat Indonesia terhadap Covid-19 pada Media Sosial Twitter menggunakan Metode Naïve Bayes,” J. Pengemb. Teknol. Inf. dan Ilmu Komput., vol. 5, no. 12, pp. 5680–5686, 2021, [Online]. Available: https://j-ptiik.ub.ac.id/index.php/j-ptiik/article/view/10325

N. Hayati, S. Tri Nowo, B. Suhardi, and R. Rosnelly, “Analisis Sentimen Komentar Youtube Terhadap Isu Kesehatan Mental Menggunakan Algoritma Naïve Bayes Dan K-Nearest Neighbor (Knn),” Syntax J. Softw. Eng. Comput. Sci. Inf. Technol., vol. 6, no. 1, pp. 8–16, 2025, doi: 10.46576/syntax.v6i1.6060.

Y. Yulistiani and S. Styawati, “Analisis Sentimen Terhadap Calon Presiden Indonesia 2024 dengan Metode Extreme Gradient Boosting (XGBOOST),” J. Inform. J. Pengemb. IT, vol. 9, no. 3, pp. 322–328, 2024, doi: 10.30591/jpit.v9i3.6127.

D. Pramudita, Y. Akbar, and T. Wahyudi, “MALCOM: Indonesian Journal of Machine Learning and Computer Science Sentiment Analysis of the Indonesian Smart College Card Program on Social Media X Using the Naive Bayes Algorithm Analisis Sentimen Terhadap Program Kartu Indonesia Pintar Kuliah Pada Med,” Malcom, vol. 4, no. October, pp. 1420–1430, 2024, doi: https://doi.org/10.57152/malcom.v4i4.1565.

M. R. Maulana and R. A. Putri, “Sentiment Analysis of the 2024 General Election Commission in Indonesia through Twiter using the Support Vector Machine (SVM) Algorithm,” Sistemasi, vol. 13, no. 3, p. 1226, 2024, doi: 10.32520/stmsi.v13i3.4127.

I. Syahrohim, S. D. Saputra, R. W. Saputra, V. H. Pranatawijaya, and R. Priskila, “Perbandingan Analisis Sentimen Setelah Pilpres 2024 Di Twitter Menggunakan Algoritma Machine Learning,” J. Inform. dan Tek. Elektro Terap., vol. 12, no. 2, 2024, doi: 10.23960/jitet.v12i2.4249.

Downloads

Published

2026-05-28