journal article·2024Open access

Depression Intensity Classification from Tweets Using FastText Based Weighted Soft Voting Ensemble

Muhammad Rizwan, Muhammad Faheem Mushtaq, Maryam Rafiq, Arif Mehmood, Isabel de la Torre Diez, Monica Gracia Villar, Helena Garay, Imran Ashraf

Computers, Materials & Continua· Volume 78· Issue 2

Abstract

Predicting depression intensity from microblogs and social media posts has numerous benefits and applications, including predicting early psychological disorders and stress in individuals or the general public. A major challenge in predicting depression using social media posts is that the existing studies do not focus on predicting the intensity of depression in social media texts but rather only perform the binary classification of depression and moreover noisy data makes it difficult to predict the true depression in the social media text. This study intends to begin by collecting relevant Tweets and generating a corpus of 210000 public tweets using Twitter public application programming interfaces (APIs). A strategy is devised to filter out only depression-related tweets by creating a list of relevant hashtags to reduce noise in the corpus. Furthermore, an algorithm is developed to annotate the data into three depression classes: ‘Mild,’ ‘Moderate,’ and ‘Severe,’ based on International Classification of Diseases-10 (ICD-10) depression diagnostic criteria. Different baseline classifiers are applied to the annotated dataset to get a preliminary idea of classification performance on the corpus. Further FastText-based model is applied and fine-tuned with different preprocessing techniques and hyperparameter tuning to produce the tuned model, which significantly increases the depression classification performance to an 84% F1 score and 90% accuracy compared to baselines. Finally, a FastText-based weighted soft voting ensemble (WSVE) is proposed to boost the model’s performance by combining several other classifiers and assigning weights to individual models according to their individual performances. The proposed WSVE outperformed all baselines as well as FastText alone, with an F1 of 89%, 5% higher than FastText alone, and an accuracy of 93%, 3% higher than FastText alone. The proposed model better captures the contextual features of the relatively small sample class and aids in the detection of early depression intensity prediction from tweets with impactful performances.
Source: openalex_inverted_index · Quality: baseline

Research context

OpenAlex topics: Sentiment Analysis and Opinion Mining · Mental Health via Writing

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

References (44)

Show source-provided references
1. World Health Organization, “Depression.” [Online]. Available: https://www.who.int/news-room/fact-sheets/detail/depression (accessed on 05/08/2023)
2. A text classification framework for simple and effective early depression detection over social media streams10.1016/j.eswa.2019.05.023 ↗
3. World Health Organization, “Suicide data WEB.” [Online]. Available: https://www.who.int/teams/control-of-neglected-tropical-diseases/yaws/diagnosis-and-treatment/mental-health-and-substances-use (accessed on 11/06/2023)
4. Screening for pancreatic adenocarcinoma using signals from web search logs: Feasibility study and results10.1200/JOP.2015.010504 ↗
5. Measuring post traumatic stress disorder in Twitter
6. M. Nadeem, “Identifying depression on Twitter,” arXiv Prepr. arXiv:1607.07384, 2016.
7. Multi-task, multi-channel, multi-input learning for mental illness detection using social media text
8. Self-harm, suicidal behaviours, and cyberbullying in children and young people: Systematic review10.2196/jmir.9044 ↗
9. T. Tabak and M. Purver, “Temporal mental health dynamics on social media,” arXiv Prepr. arXiv:2008.13121, 2020.10.18653/v1/2020.nlpcovid19-2.7 ↗
10. Monitoring depression trends on twitter during the COVID-19 pandemic: Observational study10.2196/26769 ↗
11. N. Farruque, C. Huang, O. Zaiane, and R. Goebel, “Basic and depression specific emotion identification in tweets: Multi-label classification experiments,” arXiv Prepr. arXiv:2105.12364, 2021.
12. Deep learning for emotion analysis in Arabic tweets10.1186/s40537-021-00523-w ↗
13. Mental health surveillance over social media with digital cohorts
14. Social media addiction and mental health among university students during the COVID-19 pandemic in Indonesia
15. D. Mowery, C. Bryan, and M. Conway, “Feature studies to inform the classification of depressive symptoms from Twitter data for population health,” arXiv Prepr. arXiv:1701.08229, 2017.
16. Using social media to monitor mental health discussions—evidence from Twitter10.1093/jamia/ocw133 ↗
17. Detection of depression-related posts in reddit social media forum10.1109/ACCESS.2019.2909180 ↗
18. A machine learning approach predicts future risk to suicidal ideation from social media data10.1038/s41746-020-0287-6 ↗
19. Data mining approach to the detection of suicide in social media: A case study of Singapore
20. A novel co-training-based approach for the classification of mental illnesses using social media posts10.1109/ACCESS.2019.2953087 ↗
21. M. Trotzek, S. Koitka, and C. M. Friedrich, “Utilizing neural networks and linguistic metadata for early detection of depression indications in text sequences,” arXiv Prepr. arXiv:1804.07000, 2018.
22. Exploring the utility of community-generated social media content for detecting depression: An analytical study on Instagram10.2196/11817 ↗
23. Predicting depression tendency based on image, text and behavior data from instagram
24. Multi-kernel SVM based depression recognition using social media data10.1007/s13042-017-0697-1 ↗
25. Cross-domain depression detection via harvesting social media
26. Depression classification from tweets using small deep transfer learning language models10.1109/ACCESS.2022.3223049 ↗
27. Methods in predictive techniques for mental health status on social media: A critical review10.1038/s41746-020-0233-7 ↗
28. ICD-10 criteria for depression in general practice10.1016/S0165-0327(00)00268-8 ↗
29. M. Jim et al., “ICD-10 depression diagnostic criteria—general practice notebook,” Accessed: November 01, 2021. [Online]. Available: https://gpnotebook.com/simplepage.cfm?ID=x20091123152205182440
30. Methods in predictive techniques for mental health status on social media: A critical review10.1038/s41746-020-0233-7 ↗
31. Ethics of social media research: Common concerns and practical considerations10.1089/cyber.2012.0334 ↗
32. How people with dementia use twitter: A qualitative analysis10.1016/j.chb.2019.08.005 ↗
33. Personalized content extraction and text classification using effective web scraping techniques10.4018/IJWP.2019070103 ↗
34. Using Twitter to understand the COVID-19 experiences of people with dementia: Infodemiology study10.2196/26254 ↗
35. Understanding depressive symptoms and psychosocial stressors on Twitter: A corpus-based study10.2196/jmir.6895 ↗
36. Depressive moods of users portrayed in Twitter
37. Clustering and sentiment analysis on Twitter data
38. Twitter sentiment analysis on worldwide COVID-19 outbreaks10.24017/covid.8 ↗
39. Public sentiment analysis and topic modeling regarding COVID-19 vaccines on the Reddit social media platform: A call to action for strengthening vaccine confidence10.1016/j.jiph.2021.08.010 ↗
40. Spam comments prediction using stacking with ensemble learning
41. GBSVM: Sentiment classification from unstructured reviews using ensemble classifier10.3390/app10082788 ↗
42. A soft voting ensemble classifier for early prediction and diagnosis of occurrences of major adverse cardiovascular events for STEMI and NSTEMI during 2-year follow-up in patients with acute coronary syndrome10.1371/journal.pone.0249338 ↗
43. Medical sentiment analysis based on soft voting ensemble algorithm
44. A weighted voting classifier based on differential evolution