IJCCS (Indonesian Journal of Computing and Cybernetics Systems) (Apr 2021)

Implementation of K-Nearest Neighbor (K-NN) Algorithm For Public Sentiment Analysis of Online Learning

  • Auliya Rahman Isnain,
  • Jepi Supriyanto,
  • Muhammad Pajar Kharisma

DOI
https://doi.org/10.22146/ijccs.65176
Journal volume & issue
Vol. 15, no. 2
pp. 121 – 130

Abstract

Read online

This research was conducted to apply the KNN (K-Nearest Neighbor) algorithm in conducting sentiment analysis of Twitter users on issues related to government policies regarding Online Learning. Research using Tweet data as much as 1825 Indonesian tweet data data were collected from February 1, 2020 to September 30, 2020. Using the python library, Tweepy. word weighting using TF-IDF, will be classified into two classes of sentiment values, positive and negative. After testing with K of 20, the highest accuracy results were obtained when K = 10 with an accuracy value of 84.65% with a precision of 87%, a recall of 86% f measure 87% and an error rate of 0.12% and a tendency was also obtained. public opinion on online learning tends to be positive.

Keywords