Claim Missing Document
Check
Articles

Found 1 Documents
Search
Journal : Jurnal Mandiri IT

Comparison of random forest and SVM methods in sentiment analysis about electric cars in Indonesia Pratistha, Indra; Iskandar, Adi Panca Saputra; Lanang, Eugenius Gene Rangga; Dewi, Ni Wayan Jeri Kusuma
Jurnal Mandiri IT Vol. 14 No. 1 (2025): July: Computer Science and Field.
Publisher : Institute of Computer Science (IOCS)

Show Abstract | Download Original | Original Source | Check in Google Scholar | DOI: 10.35335/mandiri.v14i1.424

Abstract

This study examined public sentiment toward electric vehicles (EVs) in Indonesia, where the adoption of EVs reached 28,188 registered units in 2023. The research analyzed user-generated content from the social media platform X (formerly known as Twitter), collecting 1,507 tweets that underwent preprocessing, including text normalization and sentiment labeling. Two machine learning models, Random Forest and Support Vector Machine (SVM), were implemented to classify the tweets into positive and negative sentiments. Each model was evaluated under three experimental scenarios with varying training dataset sizes. The results indicated that the SVM model achieved the best performance in the third scenario, with an accuracy of 81.3%, precision of 88%, and recall of 91%. In comparison, Random Forest achieved its highest results in the same scenario, with an accuracy of 77%, precision of 91%, and recall of 81%. These findings demonstrated that SVM outperformed Random Forest in terms of overall balance between accuracy and recall, making it the more effective model for sentiment classification in this context.