Mental-Health: An NLP-Based System for Detecting Depression Levels through User Comments on Twitter (X)

Rafael Salas-Zárate,Giner Alor-Hernández,Mario Andrés Paredes-Valverde,María del Pilar Salas-Zárate,Maritza Bustos-López,José Luis Sánchez-Cervantes
DOI: https://doi.org/10.3390/math12131926
IF: 2.4
2024-06-22
Mathematics
Abstract:The early detection of depression in a person is of great help to medical specialists since it allows for better treatment of the condition. Social networks are a promising data source for identifying individuals who are at risk for this mental disease, facilitating timely intervention and thereby improving public health. In this frame of reference, we propose an NLP-based system called Mental-Health for detecting users' depression levels through comments on X. Mental-Health is supported by a model comprising four stages: data extraction, preprocessing, emotion detection, and depression diagnosis. Using a natural language processing tool, the system correlates emotions detected in users' posts on X with the symptoms of depression and provides specialists with the depression levels of the patients. By using Mental-Health, we described a case study involving real patients, and the evaluation process was carried out by comparing the results obtained using Mental-Health with those obtained through the application of the PHQ-9 questionnaire. The system identifies moderately severe and moderate depression levels with good precision and recall, allowing us to infer the model's good performance and confirm that it is a promising option for mental health support.
mathematics
What problem does this paper attempt to address?
The paper aims to address the issue of detecting individual depression levels through user comments on social media. Specifically, the research team developed a natural language processing (NLP) based system named "Mental-Health" to identify depression levels by analyzing comments posted by Twitter users. Below is an overview of the core issues addressed by this study: 1. **Background and Motivation**: - Currently, mental health issues are becoming increasingly severe worldwide, especially depression, which has become one of the leading causes of disability. - Social media has become an important platform for individuals to express emotions and share experiences, providing a data source for identifying people who may suffer from mental illnesses. 2. **Research Objectives**: - Develop an NLP system capable of detecting depressive emotions from social media (specifically Twitter) user comments. - Establish a method that can not only determine whether a user is depressed but also diagnose the degree of depression (mild, moderate, severe, etc.). 3. **Technical Implementation**: - The system is based on four stages: data extraction, preprocessing, sentiment detection, and depression diagnosis. - Natural language processing tool MeaningCloud is used to identify emotions in the text and associate these emotions with depression symptoms to assess the user's depression level. 4. **Case Study**: - The paper describes a case study involving 20 real patients, 13 of whom have been diagnosed with depression, and 7 are non-depressed. - Patients were asked to post a tweet about their feelings every day for 2 weeks. The effectiveness of the system was validated by comparing the results of the Mental-Health system with the PHQ-9 questionnaire. 5. **Main Contributions**: - Proposed a multi-class classification model capable of identifying different levels of depression (rather than a simple binary classification). - Demonstrated the feasibility and accuracy of the system through an actual case study, indicating its potential application value in mental health support. In summary, the focus of this paper is on utilizing social media data and natural language processing technology to identify and assess individual depression levels, thereby providing auxiliary tools for medical professionals to better diagnose and treat depression patients.