A sophisticated generative AI system that provides mental health support through voice chat, mood tracking, and analytics. Built with Flutter (frontend) and Python FastAPI (backend).
This application demonstrates mastery of generative AI technologies including:
Mental-Health-AI-Assistant/
βββ mental_health_chatbot/ # Python Backend (FastAPI)
β βββ chatbot_api.py # Main API server
β βββ database.py # Database models
β βββ emotion_detection.py # AI emotion analysis
β βββ voice_processing.py # Speech processing
β βββ requirements.txt # Python dependencies
β βββ chatbot_env/ # Virtual environment
β
βββ mental_health_chat_ui/ # Flutter Frontend
β βββ lib/ # Dart source code
β βββ android/ # Android platform
β βββ ios/ # iOS platform
β βββ web/ # Web platform
β βββ windows/ # Windows platform
β βββ pubspec.yaml # Flutter dependencies
β
βββ mental_health.db # SQLite database
βββ README.md # This file
git clone https://github.com/HiteshSonetaNEU/Mental-health-Assistant
cd Mental-Health-AI-Assistant
# Navigate to backend directory
cd mental_health_chatbot
# Create virtual environment (recommended)
python -m venv chatbot_env
# Activate virtual environment
# On Windows:
chatbot_env\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Start backend server
python chatbot_api.py
The backend will be available at:
Download Flutter:
C:\flutter (or your preferred location)Add Flutter to PATH:
# Add to your system PATH environment variable:
C:\flutter\bin
Verify Installation:
flutter doctor
Enable Web Support:
flutter config --enable-web
# Navigate to frontend directory
cd mental_health_chat_ui
# Install dependencies
flutter pub get
# Run on Chrome (Recommended)
flutter run -d chrome
# Alternative: Run on web server
flutter run -d web-server --web-port 3000
The frontend will be available at:
POST /chat - Chat with AI assistantPOST /mood-entry - Save mood journal entriesGET /analytics/mood-trends - Get mood analyticsGET /analytics/weekly-patterns - Get activity patternsGET /self-help-recommendations - Get self-help suggestionsFlutter not found:
# Ensure Flutter is in PATH
echo $env:PATH | Select-String flutter
Backend dependencies:
# Reinstall Python packages
pip install --force-reinstall -r requirements.txt
Database issues:
# Delete and recreate database
rm mental_health.db
python chatbot_api.py # Will recreate automatically
Port conflicts:
# Kill processes using port 8000
taskkill /F /IM python.exe
# Check Flutter installation
flutter doctor -v
# Accept Android licenses (if using Android)
flutter doctor --android-licenses
# Update Flutter
flutter upgrade
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)This project is licensed under the MIT License - see the LICENSE file for details.
For issues or questions:
Built with β€οΈ for mental health support
4 commits
3 commits
Python
69.6%
C++
17.6%
CMake
9.5%
HTML
1.1%
A sophisticated generative AI system that provides mental health support through voice chat, mood tracking, and analytics. Built with Flutter (frontend) and Python FastAPI (backend).
This application demonstrates mastery of generative AI technologies including:
Mental-Health-AI-Assistant/
βββ mental_health_chatbot/ # Python Backend (FastAPI)
β βββ chatbot_api.py # Main API server
β βββ database.py # Database models
β βββ emotion_detection.py # AI emotion analysis
β βββ voice_processing.py # Speech processing
β βββ requirements.txt # Python dependencies
β βββ chatbot_env/ # Virtual environment
β
βββ mental_health_chat_ui/ # Flutter Frontend
β βββ lib/ # Dart source code
β βββ android/ # Android platform
β βββ ios/ # iOS platform
β βββ web/ # Web platform
β βββ windows/ # Windows platform
β βββ pubspec.yaml # Flutter dependencies
β
βββ mental_health.db # SQLite database
βββ README.md # This file
git clone https://github.com/HiteshSonetaNEU/Mental-health-Assistant
cd Mental-Health-AI-Assistant
# Navigate to backend directory
cd mental_health_chatbot
# Create virtual environment (recommended)
python -m venv chatbot_env
# Activate virtual environment
# On Windows:
chatbot_env\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Start backend server
python chatbot_api.py
The backend will be available at:
Download Flutter:
C:\flutter (or your preferred location)Add Flutter to PATH:
# Add to your system PATH environment variable:
C:\flutter\bin
Verify Installation:
flutter doctor
Enable Web Support:
flutter config --enable-web
# Navigate to frontend directory
cd mental_health_chat_ui
# Install dependencies
flutter pub get
# Run on Chrome (Recommended)
flutter run -d chrome
# Alternative: Run on web server
flutter run -d web-server --web-port 3000
The frontend will be available at:
POST /chat - Chat with AI assistantPOST /mood-entry - Save mood journal entriesGET /analytics/mood-trends - Get mood analyticsGET /analytics/weekly-patterns - Get activity patternsGET /self-help-recommendations - Get self-help suggestionsFlutter not found:
# Ensure Flutter is in PATH
echo $env:PATH | Select-String flutter
Backend dependencies:
# Reinstall Python packages
pip install --force-reinstall -r requirements.txt
Database issues:
# Delete and recreate database
rm mental_health.db
python chatbot_api.py # Will recreate automatically
Port conflicts:
# Kill processes using port 8000
taskkill /F /IM python.exe
# Check Flutter installation
flutter doctor -v
# Accept Android licenses (if using Android)
flutter doctor --android-licenses
# Update Flutter
flutter upgrade
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)This project is licensed under the MIT License - see the LICENSE file for details.
For issues or questions:
Built with β€οΈ for mental health support
4 commits
3 commits
Python
69.6%
C++
17.6%
CMake
9.5%
HTML
1.1%