Temporal Dynamics of Public Emotions During the COVID-19 Pandemic at the Epicenter of the Outbreak: Sentiment Analysis of Weibo Posts From Wuhan

J Med Internet Res. 2021 Mar 18;23(3):e27078. doi: 10.2196/27078.

Abstract

Background: The ongoing COVID-19 pandemic has led to an increase in anxiety, depression, posttraumatic stress disorder, and psychological stress experienced by the general public in various degrees worldwide. However, effective, tailored mental health services and interventions cannot be achieved until we understand the patterns of mental health issues emerging after a public health crisis, especially in the context of the rapid transmission of COVID-19. Understanding the public's emotions and needs and their distribution attributes are therefore critical for creating appropriate public policies and eventually responding to the health crisis effectively, efficiently, and equitably.

Objective: This study aims to detect the temporal patterns in emotional fluctuation, significant events during the COVID-19 pandemic that affected emotional changes and variations, and hourly variations of emotions within a single day by analyzing data from the Chinese social media platform Weibo.

Methods: Based on a longitudinal dataset of 816,556 posts published by 27,912 Weibo users in Wuhan, China, from December 31, 2019, to April 31, 2020, we processed general sentiment inclination rating and the type of sentiments of Weibo posts by using pandas and SnowNLP Python libraries. We also grouped the publication times into 5 time groups to measure changes in netizens' sentiments during different periods in a single day.

Results: Overall, negative emotions such as surprise, fear, and anger were the most salient emotions detected on Weibo. These emotions were triggered by certain milestone events such as the confirmation of human-to-human transmission of COVID-19. Emotions varied within a day. Although all emotions were more prevalent in the afternoon and night, fear and anger were more dominant in the morning and afternoon, whereas depression was more salient during the night.

Conclusions: Various milestone events during the COVID-19 pandemic were the primary events that ignited netizens' emotions. In addition, Weibo users' emotions varied within a day. Our findings provide insights into providing better-tailored mental health services and interventions.

Keywords: COVID-19; emotion; infodemiology; public health emergencies; sentiment analysis; temporal dynamics.

MeSH terms

  • COVID-19 / psychology*
  • COVID-19 / virology
  • China / epidemiology
  • Emotions / physiology*
  • Humans
  • Pandemics
  • SARS-CoV-2 / isolation & purification
  • Social Media / statistics & numerical data*