Jurnal Informasi dan Teknologi
2023, Vol. 5, No. 4

Application of the K-Nearest Neighbor Algorithm Method to Analyze Netizen Responses and Reactions Toward the Relocation of Capital City at social media

Muhammad Ziaul Haq (Universitas Muhammadiyah Palu)
Suluh Sri Wahyuningsih (Universitas Muhammadiyah Palu)
Nursalim (Universitas Muhammadiyah Palu)
Uli Wildan Nuryanto (Universitas Bina Bangsa)
Andy Rachman (Institut Teknologi Adhi Tama Surabaya)



Article Info

Publish Date
07 Jan 2024

Abstract

Sentiment analysis is a form of natural language processing that uses word analysis to ascertain people's thoughts, feelings, and views on a certain topic. In this study, word processing refers to the procedure used to categorize written texts into positive and negative emotion categories. Using data crawling techniques, information on public comments on the relocation of Indonesia's capital was gathered from Twitter social media. Keywords related to the move included "new capital," "moving capital," and "moving capital with 10,000 comments." The author of this work classified test data and training data using a lexical approach using the K-Nearest Neighbor (K-NN) method. The purpose of this study is to evaluate the K-NN algorithm's accuracy, error rate, precision, f-measure, and recall. In order to identify the ideal parameters, tests were also conducted on calculating the k value in the K-Nearest Neighbor (K-NN) method. Testing the K-Nearest Neighbor (K-NN) method yielded the greatest accuracy level of 60% with a k value of 9, concluding with the initial data collection. The K-Nearest Neighbor (K-NN) technique was evaluated in the second data collection, and with a k value of 5, it had the best accuracy level of 70%. Future scholars might create texts in languages other than Indonesian and categorize those that include visuals in them. Next, add more dictionaries to the collection and extract features from bigrams, trigrams, quadgrams, and other combinations. You may then employ several algorithmic techniques in the accuracy calculation feature.

Copyrights © 2023






Journal Info

Abbrev

jidt

Publisher

Subject

Computer Science & IT

Description

Jurnal Informasi & Teknologi media kajian ilmiah hasil penelitian, pemikiran dan kajian analisis-kritis mengenai penelitian Rekayasa Sistem, Teknik Informatika/Teknologi Informasi, Manajemen Informatika dan Sistem Informasi. Sebagai bagian dari semangat menyebarluaskan ilmu pengetahuan hasil dari ...