Comparison of Seven Machine Learning Algorithms in the Classification of Public Opinion

  • Sri Redjeki Universitas Teknologi Digital Indonesia
  • Setyawan Widyarto Universiti Selangor

Abstract

Sentiment analysis is one way that is widely used to identify the beginning of public opinion in various fields of life which are associated with very massive and a lot of information through social media. This study aims to compare several algorithms in machine learning to see the best ability in sentiment classification. The research dataset uses a dataset of public opinion related to tourism in Indonesia. The number of datasets used is 10,228 twitter data that have been cleaned and labelled. The machine learning algorithm used is Logistic Regression, KNN, AdaBoost, Decision Tree, SVM, Random Forest and Gaussian. The seven algorithms for sentiment classification from the Twitter public opinion each produce a Gaussian accuracy of 0.52; SVM 0.78; KNN 0.98; Logistic Regression, Random Forest, Decision Tree, AdaBoost of 0.99. This study shows that the selection of the right machine learning algorithm will have a very good impact on the classification of public opinion through social media

Published
2022-03-25
How to Cite
REDJEKI, Sri; WIDYARTO, Setyawan. Comparison of Seven Machine Learning Algorithms in the Classification of Public Opinion. Tech-E, [S.l.], v. 5, n. 2, p. 143-149, mar. 2022. ISSN 2581-1916. Available at: <https://jurnal.buddhidharma.ac.id/index.php/te/article/view/1046>. Date accessed: 27 sep. 2022. doi: https://doi.org/10.31253/te.v5i1.1046.
Section
Articles