Revealing Hidden Pain A Comparative Analysis of Traditional Versus New Deep Learning Approaches for Detecting Depression on Social Media

Project Code :TCMAPY2439

Objective

The primary objective of this project is to develop an intelligent hybrid deep learning system for early detection of depression from social media text, specifically Reddit posts. The system integrates traditional machine learning models (Random Forest and SVM) with advanced deep learning architectures including HSAN (Hybrid Self-Attention Network), EViT-CMF (Enhanced Vision Transformer with Cross-Modal Fusion), and UAME (Uncertainty-Aware Monte-Carlo Ensemble). The project aims to achieve high classification accuracy while providing interpretability through SHAP values and uncertainty quantification. The final deliverable is a secure, user-friendly Flask-based web application with authentication and real-time prediction capabilities, enabling accessible mental health screening support.

Abstract

Depression is a pervasive mental health disorder often undetected due to social stigma and limited access to professional care. This study presents a comprehensive hybrid deep learning framework for early depression detection from Reddit textual data. Leveraging a cleaned dataset of 7,731 posts, the pipeline integrates traditional machine learning (Random Forest, SVM) with novel deep architectures: HSAN (Hybrid Self-Attention Network), EViT-CMF (Enhanced Vision Transformer with Cross-Modal Fusion), and UAME (Uncertainty-Aware Monte-Carlo Ensemble).

Textual features are extracted using TF-IDF (200 dims) and Word2Vec embeddings (200 dims), fused into 400-dimensional vectors. EViT-CMF further transforms embeddings into 32Γ—32 multi-channel images for cross-modal learning. The UAME ensemble achieves superior performance with 93.93% accuracy and 0.9697 AUC, outperforming baselines. SHAP interpretability and uncertainty quantification enhance clinical trustworthiness. A user-friendly Flask-based web application with MySQL backend enables real-time predictions, supporting multiple models and user authentication. This end-to-end system demonstrates the potential of hybrid AI for scalable, accessible mental health screening.


Keywords: Depression Detection, Hybrid Deep Learning, HSAN, EViT-CMF, UAME Ensemble, TF-IDF, Word2Vec, Cross-Modal Fusion, Reddit Dataset, Mental Health AI, Uncertainty Quantification, Flask Web App

NOTE: Without the concern of our team, please don't submit to the college. This Abstract varies based on student requirements.

Block Diagram

Specifications

4.1 SOFTWARE REQUIREMENS

Component

Specification

Operating System

Windows 10 / 11 (64-bit) or Linux (Ubuntu 20.04+)

Programming Language

Python 3.10.14

Web Framework

Flask

Deep Learning Framework

TensorFlow / Keras

Data Processing Libraries

Pandas, NumPy, Joblib

Other Libraries

MySQL Connector, JSON, Scikit-learn

Frontend Technologies

HTML5, CSS3, Bootstrap, JavaScript

Database

MySQL

IDE / Editor

Visual Studio Code / PyCharm

Model File Formats

.h5 (TensorFlow), .joblib, .json

Server Deployment

Localhost / Flask Development Server

 

4.2 HARDWARE REQUIREMENTS

Component

Minimum Specification

Recommended Specification

Processor

Intel Core i5 / AMD Ryzen 5

Intel Core i7 / AMD Ryzen 7

RAM

8 GB

16 GB or higher

Hard Disk

256 GB SSD

512 GB SSD or higher

Graphics Card

Integrated Graphics

NVIDIA GPU with CUDA support (optional for faster training)

Keyboard

Standard Windows Keyboard

Standard Windows Keyboard

Mouse

Two or Three Button Mouse

Two or Three Button Mouse

Monitor

Any (15-inch or above)

17-inch or above

Demo Video

mail-banner
call-banner
contact-banner
Request Video