Skip to main content

Sentiment Analysis of Twitter Data Related to COVID-19

  • Chapter
  • First Online:
Impact of AI and Data Science in Response to Coronavirus Pandemic

Part of the book series: Algorithms for Intelligent Systems ((AIS))

Abstract

Sentiment analysis is natural language processing technique which is used to evaluate the emotions of subjective data. Machine learning along with natural language processing is used to evaluate weighted values of sentences or phrases. The COVID-19 pandemic is one of the greatest challenges that humans have faced since World War II. With the first case of COVID-19 being reported there has been an urge of discovering efficient analytic methods to understand mass sentiment in the pandemic scenario. Along with this technique, various strategies are used such as computational etymology and information retrieval. The task of detecting text polarity becomes easier with sentiment analysis and we can classify like “negative”, “neutral”, “positive”, or “impartial”. The main objective is using or studying the methods of sentiment analysis of Twitter data and provide comparative study of mass sentiment during the chosen window, i.e., January to August. This chapter has explored Twitter as dataset. TextBlob which is a sentiment analysis library in Python was used to extract the objective of the content and also to know whether the content is positive or negative.

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

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
eBook
USD 149.00
Price excludes VAT (USA)
Softcover Book
USD 199.99
Price excludes VAT (USA)
Hardcover Book
USD 199.99
Price excludes VAT (USA)

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

References

  1. Rajput NK, Bhavya AG, Vipin KR (2020) Word frequency and sentiment analysis of twitter messages during coronavirus pandemic. arXiv preprint arXiv:2004.03925

    Google Scholar 

  2. Zhou J et al (2020) Examination of community sentiment dynamics due to covid-19 pandemic: a case study from Australia. arXiv preprint arXiv:2006.12185

    Google Scholar 

  3. Tyagi P, Tripathi RC (2019) A review towards the sentiment analysis techniques for the analysis of twitter data

    Google Scholar 

  4. Rajput NK, Grover BA, Rathi VKJ (2020) Word frequency and sentiment analysis of twitter messages during Coronavirus pandemic

    Google Scholar 

  5. Mishra S, Tripathy HK, Mallick PK, Bhoi AK, Barsocchi P (2020) EAGA-MLP—an enhanced and adaptive hybrid classification model for diabetes diagnosis. Sensors 20(14):4036

    Article  Google Scholar 

  6. Sharma R, Nigam S, Jain R (2014) Opinion mining of movie reviews at document level. arXiv preprint arXiv:1408.3829

    Google Scholar 

  7. Taboada M, Brooke J, Tofiloski M, Voll K, Stede M (2011) Lexicon-based methods for sentiment analysis. Comput Linguist 37(2):267–307

    Article  Google Scholar 

  8. Harb A, Plantie M, Dray G, Roche M, Trousset F, Poncelet P (2008) Web opinion mining: how to extract opinions from blogs? In: Proceedings of the 5th international conference on soft computing as transdisciplinary science and technology. ACM, pp 211–217

    Google Scholar 

  9. Tripathy A, Rath SK (2017) Classification of sentiment of reviews using supervised machine learning techniques. Int J Rough Sets Data Anal (IJRSDA) 4(1):56–74

    Article  Google Scholar 

  10. Saleh MR, Martin-Valdivia MT, Montejo-Raez A, Urena-Lopez L (2011) Experiments with SVM to classify opinions in different domains. Expert Syst Appl 38(12):14799–14804

    Google Scholar 

  11. Kaur C, Sharma A (2020) Twitter sentiment analysis on coronavirus using Textblob. EasyChair, 2516–2314

    Google Scholar 

  12. Prabhakar Kaila D, Prasad DA (2020) Informational flow on twitter Corona virus outbreak topic modelling approach, vol 11, no 3

    Google Scholar 

  13. Alhajji M, Al Khalifah A, Aljubran M, Alkhalifah M (2020) Sentiment analysis of tweets in Saudi Arabia regarding governmental preventive measures to contain COVID-19

    Google Scholar 

  14. Pastor CK (2020) Sentiment analysis of Filipinos and effects of extreme community quarantine due to Coronavirus (COVID-19) pandemic

    Google Scholar 

  15. Jordan SE, Hovet SE, Fung IC, Liang H, Fu KW, Tse ZTH (2018) Using twitter for public health surveillance from monitoring and prediction to public response. Data. 4. 6. 10.3390/data4010006

    Google Scholar 

  16. Gonzalo GA, Henriquez PA, Mascareno A (2020) Sentiment analysis of Twitter data during critical events through Bayesian networks classifiers. Future Gener Comput Syst 106:92–104. ISSN: 0167-739X

    Google Scholar 

  17. Pennycook G, McPhetres J, Zhang Y, Lu JG, Rand DG (2020) Fighting COVID-19 misinformation on social media: experimental evidence for a scalable accuracy-nudge intervention. Psychol Sci. https://doi.org/10.1177/0956797620939054

  18. Rajput NK, Grover BA, Rathi VK (2020).Word frequency and sentiment analysis of twitter messages during Coronavirus pandemic. arXiv preprint arXiv:2004.03925

    Google Scholar 

  19. Li S et al (2020) The impact of COVID-19 epidemic declaration on psychological consequences: a study on active Weibo users. Int J Environ Res Public Health 17.6:2032

    Google Scholar 

  20. Jang H et al (2020) Exploratory analysis of covid-19 related tweets in North America to inform public health institutes. arXiv preprint arXiv:2007.02452

    Google Scholar 

  21. Barkur C, Vibha GB (2020) Sentiment analysis of nationwide lockdown due to COVID 19 outbreak: evidence from India. Asian J Psychiatry 51:102089

    Google Scholar 

  22. Mishra S, Mallick PK, Tripathy HK, Bhoi AK, González-Briones A (2020) Performance evaluation of a proposed machine learning model for chronic disease datasets using an integrated attribute evaluator and an improved decision tree classifier. Appl Sci 10(22):8137

    Article  Google Scholar 

  23. Smeureanu CB (2012) Applying supervised opinion mining techniques on online user reviews. Inform Econ 16(2):81–92

    Google Scholar 

  24. Mishra S, Mallick PK, Jena L, Chae GS (2020) Optimization of skewed data using sampling-based preprocessing approach. Front Public Health 8:274. https://doi.org/10.3389/fpubh.2020.00274

    Article  Google Scholar 

  25. Nigam K, Lafferty J, McCallum A (1999) Using maximum entropy for text classification. In: IJCAI-99 workshop on machine learning for information filtering, vol 1, pp 61–67

    Google Scholar 

  26. Sahoo S, Mishra S, Mishra BKK, Mishra M (2018) Analysis and implementation of artificial bee colony optimization in constrained optimization problems. In: Handbook of research on modeling, analysis, and application of nature-inspired metaheuristic algorithms. IGI Global, Pennsylvania, PA, USA, pp 413–432

    Google Scholar 

  27. Akshi Kumar TMS, Kumar A, Sebastian TM (2012) Sentiment analysis on twitter. IJCSI Int J Comput Sci 9(4):372–378

    Google Scholar 

  28. Pak A, Paroubek P (2010) Twitter as a corpus for sentiment analysis and opinion mining. In: Proceedings of seventh international conference on language resources evaluation, pp 1320–1326

    Google Scholar 

  29. Ray C, Tripathy HK, Mishra S (2019) Assessment of Autistic disorder using machine learning approach. In: Proceedings of the international conference on intelligent computing and communication, Hyderabad, India, 9–11 Jan, pp 209–219

    Google Scholar 

  30. Mishra S, Dash A, Jena L. Use of deep learning for disease detection and diagnosis. In: Bio-inspired neurocomputing. Springer, Singapore, pp 181–201

    Google Scholar 

  31. Mishra S, Tripathy HK, Mishra BK (2018) Implementation of biologically motivated optimisation approach for tumour categorisation. Int J Comput Aided Eng Technol 10(3):244–256

    Article  Google Scholar 

  32. Mallick PK, Mishra S, Chae GS (2020) Digital media news categorization using Bernoulli document model for web content convergence. Pers Ubiquit Comput. https://doi.org/10.1007/s00779-020-01461-9

    Article  Google Scholar 

  33. Mishra M, Mishra S, Mishra BK, Choudhury P (2017) Analysis of power aware protocols and standards for critical E-health applications. In: Internet of things and big data technologies for next generation healthcare. Springer, Cham, pp 281–305

    Google Scholar 

  34. Mishra S, Mishra BK, Tripathy HK, Dutta A (2020) Analysis of the role and scope of big data analytics with IoT in health care domain. In: Handbook of data science approaches for biomedical engineering. Academic Press, pp 1–23

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Gargi Saha .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2021 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Saha, G., Roy, S., Maji, P. (2021). Sentiment Analysis of Twitter Data Related to COVID-19. In: Mishra, S., Mallick, P.K., Tripathy, H.K., Chae, GS., Mishra, B.S.P. (eds) Impact of AI and Data Science in Response to Coronavirus Pandemic. Algorithms for Intelligent Systems. Springer, Singapore. https://doi.org/10.1007/978-981-16-2786-6_9

Download citation

Publish with us

Policies and ethics