Skip to main content

Sentiment Classification and Comparison of Covid-19 Tweets During the First Wave and the Second Wave Using NLP Techniques and Libraries

  • Conference paper
  • First Online:
Innovations in Bio-Inspired Computing and Applications (IBICA 2021)

Abstract

This research focuses on analysing the sentiments of people pertaining to severe periodic outbreaks of COVID-19 on two junctures – First Wave (Mar’20 & Apr’20) and Second Wave (Jun’21 & Jul’21)-since the first lockdown was undertaken with a view to curb the vicious spread of the lethal SARS-Cov-2 strain. Primarily, the objective is to analyse the public sentiment – as evident in the posted tweets - relating to the different phases of the pandemic, and to illuminate how keeping an eye on change in the tenor and tone of discussions can help government authorities and healthcare industry in raising awareness, reducing panic amongst citizens, and planning strategies to tackle the monumental crisis.

Considering the daily volume of social media activity, in our project, we scoped to analyse the Tweets related to the two different pandemic stages – The First wave and the Second wave – by implementing Text Mining and Sentiment Analysis, subfields of Natural Language Processing. To manually extract tweets from the platform, we used Twitter API coupled with Python’s open-source package using a set of COVID-19-related keywords.

Crucially, before finalising the project pipeline, we conducted a thorough secondary research to find the solutions and methodologies implemented in our area of interest. We listed the current works and attempted to plug the gaps in those via our experiment.

We used several classification and boosting algorithms to create a framework to distinguish the textual data of the tweets. Relevant scope, limitations, and room for improvements have been discussed comprehensively in the upcoming sections.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 189.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 249.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Vijay, T., Chawla, A., Dhanka, B., Karmakar, P.: Sentiment analysis on COVID-19 Twitter data. In: IEEE International Conference on Recent Advances and Innovations in Engineering (2020)

    Google Scholar 

  2. Saranya, G., Geetha, G., Chakrapani, K., Meenakshi, K., Karpagaselvi, S.: Sentiment analysis of healthcare Tweets using SVM classifier. In: 2020 2nd International Conference on Power, Energy, Control and Transmission Systems, IEEE (2020)

    Google Scholar 

  3. Chintalapudi, N., Battineni, G., Amenta, F.: Sentimental Analysis of COVID-19 Tweets Using Deep Learning Models. Inf. Dis. Rep. 13(2), 329–339 (2021) (Multidisciplinary Digital Publishing Institute (MDPI))

    Google Scholar 

  4. Coronavirus Tweets NLP – Text Classification, Kaggle. https://www.kaggle.com/datatattle/covid-19-nlp-text-classification

  5. Priya Iyer, K.B., Kumaresh, S.: Twitter sentiment analysis on coronavirus outbreak using machine learning algorithms. Eur. J. Molecul. Clin. Med. 07(03), 2663 (2020)

    Google Scholar 

  6. Kaur, H., Ul Ahassan, S., Alankar, B., Chang, V.: A proposed sentiment analysis deep learning algorithm for analyzing COVID-19 Tweets. Inf. Syst. Front. 23(6), 1417–1429 (2021)

    Google Scholar 

  7. Kaur, C., Sharma, A.: Twitter Sentiment Analysis on Coronavirus using Textblob. EasyChair 2516–2314 (2020)

    Google Scholar 

  8. Ezhilan, A., Rakshana, B.S., Dheekksha, R., Anahitaa, R., Shivani, R.: Sentiment analysis and classification of COVID-19 tweets. In: 2021 5th International Conference on Trends in Electronics and Informatics (ICOEI), pp. 821–828 (2021). https://doi.org/10.1109/ICOEI51242.2021.9453062

  9. Kariya, C., Khodke, P.: Twitter sentiment analysis. Int. Conf. Emerg. Technol. 2020, 1–3 (2020). https://doi.org/10.1109/INCET49848.2020.9154143

    Article  Google Scholar 

  10. Kale, S., Padmadas, V.: Sentiment analysis of Tweets using semantic analysis. In: 2017 International Conference on Computing, Communication, Control and Automation (ICCUBEA), pp. 1–3 (2017). https://doi.org/10.1109/ICCUBEA.2017.8464011

  11. Rolling updates on coronavirus disease, World Health Organization (WHO). https://www.who.int/emergencies/diseases/novel-coronavirus-2019/events-as-they-happen

  12. COVID-19 Portal, World Health Organization (WHO). https://www.who.int/emergencies/diseases/novel-coronavirus-2019

  13. Staszkiewicz, P., Chomiak-Orsa, I.: Dynamics of the COVID-19 contagion and mortality: country factors, social media, and market response evidence from a global panel analysis. IEEE Access 8, 106009–106022 (2020)

    Google Scholar 

  14. Saif, H., He, Y., Alani, H.: Semantic sentiment analysis of Twitter. In: Cudré-Mauroux, P., et al. (eds.) ISWC 2012. LNCS, vol. 7649, pp. 508–524. Springer, Heidelberg (2012). https://doi.org/10.1007/978-3-642-35176-1_32

    Chapter  Google Scholar 

  15. El Rahman, S.A., AlOtaibi, F.A., AlShehri, W.A.: Sentiment analysis of Twitter data. Int. Conf. Comput. Inf. Sci. 2019, 1–4 (2019). https://doi.org/10.1109/ICCISci.2019.8716464

    Article  Google Scholar 

  16. Drus, Z., Khalid, H.: Sentiment analysis in social media and its application: systematic literature review. Proc. Comput. Sci. 161, 707–714 (2019). https://doi.org/10.1016/j.procs.2019.11.174

    Article  Google Scholar 

  17. Karami, A., Bookstaver, B., Nolan, M., Bozorgi, P.: Investigating diseases and chemicals in COVID-19 literature with text mining. Int. J. Inf. Manage. Data Insights 1(2), 100016 (2021). https://doi.org/10.1016/j.jjimei.2021.100016

    Article  Google Scholar 

  18. TextBlob: Simplified Text Processing. https://textblob.readthedocs.io/en/dev/

  19. Tweepy Documentation. https://docs.tweepy.org/en/stable/

  20. Lamsal, R.: Design and analysis of a large-scale COVID-19 Tweets dataset. Appl. Intell. 51(5), 2790–2804 (2020). https://doi.org/10.1007/s10489-020-02029-z

    Article  Google Scholar 

  21. Siddiqua, U.A., Ahsan, T., Chy, A.N.: Combining a rule-based classifier with ensemble of feature sets and machine learning techniques for sentiment analysis on microblog. In: 2016 19th International Conference on Computer and Information Technology (ICCIT), pp. 304–309 (2016). https://doi.org/10.1109/ICCITECHN.2016.7860214

  22. Twitter Developer Platform. https://developer.twitter.com/en/docs

  23. Alamoodi, A., et al.: Sentiment analysis and its applications in fighting COVID-19 and infectious diseases: a systematic review. Exp. Syst. Appl. 114155 (2020). https://doi.org/10.1016/j.eswa.2020.114155

  24. Hermanto, D.T., Ziaurrahman, M., Bianto, M.A., Setyanto, A.: Twitter social media sentiment analysis in tourist destinations using algorithms Naive Bayes classifier. J. Phys. Conf. Ser. 1140, 012037 (2018). https://doi.org/10.1088/1742-6596/1140/1/012037

    Article  Google Scholar 

  25. Natural Language Toolkit, NLTK 3.6.3 Documentation. https://www.nltk.org/api/nltk.sentiment.html

  26. Khan, R., Rustam, F., Kanwal, K., Mehmood, A., Choi, G.S.: US based COVID-19 Tweets sentiment analysis using TextBlob and supervised machine learning algorithms. Int. Conf. Artif. Intell. 2021, 1–8 (2021). https://doi.org/10.1109/ICAI52203.2021.9445207

    Article  Google Scholar 

  27. Raheja, S., Asthana, A.: Sentimental analysis of Twitter comments on Covid-19. In: 2021 11th International Conference on Cloud Computing, Data Science and Engineering (Confluence), pp. 704–708 (2021). https://doi.org/10.1109/Confluence51648.2021.9377048

  28. Ridhwan, K.M., Hargreaves, C.A.: Leveraging Twitter data to understand public sentiment for the COVID‐19 outbreak in Singapore. Int. J. Inf. Manage. Data Insights 1(2), 100021 (2021). https://doi.org/10.1016/j.jjimei.2021.100021

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Mugde, S., Sharma, G., Kashyap, A.S., Swastik, S. (2022). Sentiment Classification and Comparison of Covid-19 Tweets During the First Wave and the Second Wave Using NLP Techniques and Libraries. In: Abraham, A., et al. Innovations in Bio-Inspired Computing and Applications. IBICA 2021. Lecture Notes in Networks and Systems, vol 419. Springer, Cham. https://doi.org/10.1007/978-3-030-96299-9_65

Download citation

Publish with us

Policies and ethics