A Hybrid Quantum-Classical Transformer Framework for Robust Depression Detection on Social Media: Enhancing Sensitivity via Variational Quantum Circuits

PDF (726KB), PP.203-214

Views: 0 Downloads: 0

Author(s)

Gaurav Kumar 1,* Rakesh Kumar Saxena 1 Rocky Kumar 1

1. Faculty of Computer Science and Engineering, Poornima University, Jaipur, Rajasthan, India

* Corresponding author.

DOI: https://doi.org/10.5815/ijieeb.2026.03.12

Received: 2 Feb. 2026 / Revised: 2 Apr. 2026 / Accepted: 7 May 2026 / Published: 8 Jun. 2026

Index Terms

Quantum NLP, Hybrid Neural Networks, Depression Detection, Variational Quantum Circuits, PennyLane, DistilBERT, Mental Health AI

Abstract

This study proposes a hybrid quantum-classical framework for depression detection from social media text, integrating a frozen DistilBERT encoder with a variational quantum circuit (VQC)-based classification layer. The motivation stems from challenges in clinical NLP, including overfitting on limited datasets and high parameter overhead in conventional deep learning classifiers. Experiments are conducted on a balanced subset of the Reddit Self-Reported Depression Diagnosis (RSDD) dataset comprising 6,000 users. The proposed model is evaluated against classical baselines, including TF-IDF with logistic regression and a fine-tuned DistilBERT model. Results indicate that the hybrid approach achieves competitive performance, with an F1-score of 0.925 (±0.009) and improved recall (0.942 ± 0.015) compared to the classical DistilBERT baseline. Additionally, the quantum classification layer requires significantly fewer trainable parameters (72) compared to the classical dense head, demonstrating improved parameter efficiency at the classification stage. While the results suggest that variational quantum circuits can serve as an alternative non-linear classifier in low-data settings, the findings are based on simulation and require further validation on real quantum hardware. This work contributes to the emerging area of quantum natural language processing by providing an empirical evaluation of hybrid architectures on a real-world clinical text dataset.

Cite This Paper

Gaurav Kumar, Rakesh Kumar Saxena, Rocky Kumar, "A Hybrid Quantum-Classical Transformer Framework for Robust Depression Detection on Social Media: Enhancing Sensitivity via Variational Quantum Circuits", International Journal of Information Engineering and Electronic Business(IJIEEB), Vol.18, No.3, pp. 203-214, 2026. DOI:10.5815/ijieeb.2026.03.12

Reference

[1]World Health Organization. Depressive disorder (depression). WHO Fact Sheets. https://www.who.int/news-room/fact-sheets/detail/depression (2024). Accessed 13 Dec 2025. 
[2]Devlin, J., Chang, M. W., Lee, K., & Toutanova, K. (2019). Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 conference of the North American chapter of the association for computational linguistics: human language technologies, volume 1 (long and short papers) (pp. 4171-4186).
[3]Wu, S., Li, J., Zhang, P., & Zhang, Y. (2021). Natural language processing meets quantum physics: A survey and categorization. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing (pp. 3172–3182). Association for Computational Linguistics.
[4]Kang, P. (2025). QFFN-BERT: An Empirical Study of Depth, Performance, and Data Efficiency in Hybrid Quantum-Classical Transformers. arXiv preprint arXiv:2507.02364.
[5]Masum, A. K. M., Maurya, A., Murthy, D. S., Pratibha, & Mahmud, N. (2023). Hybrid quantum-classical machine learning for sentiment analysis. In 2023 International Conference on Machine Learning and Applications (ICMLA) (pp. 1006–1011). IEEE. 
[6]Cerezo, M., Arrasmith, A., Babbush, R., et al. (2024). Variational quantum algorithms. Nature Reviews Physics, 6, 625–644.
[7]F. Orts, L. M. Donaire, G. Ortega, and E. M. Garzón, “A quantum-classical hybrid neural network for hate speech detection in Spanish,” Expert Systems with Applications, vol. 305, Art. no. 130859, 2026, doi: 10.1016/j.eswa.2025.130859
[8]M. Matero, A. Idnani, Y. Son, S. Giorgi, H. Vu, M. Zamani, P. Limbachiya, S. C. Guntuku, and H. A. Schwartz, “Suicide risk assessment with multi-level dual-context language and BERT,” in Proc. Sixth Workshop Comput. Linguistics Clin. Psychology (CLPsych), Minneapolis, MN, USA, 2019, pp. 39–44, doi: 10.18653/v1/W19-3005. 
[9]D. Widdows, W. Aboumrad, D. Kim, S. Ray, and J. Mei, “Quantum natural language processing,” Künstliche Intelligenz, vol. 38, pp. 293–310, 2024, doi: 10.1007/s13218-024-00861-w
[10]Lorenz, R., Pearson, A., Meichanetzidis, K., Kartsaklis, D., & Coecke, B. (2023). QNLP in practice: Running compositional models of meaning on a quantum computer. Journal of Artificial Intelligence Research, 76, 1305-1342.
[11]Chen, S., Yoo, S., & Fang, Y. Quantum long short-term memory. In ICASSP 2022 – 2022 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), 8622–8626 (2022). IEEE. 
[12]Grant, M., Petersen, I., Mthethwa, L., Luvuno, Z., & Bhana, A. (2022). Accuracy of a community mental health education and detection (CMED) tool for common mental disorders in KwaZulu-Natal, South Africa. International Journal of Mental Health Systems, 16(1), 44.
[13]Liu, Y., Ott, M., Goyal, N., Du, J., Joshi, M., Chen, D., ... & Stoyanov, V. (2019). Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692.
[14]Bhatt, K., Singh, A. K., Pandey, P., Vishnoi, A., & Narooka, P. (2026). Cross-platform social media analysis for mental health detection. Discover Mental Health.
[15]Ibrahimov, Y., Anwar, T., & Yuan, T. (2024). Explainable AI for mental disorder detection via social media: A survey and outlook. arXiv preprint arXiv:2406.05984.
[16]Zhang, T., Yang, K., Ji, S., & Ananiadou, S. (2023). Emotion fusion for mental illness detection from social media: A survey. Information Fusion.
[17]Sabek, I., & Trummer, I. (2025). Second Workshop on Quantum Computing and Quantum-Inspired Technology for Data-Intensive Systems and Applications (Q-Data). In Companion of the 2025 International Conference on Management of Data (pp. 882-883).