Andalas Journal of Electrical and Electronic Engineering Technology
Vol. 6 No. 1 (2026): May 2026

Sentiment Analysis of Traffic Congestion in Palembang Using Random Forest

Sukemi (Universitas Sriwijaya)
Ahmad Fali Oklilas (Universitas Sriwijaya)
Muhammad Azrell Samudra (Universitas Sriwijaya)



Article Info

Publish Date
31 May 2026

Abstract

Traffic congestion is a persistent problem that significantly affects the daily activities of citizens in Palembang City. The public can voice their thoughts and worries about traffic conditions on social media, especially Facebook. This study uses the Random Forest algorithm to examine public opinion regarding traffic congestion in Palembang. The 2,021 Facebook comments in the dataset were gathered by web scraping and subjected to a number of preprocessing steps, such as cleaning, case folding, stemming, tokenization, normalization, and stopword removal. The TF-IDF algorithm was used for term weighting. The Random Forest model was trained and tested to classify sentiments into three categories: positive, neutral, and negative. The model attained good accuracy across training, testing, and validation datasets, according to the evaluation results. This research provides insights into public perceptions of traffic congestion and can serve as a reference for policymakers in developing data-driven strategies to address traffic issues in Palembang City.

Copyrights © 2026






Journal Info

Abbrev

ajeeet

Publisher

Subject

Control & Systems Engineering Education Electrical & Electronics Engineering Energy Engineering

Description

Electrical power and energy: Transmission and distribution, high voltage, electrical energy conversion, power electronics and drive. Telecomunication and Signal Processing: Antenna and wave propagation, network and systems, Modulation and signal processing, Radar and sonar, Radar imaging; Radio, ...