Jurnal Ilmu Komputer
Vol 4 No 1 (2026): Jurnal Ilmu Komputer (Edisi Januari 2026)

Analisis Sentimen Terhadap Chatgpt Dan Gemini Dengan Algoritma K-Nearest Neighbor, Decision Tree Dan Naïve Bayes

Dika Prasetya (Unknown)



Article Info

Publish Date
31 Jan 2026

Abstract

The rapid development of artificial intelligence technology has increased the widespread use of AI-based chatbots such as ChatGPT and Gemini. The extensive adoption of these technologies has generated diverse public opinions, which are frequently expressed through social media platforms, particularly X (Twitter). This study aims to analyze public sentiment toward ChatGPT and Gemini and to compare the performance of three classification algorithms, namely Naïve Bayes, K-Nearest Neighbor (KNN), and Decision Tree, in sentiment classification tasks. This research employs a quantitative approach using text mining techniques. The dataset consists of tweets collected through a crawling process using the Python programming language, based on keywords related to ChatGPT and Gemini. Data preprocessing includes data cleansing, case folding, tokenization, stopword removal, and stemming. Sentiment labels, categorized into positive, neutral, and negative classes, are assigned using the VADER lexicon-based approach. Text data are then transformed into numerical features using the Term Frequency–Inverse Document Frequency (TF-IDF) method. The dataset is divided into training and testing sets for model development and evaluation.The experimental results indicate that the Naïve Bayes algorithm outperforms the other models, achieving an accuracy of 57.26%, followed by Decision Tree with 54.98%, and KNN with 41.59%. Further evaluation using precision, recall, and F1-score metrics confirms that Naïve Bayes provides more stable performance in handling high-dimensional text data. These findings suggest that Naïve Bayes is the most effective algorithm for sentiment analysis of short text data on social media platforms

Copyrights © 2026






Journal Info

Abbrev

jikom

Publisher

Subject

Computer Science & IT Control & Systems Engineering Decision Sciences, Operations Research & Management

Description

Jurnal Ilmu Komputer merupakan jurnal ilmiah dalam bidang Ilmu Komputer, Informatika, IoT, Network Security dan Digital Forensics yang diterbitkan secara konsisten oleh Program Studi Teknik Informatika S-2, Program Pascasarjana, Universitas Pamulang, Indonesia. Tujuan penerbitannya adalah untuk ...