Predicting Sign of Depression via Using Frozen Pre-trained Models and Random Forest Classifier

Hassan Alhuzali, Tianlin Zhang, Sophia Ananiadou

Introduction

Detecting early signs of depression through social media is a critical yet challenging task in Natural Language Processing (NLP). While social platforms offer a real-time window into a user's mental state, mapping linguistic patterns to specific psychological disorders requires sophisticated modeling. Researchers from the University of Manchester addressed this in the CLEF e-risk 2021 shared task (T3), which involves predicting depression severity based on Reddit post history. The objective is to estimate answers to the Beck’s Depression Inventory (BDI), a 21-question clinical tool used to measure depression intensity.

Methodology

The researchers proposed a pipeline using frozen pre-trained language models (PLMs) as feature extractors, avoiding the computational cost and potential overfitting associated with fine-tuning on small datasets.

Model architecture showing the feature extraction and classification pipeline.

The architecture consists of four primary stages:

  1. Concatenation: All Reddit posts from a single user are merged into a continuous sequence.
  2. Feature Extraction: The text is processed by a frozen encoder. Three models were evaluated: ELMo (character-based bi-LSTM), BERT (transformer-based), and SpanEmo (specialized for multi-label emotion classification).
  3. Pooling: Mean pooling is applied across all tokens to create a fixed-length vector representation of the user.
  4. Classification: This vector serves as input to a Random Forest classifier, which predicts the 21 BDI responses.

Dataset and Experimental Setup

The study utilized Reddit data from the CLEF e-risk organizers, combining sets from 2019 and 2020 for training/validation and the 2021 set for testing. The training set comprised 72 subjects (~35,000 posts), while the test set included 80 subjects (~30,000 posts). Ground-truth labels were derived from users' actual BDI questionnaire results, categorized into minimal, mild, moderate, or severe depression.

Key Insights

  • Domain Specificity: SpanEmo consistently outperformed BERT and ELMo. Its pre-training on emotion-related data makes its features more relevant to the affective signals characteristic of depression.
  • The "Frozen" Advantage: For small datasets (N=72), keeping model weights fixed prevents the overfitting often seen during full fine-tuning.
  • Layer Sensitivity: Analysis revealed that internal representations vary in utility; for SpanEmo, the 9th layer yielded the most effective features for depression detection.
  • Multi-Task Learning Challenges: Attempting to predict all 21 BDI questions with a single multi-task model performed worse than separate classifiers, likely due to data scarcity and the lack of temporal modeling.

Results

The system's performance was measured using the Average Hit Rate (AHR) and the Depression Category Hit Rate (DCHR).

Performance comparison of frozen pre-trained models against the competition baseline.

As shown in the results table, the SpanEmo-Encoder-Frzn configuration achieved the highest AHR among the tested frozen models (32.86%). Notably, while the competition's top-ranked system (DUTH_ATHENA) had a higher AHR (35.36%), the proposed SpanEmo model significantly outperformed it in DCHR (22.50% vs. 15.00%), indicating superior accuracy in identifying the overall clinical severity category.

Conclusion and Future Work

The study demonstrates that emotion-aware frozen models provide a robust and efficient baseline for mental health detection. However, limitations remain, particularly regarding the small sample size and the "bag-of-posts" approach. Future research will focus on incorporating temporal dynamics to capture how a user's linguistic patterns shift over time, which is a hallmark of depressive episodes.

Summary updated

BibTeX
@inproceedings{alhuzali2021predicting,
  author = {Hassan Alhuzali and Tianlin Zhang and Sophia Ananiadou},
  title = {{Predicting Sign of Depression via Using Frozen Pre-trained Models and Random Forest Classifier}},
  booktitle = {CLEF (Working Notes)},
  year = {2021},
}
Figure