Mental Health Safety and Depression Detection in Social Media Text Data: A Classification Approach Based on a Deep Learning Model
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.
Authors
- Imtiyaz Khan (ORCID: https://orcid.org/0000-0001-9611-5280)
- Subramanian K.M3
- Nida Safia Yousuf
Publication Details
- Journal
- International Journal of Engineering Research and Science & Technology
- Published
- 2026-12-01
- Primary Topic
- Mental Health via Writing
- Type
- article
- Field-Weighted Citation Impact
- 0.00