[Paper Review] Multi Class Depression Detection Through Tweets using Artificial Intelligence
This study proposes a multi-class depression detection system using BERT and explainable AI to classify five types of depression—bipolar, major, psychotic, atypical, and postpartum—from Twitter tweets. Leveraging lexicon-based labeling and fine-tuned BERT, the model achieved 96% accuracy, with explainable AI highlighting key depressive language in tweets for interpretability.
Depression is a significant issue nowadays. As per the World Health Organization (WHO), in 2023, over 280 million individuals are grappling with depression. This is a huge number; if not taken seriously, these numbers will increase rapidly. About 4.89 billion individuals are social media users. People express their feelings and emotions on platforms like Twitter, Facebook, Reddit, Instagram, etc. These platforms contain valuable information which can be used for research purposes. Considerable research has been conducted across various social media platforms. However, certain limitations persist in these endeavors. Particularly, previous studies were only focused on detecting depression and the intensity of depression in tweets. Also, there existed inaccuracies in dataset labeling. In this research work, five types of depression (Bipolar, major, psychotic, atypical, and postpartum) were predicted using tweets from the Twitter database based on lexicon labeling. Explainable AI was used to provide reasoning by highlighting the parts of tweets that represent type of depression. Bidirectional Encoder Representations from Transformers (BERT) was used for feature extraction and training. Machine learning and deep learning methodologies were used to train the model. The BERT model presented the most promising results, achieving an overall accuracy of 0.96.
Motivation & Objective
- To address the gap in multi-class depression detection on social media by classifying five distinct depression types from Twitter data.
- To improve accuracy and interpretability in depression detection by combining BERT with explainable AI (XAI) techniques.
- To construct a novel, publicly available dataset of ~23,000 labeled tweets for multi-class depression classification.
- To overcome limitations of prior single-class or binary depression detection models by enabling fine-grained classification.
- To provide actionable insights into depressive language patterns through model interpretability using LIME and SHAP.
Proposed method
- Collected and curated ~23,000 Twitter tweets, manually labeled for five depression types using clinical criteria and expert validation.
- Applied lexicon-based labeling to pre-annotate tweets for initial depression type classification.
- Fine-tuned the BERT model for sequence classification on the multi-class depression dataset.
- Trained and compared multiple machine learning models (e.g., Random Forest) and deep learning models (e.g., BERT) for classification.
- Employed LIME and SHAP for explainable AI (XAI), highlighting specific words or phrases in tweets that contributed to classification decisions.
- Used text preprocessing, sequence tokenization, and attention mechanisms in BERT to extract contextual representations for classification.
Experimental results
Research questions
- RQ1Can a deep learning model like BERT effectively classify five distinct types of depression from short, informal Twitter text?
- RQ2How does the performance of BERT compare to traditional machine learning models (e.g., Random Forest) in multi-class depression detection on social media?
- RQ3To what extent can explainable AI (XAI) techniques like LIME and SHAP provide interpretable and meaningful explanations for depression type predictions?
- RQ4What are the key linguistic markers in tweets that are most indicative of specific depression types, as identified by the model?
- RQ5How do dataset quality and labeling consistency affect the reliability and generalizability of depression detection models?
Key findings
- The BERT-based model achieved the highest overall accuracy of 96% in classifying five types of depression from tweets.
- The Random Forest classifier performed second-best with an accuracy of 94.7%, demonstrating strong performance among traditional ML models.
- Explainable AI techniques (LIME and SHAP) successfully highlighted specific words—such as 'bipolar' and 'disorder'—that contributed to the model’s prediction of bipolar depression.
- The model’s interpretability enabled clinicians and researchers to validate predictions by tracing decisions to specific linguistic cues in the text.
- The study identified shared linguistic features across depression types, suggesting overlapping symptom expressions that challenge fine-grained classification.
- Despite limitations in dataset size (~23,000 tweets), the model demonstrated high generalization potential, especially for major and postpartum depression.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.