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 , helping the model better classify mental health conditions.
Given a Reddit post from the SWMH dataset [11], the main objective is to predict four task labels: Mental Health Condition , Emotion , Sentiment , and Topic . 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 that captures these relationships while predicting each task label, formulated as:
where denotes the extended Core Fusion Network (CFN). In this study, (Depression, Suicide Watch, Anxiety, Off My Chest, and Bipolar), (Joy, Sadness, Anger, Fear, Disgust, Surprise, Neutral), (Positive, Negative, Neutral), and (topic categories derived from CounselChat dataset [10]).
The key challenge is that the secondary task labels (, , and ) are generated by pre-trained models and may contain noise, which can propagate through the shared representation 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.

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).

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 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 . Each SWMH post is then assigned the topic with the highest cosine similarity score:
where represents the embedding vector of SWMH post , and denotes the mean embedding of all CounselChat Q&A pairs for topic .
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 , the encoder produces contextual token embeddings
where is the sequence length after padding or truncation, and is the hidden dimension of the encoder. 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 , the shared embeddings from the encoder pass through an LSTM layer. From the LSTM output, two parallel intermediate representations are derived: , computed via a ReLU-activated linear transformation, and , computed by passing the LSTM features through a multi-head attention layer followed by a linear transformation. Finally, the preliminary task-specific prediction 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 , 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 .
Fully Connected Layer and Output
For each task , the shared representation is concatenated with the intermediate layers and 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 (), and a final linear layer to produce the final prediction 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:
where is the inverse frequency class weight for class in each task , is the true label for class , and is the predicted probability for class . The total loss is a weighted combination of all four task losses:
with , , , , 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.

Figure 3. Mental Health Condition and Emotion label distributions in the SWMH training set.
Uncertainty Estimation
For each training sample , the baseline CFN produces predicted probability distributions for emotion and topic. The uncertainty of each task is calculated using entropy:
where is the class index, is the predicted probability assigned to class by the CFN, and is the total number of classes for task ( for emotion and for topic). The resulting normalized entropy 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 , where ; otherwise, the original label is retained.
Relabeling Strategies
Three uncertainty-based relabeling strategies are explored:
Medium Uncertainty: Training samples with prediction uncertainty between the and 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.
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.
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 . 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 , 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.
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.
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.
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.
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.

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.

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

Figure 6. Class distribution vs. class weights for Sentiment and Topic
Baselines
The extended CFN is compared against the following baselines using MentalRoBERTa.
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.
The Three-task CFN [7] is the original CFN jointly modeling Mental Health Condition, Emotion and Sentiment tasks without Topic.
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:
| Parameter | Value |
| Optimizer | AdamW |
| Learning Rate | |
| Weight Decay | 0.01 |
| Scheduler | Linear warmup-decay (10% warmup) |
| Gradient Clipping | 1.0 |
| Batch Size | 32 |
| Epochs | 50 |
| Early Stopping | 5 epochs |
| Random Seed | 42 |
| Max Sequence Length | 512 tokens |
| Hidden Size | 256 |
| Dropout | 0.5 |
| Attention Heads | 4 |
Table 1. Experimental Configuration used for training the Core Fusion Network (CFN)
where , , , 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 (), 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.
| Categories | Baseline CFN | Stepwise Relabeling Stage 2 | ||||||
| Accuracy | Precision | Recall | F1 | Accuracy | Precision | Recall | F1 | |
| 28 GoEmotions | 0.5740 | 0.5757 | 0.5740 | 0.5723 | 0.3292 | 0.3099 | 0.3292 | 0.2309 |
| 7 Grouped Categories | 0.7032 | 0.7039 | 0.7032 | 0.7030 | 0.7083 | 0.7075 | 0.7083 | 0.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.
| Task | Mt-FnS Baseline Accuracy | Mt-FnS Baseline Precision | Mt-FnS Baseline Recall | Mt-FnS Baseline F1 | Three-Task CFN Baseline Accuracy | Three-Task CFN Baseline Precision | Three-Task CFN Baseline Recall | Three-Task CFN Baseline F1 | Extended CFN Baseline Accuracy | Extended CFN Baseline Precision | Extended CFN Baseline Recall | Extended CFN Baseline F1 | Extended CFN + Stepwise Relabeling Stage 2 Accuracy | Extended CFN + Stepwise Relabeling Stage 2 Precision | Extended CFN + Stepwise Relabeling Stage 2 Recall | Extended CFN + Stepwise Relabeling Stage 2 F1 |
| Condition | 0.6895 | 0.6953 | 0.6895 | 0.6902 | 0.6970 | 0.6980 | 0.6970 | 0.6960 | 0.6965 | 0.7003 | 0.6965 | 0.6974 | 0.6974 | 0.6995 | 0.6974 | 0.6980 |
| Emotion | 0.7061 | 0.7064 | 0.7061 | 0.7043 | 0.6770 | 0.6780 | 0.6770 | 0.6760 | 0.7032 | 0.7039 | 0.7032 | 0.7030 | 0.7083 | 0.7075 | 0.7083 | 0.7066 |
| Sentiment | 0.9089 | 0.9112 | 0.9089 | 0.9100 | 0.9170 | 0.9190 | 0.9170 | 0.9180 | 0.9168 | 0.9160 | 0.9168 | 0.9164 | 0.9203 | 0.9174 | 0.9203 | 0.9184 |
| Topic | 0.5896 | 0.6316 | 0.5896 | 0.5984 | — | — | — | — | 0.5940 | 0.6407 | 0.5940 | 0.6045 | 0.6097 | 0.6483 | 0.6097 | 0.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.
| Task | Core Fusion Network - MentalBERT Baseline Accuracy | Precision | Recall | F1 | Core Fusion Network - MentalBERT Stepwise Relabeling Stage 2 Accuracy | Precision | Recall | F1 | Core Fusion Network - MentalRoBERTa Baseline Accuracy | Precision | Recall | F1 | Core Fusion Network - MentalRoBERTa Stepwise Relabeling Stage 2 Accuracy | Precision | Recall | F1 |
| Condition | 0.6846 | 0.6914 | 0.6846 | 0.6847 | 0.6870 | 0.6907 | 0.6870 | 0.6880 | 0.6965 | 0.7003 | 0.6965 | 0.6974 | 0.6974 | 0.6995 | 0.6974 | 0.6980 |
| Emotion | 0.7188 | 0.7182 | 0.7188 | 0.7180 | 0.7197 | 0.7191 | 0.7197 | 0.7190 | 0.7032 | 0.7039 | 0.7032 | 0.7030 | 0.7083 | 0.7075 | 0.7083 | 0.7066 |
| Sentiment | 0.9003 | 0.9009 | 0.9003 | 0.9005 | 0.9043 | 0.9044 | 0.9043 | 0.9043 | 0.9168 | 0.9160 | 0.9168 | 0.9164 | 0.9203 | 0.9174 | 0.9203 | 0.9184 |
| Topic | 0.5637 | 0.6136 | 0.5637 | 0.5741 | 0.5798 | 0.6194 | 0.5798 | 0.5877 | 0.5940 | 0.6407 | 0.5940 | 0.6045 | 0.6097 | 0.6483 | 0.6097 | 0.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.
| Task | Extended CFN + Stepwise Relabeling Stage 2 Accuracy | Extended CFN + Stepwise Relabeling Stage 2 Precision | Extended CFN + Stepwise Relabeling Stage 2 Recall | Extended CFN + Stepwise Relabeling Stage 2 F1 | Three-Task CFN + Stepwise Relabeling Stage 2 Accuracy | Three-Task CFN + Stepwise Relabeling Stage 2 Precision | Three-Task CFN + Stepwise Relabeling Stage 2 Recall | Three-Task CFN + Stepwise Relabeling Stage 2 F1 |
| Condition | 0.6974 | 0.6995 | 0.6974 | 0.6980 | 0.7058 | 0.7075 | 0.7058 | 0.7055 |
| Emotion | 0.7083 | 0.7075 | 0.7083 | 0.7066 | 0.7167 | 0.7186 | 0.7167 | 0.7168 |
| Sentiment | 0.9203 | 0.9174 | 0.9203 | 0.9184 | 0.9177 | 0.9210 | 0.9177 | 0.9191 |
| Topic | 0.6097 | 0.6483 | 0.6097 | 0.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.
| Task | CFN (MentalRoBERTa) Accuracy | CFN (MentalRoBERTa) F1 | MentalLLaMA-7B (QLoRA) Accuracy (Zero-Shot) | MentalLLaMA-7B (QLoRA) Accuracy (Few-Shot) |
| Condition | 0.7400 | 0.7390 | 0.5333 | 0.5507 |
| Emotion | 0.6427 | 0.6384 | 0.2800 | 0.3160 |
| Sentiment | 0.9027 | 0.9059 | 0.8333 | 0.7813 |
| Topic | 0.1747 | 0.1578 | 0.3053 | 0.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.
| Task | Baseline Accuracy | Baseline F1 | High Uncertainty Accuracy | High Uncertainty F1 | Medium Uncertainty Accuracy | Medium Uncertainty F1 | Random Sampling Accuracy | Random Sampling F1 | Stepwise Relabeling Stage 1 Accuracy | Stepwise Relabeling Stage 1 F1 | Stepwise Relabeling Stage 2 Accuracy | Stepwise Relabeling Stage 2 F1 |
| Condition | 0.6965 | 0.6974 | 0.6933 | 0.6938 | 0.6959 | 0.6971 | 0.6915 | 0.6928 | 0.6971 | 0.6975 | 0.6974 | 0.6980 |
| Emotion | 0.7032 | 0.7030 | 0.7074 | 0.7056 | 0.7106 | 0.7094 | 0.6978 | 0.6983 | 0.7094 | 0.7073 | 0.7083 | 0.7066 |
| Sentiment | 0.9168 | 0.9164 | 0.9186 | 0.9179 | 0.9200 | 0.9181 | 0.9188 | 0.9187 | 0.9175 | 0.9173 | 0.9203 | 0.9184 |
| Topic | 0.5940 | 0.6045 | 0.5709 | 0.5811 | 0.6019 | 0.6097 | 0.5575 | 0.5702 | 0.6021 | 0.6115 | 0.6097 | 0.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 , the Active Learning-based Stepwise Relabeling approach is evaluated at , 0.70, and 0.80 (Table 8). A threshold of is the only setting at which Stepwise Relabeling Stage 2 improves all four tasks over the baseline CFN. A lower threshold of 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 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, is used in all other experiments.
| Task | Stage S1 Accuracy | Stage S1 F1 | Stage S2 Accuracy | Stage S2 F1 | Stage S1 Accuracy | Stage S1 F1 | Stage S2 Accuracy | Stage S2 F1 | Stage S1 Accuracy | Stage S1 F1 | Stage S2 Accuracy | Stage S2 F1 |
| Condition | 0.6862 | 0.6879 | 0.6909 | 0.6915 | 0.6971 | 0.6975 | 0.6974 | 0.6980 | 0.6918 | 0.6924 | 0.6954 | 0.6956 |
| Emotion | 0.7075 | 0.7053 | 0.7053 | 0.7037 | 0.7094 | 0.7073 | 0.7083 | 0.7066 | 0.7104 | 0.7079 | 0.7071 | 0.7060 |
| Sentiment | 0.9199 | 0.9184 | 0.9194 | 0.9181 | 0.9175 | 0.9173 | 0.9203 | 0.9184 | 0.9132 | 0.9154 | 0.9166 | 0.9176 |
| Topic | 0.6238 | 0.6329 | 0.6276 | 0.6347 | 0.6021 | 0.6115 | 0.6097 | 0.6190 | 0.5389 | 0.5498 | 0.5391 | 0.5501 |
Table 8. Effect of confidence threshold 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.

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

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.

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

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]World Health Organization: Mental Health: Strengthening Our Response (2025). https://www.who.int/news-room/fact-sheets/detail/mental-health-strengthening-our-response
- [2]World Health Organization: Mental Health (2026). https://www.who.int/health-topics/mental-health
- [3]World Health Organization: Mental Disorders (2025). https://www.who.int/ news-room/fact-sheets/detail/mental-disorders
- [4]CNN Health: Mental Disorder Rate Worldwide Study (2026). https://edition.cnn.com/2026/05/21/health/mental-disorder-rate-worldwide-study-wellness
- [5]World Health Organization: Adolescent Mental Health (2025). https://www.who.int/news-room/fact-sheets/detail/adolescent-mental-health
- [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]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]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]Ruder, S.: An Overview of Multi-Task Learning in Deep Neural Networks (2017). https://arxiv.org/abs/1706.05098
- [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]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]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]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]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]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]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]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]Lowe, S.: roberta-base-go-emotions. https://huggingface.co/SamLowe/roberta-base-go-emotions (2024)DOI
- [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