Abstract
The debate on climate change has increasingly attracted attention, especially among young people, since the foundation of the movement Friday for Future and the raising fame of Greta Thunberg.
Social media websites can be used as a data source for mining public opinion on a variety of subjects including climate change. Twitter, in particular, allows for the evaluation of public opinion across time. Although it is a known problem that Twitter population is biased with respect to the whole population, it is also true that Twitter users are more likely to be young people. For this reason, the sentiment analysis of Twitter textual data on climate topics provides valuable insights into the climate discussion and could be considered as representative of the rising climate movement.
In this study, a large dataset of Italian tweets between 2016 and 2022 containing a set of keywords related to climate change (e.g. Global warming, sustainable development, etc.) is analysed using volume analysis and text mining techniques such as topic modelling and sentiment analysis.
Topic modelling, performed using word embedding, allows validating the keywords’ set and providing the prevalent discussion in Italy about the climate agenda and the major concerns related to climate emergency.
Both daily volume and sentiment of tweets series have been analysed. The first series allows assessing the Italian participation to the climate debate, while the latter provides useful insights on the overall evolving mood during these years. In particular, we show that the major Italian concerns are related with global warming with a negative mood while a positive mood is recorded when public policies on environment are implemented.
Introduction
The use of Big Data for official statistical purposes represents a growing field of interest and many statistical offices provide new experimental statistics. The use of Big Data allows to integrate official estimates and to produce new indicators complementary to official statistics estimates. The interest on climate change, more precisely the climate emergency we are currently witnessing, is recent and official statistics is trying to measure these new phenomena by integrating different surveys, such as survey of weather-climate and hydrological data, with other statistical indicators on pollution or deforestation.
Twitter, as a social media, is the most popular platform to share breaking news, individual experience, and opinions about current events.
It is a fact that the debate about climate change on social media became very intense since the foundation of Greta Thunberg movement especially among young people. Indeed, in February 2020, Thunberg had 4 million followers on Twitter and 9.7 million followers on Instagram. She became so popular that [1] published a study about the perception and sentiments of Twitter users about Greta, where they also try to characterize US and Swedish users following Greta. Indeed, the movement on climate change and strike was advertised on Twitter and many other social media. Another study [2] focuses on English tweets and applies Latent Dirichlet Allocation (LDA) for topic modelling to infer the different topics of discussion, and Valence Aware Dictionary and Sentiment Reasoner to evaluate sentiment analysis. A similar study [3] focuses on topic modelling analysis via LDA on Twitter posts of US federal government science agencies about climate change. Finally, [4] specifically focuses on climate global warming Twitter data: topic analysis is carried out by standard LDA and sentiment analysis is computed by a word-list approach National Research Council Word-Emotion Association Lexicon,1 to track the emotions of people (joy, anger or fear).
All the afore-mentioned approaches base the data collection process on tweets containing a specific set of keywords, then undergo a specific text pre-processing, finally computing the sentiment score. In general terms the latter can be estimated using two popular approaches: lexicon-based sentiment analysis based on wordlists, weighted in the form of scores, and sentiment analysis based on machine learning.
Cody et al. [5] is amongst the first studies on Twitter and climate topics. In this research, they analyse a set of tweets, collected between September 2008 and July 2014 and containing the word “climate” Using a sentiment measurement tool called the Hedonometer2 (not available for Italian), they determine how collective sentiment varies in response to climate change news, events, and natural disasters.
The present study differs from the cited works because a Word Embedding (WE) approach is applied, and the sentiment analysis is lexicon-based.
Concerning the population of Italian Twitter users, estimates at national level [5] quantify in 11.2 million the Italian Twitter users on a population of 60 million in 2021. Other estimates calculate that the users represent around 11% of the total population and 24% of 14–29 years old of users [6]. For this reason, it is clear that students and young population are over-represented in Twitter. Nevertheless, since the interest on climate movement and agenda is prevalent among young people, analysing the Italian mood on such a subject may be considered as relevant. However inference remains difficult, indeed a recent study [7, 8] shows that males are overrepresented among the Twitter users and in larger cities areas. The territorial distribution seems to be quite similar to that of the total population.
Istat collects since 2016 tweets using two specific filters: one is used to publish the experimental statistics Social Mood on Economy Index [9]; the second (Istat-filter) has not yet being used to provide any other experimental statistics. This filter involves 278 keywords, that have been derived from the themes available on Istat’s online data warehouse [10].
Messages sampled through Istat-filter are meant to represent a small-scale model of the overall population of messages which are potentially relevant in the Official Statistics perspective. This allows to develop new indicators, such the present study on climate change social perceptions.
The scope of this index is to symmetrically measures feelings related temperatures (hot/cold), opposite weather events (rain or drought), environment, pollution, carbon emissions but also policies related to sustainable development, renewable energies, waste recycling so to record both positive and negative events.
The paper is outlined as follows: in Section 2 an overview of the research activities in the field of Sentiment Analysis is provided, in Section 3, the authors illustrate how the daily sentiment index has been built, and the WordEmBox i.e., a web application that allows to query and visualize WE models, used to ensure the relevance of sampled tweets and for topic analysis purposes [11]. In Section 4, first the relevance and validation of filter’s keywords, obtained by a data driven analysis prior to the growth of the climate change movement (2016–2017) is explained. Then both the daily sentiment series and the volumes of tweets captured the filter the are commented, by analysing both dynamics. Volume analysis enables to highlight the Italian participation to global strike and Greta Thunberg movement. Sentiment analysis shows that the overall discussion is negative, mainly in case of extreme weather events in Summer. Finally, a focus is carried out with the aim of better understanding Twitter conversations and how events may lead to changes on the mood, by means of an ad-hoc word embedding model.
Background and related works
Sentiment analysis (or opinion mining) is a natural language processing technique aiming at identifying people’s attitudes, whether positive, neutral, or negative, based on statements or text they have produced, e.g., tweets. In recent years, sentiment analysis has attracted great attention both in academic and industrial contexts because of its broad range of applications, e.g., brand and product sentiment monitoring based on customer feedback, customer satisfaction and market research [12]. The main focus of sentiment analysis (SA) is the estimate of the polarity of a text (positive, negative, neutral), but it further allows to detect specific feelings and emotions (angry, happy, sad, etc.), urgency (urgent, not urgent) and even intentions (interested v. not interested). In general terms SA tasks aim at labelling people’s opinions in different categories such as positive and negative (or relevant and out of scope, subjective vs objective) from a given piece of text (e.g., a tweet or an article). Classifying these documents, is an arduous task. In recent years many methods, techniques and tools have been implemented to increase the accuracy of SA in different tasks at different levels. The techniques used to classify opinions can be grouped as follows: i) machine learning approaches, based on Natural Language Processing (NLP); ii) lexicon-based approaches based on lexical resources; iii) hybrid approaches.
In the context of machine learning, supervised machine learning approaches, have a well-known limitation related to the sensitivity of the models to the quantity and quality of the training datasets, indeed the predictions may be very inaccurate when training data are biased or insufficient. Semi-Supervised learning (SSL) models drive from either supervised or unsupervised methods. In contrast with supervised learning, which learns only from labelled data, SSL learns from both labelled and unlabelled data. This is motivated by the lack of labelled data in real world applications. The main idea behind SSL is that, although unlabelled data hold no information about classes, they do contain information about joint distribution over classification features. Therefore, the use of SSL with unlabelled data can increase the accuracy of the predictions over supervised learning. In lexicon-based approaches words in texts are labeled as positive or negative (and sometimes as neutral) with the help of a so-called valence dictionary. Finding the proper dictionary can be very challenging (e.g., in Italian very few dictionaries are available).
In the following, several state-of-the-art artificial intelligence techniques are described, with special attention to the Italian case, as most of above-mentioned methods are primarily developed for English texts.
The first and most common approaches used in the field of sentiment analysis are based on features like unigrams, Part Of Speech (POS) tags and term position [13], opinion words and sentences [14], negations [15] and syntactic dependencies [16]. Some approaches have shown effective performance in text categorization, such as Support Vector Machine (SVM) [17], Multinomial Naïve Bayes (MNB) [18] and Maximum Entropy (ME) classifiers and derived ensembles [16, 19], even if their classification performances are limited by the high training costs due to the need for a broad vocabulary, i.e., more words from which more features can be extracted [20] to be used in conjunction with machine learning algorithms for sentiment classification.
With respect to lexicon-based methods, Italian polarity lexicons that deserve to be mentioned are Sentiment Italian Lexicon [21], also known as Sentix;3 SentIta [22] the lexicon of the University of Bologna [23]; the CELI Sentiment Lexicon [24]; the Distributional Polarity Lexicon [25] and SenticNet [26]. The advantage of using sentiment polarity lexicons, such as DPL and Sentix is that, compared to simpler lexicon-based approaches, they do not assign a binary value, indicating if lemmas are either positive or negative, but also indicate the degree of polarisation of lemmas.
Word embedding
Word Embedding (WE) is a technique that maps textual tokens, e.g., words, into dense and low-dimensional vector space, built on large unlabelled corpora, where each token is related to other tokens in its context. Methods to generate this mapping include neural networks, dimensionality reduction on the word co-occurrence matrix, probabilistic models. Word2Vec, proposed by Mikolov et al. [27], was the first technique used for word embedding based on neural networks. Word2Vec can adopt two different models: the skip-gram model or the Common Bag Of Words (CBOW) model. While the latter predicts a word based on the words within the surrounding context, the former predicts the words within the surrounding context starting from the current word. These models map words into vectors that are closer when words are similar and often close together. TheWord2Vec approach gained a huge resonance in the scientific context, and it is still used in several areas in combination with deep neural networks, such as health care [28].
Pennington et al. [29] proposed another model Global Vectors (GloVe), that generate the vector encoding of a word faster thanWord2Vec, because the implementation can be parallelized when launched on a greater amount of data. Moreover, Cao and Rei [30] proposed a novel approach named char2vec based on the representation of characters instead of words.
FastText is an extension of Word2Vec proposed by Facebook in 2016 [31]. Instead of feeding individual words into the Neural Network, FastText breaks words into several n-grams (sub-words). It allows to handle properly rare words since it is highly likely that some of their n-grams also appears in other words.
In the field of sentiment analysis, several WE models were proposed, based on the prior knowledge acquired both through opinionated words from sentiment lexicons and available sentiment labels. Li et al. [32] proposed a new method for learning word embedding for sentiment analysis based on prior knowledge, which improved the results in comparison with standard WE.
Deep neural networks
Deep Neural Networks (DNNs) are Artificial Neural Networks (ANNs) that present multiple hidden layers between input and output and exist in a plethora of different architectures depending on the topology of neurons and their connections; The architectures that have brought remarkable results over the years in the research context are [33]: Convolutional Neural Networks (CNNs), Recurrent Neural Networks (RNNs), up to language models based on transformers [37]. A detailed description of such models is out of the scope of the paper, nevertheless a brief description of the methods and main applications of DNNs can be found in [37, 38].
The most recent works proposed language models specifically pre-trained on tweet corpora: Thakkar and Pinnis [34] achieved encouraging performance leveraging a time balanced evaluation set for sentiment analysis on Latvian tweets, comparing several BERT-based architectures, and Nguyen et al. [14] presented BERTweet, the first public large scale pre-trained language model for English tweets.
With respect to Italian Bert Models, the University of Bari developed a brand new model for Italian especially devoted to Twitter texts and social media, AlBerto trained by using 200 millions tweets from 2012 to 2015 [35]. Only the uncased model is available to the community. Due to the specific training Alberto requires a particular pre-processing step for replacing hashtags, urls, etc. that alter the official tokenisation, therefore it is not really applicable to word-based classification tasks in general texts; thus, it will be used on twitter or social media data. GilBERTois a rather new CamemBERT Italian model trained by using the huge Italian Web corpus section of the OSCAR [35] corpus project consisting of more than 11 billions of tokens. Also for GilBERTo it is available only the uncased model.
The more recent model developed explicitly for Italian, as far as we know, is UmBERTo. As well as GilBERTo, it has been trained by using OSCAR, but the produced model, differently from GilBERTo, is cased.
Recently, 2021, a sentiment classifier feel-it based on UmBerto was proposed [46] and a new manually annotated data-set released where posts were annotated with four basic emotions: anger, fear, joy, sadness. By collapsing them, also a sentiment sentiment classifier of positivity vs negativity is available. All these models are available on github.
Methods
In the following we briefly describe: i) the methodology used to compute the sentiment index; ii) the scoring procedure; iii) the word embedding technique used both for topic analysis and for validating filter’s keywords.
Twitter social mood index on climate change
For the calculation of the Twitter Social Mood on Climate Change Index (in the following SMCCI) we adopt an unsupervised lexicon-based approach. Such approach is currently used in Istat to calculate the Social Mood on Economy Index [9, 40].
The daily pipeline, sketched in Fig. 1, consists of three fundamental steps: (i) collection and pre-processing (text cleaning) of the daily sample of public tweets related to climate change; (ii) estimate of the sentiment score of each tweet in the sample; (iii) calculation of the daily value of the index as synthesis of the sentiment values of entire sample.
Step (i): Daily sample data collection
Daily pipeline for the calculation of SMCCI index.
Twitter’s streaming API allows downloading, for research purposes, samples of tweets in real time. Istat collects samples of tweets since 2016 with the aim of producing innovative indicators of interest for official statistics. The data collection procedure uses a filter composed of 278 words borrowed from Istat’s online data warehouse that represent all the possible relevant themes for official statistics purposes. (Istat-filter). For privacy reasons, user data is not saved and only data related to the tweet (as text and date) are stored in the archive. To extract tweets related to climate change, we apply a second level filter (CC-filter), containing lemmas tailored to the topic of interest. To create the CC-filter, we begin by selecting a subset of Istat-filter’s terms referred to climate events, ecologic transition, alternative energy sources and similar (CC-filter-preliminar). Then we integrate this preliminary list with a set of terms strictly related to the specific goal of the index, these terms may not be present in the first level filter. Such list, composed of 48 lemmas, is used to extract from Istat’s tweets store a dataset of about 20 million of tweets (11,000 per day in period 2016–2021). This wide dataset is further used to verify the relevance of each of the 48 keywords in the CC-filter through word embedding techniques, described in the following. The result of this refining phase is a new list of 78 keywords that is the second level filer of SMCCI, i.e., the CC-filter used to compute the index.
In this work, we present the index calculated in the period between October 1
Step (ii): Sentiment score estimate
To identify tweets’ sentiment, we adopt a lexicon-based approach. Amongst the few Italian resources available we use an integrated version built from the two distinct Distribution Polarity Lexicons (DPL), which turned out perform better results in the Social Mood on Economy Index and consequently adopted in [41].
Examples of DPL sentiment lexicon scores
The scoring of each term is obtained by means of a Support Vector Machine classifier based on wide dataset of messages posted in Italian social media during 2016. The methodology is described in [42]. Castellucci et al. use a sentiment transfer from sentences to words to derive a large-scale polarity lexicon, based on Distributional Models of lexical semantics. Given a set of sentences annotated with polarity, the classifier transfers the sentiment information from sentences to words. The set of annotated examples is derived from Twitter and the polarity is assigned to sentences by simple heuristics. The approach is mostly unsupervised.
In practical terms, three scores measure the sentiment of a word or expressions: positivity (Pos), negativity (Neg) and neutrality (Neu). For each entry of the vocabulary holds true: Pos
Step (iii): Calculation of the daily index
Cartesian and polar coordinates adopted by sentix: 
Similarly, to what proposed in [9], we consider polar coordinates (intensity i and polarity [omega]) instead of Cartesian coordinates for each tweet. The following relationship holds true, as shown in Fig. 2:
We neglect the neutral component.
Polarity
The daily value of the index is an appropriate central tendency measure, i.e. it is a weighted mean of the polarity. The exact formula we apply is the following:
In theory, the SMCCI index can assume any value between
In order to make the index robust against these possible contaminations, we developed a “surveillance system” which searches for anomalous values in the daily time series by means of an outlier detection routine. We carefully verify all these outlier points before admitting them into the index series.
The Word Embeddings have shown as a powerful tool to extract word representations from wholly unstructured set of textual messages by an unsupervised Machine Learning model [13]. The underlying insight of words’ vector representations is the “distributional hypothesis”: “You shall know a word by the neighbours it keeps”. The output of WE is a words vector space that, in general, captures syntactic and semantic regularities within language patterns. Every relationship appears as a relation-specific vector offset enabling vector-oriented reasoning.
These classes of models share some common characteristics, namely the input space, the output space, and the architecture of the neural network. The available neural network architectures are Skip-Gram or CBOW. The latter is generally more suitable for short unstructured text and is therefore the chosen architecture for our word-embedding simulations. These models require a fine-tuning of several hyper-parameters to enhance the quality of the output model and it is not scope of the present paper to provide a detailed description.
Nevertheless, the main hyper-parameters are: (i) embedding space dimension: the vector space size to which the words of the corpus are mapped; (ii) window size: the width of the sliding window defining context’s size; (iii) iterations: the number of neural network’s training epochs. As both embedding space dimension and the number of iterations increase, the accuracy of the word embedding model is expected to increase. On the contrary, the window size reaches its maximum value depending on the analysed corpus, while for higher or shorter values the accuracy decreases.
WordEmBox
WordEmBox is an open-source tool developed by Istat, with the aim of providing a set of functionalities that allow exploring Word Embedding (WE) vector spaces [11]. WordEmBox is compatible with models generated by WordToVec and FastText. These models produce context independent word representations, i.e., each word has a unique vector representation (embedding), combining all the different senses of the word.
The WordEmBox provides a set of functionalities, based on WE models standard outputs:
affinity, for a given word it provides a list of the most affine words, i.e. the words which are closer in the vectorial output space according to the cosine distance; analogy, which allows to solve similarities between pairs of words, in particular given three words, where one pair has a semantic relationship such as Italy, Rome, for a chosen country it should provide its Capital; graph analysis, a peculiar WordEmBox function, in which, starting from a root seed word, the list of the most affine
In our simulations we mainly use the ‘graph analysis’ functionality, that allows to explore the surrounding of both the root node and the iteration nodes. This graph allows to investigate topics related to the seed/root word, e.g., filter keywords, and to create closed topic clusters, i.e., as the number of iterations increases the number of connected nodes saturates.
WE model performance
The optimality of WE models can be addressed in terms of the robustness of their results as well as their validity. More specifically, WE performances are evaluated in terms of: (i) stability, i.e., measurement of WE models robustness using intrinsic evaluation based on word similarity (affinity) by varying a set of hyper-parameters; (ii) validity, i.e., testing the optimality of WE models using extrinsic evaluation based on word analogies by developing a set of “ad-hoc” analogies for research purposes. There are few studies in literature which address the stability of a WE models [47, 48].
Given two WE models E1, E2, a list of word in the vocabulary, where
Then the stability between two models is defined as:
In the present study, as the major purpose is to validate the filter and to carry out an implicit topic modelling on a set of keywords, we disregarded an extensive evaluation on all the hyper-parameters. A detailed analysis is carried out in [47, 48]. Both studies show that the nearest-neighbour distances are highly sensitive to small changes in the training corpus for a variety of algorithms. For all methods, the inclusion of specific documents in the training set can cause substantial variations in the output space. However, in [48] they show that, given a corpus, after 20 iterations all the models converge to a stability value and increasing the number of iterations does not provide any enhancement. They also show that the optimality of the window size depends upon the text under examination.
In the following simulations our WE models are generated using Word2Vec [43] applied to a subset of Istat-filter tweets, sampled using both CC-filter-preliminar and CC-filter of a certain period.
With respect to the specific hyper-parameters used when training our models, we have selected:
CBOW architecture, which is more suitable for the short informal nature of our corpus of tweets. In addition to that, when compared to Skip-gram it provided analogies that are more consistent. Number of iterations equal to 20, which should ensure a robust convergence of the model. The output vector dimension was set to 200. The reference chosen window was 8, because again it was intrinsically validated by means of analogies.
Nevertheless, in Section 4.2, we evaluate extensively stability between models, according to the following criteria: architecture, and window size.
Results
Relevance of the CC filter
The validation of the filter is a two-step procedure: i) a top-down approach where experts chose a preliminary list of keywords; ii) a bottom up approach where a data-driven analysis through WE graphs, permitted to disregard some terms or to enrich the filter with correlated terms which were initially not set.
Before analysing the text of tweets through WE, we clean and pre-process the data. We perform several steps in creating our training corpus by removing stop words, removing URLs, punctuation, and converting all words to lower case.
Starting from the initial set of words of the Istat filter, a subset of words connected to the environment has been selected. Then, we added some words not contained in the Istat filter, such as climate or climatic and specific climate events such as rain or grown. In this way, we extracted from the collected base of tweets those pertinent to the theme under analysis. We decided to skip climatic catastrophes such as earthquakes or volcanoes in order not to record too many negative events. Then we trained the WE model on a corpus consisting of 2016–2017 tweets’, in order to validate our set of keywords. We decided to use this time interval because we wanted to analyse semantic relations prior to the raise of the global climate movement since 2018, because we did not want to risk having distorted representations. In order to avoid any bias in the sentiment index we decided not to include specific words or expressions related to the climate movement, such as “Friday for future” or “global strike”. However, words such as “sustainable development” or “global warming” were included. We then tested words with multiple meanings, such as environment, energy. It turned out that for instance energy, see Fig. 3 on the right, is linked as expected to elettrico (electric), idrico (hydric), but also to adrenalina (hadrenalin) and in general to the field of emotions. For these reasons, we decided to decline the word energy into composite expressions such us “electric energy” and so on. In some cases, this analysis lead to add some words such as “green”, see Fig. 3, because while “green” is linked to words related to environment, the Italian word, verde (green) showed no good semantic relationships.
WE graph of the word green on the left and of the word energia (energy) on the right.
In some other cases this data driven analysis leads to add some words in the filter which were not previously taken into account. For instance, deforestification appeared to be strongly affine to environment. A final remark about the main sources of contaminations over time, induced by new words and their popularity. Since summer 2021, the word green was mainly associated to “green pass”, in order to avoid any possible bias tweets containing the expression “green pass” were filtered out.
As the size of corpus increases, usually WE models trained on large structured texts should increase their accuracy at least for frequent words. When WE models are trained on twitter texts, that contain many hashtags and neologisms, whose usage decay very rapidly, it is not evident how WE models may vary according to the choice of the hyper-parameters. Twitter may be seen as a large unstructured text full of sparse words. Moreover, it is not evident if the size of the corpus exceeds a certain value this may cause some convergence problems.
We then decided in order to validate results to extend the period of analysis of tweet for the whole period 2016-2021 of the tweet samples of the initial filter. We then analysed 20 million of tweets for a total of 634 million of tokens, roughly 10 times bigger than in [48].
We set our vocabulary as the intersection of words (thus excluding composite expressions) with the words of the cleaned corpus having at least 5 occurrences. Thus, the size turned out to be almost 21 thousand records. We then computed the stability and its standard deviation as reported in Table 2, for the whole vocabulary size and for the filter keywords. We computed stability for 25
Stability evaluation of WordToVec models
Stability evaluation of WordToVec models
Results are coherent with [48] and [47] where for WordtoVec they observe a mean stability of 45%. The highest stability value is obtained with cbow and between windows of size bigger than 8. It is worth to notice that the use of different architectures, when using a window of 5, lead to complete different results. However for our analysis purposes results, at least for our keywords are satisfactory as it can be seen for the word “climate” where the overall stability is 0.84 as shown in Table 3. Moreover, the time span permits to observe the social link of the word climate with all the conference on climate change, as well as climate changes, global warming and global strike for future. Most of the affinities words are represented by hashtags and are not words.
List of the first 25 stable affinites obtained comparing E1 (CBOW window
5) vs E2 (CBOW window
8) for the word clima climate
List of the first 25 stable affinites obtained comparing E1 (CBOW window
Volume daily series of SMCCI.
By the use of the CC filter in our tweets database for the period between October 1
In addition to that, a level shift in the volume series is observed since November 2018, in occasion of the climate movement founded by Greta Thunberg.
The figure shows also the most relevant peaks of the series, which are related to specific relevant events. Ecological crisis like the waste emergency in Rome in May 9
Comparison of the interest about “climate” recorded in google trends and in SMCCI.
Social mood on climate change index (SMCCI).
In order to understand how our tweet volumes are able to grasp the overall internet interest about climate, which is in the filter and represent over the 30% of the sampled tweets, we decided to compare the time-series of normalized shares of tweets containing the word “climate” with google trends for climate in Italy. Google Trends allows analysing the popularity of top search queries in Google Search across various regions and languages (IT and Italian in our case). The website uses graphs to compare the search volume of different queries over time. This comparison was carried out for five years by analysing a weekly time-series as shown in Fig. 5, where for comparison reasons we computed the shares as the absolute number of tweets containing the word climate, divided by the maximum number of tweets containing the word climate over the considered time period.
Comparison of the monthly moving average of the social mood on climate change index (SMCCI) with its preliminary index.
WE graph of the word agenda.
These weekly 5 years’ series show a correlation of 0.7; hence, it suggests that the tweets are consistent with the importance of environmental issues in media and web researches. We disregarded minor expressions such as climate change or emergency, because they show a very low interest in google trends and selected among the set of keywords the word that has both the major interest in google trends and maximum absolute frequency in our index. Some differences may be due to the viral nature of the Twitter platform in exam.
In Fig. 6 the SMCCI is shown, and the most relevant positive and negative peaks are commented. Major negative peaks are observed in August and are related to extreme high temperatures. In particular, the lowest value of the index is recorded when in August 2020 on the same day two workers died crushed by the heat in North Italy (Pordenone and Bologna). Positive peaks are observed when the Government either promotes measures for eco-sustainability (September 2021, Decree of Ministry of ecologic transition) or his commitment for environmental measures (29
In general, we can infer that extreme temperatures induce negative peaks (due to global warming it is more frequent the case of elevated temperatures).
Comparison of sentiment index within the two filters
As mentioned above in Section 4.1 it is important to highlight that the sets of tweets selected with the final version of filter are not simply sub-sets of those selected with the preliminary version. As a result, the two filters have an intersection but it is not evident the comparison of the index between the two filtering settings.
The correlation between the volume of the two versions is quite high (0.90), instead the correlation between the daily index value of the two versions is only 0.59. However, at least when dealing with additive outliers the choice of the filter has a non-trivial impact. The second version of the filter looks more reliable from the word embedding analysis and is the version that has a no false outliers, while in the previous filtering assumption the number of days “contaminated” by high presence of out-of-context tweets in the daily sample was eight. A rough quality indicator such as the correctness of truly outliers may be considered as a quality improvement at least in terms of relevance.
It is less clear the impact on moving averages as shown in Fig. 7 where a monthly moving average is shown. In this smoothened series, we observe that the dynamics since December 2017 to September 2020 are very similar, hence suggesting that the two filtering assumptions are quite robust with respect to the Climate change raising movement. The dynamics in 2017 and 2021 look different, due to the introduction of some keywords such as temperatures. The overall volatility of the second series is higher; however, the moving average series show a good correlation 0.78.
Discussion in Italy about the climate agenda
We decided to use tweets from 1st September to 2nd November 2021 because of the following reasons: i) we wanted to focus on recent data; ii) we observed an increase of volumes of tweets; iii) the level of the social mood was lower with respect to May 2021 which was anomalous. In total, we trained the WE model with 500.000 tweet. In this case, as the size of the corpus is much smaller representations tends to be more robust. As we can observe in Fig. 8, where the word agenda is plotted, one major link is to climate (clima).
The other two links are related to program (programma), which is related to mobility (mobilità) and development (sviluppo), and to politics (politica) in particular Draghi, Prime Minister, and Cingolani, Minister of the ecological transition (see positive peak of the index). If we analyse the climate branch, we observe the young commitment (giovani, ragazzi) into the climate movement and COP (UN Climate Change Conference of the Parties) which began the 31
Conclusions
With respect to the present study, it is evident that the Twitter debate on climate change reached its maximum in 2019, but still volumes of 2021 and 2020 are 70% higher than those of 2016–2017. Concerning the dynamics of the daily raw index, it is quite difficult to identify a clear trend, presenting numerous spikes, i.e. additive outliers related to identifiable events of extreme weather conditions, mainly anomalous heat in summer (negative), or public policies in favour of renewable energies and sustainable development (positive). Concerning the Italian twitter mood we observe a substantial seasonal fall during summer. In particular, it seems that the raw index shows a yearly seasonality, associated with a negative mood in summer.
From a topic modelling view, results confirm that a young population, jointly with the use of many hashtags that confirm the presence of a closed community, primarily follows the debate on climate change.
For the first time we exploited the set of the Istat filter tweets to produce a new daily index. As results seem to be very encouraging we plan some further investigations in order to measure other phenomena related to climate and environment and to isolate the latent components of the time-series by means of an econometric analysis in order to identify the eventual presence of seasonal patterns and trend.
These actions need to be implemented prior to Istat publication of an experimental index.
In general, the production and publication of new experimental statistics for a national statistics office, (i.e. experimental because the target population is unknown, as well as the underlying tweets generating processes), involve several aspects:
The relevance of the topic, and the lack of official statistics measurements in such area are crucial arguments; moreover the climate change thematic is uprising popular and the publication of such an index should meet the user informative demand. The long-term sustainability of the production process and of the source must be guaranteed: this should be ensured by the twitter policy, which permits a costless data collection process, unlikely, other social media data sources. It also ensures real-time indexes, which allow for timely evaluations for policy makers. An internal revision and validation carried out by subject-matter statisticians, which produce environmental statistics so to enhance the user needs’ informative content of the index, and to provide useful insights in interpreting climate related phenomena.
We tried to address the concern of Italian twitter users and their concerns about climate. Results show that in terms of volumes and debate we have coherent results with the global strike of young as in the rest of the world, as recorded with the growth of Greta Thundberg movement and with google trends.
Footnotes
A detailed description of Word-Emotion Association Lexicon is available from:
A detailed description of the Hedonometer project is available from:
Sentix vocabulary is available from:
