Skip to content
kbhatewaPublic

About

Pearl Hacks Project

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

TheraTech – Emotion-Aware Mental Health Chatbot 💬🧠

TheraTech is an AI-powered mental health web application that uses real-time facial emotion recognition to deliver personalized therapeutic support. Developed during the 2025 Pearl Hacks hackathon, TheraTech combines computer vision and empathetic chatbot technology to help users manage stress, anxiety, and other emotional states through guided support.


💡 Inspiration

After attending an introductory computer vision workshop at Pearl Hacks, we were inspired by the idea of detecting facial expressions through a webcam. It sparked the thought: what if technology could do more than detect emotions—what if it could help people manage them? This led to the creation of TheraTech, where AI meets empathy to support emotional well-being.


🧠 What It Does

  • Detects user emotions in real-time using facial expression analysis
  • Uses the ZenAI chatbot (powered by Gemini) to offer personalized mental health support
  • Recommends mindfulness activities, calming techniques, or motivational responses based on detected emotions
  • Provides an interactive and soothing user experience with live video and responsive chat

🔧 How We Built It

Facial Emotion Detection

  • Built with OpenCV and a pre-trained ONNX model
  • Detects emotions like happiness, sadness, anger, and anxiety from webcam input

Backend

  • Developed with Python and Flask
  • Handles video feed processing, emotion classification, and chatbot response routing

ZenAI Chatbot

  • Powered by Gemini API
  • Responds with tailored suggestions, calming techniques, or positive affirmations based on user mood

Frontend

  • HTML, CSS, and JavaScript
  • Clean, calming UI with live webcam input and a chat interface
  • Designed for intuitive navigation and emotional comfort

⚙️ Technologies Used

  • Python
  • Flask
  • OpenCV
  • ONNX
  • Gemini API (for chatbot)
  • HTML/CSS/JavaScript

🏆 Accomplishments

  • Integrated real-time emotion detection with therapeutic AI responses
  • Built a fully functional prototype within 24 hours
  • Designed a calming and user-friendly UI
  • Demonstrated potential for tech-enabled mental health support

🚧 Challenges We Faced

  • Handling emotion detection accuracy under variable lighting
  • Mapping emotion predictions to relevant, empathetic responses via Gemini
  • Maintaining performance for real-time analysis and chat flow

📚 What We Learned

  • Emotion detection is sensitive to input quality and must be paired with careful UI/UX design
  • AI-driven responses must feel human to be comforting
  • Mental health tools must prioritize empathy, not just functionality

🚀 What’s Next

  • Add sentiment detection through voice and text input
  • Introduce mood tracking and journaling features
  • Build integrations with wearables and mobile devices
  • Partner with mental health professionals for guided therapy content

👩‍💻 Team

Khyati Bhatewara
Kashish Chaudhari
Sai Vyshnavi Gudipalli

About

Pearl Hacks Project

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages