Ritha, N. and Hayaty, N. and Matulatan, T. and Uperiati, A. and Rathomi, M. and Bettiza, M. and Farasalsabila, F. (2022) Sentiment Analysis of Health Protocol Policy Using K-Nearest Neighbor and Cosine Similarity. In: Proceedings of the 1st International Conference on Sustainable Engineering Development and Technological Innovation, ICSEDTI 2022, 11-13 October 2022, Tanjungpinang, Indonesia.
52588.pdf
Download (500kB)
Abstract
As an effort to handle COVID-19 transmission, the Indonesian government introduced various regulations such as Health Protocol Policy. Meanwhile, the policy has become a public discussion on social media, such as Twitter. To classify people's opinions on the social media, sentiment analysis technique is used. This method is widely utilized in natural language processing (NLP), data mining, and information retrieval. Therefore, this study aimed to analyze Twitter users’ opinions toward health protocol policy. There were several approaches to conducting sentiment analysis, including the TF-IDF method for word weighting and the K-Nearest Neighbor algorithm for data classification. Also, the similarity between two documents or texts was measured using cosine similarity. The processed data were categorized into three, namely positive, negative, and neutral. The system classification results showed 43.94% positive sentiment, 9.06% negative, and 46.99% neutral assuming the value of K = 4.
| Item Type: | Conference or Workshop Item (UNSPECIFIED) |
|---|---|
| Uncontrolled Keywords: | sentiment analysis, health protocol, k-nn, cosine similarity |
| Date Deposited: | 04 Mar 2026 15:58 |
| Last Modified: | 03 Dec 2026 12:33 |
| URI: | https://eprints.eai.eu/id/eprint/41635 |
