International Journal of Information Technology and Computer Science Applications (IJITCSA)
Vol. 4 No. 1 (2025): January - April 2026

Public Sentiment Analysis on the Service Quality of PT PLN on X Using Naïve Bayes and K-Nearest Neighbor Algorithms.

Zahra, Nurul (Unknown)
Priatna, Wowon (Unknown)
Lestari, Tyastuti Sri (Unknown)



Article Info

Publish Date
25 Feb 2026

Abstract

Quality services since electricity is a primary public need. However, numerous complaints still highlight PLN’s lack of responsiveness, especially on the X platform (formerly Twitter). This study aims to analyze public sentiment toward PLN’s service quality expressed on X and compare the performance of the Naïve Bayes and K-Nearest Neighbor (KNN) algorithms in classifying sentiments into positive, negative, and neutral categories. The research employs the Knowledge Discovery in Databases (KDD) approach, involving data collection through tweet scraping using Tweet-Harvest, preprocessing (case folding, tokenizing, filtering, stemming), transformation with TF-IDF weighting, and data mining using Naïve Bayes and KNN. Evaluation through a confusion matrix shows that Naïve Bayes achieved an accuracy of 87%, outperforming KNN with an accuracy of 86%. These findings provide insights for PLN to better understand public perception and serve as a reference for future sentiment analysis research using machine learning.

Copyrights © 2025






Journal Info

Abbrev

jitcsa

Publisher

Subject

Computer Science & IT Decision Sciences, Operations Research & Management Education Engineering

Description

he Journal of Information Technology and Computer Science Applications (JITCSA) is an information technology and computer science publication. Applications from both fields for solving real cases are also welcome. JITCSA accepts research articles, systematic reviews, literature studies, and other ...