Explainable AI for Mental Health: Comparing LSTM Approaches to Depression Detection
Author: Sari, Riri
Informations
JournalSmart, Inclusive, and Sustainable Digital Societies: AI and Human-Centred Innovation
Publication Year2026
Source TypeScopus
Abstract
Depression is a significant global mental health issue that has escalated with the increasing use of social media platforms, offering both challenges and opportunities for early detection. This work focuses on utilising deep learning techniques, specifically long short-term memory (LSTM), bidirectional LSTM (Bi-LSTM), convolutional neural network LSTM (CNN-LSTM), and recurrent neural network LSTM (RNN-LSTM), to detect depression from social media status updates. The work utilises the DR dataset and the Reddit clean depression dataset, a collection of user-generated posts annotated for depression indicators. The primary objective is to evaluate the effectiveness of LSTM, Bi-LSTM, CNN-LSTM, and RNN-LSTM models in capturing the temporal and contextual dependencies of textual data for accurate classification of depression. The methodology involves preprocessing the dataset to clean and tokenise textual data, followed by embedding techniques for feature extraction. Both LSTM, Bi-LSTM, CNN-LSTM, and RNN LSTM models were trained and evaluated on various performance metrics, including accuracy, precision, recall, and F1-score. Results demonstrate that for the DR dataset, the LSTM model achieved the highest recall (0.908), while the CNN-LSTM and RNN-LSTM models achieved perfect recall (1.0). For the depression dataset on the Reddit clean dataset, the CNN-LSTM model demonstrated the best performance, with an accuracy and F1-score of 0.959. The dataset demonstrates exceptional performance across various social media platforms, highlighting its adaptability. The attention map visualisations offer profound insights into linguistic patterns and critical features linked to depression in social media content. This work is significant to the mental health domain by introducing innovative and explainable models for detecting depression through social media data. These proposed methodologies hold the potential to aid mental health practitioners in early diagnosis and intervention, thereby enhancing the quality of life for individuals impacted by depression. © 2027 selection and editorial matter, Norliza Katuk, Noradila Nordin and Roberto Vergallo; individual chapters, the contributors.
Documents & Links
