Harnessing Large Language Models Over Transformer Models for Detecting Bengali Depressive Social Media Text: A Comprehensive Study
Leveraging large language models (GPT-3.5, GPT-4, DepGPT) combined with deep learning and transformers for accurate Bengali social media depression detection.
Key Findings
Methodology
This study employs a comparative framework integrating SVM, LSTM, Bi-LSTM, GRU, BERT variants, and large models (GPT-3.5, GPT-4, DepGPT). Data from Reddit and X was translated and annotated by experts, forming the Bengali Social Media Depressive Dataset (BSMDD). Model architectures include embedding layers, recurrent units, transformer layers, and fine-tuning strategies, evaluated via zero-shot and few-shot learning. DepGPT, fine-tuned from GPT-3.5, significantly outperforms others with an accuracy of 0.9796 and F1-score of 0.9804.
Key Results
- DepGPT surpasses Alpaca LoRA 7B in zero and few-shot scenarios, achieving near-perfect accuracy (0.9796) and F1 (0.9804), outperforming GPT-3.5 Turbo and other models.
- SahajBERT and Bi-LSTM with FastText embeddings excel in sentiment tasks, with SahajBERT achieving the highest accuracy.
- Models demonstrate strong generalization across linguistic contexts, confirming the potential of large-scale models in low-resource Bengali depression detection.
Significance
This work advances the automated detection of Bengali depressive texts, showcasing the power of large language models in mental health applications. By integrating deep learning and transformers, it significantly improves detection accuracy, facilitating early intervention. The findings contribute to multilingual mental health research and pave the way for AI-assisted diagnostic tools, promoting accessible mental health screening globally.
Technical Contribution
The study introduces DepGPT, a fine-tuned GPT-3.5 model, with a comprehensive comparison of multiple architectures. It details the transformer-based design, embedding strategies, and fine-tuning procedures, demonstrating superior performance in low-resource settings. The research also systematically evaluates zero-shot and few-shot capabilities, establishing new benchmarks for Bengali depression detection.
Novelty
This is the first comprehensive comparison of large language models (GPT-3.5, GPT-4, DepGPT) versus traditional deep models on Bengali social media data. The fine-tuned DepGPT model and the combined zero/few-shot evaluation represent a novel approach, addressing resource scarcity and linguistic challenges in mental health detection.
Limitations
- The models struggle with highly subtle or sarcastic expressions, leading to misclassification in complex contexts.
- Limited dataset size may restrict generalization, especially for rare expressions of depression.
- High computational costs for training and deployment pose challenges for real-time applications.
Future Work
Future efforts will incorporate multimodal data (audio, images) to improve robustness, enhance model interpretability with explainable AI techniques, and expand datasets with clinical validation. Developing lightweight models for deployment in resource-constrained environments is also a key direction.
AI Executive Summary
Depression remains a pervasive yet underdiagnosed mental health issue worldwide, often hidden behind silent suffering. Traditional diagnosis relies on clinical interviews, which are costly and inaccessible at scale. Meanwhile, social media platforms have become a rich source of emotional expression, offering an opportunity to detect early signs of depression through text analysis.
This research harnesses the power of large language models (LLMs) such as GPT-3.5, GPT-4, and a novel fine-tuned model, DepGPT, to classify Bengali social media posts as depressive or non-depressive. The foundation of this work is a newly created dataset, BSMDD, which combines expert translation and annotation of Reddit and X data, ensuring high-quality labels. The models are evaluated under zero-shot and few-shot learning paradigms, reflecting real-world scenarios where labeled data is scarce.
Experimental results demonstrate that DepGPT achieves an accuracy of 97.96% and an F1-score of 98.04%, outperforming all baseline models, including GPT-3.5 Turbo and Alpaca LoRA 7B. The study highlights the exceptional adaptability of large models in low-resource settings, emphasizing their potential for scalable mental health screening. Additionally, the research compares traditional deep learning approaches like LSTM and Bi-LSTM, which perform well but are surpassed by LLMs.
The implications of this work are profound: deploying such models in social media monitoring can facilitate early detection and intervention, reducing the burden of untreated depression. The study also discusses challenges such as model interpretability and computational costs, proposing future directions including multimodal data integration and clinical validation. Overall, this work marks a significant step toward AI-enabled mental health diagnostics in low-resource languages, with broad societal benefits.
Deep Analysis
Background
Depression is among the most prevalent mental illnesses globally, yet diagnosis remains challenging due to stigma, resource limitations, and subjective assessment methods. Recent advances in NLP and machine learning have enabled automated detection of depressive symptoms from social media texts, with models like Support Vector Machines, Naive Bayes, and deep neural networks demonstrating varying degrees of success. Transformer-based models such as BERT and its multilingual variants have further improved accuracy by capturing contextual semantics. However, most prior work focused on English or resource-rich languages, leaving low-resource languages like Bengali underexplored. The emergence of large-scale pre-trained models such as GPT-3 and GPT-4 has revolutionized NLP, offering unprecedented transfer learning capabilities. This study builds on these developments, aiming to adapt LLMs for Bengali depression detection, a language with limited annotated datasets and unique linguistic features. By combining traditional models, deep learning, transformers, and LLMs, the research seeks to establish a comprehensive framework for low-resource mental health analysis, addressing linguistic, cultural, and technical challenges.
Core Problem
The core challenge is to accurately classify Bengali social media texts into depressive or non-depressive categories, despite linguistic complexities and data scarcity. Existing models struggle with subtle expressions, sarcasm, and cultural nuances. Moreover, low-resource settings hinder the effective training of large models from scratch. The problem is compounded by the need for models that can perform well with minimal labeled data, leveraging zero-shot and few-shot learning. Developing a robust, scalable, and interpretable system capable of early depression detection in Bengali social media content is crucial for public health initiatives. Addressing these issues requires innovative model architectures, transfer learning strategies, and high-quality datasets, which this study aims to provide.
Innovation
This work introduces several innovations: 1) a fine-tuned DepGPT model based on GPT-3.5, optimized for Bengali depression detection; 2) a comprehensive comparison of deep learning, transformer, and large language models in low-resource scenarios; 3) the creation of a high-quality, expert-annotated Bengali social media depression dataset (BSMDD); 4) application of zero-shot and few-shot learning techniques to low-resource language tasks. These innovations enable models to achieve high accuracy with limited labeled data, overcoming resource constraints. The integration of expert translation, annotation, and advanced fine-tuning strategies distinguishes this work from prior studies, providing a scalable solution adaptable to other low-resource languages and mental health applications.
Methodology
- �� Data collection: Extract social media posts from Reddit and X, focusing on depression-related subreddits and general tweets.
- �� Annotation: Experts translate and label posts as depressive or non-depressive, ensuring high-quality, culturally relevant labels.
- �� Preprocessing: Remove duplicates, short texts (<30 words), English characters, hashtags, URLs, and symbols; tokenize, remove stop words, and apply stemming.
- �� Dataset split: Divide into 80% training and 20% testing, maintaining class balance.
- �� Model training: Implement traditional classifiers (SVM, Naive Bayes), deep models (LSTM, Bi-LSTM, GRU), transformer models (BERT, BanglaBERT, SahajBERT), and large models (GPT-3.5, GPT-4, DepGPT).
- �� Fine-tuning: Adapt GPT-3.5 to depression detection task via supervised learning, optimizing hyperparameters.
- �� Evaluation: Use accuracy, precision, recall, F1-score; compare zero-shot and few-shot performance across models.
Experiments
The dataset comprises 28,000 balanced samples, split into training and testing sets. Models are trained on 80% of data, tested on 20%. DepGPT, fine-tuned from GPT-3.5, achieves an accuracy of 97.96%, F1-score of 98.04%. Baseline models like GPT-3.5 Turbo and Alpaca LoRA 7B show lower performance in zero and few-shot scenarios. The experiments include ablation studies on embedding strategies, model architectures, and learning paradigms. Evaluation metrics focus on accuracy, F1-score, recall, and precision, validating the effectiveness of the proposed approach. The results demonstrate the superiority of DepGPT in low-resource settings, confirming its potential for real-world deployment.
Results
DepGPT achieves 97.96% accuracy and 98.04% F1-score, outperforming all baselines, especially in zero-shot and few-shot contexts. SahajBERT and Bi-LSTM with FastText embeddings also perform well, validating the effectiveness of combining pre-trained transformers with traditional embeddings. The models generalize effectively across linguistic variations, confirming the robustness of the approach. These findings highlight the transformative potential of large models in low-resource mental health detection, setting new benchmarks for Bengali NLP tasks.
Applications
The developed models can be integrated into social media monitoring tools for early depression screening, providing real-time alerts to mental health authorities. They can assist in public health surveillance, identifying high-risk regions or populations. In clinical settings, such tools can support mental health professionals by pre-screening large volumes of social media data, enabling targeted interventions. Future integration with multimodal data (voice, images) could further enhance detection accuracy and user engagement, making mental health support more accessible and scalable.
Limitations & Outlook
Despite high performance, models may misclassify nuanced or sarcastic expressions, limiting reliability in complex contexts. Dataset size and diversity remain limited, affecting generalization. High computational costs for training and deployment pose practical challenges. Cultural and linguistic variations within Bengali-speaking populations may reduce model accuracy. Further research is needed to improve interpretability, reduce bias, and validate models in real-world clinical environments.
Plain Language Accessible to non-experts
想象你在一家工厂工作,工厂里有许多不同的机器,每台机器负责不同的任务。有些机器专门检测产品是否有缺陷,有些则负责包装。现在,假设你想让工厂自动检测出那些可能出现问题的产品。你可以用一种特别聪明的机器人(就像大规模语言模型)来帮忙。这个机器人通过学习大量的产品图片和描述,变得非常擅长识别问题。它可以在很短的时间内判断出哪些产品可能有缺陷,甚至在只看少量样本的情况下也能做出准确判断。这个机器人还可以不断学习,变得更聪明。就像工厂里的检测员一样,它帮助工厂提高效率,减少错误。这个研究就是在用类似的“机器人”来分析社交媒体上的文字,找出那些可能有抑郁倾向的内容,从而帮助心理医生早发现问题,及时干预。
ELI14 Explained like you're 14
你知道在社交媒体上,人们会分享自己的心情和想法。有时候,有些人可能在表达自己很难过、没有动力,甚至有自杀的念头。可是这些信息很难被普通人发现,更别说医生了。这个研究就像发明了一台超级聪明的“侦探机器人”,它可以阅读很多人的帖子,快速判断出哪些人可能在经历抑郁。它用一种叫做“语言模型”的技术,像我们学习语言一样,学习大量的文字,然后变得非常聪明。这个机器人可以在几秒钟内分析出潜在的抑郁迹象,比人类更快更准确。这样,心理医生就可以提前知道哪些人需要帮助,及时干预,避免悲剧发生。这个技术就像给社交媒体加了一双“隐形的眼睛”,让我们更关心身边的朋友们。
Abstract
In an era where the silent struggle of underdiagnosed depression pervades globally, our research delves into the crucial link between mental health and social media. This work focuses on early detection of depression, particularly in extroverted social media users, using LLMs such as GPT 3.5, GPT 4 and our proposed GPT 3.5 fine-tuned model DepGPT, as well as advanced Deep learning models(LSTM, Bi-LSTM, GRU, BiGRU) and Transformer models(BERT, BanglaBERT, SahajBERT, BanglaBERT-Base). The study categorized Reddit and X datasets into "Depressive" and "Non-Depressive" segments, translated into Bengali by native speakers with expertise in mental health, resulting in the creation of the Bengali Social Media Depressive Dataset (BSMDD). Our work provides full architecture details for each model and a methodical way to assess their performance in Bengali depressive text categorization using zero-shot and few-shot learning techniques. Our work demonstrates the superiority of SahajBERT and Bi-LSTM with FastText embeddings in their respective domains also tackles explainability issues with transformer models and emphasizes the effectiveness of LLMs, especially DepGPT, demonstrating flexibility and competence in a range of learning contexts. According to the experiment results, the proposed model, DepGPT, outperformed not only Alpaca Lora 7B in zero-shot and few-shot scenarios but also every other model, achieving a near-perfect accuracy of 0.9796 and an F1-score of 0.9804, high recall, and exceptional precision. Although competitive, GPT-3.5 Turbo and Alpaca Lora 7B show relatively poorer effectiveness in zero-shot and few-shot situations. The work emphasizes the effectiveness and flexibility of LLMs in a variety of linguistic circumstances, providing insightful information about the complex field of depression detection models.