Mental Health Safety and Depression Detection in Social Media Text Data: A Classification Approach Based on a Deep Learning Model

Authors

  • Subramanian K.M, Mr Imtiyaz Khan, Nida Safia Yousuf Author

DOI:

https://doi.org/10.62643/

Keywords:

Depression Detection, Social Media Analysis, Deep Learning, BERT Embeddings, LSTM, GRU, Random Forest, Explainable AI

Abstract

Data collected from social media platforms can be useful to monitor people's mental health and provide instant information for early detection of depression when analysing users' content generated by them. In this paper, we test the performance of DL models on the Mental Health Social Media dataset from Kaggle to classify the depression related text. The data is put through a lot of preprocessing like normalisation, removing html and url, tokenisation, label encoding, embedding and vectorisation techniques like BERT embedding, Keras Tokeniser and TF-IDF vectorisation techniques that capture the semantic and contextual information. Class imbalance is addressed by using data balancing methods like SMOTE and random oversampling. We analyse several architectures namely, BERT-based LSTM, BERT-BiLSTM, BERT-LSTMGRU hybrids, standalone LSTM and GRU networks, and classic ML classifiers such as RF, SVM and VC. The results obtained from the experiments show that the VC achieves the highest accuracy of 93.9%, F1-score of 93.7%, and ROC-AUC of 87.5% compared to the individual DL and classical models. The analysis reveals that ensemble learning, where multiple models are merged, significantly improves the detection ability, and forms a good structure for the accurate and context-aware depression classification from social media texts that can be effectively used for timely mental health interventions and monitoring at scale.

Downloads

Published

01-12-2026

How to Cite

Mental Health Safety and Depression Detection in Social Media Text Data: A Classification Approach Based on a Deep Learning Model. (2026). International Journal of Engineering Research and Science & Technology, 22(4(1), 274-280. https://doi.org/10.62643/