Web-based sentiment analysis of environmental issues on social media X: A comparison of svm and random forest
Journal of Soft Computing Exploration · 08.05.2026 · 7 (2) · 288-299
DOI: 10.52465/joscex.v7i2.55 ↗Kurz gefasst
Fachartikel in der Zeitschrift Journal of Soft Computing Exploration, online erschienen am 08.05.2026. Verfasst von Subandi und 2 weiteren Autor:innen. Der Volltext ist frei zugänglich (Open Access, CC BY-SA 4.0).
Abstract (Originalsprache)
This study aims to compare the performance of Support Vector Machine (SVM) and Random Forest (RF) in classifying public sentiment toward environmental issues on social media X (formerly Twitter) and to develop a web-based system for sentiment monitoring and visualization. A total of 47,245 tweets from 2021–2025 were collected using 24 environmental keywords. The data were processed through text cleaning, tokenization, stopword removal, and stemming. Sentiment labeling was performed automatically using a lexicon-based approach with the InSet dictionary, resulting in positive, negative, and neutral classes. After filtering, 13,063 tweets were used for model training. Classification employed TF-IDF features and 5-fold cross-validation. The results indicate that SVM outperformed RF with an accuracy of 83%, compared to 81%. Both models performed well in identifying sentiment polarity, although challenges remain in classifying neutral sentiment. The novelty of this study lies in integrating lexicon-based labeling with machine learning and implementing it in a web-based system for automated analysis and visualization. Practically, this system supports stakeholders in monitoring public opinion and enables data-driven decision-making in environmental policy and management.
Zitieren
APA
Subandi, Nugroho, A. S. B., & Hidayat, M. (2026). Web-based sentiment analysis of environmental issues on social media X: A comparison of svm and random forest. Journal of Soft Computing Exploration, 7(2), 288-299. https://doi.org/10.52465/joscex.v7i2.55
Vancouver
Subandi, Nugroho ASB, Hidayat M. Web-based sentiment analysis of environmental issues on social media X: A comparison of svm and random forest. Journal of Soft Computing Exploration. 2026;7(2):288-299. doi:10.52465/joscex.v7i2.55
BibTeX
@article{Subandi2026,
author = {Subandi and Nugroho, Agus Setiyo Budi and Hidayat, Muhammad},
title = {Web-based sentiment analysis of environmental issues on social media X: A comparison of svm and random forest},
journal = {Journal of Soft Computing Exploration},
year = {2026},
volume = {7},
number = {2},
pages = {288--299},
doi = {10.52465/joscex.v7i2.55}
}
EUVIMED