Decoding Minds through Machines: A Transformer-Driven Deep Learning Framework for Mental Health Text Classification

Read full text Summarise with VIRAT
Authors: Sujata N Patil, Vidya Shinde
Cited by: 0
References: 6

Summary

No summary yet. VIRAT can read this paper and write a plain-language summary of its aim, methods, key findings and limitations.

Summarise with VIRAT Free to try with your Science Catalogs account.

Abstract

Mental health disorders remain a major global concern, and many cases continue to go unreported because people hesitate to share their struggles or lack access to proper diagnosis. With advancements in natural language processing (NLP), text-based analysis has become a powerful way to detect signs of mental distress. In this research, a transformer-based model-specifically BERT was used to predict whether individuals are likely to seek mental health treatment based on their survey responses. The Mental Health Dataset includes demographic details, stress levels, coping patterns, and family history, all of which were merged into a single text format and processed using BERT’s tokenizer to capture deeper meaning. The model was trained in PyTorch using the AdamW optimizer with a linear learning rate schedule to support steady improvement. After four training epochs, the model achieved 95% accuracy, along with precision, recall, and F1-scores above 0.94. A confusion matrix further showed that the predicted and actual labels were closely aligned, reflecting strong reliability. Overall, the findings indicate that transformer models are highly effective at recognizing language patterns linked to mental health. This approach provides a scalable and data-driven way to identify potential risks early and can be integrated into digital health platforms to support timely help and better clinical decision-making.

Fields of Study & Subjects

Mental Health via Writing Artificial Intelligence in Healthcare Sentiment Analysis and Opinion Mining

Publication details

Journal / source
INTERNATIONAL JOURNAL OF MATHEMATICS AND COMPUTER RESEARCH
Volume
14
Issue
03
Publication date
30 March 2026
Language
EN