TEKNOSIA
Vol. 19 No. 02 (2025): Vol. 19 No. 02 (2025): December 2025

Perbandingan Performa Algoritma Naive Bayes Dan Support Vector Machine Pada Analisis Sentimen Implementasi Program Kip-Kuliah

Ni Putu, Ana Rainita (Unknown)
Maysanjaya, I Made Dendi (Unknown)
Mahendra, Gede Surya (Unknown)



Article Info

Publish Date
29 Dec 2025

Abstract

The selection of a suitable classification model is important in text-based sentiment analysis, especially in conditions of unbalanced data distribution. Naive Bayes and Support Vector Machine (SVM) are two algorithms that are often used in classification, but the comparison of their performance on unbalanced data still needs to be further reviewed. This study aims to compare the performance of the two algorithms in classifying public sentiment towards the Indonesia Smart Card (KIP) Lecture Program. The implementation of the KIP Lecture Program still faces challenges in the accuracy of aid distribution. This situation raises discussions and various controversies among the public, especially on the X platform. The data used were 1,644 tweets, with a distribution of negative sentiment of 1,392 tweets and positive tweets of 252. To overcome the imbalance of data class distribution, the Synthetic Minority Oversampling Technique (SMOTE) method is used. Based on the evaluation results, before SMOTE was applied, SVM obtained 92% accuracy and 91% precision, 77% recall, while Naive Bayes obtained 79% accuracy, 68% precision, and 78% recall. After the application of SMOTE, SVM performance significantly improved with accuracy, precision, and recall reaching 99%, while Naive Bayes improved to 95% on all metrics. These results show that although SVM excels in higher accuracy, Naive Bayes shows a more stable performance on the data neither after nor after the balancing process is performed.

Copyrights © 2025






Journal Info

Abbrev

teknosia

Publisher

Subject

Automotive Engineering Civil Engineering, Building, Construction & Architecture Computer Science & IT Control & Systems Engineering Engineering Transportation

Description

A journal TEKNOSIA, Provides a forum for publishing the original research articles, review articles from contributors, and the novel technology news related to pure and interdisciplinary of sciences and engineering. Scientific articles dealing with sciences, technology and engineering fields of ...