Comparison of Salp Swarm Algorithm and Particle Swarm Optimization as Feature Selection Techniques for Recession Sentiment Analysis in Indonesia

Amidst global economic uncertainty, this study focuses on Twitter sentiment during the global recession issue on social media, especially in Indonesia. By utilizing sentiment analysis, this study uses machine learning algorithms such as Naïve Bayes (NB), Support Vector Machine (SVM), K-Nearest Neighbor (KNN) which are still less than optimal on high-dimensional Twitter data. The purpose of this study is to improve the accuracy of conventional machine learning using basic metaheuristic algorithms, namely the Salp Swarm Algorithm (SSA) and Particle Swarm Optimization (PSO) as feature selection. From January to May 2023, this study captures the evolving sentiment in response to economic conditions. Data preprocessing, including labeling through the TextBlob and VADER libraries, sets the stage for the analysis. Performance is compared based on labeling techniques, feature selection, and classification algorithms. Specifically, when applied to VADER labeled data without feature selection, the SVM model achieves an outstanding accuracy of 83% and an F1 score of 67%—notably, the application of SSA and PSO results in a reduction in model accuracy by 1%. However, the application of SSA and PSO slightly reduced the model accuracy performance by 1%. On the TextBlob labeled data, SVM showed an outstanding performance (80% accuracy, 77% F1 score). Interestingly, PSO on TextBlob data with SVM significantly decreased the model's performance. These findings contribute significantly to understanding the intricacies of sentiment dynamics during economic uncertainty on social media platforms, with SVM emerging as a strong choice for practical sentiment analysis.

Authors

Institutions

Publication Details

Journal
JOIV International Journal on Informatics Visualization
Published
2025-09-30
DOI
https://doi.org/10.62527/joiv.9.5.3102
Primary Topic
Data Mining and Machine Learning Applications
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Comparison of Salp Swarm Algorithm and Particle Swarm Optimization as Feature Selection Techniques for Recession Sentiment Analysis in Indonesia

Akhmad Hairul Umam, Samuel Ady Sanjaya, Dinar Ajeng Kristiyanti, Jason Suhali et al.
JOIV International Journal on Informatics Visualization
Data Mining and Machine Learning Applications
article

Comparison of Salp Swarm Algorithm and Particle Swarm Optimization as Feature Selection Techniques for Recession Sentiment Analysis in Indonesia

Akhmad Hairul Umam, Samuel Ady Sanjaya, Dinar Ajeng Kristiyanti, Jason Suhali, Irmawati Irmawati, Kristian Ekachandra
article en

Abstract

Amidst global economic uncertainty, this study focuses on Twitter sentiment during the global recession issue on social media, especially in Indonesia. By utilizing sentiment analysis, this study uses machine learning algorithms such as Naïve Bayes (NB), Support Vector Machine (SVM), K-Nearest Neighbor (KNN) which are still less than optimal on high-dimensional Twitter data. The purpose of this study is to improve the accuracy of conventional machine learning using basic metaheuristic algorithms, namely the Salp Swarm Algorithm (SSA) and Particle Swarm Optimization (PSO) as feature selection. From January to May 2023, this study captures the evolving sentiment in response to economic conditions. Data preprocessing, including labeling through the TextBlob and VADER libraries, sets the stage for the analysis. Performance is compared based on labeling techniques, feature selection, and classification algorithms. Specifically, when applied to VADER labeled data without feature selection, the SVM model achieves an outstanding accuracy of 83% and an F1 score of 67%—notably, the application of SSA and PSO results in a reduction in model accuracy by 1%. However, the application of SSA and PSO slightly reduced the model accuracy performance by 1%. On the TextBlob labeled data, SVM showed an outstanding performance (80% accuracy, 77% F1 score). Interestingly, PSO on TextBlob data with SVM significantly decreased the model's performance. These findings contribute significantly to understanding the intricacies of sentiment dynamics during economic uncertainty on social media platforms, with SVM emerging as a strong choice for practical sentiment analysis.

JOIV International Journal on Informatics VisualizationVol. 9(5)
University of Indonesia (ID), Multimedia Nusantara University (ID), State University of Jakarta (ID), Universitas Mpu Tantular (ID)
Universitas Multimedia Nusantara
Openalex Percentile: Top 56%
Data Mining and Machine Learning Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.