Multi-Head Attention-Based Long Short-Term Memory for Depression Detection From Speech

Chengyu Liu, Yan Zhao, Zhenlin Liang, Jing Du, Li Zhang, Chengyu Liu 0001, Li ZhaoFrontiers Neurorobotics 2021

Introduction

Depression is a prevalent mental health disorder that significantly impacts global health. Traditionally, diagnosis has relied on subjective clinical interviews and self-reporting tools like the PHQ-9. While these methods are standard, they are susceptible to bias and variability. Recent advancements in machine learning have opened doors for objective, automated detection using speech—a rich source of behavioral and physiological data. This paper introduces a novel deep learning architecture that leverages Long Short-Term Memory (LSTM) networks coupled with a Multi-Head Attention (MHA) mechanism to identify depression directly from acoustic signals.

The Challenge of Temporal Salience

A primary difficulty in automated depression detection is that diagnostic cues are not uniformly distributed throughout a conversation. Specific moments—characterized by pauses, pitch shifts, or changes in energy—carry more weight than others. Traditional models often struggle to focus on these "emotionally salient" regions, often relying on global averages that wash out subtle temporal nuances. The authors address this by developing a model capable of autonomously weighing the importance of different segments within a speech sequence.

Methodology

The proposed architecture, a Multi-Head Time-Dimension Attention-Based LSTM, follows a three-stage pipeline:

  1. Frame-Level Feature Extraction: Using the openSMILE toolkit, the researchers extract frame-level features including prosodic (pitch, jitter, shimmer), spectral (MFCCs), and energy-related metrics. This approach preserves the temporal integrity of the speech signal.
  2. Sequential Modeling with LSTM: These features are processed through a two-layer LSTM (with 512 and 256 hidden units). The LSTM layers are designed to capture the evolving patterns and long-term dependencies inherent in human speech.
  3. Multi-Head Attention (MHA): The core innovation lies in the MHA layer. By projecting the LSTM outputs into multiple subspaces, the model can simultaneously attend to different types of information. For instance, one "head" might focus on rhythmic pauses while another monitors spectral shifts. The results are then concatenated for final classification.

Key Insights: Feature Distinction and Salience

A critical finding of the study is that not all acoustic features are equally informative. The researchers utilized cluster analysis to evaluate which features provided the most significant separation between depressed individuals and healthy controls.

For example, features like voicing probability (voiceProb) showed considerable overlap between the two groups, making them less reliable as standalone indicators.

Distribution of voicing probability (voiceProb) across depressed and healthy control groups.

In contrast, harmonic and energy-related features, such as harmonicERMS, demonstrated a much clearer distinction. This supports the use of Multi-Head Attention, which acts like a "highlighter," increasing the weights of these more salient features and negative emotional regions that are highly indicative of depression.

Distribution of harmonic energy (harmonicERMS), showing a more distinct separation between groups.

Experimental Results

The model was rigorously evaluated on two major datasets: the DAIC-WOZ (Distress Analysis Interview Corpus) and the MODMA (Multi-modal Open Dataset for Mental-disorder Analysis). The results demonstrated significant performance gains over standard LSTM baselines and other state-of-the-art models:

  • DAIC-WOZ Performance: The 4-head attention model achieved an Unweighted Average Recall (UAR) of 93.5% and an F1-score of 0.931, representing a 2.3% improvement over standard LSTMs.
  • MODMA Performance: On the MODMA corpus, the 2-head attention model reached a UAR of 98.9% and an F1-score of 0.987, a substantial 10.3% improvement over the baseline.
  • Stability: Beyond accuracy, the MHA models exhibited greater stability across different test runs, showing less variance in results compared to traditional architectures.

Conclusion

By combining the temporal modeling capabilities of LSTMs with the selective focus of Multi-Head Attention, the authors have created a powerful tool for objective depression detection. The ability to identify emotionally salient "hotspots" in speech allows for a more nuanced and accurate diagnostic process. Future work will focus on refining feature engineering and testing the model's robustness in non-clinical, real-world environments with varying noise levels.

Summary updated

BibTeX
@article{liu2021multi,
  author = {Chengyu Liu and Yan Zhao and Zhenlin Liang and Jing Du and Li Zhang and Chengyu Liu and Li Zhao},
  title = {{Multi-Head Attention-Based Long Short-Term Memory for Depression Detection From Speech}},
  journal = {Frontiers Neurorobotics},
  year = {2021},
  doi = {10.3389/fnbot.2021.684037},
}
Figure