Sentiment Analysis of TikTok Netizens on Oil Palm Issues in Papua Using KNN

Authors

  • Annisa Karima Universitas Malikussaleh, Indonesia
  • Naufal Abdulillah Universitas Malikussaleh, Indonesia
  • Aril Maulana Universitas Malikussaleh, Indonesia
  • Satria Harry Menov Universitas Malikussaleh, Indonesia
  • T. Sukma Achriadi Sukiman Universitas Malikussaleh, Indonesia

DOI:

https://doi.org/10.47709/brilliance.v6i1.8073

Keywords:

Sentiment Analysis, TikTok, TF-IDF, K-Nearest Neighbors (KNN), oil palm, Papua

Abstract

Oil palm plantation in Papua has become a controversial issue that has generated diverse responses from the public, particularly regarding concerns over environmental impacts and ecosystem sustainability. These differing perspectives create the need to comprehensively and objectively understand public perceptions. This study aims to analyze the sentiment of Indonesian netizens toward the policy of oil palm plantation in Papua using a machine learning–based sentiment analysis approach. The research data were collected from user comments on the TikTok platform, which were subsequently processed through preprocessing stages, translation into English, and automatic labeling using TextBlob. The labeled data were then represented using Term Frequency–Inverse Document Frequency (TF-IDF) weighting and classified using the K-Nearest Neighbors (KNN) algorithm. The classification results using the K-Nearest Neighbors (KNN) algorithm indicate that out of a total of 220 data samples, 31 data (14%) were classified as positive sentiment and 189 data (86%) as negative sentiment. The classification process using the K-Nearest Neighbors (KNN) algorithm with the optimal K value of 5 achieved an accuracy of 77.27%, with a precision of 74.90%, recall of 66.00%, and an F1-score of 67.65%. The recall value for the positive class is relatively low, at 38.46%, indicating that the model still faces challenges in correctly identifying all positive data. This limitation is attributed to the imbalance in data distribution and the complexity of language used in social media comments. Nevertheless, the overall classification results suggest that the majority of netizens tend to oppose oil palm plantation in Papua, mainly due to concerns about environmental impacts and ecosystem degradation.

References

Alvionika, N., Faisal, S., Rahmat, R., & Masruriyah, A. F. N. (2024). Analisis Sentimen Pada Komentar Instagram Provider By.U Menggunakan Metode K-Nearest Neighbors (KNN). Jurnal Algoritma, 21(2), 50–63. https://doi.org/10.33364/algoritma/v.21-2.1672

BAPPENAS, BRIN, & BPLH. (2024). Status keanekaragaman hayati ekoregion sulawesi 2024. 384. https://perpustakaan.bappenas.go.id/e-library/file_upload/koleksi/dokumenbappenas/konten/Dokumen 2025/Konten/Buku_Status Kehati Ekoregion Sumatra_.pdf

Hakim, B. (2021). ANALISA SENTIMEN DATA TEXT PREPROCESSING PADA DATA MINING DENGAN MENGGUNAKAN MACHINE LEARNING DATA TEXT PRE-PROCESSING SENTIMENT ANALYSIS IN DATA MINING USING MACHINE LEARNING School of Computer Science and Technology , Harbin Institute of Technology. Journal of Business and Audit Information Systems, 4(2), 16–22.

Ayuk Pusvita, E., Stefanus, D., Ranggup, P., & Arfan, U. (2025). MALCOM: Indonesian Journal of Machine Learning and Computer Science Machine Learning-Based Sentiment Analysis of Public Opinion on Palm Oil Plantation Expansion in Papua Implementasi Machine Learning untuk Analisis Sentimen Opini Publik Mengenai Pembukaan. 5(October), 1396–1405.

Indri Anggraini, & Prima Mulyasari Agustini. (2025). Tiktok sebagai Mesin Viralitas: Studi Tren Boost Juice di Kalangan Gen Z Jabodetabek. Da’watuna: Journal of Communication and Islamic Broadcasting, 5(4), 387–401. https://doi.org/10.47467/dawatuna.v5i4.8179

Karima, A., Ulya, A., Sukiman, T. S. A., & Zufia, A. (2025). Twitter Sentiment Analysis on the Iran-Israel Conflict Using the Naïve Bayes Classification Algorithm. 6(2), 930–943. https://doi.org/10.30596/jcositte.v6i2.26093

Li, C., Fu, J., Lai, J., Sun, L., Zhou, C., Li, W., Jian, B., Deng, S., Zhang, Y., Guo, Z., Liu, Y., Zhou, Y., Xie, S., Hou, M., Wang, R., Chen, Q., & Wu, Y. (2023). Construction of an Emotional Lexicon of Patients With Breast Cancer: Development and Sentiment Analysis. Journal of Medical Internet Research, 25(1). https://doi.org/10.2196/44897

Murtiwiyati, M., Arini, R. F., Safitri, L., Widianti, S., & Setiadi, I. (2025). Implementasi Algoritma K-Nearest Neighbors untuk Klasifikasi Sentimen pada Ulasan Pakaian Anak di Platform TikTok Shop. Jurnal Minfo Polgan, 14(2), 2921–2928. https://doi.org/10.33395/jmp.v14i2.15538

Nisa, A. D. M. K., Sa’diah, N. L., Fitriyani, L., Fitranti, A. N., & Setiawan, A. (2025). Penerapan Machine Learning Dengan K-Nearest Neighbors (Knn) Untuk Identifikasi Jenis Bunga Berdasarkan Karakteristik Fisik. Jmsi, 6(2), 205–213.

Pinem, T. H., & Putra, Z. P. (2025). Evaluasi Kinerja Algoritma Klasifikasi Deep Learning dalam Prediksi Diabetes. Jurnal Ilmiah FIFO, 17(1), 17. https://doi.org/10.22441/fifo.2025.v17i1.003

Purnamasari, D., Aji, A. B., Wulandari, D., Reza, F. A., Safrila, M., Yanda, N., & Hidayati, U. (2023). Pengantar Metode Analisis Sentimen. In Pengantar Metode Analisis Sentimen.

Rahmawati A. Damiti, Parid Pakaya, Mawardi Heru Prasetyo, Dewi Wahyuni K. Baderan, & Ramli Utina. (2025). Stabilitas Ekosistem Hutan Indonesia dalam Menghadapi Deforestasi dan Kerusakan Lingkungan: Tinjauan Literatur. Botani?: Publikasi Ilmu Tanaman Dan Agribisnis, 2(2), 176–188. https://doi.org/10.62951/botani.v2i2.343

Randy Suryono, R. (2025). Sentiment Analysis of the Influence of the Korean Wave in Indonesia Using the Naive Bayes Method and Support Vector Machine Analisis Sentimen Pengaruh Korean Wave Di Indonesia Dengan Metode Naive Bayes Dan Support Vector Machine. Jurnal Inovtek Polbeng - Seri Informatika, 10(1), 308–319.

Sari, H., Leonarde Ginting, G., Zebua, T., & Mesran. (2021). Penerapan Algoritma Text Mining Dan TF-IDF untuk Pengelompokan Topik Skripsi pada Aplikasi Repository STMIK Budi Darma. Terapan Informatika Nusantara, 2(7), 414–432. https://ejurnal.seminar-id.com/index.php/tin

Wong, J., Sanu, I., & Irsyad, H. (2025). Implementasi TF-IDF, Cosine Similarity, dan Logistic Regression Pada Rekomendasi Buku Berdasarkan Mood Pembaca Dengan Data Oversampling. Device?: Journal of Information System, Computer Science and Information Technology, 6(1), 142–154. https://doi.org/10.46576/device.v6i1.6499

Downloads

Published

2026-04-21

How to Cite

Karima, A., Abdulillah, N., Maulana, A., Menov, S. H., & Sukiman, T. S. A. (2026). Sentiment Analysis of TikTok Netizens on Oil Palm Issues in Papua Using KNN. Brilliance: Research of Artificial Intelligence, 6(1), 121–131. https://doi.org/10.47709/brilliance.v6i1.8073

Most read articles by the same author(s)