https://github.com/11sshukla/mental_health_story_analyzer
This project is an AI-powered NLP pipeline that analyzes user-written stories to detect emotions.
https://github.com/11sshukla/mental_health_story_analyzer
ann artificial-intelligence deep-learning keras machine-learning nlp python streamlit tensorflow
Last synced: 4 months ago
JSON representation
This project is an AI-powered NLP pipeline that analyzes user-written stories to detect emotions.
- Host: GitHub
- URL: https://github.com/11sshukla/mental_health_story_analyzer
- Owner: 11SShukla
- Created: 2025-06-27T19:47:10.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-06-27T20:32:05.000Z (4 months ago)
- Last Synced: 2025-06-27T20:36:17.460Z (4 months ago)
- Topics: ann, artificial-intelligence, deep-learning, keras, machine-learning, nlp, python, streamlit, tensorflow
- Language: Jupyter Notebook
- Homepage:
- Size: 0 Bytes
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mental_Health_Story_Analyzer
This project is an AI-powered NLP pipeline that analyzes user-written stories to detect emotions.
A powerful NLP-based tool designed to **analyze personal mental health stories**, detect the **underlying emotion**, identify **cognitive distortions**, and provide **supportive advice**. This project aims to combine **deep learning**, **rule-based logic**, and a **user-friendly Streamlit interface** to offer empathetic feedback and promote mental well-being.## ๐ก Key Features
- ๐งพ **Emotion Detection** โ Uses a trained ANN model to classify emotions like joy, sadness, anger, etc.
- ๐ง **Cognitive Distortion Detection** โ Detects thought patterns (e.g., overgeneralization, catastrophizing) via rule-based or ML methods.
- ๐ฌ **Advice Generation** โ Offers constructive and supportive advice based on detected emotions.
- ๐๏ธ **Interactive UI** โ Streamlit-based interface to enter, analyze, and visualize results in real time.---
## ๐ Project Structure
mental-health-analyzer/
โโโ app.py # Streamlit app (Frontend)
โโโ Mental_Health_Story_Analyzer_model_pipeline.py # Core NLP + ML pipeline (Backend)
โโโ emotion_model.h5 # Trained emotion classification model
โโโ advice_model.h5 # Trained advice classification model
โโโ tfidf_vectorizer.pkl # TF-IDF vectorizer for text features
โโโ emotion_encoder.pkl # Label encoder for emotion labels
โโโ advice_encoder.pkl # Label encoder for advice labels
โโโ requirements.txt # List of required libraries
โโโ README.md # Project documentation