An open API service indexing awesome lists of open source software.

https://github.com/sachin7123/mindguard


https://github.com/sachin7123/mindguard

bert-model nlp pushshift-api streamlit streamlitcloud textblob

Last synced: 14 days ago
JSON representation

Awesome Lists containing this project

README

          

# ๐Ÿง  MindGuard โ€“ Mental Health Sentiment Analyzer (Reddit NLP Dashboard)

MindGuard is an end-to-end, real-time NLP dashboard that monitors Reddit posts related to mental health. It uses both **TextBlob** and **BERT (Transformer)** models to detect signs of anxiety, depression, and emotional distress. Built with **Streamlit**, the dashboard offers sentiment comparison, filters, and rich visual analytics.

![MindGuard Dashboard](./screenshot/sc-1.png)

---

## ๐Ÿง  Project Motivation

> With rising mental health concerns globally, many people share their feelings anonymously online. By analyzing these expressions through natural language processing, MindGuard aims to assist researchers, moderators, or public health professionals in identifying signs of distress at scale.

---

## ๐Ÿ” Features

- โœ… Collects Reddit posts from mental health-focused subreddits
- โœ… Cleans and fuses title + body text
- โœ… Performs dual sentiment analysis using:
- **TextBlob** (lexicon-based)
- **BERT** (`cardiffnlp/twitter-roberta-base-sentiment`)
- โœ… Filters posts by subreddit, model, or keywords
- โœ… Visualizations: bar charts, pie charts, and summary cards
- โœ… Highlights mismatches between TextBlob and BERT
- โœ… Download the processed data as CSV

---

## ๐Ÿ’ป Tech Stack

| Layer | Tools Used |
| ------------- | ------------------------------------ |
| Frontend | Streamlit |
| NLP Models | TextBlob, Transformers (BERT) |
| Data Source | Reddit (via Pushshift API) |
| Processing | Python, Pandas, NumPy |
| Visualization | Streamlit, Matplotlib |
| Deployment | Streamlit Cloud |
| Storage | CSV (MongoDB optional for extension) |

---

## ๐Ÿงช How to Run Locally

```bash
git clone https://github.com/Sachin7123/mindguard.git
cd mindguard-nlp
python -m venv venv
# For Windows:
venv\Scripts\activate
# For macOS/Linux:
source venv/bin/activate

pip install -r requirements.txt
streamlit run app/dashboard.py
```