A Machine Learning Approach to Indonesian Climate Change Sentiment Analysis Using Naive Bayes
DOI:
https://doi.org/10.47738/ijiis.v8i1.246Keywords:
Climate Change, Sentiment Analysis, Twitter, Naive Bayes, Indonesia, Public PerceptionAbstract
Climate change poses a significant global challenge, particularly for archipelagic nations such as Indonesia that are highly vulnerable to rising temperatures and extreme weather events. This study applies machine learning-based sentiment analysis to assess Indonesian public opinion on climate change using Twitter data. A total of 5,120 Indonesian-language tweets were collected through keyword-based scraping related to climate and weather conditions. Following text preprocessing (lowercasing, stopword removal, stemming, and cleaning), TF-IDF vectorization was used to extract the top 400 most significant terms. The dataset was divided into training (80%) and testing (20%) subsets, and a Multinomial Naïve Bayes classifier was trained to categorize sentiments into positive, neutral, and negative classes. The results show a dominance of negative sentiment (62%), primarily associated with extreme heat and storm-related events, while neutral (24%) and positive (14%) sentiments were linked to moderate weather conditions. Model evaluation achieved an F1-score of 0.95 for negative, 0.86 for neutral, and 0.83 for positive sentiment, yielding a macro-average F1-score of 0.88. The analysis also identified “panas (hot),” “hujan (rain),” and “banjir (flood)” as top lexical indicators influencing classification. Overall, the findings highlight that Indonesian public sentiment toward climate change is highly reactive to extreme weather. The study underscores the potential of Naïve Bayes as a baseline model for real-time environmental sentiment monitoring, offering valuable insights for institutions such as BMKG to enhance public communication and climate awareness strategies.Downloads
Published
Issue
Section
License
Authors who publish with IJIIS : International Journal on Informatics and Information Systems agree to the following terms: Authors retain copyright and grant the IJIIS : International Journal on Informatics and Information Systems right of first publication with the work simultaneously licensed under a Creative Commons Attribution License (CC BY-SA 4.0) that allows others to share (copy and redistribute the material in any medium or format) and adapt (remix, transform, and build upon the material) the work for any purpose, even commercially with an acknowledgement of the work's authorship and initial publication in IJIIS : International Journal on Informatics and Information Systems. Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in IJIIS : International Journal on Informatics and Information Systems. Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).

