Mental health sentiment analysis on social media using a fine-tuned BERT–GRU framework

Mental health problems, such as depression, anxiety, stress, bipolar disorder, and thoughts of suicide are a serious health issue in the world today. Because users of social media platforms generate vast amounts of text, these data can provide researchers with insight into their emotional and psychological condition. However, owing to linguistic variability, contextual ambiguity, and the complex language of emotions, extracting meaningful indications of mental health from noisy, unstructured social media data is challenging. In this study, the authors propose a hybrid deep-learning framework, called FBert-GRU, which combines the fine-tuned Bidirectional Encoder Representations from Transformers (BERT) with Gated Recurrent Units (GRU) to learn the contextual semantic information and sequential emotional patterns. The framework was evaluated on a public mental health dataset comprising social media posts that were labeled for several mental health conditions. The experimental results showed an accuracy of 96%, a precision of 87%, a recall of 82%, an F1-score of 81% and an AUC-ROC of 94%. The experimental results showed that the proposed method using contextual embeddings and sequential learning improved the detection of mental health-related signals from social media text compared with the benchmark models. The suggested framework offers a promising strategy for conducting mental health evaluations and behavioral trend analysis at a large scale and for the digital monitoring of mental health.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2026-11-18
DOI
https://doi.org/10.1038/s41598-026-75415-1
Primary Topic
Mental Health via Writing
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Mental health sentiment analysis on social media using a fine-tuned BERT–GRU framework

Sudheer Kumar Singh, Dheeraj Tandon, Nisha Singh, Virendra Singh et al.
2 links
Scientific Reports
Mental Health via Writing
article

Mental health sentiment analysis on social media using a fine-tuned BERT–GRU framework

Sudheer Kumar Singh, Dheeraj Tandon, Nisha Singh, Virendra Singh, Ranjana Singh, Santosh Kumar
article en

Abstract

Mental health problems, such as depression, anxiety, stress, bipolar disorder, and thoughts of suicide are a serious health issue in the world today. Because users of social media platforms generate vast amounts of text, these data can provide researchers with insight into their emotional and psychological condition. However, owing to linguistic variability, contextual ambiguity, and the complex language of emotions, extracting meaningful indications of mental health from noisy, unstructured social media data is challenging. In this study, the authors propose a hybrid deep-learning framework, called FBert-GRU, which combines the fine-tuned Bidirectional Encoder Representations from Transformers (BERT) with Gated Recurrent Units (GRU) to learn the contextual semantic information and sequential emotional patterns. The framework was evaluated on a public mental health dataset comprising social media posts that were labeled for several mental health conditions. The experimental results showed an accuracy of 96%, a precision of 87%, a recall of 82%, an F1-score of 81% and an AUC-ROC of 94%. The experimental results showed that the proposed method using contextual embeddings and sequential learning improved the detection of mental health-related signals from social media text compared with the benchmark models. The suggested framework offers a promising strategy for conducting mental health evaluations and behavioral trend analysis at a large scale and for the digital monitoring of mental health.

Scientific Reports
Galgotias University (IN), University of Lucknow (IN), Manipal University Jaipur (IN), Sharda University (IN)
Good health and well-being
Mental Health via Writing
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon