A Hybrid Deep Learning Framework with Swarm-Optimized Ensemble Learning for Depression Detection from Social Media Text

Main Article Content

Nikhil Karale
Vijay Gulhane

Abstract

Depression is a pervasive mental health disorder and a leading contributor to global disability, often remaining undiagnosed due to social stigma and the limitations of traditional screening methods. The widespread use of social media platforms generates a rich corpus of textual data that can serve as a passive indicator of an individual’s mental state. This paper proposes a novel hybrid deep learning framework for the detection of depressive symptoms from social media text. The framework integrates a Convolutional Neural Network (CNN) for extracting local linguistic features with a Bidirectional Long Short‑Term Memory (BiLSTM) network for capturing long‑range contextual dependencies. To further enhance performance, the model is integrated into an ensemble learning architecture, where the hyperparameters of the individual models are optimized using a Particle Swarm Optimization (PSO) algorithm. The proposed methodology is evaluated on a publicly available dataset of Reddit posts annotated for depressive content. Experimental results demonstrate that the proposed hybrid ensemble model, optimized via PSO, achieves superior performance in terms of accuracy, precision, recall, and F1‑score compared to several baseline machine learning and standard deep learning models. The findings underscore the efficacy of combining feature extraction techniques with optimized ensemble strategies for developing robust, automated depression detection systems.

Citations

Downloads

Download data is not yet available.

Article Details

Section

Research Articles

How to Cite

Karale, N., & Gulhane, V. (2026). A Hybrid Deep Learning Framework with Swarm-Optimized Ensemble Learning for Depression Detection from Social Media Text. Interdisciplinary Journal of AI, Machine Learning & Data Science, 1(2), e003. https://doi.org/10.66261/ybmg0k63

References

[1] World Health Organization. (2021). Depression and Other Common Mental Disorders: Global Health Estimates. Geneva: World Health Organization.

[2] R. C. Kessler and E. J. Bromet, “The epidemiology of depression across cultures,” Annual Review of Public Health, vol. 34, pp. 119–138, 2013.

[3] A. H. Weinberger, M. Gbedemah, A. M. Martinez, D. Nash, S. Galea, and R. D. Goodwin, “Trends in depression prevalence in the USA from 2005 to 2015: Widening disparities in vulnerable groups,” Psychological Medicine, vol. 48, no. 8, pp. 1308–1315, 2017.

[4] E. Cambria and B. White, “Jumping NLP curves: A review of natural language processing research,” IEEE Computational Intelligence Magazine, vol. 9, no. 2, pp. 48–57, 2014.

[5] M. Jana, J. H. Havigerová, D. Kucera, and P. Hoffmannova, “Text‑based detection of the risk of depression,” Frontiers in Psychology, vol. 10, p. 513, 2019.

[6] M. Islam, M. A. Kabir, A. Ahmed, A. R. M. Kamal, H. Wang, and A. Ulhaq, “Depression detection from social network data using machine learning techniques,” Health Information Science and Systems, vol. 6, no. 1, pp. 1–12, 2018.

[7] M. Z. Uddin, K. K. Dysthe, A. Følstad, and P. B. Brandtzaeg, “Deep learning for prediction of depressive symptoms in a large textual dataset,” Neural Computing and Applications, vol. 34, pp. 721–744, 2021.

[8] H. Kour and M. K. Gupta, “A hybrid deep learning approach for depression prediction from user tweets using feature‑rich CNN and bi‑directional LSTM,” Multimedia Tools and Applications, vol. 81, pp. 23649–23685, 2022.

[9] J. Kennedy and R. Eberhart, “Particle swarm optimization,” in Proceedings of ICNN’95 - International Conference on Neural Networks, vol. 4, Perth, WA, Australia, 1995, pp. 1942–1948.

[10] M. De Choudhury, M. Gamon, S. Counts, and E. Horvitz, “Predicting depression via social media,” in Proceedings of the International AAAI Conference on Web and Social Media, Boston, MA, USA, 2013, pp. 128–137.

[11] G. Coppersmith, M. Dredze, and C. Harman, “Quantifying mental health signals in Twitter,” in Proceedings of the Workshop on Computational Linguistics and Clinical Psychology: From Linguistic Signal to Clinical Reality, Baltimore, MD, USA, 2014, pp. 51–60.

[12] A. H. Orabi, P. Buddhitha, M. H. Orabi, and D. Inkpen, “Deep learning for depression detection of Twitter users,” in Proceedings of the Fifth Workshop on Computational Linguistics and Clinical Psychology: From Keyboard to Clinic, New Orleans, LA, USA, 2018, pp. 88–97.

[13] H. Zogan, I. Razzak, X. Wang, S. Jameel, and G. Xu, “Explainable depression detection with multi‑aspect features using a hybrid deep learning model on social media,” World Wide Web, vol. 25, pp. 281–304, 2022.

[14] H. Gupta, L. Goel, A. Singh, A. Prasad, and M. A. Ullah, “Psychological analysis for depression detection from social networking sites,” Mental Illness: Detection and Analysis on Social Media, vol. 2022, Art. no. 4395358, 2022.

[15] M. Z. Uddin, K. K. Dysthe, A. Følstad, and P. B. Brandtzaeg, “Deep learning for prediction of depressive symptoms in a large textual dataset,” Neural Computing and Applications, vol. 34, pp. 721–744, 2021.

[16] N. E. Karale and V. S. Gulhane, “Deep Learning for Emotional Distress: An Enhanced Hybrid Optimization Model with Ensemble Learning,” in Proc. 2025 International Conference on Next Generation Information System Engineering (NGISE), Ghaziabad, India, 2025, pp. 1–6.

[17] K. Poongodi, A. Sharma, and R. Verma, “Emotion detection with GAN for depression assessment,” in Proc. 2024 IEEE International Conference on Smart Systems and Inventive Technology (ICSSIT), Tirunelveli, India, 2024, pp. 1–6.

[18] A. Sohofi, M. S. Helfroush, and A. H. Kashan, “Deep learning‑based chatbot for depression detection,” in Proc. 2024 International Conference on Machine Learning and Applications (ICMLA), Miami, FL, USA, 2024, pp. 1–5.

[19] A. Yates, A. Cohan, and N. Goharian, “Depression and self‑harm risk assessment in online forums,” in Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, Copenhagen, Denmark, 2017, pp. 2968–2978.

[20] J. Pennington, R. Socher, and C. D. Manning, “GloVe: Global vectors for word representation,” in Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), Doha, Qatar, 2014, pp. 1532–1543.