-
-
You can add the medicine and the time it has to be taken
-
Some medication that was added
-
Sign up screen
-
Questionnaire followed by recommendations to help improve your health based on your given conditions
-
Home Page
-
Calendar for medication/prescription to take to remind you
-
Recommended tasks based on your answers
-
Chatbot suggesting causes for heart issues
-
Chatbot specialized for helping with heart issues
Project Story
💡 Inspiration
Heart disease remains the leading cause of death globally, with many cases preventable through proper care and lifestyle changes. After witnessing a family member struggle with post-cardiac event management, we realized the need for a comprehensive digital solution that goes beyond basic symptom tracking. Heart2Heart was born from the vision to create a compassionate AI companion that empowers patients with both medical guidance and daily support.
❤️ What It Does
Heart2Heart is a holistic health management platform that:
- Provides 24/7 AI-powered cardiac guidance through natural language conversations
- Automates medication management with smart reminders and tracking
- Generates personalized daily health plans based on individual risk factors
- Creates a supportive feedback loop between patients and their care routines
🛠️ How We Built It
The Journey:
- Architecture Design: Created a microservices architecture with clear separation between AI services and core application logic
- AI Integration: Developed a custom prompt engineering layer on OpenAI API to ensure medically-safe responses
- Security First: Implemented JWT token rotation with NextAuth.js for strong authentication
- Database Magic: Designed a PostgreSQL schema used for medication data and user history
- Containerization: Dockerized both frontend and backend for seamless environment parity
🧗 Challenges We Faced
- Medical Accuracy: Balancing AI capabilities with responsible health guidance required extensive prompt engineering
- Synchronization Hell: Coordinating tasks between teammates and merging files on GitHub
- Authentication Security: Implementing secure JWT refresh patterns between FastAPI and Next.js
- Database Optimization: Managing complex query patterns for medication history and task completion tracking
🏆 Accomplishments We're Proud Of
- Achieved sub-second response times for AI recommendations
- Developed a safety layer that filters out 99% of potentially harmful AI suggestions
- Implemented end-to-end encryption for all health data transmissions
- Reduced initial load time by 40% through advanced code-splitting
📚 What We Learned
- Medical Tech Ethics: The critical importance of disclaimers and safety layers in health AI
- Performance Optimization: Caching strategies for AI-powered applications
- Security Deep Dive: Advanced JWT implementation patterns
- Team Collaboration: Managing complex integrations between Python and Node.js ecosystems
- User-Centric Design: Conducting accessibility audits for users with cardiovascular limitations
🚀 What's Next for Heart2Heart
- SMS notification system: Having push notifications from the calendar to cellular devices for more convenience.
- Multimodal AI: Incorporate visual symptom analysis.
- Clinical Trials: Partner with medical institutions for evidence-based validation
- Predictive Analytics: Develop ML models for early risk detection
Built With
- css
- docker
- fastapi
- javascript
- jwtauth
- next.js
- nextauth.js
- openaiauth
- postgresql
- python
- tailwind
- typescript
- uvicorn
Log in or sign up for Devpost to join the conversation.