Enhancing AI Depression Detection Using Transfer Learning

Authors

DOI:

https://doi.org/10.37256/cm.6320256184

Keywords:

depression, text, BERT, transfer learning, 1DCNN, extended distress analysis interview corpus (E-DAIC)

Abstract

Depression is a serious mental health disorder that poses significant challenges to individuals’ emotional well-being, daily functioning, and overall quality of life. While artificial intelligence methods offer promising solutions in diagnosing, their development typically requires large datasets, which are difficult due to privacy concerns and the complex nature of clinical diagnosis. To address these challenges, this study leverages transfer learning to improve depression detection. Specifically, the method employs the bidirectional encoder representations from transformers (BERT) pre-trained model on large-scale language data, and fine-tunes it on the Extended Distress Analysis Interview Corpus to adapt the model for depression detection. By using the BERT Tokenizer, interview transcripts were tokenized to retain critical linguistic context. These tokens were then processed by the pre-trained bert-base-uncased model to extract robust language features. The features were then passed through a 1-dimensional convolutional neural network (1DCNN) for further analysis, enabling the detection of depression-related patterns. Finally, the refined features were classified via dense layers. To investigate the effectiveness of this method, a total of 11 models-six conventional machine learning models and five neural networks-were tested using three tokenization methods for comparison. Among them, the BERT Tokenizer + 1DCNN model achieved the best performance, with an accuracy of 89.3%, F1 score of 89.4%, and AUC of 95.0%. Notably, transfer learning improved accuracy by 7.7%, highlighting its effectiveness in training neural networks on small datasets. These results demonstrate that the proposed approach not only addresses the issue of limited training data but also significantly enhances the accuracy and reliability of AI-aided depression detection. The method can be applied in computer-aided systems for improving clinical depression diagnostics and other healthcare applications where data scarcity is a barrier.

Downloads

Published

2025-05-13

How to Cite

1.
Wang N, Kamil R, Al-Haddad SAR, Ibrahim N, Zhao Z. Enhancing AI Depression Detection Using Transfer Learning. Contemp. Math. [Internet]. 2025 May 13 [cited 2025 Jun. 22];6(3):3054-80. Available from: https://ojs.wiserpub.com/index.php/CM/article/view/6184