SwasthAI is an intelligent, supportive, and personalized mental-health companion designed to assist individuals emotionally, psychologically, and socially.
Unlike traditional chatbots, SwasthAI adapts to the user's emotional state, supports vulnerable users with care-focused language, and alerts trusted nominees in critical situations.
Mental health support should be:
- Accessible
- Non-judgmental
- Personalized
- Emotionally Safe
SwasthAI aims to bridge the gap between individuals and professional help by providing empathetic guidance, mood understanding, and crisis alerting.
- Detects mood and conversation tone
- Adapts responses for:
- Depression
- Anxiety
- Stress
- Autism-spectrum users
- General well-being
- Avoids harsh or insensitive language
- Prioritizes comfort, empathy, and reassurance
- Detects high-risk keywords (ex: suicide, hopeless, depressed, panic)
- Automatically alerts a registered nominee (family/friend/guardian)
- Learns user patterns
- Context-aware chatting
- Records emotional trends (if enabled)
- Frontend: React
- Backend: Node + Express
- Database: MongoDB
- Custom ML model for classification
This project is not just a UI chatbot — it includes:
- Custom trained ML/NLP model
- Research-backed emotional classification
- Ethical safety design
- Focus on Indian healthcare context (expandable globally)
- Benchmarking against existing tools
USP: A hybrid therapeutic + safety model that blends emotional intelligence, personalization, and real-time risk intervention 🚨
Frontend
- React
- Tailwind / CSS
Backend
- Node.js
- Express.js
Database
- MongoDB
Machine Learning
- Text classification pipeline
- Custom dataset + preprocessing
- Emotional & risk state detection
SwasthAI
├── frontend
├── backend
│ ├── models
│ ├── routes
│ ├── utils
│ ├── app.js
│ └── trainModel.js
└── README.md
cd backend
npm install
node app.js
Ensure MongoDB is running:
mongodb://127.0.0.1:27017/swasthai
cd frontend
npm install
npm start
✔ User conversations are private
✔ No sharing of sensitive data
✔ Nominee alerts triggered only during serious mental risk conditions
✔ Support tool, not a replacement for medical professionals
- Improve emotional classifier accuracy
- Add multilingual mental health support
- Add therapist dashboard
- Mobile application
- Compliance with mental health guidelines
- Rohit Kumar
- Team Members
SwasthAI is a support tool — it does not replace professional mental health therapy.
If someone is in immediate danger, they should contact emergency services.
If you like this project, star the repo and help improve mental wellness tech!