Skip to content

Depression is one of the most common mental disorders with millions of people suffering from it.It has been found to have an impact on the texts written by the affected masses.In this study our main aim was to utilise tweets to predict the possibility of a user at-risk of depression through the use of Natural Language Processing(NLP) tools and …

License

Notifications You must be signed in to change notification settings

aaronstone1699/Depression-detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Depression-detection

required libraries

pandas, os, pickle, io, demoji, nltk, re, string, random, numpy, tensorflow, fasttextasft, keras, matplotlib, sklearn, demoji

all of these libraries can be installed through pip

instructions for data_loading_and_preprocessing

this is a stand alone module which requires the user to enter a dataset location with 2 folder ,preferably labeled positive and negative,with positive folder containing positively identified depressive tweets and the negative folder containing normal tweets

a sample dataset is provided in the data folder ,labeled , dataset_tweets_rm.zip to use the dataset,extract the above mentioned file and enter the location of the file at the prompt

this module creates a pickle file which contains a dictionary of all the preprocessed tweets along with their labels and vectors

instructions for model_training

this is a stand alone module which requires the user to enter a pickle file containing the preprocessed tweets from the data_loading_and_preprocessing module,the pickle file should contain a dictionary with atleast 5368 elements and 4 columns ,namely,data,class,tweet,vector

a sample file is provided in the data folder ,labeled , users(1).pickle

this module trains and provides the metrics for the their accuracies

About

Depression is one of the most common mental disorders with millions of people suffering from it.It has been found to have an impact on the texts written by the affected masses.In this study our main aim was to utilise tweets to predict the possibility of a user at-risk of depression through the use of Natural Language Processing(NLP) tools and …

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages