Teknika
Vol. 14 No. 1 (2025): March 2025

Comparison of The Accuracy of K-Nearest Neighbor and Roberta Algorithm in Analysis of Sentiment on Miawaug Youtube Channel Comments

Rahmawan, Fachrudin Okta (Unknown)
Hanafi (Unknown)
Dhuita, Windha Mega Pradnya (Unknown)



Article Info

Publish Date
03 Mar 2025

Abstract

This study aims to evaluate the accuracy of two algorithms, K-Nearest Neighbor (KNN) and Robustly Optimized BERT Approach (RoBERTa), in analyzing sentiment within comments on MiawAug’s YouTube channel. Sentiment analysis was conducted on two sentiment categories: binary classification (positive and negative) and multi-class classification (positive, neutral, and negative). Using KNN, the binary classification yielded an accuracy of 86.12%, F1-score of 87.44%, recall of 96.64%, and precision of 79.89%. In contrast, the multi-class classification achieved 98.21% accuracy, F1-score, and recall with a precision of 98.23%. However, the RoBERTa model outperformed KNN, achieving 93.89% accuracy, 93.88% F1-score, 94.59% recall, and 93.22% precision in binary classification. For multi-class classification, RoBERTa further excelled, attaining 99.21% across accuracy, F1-score, recall, and precision. These findings demonstrate that RoBERTa surpasses KNN in sentiment analysis, especially in multi-class contexts, indicating its greater robustness for this application.

Copyrights © 2025






Journal Info

Abbrev

teknika

Publisher

Subject

Computer Science & IT Electrical & Electronics Engineering Engineering

Description

Teknika is a peer-reviewed journal dedicated to disseminate research articles in Information and Communication Technology (ICT) area. Researchers, lecturers, students, or practitioners are welcomed to submit paper which has topic below: Computer Networks Computer Security Artificial Intelligence ...