Skip to main content

ETHNOS_APP

Home • Search • Journals • List 0

DynaMentA

Dynamic Prompt Engineering and Weighted Transformer Architecture for Mental Health Classification Using Social Media Data

Bibliographic Data

ID22109001
AuthorsAkshi Kumar (0000-0003-4263-7168, Goldsmiths University of London), Aditi Sharma (0000-0003-3778-4171, Thapar Institute of Engineering & Technology), Saurabh Raj Sangwan (0000-0002-0832-0362, Machine Intelligence Research Institute)
Year2025
Volume12
Issue6
Pages4193-4203
Publication date2025-12-01
Open AccessYes
TypeARTICLE
VenueIEEE Transactions on Computational Social Systems (JOURNAL)
Journal identifiersISSN: 2329-924X • E-ISSN: 2373-7476
PublisherInstitute of Electrical and Electronics Engineers (IEEE) (PUBLISHER)
DOI10.1109/tcss.2025.3569400
OpenAlexW4411019674
LanguageEN
References cited20

Mental health classification is inherently challenging, requiring models to capture complex emotional and linguistic patterns. Although large language models (LLMs) such as ChatGPT, Mental-Alpaca, and MentaLLaMA show promise, they are not trained on clinically grounded data and often overlook subtle psychological cues. Their predictions tend to overemphasize emotional intensity, while failing to capture contextually relevant indicators that are critical for accurate mental health assessment. This article introduces dynamic prompt engineering and weighted transformer architecture dynamic prompt engineering and weighted transformer architecture for mental health classification (DynaMentA), a novel dual-layer transformer framework that integrates the strengths of BioGPT and decoding-enhanced BERT with disentangled attention (DeBERTa) to address these challenges. BioGPT captures fine-grained biomedical indicators, while DeBERTa provides context-aware disambiguation. The ensemble mechanism dynamically weights their outputs, guided by a simulated feedback loop that refines the predictions during training. Unlike previous studies that treat classification statically, DynaMentA incorporates dynamic prompt engineering to better align with evolving linguistic and emotional signals. Evaluated on three benchmark datasets, DepSeverity, suicide versus depression classification natural language (SDCNL), and Dreaddit, DynaMentA achieves precision of 92.6%, 91.9% F1-score, and 0.94 AUC-ROC, consistently outperforming the existing benchmark, including general-purpose LLMs and domain-specific mental health models. This scalable and interpretable framework establishes a state-of-the-art methodology for computational mental health analysis in high-stakes applications, such as suicide risk assessment and crisis intervention and early detection of severe depressive episodes

Computer security · Data mining · Data science · Electrical engineering · Geography · Mental health · Psychiatry · Social media · Transformer · World Wide Web · Complex Network Analysis Techniques · Computer Science · Engineering · Mental Health Research Topics · Psychology · Sentiment Analysis and Opinion Mining · Architecture · Artificial Intelligence

  • Calibration of Transformer-Based Models for Identifying Stress and Depression in Social Media

    Open Access•Loukas Ilias, Spiros Mouzakitis et al.•IEEE Transactions on Computational…•2024

  • PsycoLLM

    Open Access•Jinpeng Hu, Tengteng Dong et al.•IEEE Transactions on Computational…•2025

  • Depression Screening in Humans With AI and Deep Learning Techniques

    Open Access•Mudasir Ahmad Wani, Mohammed El Affendi et al.•IEEE Transactions on Computational…•2023

  • Depression detection in social media posts using transformer-based models and auxiliary features

    Open Access•Marios Kerasiotis, Loukas Ilias et al.•Social Network Analysis and Mining•2024

Highly citedNo

Tools

Open DOI
Ethnos_APP • Open Source Project • MIT License • Frontend v2.0.0 • Privacy and Cookies • API Documentation: api.ethnos.app/docs • API Source Code: GitHub • DOI: 10.5281/zenodo.17049435 • Frontend Source Code: GitHub • DOI: 10.5281/zenodo.17050053 • cruz.rio.br • Expectantes Misericordiae