Skip to content

A Social Media account text analyzer using NLP and Machine Learning. A locally coded project uploaded and forked here to showcase.

Notifications You must be signed in to change notification settings

SanjeevHegde14/MindSpace

Repository files navigation

MindSpace

MindSpace is a web application designed to analyze textual data for mental health risk indicators using Natural Language Processing (NLP). The app allows users to input text or analyze conversation history to detect potential mental health patterns based on a trained Naive Bayes classifier.

Overview

The project consists of a Flask web interface and a data science pipeline. The model was trained on dataset aggregations (including Reddit data) to classify text into specific mental health categories.

Key Features:

  • Text Analysis Engine: Real-time sentiment and risk assessment using a serialized Naive Bayes model (model_nb.pkl).
  • User Dashboard: specialized views for inputting text, viewing results, and tracking history.
  • Data Extraction Scripts: Jupyter notebooks included for scraping and cleaning data from Reddit and parsing WhatsApp chat logs.
  • Risk Information: Educational resources and risk categorization logic.

Tech Stack

  • Backend: Python 3, Flask
  • Frontend: HTML5, CSS (Jinja2 Templates)
  • Database: SQLite (mindspace.db)
  • Machine Learning: Scikit-learn, Pandas, NLTK
  • Data Sources: Reddit API, local chat exports

Project Structure

├── app.py                  # Main Flask application entry point
├── instance/               # SQLite database storage
├── content/                # Datasets and serialized models (.pkl)
├── templates/              # HTML files (Login, Results, Dashboard)
├── anaconda_projects/      # DB management files
├── *.ipynb                 # Notebooks for model training & data extraction
└── ...

Some screenshots: image image image

About

A Social Media account text analyzer using NLP and Machine Learning. A locally coded project uploaded and forked here to showcase.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •