Skip to content

divyeeeee/mental-health-classifier

Repository files navigation

Mental Health Reddit Classifier

This project predicts whether a Reddit post or any post indicates depression using machine learning.

📥 Data Collection

I have used Reddit's API via praw to scrape posts from mental health-related subreddits such as r/depression and r/anxiety.Code for the same can be found in the 'notebooks' folder

Features

  • Text classification using Naive Bayes, Logistic Regression, and Random Forest.
  • TF-IDF-based feature extraction.
  • Streamlit frontend to enter text and see predictions.
  • Model comparison chart with accuracy and F1 score.

Tech Stack

  • Python, Scikit-learn, Pandas
  • Streamlit
  • Joblib

Run it locally

streamlit run app.py

About

It classifies text of posts or comments as depressive or non depressive. The data is of latest reddit posts.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors