Unmasking digital despair: A language model framework for predicting depression on social media
Xie, M.; He, H.; Xie, Z.
Show abstract
Depression is one of the most prevalent mental health disorders globally. Social media content can reflect emotional states, offering real-time signals of depressive symptoms. This study aimed to develop a deep learning model to predict depression using Twitter/X data, and to characterize potential causes of depression using a large language model (LLM). Twitter/X posts from April 20, 2023, to July 24, 2024, were obtained using the key phrase ("I" or "me") and "diagnosed with depression". After data cleaning and GPT-4o labelling, 2,275 depressive Twitter users, and an additional 1,661 non-depressive users from tweets using the keyword "today", were identified. A deep learning RoBERTa model for predicting depression was built on tweets from both user groups, with an 80/20 training-testing split. GPT-4o models were subsequently employed to analyze depressive users posts to understand potential causes for depression. The RoBERTa model achieved strong performance in predicting depression among Twitter users from their tweets, with an accuracy of 0.822, an F1 score of 0.855, and an AUC of 0.809. Common reasons for depression identified by GPT-4o models included societal pressure, low self-esteem, cultural influences, and identity-related challenges. These findings highlight the potential of deep learning models in early screening of depression using social media data. Insights into potential reasons for depression may inform targeted prevention strategies, public health interventions, and improved mental health support for at-risk populations.
Matching journals
The top 7 journals account for 50% of the predicted probability mass.
Similar papers in this journal
Similar papers in this journal
- The prevalence, incidence and risk factors of mental health problems and mental health services use before and 9 months after the COVID-19 outbreak among the general Dutch population. A 3-wave prospective study 90%
- Generalized anxiety disorder, depressive symptoms and sleep quality during COVID-19 epidemic in China: a web-based cross-sectional survey 90%
- Integrating Expert Knowledge into Large Language Models Improves Performance for Psychiatric Reasoning and Diagnosis 90%
Similar papers in this journal
- Machine Learning Models Predict the Emergence of Depression in Argentinean College Students during Periods of COVID-19 Quarantine 92%
- Use of the Internet and digital devices among people with severe mental ill health during the COVID-19 pandemic restrictions 91%
- Understanding Psychiatric Illness Through Natural Language Processing (UNDERPIN): Rationale, Design, and Methodology 91%
Similar papers in this journal
- Development and use analysis of ‘gestioemocional.cat’, a web app for promoting emotional self-care and access to professional mental health resources during the covid-19 pandemic 91%
- Development of the NeuroFlow Severity Score and Comparison With Validated Measures for Depression and Anxiety 89%
- Evaluating the Clinical Feasibility of an Artificial Intelligence-Powered Clinical Decision Support System: A Longitudinal Feasibility Study 89%
Similar papers in this journal
- Abusers indoors and coronavirus outside: an examination of public discourse about COVID-19 and family violence on Twitter using machine learning 92%
- Developing an automatic system for classifying chatter about health services from Twitter: A case study for Medicaid 91%
- Social networking service, patient-generated health data, and population health informatics: patterns and implications for using digital technologies to support mental health 91%
"Similar papers" are the closest papers from that journal in the model's embedding space. They show what the match is built on, but the ranking comes mostly from a classifier over the whole training set, not from these examples alone.