betaFeedback

WorksComputer Science

Topic-Aware Multi-Task Mental Health Classification with Active Learning-Based Stepwise Relabeling for Social Media Conversations

Abstract

Mental health conditions affect millions of people worldwide, yet many cases go undetected until they reach a critical stage. Social media platforms like Reddit have become spaces where people openly share their experiences, but the support is often provided by individuals without clinical training. Existing multi-task approaches jointly model emotion and sentiment for mental health classification but frequently rely on noisy labels generated by pre-trained models and overlook topic information as a useful signal. This paper introduces two key contributions: First, an existing Core Fusion Network framework is extended by adding Topic alongside existing Mental Health Condition, Emotion, and Sentiment Classification tasks, with topic labels derived from the therapist-client interactions in the CounselChat dataset. Second, an Active Learning-based Stepwise Relabeling approach is proposed to refine a small subset of noisy emotion and topic labels using pre-trained models in two stages: targeting medium-uncertainty samples first, followed by high-uncertainty samples. The predictions above a confidence threshold (0.7) are accepted to prevent error propagation. The experiments are conducted on the SuicideWatch and Mental Health dataset of 54,412 Reddit posts collected from five mental health subreddits, evaluating domain-specific transformer encoders including MentalBERT and MentalRoBERTa. The proposed Active Learning-based Stepwise Relabeling, when applied to Core Fusion Network with MentalRoBERTa, improves Mental Health Condition by 0.09%, Emotion by 0.51%, Sentiment by 0.35%, and Topic Classification by 1.57% over the baseline Core Fusion Network. The results suggest that the proposed framework significantly reduces label noise in multi-task mental health classification, and that topic information provides additional context.

keywords: Mental Health Identification; Multi-task Learning; Active Learning; Social Media Analysis

Introduction

Mental health is defined as a person’s ability to deal with everyday challenges, make the most of their abilities, learn and work effectively, and contribute to their community [1], yet related issues remain a major global health burden. Mental disorders now account for one in six years lived with disability globally, with productivity losses far exceeding direct care costs [2]. Yet, only one-third of people with depression receive formal care due to stigma, discrimination, and under-resourced health systems [3]. As of 2023, nearly 1.2 billion people worldwide were living with a mental disorder [4]. Among those aged 10–19, one in seven experiences a mental disorder, with suicide remaining the third leading cause of death among those aged 15–29 [5].

In recent years, social media platforms have changed how people discuss and seek help for mental health issues, with studies continually showing links between social media use and higher rates of depression, anxiety, and psychological distress, particularly among adolescents [6]. Reddit stands out as a platform where people openly discuss their mental health and seek support from peers, creating a large collection of authentic mental health conversations. The peer supporters on these platforms are rarely clinicians, so there is a clear need for reliable NLP models that can accurately classify mental health conditions from social media text [7].

Domain-specific transformer models like MentalBERT [8] have shown strong performance in detecting mental health-related patterns in social media text. Multi-task learning has further improved results by jointly training related affective tasks alongside mental health condition identification [9]. The Core Fusion Network (CFN), introduced by Pathak et al. [7], adopts a multi-task methodology on the MotiVAte dataset by combining mental health disorder identification with emotion and sentiment analysis tasks. However, its auxiliary task labels are generated automatically by pre-trained models and are not updated during training, so any errors in these labels can carry through the shared layers and affect performance. The framework also does not explore topic as a useful auxiliary task.

To address these limitations, this work presents an enhanced multi-task learning framework for social media-based mental health classification. By integrating clinician-guided topic information alongside emotional and sentiment cues, the extended Core Fusion Network captures richer context from user posts. In addition, an Active Learning-based Stepwise Relabeling approach is introduced to mitigate label noise while preserving previously learned task representations.

The main contributions of this work are as follows:

  • (a) The existing Core Fusion Network (CFN) is extended by adding Topic Classification alongside existing Mental Health Condition, Emotion, and Sentiment Classification tasks. The emotion and sentiment labels are generated by pre-trained models, while topic labels are derived from clinically meaningful therapist-client interactions in the CounselChat [10] dataset.

  • (b) The Active Learning-based Stepwise Relabeling approach is proposed to refine a small subset of noisy emotion and topic labels using pre-trained models in two stages: targeting medium-uncertainty samples first, followed by high-uncertainty samples. The baseline Core Fusion Network is retrained from scratch on the updated training set in Stage 1 and fine-tuned in Stage 2.

  • (c) Extensive experiments are conducted on the SuicideWatch and Mental Health [11] dataset of 54,412 Reddit posts, including an ablation study of Active Learning strategies and comparisons against multi-task baselines and LLM prompting.

  • (d) Domain-specific transformer encoders, including MentalBERT and Mental-RoBERTa, are evaluated as feature extractors to capture clinically relevant linguistic representations for multi-task mental health classification.

Related Works

The recent advances in the Natural Language Processing(NLP) have significantly improved medical health analysis, especially with the mental health related tasks. The following are some of the important works that have been done in the field of mental health:

Pathak et al. proposed the Core Fusion Network (CFN) [7], a multi task learning framework for Mental Health Disorder Identification (MHDI) using conversational data. Their framework jointly performs three tasks: Mental Health Disorder Identification, Emotion Recognition, and Sentiment Analysis. It uses separate task specific models along with a central fusion network(CFN) to learn both shared and task specific features. To support this framework, the authors extended the MotiVAte dataset by automatically generating emotion and sentiment labels using pre-trained language models. They have also introduced the CFN architecture, which combines information from all three tasks to improve the overall performance. However, the framework is limited to three tasks and does not consider the topic of the conversation, which can provide additional context for understanding a person’s mental health condition.

Domain specific transformers have also played an important role in improving mental health analysis. While models such as BERT and RoBERTa have achieved strong performance on many Natural Language Processing tasks, they are trained on general text and they don’t fully capture the language and context of mental-health talks. To improve upon this, researchers introduced MentalBERT and MentalRoBERTa [8] by further training these models on large collections of mental health related texts from online platforms. The additional training helps the models to learn psychological terms, emotional expressions, and patterns in conversations that are common in mental health talks.

Similarly, Large Language Models (LLMs) have also recently shown strong performance in mental-health related tasks, where understanding context, emotion, and subtle language patterns is important. Recent work has also explored reasoning based prompting methods for mental health prediction. In particular, Avinash Patil and Amardeep Kour Gedhu [12] studied the use of OpenAI’s o3-mini model for mental-health text classification and evaluated prompting strategies such as zero shot, Chain of Thought (CoT), Few shot CoT, Self Consistency CoT, and Tree of Thought. Their work showed that prompt based reasoning can improve performance on several mental health datasets and highlighted the usefulness of step by step reasoning in mental health classification. Motivated by such prompting based approaches, we evaluate MentalLLaMA [13] in our work using zero shot and few shot CoT settings and compare its performance with our proposed multi task framework.

Methodology

Problem Formulation

The Core Fusion Network (CFN) is extended by jointly modeling Mental Health Condition classification alongside Emotion, Sentiment, and Topic classification as secondary tasks. Each secondary task provides additional contextual information that enriches the shared representation hih_i, helping the model better classify mental health conditions.

Given a Reddit post xix_i from the SWMH dataset [11], the main objective is to predict four task labels: Mental Health Condition yicy_i^c, Emotion yiey_i^e, Sentiment yisy_i^s, and Topic yity_i^t. Mental Health Condition is the primary task, while Emotion, Sentiment, and Topic act as secondary tasks that provide additional information about emotional state, sentiment polarity, and overall context of the post. The goal is to learn a shared representation hih_i that captures these relationships while predicting each task label, formulated as:

fθ(xi)→(y^ic,y^ie,y^is,y^it)(1)f_\theta(x_i) \to(\hat{y}_i^c,\hat{y}_i^e,\hat{y}_i^s,\hat{y}_i^t) \tag*{(1)}

where fθf_\theta denotes the extended Core Fusion Network (CFN). In this study, ∣Yc∣=5|\mathcal{Y}^c| = 5 (Depression, Suicide Watch, Anxiety, Off My Chest, and Bipolar), ∣Ye∣=7|\mathcal{Y}^e| = 7 (Joy, Sadness, Anger, Fear, Disgust, Surprise, Neutral), ∣Ys∣=3|\mathcal{Y}^s| = 3 (Positive, Negative, Neutral), and ∣Yt∣=31|\mathcal{Y}^t| = 31 (topic categories derived from CounselChat dataset [10]).

The key challenge is that the secondary task labels (yiey_i^e, yisy_i^s, and yity_i^t) are generated by pre-trained models and may contain noise, which can propagate through the shared representation hih_i and reduce model performance. To address this challenge, this work proposes an Active Learning-based Stepwise Relabeling approach that identifies uncertain emotion and topic label predictions and progressively refines them through stepwise relabeling, improving label quality while preserving learned task representations across all four tasks.

Label Generation Pipeline

The SuicideWatch and Mental Health (SWMH) dataset [11] contains ground-truth labels only for primary mental health conditions. As shown in Figure 1Figure 1, three secondary task label sets are generated to capture additional contextual signals across user posts. Emotion and sentiment labels are generated using pre-trained classifiers following Pathak et al. [7], whereas topic labels are extracted by mapping posts to CounselChat clinical Q&A representations.

Overview of the proposed framework

Figure 1. Overview of the proposed framework. (1) Label Generation using pre-trained models for emotion, sentiment and topic labels. (2) The extended Core Fusion Network for multi-task prediction. (3) The Active Learning-based Stepwise Relabeling approach.

Emotion Labels

Emotion refers to the emotional state expressed in a specific post (e.g., sadness, fear), capturing how an individual with a mental health condition can express different emotions across different posts. Emotion labels are generated using the BERT-GoEmotions model (monologg/bert-base-cased-goemotions-original) [14], which classifies each post into 28 fine-grained categories from the GoEmotions dataset [15]. The 28 emotion categories are mapped into 7 broader classes following Pathak et al. [7]: Ekman’s 6 basic emotions (Joy, Sadness, Anger, Fear, Disgust, Surprise) and a Neutral class. This grouping adapts the official Ekman-based mapping from GoEmotions [15], where ambiguous categories (realization, confusion, and curiosity) are assigned to Neutral instead of Surprise, as shown in Figure 2(B).

Classification task categories in the SWMH dataset

Figure 2. Classification task categories in the SWMH dataset.

Sentiment Labels

Sentiment measures the overall tone of the post. Sentiment labels are generated using the Twitter-RoBERTa model (cardiffnlp/twitter-roberta-base-sentiment-latest) [16], which classifies each post into three categories: Positive, Negative, and Neutral, as shown in Figure 2(C).

Topic Labels

Topic identifies the main subject discussed (e.g., family conflict, relationships, or identity). Because individuals with the same mental health condition often experience distinct life stressors, topic classification provides a clinically meaningful signal. Labels are assigned using cosine similarity between SWMH post embeddings and CounselChat topic representations. SWMH posts and CounselChat question-and-answer texts are encoded into 768-dimensional embeddings using the all-mpnet-base-v2 sentence transformer [17]. A representative vector vtv_t for each of the 31 topics (shown in Figure 2(D)) is created by averaging the embeddings of all CounselChat text entries belonging to topic t∈{1,…,31}t \in\{1,\ldots,31\}. Each SWMH post pp is then assigned the topic with the highest cosine similarity score:

cosSim⁡(ep,vt)=ep⋅vt∥ep∥∥vt∥(2)\operatorname{cosSim}(\mathbf{e}_p,\mathbf{v}_t)=\frac{\mathbf{e}_p\cdot\mathbf{v}_t}{\lVert\mathbf{e}_p\rVert\lVert\mathbf{v}_t\rVert} \tag*{(2)}
Topic⁡(p)=arg max⁡t∈{1,…,31}cosSim⁡(ep,vt)(3)\operatorname{Topic}(p)=\underset{t\in\{1,\ldots,31\}}{\operatorname{arg\,max}}\operatorname{cosSim}(\mathbf{e}_p,\mathbf{v}_t) \tag*{(3)}

where ep\mathbf{e}_p represents the embedding vector of SWMH post pp, and vt\mathbf{v}_t denotes the mean embedding of all CounselChat Q&A pairs for topic tt.

Core Fusion Network

Overview

The proposed Core Fusion Network (CFN), shown in Figure 1Figure 2, consists of three primary components: a domain-specific shared feature extractor (MentalBERT / MentalRoBERTa) [8], four task-specific models, and a central fusion model that captures cross-task dependencies for final classification. Following initial training, noisy emotion and topic labels are iteratively refined using an Active Learning-based Stepwise Relabeling pipeline before retraining.

Feature Extractor

Two domain-specific transformer encoders are evaluated: MentalBERT (mental-bert-base-uncased) and MentalRoBERTa (mental-roberta-base) [8], both pre-trained on mental health-related Reddit text to capture domain-specific linguistic patterns. Given a Reddit post xix_i, the encoder produces contextual token embeddings

Hi=Encoder⁡(xi)∈Rn×d(4)\mathbf{H}_i = \operatorname{Encoder}(x_i) \in\mathbb{R}^{n \times d} \tag*{(4)}

where n=512n = 512 is the sequence length after padding or truncation, and d=768d = 768 is the hidden dimension of the encoder. Hi\mathbf{H}_i is passed as shared input to four task-specific models.

Task-Specific Models

Four independent task-specific models are created for Mental Health Condition, Emotion, Sentiment, and Topic. For task k∈{c,e,s,t}k \in\{c,e,s,t\}, the shared embeddings from the encoder Hi\mathbf{H}_i pass through an LSTM layer. From the LSTM output, two parallel intermediate representations are derived: I1(k)I_1^{(k)}, computed via a ReLU-activated linear transformation, and I2(k)I_2^{(k)}, computed by passing the LSTM features through a multi-head attention layer followed by a linear transformation. Finally, the preliminary task-specific prediction y~i(k)\tilde{y}_i^{(k)} is obtained by applying dropout and a linear classifier to the last timestep of the multi-head attention output.

Central Fusion Model

The four task-specific predictions are concatenated into Xc=[y~i(c),y~i(e),y~i(s),y~i(t)]\mathbf{X}_c = [\tilde{y}_i^{(c)}, \tilde{y}_i^{(e)}, \tilde{y}_i^{(s)}, \tilde{y}_i^{(t)}], and processed by a central fusion model consisting of an LSTM layer followed by an attention layer, which captures cross-task dependencies. The last timestep of this central attention output forms the shared representation hih_i.

Fully Connected Layer and Output

For each task kk, the shared representation hih_i is concatenated with the intermediate layers I1(k)I_1^{(k)} and I2(k)I_2^{(k)} generated by the corresponding task-specific model and the result is passed through a fully connected layer, consisting of a linear layer, a ReLU activation function, a dropout layer (p=0.5p = 0.5), and a final linear layer to produce the final prediction y^i(k)\hat{y}_i^{(k)} for each task.

Loss Function

To address the class imbalance in the dataset, each task is trained using a class-weighted categorical cross-entropy loss:

Lk=−∑jwj(k)yij(k)log⁡(y^ij(k))(5)L_k = -\sum_j w_j^{(k)} y_{ij}^{(k)} \log\left(\hat{y}_{ij}^{(k)}\right) \tag*{(5)}

where wj(k)w_j^{(k)} is the inverse frequency class weight for class jj in each task k∈{c,e,s,t}k \in\{c,e,s,t\}, yij(k)y_{ij}^{(k)} is the true label for class jj, and y^ij(k)\hat{y}_{ij}^{(k)} is the predicted probability for class jj. The total loss is a weighted combination of all four task losses:

LT=αLc+βLe+γLs+δLt(6)L_T = \alpha L_c + \beta L_e + \gamma L_s + \delta L_t \tag*{(6)}

with α=0.45\alpha= 0.45, β=0.25\beta= 0.25, γ=0.15\gamma= 0.15, δ=0.15\delta= 0.15, prioritizing Mental Health Condition as primary task, while Emotion, Sentiment, and Topic are weighted as secondary tasks.

Active Learning-based Stepwise Relabeling

The trained CFN serves as the baseline model for the proposed Active Learning-based Stepwise Relabeling approach (Figure 1Figure 3). To address the noise present in the emotion and topic labels generated by pre-trained models, this approach specifically targets these two tasks for label refinement. Sentiment labels, which achieve consistently higher predictive accuracy, are excluded from relabeling.

Mental Health Condition and Emotion label distributions in the SWMH training set

Figure 3. Mental Health Condition and Emotion label distributions in the SWMH training set.

Uncertainty Estimation

For each training sample xix_i, the baseline CFN produces predicted probability distributions for emotion and topic. The uncertainty of each task k∈{e,t}k \in\{e,t\} is calculated using entropy:

Hk(xi)=−1ln⁡(∣Yk∣)∑j=1∣Yk∣p(yik=j∣xi)ln⁡p(yik=j∣xi)(7)H^{k}(x_i) = -\frac{1}{\ln\left(\lvert Y^{k}\rvert\right)}\sum_{j=1}^{\lvert Y^{k}\rvert} p(y_i^{k}=j \mid x_i)\ln p(y_i^{k}=j \mid x_i) \tag*{(7)}

where jj is the class index, p(yik=j∣xi)p(y_i^{k}=j \mid x_i) is the predicted probability assigned to class jj by the CFN, and ∣Yk∣\lvert Y^{k}\rvert is the total number of classes for task kk (∣Ye∣=7\lvert Y^{e}\rvert= 7 for emotion and ∣Yt∣=31\lvert Y^{t}\rvert= 31 for topic). The resulting normalized entropy Hk(xi)∈[0,1]H^{k}(x_i) \in[0,1] measures prediction uncertainty, where higher values indicate greater uncertainty.

Relabeling Pipeline

Samples selected for relabeling are processed through task-specific pre-trained models. Emotion labels are updated using SamLowe/roberta-base-go-emotions [18]; the resulting 28 GoEmotions categories are mapped to the 7 emotion categories using the same grouping described in § 3.2, while topic labels are updated via facebook/bart-large-mnli zero-shot classification [19]. A predicted label is accepted only if its confidence score satisfies score≥τ\mathrm{score} \geq\tau, where τ=0.70\tau= 0.70; otherwise, the original label is retained.

Relabeling Strategies

Three uncertainty-based relabeling strategies are explored:

  1. Medium Uncertainty: Training samples with prediction uncertainty between the 40th40^{th} and 70th70^{th} percentiles are identified as medium uncertainty samples. From this pool, the top 3,000 samples ranked by prediction uncertainty are selected for relabeling. The CFN is then retrained from scratch on the updated training set in a single stage.

  2. High Uncertainty: The top 3,000 training samples ranked by prediction uncertainty are identified as highly uncertain and selected for relabeling. The CFN is then retrained from scratch on the updated training set in a single stage.

  3. Active Learning-based Stepwise Relabeling: This strategy combines both uncertainty levels in a sequential two-stage process. In Stage 1, the medium uncertainty samples are relabeled, and the CFN is retrained from scratch at a learning rate of 1×10−51 \times10^{-5}. In Stage 2, the prediction uncertainty is recomputed on the updated training set of Stage 1, and the top 3,000 most uncertain samples are relabeled. The Stage 1 model is then fine-tuned on this further updated training set at a reduced learning rate of 5×10−65 \times10^{-6}, allowing the model to refine predictions on the most uncertain samples while preserving the task representations learned in Stage 1.

Experiments

Setup

Dataset

This study uses two datasets: the SuicideWatch and Mental Health (SWMH) dataset [11] for model training and evaluation, and the CounselChat dataset [10] for deriving topic labels.

Suicide Watch Mental Health (SWMH) Dataset

The SWMH dataset [11] contains 54,412 Reddit posts collected through the official Reddit API from five mental health subreddits: r/Depression, r/Suicide Watch, r/Anxiety, r/Off My Chest, and r/Bipolar. The dataset includes 34,823 training posts, 8,706 validation posts, and 10,883 test posts. Following Ji et al. [11], the subreddit from which each post was collected is treated as its mental health condition label.

CounselChat Dataset

The CounselChat dataset [10] was used to derive topic labels for the SWMH [11] dataset. The dataset consists of 2,775 question-and-answer pairs where licensed therapists answer mental health related questions posted by users, covering 31 unique topics including depression, anxiety, relationships, trauma, family conflict, and self-harm.

Text Preprocessing

All text across SWMH and CounselChat is cleaned using the same pipeline: missing values are filled with empty strings, HTML tags, URLs, and non-alphabetic characters are removed, whitespace is normalized, and the text is lowercased. For CounselChat, the question and answer texts are concatenated into a single string before cleaning, producing one combined text per Q&A pair for topic vector generation.

Label Distribution

Figure 3 and 4 show the label distributions for all four tasks in the SWMH [11] training set, the ground truth mental health condition label and the three auxiliary tasks for emotion, sentiment, and topic. The class imbalance varies by task, which can push the model to favor the majority classes.

  1. The condition labels are moderately imbalanced, with Depression having the most samples (11,940) and Bipolar the fewest (4,932). The remaining three classes are more evenly distributed.

  1. The emotion labels are imbalanced, with fear (7,534), sadness (7,493), and neutral (7,181) having the most samples, while disgust (413) and surprise (261) appear rarely. Posts discussing ongoing mental health challenges often convey sustained emotions such as fear and sadness rather than transient reactions such as surprise or disgust. The grouping of 28 GoEmotions categories into 7 broader emotion classes adds to this imbalance, as multiple fine-grained emotions map onto fear and sadness alone.

  1. The sentiment labels are highly imbalanced, with 28,322 negative posts, more than neutral or positive posts. This negative skew is expected, since people usually post in the mental health subreddits when they are having a hard time.

  1. Depression is the most common topic with 10,787 posts, followed by Self-esteem with 4,158 posts and anxiety with 3,995. In contrast, topics such as marriage (56), children-adolescents (47), and professional-ethics (43) appear in fewer than 100 posts.

Sentiment and Topic label distributions in the SWMH training set

Figure 4. Sentiment and Topic label distributions in the SWMH training set.

Class Imbalance Handling

To prevent the model from favoring majority classes, inverse-frequency class weights are computed for each task and applied to the categorical cross-entropy loss during training. As Figure 5 and Figure 6 show, rare classes such as Bipolar in mental health conditions, Surprise in emotion, Positive in sentiment, and Professional-ethics in topic receive higher weights, while frequent classes such as Depression, neutral, negative, and depression receive lower weights.

Class distribution vs. class weights for Mental Health Condition and Emotion

Figure 5. Class distribution vs. class weights for Mental Health Condition and Emotion

Class distribution vs. class weights for Sentiment and Topic

Figure 6. Class distribution vs. class weights for Sentiment and Topic

Baselines

The extended CFN is compared against the following baselines using MentalRoBERTa.

  1. The Multi-task Fully-Shared Network (Mt-FnS) uses a single shared MentalRoBERTa encoder, LSTM and multi-head attention layer with four independent task classifiers applied to the shared representation.

  1. The Three-task CFN [7] is the original CFN jointly modeling Mental Health Condition, Emotion and Sentiment tasks without Topic.

  1. MentalLLaMA-7B [13] is evaluated with 4-bit quantization (QLoRA) on 750 samples from the SWMH [11] test set, with 150 samples from each mental health condition class, using zero-shot and few-shot prompting to predict all four tasks simultaneously.

Metrics

All results are evaluated on the held-out test set of 10,883 samples using Accuracy, Precision, Recall, and F1-score.

Implementation Details

Table 1 summarizes the training configuration used across all experiments. The best model checkpoint is selected based on the weighted validation score computed as:

ParameterValue
OptimizerAdamW
Learning Rate1×10−51 \times10^{-5}
Weight Decay0.01
SchedulerLinear warmup-decay (10% warmup)
Gradient Clipping1.0
Batch Size32
Epochs50
Early Stopping5 epochs
Random Seed42
Max Sequence Length512 tokens
Hidden Size256
Dropout0.5
Attention Heads4

Table 1. Experimental Configuration used for training the Core Fusion Network (CFN)

val_score=0.45⋅accc+0.25⋅acce+0.15⋅accs+0.15⋅acct(8)\mathrm{val\_score} = 0.45 \cdot\mathrm{acc}_{c} + 0.25 \cdot\mathrm{acc}_{e} + 0.15 \cdot\mathrm{acc}_{s} + 0.15 \cdot\mathrm{acc}_{t} \tag*{(8)}

where accc\mathrm{acc}_{c}, acce\mathrm{acc}_{e}, accs\mathrm{acc}_{s}, acct\mathrm{acc}_{t} are the validation accuracies for mental health condition, emotion, sentiment, and topic classification. The weighted score reflects the importance of each task, with the highest weight assigned to the Mental Health Condition classification (α=0.45\alpha= 0.45), the primary task.

Results and Analysis

The extended Core Fusion Network (CFN) with the proposed Active Learning-based Stepwise Relabeling approach is evaluated on the SWMH dataset [11] across two domain-specific encoders, MentalBERT and MentalRoBERTa [8]. All results are reported on the held-out test set of 10,883 samples using accuracy, precision, recall, and F1-score. The analysis is structured around three research questions: whether the proposed Stepwise Relabeling approach improves over the extended CFN trained on the original labels, referred to as the baseline CFN (RQ1), how the extended CFN compares against simpler multi-task baselines (RQ2), and which Active Learning strategy contributes most to overall performance (RQ3).

Emotion Classification: GoEmotions(28 categories) vs GoEmotions mapped to 7 categories

The CFN with MentalRoBERTa is evaluated on all 28 GoEmotions categories directly to assess whether fine-grained emotion labels improve classification. For comparison, results with GoEmotions mapped to 7 categories as described in § 3.2 are also reported. Table 2 shows the emotion classification results for both configurations for the Baseline CFN and Stepwise Relabeling Stage 2.

CategoriesBaseline CFNStepwise Relabeling Stage 2
AccuracyPrecisionRecallF1AccuracyPrecisionRecallF1
28 GoEmotions0.57400.57570.57400.57230.32920.30990.32920.2309
7 Grouped Categories0.70320.70390.70320.70300.70830.70750.70830.7066

Table 2. Emotion accuracy comparison: 28 GoEmotions categories vs. 7 grouped categories for the Baseline CFN and Stepwise Relabeling Stage 2 (MentalRoBERTa).

The 7-class mapping consistently outperforms the 28 GoEmotions categories in both Baseline and Stepwise Relabeling Stage 2, achieving an emotion accuracy of 0.7032 at baseline and 0.7083 under Stepwise Relabeling Stage 2. This suggests that relabeling across 28 fine-grained emotions introduces more noise than it removes. Mapping GoEmotions into 7 broader classes is necessary for reliable emotion classification in mental health text.

Main Results

Table 3 addresses RQ1 by reporting the performance of the CFN with and without Active Learning-based Stepwise Relabeling across both encoders. Stepwise Relabeling improves all four tasks over the baseline CFN, with the largest improvements on Topic (+1.61% MentalBERT, +1.57% MentalRoBERTa), followed by Sentiment (+0.40% MentalBERT, +0.35% MentalRoBERTa) and Emotion (+0.09% MentalBERT, +0.51% MentalRoBERTa). Mental Health Condition accuracy also improves slightly in both encoders under Stepwise Relabeling Stage 2 (+0.24% MentalBERT, +0.09% MentalRoBERTa). MentalRoBERTa outperforms MentalBERT on Mental Health Condition, Sentiment, and Topic, and is used as the primary encoder in all analyses.

Comparison with Multi-Task Baselines

To address RQ2, the extended CFN with Stepwise Relabeling stage 2 is compared against two baselines, Multi-task Fully-Shared Network (Mt-FnS) and three-task CFN using MentalRoBERTa.

Table 4 shows that the proposed model outperforms Mt-FnS on all four tasks, including Emotion (+0.22%) and Topic (+2.01%), as well as Mental Health Condition (+0.79%) and Sentiment (+1.14%). Against the three-task CFN, the proposed model achieves comparable Mental Health Condition accuracy (0.6974 vs. 0.6970) and higher Emotion (+3.13%) and Sentiment (+0.33%) accuracy. Adding Topic as a fourth secondary task does not degrade the original three tasks, as the extended CFN baseline matches the three-task CFN on Mental Health Condition and Sentiment while improving Emotion from 0.6770 to 0.7032. Overall, the proposed model achieves the highest accuracy of all four tasks among the models in Table 4, with the largest gain over Mt-FnS on Topic.

TaskMt-FnS Baseline AccuracyMt-FnS Baseline PrecisionMt-FnS Baseline RecallMt-FnS Baseline F1Three-Task CFN Baseline AccuracyThree-Task CFN Baseline PrecisionThree-Task CFN Baseline RecallThree-Task CFN Baseline F1Extended CFN Baseline AccuracyExtended CFN Baseline PrecisionExtended CFN Baseline RecallExtended CFN Baseline F1Extended CFN + Stepwise Relabeling Stage 2 AccuracyExtended CFN + Stepwise Relabeling Stage 2 PrecisionExtended CFN + Stepwise Relabeling Stage 2 RecallExtended CFN + Stepwise Relabeling Stage 2 F1
Condition0.68950.69530.68950.69020.69700.69800.69700.69600.69650.70030.69650.69740.69740.69950.69740.6980
Emotion0.70610.70640.70610.70430.67700.67800.67700.67600.70320.70390.70320.70300.70830.70750.70830.7066
Sentiment0.90890.91120.90890.91000.91700.91900.91700.91800.91680.91600.91680.91640.92030.91740.92030.9184
Topic0.58960.63160.58960.5984————0.59400.64070.59400.60450.60970.64830.60970.6190

Table 4. Comparison of the Extended CFN with Active Learning-based Stepwise Relabeling against multi-task baselines using MentalRoBERTa. Best Accuracy per task is in bold. The Three-Task CFN does not include Topic classification.

Table Table 5 compares the effect of Active Learning-based Stepwise Relabeling Stage 2 on the extended CFN and the three-task CFN. Each architecture improves over its own baseline: the extended CFN on all four tasks (Table 3), and the three-task CFN on Mental Health Condition (0.697 to 0.7058), Emotion (0.677 to 0.7167), and Sentiment (0.917 to 0.9177) suggesting that the approach is not specific to the extended CFN. Comparing the two architectures after Stage 2, the three-task CFN reaches higher Mental Health Condition and Emotion accuracy, while the extended CFN achieves higher Sentiment accuracy (0.9203 vs. 0.9177) and additionally predicts Topic.

TaskCore Fusion Network - MentalBERT Baseline AccuracyPrecisionRecallF1Core Fusion Network - MentalBERT Stepwise Relabeling Stage 2 AccuracyPrecisionRecallF1Core Fusion Network - MentalRoBERTa Baseline AccuracyPrecisionRecallF1Core Fusion Network - MentalRoBERTa Stepwise Relabeling Stage 2 AccuracyPrecisionRecallF1
Condition0.68460.69140.68460.68470.68700.69070.68700.68800.69650.70030.69650.69740.69740.69950.69740.6980
Emotion0.71880.71820.71880.71800.71970.71910.71970.71900.70320.70390.70320.70300.70830.70750.70830.7066
Sentiment0.90030.90090.90030.90050.90430.90440.90430.90430.91680.91600.91680.91640.92030.91740.92030.9184
Topic0.56370.61360.56370.57410.57980.61940.57980.58770.59400.64070.59400.60450.60970.64830.60970.6190

Table 3. Main Results: Baseline CFN vs. Active Learning-based Stepwise Relabeling (Stage 2) for MentalBERT and MentalRoBERTa encoders. Best Accuracy per task is in bold.

TaskExtended CFN + Stepwise Relabeling Stage 2 AccuracyExtended CFN + Stepwise Relabeling Stage 2 PrecisionExtended CFN + Stepwise Relabeling Stage 2 RecallExtended CFN + Stepwise Relabeling Stage 2 F1Three-Task CFN + Stepwise Relabeling Stage 2 AccuracyThree-Task CFN + Stepwise Relabeling Stage 2 PrecisionThree-Task CFN + Stepwise Relabeling Stage 2 RecallThree-Task CFN + Stepwise Relabeling Stage 2 F1
Condition0.69740.69950.69740.69800.70580.70750.70580.7055
Emotion0.70830.70750.70830.70660.71670.71860.71670.7168
Sentiment0.92030.91740.92030.91840.91770.92100.91770.9191
Topic0.60970.64830.60970.6190————

Table 5. Effect of Active Learning-based Stepwise Relabeling Stage 2 on the Extended CFN and Three-Task CFN using MentalRoBERTa. Best Accuracy per task is in bold. The Three-Task CFN does not include Topic classification.

Comparison with LLM Prompting

MentalLLaMA-7B[13] with 4-bit quantization (QLoRA) is evaluated on 750 stratified samples from the SWMH[11] test set, with 150 samples per mental health condition class, using zero-shot and few-shot prompting to predict Mental Health Condition, Emotion, Sentiment, and Topic for each post. As shown in Table 6, the CFN outperforms MentalLLaMA-7B on Mental Health Condition, Emotion, and Sentiment Classification tasks, demonstrating that a fine-tuned multi-task CFN model outperforms zero-shot and few-shot LLM prompting. Topic accuracy is lower in this subset because the class distribution is imbalanced and 3 of 31 topic classes are missing entirely.

TaskCFN (MentalRoBERTa) AccuracyCFN (MentalRoBERTa) F1MentalLLaMA-7B (QLoRA) Accuracy (Zero-Shot)MentalLLaMA-7B (QLoRA) Accuracy (Few-Shot)
Condition0.74000.73900.53330.5507
Emotion0.64270.63840.28000.3160
Sentiment0.90270.90590.83330.7813
Topic0.17470.15780.30530.4253

Table 6. Comparison of CFN (MentalRoBERTa) against MentalLLaMA-7B on a stratified subset of 750 samples. Best results per task are in bold.

Ablation Study

Table 7 addresses RQ3 by evaluating how each Active Learning strategy contributes to overall performance, using MentalRoBERTa as the encoder. For comparison, Random Sampling selects 3,000 training samples at random and relabels them using the same pipeline and confidence threshold. No single-stage strategy improves all four tasks. High Uncertainty sampling lowers Topic accuracy from 0.5940 to 0.5709, and Mental Health Condition accuracy also drops slightly to 0.6933. Medium Uncertainty sampling gives the best Emotion accuracy of any strategy (0.7106), though Mental Health Condition accuracy falls marginally to 0.6959. Random Sampling relabels the same number of samples as the Medium and High Uncertainty strategies, yet it has the lowest Mental Health Condition, Emotion, and Topic accuracy of all strategies, which shows that the gains come from entropy-based sample selection rather than the number of relabeled samples. Both stages of the Active Learning-based Stepwise Relabeling approach improve all four tasks over the baseline CFN. Stepwise Relabeling Stage 1 improves Emotion by 0.62% and Topic by 0.81%, and Stepwise Relabeling Stage 2 achieves the best Mental Health Condition (0.6974), Sentiment (0.9203), and Topic (0.6097) accuracy. These results suggest that Active Learning-based Stepwise Relabeling gives more consistent gains than single-stage strategies.

TaskBaseline AccuracyBaseline F1High Uncertainty AccuracyHigh Uncertainty F1Medium Uncertainty AccuracyMedium Uncertainty F1Random Sampling AccuracyRandom Sampling F1Stepwise Relabeling Stage 1 AccuracyStepwise Relabeling Stage 1 F1Stepwise Relabeling Stage 2 AccuracyStepwise Relabeling Stage 2 F1
Condition0.69650.69740.69330.69380.69590.69710.69150.69280.69710.69750.69740.6980
Emotion0.70320.70300.70740.70560.71060.70940.69780.69830.70940.70730.70830.7066
Sentiment0.91680.91640.91860.91790.92000.91810.91880.91870.91750.91730.92030.9184
Topic0.59400.60450.57090.58110.60190.60970.55750.57020.60210.61150.60970.6190

Table 7. Ablation Study: Comparison of Active Learning strategies on the extended CFN using MentalRoBERTa. Best Accuracy per task is in bold.

Threshold Analysis

To select the confidence threshold τ\tau, the Active Learning-based Stepwise Relabeling approach is evaluated at τ=0.60\tau= 0.60, 0.70, and 0.80 (Table 8). A threshold of τ=0.70\tau= 0.70 is the only setting at which Stepwise Relabeling Stage 2 improves all four tasks over the baseline CFN. A lower threshold of τ=0.60\tau= 0.60 accepts more relabels and gives the best Topic accuracy (0.6276), but Mental Health Condition accuracy falls below the baseline from 0.6965 to 0.6909. Since Mental Health Condition is the primary task, a threshold that lowers it below the baseline is not preferred. A higher threshold of τ=0.80\tau= 0.80 lowers Mental Health Condition, Sentiment, and Topic accuracy below the baseline, with Topic accuracy dropping from 0.5940 to 0.5391. Based on these results, τ=0.70\tau= 0.70 is used in all other experiments.

Taskτ=0.60\tau= 0.60 Stage S1 Accuracyτ=0.60\tau= 0.60 Stage S1 F1τ=0.60\tau= 0.60 Stage S2 Accuracyτ=0.60\tau= 0.60 Stage S2 F1τ=0.70\tau= 0.70 Stage S1 Accuracyτ=0.70\tau= 0.70 Stage S1 F1τ=0.70\tau= 0.70 Stage S2 Accuracyτ=0.70\tau= 0.70 Stage S2 F1τ=0.80\tau= 0.80 Stage S1 Accuracyτ=0.80\tau= 0.80 Stage S1 F1τ=0.80\tau= 0.80 Stage S2 Accuracyτ=0.80\tau= 0.80 Stage S2 F1
Condition0.68620.68790.69090.69150.69710.69750.69740.69800.69180.69240.69540.6956
Emotion0.70750.70530.70530.70370.70940.70730.70830.70660.71040.70790.70710.7060
Sentiment0.91990.91840.91940.91810.91750.91730.92030.91840.91320.91540.91660.9176
Topic0.62380.63290.62760.63470.60210.61150.60970.61900.53890.54980.53910.5501

Table 8. Effect of confidence threshold τ\tau on Active Learning-based Stepwise Relabeling using the CFN with MentalRoBERTa. Best Stage 2 results per task are in bold.

Qualitative Analysis

Figure 7 and Figure 8 show examples of emotion and topic labels corrected by each Active Learning strategy. In these examples, the original label generated by a pre-trained model is incorrect and does not match the post content. For example, in Figure 7, a Bipolar post describing agoraphobia was labeled Neutral and is corrected to Fear (confidence: 0.74). A Suicide Watch post describing a suicide attempt was given the topic Self-esteem and is corrected to Self-harm (confidence: 0.71). Figure 8 also shows how samples are selected for relabeling at different uncertainty levels in the two stages. For example, a post written by an LGBT user facing discrimination has an entropy of 0.96, outside the medium-uncertainty range of Stage 1, and is corrected from Depression to LGBTQ (confidence: 0.71) in Stage 2.

Examples of emotion and topic label corrections using single-stage Medium and High Uncertainty sampling

Figure 7. Examples of emotion and topic label corrections using single-stage Medium and High Uncertainty sampling.

Examples of emotion and topic label corrections using Active Learning-based Stepwise Relabeling

Figure 8. Examples of emotion and topic label corrections using Active Learning-based Stepwise Relabeling, with medium-uncertainty samples relabeled in Stage 1 and high-uncertainty samples relabeled in Stage 2.

Error Analysis

Figures 9 and 10 show the confusion matrices for the baseline CFN and Stepwise Relabeling Stage 2 on Mental Health Condition classification using MentalRoBERTa. The most frequent misclassification in both models is between Depression and Suicide Watch, with more than 540 posts misclassified in each direction. Off My Chest, a general venting subreddit not tied to a specific condition, is the hardest class, with only 1,026 of its 1,687 posts classified correctly by the baseline and 1,030 by Stage 2, and over 420 predicted as Depression. Anxiety and Bipolar are classified most accurately in both models. Depression, the largest class, is the most common wrong prediction for every other class. Stage 2 misclassifies fewer posts as Depression (1,394 vs. 1,468). In particular, fewer Anxiety and Bipolar posts are wrongly predicted as Depression, so more of them are classified correctly. Suicide Watch and Off My Chest also improve slightly, while Depression loses 48 correct predictions. Overall, Stage 2 improves four of the five classes, but confusion between Depression and Suicide Watch remains the main source of error.

Confusion matrix for Mental Health Condition classification using the baseline CFN (MentalRoBERTa)

Figure 9. Confusion matrix for Mental Health Condition classification using the baseline CFN (MentalRoBERTa).

Confusion matrix for Mental Health Condition classification using the CFN (MentalRoBERTa) after Stepwise Relabeling Stage 2.

Figure 10. Confusion matrix for Mental Health Condition classification using the CFN (MentalRoBERTa) after Stepwise Relabeling Stage 2.

Limitations

This work has a few limitations that point to useful directions for improvement. Even with the proposed Active Learning-based Stepwise Relabeling approach, Topic accuracy reaches only 0.6097, which reflects how challenging fine-grained topic classification becomes with 31 classes and an uneven distribution among them. The emotion, sentiment, and topic labels are generated automatically by pre-trained models rather than by human annotators. Relabeling refines only a subset of the emotion and topic labels, using pre-trained models, and leaves the sentiment labels unchanged, so some residual noise is likely still present. Since SWMH [11] draws from five Reddit mental health subreddits, the results reflect the language and reporting patterns of this specific online community, and testing the framework on other platforms or clinical settings would help confirm how well these findings generalize.

Conclusion

In this work, the three-task Core Fusion Network (CFN) is extended with Topic Classification as a fourth task, with topic labels derived from clinically grounded therapist-client interactions in the CounselChat [10] dataset. To address noise in the automatically generated emotion and topic labels, an Active Learning-based Stepwise Relabeling approach is proposed that progressively refines uncertain emotion and topic labels in two stages, first targeting medium-uncertainty samples and then high-uncertainty samples in Stage 2, while preserving previously learned task representations through fine-tuning rather than training from scratch. Extensive experiments on the large-scale SWMH [11] dataset of 54,412 Reddit posts, using both MentalBERT and MentalRoBERTa as encoders, show that the proposed approach improves all four tasks over the baseline CFN for both encoders. With MentalRoBERTa, accuracy improves by 0.09% on Mental Health Condition, 0.51% on Emotion, 0.35% on Sentiment, and 1.57% on Topic. The fine-tuned CFN also outperforms zero-shot and few-shot prompting of MentalLLaMA-7B on Mental Health Condition, Emotion, and Sentiment classification. The ablation study shows that only the stepwise approach improves all four tasks, and that Random Sampling has the lowest Mental Health Condition, Emotion, and Topic accuracy despite relabeling the same number of samples, confirming that entropy-based sample selection drives the gains. Qualitative examples further illustrate how relabeling corrects emotion and topic labels that do not match the post content. Overall, the results show that topic-aware multi-task learning combined with a stepwise relabeling approach produces more consistent improvements on noisy social media data than single-stage approaches.

Future work will explore relabeling a larger subset of the training data in each stage. Rather than accepting a label from a single pre-trained model above a fixed confidence threshold, ensemble relabeling models could change a label only when they agree, reducing label noise while limiting incorrect relabels. The most uncertain samples could also be verified by clinicians, moving the approach toward a human-in-the-loop Active Learning setting. Since a single post may express multiple emotions or address multiple topics, future work will treat the emotion and topic tasks as multi-label classification problems. In addition, the number of relabeling stages could be determined adaptively based on validation performance. Finally, evaluating the framework on other mental health datasets and in clinical settings would help assess its generalizability beyond Reddit-based social media text.

References

  1. [1]World Health Organization: Mental Health: Strengthening Our Response (2025). https://www.who.int/news-room/fact-sheets/detail/mental-health-strengthening-our-response
  2. [2]World Health Organization: Mental Health (2026). https://www.who.int/health-topics/mental-health
  3. [3]World Health Organization: Mental Disorders (2025). https://www.who.int/ news-room/fact-sheets/detail/mental-disorders
  4. [4]CNN Health: Mental Disorder Rate Worldwide Study (2026). https://edition.cnn.com/2026/05/21/health/mental-disorder-rate-worldwide-study-wellness
  5. [5]World Health Organization: Adolescent Mental Health (2025). https://www.who.int/news-room/fact-sheets/detail/adolescent-mental-health
  6. [6]Stanford Law School: Social Media Addiction and Mental Health: The Growing Concern for Youth Well-Being (2024). https://law.stanford.edu/2024/05/20/social-media-addiction-and-mental-health-the-growing-concern-for-youth-well-being/
  7. [7]Pathak, A., Bhattacharjee, S., Saha, T., Saha, S.: Do Sentiment and Emotion Affect Mental Health? A Multi-task Classification Framework for Comprehensive Understanding of Mental Health, Emotion, and Sentiment from Motivational Conversations. https://doi.org/10.1145/3704740 . https://doi.org/10.1145/3704740
  8. [8]Ji, S., Zhang, T., Ansari, L., Fu, J., Tiwari, P., Cambria, E.: MentalBERT: Publicly Available Pretrained Language Models for Mental Healthcare (2021). https://arxiv.org/abs/2110.15621
  9. [9]Ruder, S.: An Overview of Multi-Task Learning in Deep Neural Networks (2017). https://arxiv.org/abs/1706.05098
  10. [10]Bertagnolli, N.: Counsel chat: Bootstrapping high-quality therapy data. https://towardsdatascience.com/counsel-chat-bootstrapping-high-quality-therapy-data-971b419f33da. Towards Data Science (2020)
  11. [11]Ji, S., Li, X., Huang, Z., Cambria, E.: Suicidal ideation and mental disorder detection with attentive relation networks. Neural Computing and Applications 34(13), 10309–10319 (2021) https://doi.org/10.1007/s00521-021-06208-y
  12. [12]Patil, A., Gedhu, A.K.: Cognitive-Mental-LLM: Leveraging Reasoning in Large Language Models for Mental Health Prediction via Online Text (2025). https://arxiv.org/abs/2503.10095
  13. [13]Yang, K., Zhang, T., Kuang, Z., Xie, Q., Huang, J., Ananiadou, S.: Mentallama: Interpretable mental health analysis on social media with large language models. In: Proceedings of the ACM Web Conference 2024. WWW ’24, pp. 4489–4500. ACM, ??? (2024). https://doi.org/10.1145/3589334.3648137
  14. [14]monologg: BERT-base-cased Model Fine-tuned on GoEmotions. Hugging Face. Hugging Face model repository (2021). https://huggingface.co/monologg/bert-base-cased-goemotions-original
  15. [15]Demszky, D., Movshovitz-Attias, D., Ko, J., Cowen, A.S., Nemade, G., Ravi, S.: Goemotions: A dataset of fine-grained emotions. CoRR abs/2005.00547 (2020) 2005.00547arxiv.org/abs/2005.00547
  16. [16]Loureiro, D., Barbieri, F., Neves, L., Espinosa Anke, L., Camacho-collados, J.: TimeLMs: Diachronic language models from Twitter. In: Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics: System Demonstrations, pp. 251–260. Association for Computational Linguistics, Dublin, Ireland (2022). https://doi.org/10.18653/v1/2022.acl-demo.25 . https://aclanthology.org/2022.acl-demo.25
  17. [17]Song, K., Tan, X., Qin, T., Lu, J., Liu, T.-Y.: MPNet: Masked and Permuted Pre-training for Language Understanding (2020). https://arxiv.org/abs/2004.09297
  18. [18]Lowe, S.: roberta-base-go-emotions. https://huggingface.co/SamLowe/roberta-base-go-emotions (2024)DOI
  19. [19]Lewis, M., Liu, Y., Goyal, N., Ghazvininejad, M., Mohamed, A., Levy, O., Stoyanov, V., Zettlemoyer, L.: BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehension (2019). https://arxiv.org/abs/1910.13461

Paper details

vlnc:W_rvgva8av
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents