Published on in Vol 24, No 10 (2022): October

Preprints (earlier versions) of this paper are available at, first published .
Tracking the Impact of COVID-19 and Lockdown Policies on Public Mental Health Using Social Media: Infoveillance Study

Tracking the Impact of COVID-19 and Lockdown Policies on Public Mental Health Using Social Media: Infoveillance Study

Tracking the Impact of COVID-19 and Lockdown Policies on Public Mental Health Using Social Media: Infoveillance Study

Original Paper

1Department of Big Data in Health Science School of Public Health, Center of Clinical Big Data and Analytics of The Second Affiliated Hospital, Zhejiang University School of Medicine, Hangzhou, China

2The Key Laboratory of Intelligent Preventive Medicine of Zhejiang Province, Hangzhou, China

3Department of Biomedical Informatics, Harvard Medical School, Boston, MA, United States

4Division of General Internal Medicine and Primary Care, Department of Medicine, Brigham and Women’s Hospital, Boston, MA, United States

5Department of Psychiatry, Sir Run Run Shaw Hospital, School of Medicine, Zhejiang University, Hangzhou, China

6Florence Nightingale Faculty of Nursing, Midwifery & Palliative Care, King’s College London, London, United Kingdom

*these authors contributed equally

Corresponding Author:

Jie Yang, PhD

Department of Big Data in Health Science School of Public Health, Center of Clinical Big Data and Analytics of The Second Affiliated Hospital

Zhejiang University School of Medicine

866 Yuhangtang Road

Hangzhou, 310058


Phone: 86 19157731185

Fax:86 571 87077982


Background: The COVID-19 pandemic and its corresponding preventive and control measures have increased the mental burden on the public. Understanding and tracking changes in public mental status can facilitate optimizing public mental health intervention and control strategies.

Objective: This study aimed to build a social media–based pipeline that tracks public mental changes and use it to understand public mental health status regarding the pandemic.

Methods: This study used COVID-19–related tweets posted from February 2020 to April 2022. The tweets were downloaded using unique identifiers through the Twitter application programming interface. We created a lexicon of 4 mental health problems (depression, anxiety, insomnia, and addiction) to identify mental health–related tweets and developed a dictionary for identifying health care workers. We analyzed temporal and geographic distributions of public mental health status during the pandemic and further compared distributions among health care workers versus the general public, supplemented by topic modeling on their underlying foci. Finally, we used interrupted time series analysis to examine the statewide impact of a lockdown policy on public mental health in 12 states.

Results: We extracted 4,213,005 tweets related to mental health and COVID-19 from 2,316,817 users. Of these tweets, 2,161,357 (51.3%) were related to “depression,” whereas 1,923,635 (45.66%), 225,205 (5.35%), and 150,006 (3.56%) were related to “anxiety,” “insomnia,” and “addiction,” respectively. Compared to the general public, health care workers had higher risks of all 4 types of problems (all P<.001), and they were more concerned about clinical topics than everyday issues (eg, “students’ pressure,” “panic buying,” and “fuel problems”) than the general public. Finally, the lockdown policy had significant associations with public mental health in 4 out of the 12 states we studied, among which Pennsylvania showed a positive association, whereas Michigan, North Carolina, and Ohio showed the opposite (all P<.05).

Conclusions: The impact of COVID-19 and the corresponding control measures on the public’s mental status is dynamic and shows variability among different cohorts regarding disease types, occupations, and regional groups. Health agencies and policy makers should primarily focus on depression (reported by 51.3% of the tweets) and insomnia (which has had an ever-increasing trend since the beginning of the pandemic), especially among health care workers. Our pipeline timely tracks and analyzes public mental health changes, especially when primary studies and large-scale surveys are difficult to conduct.

J Med Internet Res 2022;24(10):e39676



The global COVID-19 pandemic has drastically changed people’s daily lives since the first confirmed case in December 2019 [1]. It has led to high hospitalization and fatality and negatively impacted public mental health [2,3]. Mental health problems cover a wide range of populations during the pandemic. The causes include but are not limited to the infection and death of relatives and friends, fear of illness, isolation brought by quarantine [4,5], and stress from unemployment [6]. At the same time, specific subpopulations such as children and adolescents [7,8], students [9,10], patients with COVID-19 [11], and health care workers [12,13] are particularly vulnerable to psychological disorders during the pandemic.

Studies have pointed out that health care workers in the United States experience psychological distress, facing high levels of anxiety, depression, and burnout during the pandemic [14]. The underlying reasons could be higher exposure risks to the virus and overwhelming workload [15,16]. Although there is literature on studying the mental health status of health care workers during the pandemic period, existing research primarily focuses on retrospective cross-sectional studies [13,14,16-19]. Therefore, it is necessary to study the dynamic characteristics of their mental status, identify general concerns, and provide timely support [20,21].

Due to their large scale, immediacy, and comprehensive coverage, social media platforms (such as Twitter, Facebook, and Weibo) have been vital data sources of research to analyze public perceptions timely when primary studies and large-scale surveys are difficult to be conducted. For example, Chew et al [22] used Twitter to study misinformation during the 2009 H1N1 pandemic, and Masri et al [23] found that new case trends can be predicted 1 week ahead based on related tweets for the 2015 Zika epidemic. Similarly, numerous studies have used social media to monitor public perceptions on topics such as enforced remote work [24], vaccines [25,26], drug use [27], mask wearing [28], and so on. Meanwhile, Berry et al [29] pointed out through a study with both quantitative and qualitative approaches that people are willing to discuss mental health problems on Twitter for varied reasons, including the sense of community and Twitter being a safe space for expression, coping, empowerment, etc. However, existing literature on public mental health during the pandemic using Twitter data [30-33] either has short study periods and small sample sizes or does not focus on subtypes of mental health problems and subgroup prevalence. More granular study designs and more comprehensive data are needed for such studies.

Finally, there is inconsistency in studying the effect of lockdown policies—one of the most highly debated topics related to mental health during the pandemic. Das et al [34] found that “state lockdown policies precede greater mental health symptoms.” In contrast, Adams-Prassl et al [35] found that “the lockdown measures lowered mental health by 0.083 standard deviations.”

To fill in these research gaps and potentially resolve the inconsistency, this study aimed to use related data from February 1, 2020—the beginning of the pandemic—to April 30, 2022, to analyze public mental status, problem types, their temporal and geographic distributions during COVID-19, as well as the effects of lockdown policies on public mental health across states (Figure S1 in Multimedia Appendix 1). In detail, we used this study to answer the 4 following research questions:

  1. What types of mental health problems were the most frequent?
  2. What mental health–related topics were the public the most concerned about, and how did relevant discussions change over time?
  3. Are there differences in mental health concerns between the general population and health care workers?
  4. How did lockdown policies impact public mental health?

To answer question 1, two mental health experts from our teams curated a mental health lexicon for Twitter that categorizes related tweets into 4 common mental health problems: anxiety, depression, insomnia, and addiction. Based on this lexicon, we extracted related tweets and visualized their distributions by week and state. To answer questions 2 and 3, we built a pipeline to identify potential health care workers, used a topic model to summarize related tweets into 16 topics, and compared the topic distributions among health care workers and the general population. To answer question 4, we identified tweets related to mental issues and compared their proportions before and after lockdown policies across different US states.

Data Collection

We collected and downloaded COVID-19–related tweets from February 1, 2020, to April 30, 2022, from Twitter’s application programming interface using the unique tweet ID provided by an open-source COVID-19 tweet database [36]. The downloaded data contained full tweet texts and the corresponding metadata, including created time, user information, tweet status, etc. We further filtered out non–English-language and retweeted tweets and kept 471,371,477 tweets. Our data collection process strictly followed Twitter’s privacy and data use management. This study followed the Strengthening the Reporting of Observational Studies in Epidemiology reporting guidelines.

Ethics Approval

This study was conducted with approval by the Institutional Review Board of Zhejiang University (ZGL202201-2).

Data Preprocessing and Filtering

We removed tweets that contain URLs because such tweets often only included summaries or quotations of the original contents (169,660,346 tweets remained). A psychiatrist and a psychologist curated a mental health lexicon with 231 keywords. The keywords were categorized into 4 subgroups: anxiety, depression, insomnia, and addiction (Table S1 in Multimedia Appendix 1). We used this lexicon to extract mental health–related tweets through keyword matching against the preprocessed tweets and identified 4,460,203 tweets. To reduce the impact of spam and misinformation tweets, we removed data from users who posted more than 1000 mental health–related tweets during the study period. The final data set contained 4,213,005 tweets. Figure 1 shows an overview of the data preprocessing process.

Figure 1. Data collection and preprocessing.
View this figure

Geographic Information Extraction

The geographic information of users was collected from 2 fields of the tweets: (1) the “place” field in tweet metadata and (2) the “location” variable nested in the “user” field of tweet metadata. The “place” information was chosen as the primary evidence of the users’ geographic information, since it is generated from GPS data and is, therefore, more accurate than the information from the self-reported “location” field. We used a list of US state names to extract users’ geographic information (“Methods” in Multimedia Appendix 1 [37-39]). Tweets from users associated with more than 1 state were removed in this step.

Topic Model Analysis

The Latent Dirichlet Allocation model [39] was used to conclude the main topics of mental health–related tweets. To create the corpora for topic modeling, we removed all stop words [40] as well as numbers and symbols. The topic model was implemented using the LdaModel function of the Genism package [40]. We selected the number of topics—a model hyperparameter—based on perplexity and topic coherence (“Methods” in Multimedia Appendix 1 [37-39]).

Health Care Worker Identification

To identify health care workers, we built a health care worker identification lexicon, whose keywords can be roughly divided into 3 groups: occupation, degree, and the title of the association (“Methods” in Multimedia Appendix 1 [37-39]). The dictionary contained 47 keywords, such as “doctor,” “MD,” “Doctor of Medicine,” “FACP,” etc (Table S2 in Multimedia Appendix 1). We used this lexicon to filter the user’s description and extracted 49,307 tweets from health care workers.

Statistical Analysis

We applied standard descriptive statistics to summarize the 4 types of mental health–related tweets proportion, including median and IQRs. Wilcoxon matched-pairs signed-ranks test was used to compare differences between health care workers and the general population. Interrupted time series analysis [41] was applied to analyze the lockdown policy’s effects on public mental health (see detailed information in “Methods” in Multimedia Appendix 1 [37-39]). We used Python software (version 3.8) to conduct the statistical analyses and chose a P value of .05 as the statistically significant threshold.

Collected Data Set

Data preprocessing selected 4,213,005 mental health–related tweets from 2,316,817 users (Figure 1). Among these tweets, 51.3% (2,161,357) were in the “depression” group, 45.66% (n=1,923,635) tweets were in the “anxiety” group, 5.35% (n=225,205) tweets were in the “insomnia” group, and 3.56% (n=150,006) tweets were in the “addiction” group. The sum of the 4 proportions was larger than 100% because some tweets included multiple keywords that belong to different mental health subgroups. Additionally, 789,967 (18.75%) tweets were extracted with their geographic information, and health care workers posted 49,307 (1.17%) tweets (from 21,963 users).

Temporal Distribution of Mental Health–Related Tweets

The trends of the weekly numbers of COVID-19 new cases and mental health–related tweets in 4 subgroups are shown in Figure S2 in Multimedia Appendix 1. The number of tweets of mental health problems reached their first peak from February 29 to April 4, 2020. We calculated and visualized the proportions of mental health–related tweets among all COVID-19–related tweets in Figure 2. The proportion curve of anxiety-related tweets had 3 dominant peaks in March 2020, October 2020, and September 2021. The curve of insomnia-related tweets continually increased during the study period, whereas no specific trends were observed in the curves of depression and addiction.

Figure 2. Trends of 4 types of mental health symptom–related tweets by the proportion of tweets.
View this figure

Geographic Distribution of Mental Health–Related Tweets in the United States

Figure 3 shows the proportion of mental health–related tweets among all COVID-19–related tweets in each US state from February 1, 2020, to April 30, 2022, and visualizes the monthly tweet proportion for all the 50 US states (concrete proportions and 95% CIs are listed in Multimedia Appendix 2). Vermont, Oregon, and Utah were the 3 states with the highest proportions of mental health–related tweets, whereas Mississippi, Hawaii, and Louisiana had the lowest proportions. The first 2 months had a more substantial proportion of mental health–related tweets than the following months across most states.

Figure 3. Proportion distribution of mental health–related tweets in the United States.
View this figure

Topics of Mental Health–Related Tweets

The most frequent terms for mental health–related tweets were “people,” “worried,” “shame,” “panic,” “lockdown,” “anxiety,” “mask,” etc (Figure S3 in Multimedia Appendix 1). We chose 16 to be the number of topics based on the perplexity and coherence (“Methods” and Figure S4 in Multimedia Appendix 1 [37-39]). Topics and the corresponding top 20 most probable unigrams and bigrams are displayed in Table S3 in Multimedia Appendix 1. We assigned each topic with a topic name based on the keywords. For example, a topic having the keywords “college,” “student,” “stress,” and “exam” indicates that tweets on this topic was likely to have been focused on “students’ pressure.” Except for the issues related to COVID-19 itself, such as “COVID-19 news,” “test results,” and “mask wearing,” the public also showed particular interest in topics such as “economic collapse,” “panic buying,” and “fuel problems.” The 16 topics were then categorized into 6 topic groups: “COVID-19 pandemic,” “preventive measures,” “economic,” “people,” “education,” and “mental health.” Figure 4 shows the dynamic distributions of the investigated topics in relative tweet proportions. The topic “lockdown days” occupied a dominant position during the pandemic most of the time. “COVID-19 news” was frequently mentioned at the beginning of the pandemic but returned to an average level after June 2020. The topic of “panic buying” notably fluctuated in the research period and was relatively large from February to March 2020 and from August to October 2021.

Figure 4. Dynamic characteristics of topic proportions.
View this figure

Mental Health of Health Care Workers

We assessed the differences in the proportions of 4 mental health symptom–related tweets between health care workers and the general population and showed the results in Table 1. Statistical results showed that the proportions of anxiety-, depression-, insomnia-, and addiction-related tweets were significantly higher in health care workers than in the general public (all P<.001). Figure 5A shows the average number of tweets per user on different topics. “Lockdown days” is the top topic discussed by both health care workers and the general population. To visualize the difference in topic distribution between health care workers and the general population, we visualized the ratios of the average number of tweets by topic for the 2 groups in Figure 5B. It demonstrates that health care workers discussed more on 13 topics, especially clinical-related topics such as “hospital situations,” “COVID-19 symptoms,” and “mask wearing.” Conversely, the general population focused on topics such as “fuel problems,” “students’ pressure,” and “panic buying.”

Table 1. Comparison of proportions of mental health–related tweets between health care workers and the general population.
Mental health symptomHealth care workers (% tweets), median (IQRa)General population (% tweets), median (IQRa)WP value
Anxiety1.103 (1.02-1.187)1.025 (0.956-1.094)2120<.001
Depression1.519 (1.396-1.642)1.255 (1.171-1.339)26<.001
Insomnia0.251 (0.175-0.328)0.131 (0.093-0.17)7<.001
Addiction0.139 (0.114-0.164)0.086 (0.079-0.094)185<.001

aIQR and Wilcoxon matched-pairs signed-ranks test were applied to compare the differences between the 2 groups.

Figure 5. The distribution of tweets in topics for health care workers and the general population. (A) Average number of tweets per user in each topic. (B) Logarithmic ratio of the average number of tweets between health care workers and the general population on each topic. The ratio equals the average number of tweets per user among health care workers divided by the average number of tweets among the general population.
View this figure

Impacts of Lockdown Policies

We selected 12 states with more than 20,000 related tweets during the study period to explore the effect of lockdown policies on public mental status. We report the significant results found in Michigan, Pennsylvania, North Carolina, and Ohio (analysis results of the other 8 states are displayed in Figure S5 in Multimedia Appendix 1). Sensitivity analysis was applied to verify the stability of the results (Table S4 in Multimedia Appendix 1). Figure 6 shows the proportions of the 4 mental health–related tweets changed after the lockdown policy in Pennsylvania but not in the other 3 states. Table 2 lists the results of the interrupted time series analyses [41] of the lockdown policy on public mental health. The coefficient of “policy,” meaning the change of intercept, was significant in the model of Pennsylvania (P=.007), and the coefficient of interaction term indicated that the change of slope was both significant in the models of Michigan (P=.03) and Pennsylvania (P=.04).

Figure 6. Daily proportion of mental health–related tweets before and after lockdown policies.
View this figure
Table 2. The impact of lockdown policies on public mental health.
MichiganMarch 24, 20200.0528<.001–0.0021.003–0.0214.
North CarolinaMarch 30, 20200.0461<.001–0.0015.04–0.0228.160.0017.082.509.08
OhioMarch 23, 20200.0429<.001–0.0013.03–0.0117.390.0012.142.078.13
PennsylvaniaApril 1, 20200.0254<.0010.0002.630.0288.007–0.0012.043.033.046

aTime: a continuous variable encoding the number of days in the research period (15 days before and after lockdown).

bPolicy: a binary variable, encoded as 0 before the lockdown policy and 1 after the policy.

cTime*policy: the interaction term of time and policy.

Principal Findings

We investigated public mental status for 2 and a half years since the beginning of the pandemic by analyzing topics of Twitter discussions, examining potential differences between health care workers and the general population, and studying the impacts of statewide lockdown policies. We found that anxiety and depression problems were frequently mentioned on Twitter during the study period, and the proportion of insomnia discussions increased continuously. The content analysis of mental health–related tweets revealed potential reasons: control measures, economic collapse, pressure from unemployment, and so on. Based on Twitter mentions, we found that all 4 mental health problems studied in this paper (addiction, anxiety, depression, and insomnia) were significantly more prevalent among health care workers than the general population. Finally, lockdown policies had different influences on public mental health status in different states. Among the 12 states studied, the negative effect of lockdown policies on public mental health was significant in Pennsylvania but not the other states.

Comparison to Prior Works

Consistent with research on similar topics, we found that COVID-19 has severely impacted public mental health and has dynamic influences on public mental health [30,42]. In addition, we found that the proportion of anxiety-related tweets increased to a substantial peak in March 2020 and remained low but stable for several months. A possible explanation is that the outbreak of COVID-19 caused various social problems, such as the shortage of necessities and unemployment, in the initial stage. These problems raised an intense but temporal public fear. As the pandemic continued, public concerns fell to normal as the early-stage issues were mitigated. Another possible explanation is that public emotional response diminishes as the pandemic intensifies, which is consistent with findings from Dyer and Kolic [43]. The remaining 2 peaks of anxiety-related tweets occurred during the presidential election (November 2020) and the fuel price surge (September 2021). The proportion of insomnia also increased during the study period. This observation is consistent with Shi et al [44], who reported an incremental prevalence of insomnia in the follow-up period (from July 8 to August 8, 2020) than the baseline period (from February 28 to March 11, 2020).

The topic analysis shows that the public was concerned about the pandemic, its prevention, and the economic and educational problems caused by COVID-19. Topics such as “social distancing,” “test results,” “world pandemic,” “COVID-19 news,” and “economic collapse” were both observed in our work and previous studies [32,45-49], which only analyzed tweets during the early stage of the pandemic (mainly from January to August 2020). Our study found 2 additional topics through a longer study period: “fuel problems” and “students’ pressure.” These topics correspond to the literature and observations: students (especially children and adolescents) are more vulnerable to psychological disorders [50], and fuel prices frequently fluctuated during COVID-19 [51].

Unlike previous studies that only compare the prevalence of mental health symptoms between health care workers and the general population [52], we also analyzed the topics they focused on. We confirmed that health care workers were more concerned by all the studied mental problems: anxiety, depression, insomnia, and addiction. Particularly, higher proportions of insomnia among health care workers have been extensively reported in the literature [53-57]. These increased problems may be attributed to higher risks of infection [15] and more intense environmental pressure (eg, increased workload, lack of medical supplies, etc) that they face. Health care professionals were more focused on discussing the virus and more interested in sharing news or experiences related to the pandemic, demonstrating a high level of concern about the pandemic, which may be associated with an increased rate of mental disorders.

Lockdown policies had various effects on mental health discussions across US states. In Pennsylvania, it showed a positive association with mental health discussions. However, an opposite association was observed in Michigan, North Carolina, and Ohio. The literature also suggests geographically different associations between local lockdown policies and public mental health. For example, Mittal et al [58] found that most Twitter users shared positive opinions toward lockdown policies in related tweets from March 22 to April 6, 2020, whereas another study focusing on Twitter users in Massachusetts found increased anxiety expression after the enforcement of the Massachusetts State of Emergency and US State of Emergency [59]. Notably, Wang et al [60] found that public sentiment toward lockdown policies was positive in most states (such as Michigan, North Carolina, and Pennsylvania) and negative in only a few states, including Ohio, which also demonstrates geographic variations of public reactions to lockdown policies.

Strengths and Limitations

Previous work on the same topic has either not focused on the subtypes of mental health problems or studied them over short periods. Our work fills these research gaps by focusing on more granular types of mental health problems over a more extended study period. We built a comprehensive pipeline, including temporal, geographic, and discussion topic analyses; comparisons of trends and topics of concern between groups; and the impact of lockdown policies. On top of the analyses, we released the code and contributed 2 lexicons that can be used to identify mental health issues and health care professionals from tweets.

We also acknowledge the following limitations. First, the evaluation of public mental health on social media is inevitably biased due to the underlying population distribution of social media users. For example, older adults and people with low socioeconomic status may have less access to social media. As a result, this study may not reflect accurate attributes of such subpopulations. However, given the sheer number of people on Twitter, the results of this study are helpful and valuable in tracking public mental health during the pandemic. Additionally, future work could consider sampling according to users’ age to avoid this problem. Second, professional psychologists must make precise diagnoses of mental health problems following official heuristics. Therefore, identifying patients using lexicons based on their tweets can introduce false cases. To validate the reliability of the lexicon, we had professional psychiatrists curate the lexicon based on sampled tweets. Third, tweets that contain keywords do not always reflect the user’s mental health status as they can instead be comments on the news or from other people. To reduce this noise, we removed tweets containing URLs in our preprocessing step, as these tweets were usually summarizations or quotes of different information sources.

Future Work

The proposed pipeline can be applied to study other public mental health problems, such as suicidal thoughts, posttraumatic stress disorder, paranoia, and so on. It can also be applied to studying characteristics of other cohorts, such as sex minority groups, college students, etc. Regarding the analyses, more data sources (eg, surveys and interviews) could be introduced to validate the conclusions of this research.


This study developed a comprehensive pipeline to use social media for tracking and analyzing public mental status during a pandemic. It also contributed 2 lexicons that could be used in future studies. We found that the impact of COVID-19 and the corresponding control measures on the public’s mental status is dynamic and shows variability among different cohorts regarding disease types, occupations, and regional groups. Health agencies and policy makers should primarily focus on depression (reported by 51.3% of the tweets) and insomnia (which has had an ever-increasing trend since the beginning of the pandemic), especially among health care workers. Our approach works efficiently, especially when primary studies and large-scale surveys are difficult to conduct. It can be extended to track the mental status of other cohorts (eg, sex minority groups and adolescents) or during different pandemic periods.


JY was partially supported by the Key Laboratory of Intelligent Preventive Medicine of Zhejiang Province (2020E10004). The funders had no role in the design and conduct of the study.

Data Availability

The data and code supporting the study’s findings are available at

Authors' Contributions

ML and JY designed the study and drafted the manuscript. YH prepared the data, provided feedback on the study design, and helped draft and revise the manuscript. ML performed data and statistical analysis. YL and LW built the lexicon of mental health keywords. YL, LZ, and XL provided critical reviews. All authors reviewed the manuscript. ML takes responsibility for the integrity of the work.

Conflicts of Interest

None declared.

Multimedia Appendix 1

Supplementary methods, pictures, and tables.

DOCX File , 1138 KB

Multimedia Appendix 2

The proportion and 95% CIs of mental health–related tweets in each state by month.

XLSX File (Microsoft Excel File), 25 KB

  1. Zhu N, Zhang D, Wang W, Li X, Yang B, Song J, China Novel Coronavirus Investigating and Research Team. A novel coronavirus from patients with pneumonia in China, 2019. N Engl J Med 2020 Feb 20;382(8):727-733 [FREE Full text] [CrossRef] [Medline]
  2. Moreno C, Wykes T, Galderisi S, Nordentoft M, Crossley N, Jones N, et al. How mental health care should change as a consequence of the COVID-19 pandemic. Lancet Psychiatry 2020 Sep;7(9):813-824 [FREE Full text] [CrossRef] [Medline]
  3. Vigo D, Patten S, Pajer K, Krausz M, Taylor S, Rush B, et al. Mental health of communities during the COVID-19 pandemic. Can J Psychiatry 2020 Oct;65(10):681-687 [FREE Full text] [CrossRef] [Medline]
  4. Wang Y, Shi L, Que J, Lu Q, Liu L, Lu Z, et al. The impact of quarantine on mental health status among general population in China during the COVID-19 pandemic. Mol Psychiatry 2021 Sep;26(9):4813-4822 [FREE Full text] [CrossRef] [Medline]
  5. Xin M, Luo S, She R, Yu Y, Li L, Wang S, et al. Negative cognitive and psychological correlates of mandatory quarantine during the initial COVID-19 outbreak in China. Am Psychol 2020;75(5):607-617. [CrossRef] [Medline]
  6. Witteveen D, Velthorst E. Economic hardship and mental health complaints during COVID-19. Proc Natl Acad Sci U S A 2020 Nov 03;117(44):27277-27284 [FREE Full text] [CrossRef] [Medline]
  7. Golberstein E, Wen H, Miller BF. Coronavirus disease 2019 (COVID-19) and mental health for children and adolescents. JAMA Pediatr 2020 Sep 01;174(9):819-820. [CrossRef] [Medline]
  8. Leeb RT, Bitsko RH, Radhakrishnan L, Martinez P, Njai R, Holland KM. MMWR Morb Mortal Wkly Rep 2020 Nov 13;69(45):1675-1680 [FREE Full text] [CrossRef] [Medline]
  9. Copeland WE, McGinnis E, Bai Y, Adams Z, Nardone H, Devadanam V, et al. Impact of COVID-19 pandemic on college student mental health and wellness. J Am Acad Child Adolesc Psychiatry 2021 Jan;60(1):134-141.e2 [FREE Full text] [CrossRef] [Medline]
  10. Wang X, Hegde S, Son C, Keller B, Smith A, Sasangohar F. Investigating mental health of US college students during the COVID-19 pandemic: cross-sectional survey study. J Med Internet Res 2020 Sep 17;22(9):e22817 [FREE Full text] [CrossRef] [Medline]
  11. Naidu SB, Shah AJ, Saigal A, Smith C, Brill SE, Goldring J, et al. The high mental health burden of "Long COVID" and its association with on-going physical and respiratory symptoms in all adults discharged from hospital. Eur Respir J 2021 Jun;57(6):2004364 [FREE Full text] [CrossRef] [Medline]
  12. Lin K, Yang BX, Luo D, Liu Q, Ma S, Huang R, et al. The mental health effects of COVID-19 on health care providers in China. Am J Psychiatry 2020 Jul 01;177(7):635-636. [CrossRef] [Medline]
  13. Bryant-Genevier J, Rao CY, Lopes-Cardozo B, Kone A, Rose C, Thomas I, et al. Symptoms of depression, anxiety, post-traumatic stress disorder, and suicidal ideation among state, tribal, local, and territorial public health workers during the COVID-19 pandemic - United States, March-April 2021. MMWR Morb Mortal Wkly Rep 2021 Dec 03;70(48):1680-1685 [FREE Full text] [CrossRef] [Medline]
  14. Firew T, Sano ED, Lee JW, Flores S, Lang K, Salman K, et al. Protecting the front line: a cross-sectional survey analysis of the occupational factors contributing to healthcare workers' infection and psychological distress during the COVID-19 pandemic in the USA. BMJ Open 2020 Oct 21;10(10):e042752 [FREE Full text] [CrossRef] [Medline]
  15. Rudberg AS, Havervall S, Månberg A, Jernbom Falk A, Aguilera K, Ng H, et al. SARS-CoV-2 exposure, symptoms and seroprevalence in healthcare workers in Sweden. Nat Commun 2020 Oct 08;11(1):5064 [FREE Full text] [CrossRef] [Medline]
  16. Manzano García G, Ayala Calvo JC. The threat of COVID-19 and its influence on nursing staff burnout. J Adv Nurs 2021 Feb;77(2):832-844. [CrossRef] [Medline]
  17. Amin F, Sharif S, Saeed R, Durrani N, Jilani D. COVID-19 pandemic- knowledge, perception, anxiety and depression among frontline doctors of Pakistan. BMC Psychiatry 2020 Sep 23;20(1):459 [FREE Full text] [CrossRef] [Medline]
  18. Chew NWS, Lee GKH, Tan BYQ, Jing M, Goh Y, Ngiam NJH, et al. A multinational, multicentre study on the psychological outcomes and associated physical symptoms amongst healthcare workers during COVID-19 outbreak. Brain Behav Immun 2020 Aug;88:559-565 [FREE Full text] [CrossRef] [Medline]
  19. Pappa S, Ntella V, Giannakas T, Giannakoulis VG, Papoutsi E, Katsaounou P. Prevalence of depression, anxiety, and insomnia among healthcare workers during the COVID-19 pandemic: a systematic review and meta-analysis. Brain Behav Immun 2020 Aug;88:901-907 [FREE Full text] [CrossRef] [Medline]
  20. Rimmer A. COVID-19: drop the hero narrative and support doctors' mental health, says charity. BMJ 2021 Feb 04;372:n337. [CrossRef] [Medline]
  21. Rimmer A. COVID-19: Two fifths of doctors say pandemic has worsened their mental health. BMJ 2020 Oct 27;371:m4148. [CrossRef] [Medline]
  22. Chew C, Eysenbach G. Pandemics in the age of Twitter: content analysis of Tweets during the 2009 H1N1 outbreak. PLoS One 2010 Nov 29;5(11):e14118 [FREE Full text] [CrossRef] [Medline]
  23. Masri S, Jia J, Li C, Zhou G, Lee M, Yan G, et al. Use of Twitter data to improve Zika virus surveillance in the United States during the 2016 epidemic. BMC Public Health 2019 Jun 14;19(1):761 [FREE Full text] [CrossRef] [Medline]
  24. Zhang C, Yu MC, Marin S. Exploring public sentiment on enforced remote work during COVID-19. J Appl Psychol 2021 Jun;106(6):797-810. [CrossRef] [Medline]
  25. Xie Z, Wang X, Jiang Y, Chen Y, Huang S, Ma H, et al. Public perception of COVID-19 vaccines on Twitter in the United States. medRxiv Preprint posted online on October 18, 2021 [FREE Full text] [CrossRef] [Medline]
  26. Melton CA, Olusanya OA, Ammar N, Shaban-Nejad A. Public sentiment analysis and topic modeling regarding COVID-19 vaccines on the Reddit social media platform: a call to action for strengthening vaccine confidence. J Infect Public Health 2021 Oct;14(10):1505-1512 [FREE Full text] [CrossRef] [Medline]
  27. Hua Y, Jiang H, Lin S, Yang J, Plasek J, Bates D, et al. Using Twitter data to understand public perceptions of approved versus off-label use for COVID-19-related medications. J Am Med Inform Assoc 2022 Sep 12;29(10):1668-1678 [FREE Full text] [CrossRef] [Medline]
  28. Sanders AC, White RC, Severson LS, Ma R, McQueen R, Alcântara Paulo HC, et al. Unmasking the conversation on masks: natural language processing for topical sentiment analysis of COVID-19 Twitter discourse. AMIA Jt Summits Transl Sci Proc 2021;2021:555-564 [FREE Full text] [Medline]
  29. Berry N, Lobban F, Belousov M, Emsley R, Nenadic G, Bucci S. #WhyWeTweetMH: understanding why people use Twitter to discuss mental health problems. J Med Internet Res 2017 Apr 05;19(4):e107 [FREE Full text] [CrossRef] [Medline]
  30. Zhang S, Sun L, Zhang D, Li P, Liu Y, Anand A, et al. The COVID-19 pandemic and mental health concerns on Twitter in the United States. Health Data Sci 2022 Feb 17;2022:1-9. [CrossRef]
  31. Zhang Y, Lyu H, Liu Y, Zhang X, Wang Y, Luo J. Monitoring depression trends on Twitter during the COVID-19 pandemic: observational study. JMIR Infodemiology 2021 Jul 16;1(1):e26769 [FREE Full text] [CrossRef] [Medline]
  32. Xue J, Chen J, Hu R, Chen C, Zheng C, Su Y, et al. Twitter discussions and emotions about the COVID-19 pandemic: machine learning approach. J Med Internet Res 2020 Nov 25;22(11):e20550 [FREE Full text] [CrossRef] [Medline]
  33. Koh JX, Liew TM. How loneliness is talked about in social media during COVID-19 pandemic: text mining of 4,492 Twitter feeds. J Psychiatr Res 2022 Jan;145:317-324 [FREE Full text] [CrossRef] [Medline]
  34. Das A, Singh P, Bruckner TA. State lockdown policies, mental health symptoms, and using substances. Addict Behav 2022 Jan;124:107084 [FREE Full text] [CrossRef] [Medline]
  35. Adams-Prassl A, Boneva T, Golin M, Rauh C. The impact of the coronavirus lockdown on mental healthvidence from the United States. Econ Policy 2022 Jan 09;37(109):139-155. [CrossRef]
  36. Chen E, Lerman K, Ferrara E. Tracking social media discourse about the COVID-19 pandemic: development of a public coronavirus Twitter data set. JMIR Public Health Surveill 2020 May 29;6(2):e19273 [FREE Full text] [CrossRef] [Medline]
  37. Newman D, Lau JH, Grieser K, Baldwin T. Automatic evaluation of topic coherence. 2010 Jun Presented at: Human Language Technologies: The 2010 Annual Conference of the North American Chapter of the Association for Computational Linguistics; June 2-4, 2010; Los Angeles, CA p. 100-108   URL:
  38. Bernal JL, Cummins S, Gasparrini A. Interrupted time series regression for the evaluation of public health interventions: a tutorial. Int J Epidemiol 2017 Feb 01;46(1):348-355 [FREE Full text] [CrossRef] [Medline]
  39. Blei DM, Ng AY, Jordan MI. Latent Dirichlet allocation. J Mach Learn Res 2003 Jan 03;3:993-1022 [FREE Full text]
  40. Rehurek R, Sojka P. Software framework for topic modelling with large corpora. 2010 Presented at: LREC 2010: New Challenges for NLP Frameworks; May 22, 2010; Valletta, Malta p. 46-50   URL:
  41. Biglan A, Ary D, Wagenaar A. The value of interrupted time-series experiments for community intervention research. Prev Sci 2000 Mar;1(1):31-49 [FREE Full text] [CrossRef] [Medline]
  42. Valdez D, ten Thij M, Bathina K, Rutter LA, Bollen J. Social media insights into US mental health during the COVID-19 pandemic: longitudinal analysis of Twitter data. J Med Internet Res 2020 Dec 14;22(12):e21418 [FREE Full text] [CrossRef] [Medline]
  43. Dyer J, Kolic B. Public risk perception and emotion on Twitter during the COVID-19 pandemic. Appl Netw Sci 2020 Dec 16;5(1):99 [FREE Full text] [CrossRef] [Medline]
  44. Shi L, Lu Z, Que J, Huang X, Lu Q, Liu L, et al. Long-term impact of COVID-19 on mental health among the general public: a nationwide longitudinal study in China. Int J Environ Res Public Health 2021 Aug 20;18(16):8790 [FREE Full text] [CrossRef] [Medline]
  45. Li S, Wang Y, Xue J, Zhao N, Zhu T. The impact of COVID-19 epidemic declaration on psychological consequences: a study on active Weibo users. Int J Environ Res Public Health 2020 Mar 19;17(6):2032 [FREE Full text] [CrossRef] [Medline]
  46. Xue J, Chen J, Chen C, Zheng C, Li S, Zhu T. Public discourse and sentiment during the COVID 19 pandemic: using Latent Dirichlet Allocation for topic modeling on Twitter. PLoS One 2020 Sep 25;15(9):e0239441 [FREE Full text] [CrossRef] [Medline]
  47. Abd-Alrazaq A, Alhuwail D, Househ M, Hamdi M, Shah Z. Top concerns of tweeters during the COVID-19 pandemic: infoveillance study. J Med Internet Res 2020 Apr 21;22(4):e19016 [FREE Full text] [CrossRef] [Medline]
  48. Chandrasekaran R, Mehta V, Valkunde T, Moustakas E. Topics, trends, and sentiments of tweets about the COVID-19 pandemic: temporal infoveillance study. J Med Internet Res 2020 Oct 23;22(10):e22624 [FREE Full text] [CrossRef] [Medline]
  49. Kwon S, Park A. Understanding user responses to the COVID-19 pandemic on Twitter from a terror management theory perspective: cultural differences among the US, UK and India. Comput Human Behav 2022 Mar;128:107087 [FREE Full text] [CrossRef] [Medline]
  50. Singh S, Roy D, Sinha K, Parveen S, Sharma G, Joshi G. Impact of COVID-19 and lockdown on mental health of children and adolescents: a narrative review with recommendations. Psychiatry Res 2020 Nov;293:113429 [FREE Full text] [CrossRef] [Medline]
  51. Weekly retail gasoline and diesel prices. U.S. Energy Information Administration.   URL: [accessed 2022-10-05]
  52. Sakib N, Akter T, Zohra F, Bhuiyan AKMI, Mamun MA, Griffiths MD. Fear of COVID-19 and depression: a comparative study among the general population and healthcare professionals during COVID-19 pandemic crisis in Bangladesh. Int J Ment Health Addict 2021 Feb 19:1-17 [FREE Full text] [CrossRef] [Medline]
  53. Huang Y, Zhao N. Generalized anxiety disorder, depressive symptoms and sleep quality during COVID-19 outbreak in China: a web-based cross-sectional survey. Psychiatry Res 2020 Jun;288:112954 [FREE Full text] [CrossRef] [Medline]
  54. Li Y, Chen B, Hong Z, Sun Q, Dai Y, Basta M, et al. Insomnia symptoms during the early and late stages of the COVID-19 pandemic in China: a systematic review and meta-analysis. Sleep Med 2022 Mar;91:262-272 [FREE Full text] [CrossRef] [Medline]
  55. Wu T, Jia X, Shi H, Niu J, Yin X, Xie J, et al. Prevalence of mental health problems during the COVID-19 pandemic: a systematic review and meta-analysis. J Affect Disord 2021 Feb 15;281:91-98 [FREE Full text] [CrossRef] [Medline]
  56. Cénat JM, Blais-Rochette C, Kokou-Kpolou CK, Noorishad P, Mukunzi JN, McIntee S, et al. Prevalence of symptoms of depression, anxiety, insomnia, posttraumatic stress disorder, and psychological distress among populations affected by the COVID-19 pandemic: a systematic review and meta-analysis. Psychiatry Res 2021 Jan;295:113599 [FREE Full text] [CrossRef] [Medline]
  57. Jahrami H, BaHammam AS, Bragazzi NL, Saif Z, Faris M, Vitiello MV. Sleep problems during the COVID-19 pandemic by population: a systematic review and meta-analysis. J Clin Sleep Med 2021 Feb 01;17(2):299-313 [FREE Full text] [CrossRef] [Medline]
  58. Mittal R, Ahmed W, Mittal A, Aggarwal I. Twitter users’ coping behaviors during the COVID-19 lockdown: an analysis of tweets using mixed methods. Inf Discov Deliv 2021 May 15;49(3):193-202. [CrossRef]
  59. Thorpe Huerta D, Hawkins JB, Brownstein JS, Hswen Y. Exploring discussions of health and risk and public sentiment in Massachusetts during COVID-19 pandemic mandate implementation: a Twitter analysis. SSM Popul Health 2021 Sep;15:100851 [FREE Full text] [CrossRef] [Medline]
  60. Wang J, Fan Y, Palacios J, Chai Y, Guetta-Jeanrenaud N, Obradovich N, et al. Global evidence of expressed sentiment alterations during the COVID-19 pandemic. Nat Hum Behav 2022 Mar;6(3):349-358. [CrossRef] [Medline]

Edited by T Leung; submitted 18.05.22; peer-reviewed by A Pal, J Ruiyu; comments to author 15.06.22; revised version received 21.07.22; accepted 30.09.22; published 13.10.22


©Minghui Li, Yining Hua, Yanhui Liao, Li Zhou, Xue Li, Ling Wang, Jie Yang. Originally published in the Journal of Medical Internet Research (, 13.10.2022.

This is an open-access article distributed under the terms of the Creative Commons Attribution License (, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in the Journal of Medical Internet Research, is properly cited. The complete bibliographic information, a link to the original publication on, as well as this copyright and license information must be included.