LeweLotki / NLP_depression_detection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AI NLP for depression detection

This repository was created to detect depression indicators from natural speech with tf.keras. To achive this goal dataset scrapped from reddit with 7731 instances has been used(https://www.kaggle.com/datasets/infamouscoder/depression-reddit-cleaned). Web deployment has been built using django framework.

Model achieved 92.3% accuracy on train dataset and 90.0% accuracy on test dataset.

Example of prediction: ss

You can find original dataset in file data.csv and dataset after preprocessing and stemming in file stem_data.csv.
My jupyter notebook is available in AI_NLP.ipynb file.
You can use Poetry tool to get all dependecies or find all requirements in pyproject.toml.

To open website on your local server write:

$ git clone https://github.com/LeweLotki/NLP_depression_detection.git
$ cd NLP_depression_detection/ML_deployment
$ python3 manage.py runserver

To run training of the network write:

$ git clone https://github.com/LeweLotki/NLP_depression_detection.git
$ cd NLP_depression_detection
$ python3 main.py

If you want to test diffrent sentences than default one, change content of sentence.txt file.

About


Languages

Language:Jupyter Notebook 84.6%Language:Python 8.2%Language:PureBasic 5.8%Language:HTML 1.3%