Related Experiment Video
Updated: Sep 14, 2025

Author Spotlight: Therapeutic Benefit of Closed-Loop Deep Brain Stimulation in Depression Treatment
Published on: July 7, 2023
MentalRoBERTa-Caps: A capsule-enhanced transformer model for mental health classification
Faheem Ahmad Wagay1, Jahiruddin1, Yasir Altaf2
1Jamia Millia Islamia University, New Delhi 10025, India.
Abstract:
In recent years, the dominance of Large Language Models (LLMs) such as BERT and RoBERTa has led to remarkable improvements in NLP tasks, including mental illness detection from social media text. However, these models are often computationally intensive, requiring significant processing time and resources, which limits their applicability in real-time or resource-constrained environments. This paper proposes a lightweight yet effective hybrid model that integrates a 6-layer RoBERTa encoder with a capsule network architecture to balance performance, interpretability, and computational efficiency. The contextual embeddings generated by RoBERTa are transformed into primary capsules, and dynamic routing is employed to generate class capsule outputs that capture high-level abstractions. To validate performance and explainability, we employ LIME (Local Interpretable Model-Agnostic Explanations) to provide insights into feature contributions and model decisions. Experimental results on benchmark mental health datasets demonstrate that our approach achieves high accuracy while significantly reducing inference time, making it suitable for deployment in real-world mental health monitoring systems.1.To design a computationally efficient architecture for mental illness detection using a lightweight RoBERTa encoder integrated with capsule networks.2.To perform a detailed time complexity analysis highlighting the trade-offs between performance and efficiency.3.To enhance model interpretability through LIME-based feature attribution, supporting transparent and ex- plainable predictions.
Related Concept Videos
Classification of Illness
An illness is a response to a disease in which the person's level of functioning is changed compared with a previous level. The general classification of illness includes acute and chronic.
Acute illness is severe...
Modeling in Therapy
Participant Modeling
Participant modeling involves therapists demonstrating calm and effective behaviors in...
Classification of Neurotransmitters

