Journal of Smart Sensors and Computing Cover
ISSN: 3108-2459

Journal of Smart Sensors and Computing

Dr. Thittaporn Ganokratanaa
Editor-in-Chief
Dr. Thittaporn Ganokratanaa

A multidisciplinary, peer-reviewed, quarterly, open-access journal dedicated to advancing research and innovation in sensor technologies and computational methods.

Research Article* Open AccessCCBYNCPublished online: 31 March 2026

PHQ-9 Based Depression Detection Using Text with Multi-Task DeBERTa Model

Rahul Dagade, Saee Darwatkar, Payal Kalekar, Aditya Kamble, Prasad Hargude, Nisha Godha, Ganesh Jadhav

1 Department of Computer Engineering, Vishwakarma Institute of Technology, Pune, Maharashtra, 411037, India

2 Department of Electrical Engineering, Sinhgad Institutes, Pune, Maharashtra, 411046, India

3 Department of Information Technology, Vishwakarma Institute of Technology, Pune, Maharashtra, 411037, India

*Email: rahul.dagade@vit.edu

J. Smart Sens. Comput., 2026, 2(1), 26205 https://doi.org/10.64189/ssc.26205

Received: 13 February 2026 | Revised: 17 March 2026 | Accepted: 29 March 2026

Cite article

R. Dagade, N. Godha, G. Jadhav, S. Darwatkar, P. Kalekar, A. Kamble, P. Hargude, PHQ-9 based depression detection using text with multi-task DeBERTa model, Journal of Smart Sensors and Computing, 2026, 2(1), 26205, doi: . https://doi.org/10.64189/ssc.26205

Rights and permissions

(c) The Author(s) 2026.

CC BY-NC 4.0

Open Access

This article is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License, which permits the non-commercial use, sharing, adaptation, distribution and reproduction in any medium or format, as long as appropriate credit is given and changes are indicated. https://creativecommons.org/licenses/by-nc/4.0/

Abstract

Depression is a widespread mental health disorder that adversely affects emotional well-being, cognitive functioning, and overall quality of life. Early and accurate detection is essential for timely intervention; however, traditional screening methods such as the Patient Health Questionnaire-9 (PHQ-9) are often limited by accessibility and resource constraints. To address these challenges, this study proposes a text-based automated depression screening system that predicts both PHQ-9 scores and depression severity levels from user-generated free-form text. The proposed approach utilizes DeBERTa-V3, a state-of-the-art transformer model, within a multi-task learning framework that simultaneously performs regression and multi-class classification. The model was trained on the PHQ-TextSet dataset, a synthetically constructed and PHQ-9-aligned corpus comprising 3,235 annotated samples across five severity categories. By leveraging disentangled attention and shared contextual representations, the system effectively captures nuanced linguistic and emotional patterns. Experimental results demonstrate high performance, achieving 99.85% classification accuracy, a macro F1-score of 0.9984, a weighted AUC of 0.96, and a Mean Absolute Error of 1.2495 for PHQ-9 score prediction. The model is deployed as a real-time inference system using FastAPI, highlighting its practical applicability in digital mental health platforms, telemedicine systems, and educational wellness tools.

Graphical Abstract

PHQ-9 Based Depression Detection Using Text with Multi-Task DeBERTa Model graphical abstract

Novelty Statement

DeBERTa-V3 based multitask model using the PHQ-TextSet dataset predicts PHQ-9 scores and depression severity from text, enabling real-time, non-intrusive mental health screening.