Skip to main content

Sentiment Analysis on Chinese Weibo Regarding COVID-19

Part of the Lecture Notes in Computer Science book series (LNAI,volume 12430)


The outbreak of COVID-19 has had a great impact on people’s general lifestyle over the world. People express their views about COVID-19 on social media more frequently when cities are under lockdown. In this work, we are motivated to analyze the sentiments and their evolution of people in the face of this public health crisis based on Chinese Weibo, a largest social media platform in China. First, we obtained the top 50 hot searched hashtags from January 10, 2020 to May 31, 2020, and collected 1,681,265 Weibo posts associated to the hashtags regarding COVID-19. We then constructed a COVID-19 sentiment analysis dataset by annotating the related Weibo posts with 7 categories, e.g., fear, anger, disgust, sadness, gratitude, surprise, and optimism, in combination of the other two datasets. The well annotated data consists of 21,173 pieces of texts. Second, we employed three methods, i.e., LSTM, BERT, and ERNIE, to predict the sentiments of users on Weibo. Comprehensive experimental results show that ERNIE classifier has the highest accuracy and reaches 0.8837. We then analyzed the sentiment and its evolution of Weibo users to see how people respond to COVID-19 throughout the outbreak. Based on the in-depth analysis, we found that people generally felt negative (mainly fear) at early stage of the outbreak. As the pandemic situation gradually improved, people’s positive sentiment began to increase. The number of cases of COVID-19, news and public events have a great influence on people’s sentiments. Finally, we developed a real-time visualization system to display the trend of the user’s sentiment and hot searched hashtags based on Weibo during the pandemic.


  • Social networks
  • COVID-19
  • Sentiment analysis

This is a preview of subscription content, access via your institution.

Buying options

USD   29.95
Price excludes VAT (USA)
  • DOI: 10.1007/978-3-030-60450-9_56
  • Chapter length: 12 pages
  • Instant PDF download
  • Readable on all devices
  • Own it forever
  • Exclusive offer for individuals only
  • Tax calculation will be finalised during checkout
USD   119.00
Price excludes VAT (USA)
  • ISBN: 978-3-030-60450-9
  • Instant PDF download
  • Readable on all devices
  • Own it forever
  • Exclusive offer for individuals only
  • Tax calculation will be finalised during checkout
Softcover Book
USD   159.99
Price excludes VAT (USA)
Fig. 1.
Fig. 2.
Fig. 3.
Fig. 4.


  1. 1.

    The dataset is available at

  2. 2.

  3. 3.


  1. Alkouz, B., Aghbari, Z.A., Abawajy, J.H.: Tweetluenza: predicting flu trends from twitter data. Big Data Min. Anal. 2(4), 273–287 (2019)

    CrossRef  Google Scholar 

  2. Castillo, C., Mendoza, M., Poblete, B.: Information credibility on twitter. In: Srinivasan, S., Ramamritham, K., Kumar, A., Ravindra, M.P., Bertino, E., Kumar, R. (eds.) WWW 2011, March 28 – April 1, 2011, pp. 675–684. ACM, Hyderabad, India (2011)

    Google Scholar 

  3. Chen, L., Hossain, K.S.M.T., Butler, P., Ramakrishnan, N., Prakash, B.A.: Flu gone viral: Syndromic surveillance of flu on twitter using temporal topic models. In: ICDM 2014, 14–17 December, 2014, pp. 755–760. IEEE Computer Society, Shenzhen, China (2014)

    Google Scholar 

  4. Devlin, J., Chang, M., Lee, K., Toutanova, K.: BERT: pre-training of deep bidirectional transformers for language understanding. In: NAACL-HLT 2019, 2–7 June, 2019, Vol. 1, pp. 4171–4186. Association for Computational Linguistics, Minneapolis, MN, USA (2019)

    Google Scholar 

  5. Grover, S., Aujla, G.S.: Twitter data based prediction model for influenza epidemic. In: International Conference on Computing for Sustainable Global Development (2015)

    Google Scholar 

  6. Hochreiter, S., Schmidhuber, J.: LSTM can solve hard long time lag problems. In: Mozer, M., Jordan, M.I., Petsche, T. (eds.) NIPS 2016, Denver, CO, USA, 2–5 December, 1996, pp. 473–479. MIT Press (1996)

    Google Scholar 

  7. Ji, X., Chun, S.A., Geller, J.: Epidemic outbreak and spread detection system based on twitter data. In: He, J., Liu, X., Krupinski, E.A., Xu, G. (eds.) HIS 2012. LNCS, vol. 7231, pp. 152–163. Springer, Heidelberg (2012).

    CrossRef  Google Scholar 

  8. Lee, K., Agrawal, A., Choudhary, A.N.: Real-time disease surveillance using twitter data: demonstration on flu and cancer. In: KDD 2013, 11–14 August, 2013, pp. 1474–1477. ACM, Chicago, IL, USA (2013)

    Google Scholar 

  9. Leng, Y., et al.: Analysis of misinformation during the COVID-19 outbreak in china: cultural, social and political entanglements. CoRR abs/2005.10414 (2020)

    Google Scholar 

  10. Li, L., Zhang, Q., Wang, X., Zhang, J.J., Wang, T., Gao, T., Duan, W., Tsoi, K.K., Wang, F.: Characterizing the propagation of situational information in social media during COVID-19 epidemic: a case study on weibo. IEEE Trans. Comput. Soc. Syst. 7(2), 556–562 (2020)

    CrossRef  Google Scholar 

  11. Mckee, M., Cole, K., Hurst, L., Aldridge, R.W., Horton, R.: The other twitter revolution: how social media are helping to monitor the NHS reforms. BMJ 342(342), d948 (2011)

    CrossRef  Google Scholar 

  12. Paul, M.J., Dredze, M., Broniatowski, D.A., Generous, N.: Worldwide influenza surveillance through twitter. In: Shaban-Nejad, A., Buckeridge, D.L., Brownstein, J.S. (eds.) AAAI 2015 Workshop, Austin, Texas, USA, January 2015. AAAI Workshops, vol. WS-15-15. AAAI Press (2015)

    Google Scholar 

  13. Wang, G., Wang, Y., Liu, K., Li, J.: Multidimensional influencing factors of public opinion information dissemination in social media: evidence from weibo dataset. Int. J. Mod. Phys. B (2020)

    Google Scholar 

  14. Wei, X., Xu, G., Wang, H., He, Y., Han, Z., Wang, W.: Sensing users’ emotional intelligence in social networks. IEEE Trans. Comput. Soc. Syst. 7(1), 103–112 (2020)

    CrossRef  Google Scholar 

  15. Yousefinaghani, S., Dara, R., Sharif, S.: Impact of in-domain vector representations on the classification of disease-related tweets: avian influenza case study. In: Schimmler, S., Borghoff, U.M. (eds.) Proceedings of the ACM Symposium on Document Engineering 2019, 23–26 September, 2019, pp. 34:1–34:4. ACM, Berlin, Germany (2019)

    Google Scholar 

  16. Zhang, Z., Han, X., Liu, Z., Jiang, X., Sun, M., Liu, Q.: ERNIE: enhanced language representation with informative entities. In: ACL 2019, Florence, Italy, July 28- August 2, 2019, Volume 1, pp. 1441–1451 (2019)

    Google Scholar 

  17. Zhou, H., Huang, M., Zhang, T., Zhu, X., Liu, B.: Emotional chatting machine: emotional conversation generation with internal and external memory. CoRR abs/1704.01074 (2017)

    Google Scholar 

Download references


The authors thank Prof. Xiangliang Zhang at KAUST for her insightful comments and suggestions. The work reported in this paper was supported in part by National Key R&D Program of China, under Grant 2017YFB0802805, in part by the Natural Science Foundation of China, under Grant U1736114, and in part by KAUST.

Author information

Authors and Affiliations


Corresponding author

Correspondence to Wei Wang .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and Permissions

Copyright information

© 2020 Springer Nature Switzerland AG

About this paper

Verify currency and authenticity via CrossMark

Cite this paper

Lyu, X., Chen, Z., Wu, D., Wang, W. (2020). Sentiment Analysis on Chinese Weibo Regarding COVID-19. In: Zhu, X., Zhang, M., Hong, Y., He, R. (eds) Natural Language Processing and Chinese Computing. NLPCC 2020. Lecture Notes in Computer Science(), vol 12430. Springer, Cham.

Download citation

  • DOI:

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-60449-3

  • Online ISBN: 978-3-030-60450-9

  • eBook Packages: Computer ScienceComputer Science (R0)