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.
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.
- 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
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
PythonFlaskOpenCVONNXGemini API(for chatbot)HTML/CSS/JavaScript
- 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
- 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
- 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
- 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
Khyati Bhatewara
Kashish Chaudhari
Sai Vyshnavi Gudipalli