# Depression detection through dual-stream modeling with large language models: a fusion-based transfer learning framework integrating BERT and T5 representations

**Authors:** Na Wang, Weijia Zhang, Raja Kamil, Ian Renner, Syed Abdul Rahman Al-Haddad, Normala Ibrahim, Zhen Zhao

PMC · DOI: 10.3389/fdata.2025.1651290 · Frontiers in Big Data · 2026-02-04

## TL;DR

This paper introduces a new AI method for detecting depression using combined language models, improving accuracy and precision in mental health diagnosis.

## Contribution

A novel dual-stream transfer learning framework that fuses BERT and T5 representations for depression detection.

## Key findings

- The proposed method achieves 91.3% accuracy on the E-DAIC dataset.
- It improves precision by 6.9% and F1-score by 1.7% compared to baseline models.

## Abstract

Millions of people around the world suffer from depression. While early diagnosis is essential for timely intervention, it remains a significant challenge due to limited access to clinically diagnosed data and privacy restrictions on mental health records. These limitations hinder the training of robust AI models for depression detection. To tackle this, this article proposes a parallel transfer learning framework for depression detection that integrates BERT and T5 through a fusion mechanism, combining the complementary advantages of these two large language models (LLMs). By integrating their semantic embeddings, the method captures a broader range of linguistic cues from transcribed speech. These embeddings are processed through a model with two parallel branches: a one-dimensional convolutional neural network and a dense neural network are used to construct each branch for preliminary prediction, which are then fused for final prediction. Evaluations on the E-DAIC dataset demonstrate that the proposed method outperforms baseline models, achieving a 3.0% increase in accuracy (91.3%), a 6.9% increase in precision (95.2%), and a 1.7% improvement in F1-score (90.0%). The experimental results verify the effectiveness of BERT and T5 fusion in enhancing depression detection performance and highlight the potential of transfer learning for scalable and privacy-conscious mental health applications.

## Linked entities

- **Diseases:** depression (MONDO:0002050)

## Full-text entities

- **Diseases:** Depression (MESH:D003866), psychological disorders (MESH:D000067073), PTSD (MESH:D013313), MDD (MESH:D003865), LLMs (MESH:D007806), fatigue (MESH:D005221), irritability (MESH:D001523), anxiety (MESH:D001007), loss (MESH:D016388)
- **Species:** Homo sapiens (human, species) [taxon 9606], Nostoc sp. I (species) [taxon 66957]

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12913122/full.md

## Figures

4 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12913122/full.md

## References

34 references — full list in the complete paper: https://tomesphere.com/paper/PMC12913122/full.md

---
Source: https://tomesphere.com/paper/PMC12913122