Skip to content

ECOLS-research-group/Depression_LSTM_NLP_Transformers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LSTM vs. NLP Transformers in Analyzing Depression from Text Data

Copyright (c) 2024, ECOLS - All rights reserved.

Version 1.0

The student Anuraag Raj wrote the code for LSTM vs. NLP Transformers in Analyzing Depression from Text Data, with Zain Ali contributing by writing the code for BERT and providing encoded vectors. The code was written in Python.

Paper: Uncovering Depression with LSTM and NLP Transformers in Social Media Posts. Paper presented at the 5th International Conference on Data Science and Applications (ICDSA 2024).
Authors: Anuraag Raj, Zain Ali, Shonal Chaudhary, and Anuraganand Sharma.

Overview

This repository contains code and resources for detecting depression in social media posts using LSTM and NLP transformers like BERT. The project aims to leverage deep learning techniques for mental health monitoring by analyzing text data from social media.

Features

  • LSTM Model: Utilized for sequence-based classification.
  • BERT Model: Applied for advanced natural language understanding and comparison with LSTM.
  • Data Preprocessing: Techniques to clean and prepare text data.
  • Model Evaluation: Metrics like accuracy, F1-score, and confusion matrix.

Installation

  1. Clone the repository:
    git clone https://github.com/anuraag165/Dep-LSTM-Transformer-NLP.git
  2. Install the required packages:
    pip install -r requirements.txt

Usage

  • Running the Notebook:
    • Open the BERT_v_LSTM.ipynb notebook to see the model implementation and comparison.
    • Ensure you have the necessary datasets in the data/ directory.

Results

  • The repository contains visualizations and results comparing the performance of LSTM and BERT models in detecting depression.

Contributing

Feel free to fork the project, make improvements, and submit pull requests.

Programmer

  • Anuraag Raj
  • Zain Ali

About

LSTM vs NLP Transformers for depression detection

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published