Skip to main content
QUICK REVIEW

[Paper Review] ClimateNLP: Analyzing Public Sentiment Towards Climate Change Using Natural Language Processing

Ajay Krishnan T. K., V. S. Anoop|arXiv (Cornell University)|Oct 12, 2023
Climate Change Communication and PerceptionSocial Sciences5 citations
TL;DR

This paper proposes a climate sentiment analysis framework using ClimateBERT, a domain-specific BERT model fine-tuned on climate change-related tweets, to classify public sentiment. It achieves 85.22% accuracy and 85.73% precision using random forest on a balanced dataset, demonstrating that specialized language models outperform general ones for climate discourse analysis.

ABSTRACT

Climate change's impact on human health poses unprecedented and diverse challenges. Unless proactive measures based on solid evidence are implemented, these threats will likely escalate and continue to endanger human well-being. The escalating advancements in information and communication technologies have facilitated the widespread availability and utilization of social media platforms. Individuals utilize platforms such as Twitter and Facebook to express their opinions, thoughts, and critiques on diverse subjects, encompassing the pressing issue of climate change. The proliferation of climate change-related content on social media necessitates comprehensive analysis to glean meaningful insights. This paper employs natural language processing (NLP) techniques to analyze climate change discourse and quantify the sentiment of climate change-related tweets. We use ClimateBERT, a pretrained model fine-tuned specifically for the climate change domain. The objective is to discern the sentiment individuals express and uncover patterns in public opinion concerning climate change. Analyzing tweet sentiments allows a deeper comprehension of public perceptions, concerns, and emotions about this critical global challenge. The findings from this experiment unearth valuable insights into public sentiment and the entities associated with climate change discourse. Policymakers, researchers, and organizations can leverage such analyses to understand public perceptions, identify influential actors, and devise informed strategies to address climate change challenges.

Motivation & Objective

  • To analyze public sentiment toward climate change using natural language processing on social media data.
  • To evaluate the effectiveness of domain-specific pre-trained language models, particularly ClimateBERT, in sentiment classification for climate discourse.
  • To compare the performance of various NLP models and feature engineering techniques (e.g., TF-IDF, CountVectorizer, word2vec) combined with traditional ML classifiers.
  • To identify key entities and sentiment patterns in public discourse on climate change to support policy and communication strategies.
  • To contribute to the advancement of NLP applications in environmental and public health research by providing a reproducible framework for sentiment analysis on climate-related text.

Proposed method

  • Fine-tuned ClimateBERT, a domain-adapted BERT model pre-trained on climate change-related documents, for sentiment classification on Twitter data.
  • Preprocessed and balanced a dataset of climate change-related tweets, removing noise and standardizing text for model input.
  • Combined traditional NLP features (TF-IDF, CountVectorizer, word2vec) with machine learning classifiers (Random Forest, SVM, Decision Tree, Logistic Regression).
  • Trained and evaluated multiple models using standard NLP metrics: accuracy, precision, recall, and F1-score on a held-out test set.
  • Used a two-stage pipeline: data collection via Twitter API, followed by model training and evaluation using 5-fold cross-validation.
  • Selected the best-performing model configuration based on F1-score and balanced accuracy to ensure robustness across sentiment classes.
Figure 1: Overall workflow of the sentiment analysis on climate Change tweets
Figure 1: Overall workflow of the sentiment analysis on climate Change tweets

Experimental results

Research questions

  • RQ1How effective is ClimateBERT in classifying public sentiment on climate change in social media text compared to general-purpose models?
  • RQ2Which combination of feature extraction techniques (e.g., TF-IDF, CountVectorizer, word2vec) and machine learning classifiers yields the highest performance in sentiment classification for climate discourse?
  • RQ3What are the dominant sentiment patterns and key entities associated with climate change discussions on Twitter?
  • RQ4How do traditional NLP methods compare to fine-tuned transformer-based models like ClimateBERT in sentiment analysis of climate-related content?
  • RQ5Can sentiment analysis of public discourse on climate change provide actionable insights for policymakers and public health officials?

Key findings

  • ClimateBERT fine-tuned with a random forest classifier achieved the highest accuracy (85.22%) and precision (85.73%) among all models tested.
  • The combination of TF-IDF and CountVectorizer yielded an F1-score of 86.87% with random forest, outperforming other feature combinations.
  • General BERT models performed poorly, with an F1-score of only 63.70% for SVM, indicating limited transferability to climate-specific sentiment tasks without domain adaptation.
  • Among traditional models, random forest consistently outperformed SVM, decision tree, and logistic regression across all metrics, especially on ClimateBERT embeddings.
  • The model trained on ClimateBERT embeddings achieved a recall of 85.22% for positive sentiment, indicating strong ability to identify supportive public opinions on climate change.
  • The study confirms that domain-specific pre-training significantly improves sentiment classification performance on climate-related text, validating the utility of ClimateBERT for environmental NLP tasks.
(a) Performance evaluation of SVM, LR, RF, and DT algorithms with TF-IDF
(a) Performance evaluation of SVM, LR, RF, and DT algorithms with TF-IDF

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.