Skip to main content
Log in

Sentiment analysis of COVID-19 related social distancing using twitter data based on deep learning

  • Published:
Multimedia Tools and Applications Aims and scope Submit manuscript

Abstract  

Social distancing is an important non-pharmaceutical intervention tool (NPIs) to prevent the spread of COVID-19. However, it also created negative impacts of economic activities. Understanding the emotions and public opinions about social distancing are important for the future policy making of COVID-19 mitigation and the assessment of public health impacts. This study collected 77,627 number of Twitter messages (tweets) between February 1, 2020 and April 30, 2020 from five English-speaking countries (United States, the United Kingdom, India, Canada, and Australia) using the social distancing keywords. We adopted a multi-module hybrid convolutional neural network model sentiment analysis on social distancing related tweets with 85.95% accuracy. This paper conducts a sentiment analysis of tweets from the public on social distancing measures in five countries. Our findings show similar sentiments in tweets from these five countries, which is more positives than negatives about social distancing measures in the public. Additionally, when the daily number of new cases changes, public sentiment fluctuates with it. We believe that social distancing is effective in preventing the spread of coronavirus.

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

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13
Fig. 14
Fig. 15
Fig. 16
Fig. 17

Similar content being viewed by others

Data availability

We support the availability of the data, and we make the datasets in the experiments public on GitHub (https://github.com/WY130090/Sentiment-Analysis-Based-on-COVID-19).

References

  1. Sohrabi C, Alsafi Z, O'neill N, Khan M, Kerwan A, Al-Jabir A, Agha R (2020) World Health Organization declares global emergency: A review of the 2019 novel coronavirus (COVID-19). Int J Surg 76:71–76

  2. Harapan H, Itoh N, Yufika A, Winardi W, Keam S, Te H, Mudatsir M (2020) Coronavirus disease 2019 (COVID-19): A literature review. J Infect Public Health 13(5):667–673

  3. Yuliana Y (2020) Corona virus diseases (Covid-19): Sebuah tinjauan literatur. Wellness Health Mag 2(1):187–192

    Article  Google Scholar 

  4. Block P, Hoffman M, Raabe IJ, Dowd JB, Rahal C, Kashyap R, Mills MC (2020) Social network-based distancing strategies to flatten the COVID-19 curve in a post-lockdown world. Nat Hum Behav 4(6):588–596

    Article  PubMed  Google Scholar 

  5. Sun C, Zhai Z (2020) The efficacy of social distance and ventilation effectiveness in preventing COVID-19 transmission. Sustain Cities Soc 62:102390

    Article  PubMed  PubMed Central  Google Scholar 

  6. Maital S, Barzani E (2020) The global economic impact of COVID-19: A summary of research. Samuel Neaman Inst Natl Policy Res 2020:1–12

    Google Scholar 

  7. Mishra M, Majumdar P (2020) Social distancing during COVID-19: Will it change the Indian society? J Health Manag 22(2):224–235

    Article  Google Scholar 

  8. World Health Organization (2020) Mental health and psychosocial considerations during the COVID-19 outbreak. No. WHO/2019-nCoV/MentalHealth/2020.1.

  9. Kim Y (2014) Convolutional neural networks for sentence classification. arXiv preprint arXiv:1408.5882.

  10. Zhang L, Wang S, Liu B (2018) Deep learning for sentiment analysis: A survey. Wiley Interdisc Rev Data Min Knowl Discov 8(4):e1253

    Article  Google Scholar 

  11. Mullen T, Collier N (2004, July) Sentiment analysis using support vector machines with diverse information sources. In Proceedings of the 2004 conference on empirical methods in natural language processing p 412–418

  12. Neethu MS, Rajasree R (2013, July) Sentiment analysis in twitter using machine learning techniques. In 2013 fourth international conference on computing, communications and networking technologies (ICCCNT) p 1–5

  13. Wu DD, Zheng L, Olson DL (2014) A decision support approach for online stock forum sentiment analysis. IEEE Trans Syst Man Cybern Syst 44(8):1077–1087

    Article  Google Scholar 

  14. Manek AS, Shenoy PD, Mohan MC (2017) Aspect term extraction for sentiment analysis in large movie reviews using Gini Index feature selection method and SVM classifier. World Wide Web 20(2):135–154

    Article  Google Scholar 

  15. Singh J, Singh G, Singh R (2017) Optimization of sentiment analysis using machine learning classifiers. HCIS 7:1–12

    ADS  Google Scholar 

  16. Huq MR, Ahmad A, Rahman A (2017) Sentiment analysis on Twitter data using KNN and SVM. Int J Adv Comput Sci Appl 8(6)

  17. Huang F, Zhang S, Zhang J, Yu G (2017) Multimodal learning for topic sentiment analysis in microblogging. Neurocomputing 253:144–153

    Article  Google Scholar 

  18. Hasan A, Moin S, Karim A, Shamshirband S (2018) Machine learning-based sentiment analysis for twitter accounts. Math Comput Appl 23(1):11

    Google Scholar 

  19. Nandal N, Tanwar R, Pruthi J (2020) Machine learning based aspect level sentiment analysis for Amazon products. Spat Inf Res 28(5):601–607

    Article  Google Scholar 

  20. Mostafa L (2020) Machine learning-based sentiment analysis for analyzing the travelers reviews on Egyptian hotels. The International Conference on Artificial Intelligence and Computer Vision. Springer, Cham, pp 405–413

    Google Scholar 

  21. Stojanovski D, Strezoski G, Madjarov G, Dimitrovski I (2015) Twitter sentiment analysis using deep convolutional neural network. International Conference on Hybrid Artificial Intelligence Systems. Springer, Cham, pp 726–737

    Google Scholar 

  22. Rani S, Kumar P (2019) Deep learning based sentiment analysis using convolution neural network. Arab J Sci Eng 44(4):3305–3314

    Article  Google Scholar 

  23. Omara E, Mosa M, Ismail N (2018) Deep convolutional network for arabic sentiment analysis. In 2018 International Japan-Africa Conference on Electronics, Communications and Computations (JAC-ECC) p 155–159

  24. Vateekul P, Koomsubha T (2016) A study of sentiment analysis using deep learning techniques on Thai Twitter data. In 2016 13th International joint conference on computer science and software engineering (JCSSE) p 1–6

  25. Wang Y, Huang M, Zhu X, Zhao L (2016) Attention-based LSTM for aspect-level sentiment classification. In Proceedings of the 2016 conference on empirical methods in natural language processing p 606–615

  26. Basiri ME, Nemati S, Abdar M, Cambria E, Acharya UR (2021) ABCDM: An attention-based bidirectional CNN-RNN deep model for sentiment analysis. Futur Gener Comput Syst 115:279–294

    Article  Google Scholar 

  27. Hassan A, Mahmood A (2017) Deep learning approach for sentiment analysis of short texts. In 2017 3rd international conference on control, automation and robotics (ICCAR) p 705–710

  28. Heikal M, Torki M, El-Makky N (2018) Sentiment analysis of Arabic tweets using deep learning. Procedia Comput Sci 142:114–122

    Article  Google Scholar 

  29. Guo B, Zhang C, Liu J, Ma X (2019) Improving text classification with weighted word embeddings via a multi-channel TextCNN model. Neurocomputing 363:366–374

    Article  Google Scholar 

  30. Chintalapudi N, Battineni G, Amenta F (2021) Sentimental Analysis of COVID-19 Tweets Using Deep Learning Models. Infect Dis Rep 13(2):329–339. https://doi.org/10.3390/idr13020032

    Article  PubMed  PubMed Central  Google Scholar 

  31. Aljameel SS, Alabbad DA, Alzahrani NA, Alqarni SM, Alamoudi FA, Babili LM, Alshamrani FM (2021) A sentiment analysis approach to predict an individual’s awareness of the precautionary procedures to prevent COVID-19 outbreaks in Saudi Arabia. Int J Environ Res Public Health 18(1):218

  32. Imran AS, Daudpota SM, Kastrati Z, Batra R (2020) Cross-cultural polarity and emotion detection using sentiment analysis and deep learning on COVID-19 related tweets. Ieee Access 8:181074–181090

    Article  PubMed  Google Scholar 

  33. Barkur G, Kamath GB (2020) Sentiment analysis of nationwide lockdown due to COVID 19 outbreak: Evidence from India. Asian J Psychiatr 51:102089

    Article  PubMed  PubMed Central  Google Scholar 

  34. Basiri ME, Nemati S, Abdar M, Asadi S, Acharrya UR (2021) A novel fusion-based deep learning model for sentiment analysis of COVID-19 tweets. Knowl-Based Syst 228:107242

    Article  PubMed  PubMed Central  Google Scholar 

  35. Wang X, Zou C, Xie Z, Li D (2020). Public opinions towards covid-19 in california and new york on twitter. medRxiv, 2020-07.

  36. Jelodar H, Wang Y, Orji R, Huang S (2020) Deep sentiment classification and topic discovery on novel coronavirus or COVID-19 online discussions: NLP using LSTM recurrent neural network approach. IEEE J Biomed Health Inform 24(10):2733–2742

    Article  PubMed  Google Scholar 

  37. Qian M, Jiang J (2020) COVID-19 and social distancing. J Public Health 1–3

  38. Greenstone M, Nigam V (2020) Does social distancing matter?. University of Chicago, Becker Friedman Institute for Economics Working Paper 2020–26

  39. Venkatesh A, Edirappuli S (2020) Social distancing in covid-19: what are the mental health implications?. Bmj 369

  40. Shofiya C, Abidi S (2021) Sentiment analysis on COVID-19-related social distancing in Canada using Twitter data. Int J Environ Res Public Health 18(11):5993

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  41. Qazi U, Imran M, Ofli F (2020) GeoCoV19: a dataset of hundreds of millions of multilingual COVID-19 tweets with location information. SIGSPATIAL Spec 12(1):6–15

    Article  Google Scholar 

  42. Vijayarani S, Janani R (2016) Text mining: open source tokenization tools-an analysis. Adv Comput Intell Int J (ACII) 3(1):37–47

    Google Scholar 

  43. Devlin J, Chang MW, Lee K, Toutanova K (2018) Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805

  44. Goldberg Y, Levy O (2014) word2vec Explained: deriving Mikolov et al.'s negative-sampling word-embedding method. arXiv preprint arXiv:1402.3722

  45. Krizhevsky A, Sutskever I, Hinton GE (2012) Imagenet classification with deep convolutional neural networks. Advances in neural information processing systems 25

  46. He K, Zhang X, Ren S, Sun J (2016) Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition p 770–778

  47. Chung J, Gulcehre C, Cho K, Bengio Y (2014) Empirical evaluation of gated recurrent neural networks on sequence modeling. arXiv preprint arXiv:1412.3555

  48. Tang D, Qin B, Feng X, Liu T (2015) Effective LSTMs for target-dependent sentiment classification. arXiv preprint arXiv:1512.01100

  49. Zhao Z, Wu Y (2016) Attention-based convolutional neural networks for sentence classification. In Interspeech Vol. 8, pp 705–709

  50. Johnson R, Zhang T (2017) Deep pyramid convolutional neural networks for text categorization. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) p 562–570

Download references

Acknowledgements

We gratefully acknowledge that this work is financed by Technology Development Plan Project of Henan Province of China (grant number 222102210178).

Funding

This research was funded by Technology Development Plan Project of Henan Province, China, grant number 222102210178.

name, school.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Hongyu Han.

Ethics declarations

Conflict of interest

The authors declare that they have no conflict of interest.

Additional information

Publisher's note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Dang, L., Wang, C., Tsou, MH. et al. Sentiment analysis of COVID-19 related social distancing using twitter data based on deep learning. Multimed Tools Appl 83, 32587–32612 (2024). https://doi.org/10.1007/s11042-023-17011-3

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11042-023-17011-3

Keywords

Navigation