An AI-powered mental health assessment platform that provides real-time emotional analysis and personalized recommendations using machine learning.
- Real-time Emotion Detection: Uses Google's GoEmotions dataset with TF-IDF and Logistic Regression
- Mental Health Risk Assessment: Hybrid ML model for student mental health prediction
- User Clustering: K-Means clustering with 19+ engineered features for personality profiling
- 6-Step Assessment: Comprehensive user evaluation (Registration → Mood → Lifestyle → Coping → Journal → Results)
- Interactive Web Interface: Responsive design with real-time analysis
- Backend: Flask (Python)
- Frontend: HTML, CSS, JavaScript
- Machine Learning: scikit-learn, pandas, numpy, NLTK
- Datasets: GoEmotions (28 emotions), Student Mental Health Survey
- APIs: RESTful JSON endpoints
- Emotion Classifier: TF-IDF + Logistic Regression trained on GoEmotions dataset
- Risk Predictor: Hybrid model using demographic and behavioral data
- User Clustering: K-Means algorithm with feature engineering
MoodAnalyzer/
├── app.py # Main Flask application
├── frontend/ # HTML/CSS/JS interface
├── ml_models/ # Custom ML implementations
├── data/ # Training datasets
├── services/ # API services
├── utils/ # Helper utilities
└── requirements.txt # Dependencies
-
Install Dependencies
pip install -r requirements.txt
-
Run Application
python app.py
-
Access Application
http://localhost:5000
- User Assessment: 6-step form collects comprehensive user data
- Data Processing: Features engineered for ML model input
- ML Analysis: 3 models analyze emotions, risk, and personality
- Results Generation: Personalized insights and recommendations
- Real-time Display: Interactive results with confidence scores
- Built end-to-end ML pipeline with real-world datasets
- Implemented production-ready Flask API with error handling
- Created responsive web interface with vanilla JavaScript
- Achieved real-time processing with intelligent fallback systems
- Integrated multiple ML techniques for comprehensive analysis
- Mobile application development
- Additional ML models for mood prediction
- Integration with wearable devices
- Expanded dataset training
Built with ❤️ for mental health awareness and AI-powered healthcare solutions.