DIGINTEL-AI : DIGital INnovation and inTELligence – AI
Vol. 1 No. 1 (2025): October

Implementasi Algoritma K-NN Pada Sosial Media X Untuk Analisis Sentimen Pengalaman Warganet Tinggal Di Luar Negeri

Salsa Billa Permana Putri (Teknik Informatika, Fakultas Teknologi Industri dan Informatika, Universitas Muhammadiyah Prof. Dr. HAMKA, Jakarta)
Irwansyah (Teknik Informatika, Fakultas Teknologi Industri dan Informatika, Universitas Muhammadiyah Prof. Dr. HAMKA, Jakarta)
Tupan Tri M (Sistem Informasi, Institut Sosial dan Teknologi (ISTEK) Widuri, Jakarta)



Article Info

Publish Date
20 Mar 2026

Abstract

The development of information technology, especially through social media such as Twitter, has changed the way people search for information. With more than 6.43 million users in Indonesia, Twitter has become the main platform for sharing opinions. This study aims to analyze the sentiments of Indonesian citizens (WNI) living abroad, who often face challenges and opportunities in adapting to new environments. Given the increasing number of WNI, reaching over 9 million in 2020, understanding their sentiments is crucial. The K-Nearest Neighbor (KNN) method was used to classify sentiments as positive, negative, or neutral. This study involved data collection through the tweet-harvest technique, where 1,060 comments were successfully collected, and 600 of them met the relevance criteria for analysis. The analysis results showed that 60.4% of sentiments were neutral, 34.1% were positive, and 5.5% were negative, with the KNN model achieving an accuracy of 81.67%. Model evaluation revealed the highest precision in the neutral class and a recall of 1.00, although the positive and negative classes require further optimization. This study is expected to provide insights for the public and decision-makers regarding the experiences of Indonesian citizens abroad.

Copyrights © 2025






Journal Info

Abbrev

digintelai

Publisher

Subject

Description

DIGINTEL-AI : DIGital INnovation and inTELligence – AI is a scientific journal published by PT Ajira Karya Indonesia in collaboration with the Informatics Engineering Study Program of ISTEK Widuri. This journal contains articles on research results, scientific studies, and applied studies in the ...