Cargando…
Sentiments about Mental Health on Twitter—Before and during the COVID-19 Pandemic
During the COVID-19 pandemic, the novel coronavirus had an impact not only on public health but also on the mental health of the population. Public sentiment on mental health and depression is often captured only in small, survey-based studies, while work based on Twitter data often only looks at th...
Autores principales: | , , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
MDPI
2023
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10647444/ https://www.ncbi.nlm.nih.gov/pubmed/37958038 http://dx.doi.org/10.3390/healthcare11212893 |
_version_ | 1785135108642045952 |
---|---|
author | Beierle, Felix Pryss, Rüdiger Aizawa, Akiko |
author_facet | Beierle, Felix Pryss, Rüdiger Aizawa, Akiko |
author_sort | Beierle, Felix |
collection | PubMed |
description | During the COVID-19 pandemic, the novel coronavirus had an impact not only on public health but also on the mental health of the population. Public sentiment on mental health and depression is often captured only in small, survey-based studies, while work based on Twitter data often only looks at the period during the pandemic and does not make comparisons with the pre-pandemic situation. We collected tweets that included the hashtags #MentalHealth and #Depression from before and during the pandemic (8.5 months each). We used LDA (Latent Dirichlet Allocation) for topic modeling and LIWC, VADER, and NRC for sentiment analysis. We used three machine-learning classifiers to seek evidence regarding an automatically detectable change in tweets before vs. during the pandemic: (1) based on TF-IDF values, (2) based on the values from the sentiment libraries, (3) based on tweet content (deep-learning BERT classifier). Topic modeling revealed that Twitter users who explicitly used the hashtags #Depression and especially #MentalHealth did so to raise awareness. We observed an overall positive sentiment, and in tough times such as during the COVID-19 pandemic, tweets with #MentalHealth were often associated with gratitude. Among the three classification approaches, the BERT classifier showed the best performance, with an accuracy of 81% for #MentalHealth and 79% for #Depression. Although the data may have come from users familiar with mental health, these findings can help gauge public sentiment on the topic. The combination of (1) sentiment analysis, (2) topic modeling, and (3) tweet classification with machine learning proved useful in gaining comprehensive insight into public sentiment and could be applied to other data sources and topics. |
format | Online Article Text |
id | pubmed-10647444 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2023 |
publisher | MDPI |
record_format | MEDLINE/PubMed |
spelling | pubmed-106474442023-11-03 Sentiments about Mental Health on Twitter—Before and during the COVID-19 Pandemic Beierle, Felix Pryss, Rüdiger Aizawa, Akiko Healthcare (Basel) Article During the COVID-19 pandemic, the novel coronavirus had an impact not only on public health but also on the mental health of the population. Public sentiment on mental health and depression is often captured only in small, survey-based studies, while work based on Twitter data often only looks at the period during the pandemic and does not make comparisons with the pre-pandemic situation. We collected tweets that included the hashtags #MentalHealth and #Depression from before and during the pandemic (8.5 months each). We used LDA (Latent Dirichlet Allocation) for topic modeling and LIWC, VADER, and NRC for sentiment analysis. We used three machine-learning classifiers to seek evidence regarding an automatically detectable change in tweets before vs. during the pandemic: (1) based on TF-IDF values, (2) based on the values from the sentiment libraries, (3) based on tweet content (deep-learning BERT classifier). Topic modeling revealed that Twitter users who explicitly used the hashtags #Depression and especially #MentalHealth did so to raise awareness. We observed an overall positive sentiment, and in tough times such as during the COVID-19 pandemic, tweets with #MentalHealth were often associated with gratitude. Among the three classification approaches, the BERT classifier showed the best performance, with an accuracy of 81% for #MentalHealth and 79% for #Depression. Although the data may have come from users familiar with mental health, these findings can help gauge public sentiment on the topic. The combination of (1) sentiment analysis, (2) topic modeling, and (3) tweet classification with machine learning proved useful in gaining comprehensive insight into public sentiment and could be applied to other data sources and topics. MDPI 2023-11-03 /pmc/articles/PMC10647444/ /pubmed/37958038 http://dx.doi.org/10.3390/healthcare11212893 Text en © 2023 by the authors. https://creativecommons.org/licenses/by/4.0/Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/). |
spellingShingle | Article Beierle, Felix Pryss, Rüdiger Aizawa, Akiko Sentiments about Mental Health on Twitter—Before and during the COVID-19 Pandemic |
title | Sentiments about Mental Health on Twitter—Before and during the COVID-19 Pandemic |
title_full | Sentiments about Mental Health on Twitter—Before and during the COVID-19 Pandemic |
title_fullStr | Sentiments about Mental Health on Twitter—Before and during the COVID-19 Pandemic |
title_full_unstemmed | Sentiments about Mental Health on Twitter—Before and during the COVID-19 Pandemic |
title_short | Sentiments about Mental Health on Twitter—Before and during the COVID-19 Pandemic |
title_sort | sentiments about mental health on twitter—before and during the covid-19 pandemic |
topic | Article |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10647444/ https://www.ncbi.nlm.nih.gov/pubmed/37958038 http://dx.doi.org/10.3390/healthcare11212893 |
work_keys_str_mv | AT beierlefelix sentimentsaboutmentalhealthontwitterbeforeandduringthecovid19pandemic AT pryssrudiger sentimentsaboutmentalhealthontwitterbeforeandduringthecovid19pandemic AT aizawaakiko sentimentsaboutmentalhealthontwitterbeforeandduringthecovid19pandemic |