Skip to content
Open access

Comparison of Machine Learning Algorithms for Sentiment Analysis of Trans Jogja on Social Media

Jul 2026 · SISTEMASI · Vol 15, pp. 2586 · 0 citations

TL;DR

The experimental results demonstrate that the Support Vector Machine (SVM) consistently outperformed the other algorithms across different data split ratios, indicating that it is the most effective algorithm for sentiment classification of Trans Jogja users on the X platform.

Abstract

The social media platform X has become an important channel for the public to express opinions and share experiences regarding public services, including Trans Jogja. User-generated content from this platform provides valuable insights into public perceptions of service quality. However, because these data consist of unstructured text, sentiment classification techniques based on machine learning are required to analyze them effectively. This study aims to compare the performance of several machine learning algorithms for sentiment classification, including Naïve Bayes, Support Vector Machine (SVM), Random Forest, Neural Network, Logistic Regression, and Decision Tree, in classifying user sentiment toward Trans Jogja on the X platform. Data were collected through a web crawling process using Tweet Harvest with keywords related to Trans Jogja, covering the period from January 1, 2025, to June 10, 2026, resulting in a dataset of 3,035 tweets. The preprocessing stage included data cleaning, case folding, tokenization, normalization, stopword removal, and stemming. Text representation was performed using the Term Frequency–Inverse Document Frequency (TF-IDF) method. The dataset was then divided into training and testing sets using five train–test split ratios: 90:10, 85:15, 80:20, 75:25, and 70:30. Model performance was evaluated using a confusion matrix and the corresponding accuracy, precision, recall, and F1-score metrics. The experimental results demonstrate that the Support Vector Machine (SVM) consistently outperformed the other algorithms across different data split ratios. At the 85:15 train–test split, the SVM achieved an accuracy of 91%, precision of 91%, recall of 91%, and an F1-score of 91%, indicating that it is the most effective algorithm for sentiment classification of Trans Jogja users on the X platform.

Read PDF

Similar papers

Open access Aug 2026

SENTIMENT ANALYSIS OF TWITTER (X) RESPONSES USING NAÏVE BAYES: A CASE STUDY OF JUMBO

The rapid growth of social media platforms, especially Twitter (now rebranded as X), has made it a rich source for public opinion mining. This study focuses on analyzing public sentiment toward the animated “film Jumbo" by applying the Naïve Bayes Classifier algorithm to Twitter data. The research involves collecting t...

Nurasiah, Latifah Nur Zam Zami, Yunianto Agung Nugroho · 0 citations
Open access Aug 2026

Comparasion of Support Vector Machine and Decision Tree Methods in Sentiment Analysis of Social Media X User Toward the Free Nutritious Meal Program

The research stages include a preprocessing process consisting of cleaning, case folding, tokenizing, normalization, stopword removal, and stemming. Furthermore, the TF-IDF method is used to extract text features so that the data can be represented in numerical form. The dataset was then divided into training data and...

Olinda Nathaniel Mendrofa, Deva Angriani, E. Ompusunggu · 0 citations
Open access Aug 2026

A Multi-Algorithm Model Selector for Sentiment Classification in Public Evaluations of Government Performance Using GovBERTic

GovBERTic (Government BERTopic), a reproducible computational pipeline that operationalizes public opinion analysis by linking semantic topic discovery, multi-algorithm sentiment model selection, and topic-level sentiment aggregation within a single workflow, is developed.

Naura Ulayya Nariswari, Amri Muhaimin, Shindi Shella May Wara · 0 citations
Review Open access Sep 2026

Sentiment Analysis of User Reviews of Purwokerto Station Using TF-IDF and the Random Forest Method

User reviews on Google Maps serve as a valuable source of information for evaluating the service quality of public facilities, including train stations. This study aims to analyze the sentiment of user reviews for Purwokerto Station using the Random Forest algorithm and to identify dominant Bigrams within each sentimen...

Diva Nur Syafika, Hindayati Mustafidah, M. Fitriani et al. · 0 citations
Review Aug 2026

Applications of Machine Learning-based Sentiment Analysis in Marketing and Brand Monitoring

In the online marketing arena, large volumes of textual information, generated by clients, on social media sites, and online review sites and brand communities are informative in terms of consumer perception and brand attitudes. The unstructured and massive nature of this data however renders the traditional analysis m...

Rakesh K. K., Nishath, D. Shaikh · 0 citations
Open access Aug 2026

TikTok Sentiment Analysis on Koperasi Merah Putih Using SVM and ANN

TikTok has become a relevant social media source for observing public responses to public issues, including the Koperasi Merah Putih program. This study compares Support Vector Machine (SVM) and Artificial Neural Network (ANN) for classifying sentiment in TikTok comments. The dataset was obtained through TikTok comment...

Meliysa Pasa Bagna Aprilia Said, Kholifatus Sholihah, Ifnu Wisma Dwi Prastya et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.