Komputasi
Vol. 23 No. 1 (2026): Komputasi: Jurnal Ilmiah Ilmu Komputer dan Matematika.

Electric Vehicles Sentiment Analysis of Electric Vehicles on Social Media Using Bidirectional Encoder Representations from Transformers (BERT) and Long Short-Term Memory (LSTM): BERT, LSTM, Sentiment Analysis, Electric Vehicles , Social Media

Muhammad Fadhillah Harahap (FMIPA- UNVERSITAS PAKUAN)
Yusma Yanti (Universitas Pakuan)
Prihastuti Harsani (Universitas Pakuan)



Article Info

Publish Date
30 Jan 2026

Abstract

Electric vehicles (EVs) are widely recognized as an environmentally sustainable alternative capable of reducinggreenhouse gas emissions; however, their adoption in Indonesia remains limited. Data from the IndonesianMinistry of Transportation, as recorded in the Type Approval Registration System (SRUT), indicate thatapproximately 195,084 Battery Electric Vehicles (BEVs) were registered nationwide by early 2024. This studyinvestigates public sentiment toward electric vehicles using social media data from X, Instagram, and TikTok,while also comparing the effectiveness of two text classification approaches: Bidirectional EncoderRepresentations from Transformers (BERT) and Long Short-Term Memory (LSTM). A total of 5,172Indonesian-language comments were collected through crawling and scraping techniques using electricvehicle-related keywords over the period January 2021 to January 2025. The comments were categorized intofive sentiment classes: very positive, positive, neutral, negative, and very negative. The analytical processfollowed the Knowledge Discovery in Databases (KDD) framework, including data preprocessing,transformation, classification, and evaluation using a confusion matrix. The results indicate that IndoBERTsubstantially outperformed LSTM, achieving an accuracy of 91% compared to 36% for LSTM. Sentimentanalysis reveals a dominance of negative and very negative opinions, primarily reflecting public concernsregarding cost, performance, and maintenance of electric vehicles. These findings offer important insights forpolicymakers and the automotive industry in designing targeted promotion strategies, improving publicawareness, and strengthening supporting infrastructure. Future research is encouraged to explore dataaugmentation techniques to improve model performance, particularly for deep learning models such as LSTM,in order to better support evidence-based electric vehicle adoption policies.

Copyrights © 2026






Journal Info

Abbrev

komputasi

Publisher

Subject

Computer Science & IT Control & Systems Engineering Mathematics

Description

Komputasi is a journal that publishes scientific papers in the fields of computer science and mathematics. This journal, published by the Department of Computer Science, Faculty of Mathematics and Natural Sciences, Pakuan University, Bogor. This journal provides an opportunity for researchers or ...