Indonesian Journal of Data and Science (Jul 2024)

Comparative Analysis of Machine Learning Algorithm Variations in Classifying Body Shaming Topics on Social Media X

  • Sarah FIla Nurul Fitri H,
  • Farniwati Fattah ,
  • Huzain Azis

DOI
https://doi.org/10.56705/ijodas.v5i2.82
Journal volume & issue
Vol. 5, no. 2

Abstract

Read online

Machine learning is an approach in computer science where systems or models can learn from data and experience to improve performance or perform specific tasks. There are several popular machine learning algorithms, such as naïve bayes, decision tree, K-NN, and SVM. This study aims to compare the performance of accuracy, precision, recall, and F-1 score in sentiment analysis of body shaming topics on Social Media X (formerly known as Twitter) by applying decision tree, K-NN, and SVM methods and identifying the most effective algorithm in classifying the data. Based on the classification performance testing results, it can be concluded that the classification method using the trigram feature model provides the best performance compared to other methods. The trigram model is able to achieve high recall, particularly in recognizing positive classes, without significantly compromising accuracy

Keywords