🩺 CareSketch – AI-Powered Personalized Care Plans

🌱 Inspiration

As someone who's witnessed family members struggle with caregiving β€” juggling schedules, medications, meals, and emotional stress β€” I wanted to build something meaningful.
CareSketch was born from the desire to make caregiving more structured, supportive, and emotionally considerate, especially for those without formal medical backgrounds.

πŸ’‘ What it does

CareSketch takes natural language descriptions of a care scenario and generates a personalized daily care plan.
It includes:

  • πŸ“‹ Medications with dosage and timing
  • 🍽️ Suggested meals
  • πŸƒβ€β™€οΈ Light exercises and rest periods
  • 🧠 Risk & red-flag detection
  • πŸ“† An interactive 5-day timeline
  • πŸ’¬ An empathetic emotional support chatbot
  • πŸ“„ PDF export of the full care plan

All generated with the help of a local LLaMA 3 model running via Ollama, so user privacy is preserved.

πŸ› οΈ How I built it

  • Frontend: Streamlit for UI with gradient themes and chat functionality
  • Backend:
    • Ollama (LLaMA 3) for local natural language reasoning
    • Custom prompt templates for structured JSON plan generation
    • Risk detection with simple rule-based parsing
    • Plotly for interactive timeline visualization
    • FPDF for exporting structured PDFs
  • Extras:
    • Sidebar with input presets
    • Emotion-aware tone selection
    • Embedded chatbot using the same local model
    • Styled with custom CSS and config

πŸ§— Challenges I ran into

  • Hosting Ollama and a large model on limited environments (Streamlit Cloud doesn’t support local LLMs)
  • Managing prompt engineering to ensure consistent JSON outputs
  • Preserving chat history and UI state in Streamlit without accidental refreshes
  • Handling PDF export errors and formatting issues across devices

πŸ† Accomplishments that I'm proud of

  • Successfully integrated a local LLM pipeline with an interactive Streamlit app
  • Created a friendly, emotional interface that helps caregivers feel heard
  • Made the care plan visually engaging, structured, and downloadable
  • Prioritized accessibility, offline capability, and privacy from the ground up

πŸ“š What I learned

  • Prompt tuning and JSON parsing with LLMs can be tricky β€” context and ordering matter a lot
  • Streamlit is powerful but requires careful state management to avoid resets
  • Ollama makes working with large models locally viable even for MVPs
  • Emotional design can be embedded in functional tools through tone and UX

πŸš€ What's next for CareSketch

  • πŸ”Š Add real-time voice input with Whisper for accessibility
  • 🧠 Expand risk analysis with real medical guidelines
  • πŸ•ΈοΈ Integrate EHR uploads or FHIR for medical professionals
  • 🌐 Add multilingual support
  • πŸ’Ύ Package the app as a desktop tool or secure PWA for offline caregivers
  • πŸ«‚ Collaborate with elder care and hospice organizations for field testing

πŸ’– Built with compassion and code at Hack the Vibe 2025
Let’s support caregivers β€” one care sketch at a time.

Built With

Share this project:

Updates