1 Introduction

Public debate is vital to the correct functioning of a democratic society. With the rise of the Internet, digital platforms increased the opportunity for users to engage in public discussions (Flaxman et al. 2016; Schäfer et al. 2015), making this exchange more immediate and disintermediated (Del Vicario et al. 2016; Quattrociocchi et al. 2014). Online discussions can play a crucial role in the public discourse, influencing policy decisions, and mobilizing action on a variety of issues, such as in the case of political elections (Bovet and Makse 2019; Cinelli et al. 2020). However, the online environment is not a stand-alone entity but is intimately connected with the offline world. Indeed, events such as wars, political elections, epidemic outbreaks, and natural disasters can attract the users’ attention and shape online debates (Chen and Ferrara 2022; Bovet and Makse 2019; Cinelli et al. 2020; Sloggy et al. 2021). The outbreak of the coronavirus generated so much hype in online and traditional media that the World Health Organization used the term ‘infodemic’ to express concern about the excessive amount of information being circulated during the pandemic (Briand et al. 2021).

Vaccines have been the subject of an enduring public discourse that continues to draw widespread attention, as seen recently with the case of Covid-19 (Burki 2019). Vaccine hesitancy and the raise of anti-vax movements may become a public health issue, especially during times of crisis. In some cases, countries strengthened vaccination programs and introduced laws to make certain vaccinations mandatory (Maltezou et al. 2019; MacDonald et al. 2018; Siciliani et al. 2020). The Covid-19 outbreak represents a unique scenario in vaccination history. The unprecedented impact of the pandemic prompted research to accelerate to such an extent that vaccines were developed in an exceptionally short time. The announcements of the first vaccines against Covid-19—first Pfizer and Moderna and then AstraZeneca—generated much debate on online platforms. The European Medical Agency’s (EMA) decision to temporarily suspend the use of a specific batch of the AstraZeneca vaccine as a precautionary measure to evaluate potential issues and side effects has garnered additional attention.

The online debate on vaccines has been intensively studied in correspondence with the Covid-19 outbreak. The authors (Yousefinaghani et al. 2021) analyze 4 million tweets about the vaccine debate over 1 year, studying the prevalence and evolution of the sentiments and opinions. They found that positive sentiment was slightly dominating and attracted higher engagement, but the volume of discussion on vaccine rejection and hesitancy was higher than the one on the interest in vaccines. However, when focusing only on ‘AstraZeneca,’ negative information was the most retweeted content and they often pointed to sources known to be misinformation spreaders, as shown in (Jemielniak and Krempovych 2021). Additionally, the authors emphasize the existence of coordination networks playing a role in political astroturfing and vaccine diplomacy. By utilizing sentiment analysis, the authors of (Aljedaani et al. 2022) analyzed the attitudes and apprehensions toward vaccination among the Arab population on Twitter, revealing variations in their vaccine preferences. The authors of  (Mittal et al. 2021) conducted a study to investigate the relationship between online sentiment and disease outbreaks in terms of deaths, infections, and recoveries. By bridging online and offline data, they found a positive association between global rates of infections, deaths, and recoveries and the prevalence of tweets expressing negative sentiment.

In this paper, we analyze how the online public debate evolves in conjunction with significant external events. In particular, here we consider two major events:

  1. 1.

    The announcement of the first Covid-19 vaccine by Pfizer Footnote 1;

  2. 2.

    The suspension of the AstraZeneca (AZ) vaccine by the European Medicines Agency .Footnote 2

We analyzed tweets from five countries: France, Germany, the UK, Italy, and the USA. Each country had its own unique societal context but faced challenges with vaccine hesitancy before the Covid-19 pandemic. For instance, Italy witnessed a negative trend in vaccination coverage, which led to the implementation of compulsory vaccination in July 2017 (Gualano et al. 2018). Prior to the pandemic, France had one of the highest rates of vaccine hesitancy globally (Ward et al. 2019). Similarly, Germany has faced a relatively high level of vaccine skepticism, and surveys indicate a decline in enthusiasm for Covid-19 vaccines throughout the pandemic, despite the population’s strong trust in institutions and health experts (Fiske et al. 2022). In Germany and Italy, concerns regarding the AstraZeneca vaccine, which was ultimately suspended by EMA, contributed to erode trust in scientific and political authorities (Zimmermann et al. 2023). However, the UK, while also facing declining vaccination rates (Kennedy 2020), was not under the jurisdiction of the EMA when it suspended the AstraZeneca vaccine. Moreover, the UK had one of the fastest vaccine roll-outs in Europe (Gallardo 2021). Lastly, the USA, being geographically distant and independent from the other countries considered, was less likely to be affected by the EMA’s decision. However, vaccine hesitancy in the USA has been growing in recent times to the extent that diseases preventable through vaccination, such as measles, have experienced repeated outbreaks due to reduced immunity (Yasmin et al. 2021). Moreover, there has been a decline in childhood vaccination rates, particularly in states where legislation permits personal choice exemptions, indicating a growing vaccine hesitancy in those areas (Lo and Hotez 2017).

First, we compare the interaction structure, content volume, and the most debated topics in five countries (France, Germany, UK, Italy, and the USA) distinguishing between questionable and reliable content. Then, we analyze the temporal evolution of the debate around vaccines and fit auto-regressive models to study how the online public discourse developed in response to significant external events. Our study makes a threefold contribution and addresses the following research questions: (1) What user communities emerge in each country, and how do they compare across countries? (2) What are the characteristics of questionable and reliable narratives in each country, and how do they compare across countries? (3) How has the public debate on vaccination evolved over time in each country?

Our results indicate that the shares of reliable and questionable content can fluctuate based on the country under consideration. Topic modeling reveals different narratives of the debate for content pointing to questionable and reliable sources, although a certain level of similarity across the countries can be found. The temporal analysis shows that the first event (vaccine announcement) influenced the consumption of both questionable and reliable content more than the EMA’s suspension of the AZ vaccine batch, although some differences can be found across countries. Finally, we found that users split into two communities rather stable over time based on their attitude toward vaccines, with a small fraction of users changing their beliefs.

This paper contributes to understanding the users’ news consumption and reactions to external events in different countries and thus, on the one hand, it provides useful insight into how to communicate negative events during a crisis, on the other hand, it highlights the need for specific communication policy based on the audience characteristics.

2 Methods

2.1 Data collection

Data was collected from Twitter in the period from January 1st, 2020 to April 30th, 2021. The data collection process was carried out using the Twitter API ,Footnote 3 which is publicly available, through the full-archive historic search endpoint and academic research product track. According to the API specification, only publicly available data in compliance with users’ privacy settings can be accessed. We collected tweets containing an URL and at least one keyword related to Covid-19 vaccines, such as ‘immune’ and ‘pharma’ (see Table 1). The final dataset consists in 3, 797, 305 tweets published by 985, 523 accounts.

Table 1 Vaccine-related keywords for data collection

2.2 Tweet classification

For each tweet, we derived three different attributes: the language, the trust score, and the country of origin. The language was automatically detected by Twitter. The trust score was retrieved from NewsGuard, a tool that provides trust ratings for news and information websites on the basis of nine journalistic criteria. These criteria are individually assessed and then combined to produce a single ‘trust score’ from 0 to 100 for a given news media outlet. The scores are assigned by a team of journalists. Scores are not given to platforms (for example, Twitter and Facebook), individuals, or satire content. The criteria evaluate basic practices of credibility and transparency of news sources .Footnote 4 Here, we use NewsGuard’s trust scores to distinguish between questionable and reliable tweets. According to NewsGuard documentation, a source is classified as questionable if its trust score is below 60, while it is considered reliable if the score is equal to or above 60. Therefore, every tweet was categorized according to the trust score of the source (URL) it referenced.

NewsGuard provides trust scores for information sources in five countries, including Germany, France, the UK, Italy, and the USA. Despite the ease of determining the country of origin for a source, assigning a country to a tweet is not always a straightforward process due to the lack of precise geolocalized data. This challenge is particularly pronounced when analyzing English language content, given its global usage. Moreover, we faced the challenge of determining how to assign tweets that mention sources originating from multiple countries.

To address these issues, we implemented a strategy of assigning tweets to a country only if the language and source information were consistent. By doing so, we sought to minimize any ambiguity that may arise from tweets containing mixed-language content or sources from multiple countries. For example, consider a tweet in English language referring to multiple sources in France, UK, and the USA. According to our strategy, the tweet is considered part of the debate in both UK and USA, but not in France. A robustness test was performed using alternative strategies, and no significant difference emerged .Footnote 5 Additionally, to mitigate potential biases in the keyword selection toward either reliable or questionable news outlets, we computed the percentage of each keyword within both categories (see SI for details). The analysis revealed some minor variations between the two categories, particularly in terms of the frequency of vaccine brand and name mentions. However, these differences do not compromise the validity of our study.

2.3 Network analysis

To investigate the presence of segregated communities, we built and analyzed the retweet networks for each country. In particular, we built a weighted undirected network \(N= (V, E, w)\) with vertices V that represent the accounts retweeting or being retweeted at least once, where two vertices \(u, v \in V\) are connected with an edge \((u,v) = e \in E\) if and only if u retweeted v or v retweeted u. We assigned a weight w(e) to each edge \(e = (u,v)\) corresponding to the number of retweets between u and v and a trust score to each vertex \(v\in V\) corresponding to the average trust score of its tweets. Then, We employed the Louvain clustering algorithm (Blondel et al. 2008) to identify groups of accounts that exhibit greater connectivity with each other compared to the rest of the network.

To assess the evolution of communities and the possible changes in the consumption of questionable content, we employed dynamic clustering techniques. For each country, we created a Dynamic Network DN \(= (N_1, N_2, N_3)\), each DN consisting of three ‘snapshots’ \(N_t, t = 1,2,3\). The three snapshots were obtained by considering the retweets produced in the following time intervals: from January 1st 2020 until the Pfizer announcement (\(t=1\)), from Pfizer announcement until EMA announcement (\(t=2\)), and from the EMA announcement until April 30th 2021(\(t=3\)). On each DN we employed smoothed Louvain dynamic community detection (Aynaud and Guillaume 2010), which performs Louvain clustering on each snapshot, using the clustering on the previous slice as initialization. We used the default Jaccard similarity as the matching function and the default matching threshold of 0.3 (Greene et al. 2010).

2.4 Topic modeling

To better understand the narratives of these communities, we considered the original tweets and extracted topics using BERTopic (Grootendorst 2022), a state-of-the-art topic modeling tool that extracts latent topics from a collection of documents. We removed URLs from the text and embedded the documents using 768-dimensional pretrained sentence classification embeddings. Afterward, we reduced their dimensionality to 5 through UMAP, using 15 neighbors and cosine similarity. Finally, we clustered them with HDBSCAN, employing Euclidean distance, and minimum cluster size of max\((10, \frac{N}{10^3})\), where N is the number of tweets to be clustered. Topic names were assigned by manually inspecting the most representative tweets provided by BerTopic for each cluster of tweets.

2.5 Time-series analysis

To study the evolution of content production from reliable and questionable sources over time, we quantified the changes in the production of questionable and reliable tweets in conjunction with the first Covid-19 vaccine announcement by Pfizer (09/11/2020) and the AstraZeneca suspension by EMA (09/03/2021). To do so, we fitted a model to questionable and reliable time series for each country, resulting in a total of ten time series. The model was designed to capture the underlying structural patterns of tweet counts in response to the events. We assumed the time series to be independent of each other and applied a Box–Cox transformation with \(\lambda = 0\) to stabilize the variance of the dependent variable \(Y_t\). Autocorrelation in the series was addressed by employing dynamic modeling and fitting a linear model with an ARIMA (pqr) error term. This resulted in the model

$$\begin{aligned} Y^{(\lambda )}_t = \beta _0 + \beta _1\textrm{PFZ}_t + \beta _2\textrm{EMA}_t + \eta _t \end{aligned}$$

where \(Y^{(\lambda )}_t\) indicates the Box–Cox transformation of the original time series Y at time t. Changes in average tweet counts are captured by PFZ\(_t\) and EMA\(_t\), indicator variables which are set to 0 before the events and 1 otherwise. These changes are deprived of fluctuations in the time series, which in turn are captured by \(\eta _t\), an error term behaving as an ARIMA(pqr) process that optimizes BIC(Hyndman and Khandakar 2008). The relative change \(\Delta X = \frac{X_{t_2}-X_{t_1}}{X_{t_1}}\) (Table 2) measures how much the expected tweet production of \(X \in \{Q,R\}\) changed from \(t_1\) to \(t_2\), where Q and R stand for questionable or reliable content, and \(X_{t_1}\) and \(X_{t_2}\) refer to the volume of X tweets produced until time \(t_1\) and \(t_2\), respectively.

2.6 Limitations

While our analysis offers valuable insights and is based on robust and widely utilized techniques, it is important to acknowledge certain limitations. Firstly, our estimation of user reliability is based on the sources they share. Although this approach is scalable and commonly employed in social media analysis, it may misclassify users who share articles with satirical or critical intents, as it does not consider the broader contextual information. Nonetheless, this approach has demonstrated its reliability, enabling consistent analysis, and aligns with similar techniques employed in related studies (Cinelli et al. 2021; Flamino et al. 2023). Secondly, in classifying news domains, we relied on data from NewsGuard, which may have varying coverage in each country. However, NewsGuard rates all sources that account for (at least) 95% of online engagement in each country. Thirdly, in the topic modeling analysis, we assigned names to each cluster of documents manually. To minimize arbitrariness, we began with the most representative documents identified by BerTopic, following the methodology of previous studies (Falkenberg et al. 2022). Lastly, while our set of keywords encompasses a wide range of topics related to Covid-19 vaccines, it is possible that we may have missed some niche keywords. Nevertheless, as mentioned in Sect. 2, our dataset appears to be balanced with respect to different types of sources.

3 Results and discussion

3.1 User communities

We first look at the differences and similarities in the structure of the vaccine debate across countries relying on interaction networks (see Sect. 2.3 for details).

In Panel A of Fig. 1, the results of Louvain clustering on retweet networks for each country are presented. Each bar represents a cluster found in the network and its average trust score is color-coded. The clusters are arranged in ascending order of average trust score. Across all countries, the majority of communities are made on average by highly reliable users, with at least 74% of them having a high average score. However, a small number of clusters with low average scores are present in all countries.

Panel B of Fig. 1 reports the joint distribution of the accounts’ individual trust score against the average trust score of their neighbors. We observe the presence of separated communities laying on the diagonal, indicating that users tend to interact with others sharing sources with similar trust scores. The observed pattern supports the presence of an echo chamber effect, for which users tend to interact with others who hold similar views and rarely engage with those who have opposing perspectives.

Fig. 1
figure 1

Clustering results and neighborhood analysis. A Result of Louvain clustering on retweet interaction network as a function of trust score. For each cluster, the average score of its users is computed and color-coded. Only clusters with at least five members are shown. B Joint distribution density of individual trust score (x-axis) against neighbors trust score (y-axis) of retweet interaction networks with marginal distributions

3.2 Questionable and reliable narratives

To better understand the topics of discussion in each country for questionable and reliable sources, we conducted topic modeling analysis (see Sect. 2.3 for details).

Here, we concentrate on the distinctions in the overall narratives conveyed by the two groups, and therefore, we confine our analysis to the static version, without considering the temporal evolution of the debate. In the subsequent subsection, we delve into the temporal dynamics of the discourse. The results presented in Fig. 2 reveal some differences in the types of topics discussed: while both categories of tweets addressed vaccine side effects, this topic was more frequently discussed among questionable sources compared to reliable sources. Moreover, both types of tweets in each country also touched on political topics related to the government’s agreements to obtain, approve, and suspend vaccines. However, the narrative of the discussions differed between the two groups. Questionable sources often expressed concerns about excessive government control, while reliable sources focused on inefficiencies in the vaccination campaign and the lack of clarity in AstraZeneca vaccine recommendations. The topic of vaccine efficacy was also discussed in both groups, but the nature of the discussions differed significantly. While reliable sources mainly addressed the efficacy statistics of the vaccines, questionable sources talked about alternative treatments, signaled by the presence of terms like ‘hydroxychloroquine’ or ‘vitamins.’ Furthermore, they questioned the usefulness of vaccines and challenged medical studies on their efficacy. One of the prominent topics discussed by reliable sources was Covid-19 official reports. On the other hand, in questionable sources topics such as fear of side effects (including concerns over ‘facial paralysis,’ ‘DNA damages,’ ‘abortion,’ and ‘fertility risks’) and conspiracy theories (such as ‘Bill Gates’ involvement in the pandemic, ‘illegal experiments on humans,’ ‘sterilization programs,’ and ‘chip implantation’) were more present.

Fig. 2
figure 2

Most debated topics by country. The five most frequent topics, identified through topic modeling, by country and reliability. Red (green) panels show topics in questionable (reliable) tweets. Lengths of the bars represent the share of tweets belonging to each topic relative to the other four topics. The percentage indicates the share of tweets by country and reliability belonging to each topic

3.3 Evolution of the public debate over time

Figure 3 shows the amount of content (number of tweets) produced by questionable and reliable sources over time. We notice that content production increased in correspondence with both the announcement of the Pfizer vaccine (November 9th 2020) and the EMA suspension (March 9th 2021). To better understand the changes in tweet production following the considered events, we fitted a dynamic model to data, represented by the gray line in Fig. 3 (see Sect. 2.3 for details). Our models indicate that there was a statistically significant increase in tweet production of both questionable and reliable sources following the Pfizer announcement, however, some differences among countries arise when comparing the growth of questionable and reliable content. Indeed, while Germany experienced a higher growth of questionable sources in comparison with reliable ones, in all the other countries, reliable sources grew more than questionable ones. To measure these differences, we calculated the relative changes in content production and compared them by computing the ratio between the changes in questionable content production and those in reliable content production. If the growth rate of questionable sources surpasses that of reliable ones, the resulting ratio will be greater than 1, whereas it will be lower if the opposite is true.

The results presented in Table 2 show that all countries but Germany experienced a greater growth in the number of reliable tweets following the Pfizer vaccine announcement. This can be explained by the different volumes of questionable sources before the event: while Germany had a very small volume of tweets referring to questionable sources (10% of reliable sources volume), in France this presence is higher than in any other country (48% of reliable sources volume).

This suggests that the questionable debate in France may have experienced a saturation effect due to the already high preexisting volume of questionable content, resulting in a smaller growth in questionable tweets after the event. Conversely, statistics on Germany reveal a lower level of tweet activity that saw the largest growth in the number of questionable tweets. Nonetheless, the volume of questionable sources remained significantly lower than that of reliable sources in all countries.

Next, we examine the effect of the suspension of the AstraZeneca vaccine by EMA, which represents the second event under consideration. The models reveal an increase in both questionable and reliable content, but the magnitude of this change is significantly lower than that observed during the vaccine announcements. Indeed, the second half of Table 2 shows that the increase is one order of magnitude smaller. Moreover, Italy is the only country that shows statistically significant increases in both questionable and reliable sources. In contrast, neither the UK nor the USA show statistically significant changes in either type of source.

Fig. 3
figure 3

Volume of content related to Covid-19 Vaccine on Twitter. Red (green) panels show questionable (reliable) daily Tweet counts of each country; the green line shows actual data, and the model’s fitted values are in gray. The first vertical red lines mark the Pfizer announcement, and the second red lines mark the start of the EMA suspension

Table 2 Relative changes in expected tweet production

Given that the temporal analysis has revealed significant changes in the prevalence of questionable and reliable sources, a natural question is whether these events are also associated with changes in the community structure and opinion of users. To study the evolution of the communities, we performed Dynamic Community Detection on the networks. This approach enabled us to track the changes in trust score over time, at both the community and account levels. Figure 4 shows the evolution of the communities during three distinct time spans: before the Pfizer announcement, between the Pfizer announcement and the AstraZeneca suspension, and after the AstraZeneca suspension. The distribution of clusters varies significantly across countries, with France having a sizable community of questionable accounts, while other countries like the UK and Germany have much fewer such accounts, consistent with the findings in the previous sections. Moreover, we can notice that, in the final snapshot, the merging of the most questionable community with a reliable one resulted in a community with an average score in the reliable range, whereas in other countries such as Italy and the UK, the communities appear to be more stable over time. Also, we observe that considering the trust score threshold of 60, the communities tended to remain relatively stable over time, with only a few accounts shifting between them. Overall, we may notice that the communities with a trust score threshold lower than the country’s average tended to exhibit greater cohesiveness and stability, while the more reliable communities appeared to be more dynamic and scattered. One possible explanation for this phenomenon could be that accounts within low-trust-score communities tend to be more active and engaged in the debate, while accounts within higher-trust-score communities are characterized by higher turnover rates. This is consistent with findings from other studies, which suggest that polarized users tend to be more active and engaged in debates (Schmidt et al. 2018). Differences across countries in terms of both production and consumption of questionable content, and response to external events might be influenced by a variety of factors, including level of trust in institutions and social environments (Zimmermann et al. 2023; Sturgis et al. 2021).

Fig. 4
figure 4

Evolution of the communities in the interaction network over time. Communities are represented as lines and connections between communities represent accounts movement. Average community trust score is color-coded and gray bars represent accounts that do not participate in the period, but do participate in the country’s debate in other periods

4 Conclusions

In this study, we used Twitter data to examine the debate surrounding Covid-19 vaccines. Our analysis proceeded in two main directions, investigating cross-country variations and tracing the evolution of the conversation in response to major events, such as the announcement of the Pfizer vaccine and the EMA’s suspension of a batch of the AstraZeneca vaccine. Moreover, we incorporated third-party data to explore the presence of misinformation over time and employed topic modeling to uncover emergent narratives. Finally, we aimed to shed light on the structure and dynamics of the vaccine debate on Twitter.

Our findings show that while reliable sources dominate the discussion, communities of users who consume questionable content are present to varying degrees across different countries. Moreover, the narratives from reliable and questionable sources diverge, although some similarities exist across countries. The analysis of the response to the Pfizer vaccine announcement and the AstraZeneca suspension revealed that both reliable and questionable content increased following these events, though the volume increase after the latter was typically lower and not statistically significant. Finally, our community detection analysis revealed a relatively stable scenario, with only a few shifts between communities.

Taken together, our results confirm the polarized nature of the Covid-19 vaccine debate on Twitter, with stable communities and differences across countries. Furthermore, we show that significant external events can be associated with changes in the production and consumption of online information, though we found no evidence of increased misinformation after the EMA’s suspension of the AstraZeneca vaccine. These findings may be relevant for policy and decision makers involved in risk and crisis communication. To maximize the effectiveness of public health policy strategies, it is essential to consider the social and cultural environment in which they are implemented (Cascini et al. 2022). To this aim, the dynamic monitoring of public response through online data may prove extremely helpful in adjusting public health measures. This study shows how social media and network analysis can be used to reveal differences and similarities across countries, thereby highlighting its potential to facilitate the development of tailored plans of action and interventions suited to the population’s unique context. Further, enhancing our understanding of the narratives prevalent within distinct communities and countries can assist public organizations in delivering more impactful communication, particularly during times of crisis. Expanding our research to include other social media platforms and socially significant topics such as climate change could provide further insights.