Sentiment Analysis on Social Media X (Twitter) Against ChatGBT Using the K-Nearest Neighbors Algorithm

Authors

  • Asep Arwan Sulaeman Universitas Pelita Bangsa, Indonesia
  • Muhtajuddin Danny Universitas Pelita Bangsa, Indonesia
  • Sufajar Butsianto Universitas Pelita Bangsa, Indonesia
  • Suria Pratama Universitas Pelita Bangsa, Indonesia

DOI:

https://doi.org/10.47709/brilliance.v4i1.4105

Keywords:

ChatGPT, K-Nearest Neighbors (KNN), sentiment analysis, Twitter

Abstract

This research aims to analyze the public's response to ChatGPT through data obtained from Twitter. Apart from that, it is also to understand whether people's responses tend to be positive or negative towards ChatGPT, as well as to test the performance of the K-Nearest Neighbors (KNN) method in classifying sentiment patterns in tweet data. The sentiment analysis method is carried out by dividing public responses into positive and negative categories. Next, the performance of the K-Nearest Neighbors (KNN) method was tested with varying k values ??to classify sentiment patterns in tweet data. This testing includes dataset division, vectorization of text data using TF-IDF, initialization and training of the KNN model, and evaluation of model performance using metrics such as precision, recall, and f1-score. The results of sentiment analysis show that the majority of people's responses to ChatGPT are positive (74.3%), while 25.7% of responses are negative. Performance testing of the KNN model shows that the highest accuracy of 88% is achieved when the k value is 5. Evaluation of model performance also shows satisfactory levels of precision, recall and f1-score. Based on the research results, it was concluded that sentiment analysis and classification using KNN were effective in understanding people's responses to ChatGPT

References

Anna Baita, Yoga Pristyanto, & Nuri Cahyono. (2021). Analisis Sentimen Mengenai Vaksin Sinovac Menggunakan Algoritma Support Vector Machine (SVM) dan K-Nearest Neighbor (KNN). Information System Journal (INFOS), 4(2), 42–46.

Diwandanu, M. T., & Wisudawati, L. M. (2023). ANALISIS SENTIMEN TERHADAP TWIT MAXIM PADA TWITTER MENGGUNAKAN R PROGRAMMING DAN K NEAREST NEIGHBORS. Jurnal Ilmiah Informatika Komputer, 28(1), 1–16. https://doi.org/10.35760/ik.2023.v28i1.7909

Endang Sholihatin, Agatha Diani Putri Saka, Desta Rizky Andhika, Abdi Pranawa Satura Ardana, Chasetyo Ivan Yusaga, Rachmananta Ibnu Fajar, & Bagas Alif Virgano. (2023). Pemanfaatan Teknologi Chat GPT dalam Pembelajaran Bahasa Indonesia di Era Digital pada Mahasiswa Universitas Pembangunan Nasional Veteran Jawa Timur. Jurnal TUAH, 5(1), 1–10.

Fransiska Vina Sari, & Arief Wibowo. (2019). ANALISIS SENTIMEN PELANGGAN TOKO ONLINE JD.ID MENGGUNAKAN METODE NAÏVE BAYES CLASSIFIER BERBASIS KONVERSI IKON EMOSI. Jurnal SIMETRIS, 10(2), 681–686.

Hassani, N. (2019). The Flouting Maxim on Twitter Influencers’ Tweets. Journal of Pragmatics Research, 1(2), 139–155. https://doi.org/10.18326/jopr.v1i2.139-155

Irsalinda, N., Haswat, H., Sugiyarto, S., & Fitrianawati, M. (2021). Hidden Markov Model for Sentiment Analysis using Viterbi Algorithm. EKSAKTA: Journal of Sciences and Data Analysis, 18–23. https://doi.org/10.20885/EKSAKTA.vol2.iss1.art3

Irwansyah Suwahyu, Sofyan Taurid Ode Madi, Andi Ahmad Taufiq, & Andi Faiz Nabiel Rasyid. (2024). Analisis Pengaruh Kepercayaan dan Pemanfaatan Teknologi Terhadap Penggunaan Chat-GPT. INTEC Journal: Information Technology Education Journal, 3(2), 105–109.

Lubis, R. K., Zein, A., & Salsabiela, I. (2024). Hubungan Empiris Chat GPT Pada Pembelajaran Mahasiaswa Bisnis Digital Di STMIK Pelita Nusantara Medan. Jurnal Sains Dan Teknologi, 5(3), 900–903. https://doi.org/10.55338/saintek.v5i3.2857

Novianti, E. W., & Wibowo, W. (2022). Analisis Sentimen Pengguna Twitter terhadap Program Kartu Prakerja di Tengah Pandemi Covid-19 Menggunakan Metode Naïve Bayes Classifier. Jurnal Sains Dan Seni ITS, 11(1). https://doi.org/10.12962/j23373520.v11i1.63552

Rinata, A. R., & Dewi, S. I. (2019). FANATISME PENGGEMAR KPOP DALAM BERMEDIA SOSIAL DI INSTAGRAM. Interaksi: Jurnal Ilmu Komunikasi, 8(2), 13. https://doi.org/10.14710/interaksi.8.2.13-21

Rizqi Irawan, F. (2022). ANALISIS SENTIMEN TERHADAP PENGGUNA GOJEK MENGGUNAKAN METODE K-NEARSET NEIGHBORS. JIKO (Jurnal Informatika Dan Komputer), 5(1), 62–68. https://doi.org/10.33387/jiko.v5i1.4267

Sandova, F., Kurniawan, R., & Supratati, T. (2024). PENERAPAN DATA MINING MENGGUNAKAN METODE K-MEANS CLUSTERING PADA PENJUALAN TAS DI ASIA TOSERBA CIREBON. JATI (Jurnal Mahasiswa Teknik Informatika), 8(1), 245–251. https://doi.org/10.36040/jati.v8i1.8330

Septi Hasanah, Intan Purwasih, & Imam Santoso. (2023). Analisis Sentimen Terhadap Masyarakat Adanya Uang Kertas Baru Menggunakan Algoritma K-Nearest Neighbor(KNN). Ikraith-Informatika, 7(2), 139–155.

Syaifuddin, A., Harianto, R. A., & Santoso, J. (2021). Analisis Trending Topik untuk Percakapan Media Sosial dengan Menggunakan Topic Modelling Berbasis Algoritme LDA. Journal of Intelligent System and Computation, 2(1), 12–19. https://doi.org/10.52985/insyst.v2i1.150

Triyono, T., & Febriani, R. D. (2018). PENTINGNYA PEMANFAATAN TEKNOLOGI INFORMASI OLEH GURU BIMBINGAN DAN KONSELING. Jurnal Wahana Konseling, 1(2), 74. https://doi.org/10.31851/juang.v1i2.2092

Downloads

Published

2024-07-01

How to Cite

Arwan Sulaeman, A., Danny, M., Butsianto, S., & Pratama, S. (2024). Sentiment Analysis on Social Media X (Twitter) Against ChatGBT Using the K-Nearest Neighbors Algorithm. Brilliance: Research of Artificial Intelligence, 4(1), 265–275. https://doi.org/10.47709/brilliance.v4i1.4105

Most read articles by the same author(s)

Similar Articles

1 2 3 4 5 6 7 8 9 10 > >> 

You may also start an advanced similarity search for this article.