IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v13y2025i18p2918-d1745676.html
   My bibliography  Save this article

RAMHA: A Hybrid Social Text-Based Transformer with Adapter for Mental Health Emotion Classification

Author

Listed:
  • Mahander Kumar

    (Department of Computer Science, Mir Chakar Khan Rind University, Sibi 82000, Pakistan)

  • Lal Khan

    (Department of AI and SW, Gachon University, Seongnam 13120, Republic of Korea)

  • Ahyoung Choi

    (Department of AI and SW, Gachon University, Seongnam 13120, Republic of Korea)

Abstract

Depression, stress, and anxiety are mental health disorders that are increasingly becoming a huge challenge in the digital age; at the same time, it is critical that they are detected early. Social media is a rich and complex source of emotional expressions that requires intelligent systems that can decode subtle psychological states from natural language. This paper presents RAMHA (RoBERTa with Adapter-based Mental Health Analyzer), a hybrid deep learning model that combines RoBERTa, parameter-efficient adapter layers, BiLSTM, and attention mechanisms and is further optimized with focal loss to address the class imbalance problem. When tested on three filtered versions of the GoEmotions dataset, RAMHA shows outstanding results, with a maximum accuracy of 92% in binary classification and 88% in multiclass tasks. A large number of experiments are performed to compare RAMHA with eight standard baseline models, including SVM, LSTM, and BERT. In these experiments, RAMHA is able to consistently outperform the other models in terms of accuracy, precision, recall, and F1-score. Ablation studies further confirm the contributions of the individual components of the architecture, and comparative analysis demonstrates that RAMHA outperforms the best previously reported F1-scores by a substantial margin. The results of our study not only indicate the potential of the adapter-enhanced transformer in emotion-aware mental health screening but also establish a solid basis for its use in clinical and social settings.

Suggested Citation

  • Mahander Kumar & Lal Khan & Ahyoung Choi, 2025. "RAMHA: A Hybrid Social Text-Based Transformer with Adapter for Mental Health Emotion Classification," Mathematics, MDPI, vol. 13(18), pages 1-26, September.
  • Handle: RePEc:gam:jmathe:v:13:y:2025:i:18:p:2918-:d:1745676
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/13/18/2918/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/13/18/2918/
    Download Restriction: no
    ---><---

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jmathe:v:13:y:2025:i:18:p:2918-:d:1745676. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.