3 - Sentiment Analysis About Electric Motorbikes in Indonesia Using Twitter Data
3 - Sentiment Analysis About Electric Motorbikes in Indonesia Using Twitter Data
3 - Sentiment Analysis About Electric Motorbikes in Indonesia Using Twitter Data
1. Introduction
One of Indonesia's efforts to reduce air pollution is using environmentally friendly transportation.
Although bicycles are one of the modes of transportation that can positively impact the environment,
they have yet to become the primary choice for long-distance travel. Most bicycles still rely on human
or manual power, making many users feel tired when travelling long distances. The issue of increasing
air pollution is exacerbated by the increasing number of non-environmentally friendly motorized
vehicles on the roads and is the cause of increasing pollution in Indonesia (Sukarno et al., 2016;
Istiqomah & Marleni, 2020; Lestari et al., 2022; Abidin et al., 2024).
Seeing these conditions, many researchers have previously attempted to design vehicles with
environmentally friendly engine operations. One vehicle believed to reduce environmental pollution
https://doi.org/10.12928/si.v22i1.158 [email protected]
Spektrum Industri
26 ISSN 1693-6590
Vol. 22, No. 1, 2024, pp. 25-35
is an electric vehicle (Masruroh et al., 2023; Fitrianto, 2023; Ravi et al., 2023; Sadiq O. A. & Chidi
O. M., 2024). The development of electric vehicles is growing rapidly around the world, even in
Indonesia. Electric vehicles that have been developed around the world range from electric cars,
electric trains, and electric trucks to electric motorcycles. The type of electric vehicle that is now
starting to be found in Indonesia is the electric motorcycle. The Ministry of Transportation
(Kemenhub) recorded the number of electric vehicles in Indonesia at 14,400 units as of mid-November
2021. These electric vehicles comprise 1,656 passenger cars, 262 three-wheeled vehicles, 12,464
electric motorbikes, 13 buses, and five freight cars (Kemenhub records the number of new RI electric
vehicles at 14,400 units.). The number of electric motorcycle users in Indonesia is higher than that of
other types of electric vehicles. The acceptance of electric vehicles in Indonesia has prompted
researchers to conduct further research on electric vehicles, including electric motorbikes. Research
on the development of electric motorbikes has been carried out in Indonesia, including research
conducted (Nurhadi, 2018; Pratiwi et al., 2020; Miftachul U. et al., 2021; Gustiana et al., 2022). Many
more studies aim to develop electric motorbikes, starting with battery innovation, bicycle bodies, etc.
The development of electric vehicles in Indonesia was increasingly wide open when the President
enacted Presidential Regulation of the Republic of Indonesia Number 55 of 2019, explaining the
acceleration of the Battery-Based Electric motorized Vehicle program (Indonesia, P.P., 2019). Not
only that, the Provincial Government of Bali also followed suit by issuing Bali Governor Regulation
Number 48 of 2019 concerning the Use of Battery-Based Electric motorized Vehicles. Over time, the
local industry produced several electric vehicles, especially electric motorcycles. To support a
consistent level of electric motorcycle production, the Ministry of Industry has set a target of 400
thousand units of electric cars and 1.76 million units of electric motorcycles for 2025. The next target
for 2030 is 600,000 electric cars and 2.45 million motorcycles (Indonesia, C., 2021).
Indonesian people often express their opinions or feelings on social media. Some social media
platforms Indonesians use are Facebook, Instagram, and Twitter. Twitter is a social media site that
Indonesians still use. Indonesian people's comments on the presence of electric vehicles were also
conveyed on Twitter. Indonesian people are active on Twitter in Indonesia, giving positive and
negative comments about the presence of electric vehicles. Information from Kurniawan, R. &
Apriliani, A. (2020), stated that in 2019, Indonesia experienced an increase in the number of daily
active Twitter users. Therefore, Twitter is a medium that researchers often use as an object for
collecting data and conducting analysis. Sentiment analysis is a widely chosen method for making
observations related to topics that are currently viral or commonly referred to as "Trending Topics."
Research from Garcia & Berton (2021); Malik et al. (2021); Neogi et al. (2021); Olabanjo et al. (2023);
Persadaa et al. (2024), and many other studies on Twitter as a means of collecting people's responses.
This method is an effective way of distributing questionnaires.
According to Liu (2011), sentiment analysis refers to the broad or global field of natural language
processing, computation, and text mining, which in turn can be used to analyze a person's opinions,
evaluations, attitudes, judgments, and emotions, whether speaker or writer—excited or interested in a
particular object, topic, service, or activity. At the sentiment analysis stage, data mining is needed.
Text mining is a data mining method defined as a process to obtain and collect information from a
database system. Later, a user can take advantage of this information as material for analysis related
to something predictive. The data obtained from the text mining process is semi-structured or
structured. This semi-finished data still needs to be corrected and formatted consistently to not
interfere with the output quality. The study by Ashari et al. (2023), which successfully discussed
sentiment analysis regarding the Indonesian public's response to the presence of electric vehicles in
general, stated that there were 55% positive responses and the remaining 45% negative. However, in
his research, he did not consider neutral opinions. Every tweet word may not fall into the category of
positive or negative words. Apart from that, this research only discusses electric vehicles in general.
Similar to research conducted by Salsabila et al. (2023), Pratama et al. (2023), and Merdiansah et al.
(2024), which also relies on sentiment analysis to identify public responses to electric vehicles in
general from the Twitter database.
Desrina Yusi Irawati (Sentiment Analysis about Electric Motorbikes in Indonesia Using Twitter Data)
Spektrum Industri
ISSN 1693-6590 27
Vol. 22, No. 1, 2024, pp. 25-35
This research specifically conducts sentiment analysis on the Indonesian public's response to
electric vehicles, especially electric motorcycles, which are currently being promoted in Indonesia.
Therefore, this study can provide an understanding of the acceptance and challenges faced by the
electric motorcycle industry in Indonesia. The purpose of this study is to see the level of public
enthusiasm regarding electric motorcycle products through Twitter, both from mentions, replies, likes,
and retweets. Later, do a sentiment analysis that can categorize text data polarity into positive,
negative, and neutral opinion classifications (Fanissa et al., 2018). Finally, this study contributes to
analyze why people disagree with the presence of electric motorcycles. Developers can later use the
results of this research to create products, especially electric motorcycles, that suit the community's
needs.
2. Method
The research stages contain a pathway or sequence of research that will be undertaken to achieve
the research objectives. The sequence of research stages is shown in Fig. 1. Here is an explanation of
the research steps mentioned:
a. Literature Review
It is conducted to gain a comprehensive understanding of the research topic, starting from data
collection and analysis to applying data in tools within the system. Referring to relevant theories
to understand the research topic deeply is important. These theories can be drawn from journals,
articles, and other online scholarly sources, including book references.
b. Collecting Data
The process of collecting data in this study is to scrape all tweets, retweets, mentions, replies,
and others in Indonesian using predetermined keywords. In this study, the keywords used to
collect data were electric motorcycles.
c. Text Pre-Processing
At this stage, the process of cleaning the data that has been collected is carried out. As we know,
Twitter users generally use some emoticons or excessive punctuation in a comment; this
includes unnecessary components in the analysis and is feared to interfere with the data analysis
process of grouping comments into positive, negative, and neutral classifications. Therefore,
these components need to be removed first. Some of the commonly used preprocessing texts
are:
Folding Box
Namely, the process changed the entire text obtained to the standard or same form (into even
lowercase letters).
Tokenization
It is a process to break down a set of unwanted characters in a sentence structure (automatically
raising a comma or period in a word).
Filters
The process of filtering important words (words that fit the sentence structure) and removing
unimportant words (words that have no meaning).
Desrina Yusi Irawati (Sentiment Analysis about Electric Motorbikes in Indonesia Using Twitter Data)
Spektrum Industri
28 ISSN 1693-6590
Vol. 22, No. 1, 2024, pp. 25-35
Study of literature:
Electric Motorcycles
Twitter APIs
Sentiment Analysis
Text Mining
Classification Data
Data Interpretation
Desrina Yusi Irawati (Sentiment Analysis about Electric Motorbikes in Indonesia Using Twitter Data)
Spektrum Industri
ISSN 1693-6590 29
Vol. 22, No. 1, 2024, pp. 25-35
g. Data interpretation
Interpreting the results is an explanation of the findings obtained from the sentiment data
analysis conducted previously.
h. Conclusion and Recommendation
The conclusion will encompass the key points from the data analysis conducted in this study,
presented briefly. Meanwhile, the recommendations will include suggestions related to data
processing utilizing different methods and media.
Table 1 shows an example of 10 tweets involving the electric motorbike hashtag. If you look at
it with the naked eye, people's opinions regarding the arrival of this electric motorcycle product vary
greatly. Some people say they disagree with the presence of electric motorcycles because access to
electricity for charging is still inadequate. Besides that, not a few also agree with the arrival of the
electric motor because the electric motor can be a new innovative product that is environmentally
friendly and, of course, more time-efficient because it does not have to wait in long queues to refuel.
After the scrapping process is done, do not forget to save the scrapping results in the form of an Excel
file with the following syntax:
Write.csv (motor, file = 'H/bella/electricmotor.cdsv')
3.1. Create Corpus
The corpus contains some of the texts obtained and will be used in the research discussion.
Corpus keeps all tweets on Twitter clean, in the sense that the tweets obtained on Twitter no longer
Desrina Yusi Irawati (Sentiment Analysis about Electric Motorbikes in Indonesia Using Twitter Data)
Spektrum Industri
30 ISSN 1693-6590
Vol. 22, No. 1, 2024, pp. 25-35
contain images or videos because the authors will only use text as research material. The syntax
corpus and processed results are displayed in Fig. 2.
tweet_document <- Corpus (VectorSource(textdata))
Fig. 2. Corpus
Desrina Yusi Irawati (Sentiment Analysis about Electric Motorbikes in Indonesia Using Twitter Data)
Spektrum Industri
ISSN 1693-6590 31
Vol. 22, No. 1, 2024, pp. 25-35
Fig. 3. The 10 Words That Appear the Most and Their Number
Based on Fig. 3, it can be seen that the word electricity ranks first for the most written words in
Twitter tweets about electric motors, with a total of 1246 words of repetition out of a total of 970
tweets. Next comes the motor word with 858 repetitions: 534 rushes, 534 forces, 534 whys, and so
on. Meanwhile, if the sequence of the ten most repeated words is depicted in a bar chart, it will look
like Fig. 4.
After knowing this, the writer wants to know how the sentiment results (Table 4 and Fig. 5)
from Twitter opinion groups are divided into three classifications: positive, adverse, and Neutral.
The syntax used to display sentiment values and sentiment analysis results is as follows:
analysis <- score.sentiment(cleartext, pos.words, neg.words)
# sentiment score frequency table
table(analysis$score)
Based on the results of the sentiment analysis, it can be seen that the results of as many as 970
tweets produce points or levels of classification that vary greatly. If the results are further explained
in Table 4, information is obtained that 142 tweets are in a neutral classification. In contrast, a negative
classification is a total of 208 opinions spread from column 1 to column -7. As for the positive
classification, there are 620 opinions spread from column 1 to column 4. So, in general, the favourable
opinion classification has a higher number than the negative and neutral opinion classifications.
Desrina Yusi Irawati (Sentiment Analysis about Electric Motorbikes in Indonesia Using Twitter Data)
Spektrum Industri
32 ISSN 1693-6590
Vol. 22, No. 1, 2024, pp. 25-35
Desrina Yusi Irawati (Sentiment Analysis about Electric Motorbikes in Indonesia Using Twitter Data)
Spektrum Industri
ISSN 1693-6590 33
Vol. 22, No. 1, 2024, pp. 25-35
4. Conclusion
The results of the sentiment analysis that has been carried out in this study can be concluded to
show that there are still many Twitter users who have diverse opinions about electric motorcycle
products. Based on sentiment analysis calculations and tables, it can be seen that 620 tweets, or 63%
of opinions, are classified as positive opinions, 208 tweets, or 21% of opinions, are classified as
negative opinions, and the remaining 142 tweets, or 14% of opinions, are classified as neutral
opinions. So, 970 tweets by Twitter users about electric motorcycles are positive. This condition
illustrates that electric motorcycle product innovation can continue and become an alternative vehicle
acceptable to the people of Indonesia. Suggestions for this research include conducting further
research by increasing the keywords and analyzing them using other algorithms such as Support
Vector Machine (SVM), Nave Bayes, and others.
Desrina Yusi Irawati (Sentiment Analysis about Electric Motorbikes in Indonesia Using Twitter Data)
Spektrum Industri
34 ISSN 1693-6590
Vol. 22, No. 1, 2024, pp. 25-35
Author Contribution: All authors contributed equally to the main contributor to this paper. All authors read
and approved the final paper.
Conflicts of Interest: The authors declare no conflict of interest.
References
Abidin, A. U., Maziya, F. B., Susetyo, S. H., Yoneda, M., & Matsui, Y. (2024). Heavy metal air pollution in
an Indonesian landfill site: Characterization, sources, and health risk assessment for informal workers.
Environmental Advances, 15(February), 100512, https://doi.org/10.1016/j.envadv.2024.100512.
Ashari, N., Mifta Al Firdaus, M. Z., Budi, I., Santoso, A. B., & Kresna Putra, P. (2023). Analyzing Public
Opinion on Electrical Vehicles in Indonesia Using Sentiment Analysis and Topic Modeling. ICCoSITE
2023 - International Conference on Computer Science, Information Technology and Engineering: Digital
Transformation Strategy in Facing the VUCA and TUNA Era, 461–465,
https://doi.org/10.1109/ICCoSITE57641.2023.10127834.
Fanissa, S., Fauzi, M. A., & Adinugroho, S. (2018). Analisis Sentimen Pariwisata di Kota Malang
Menggunakan Metode Naive Bayes dan Seleksi Fitur Query Expansion Ranking. Jurnal Pengembangan
Teknologi Informasi Dan Ilmu Komputer, 2(8), 2766–2770, https://j-ptiik.ub.ac.id/index.php/j-
ptiik/article/view/1962.
Fitrianto, H. (2023). Analisis Penggunaan Kendaraan Listrik Sebagai Upaya Penurunan Emisi Lingkungan
Case Study Kendaraan Listrik di Provinsi Sumatera Utara. Cakrawala Repositori IMWI, 6(2), 1056–1067,
https://doi.org/10.52851/cakrawala.v6i2.302.
Garcia, K., & Berton, L. (2021). Topic detection and sentiment analysis in Twitter content related to COVID-
19 from Brazil and the USA. Applied Soft Computing, 101, 107057,
https://doi.org/10.1016/j.asoc.2020.107057.
Gustiana, A., Pramono, G. E., & Waluyo, R. (2022). Rancang Bangun Sepeda Motor Listrik “Meliska” (Mesin
Lima Belas Uika). Jurnal AMIKANIKA, 4(2), https://ejournal.uika-
bogor.ac.id/index.php/ALMIKANIKA/article/view/7054.
Imam, A., & Fajtriab, H. (2015). Implementasi Text Mining pada Mesin Pencarian Twitter untuk Menganalisis
Topik - Topik Terkait “KPK dan Jokowi.” Prosiding Seminar Nasional Matematika Dan Pendidikan
Matematika UMS 2015, 570–581, https://publikasiilmiah.ums.ac.id/xmlui/handle/11617/5811.
Indonesia, CNN. (2021). Target Produksi Mobil dan Motor Listrik 2 Juta Unit pada 2025,
https://www.cnnindonesia.com/otomotif/20210223093952-603-609668/target-produksi-mobil-dan-
motor-listrik-2-juta-unit-pada-2025.
Indonesia, P. P. (2019). Peraturan Presiden (PERPRES) Nomor 55 Tahun 2019 tentang Percepatan Program
Kendaraan Bermotor Listrik Berbasis Baterai (Battery Electric Vehicle) untuk Transportasi Jalan (Issue
55).
Indrayuni, E. (2019). Klasifikasi Text Mining Review Produk Kosmetik Untuk Teks Bahasa Indonesia
Menggunakan Algoritma Naive Bayes. Jurnal Khatulistiwa Informatika, 7(1), 29–36,
https://doi.org/10.31294/jki.v7i1.5740.
Istiqomah, N. A., & Marleni, N. N. N. (2020). Particulate air pollution in Indonesia: Quality index,
characteristic, and source identification. IOP Conference Series: Earth and Environmental Science,
599(1), https://doi.org/10.1088/1755-1315/599/1/012084.
Kurniawan, R., & Apriliani, A. (2020). Analisis sentimen masyarakat terhadap virus corona berdasarkan opini
dari Twitter berbasis web scraper. Jurnal INSTEK (Informatika Sains dan Teknologi), 5(1), 67-75,
https://doi.org/10.24252/instek.v5i1.13686.
Lestari, P., Arrohman, M. K., Damayanti, S., & Klimont, Z. (2022). Emissions and spatial distribution of air
pollutants from anthropogenic sources in Jakarta. Atmospheric Pollution Research, 13(9), 101521,
https://doi.org/10.1016/j.apr.2022.101521.
Liu, B. (2011). Web Data Mining. Springer Heidelberg, https://doi.org/10.1007/978-3-642-19460-3.
Malik, H., Shakshuki, E. M., & Yasar, A. U. H. (2021). Approximating Viewership of Streaming T.V Programs
Using Social Media Sentiment Analysis. Procedia Computer Science, 198(2021), 94–101,
Desrina Yusi Irawati (Sentiment Analysis about Electric Motorbikes in Indonesia Using Twitter Data)
Spektrum Industri
ISSN 1693-6590 35
Vol. 22, No. 1, 2024, pp. 25-35
https://doi.org/10.1016/j.procs.2021.12.215.
Masruroh, Nursanti, T. D., Irvianti, L. S. D., & Limin, I. (2023). The Importance of Increasing Public Adoption
of Electric Vehicles in Reducing Jakarta’ s Air Pollution The Importance of Increasing Public Adoption
of Electric Vehicles in Reducing Jakarta’ s Air Pollution. IOP Conf. Series: Earth and Environmental
Science, https://doi.org/10.1088/1755-1315/1324/1/012042.
Merdiansah, R., Siska, & Ridha, A. A. (2024). Merdiansah-Analisis Sentimen Pengguna X Indonesia Terkait
Kendaraan Listrik Menggunakan IndoBERT.pdf. Jurnal Ilmu Komputer Dan Sistem Informasi
(JIKOMSI), 7(1), 221–228, https://doi.org/10.55338/jikomsi.v7i1.2895.
Miftachul Ulum, Mutiara Hikmah, Achmad Fiqhi Ibaidillah, & Kunto Aji Wibisono. (2021). Rancang Bangun
Sepeda Listrik 250 Watt Dengan Mengukur Kecepatan Dan Daya Baterai. Jurnal JEETech, 2(1), 7–12,
https://doi.org/10.48056/jeetech.v2i1.150.
Neogi, A. S., Garg, K. A., Mishra, R. K., & Dwivedi, Y. K. (2021). Sentiment analysis and classification of
Indian farmers’ protest using twitter data. International Journal of Information Management Data
Insights, 1(2), 100019, https://doi.org/10.1016/j.jjimei.2021.100019.
Nurhadi. (2018). Pengembangan Sepeda Motor Listrik sebagai Sarana Tujuan penelitian Metodologi penelitian
Penelitian Terdahulu. Seminar Nasional Inovasi Dan Aplikasi Teknologi Di Industri 2018, 249–255,
https://ejournal.itn.ac.id/index.php/seniati/article/download/1371/1230.
Olabanjo, O., Wusu, A., Afisi, O., Asokere, M., Padonu, R., Olabanjo, O., Ojo, O., Folorunso, O., Aribisala,
B., & Mazzara, M. (2023). From Twitter to Aso-Rock: A sentiment analysis framework for understanding
Nigeria 2023 presidential election. Heliyon, 9(5), e16085, https://doi.org/10.1016/j.heliyon.2023.e16085.
Persadaa, S. F., Kumalasaria, R. D., Shantia, M., Lukiyantoa, K., Putri, G. S., Ramadhana, C. A., Young, M.
N., & Prasetyo, Y. T. (2024). How Social Media Reacting to Bakso Malang as Culinary Business on Post
Covid 19: A Sentiment Analysis. Procedia Computer Science, 234, 463–469,
https://doi.org/10.1016/j.procs.2024.03.028.
Pratama, Y., Murdiansyah, D. T., & Lhaksmana, K. M. (2023). Analisis Sentimen Kendaraan Listrik Pada
Media Sosial Twitter Menggunakan Algoritma Logistic Regression dan Principal Component Analysis.
Jurnal Media Informatika Budidarma, 7(1), 529–535, https://www.stmik-
budidarma.ac.id/ejurnal/index.php/mib/article/view/5575.
Pratiwi, A. A., Wibawa, B. M., & Baihaqi, I. (2020). Identifikasi Sepeda Motor Listrik Terhadap Niat Membeli:
Kasus di Indonesia. Jurnal Sains Dan Seni ITS, 9(1), https://doi.org/10.12962/j23373520.v9i1.50819.
Ravi, S. S., Brace, C., Larkin, C., Aziz, M., Leach, F., & Turner, J. W. (2023). On the pursuit of emissions-
free clean mobility – Electric vehicles versus e-fuels. Science of the Total Environment, 875(March),
162688, https://doi.org/10.1016/j.scitotenv.2023.162688.
Sadiq Okoh, A., & Chidi Onuoha, M. (2024). Immediate and future challenges of using electric vehicles for
promoting energy efficiency in Africa’s clean energy transition. Global Environmental Change,
84(December 2023), 102789, https://doi.org/10.1016/j.gloenvcha.2023.102789.
Salsabila, H., Habibi, R., & Harani, N. H. (2023). Social Media-Based Sentiment Analysis: Electric Vehicle
Usage in Indonesia. Indonesian Journal of Computer Science, 12(3), 1132–1146,
https://doi.org/10.33022/ijcs.v12i3.3250.
Sukarno, I., Matsumoto, H., & Susanti, L. (2016). Transportation energy consumption and emissions - a view
from city of Indonesia. Future Cities and Environment, 2(0), 6, https://doi.org/10.1186/s40984-016-0019-
x.
Desrina Yusi Irawati (Sentiment Analysis about Electric Motorbikes in Indonesia Using Twitter Data)