MoodMate – Your Voice-Activated AI Emotional Companion

🎯 Project Overview

MoodMate is a privacy-first, voice-only AI assistant that uses real-time facial emotion recognition and conversational AI to offer emotional support, guidance, and companionship. It runs in the browser, requires no sign-up, and stores no raw media β€” only emotion insights locally for users who want to track their mood trends.

πŸ” Problem Statement

Millions of people experience stress, anxiety, or low moods but hesitate to seek professional help due to stigma, cost, or accessibility. While chatbots exist, they often lack empathy and context-awareness.

🌟 Goal

To build an emotionally aware, voice-driven AI that:

🧩 Key Features

Feature Description
🎭 Facial Emotion Detection Detects emotions like sadness, anger, happiness, fear, etc., in real-time using the camera.
🎀 Voice-Only Interaction Uses speech-to-text and text-to-speech for fully voice-based conversations.
🧠 Emotion-Based AI Responses Adjusts tone and responses based on the detected emotional state.
πŸ“Š Local Mood Logging Saves emotion logs (no images or audio) to browser's LocalStorage.
πŸ›‘οΈ Privacy-First Design No facial data, audio, or video is stored or sent to a server.
πŸ‘€ Optional Personalization Allows users to optionally save preferences locally without sign-up.
πŸ“ˆ Mood Trends (Optional UI) Shows emotion trends over time through a simple chart/graph.

πŸ—οΈ System Architecture

Frontend:

Backend:

None required (unless adding sign-up / cloud storage later)

Workflow:

  1. User lands on site β†’ camera + mic permission requested.
  2. AI starts listening and watching (with permission).
  3. Emotion detected via face in real-time.
  4. AI responds with appropriate tone using TTS.
  5. Detected emotions logged in LocalStorage (if user agrees).
  6. All data wiped on tab close unless saved locally.

🧠 Emotion Detection Logic Example

Detected Emotion Response Style Example AI Response
Sadness Supportive & Calm "It's okay to feel down sometimes. Want to talk about it?"
Anger Calming & Grounded "Let's take a deep breath together. What triggered this feeling?"
Happiness Encouraging "You seem happy! That's amazing. Want to share what made your day?"
Fear Reassuring "You're safe here. Would you like some grounding exercises?"

πŸ” Privacy & Ethics Considerations

πŸš€ Future Extensions

🧠 Possible Tech Stack

Component Tech
UIHTML/CSS/JS or React
Emotion DetectionFaceAPI.js or TensorFlow.js
Voice InputWeb Speech API
Voice OutputGoogle TTS, ResponsiveVoice.js
Local StorageAsyncstorage if possible
ChartsChart.js or Recharts (for mood trends)
Optional BackendFlask / Firebase (for login features in future)

🏁 MVP Plan (Minimal Viable Product)

  1. Set up website with a clean UI
  2. Enable mic and camera access with permission prompt
  3. Implement live facial emotion detection (FaceAPI.js)
  4. Connect speech-to-text and TTS
  5. Build emotion-response logic
  6. Store emotions in LocalStorage with timestamps
  7. Show last 7 days of emotion history in simple chart
×

Settings

This app is not an official therapist, but a supportive companion meant to offer comfortβ€”not professional mental health advice.