A Context-Aware Mental Health Assistant built with Python & Scikit-Learn. Live Demo: Click Here to Open App
This application helps students manage stress by analyzing their raw text input. Unlike simple sentiment analyzers, this AI uses a Double-Brain Architecture to understand both Emotion and Topic simultaneously.
The system runs two Logistic Regression models in parallel:
- Emotion Classifier: Detects 6 emotions (Joy, Sadness, Anger, Fear, Love, Surprise). Trained on 16,000 data points.
- Topic Classifier: Detects the root cause (Academic, Relationship, Career, Mental Health).
Based on the combination (e.g., Academic + Fear), the system looks up a specialized psychological strategy to assist the user.
- Language: Python
- ML Libraries: Scikit-Learn, Pandas, Joblib
- NLP: TF-IDF Vectorization, Text Preprocessing
- Web Framework: Streamlit
- Hosting: Streamlit Cloud
- Real-time NLP: Instantly classifies text input.
- Balanced Training: Implemented Class Weights to handle imbalanced datasets (fixing the "Surprise" class recall).
- Personalized Logic: Maps (Emotion + Topic) pairs to specific actionable advice.
Upamada Ekanayake - AI & Data Science Student