Skip to content

A comparison of three discriminative machine learning models (Logistic Regression, Long Short-term Memory, Transfoermer) to determine which is best suited for suicide ideation detection

Notifications You must be signed in to change notification settings

22ericchen/Suicide-Ideation-Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Suicide Ideation Detection

By Matthew Wang, Eric Chen, Jessica Zhao

In this project, we trained three different types of models, logistic regression, LSTM, and a transformer, to detect suicide ideation and other mental illnesses within text. We trained our models on posts from Reddit that were labeled with either suicide, depression, anxiety, bipolar, or a general "off my chest". We checked the performance metrics of each of the models to see which performed the best.

Running Notebook Files

The notebooks containing our models are located within the backend directory under the Models folder. Ensure that the required Python packages are installed, and then you can run all the cells or run each one individually. If there are issues with loading the .csv file, try modifying the train_path.

Starting Full-stack Application

Starting the backend

Starting the frontend

  • make sure Node.js is installed
  • cd frontend
  • npm install
  • npm start

About

A comparison of three discriminative machine learning models (Logistic Regression, Long Short-term Memory, Transfoermer) to determine which is best suited for suicide ideation detection

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •