Analisis Sentimen Pengalaman Pengguna Twitter Terhadap ChatGPT Menggunakan CNN dan LSTM
DOI:
https://doi.org/10.30998/jrami.v7i04.2333Keywords:
Long short-term memory, Convolutional neural network, Twitter (X), ChatGPT, Analisis SentimenAbstract
The development of generative artificial intelligence, particularly ChatGPT, has elicited various responses from users on the social media platform Twitter (X), including support, criticism, concerns, and neutral information. This research aims to analyze Twitter (X) users' sentiments toward ChatGPT and compare the performance of the Convolutional Neural Network (CNN) and Long Short-Term Memory (LSTM) models in classifying negative, neutral, and positive sentiments. The research uses a quantitative approach based on deep learning. Data were collected using the keywords "ChatGPT" and "Chat GPT." From the 11,210 tweets obtained, 10,586 were used after the cleansing process, which involved removing URLs, mentions, hashtags, emojis, symbols, punctuation, special characters, and excessive spaces. The data distribution consists of 6,281 negative tweets, 3,484 neutral, and 821 positive. The data was divided with an 80:20 ratio into 8,468 training data and 2,118 test data. Evaluation used accuracy, precision, recall, and F1-score. CNN achieved an accuracy of 69.55%, a macro F1-score of 57.17%, and a weighted F1-score of 69.36%, while LSTM achieved an accuracy of 72.29%, a macro F1-score of 62.07%, and a weighted F1-score of 72.78%. LSTM produced 1,531 correct predictions, while CNN produced 1,473. Based on these results, LSTM shows better performance in classifying sentiment toward ChatGPT.
Downloads
References
Ahmad, S., Ridwan, A. M., & Setyawan, G. D. (2023). Analisis Sentimen Product Tools & Home Menggunakan Metode CNN Dan LSTM. Teknokom, 6(2), 133–140. https://doi.org/10.31943/teknokom.v6i2.154
Alfin, A. A., Kurniasari, L., & Yanuartanti, I. (2023). INFORMASI (Jurnal Informatika dan Sistem Informasi) Volume 15 No.1 / Mei / 2023. INFORMASI (Jurnal Informatika Dan Sistem Informasi), 15(1), 32–45.
Appiah, E., & Htait, A. (2024). AI in the Public Eye: Analysing Social Media Sentiment and Opinion on Artificial Intelligence. Proceedings of Machine Learning Research, 295, 1–15.
Ayuningtyas, P., Khomsah, S., & Sudianto, S. (2024). Pelabelan Sentimen Berbasis Semi-Supervised Learning menggunakan Algoritma LSTM dan GRU. JISKA (Jurnal Informatika Sunan Kalijaga), 9(3), 217–229. https://doi.org/10.14421/jiska.2024.9.3.217-229
Hanan, D. A., Husodo, A. Y., & Rassy, R. P. (2025). Sentiment Study of ChatGPT on Twitter Data with Hybrid K-Means and LSTM. MATRIK : Jurnal Manajemen, Teknik Informatika Dan Rekayasa Komputer, 24(2), 273–284. https://doi.org/10.30812/matrik.v24i2.4791
Handoko, H., Asrofiq, A., Junadhi, J., & Negara, A. S. (2024). Sentiment Analysis of Sirekap Tweets Using CNN Algorithm. INTENSIF: Jurnal Ilmiah Penelitian Dan Penerapan Teknologi Sistem Informasi, 8(2), 312–329. https://doi.org/10.29407/intensif.v8i2.23046
Isnain, A. R., Supriyanto, J., & Kharisma, M. P. (2021). Implementation of K-Nearest Neighbor (K-NN) Algorithm For Public Sentiment Analysis of Online Learning. IJCCS (Indonesian Journal of Computing and Cybernetics Systems), 15(2), 121. https://doi.org/10.22146/ijccs.65176
Joloudari, J. H., Hussain, S., Nematollahi, M. A., Bagheri, R., Fazl, F., Alizadehsani, R., Lashgari, R., & Talukder, A. (2023). BERT-Deep CNN: State-of-the-Art for Sentiment Analysis of COVID-19 Tweets. 2, 306–312.
Juwiantho, H., Setiawan, E. I., Santoso, J., Purnomo, M. H., Informasi, D. T., Tinggi, S., Surabaya, T., Elektro, D. T., Elektro, F. T., Komputer, D. T., Elektro, F. T., Korespondensi, P., Convolutional, D., & Network, N. (2020). Sentiment Analysis Twitter Bahasa Indonesia Berbasis Word2Vec Menggunakan Deep Convolutional Neural Network. 7(1), 181–188. https://doi.org/10.25126/jtiik.202071758
Miyazaki, K., Murayama, T., Uchiba, T., An, J., & Kwak, H. (2024). Public perception of generative AI on Twitter : an empirical study based on occupation and usage. https://doi.org/10.1140/epjds/s13688-023-00445-y
Mohbey, K. K., Meena, G., Kumar, S., & Lokesh, K. (2022). A CNN-LSTM-based hybrid deep learning approach to detect sentiment polarities on Monkeypox tweets. 1–11. http://arxiv.org/abs/2208.12019
Muammar Khadapi, & Pakpahan, V. M. (2024). Analisis Sentimen Berbasis Jaringan LSTM dan BERT terhadap Diskusi Twitter tentang Pemilu 2024. JUKI : Jurnal Komputer Dan Informatika, 6(2), 130–137. https://doi.org/10.53842/juki.v6i2.681
Mudding, A. A., & Arifin A Abd Karim. (2022). Analisis Sentimen Menggunakan Algoritma Lstm Pada Media Sosial. Jurnal Publikasi Ilmu Komputer Dan Multimedia, 1(3), 181–187. https://doi.org/10.55606/jupikom.v1i3.517
Pipin, S. J., & Kurniawan, H. (2022). Analisis Sentimen Kebijakan MBKM Berdasarkan Opini Masyarakat di Twitter Menggunakan LSTM. 23(2), 197–208.
Prasetyo, A. P., Sri Kusuma, C., & Rizki, D. (2024). Analisis Sentimen Twitter terhadap Isu Penundaan Pemilu 2024 Menggunakan Metode Long Short-Term Memory (LSTM). Jurnal Repositor, 6(3), 293–304. https://doi.org/10.22219/repositor.v6i3.32643
Sutejo, B. S. I., Aryani, D., & Asianto, A. (2025). Pemodelan Pengaruh Risiko dengan Pendekatan Centrality dan Graph-based Learning Approach pada Transformasi Digital Kesehatan. JUKI : Jurnal Komputer Dan Informatika, 7(2), 249–258. https://doi.org/10.53842/juki.v7i2.1992
Tukino, T. (2025). Penerapan Algoritma Convolutional Neural Network Untuk Klasifikasi Sentimen Pada Layanan e-Commerce. Jurnal Desain Dan Analisis Teknologi, 4(1), 44–53. https://doi.org/10.58520/jddat.v4i1.72
Wardianto, Farikhin, D. M. K. N. (2023). Analisis Sentimen Berbasis Aspek Ulasan Pelanggan Restoran Menggunakan LSTM Dengan Adam Optimizer. 7(1), 67–76.
Zakharia, A., Hasanah, H., & Srirahayu, A. (2025). Analisis Sentimen Publik di Twitter tentang Pemanfaatan AI dalam Seni Digital Menggunakan CNN. Jurnal Informatika Dan Teknik Elektro Terapan, 13(3), 536–545.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Adam Mohammad Nur, Bayu Sulistiyanto Ipung Sutejo, Gerry Firmansyah, Budi Tjahjono (Author)

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





