Literature DB >> 35668822

Public reactions towards Covid-19 vaccination through twitter before and after second wave in India.

Siddhi Mishra1, Abhigya Verma1, Kavita Meena1, Rishabh Kaushal1.   

Abstract

Social media have a significant impact on opinion building in public. Vaccination in India started in January 2021. We have seen many opinions towards vaccination of the people, as vaccination is one of the most crucial steps toward the fight against COVID-19. In this paper, we have compared the public's sentiments towards COVID vaccination in India before the second wave and after the second wave. We worked by extracting tweets regarding vaccination in India, building our datasets. We extracted 5977 tweets before the second wave and 42,936 tweets after the second wave. We annotated the collected tweets into four categories, namely Provaccine, Antivaccine, Hesitant and Cognizant. We built a baseline model for sentiment analysis and have used multiple classification techniques among which Random Forest using the TF-IDF vectorization technique gave the best accuracy of 69% using max-features and n-estimators as parameters.
© The Author(s), under exclusive licence to Springer-Verlag GmbH Austria, part of Springer Nature 2022.

Entities:  

Keywords:  Covid-19 vaccincation; Machine learning; Sentiment classification

Year:  2022        PMID: 35668822      PMCID: PMC9151355          DOI: 10.1007/s13278-022-00885-w

Source DB:  PubMed          Journal:  Soc Netw Anal Min


Introduction

Covid-19 has immensely affected all aspects of our lives, the daily schedule, mental and physical health, the environment, and financial stability (Marois et al. 2020; McKibbin et al. 2020). The pandemic has led to a massive loss of human lives worldwide. The economic and social disturbance caused by it is unimaginable (Woolf et al. 2020). Due to such huge losses and gloomy news of the impact of Covid-19, the mental health (Chatterjee et al. 2020; Khan et al. 2020; Xiong et al. 2020) of people have suffered immensely. Consequently, there is an environment of disappointment, distress, and disenchantment (Chaix et al. 2020; Holingue et al. 2020). So, when the vaccines to protect oneself from Covid-19 were launched, it was only natural for people to lack trust towards them. People suspected whether sufficient safeguards (Kostoff et al. 2020; Shimabukuro 2021) were put in place in the manufacture of vaccines and raised doubts over the efficacy of vaccines (Heath et al. 2021; Lipsitch and Dean 2020). There is a hesitancy and uncertainty amongst the public due to fear of side effects, misinformation, difficulty in registration/slot bookings, and many more (Murphy et al. 2021; Machingaidze and Wiysonge 2021; Dror et al. 2020). In this work, we build upon the prior work on response and opinion of people towards Covid-19 vaccines from the lens of social media. Nowadays, online social media platforms like Twitter are pretty popular among users, and in the context of Covid-19 induced social distancing and lockdowns, a lot of users had no other option but to express their opinions and sentiments on social media (Goel and Gupta 2020; Bridgman et al. 2020; Cuello-Garcia et al. 2020). We focus on the vaccination drive in India, the largest in the world, which started on 16 January 2021, where 165,741 people were vaccinated on the first day (Bagcchi 2021). The vaccination drive began in the backdrop of the survey (The Way Forward Survey1) conducted in December 2020 by GOQii with about 11,000 respondents to understand the openness of Indians to take the vaccine. It was found that about 53% of the Indian population is unsure about taking COVID-19 vaccination. Henceforth, massive promotions were done to encourage people to vaccinate themselves, and meticulous planning was done to handle the large scale (Foy et al. 2021; Thangaraj et al. 2021; Jeyanathan et al. 2020). We focus on understanding and characterizing people’s views and opinions towards Covid-19 vaccination in India, which is useful in the following ways: (1) It would help authorities to analyse the people’s hesitancy (inferred from their sentiment) towards vaccination drive accordingly so they can undertake publicity campaigns accordingly; (2) Also, investors, shareholders, and companies can use this analysis to determine which vaccine is more popular among people and is drawing positive sentiments; (3) People at large can understand the opinion of other users, thereby helping them formulate their opinions accordingly. While there are several papers analysing healthcare (Chatterjee et al. 2020), recovery, and economic impact of coronavirus (McKibbin et al. 2020), very few have worked towards the opinion mining of people towards vaccination from social media posts. Therefore, we curated a novel dataset by extracting tweets from Twitter API in this work. We employed keywords (popular hashtags) such as #Covaxine, #Covishield, #bharatbiotech, #LargestVaccineDrive, #IndiaVaccine, and #bjpVaccine to retrieve tweets. Like elsewhere in the world, the second Covid-19 wave started to have its impact in India from the second week of April 2021 and peaked subsequently (Asrani et al. 2021; Ranjan et al. 2021). Our workflow diagram involving data collection, annotation, visualization, text analysis, vectorization, data augmentation (back translation), and machine learning In Fig. 1, we explain our proposed workflow starting with data collection, annotation, visualization, text analysis, vectorization, data augmentation (back translation), and machine learning. More specifically, we make the following novel contributions.
Fig. 1

Our workflow diagram involving data collection, annotation, visualization, text analysis, vectorization, data augmentation (back translation), and machine learning

We collected 5977 tweets before the second wave and 42,936 tweets after the start of the second wave based on the relevant hashtags related to Covid-19 Vaccination in India. We make our dataset2 available for public use. To understand people’s opinion towards vaccination, we did not adopt the conventional sentiment classes of positive, negative, or neutral. Instead, we performed manual annotation of tweets into four unique classes: ’ Provaccine,’ ‘Antivaccine,’ ‘Hesitant,’ and ‘Cognizant.’ Given that our goal is to perform multi-class classification, we train models to classify a given tweet into one of these four categories. We employed different vectorization techniques and back translation for data augmentation. It turned out that a random forest classifier using the TF-IDF vectorization technique gave the highest accuracy of 69% for four-class classification.

Literature review

In the field of medicine, the vaccination process (Kaur and Gupta 2020; Malik et al. 2020) is a well-established practice to create immunity for a disease. However, not much work has happened to study sentiments of Indian towards Covid-19 vaccines, mainly to compare people’s opinions before and after the second wave. Therefore, this section has also explored prior works related to vaccine research and people’s sentiment towards vaccines. Toll and Li (2021) inspected the users’ attitude towards Measles, Mumps, and Rubella (MMR) vaccination. The different MMR vaccine doses and basic viewpoints to vaccination were modelled one by one with multi-nomial logistic regression. Perspective towards vaccine was highly in sync with MMR vaccine results. Although this research paper is not covering our use case, we took it as a reference for analysing the methodology to extract the attitude towards the vaccination. Radzikowski et al. (2016) examined the sentiments towards vaccination through the tweets that were posted on Twitter after the 2015 measles outburst. A collection of 669,136 tweets was made during the time of February 1 to March 9 of 2015. Our work also involves the collection of tweets; however, we focus on Covid-19 vaccine-related tweets. Dubey (2021) examined the emotions in tweets posted on Twitter in India regarding the two vaccines, namely Oxford-AstraZeneca’s Covishield and Bharat Biotech’s Covaxin. Tweets were classified into a sentiment class by applying the pre-trained NRC Emotion lexicon (Mohammad and Turney (2013)). For Covaxin, 69% were tweeting with positive sentiments while 31% had negative sentiments. For Covishield, 71% tweets had positive sentiments while 29% tweets had negative sentiments associated with it. In contrast, our work curates an annotated dataset and trains a classifier from scratch for classifying tweets into one of the four categories: Provaccine, Antivaccine, Hesitant, and Cognizant. Samuel et al. (2020) studied the general outlook of the public towards the pandemic using tweets related to Covid-19 by using sentiment analysis packages of R statistical software.3 Their methodology can be divided into two parts: data visualizations and text analysis. The second part deals with the classification of texts retrieved, i.e., tweets, into negative and positive classes. They found that the naïve bayes classifier had the best accuracy of 57%, whereas logistic regression has a precision of 52%. Shaban-Nejad et al. (2015) provided a method, referred to as the Vaccine Attitude Surveillance using Semantic Analysis (VASSA) Framework, for layout and build-out of an integrated semantic platform to grasp the understanding of vaccine sentiments, reliance, and attitude using ontology. VASSA allows structuring the huge unstructured data around various blogs to ease the analysis of content and discover patterns of individual words or sentences in blogs. NLP module can be used to analyse the idea extracted by VASSA ontology. Monitoring and analysis of vaccines during real-time could help vaccination programs further lead to better and well-timed plans for any particular health concern. In recent times, various trials have been made to design a more efficient system to monitor the concerns regarding vaccines where refusal might lead to potential pandemics. Nemes and Kiss (2021) designed an emotion prediction model by co-relating words and further labelling the words to certain entries instead of the usual negative and positive classification. RNN is used along with NLP processing and Sentiment analysis for classic as well as Deep Learning styles. Most comparisons were made against TextBlob4 which came up with decent results. There were also times when the neutral results were above 30% compared to their RNN model, which we were not useful to facilitate additional evaluations for the RNN model. Lyu et al. (2021) studied a human guided machine learning framework to establish state-of-the-art transformer language models to collect opinions towards Covid-19 vaccines, further classifying them into Pro, Anti, and Hesitant classes. Almost 40,000 meticulously picked tweets by 20,000 different users were selected. The subgroups were based on opinions as well as individual factors such as geographical location, financial conditions, religious beliefs, and political opinion. Researchers manually read and labelled the tweets into a particular class if it was relevant. A lower acceptance rate was found in the Southeast part of the US This research paper manually labels the data into pre-self-define categories vaccine-hesitant, pro-vaccine and anti-vaccine. XL-Net model is used for the training purpose (with labelled data) for three different types of hypotheses based on societal status and country. In Table 1, we compare the prominent prior works related to our work. We briefly explain each work and provide our remarks. Recall that we move beyond the typical sentiment classification by classifying a tweet into four classes: Provaccine, Antivaccine, Hesitant, and Cognizant. Furthermore, we perform a comparative study of people’s opinions and sentiments towards the Covid-19 vaccine before and after the second wave in India.
Table 1

Comparative analysis between prior research works

PaperDescriptionOur remarks
Toll and Li (2021)The aim was to inspect the reasons for attitude towards Measles, Mumps, and Rubella (MMR) vaccination. The data used for the analysis were from The Longitudinal Study of Australian Children (LSAC). The impact of different MMR vaccines and attitudes towards vaccination were modelled using multi-nomial logistic regression. This longitudinal study began with a nationally representative sample of over 10,000 children and their families in 2004Although this research paper is not covering our use case, we are taking it as a reference for analysing the methodology to extract the attitude towards the vaccination
Piedrahita-Valdés et al. (2021)They studied hesitancy among users towards vaccines in general during the period 2011 to 2019 through the lens of social media. They collected 1,499,227 tweets regarding vaccines and performed sentiment analysis. Polarity analysis was performed using an association model based on a combination of lexical-based approaches and supervised machine learning methods. The results showed that 69.36% of the classified tweets are neutral, 21.78% were positive, and 8.86% were negativeWe use this research paper to find the data preparation and extraction methodology
Dubey (2021)They investigated the public’s sentiment towards the vaccination drive of Covid-19 in India with respect to two vaccines, namely, Oxford-AstraZeneca’s Covishield and Bharat Biotech’s Covaxin. Tweets were classified into a sentiment class by applying the pre-trained NRC Emotion lexicon. They analysed tweets and performed sentiment classification. For Covaxin, 69% were tweeting with positive sentiments while 31% had negative sentiments. For Covishield, 71% tweets had positive sentiments while 29% tweets had negative sentiments associated with itWe also perform sentiment of users towards Indian vaccination drives. However, we build our novel dataset categorized into four classes: Provaccine, Antivaccine, Hesitant and Cognizant, which would be more useful for policy decisions
Radzikowski et al. (2016)They studied the narratives related to the Measles vaccination drive on Twitter. Those tweets were analysed to identify key terms, connections among such terms, retweet patterns, the structure of the narrative, and connections to the geographical space. They found that the tweets made by news agencies had more effect on the opinion than the tweets by health organization accountsOur work is also similar in terms of understanding people’s opinions on social media. However, we go beyond the conventional sentiment classes and curate an annotated dataset of user attitudes towards Covid-19 vaccines in India
Samuel et al. (2020)They inspected the general outlook of the public towards the pandemic using tweets related to Covid-19 by using a pre-trained sentiment analysis model. RNN is used along with NLP processing and Sentiment analysis for classic as well as Deep Learning styles. They covered four critical issues: (1)opinions related to the outbreak of Covid-19, (2) the use of tweets for sentiment analysis, (3) they observed that naive bayes are preferable for predicting sentiments with a precision of 91% and an accuracy of 57%In contrast, we do not use a pre-trained model. Instead, we annotate and build a trained model from scratch using our annotated dataset
Shaban-Nejad et al. (2015)They proposed a method for layout and build-out of an integrated semantic platform to grasp the understanding of vaccine sentiments, reliance, and attitude using ontologiesIn our work, we approach the problem as the design of a machine learning model to automatically flag the user’s attitude based on the tweet
Nemes and Kiss (2021)They designed an emotion prediction model by co-relating words and further labelling the words to entries instead of the usual negative and positive classification. The deep learning model is used for sentiment analysisWe work on classifying a tweet into four categories, namely Provaccine, Antivaccine, Hesitant and Cognizant, moving beyond the typical sentiment classification
Comparative analysis between prior research works Next, we discuss some works related to understanding people’s interests in general topics, opinions, and viewpoints. Comito (2021) studied a combination of peak detection and clustering method on a real-world tweet dataset related to Covid-19 in the US. They demonstrated that social media data could be used as a key predictor of epidemics. Consequently, data produced by consumer presence on digital platforms has become an asset for seizing and comprehension of pandemic outbreaks. Another significant study emphasizing the utilization of social media data Al-Dhuhli and Ismael (2013) used two primary methodologies, interviews and questionnaires, to assess the influence of social media on influencing the behaviour of people that desire to buy on the internet. Results of this study exhibit that buyers are primarily influenced by explanatory and layout variables, which ultimately lead people to decide what’s best in selecting the most appropriate networking site to purchase one’s desired items on the internet. Young (2018) discussed the risk and benefits of using social media data for health monitoring in order to improve public health and medical care. Schoen et al. (2013) introduced a prediction model using social media, its advantage, and a particular scenario where these models are applicable. More research has been done to enhance further the results that we can infer from the social media data. For instance, Comito et al. (2019) worked on enhancing the existing clustering technique for topic detection using word embedding by using external corpora. In general, there are many computational approaches to analyse the large information present on the Internet Zatari (2015). One of the most desired approaches, which does not require annotation, is the unsupervised classification Velusamy and Manavalan (2012) where unlabelled data is segregated based on the latent features in the data. An important example is the sentiment lexicon, a collection of words attached to it, which is widely used for sentiment analysis. Likewise, opinion summarization Kim and Kim (2014), is an important applications natural language processing, topic detection Snelson (2016); Liu and Zhang (2012); Comito et al. (2016) is a technique used to discover topics across text documents. The other approach is semi-supervised learning, where the algorithm is trained upon a combination of labelled and unlabelled data. This combination consists of a very small amount of labelled data and a very large amount of unlabelled data. This technique is widely used for speech analysis, Internet content classification, and many more applications. However, a key contribution of our research is to create a novel dataset by extracting tweets related to COVID-19 Vaccination in India and annotating it into four classes. Further, we apply various machine learning algorithms to this data and compare their performance. Existing datasets related to vaccine In Table 2, we mention a few datasets on studies related to vaccination. Pearce et al. (2015) collected data about fifteen factors causing barriers and facilitation towards immunization among 5107 children in Australia. They found that children who are not completely immunized need personalized interventions since the factors affecting lack of immunization are heterogeneous. They collected data from in-person questionnaires rather than collecting it from social media. Radzikowski et al. (2016) studied opinions of online users on Twitter towards vaccination drive in the aftermath of the Measles outbreak. They collected 669,136 tweets during a one-month period between 1 Feb to 9 March, 2015. They found that understanding the online discussions would help in formulating the policies for the betterment of people. Samuel et al. (2020) collected tweets related to Covid-19 to understand the fear sentiment among online users, particularly during the peak time of Covid-19 in the United States. As evident from these prior works, there is very little work on curating datasets related to Covid-19 vaccination. Our work fills this gap by proposing a dataset comprising of annotated tweets of online users’ sentiment towards Covid-19 vaccination drives before and after the second wave in India. A lot of work has been done on vaccination and its public sentiment. But, in our work, we have focused on a novel data set that is India-specific. Also, there is hardly any work about COVID - 19, its vaccination, and the public sentiment related to it. So our work bridges this gap.
Table 2

Existing datasets related to vaccine

DatasetAuthorsDescription
Barrier childhood immunization Pearce et al. (2015)The Longitudinal study of Australian children data was collected that contain a rich set of children and family information that are instrumental in controlling for the decision around vaccination
Twitter-measles Radzikowski et al. (2016)The GeoSocial Gauge system prototype was used to collect data from Twitter using a user-specified set of parameters such as keywords, locations, and time to understand users opinions on measles vaccines
Fear sentiment tweets Samuel et al. (2020)Over nine hundred thousand tweets were downloaded using a Twitter API by applying the keyword ‘Corona’, and the goal was to analyse fear sentiment related to Covid-19
In the online world, knowledge about immunization is disseminated through social media platforms. In this paper, our goal is to explain the impact of Twitter, a prominent social media platform, on vaccination hesitancy and pro-vaccine sentiments. Online platforms exacerbate debates about immunization and have a long-term influence on the people, bringing narratives to combat vaccine reluctance. Therefore, our work endeavours to help policymakers understand the different viewpoints around the Covid-19 vaccination drives.

Methodology

We divide this section into two parts; first, we explain our steps to curate our dataset. Then, in the second part, we build classification models to predict users’ sentiments towards vaccines.

Data set preparation

Our key data collection goal is to obtain tweets related to COVID-19 vaccines, and in this section we describe our collection methodology. Data Extraction Initially, we started with signing up on Twitter and getting a developer’s account5 so that we could make API requests to extract data. We filled a developer application form and responded to the requirements as asked by Twitter. Once our request is approved, we built a project on a Twitter developer account. We generated Application Programmer Interface keys and access tokens to be used in the data collection process. We wrote a Python code to extract data for our analysis purpose. Figure 2 explains the entire process of data collection. We performed open authentication using the access keys and used Twitter Search API to collect tweets where a given keyword is present.
Fig. 2

Data Extraction

Keywords used to extract data In Table 3, we enlist the keywords that we used to retrieve tweets related to Covid-19 vaccination. These keywords were decided based on prior research literature (Karafillakis et al. 2021; Tsao et al. 2021; Cinelli et al. 2020; Puri et al. 2020). The two most prominently used vaccines in India are Covaxine from Bharat Biotech and Covidshield from Serum Institute of India, so we searched for these keywords. Besides, the vaccination programme in India is the largest in the world, so keywords like and were also used for search. Vaccination drive was also being popularized by the ruling political party and prime minister of India, so keywords like Modi and were also popular.
Table 3

Keywords used to extract data

KeywordReasons/explanation
CovaxineIndian Vaccine Name
CovidshieldIndian Vaccine Name
Bharat BiotechCovaxine manufacturer
Serum Institute of IndiaCovidshield manufacturer
Largest vaccine DriveMost popular tweet
India vaccineGetting tweet related to Indian Vaccine
Government India vaccineGetting tweet related to Indian Vaccine
Modi/BJPVaccineGetting tweets / trolls related to politics in vaccine
Given that we focus on vaccination campaigns in India, it was pertinent that we also keep an eye on Covid-19 cases in India. The vaccination campaign started on 16th January 2021 in India. The covid-19 infection cases were significantly low in February and March in 2021. However, subsequently, the second wave started with delta variants and peaked up in the latter half of April 2021 (Ranjan et al. 2021). Since our focus was to capture people’s opinion on the Covid-19 vaccination, we collected vaccine-related tweets using the keywords mentioned in Table 3, both before and after the second wave hit India. We collected 5977 and 42,936 tweets before and after the second wave of Covid-19 in India, respectively. This was done to understand and compare the changes in people’s opinions towards vaccinations.

Data annotation

Labels and definitions: The labels were inspired from the study of public opinions on Covid-19 vaccines by Lyu et al. 2021 1. Claiming that they would take the vaccine one it is available 2. Advocating and supporting vaccine/vaccine-associated entities like vaccine trials 3. Believing that vaccine will stop the pandemic 4. Encouraging other people to take vaccine 1. Promoting information about vaccination which are not in support of it 2. Arguing with the facts which are in support of vaccination 3. Believing that an effective vaccine would not be invented soon 4. Believing that vaccine is dangerous 1. Claiming that they would like to take the vaccine given that the vaccine is proven safe/effective 2. Asking queries related to COVID-19 vaccine 3. Showing worries about the vaccine’s effectiveness 1. Vaccine-related news and facts 2. Including vaccine and the commenters’ opinions, but the focus is something else After pre-processing, the next most important step is the annotation of data. To that end, inspired from the study of public opinions on Covid-19 vaccines by Lyu et al. (2021), we classified the labels into four classes, namely, pro-vaccine, anti-vaccine, vaccine-hesitant and vaccine-cognizant. Below, we provide our definitions of these categories, also explained in Table 4:
Table 4

Labels and definitions: The labels were inspired from the study of public opinions on Covid-19 vaccines by Lyu et al. 2021

CategoryDescription
Pro-vaccine

1. Claiming that they would take the vaccine one it is available

2. Advocating and supporting vaccine/vaccine-associated entities like vaccine trials

3. Believing that vaccine will stop the pandemic

4. Encouraging other people to take vaccine

Anti-vaccine

1. Promoting information about vaccination which are not in support of it

2. Arguing with the facts which are in support of vaccination

3. Believing that an effective vaccine would not be invented soon

4. Believing that vaccine is dangerous

Vaccine-hesitant

1. Claiming that they would like to take the vaccine given that the vaccine is proven safe/effective

2. Asking queries related to COVID-19 vaccine

3. Showing worries about the vaccine’s effectiveness

Vaccine-cognizant

1. Vaccine-related news and facts

2. Including vaccine and the commenters’ opinions, but the focus is something else

Pro-vaccine: Tweets indicate people appreciating the vaccine and expressing either being willing to take the vaccine or already having gotten vaccinated. Anti-vaccine: Tweets that reveal users’ annoyance for the vaccine and their negative attitude towards it. Vaccine-hesitant: Tweets which reflects hesitancy of people towards taking the vaccine. Vaccine-cognizant: Tweets which were informative regarding COVID-19 vaccines, helping people remain better informed. Data collection results Distribution of tweets before and after second wave of Covid-19 in India among four categories In Table 5, we present the number of tweets that we collected before and after the second wave of Covid-19 in India. Further, in Table 6, we present the distribution of annotated tweets before and after the second wave of Covid-19 in India. It is apparent that after the second wave of Covid-19 in India, the number of vaccine-cognizant tweets increased by almost two times. The number of tweets expressing anti-vaccine sentiment reduced by half. This could be because after seeing the havoc caused by the second Covid-19 wave, people’s opposition towards vaccination decreased. However, the pro-vaccine sentiment decreased by around 25%, and vaccine-hesitancy increased. These trends appear counter-intuitive. However, these trends could be because of the despair and hopelessness of the people who have seen the extremely adverse impact of the second Covid-19 wave in India.
Table 5

Data collection results

DatasetTotal tweetsAnnotated tweetsDuration
Before Second Wave59774094March 2021
After Second Wave42,9365000June 2021
Combined48,9139094N/A
Table 6

Distribution of tweets before and after second wave of Covid-19 in India among four categories

ClassesBeforeAfter
Vaccine-hesitant545849
Anti-vaccine413274
Pro-vaccine1340947
Vaccine-cognizant17962930
Total40945000
In respect to the data cleaning, we adopted standard approaches as follows: (1) We removed unwanted observations, including duplicate or irrelevant tweets and irrelevant symbols present in the data. (2) User mentions @user, where the username of the mentioned Twitter handle is used, were removed since user-user interactions are outside the scope of our work. (3) The resulting text was converted to lowercase letters. (4) Only selected stop words like apostrophes and abbreviations were replaced with spaces. (5) We also tokenized and stemmed the tweets as the last preprocessing step. After cleaning and preprocessing of data, the data was stored in the CSV file. In Figs. 3a and 3b, we draw pie chart and bar graph of tweets collected before and after Covid-19 second wave. As evident from these figures, the tweets belonging to cognizant class increased considerably after the second wave of Covid-19, and hesitancy decreased.
Fig. 3

Pie chart and bar chart of tweets before and after second Covid-19 wave

Pie chart and bar chart of tweets before and after second Covid-19 wave

Data analysis

Having collected and annotated vaccine-related tweets before and after the second wave hit India, we perform basic data analysis in this section. More specifically, we ask the following research questions. RQ1: What are the key changes in terms of hashtags frequently circulated before and after the second Covid-19 wave in India? In Fig. 4, we compare the frequency of popular hashtags before and after the second Covid-19 wave. Before the second Covid-19 wave, the most common hashtags were around the general awareness themes of , , and , and one of the vaccine name was most frequently occurring. However, after the second Covid-19 wave, vaccine-related hashtags like , , and started to appear more often.
Fig. 4

Most used hashtags circulated (i) before second Covid-19 wave and (ii) after second Covid-19 wave

Most used hashtags circulated (i) before second Covid-19 wave and (ii) after second Covid-19 wave RQ2: Who are the people citizens looked out for help (by mentioning them) before and after the second Covid-19 wave in India? We aim to find out people (users) mentioned by users before and after the Covid-19 wave in India. As depicted in Figs. 5a and 5b, there are some common handles like @narendramodi (Prime Minister), @drharshvardhan (Health Minister) and (Ministry of Health and Family Welfare) that are mentioned in same proportion. Interestingly, among the two vaccines available in India at that time, SerumInstIndia who is the manufacturer of Covidshield was more mentioned in before Covid-19 second wave. Subsequently, @BharatBiotech, the manufacturer of the Covaxine also appeared frequently after Covid-19 second wave.
Fig. 5

Word cloud and frequency of mentions before and after second Covid-19 wave

Word cloud and frequency of mentions before and after second Covid-19 wave

Baseline evaluation

This section presents the results of the baseline machine learning model evaluations performed on the classification of tweets. In the context of our problem, the goal is to classify a given tweet into one of the four classes, namely pro-vaccine, anti-vaccine, vaccine-hesitant, and vaccine-cognizant. Recall that we collected tweets before and after the second wave of Covid-19 in India. Therefore, we have the following four kinds of datasets: We performed two types of text vectorization methods on these four datasets, namely, TF-IDF (Term Frequency - Inverse Document Frequency) and BoW (Bag of Words). We experimented with, evaluated, and compared the results of machine learning models on all these four datasets (vectorized using TF-IDF and BoW). We experimented using the following five machine learning algorithms: Logistic Regression (LR), Random Forest (RF), Decision Tree (DT), K-Nearest Neighbours (KN), and Gradient Boosting (GB). In the sub-sections below, we describe text vectorization and machine learning-based classifiers used. Before Second Wave: Set of annotated tweets collected before the start of the second wave of Covid-19 in India. After Second Wave: Set of annotated tweets collected after the start of the second wave of Covid-19 in India. Merged: Set of combined annotated tweets of both before and after the second wave of Covid-19 in India. Merged Back Translated: In order to increase the dataset, we performed a standard technique of back translation (Sennrich et al. 2015; Edunov et al. 2018) in which we converted the English tweets into French and then converted the french translation back to English.

Impact of back translation

To improve the efficiency of machine learning algorithms, we performed data augmentation by using the technique of back translation as proposed by Sennrich et al. (2015). Back translation is the process of re-translating content from the target language back to the source language. This work translated the merged dataset comprising annotated tweets before and after the second wave of Covid-19 in India into the French language. Subsequently, we again translated it back to the original English language. In Fig. 6, we depict the accuracy of different machine learning models with and without back translation. We observed that back-translation (shown in orange bars) always increases accuracy in all machine learning algorithms by 10%–20%. Without back translation, logistic regression with TF-IDF gave the best accuracy of around 60.4% which increased to 68.3% with random forest classifier when back translation was used with TF-IDF.
Fig. 6

Effect of backtranslation

Effect of backtranslation

Comparison of vectorization methods

For the baseline evaluation, we leverage two popular baseline vectorization methods, namely, Bag of Words (BoW) (Zhang et al. 2010) and Term Frequency & Inverse Document Frequency (TF-IDF) (Aizawa 2003). Illustration of BoW vectorisation technique Bag of words (BoW) BoW model takes into account the occurrence of words within the document. In our case, we process tweet text which are written in natural language by users. First, we pre-process our data to convert text to lower case, remove all non-word characters and punctuation. Then we obtain the most frequent words in our text by creating a vocabulary to hold our bag of words. We tokenize each sentence into words; then, we check if the word exists in our vocabulary. To build the bag of words model, we construct a vector to reveal whether a word is a frequent word or not. In Fig. 7, we display bag of words vectorisation technique on three tweets from after second wave dataset.
Fig. 7

Illustration of BoW vectorisation technique

TF-IDF vectorisation technique Term frequency & inverse document frequency (TF-IDF) TF-IDF model works on the intuition that is frequently occurring words are given less importance than rarely occurring words. In other words, the TF-IFDF value increases proportionally to the number of times a word appears in the document and decreases with the number of documents in the corpus that contain the word. TF specifies the frequency of a word in the document. IDF is an evaluation of whether a word is rare or frequent across the documents in the entire corpus. A term acquires a high TF-IDF score with a high frequency in a document and low document frequency in the corpus. In Fig. 8, we illustrate TF-IDF vectorization technique on three tweets from after the second wave dataset.
Fig. 8

TF-IDF vectorisation technique

In Fig. 9, we plot accuracy values for five machine learning algorithms, namely logistic regression (LR), random forest (RF), decision tree (DT), K-nearest neighbor (KNN), and gradient boosting (GB). The experiments used all four datasets before the second wave, after the second wave, combined, and merged with back-translation. As evident, all algorithms performed best with annotated tweets after the second wave of Covid-19 in India. This suggests that people’s opinion and sentiments can be best predicted after the second wave. It indicates that people are expressing themselves more clearly and definitely after the second wave. On the other hand, the worst accuracy is with the annotated tweets before the second wave of Covid-19, which indicates a lack of clarity in people’s expression.
Fig. 9

Comparision of vectorization techniques on all four datasets

Comparision of vectorization techniques on all four datasets

Model construction

In this sub-section, we discuss the different machine learning algorithms used for model construction. For each model, we explain the hyper-tuning process adopted for performance improvement. Logistic regression (LR) Logistic regression is a classification model. It uses an independent variable to predict the dependent variable. It is similar to linear regression but here the dependent variable is categorical. We used the following three parameters for hyper-parameter tuning, namely, solver [newton-cg, lbfgs, liblinear, sag, saga]; penalty [none, l1, l2, elasticnet]; and C in [100, 10, 1.0, 0.1, 0.01]. The C parameter controls the penalty strength; increasing the regularization strength creates simple models that underfit the data and vice versa. From Fig. 10, we observe that best accuracy of 0.59 is obtained at hyper-parameter values of C: 1.0, penalty: l2, solver: liblinear.
Fig. 10

Results of Hyperparameter tuning in Logistic Regression

Results of Hyperparameter tuning in Logistic Regression Random forest (RF) A supervised learning algorithm, random forest, is used in regression as well as classification problems. It works by building various decision trees and merging them to get the best accuracy. More trees mean more experimenting and better results, and it will also prevent over-fitting. For hyper-parameter tuning, we focus on two parameters, namely, n-estimators [10, 100, 1000] and max-features [‘sqrt’, ‘log2’]. From Fig. 11, we observe that best accuracy of 0.61 is obtained using max-features: sqrt, n-estimators: 1000.
Fig. 11

Results of Hyperparameter tuning in Random Forest

Results of Hyperparameter tuning in Random Forest Decision tree (DT) A Decision Tree classifier is a supervised learning algorithm that is used in classification tasks. Since we are categorizing the tweets into four classes, this is a good algorithm for our task. In the decision tree, every column containing an attribute corresponds to a node in a tree. The root node is the essential attribute, and the leaf node is the class prediction. The algorithm goes through various nodes of the tree to predict the right class. For hyper-parameter tuning, we focus on two most important parameters, namely, criterion and max-depth. From Fig. 12, we observe that maximum accuracy of 0.55 is obtained using ‘gini’ as criterion and max-depth of 2.
Fig. 12

Results of Hyperparameter tuning in Decision Tree Classifier

Results of Hyperparameter tuning in Decision Tree Classifier K-nearest neighbours (KNN) K-Nearest Neighbours algorithm is a classification algorithm. It is nonparametric; in other words, it does not make a presumption on the primary data used. K-nearest neighbours of tweets are fetched before the vaccine data set could be classified. Significant voting of data set in the neighbourhood is used to decide the classification of a tweet. To apply the algorithm, we need to choose a suitable value of k as the outcome is dependent on it. Results of Hyperparameter tuning in KNN For hyper-parameter tuning, we used the following parameters: n-neighbors to determine the best k based on the values we have computed before; weights to check whether adding weights is beneficial to the model or not. ‘uniform’ assigns no weight, and ‘distance’ weighs points by the inverse of their distances (nearer points have more weight than the farther points); and metric which is the distance metric to be used will calculating the similarity. From Fig.  13, it is evident that we got best accuracy of 0.54 using metric: ‘euclidean’, n-neighbors: 19, and weights: ‘distance’.
Fig. 13

Results of Hyperparameter tuning in KNN

Gradient boosting Gradient boosting is an algorithm that improves accuracy and reduces over-fitting. Starting with fitting an initial model, it moves to a second model, focusing on accurate predictions at places where the first model went wrong. These two models combined give better results. Target outcomes for each case are set based on the error gradient concerning the prediction. Each model works on minimizing errors of previous models. For hyper-parameter tuning, we used the following parameters, namely, n-estimators [10, 100], learning-rate [0.01, 0.1], subsample [0.5, 1.0] and max-depth [3, 7]. From Figure 14, we find that the best accuracy of 0.57 is obtained using learning-rate: 0.1, subsample: 1.0, n-estimators: 100, and max-depth: 3.
Fig. 14

Result of Hyperparameter tuning in Gradient Boosting

Result of Hyperparameter tuning in Gradient Boosting In Table 7, we compare the accuracy of different machine learning algorithms and vectorization techniques. A random forest classifier obtained the best average accuracy considering all datasets using the TF-IDF vectorization technique. The accuracy of all machine learning algorithms when using dataset D2 (annotated tweets after the second wave of Covid-19 in India) is the highest. This shows that people’s opinion and sentiments after the second wave of Covid-19 were more predictable with better clarity.
Table 7

Accuracy of machine learning algorithms using vectorisation techniques with different datasets (D1: Before Second Wave, D2: After Second Wave, D3: Merged, and D4: Merged Back Translation

Models usedD1D2D3D4Avg
BOW + LR0.540.660.620.610.61
BOW + DT0.480.590.530.520.53
BOW + KNN0.440.570.500.490.50
BOW + RF0.570.660.610.620.61
BOW + GB0.570.650.600.600.61
TF-IDF + LR0.610.670.650.630.64
TF-IDF + DT0.450.600.540.540.53
TF-IDF + KNN0.580.620.5610.550.58
TF-IDF + RF0.590.690.640.640.64
TF-IDF + GB0.540.670.640.650.62

Bold values are the best performing results

Accuracy of machine learning algorithms using vectorisation techniques with different datasets (D1: Before Second Wave, D2: After Second Wave, D3: Merged, and D4: Merged Back Translation Bold values are the best performing results Lastly, in Table 8, we present the accuracy values of the machine learning models that performed the best for that dataset.
Table 8

Results: accuracy of Best Models with different datasets using TF-IDF vectorization technique

DatasetsBest modelAccuracy
Before second waveLogistic regression61%
After second waveRandom forest69%
MergedLogistic regression65%
Merged BacktranslationGradient boosting65%
Results: accuracy of Best Models with different datasets using TF-IDF vectorization technique To summarize, among all algorithms, the best is random forest using the TF-IDF vectorization technique. The average precision is 0.53, the average recall is 0.45, and the average F1-score is 0.47. This method yields the highest accuracy of 69%.

Conclusion and future scope

We address the issue of sentiment analysis of public reaction towards the Covid-19 vaccination drive in India. In the present study, we have built and annotated a novel dataset of tweets categorized into four classes, namely Provaccine, Antivaccine, Hesitant and Cognizant. Furthermore, we captured tweets before the second wave and after the second wave of Covid-19 in India, which helped us understand the variation in the perception of vaccination. In the process of opinion mining and textual analysis, we found that most of the tweets before the second wave (43.8%) and after the second wave (58.6%) belong to the cognizant class which shows tweets mostly spreading information toward the vaccination process. Moreover, people have a more positive opinion than those against vaccination, but a significant group of people shows hesitancy toward vaccination. By performing baseline evaluation, we conclude that random forest using TF-IDF vectorization technique gave the best accuracy of 69%. Our dataset can be used for extending research in the field of sentiment analysis for vaccination. This work to analyse the sentiment of different vaccines can be further extended to measure the satisfactory and popularity levels of different vaccines available. It would help the government to choose and order the popular vaccine and wade away the vaccine hesitancy. This work can be used by government authorities to determine and predict the current sentiment of people toward vaccination and accordingly create campaigns to address the concerns and apprehensions of people. In this work, we have only focused on tweets from India, which can be extended to study and analyse the sentiment globally for a different country that has a significant amount of hesitancy toward vaccination in public.
  32 in total

1.  Excess Deaths From COVID-19 and Other Causes, March-April 2020.

Authors:  Steven H Woolf; Derek A Chapman; Roy T Sabo; Daniel M Weinberger; Latoya Hill
Journal:  JAMA       Date:  2020-08-04       Impact factor: 157.335

2.  Barriers to childhood immunisation: Findings from the Longitudinal Study of Australian Children.

Authors:  Anna Pearce; Helen Marshall; Helen Bedford; John Lynch
Journal:  Vaccine       Date:  2015-05-21       Impact factor: 3.641

3.  The Mental Health Impact of the COVID-19 Pandemic Across Different Cohorts.

Authors:  Kiran Shafiq Khan; Mohammed A Mamun; Mark D Griffiths; Irfan Ullah
Journal:  Int J Ment Health Addict       Date:  2020-07-09       Impact factor: 11.555

4.  Vaccine Hesitancy on Social Media: Sentiment Analysis from June 2011 to April 2019.

Authors:  Hilary Piedrahita-Valdés; Diego Piedrahita-Castillo; Javier Bermejo-Higuera; Patricia Guillem-Saiz; Juan Ramón Bermejo-Higuera; Javier Guillem-Saiz; Juan Antonio Sicilia-Montalvo; Francisco Machío-Regidor
Journal:  Vaccines (Basel)       Date:  2021-01-07

5.  The world's largest COVID-19 vaccination campaign.

Authors:  Sanjeet Bagcchi
Journal:  Lancet Infect Dis       Date:  2021-03       Impact factor: 25.071

6.  Psychological characteristics associated with COVID-19 vaccine hesitancy and resistance in Ireland and the United Kingdom.

Authors:  Jamie Murphy; Frédérique Vallières; Richard P Bentall; Mark Shevlin; Orla McBride; Todd K Hartman; Ryan McKay; Kate Bennett; Liam Mason; Jilly Gibson-Miller; Liat Levita; Anton P Martinez; Thomas V A Stocks; Thanos Karatzias; Philip Hyland
Journal:  Nat Commun       Date:  2021-01-04       Impact factor: 14.919

7.  Implications of the second wave of COVID-19 in India.

Authors:  Purva Asrani; Mathew Suji Eapen; Md Imtaiyaz Hassan; Sukhwinder Singh Sohal
Journal:  Lancet Respir Med       Date:  2021-06-30       Impact factor: 30.700

Review 8.  Immunological considerations for COVID-19 vaccine strategies.

Authors:  Mangalakumari Jeyanathan; Sam Afkhami; Fiona Smaill; Matthew S Miller; Brian D Lichty; Zhou Xing
Journal:  Nat Rev Immunol       Date:  2020-09-04       Impact factor: 53.106

9.  Vaccine hesitancy: the next challenge in the fight against COVID-19.

Authors:  Amiel A Dror; Netanel Eisenbach; Shahar Taiber; Nicole G Morozov; Matti Mizrachi; Asaf Zigron; Samer Srouji; Eyal Sela
Journal:  Eur J Epidemiol       Date:  2020-08-12       Impact factor: 8.082

10.  Predominance of delta variant among the COVID-19 vaccinated and unvaccinated individuals, India, May 2021.

Authors:  Jeromie Wesley Vivian Thangaraj; Pragya Yadav; Cp Girish Kumar; Anita Shete; Dimpal A Nyayanit; D Sudha Rani; Abhinendra Kumar; Muthusamy Santhosh Kumar; R Sabarinathan; V Saravana Kumar; M Jagadeesan; Manoj Murhekar
Journal:  J Infect       Date:  2021-08-06       Impact factor: 6.072

View more
  1 in total

1.  Automatically detecting and understanding the perception of COVID-19 vaccination: a middle east case study.

Authors:  Wajdi Aljedaani; Ibrahem Abuhaimed; Furqan Rustam; Mohamed Wiem Mkaouer; Ali Ouni; Ilyes Jenhani
Journal:  Soc Netw Anal Min       Date:  2022-09-04
  1 in total

北京卡尤迪生物科技股份有限公司 © 2022-2023.