Comparison of SVM & Naïve Bayes Methods in Sentiment Analysis of Electric Vehicle Subsidy Policy Based on X Data

I Wayan Darma Wiguna,Devi Valentino Waas,I Komang Arya Ganda Wiguna,Made Leo Radhitya
DOI: https://doi.org/10.23960/jesr.v6i1.158
2024-06-28
Journal of Engineering and Scientific Research
Abstract:The policy of subsidizing electric vehicles has become a widely discussed issue on social media platform X. The provision of electric vehicle subsidies by the Indonesian government aims to stimulate higher adoption of electric vehicles, with the overarching goal of mitigating air pollution. However, the presence of electric vehicle subsidies continues to elicit both support and opposition among the public. On social media platform X, there is a wealth of data suitable for text mining, particularly concerning the current hot topic of electric vehicle subsidies. This research aims to compare the performance of Support Vector Machine (SVM) and Naïve Bayes methods in conducting sentiment analysis on discussions related to the electric vehicle subsidy policy on social media platform X. The testing technique involves using 20% of the total dataset, comprising 5553 data points, and employing 10-fold cross-validation. The results from the 20% test data indicate that the Support Vector Machine (SVM) method's confusion matrix performance is superior, with the highest values achieved using the RBF kernel: accuracy 83.02%, precision 84.61%, and recall 83.02%. In the performance evaluation testing with 10-fold cross-validation, the Support Vector Machine (SVM) method outperforms, especially with the RBF kernel, yielding an average accuracy of 82.88% over 10 iterations.
What problem does this paper attempt to address?