journal article Open Access Jun 21, 2024

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

Mathematics Vol. 12 No. 13 pp. 1926 · MDPI AG
View at Publisher Save 10.3390/math12131926
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.
Topics

No keywords indexed for this article. Browse by subject →

References
63
[1]
World Health Organization (2022, September 19). Mental Disorders. Available online: https://www.who.int/es/news-room/fact-sheets/detail/mental-disorders.
[2]
Informativa, H. (2018, January 30). Salud Mental En Adultos, INCyTU. 2018; Volume 52, pp. 1–4. Available online: https://www.foroconsultivo.org.mx/INCyTU/documentos/Completa/INCYTU_18-007.pdf.
[3]
Rottenberg "Emotions in Depression: What Do We Really Know?" Annu. Rev. Clin. Psychol. (2017) 10.1146/annurev-clinpsy-032816-045252
[4]
Berking "Emotion regulation predicts symptoms of depression over five years" Behav. Res. Ther. (2014) 10.1016/j.brat.2014.03.003
[5]
Suveg "Common and specific emotion-related predictors of anxious and depressive symptoms in youth" Child Psychiatry Hum. Dev. (2009) 10.1007/s10578-008-0121-x
[6]
Power "Basic and complex emotions in depression and anxiety" Clin. Psychol. Psychother. (2007) 10.1002/cpp.515
[7]
Stets, J. (2006). Handbook of Social Psychology, Springer.
[8]
Hussain "Exploring the dominant features of social media for depression detection" J. Inf. Sci. (2020) 10.1177/0165551519860469
[9]
Kim "A deep learning model for detecting mental illness from user content on social media" Sci. Rep. (2020) 10.1038/s41598-020-68764-y
[10]
Lavhare, J.N., and Kulkarni, M.A. (2021, January 4–6). Mental disorders detection using social networking sites. Proceedings of the 2021 Third International Conference on Intelligent Communication Technologies and Virtual Mobile Networks (ICICV 2021), Tirunelveli, India. 10.1109/icicv50876.2021.9388553
[11]
Natural Language Processing of Social Media as Screening for Suicide Risk

Glen Coppersmith, Ryan Leary, Patrick Crutchley et al.

Biomedical Informatics Insights 10.1177/1178222618792860
[12]
Methods in predictive techniques for mental health status on social media: a critical review

Stevie Chancellor, Munmun De Choudhury

npj Digital Medicine 2020 10.1038/s41746-020-0233-7
[13]
Ahmed "Cognitive emotions: Depression and anxiety in medical students and staff" J. Crit. Care (2009) 10.1016/j.jcrc.2009.06.003
[14]
Chan "Depressive symptoms and perceived competence among Chinese secondary school students in Hong Kong" J. Youth Adolesc. (1997) 10.1007/s10964-005-0004-4
[15]
Alghowinem, S.M., Gedeon, T., Goecke, R., Cohn, J., and Parker, G. (2020). Interpretation of Depression Detection Models via Feature Selection Methods. IEEE Trans. Affect. Comput. X, 1–18.
[16]
Detecting depression stigma on social media: A linguistic analysis

Ang Li, Dongdong Jiao, Tingshao Zhu

Journal of Affective Disorders 2018 10.1016/j.jad.2018.02.087
[17]
Skaik, R., and Inkpen, D. (2020). Using twitter social media for depression detection in the canadian population. ACM International Conference Proceeding Series, Association for Computing Machinery. 10.1145/3442536.3442553
[18]
Shah, F.M., Ahmed, F., Joy, S.K.S., Ahmed, S., Sadek, S., Shil, R., and Kabir, M.H. (2020, January 5–7). Early Depression Detection from Social Network Using Deep Learning Techniques. Proceedings of the 2020 IEEE Region 10 Symposium (TENSYMP 2020), Dhaka, Bangladesh. 10.1109/tensymp50017.2020.9231008
[19]
Nusrat, M.O., Shahzad, W., and Jamal, S.A. (2024). Multi Class Depression Detection Through Tweets using Artificial Intelligence. arXiv.
[20]
Biradar, A., and Totad, S.G. (2019). Detecting Depression in Social Media Posts Using Machine Learning, Springer. 10.1007/978-981-13-9187-3_64
[21]
Rao "MGL-CNN: A Hierarchical Posts Representations Model for Identifying Depressed Individuals in Online Forums" IEEE Access (2020) 10.1109/access.2020.2973737
[22]
Malviya, K., Roy, B., and Saritha, S.K. (2021, January 25–27). A Transformers Approach to Detect Depression in Social Media. Proceedings of the 2021 International Conference on Artificial Intelligence and Smart Systems (ICAIS 2021), Coimbatore, India. 10.1109/icais50930.2021.9395943
[23]
Yang "Fine-grained depression analysis based on Chinese micro-blog reviews" Inf. Process. Manag. (2021) 10.1016/j.ipm.2021.102681
[24]
Wang, X., Zhang, C., and Sun, L. (2013, January 7–10). An improved model for depression detection in micro-blog social network. Proceedings of the 2013 IEEE 13th International Conference on Data Mining Workshops (ICDMW 2013), Dallas, TX, USA. 10.1109/icdmw.2013.132
[25]
Stephen "Detecting the magnitude of depression in Twitter users using sentiment analysis" Int. J. Electr. Comput. Eng. (2019)
[26]
Big data analytics on social networks for real-time depression detection

Jitimon Angskun, Suda Tipprasert, Thara Angskun

Journal of Big Data 2022 10.1186/s40537-022-00622-2
[27]
Leis "Detecting Signs of Depression in Tweets in Spanish: Behavioral and Linguistic Analysis" J. Med. Internet Res. (2019) 10.2196/14199
[28]
Nadeem, M. (2016). Identifying Depression on Twitter. arXiv.
[29]
Alsagri "Machine learning-based approach for depression detection in twitter using content and activity features" IEICE Trans. Inf. Syst. (2020) 10.1587/transinf.2020edp7023
[30]
Arora, P., and Arora, P. (2019, January 7–9). Mining Twitter Data for Depression Detection. Proceedings of the 2019 International Conference on Signal Processing and Communication (ICSC), Noida, India. 10.1109/icsc45622.2019.8938353
[31]
Narynov "Dataset of depressive posts in Russian language collected from social media" Data Br. (2020) 10.1016/j.dib.2020.105195
[32]
Lin, C., Mei, J., and Leung, H. (2020, January 8–11). SenseMood: Depression Detection on Social Media. Proceedings of the 2020 International Conference on Multimedia Retrieval, Dublin, Ireland. 10.1145/3372278.3391932
[33]
Ricard "Exploring the Utility of Community-Generated Social Media Content for Detecting Depression: An Analytical Study on Instagram" J. Med. Internet Res. (2018) 10.2196/11817
[34]
Martínez-Castaño, R., Pichel, J.C., and Losada, D.E. (2020). A big data platform for real time analysis of signs of depression in social media. Int. J. Environ. Res. Public Health, 17. 10.3390/ijerph17134752
[35]
Safa, R., Bayat, P., and Moghtader, L. (2021). Automatic Detection of Depression Symptoms in Twitter Using Multimodal Analysis, Springer. 10.1007/s11227-021-04040-8
[36]
A textual-based featuring approach for depression detection using machine learning classifiers and social media texts

Raymond Chiong, Gregorius Satia Budhi, Sandeep Dhakal et al.

Computers in Biology and Medicine 10.1016/j.compbiomed.2021.104499
[37]
"A profile-based sentiment-aware approach for depression detection in social media" EPJ Data Sci. (2021) 10.1140/epjds/s13688-021-00309-3
[38]
Yang "A big data analytics framework for detecting user-level depression from social networks" Int. J. Inf. Manag. (2020) 10.1016/j.ijinfomgt.2020.102141
[39]
Plutchik "The nature of emotions: Human emotions have deep evolutionary roots, a fact that may explain their complexity and provide tools for clinical practice" Am. Sci. (2001) 10.1511/2001.28.344
[40]
Navarrete "Improving the affective analysis in texts: Automatic method to detect affective intensity in lexicons based on Plutchik’s wheel of emotions" Electron. Libr. (2019) 10.1108/el-11-2018-0219
[41]
Qi "Building a Plutchik’s Wheel Inspired Affective Model for Social Robots" J. Bionic Eng. (2019) 10.1007/s42235-019-0018-3
[42]
Chafale "Sentiment Analysis on Product Reviews Using Plutchik’s Wheel of Emotions with Fuzzy" Int. J. Eng. Technol. (2014)
[43]
Mondal, A., and Gokhale, S.S. (2020, January 14–16). Mining Emotions on Plutchik’s Wheel. Proceedings of the 2020 Seventh International Conference on Social Networks Analysis, Management and Security (SNAMS 2020), Paris, France. 10.1109/snams52053.2020.9336534
[44]
Plutchik "A psychoevolutionary theory of emotions" Soc. Sci. Inf. (1982) 10.1177/053901882021004003
[45]
Danner "Integrating patients’ views into health technology assessment: Analytic hierarchy process (AHP) as a method to elicit patient preferences" Int. J. Technol. Assess. Health Care (2011) 10.1017/s0266462311000523
[46]
Lin "Evaluation of machine selection by the AHP method" J. Mater. Process. Technol. (1996) 10.1016/0924-0136(95)02076-4
[47]
Improved AHP Method and Its Application in Risk Identification

Fengwei Li, Kok Kwang Phoon, Xiuli Du et al.

Journal of Construction Engineering and Management 2013 10.1061/(asce)co.1943-7862.0000605
[48]
"Selecting the appropriate project delivery method using AHP" Int. J. Proj. Manag. (2002) 10.1016/s0263-7863(01)00032-1
[49]
Podvezko "Application of AHP technique" J. Bus. Econ. Manag. (2009) 10.3846/1611-1699.2009.10.181-189
[50]
Decision making — the Analytic Hierarchy and Network Processes (AHP/ANP)

Thomas L. Saaty

Journal of Systems Science and Systems Engineering 2004 10.1007/s11518-006-0151-5

Showing 50 of 63 references