MindTrack is an AI-powered mental health monitoring system that analyzes both text and facial expressions to detect a user's emotional state.
By combining Natural Language Processing (NLP) and Computer Vision, MindTrack provides real-time insights that help track emotional well-being and identify early signs of mental distress.
-
🔤 Text Emotion Analysis
Detect emotions such as joy, sadness, anger, fear, and more from user-written text. -
🙂 Image Emotion Analysis
Identifies facial expressions using a deep learning model trained on emotion datasets. -
🎯 Multimodal Fusion
Uses both text and image inputs (optional individually or combined). -
⚡ Real-Time Prediction
Fast inference using TensorFlow/Keras models. -
🗂️ Lightweight & Portable
Works using.h5models and.pklencoders without requiring a heavy backend.
| Component | Technology |
|---|---|
| Programming Language | Python |
| Text Model | LSTM / RNN / Deep Learning |
| Image Model | CNN-based Emotion Classifier |
| Frameworks | TensorFlow, Keras |
| NLP Tools | Tokenizer, Label Encoders |
MindTrack/
│
├── src/
│ ├── app.py # Main execution script (text/image prediction)
│ ├── text_model.py # Text emotion detection pipeline
│ ├── image_model.py # Image-based emotion detection pipeline
│
├── models/
│ ├── text_emotion_model.h5
│ ├── image_emotion_model.h5
│ ├── tokenizer.pkl
│ ├── label_encoder.pkl
│ ├── image_label_encoder.pkl
│
├── requirements.txt # Python dependencies
├── README.md # Project documentation
├── .gitignore # Ignore cache & environment files
pip install -r requirements.txt
python src/app.py
Depending on your version:
- Upload an image → get emotion
- Type text → get emotion
- Combine both → multimodal emotion result
- Trained on labeled emotional text dataset
- Tokenizer + sequence padding
- Uses LSTM/RNN layers
- Outputs class probabilities
- CNN trained on facial expression dataset
- Classifies emotions like:
- Happy
- Sad
- Angry
- Fear
- Neutral
- Surprise
- Add a full web dashboard
- Add a chatbot-style interface
- Improve facial pre-processing
- Add audio emotion detection
- Deploy on HuggingFace or Streamlit Cloud
- Mental health tracking
- Student emotional monitoring
- Wellness apps
- AI therapy assistants
- Real-time emotion-based recommendations
Please star ⭐ the repository — it helps others discover the project.