CarePilot is an end-to-end AI health system that closes the loop between clinical adherence and daily behavioral health. By integrating multimodal sensing—Vision for meal analysis, Audio for emotional well-being, and Structured Reasoning for medication management—CarePilot transforms passive tracking into proactive, longitudinal care.
| Doc | Status | Last Verified | Owner |
|---|---|---|---|
README.md |
active | 2026-04-01 | platform |
ARCHITECTURE.md |
active | 2026-04-01 | platform |
SYSTEM_ROADMAP.md |
active | 2026-04-01 | platform |
AGENTS.md |
active | 2026-04-01 | platform |
docs/README.md |
active | 2026-04-01 | platform |
docs/ARCHITECTURE_AND_ROADMAP.md |
active | 2026-04-01 | platform |
The proactive AI Health Companion that bridges the gap between clinical prescriptions and real-world patient behavior through multimodal intelligence.
The "Silent Interval" in Chronic Care. In chronic disease management (Diabetes, Hypertension), the 99% of a patient's life spent outside the clinic is a "black box" for providers.
- Data Fragmentation: Nutrition, medication intake, and mental state are tracked in silos, if at all.
- Logging Fatigue: Manual entry leads to 80% abandonment within the first 30 days.
- Lack of Context: Existing apps track what happened (calories) but ignore why (emotional triggers) and how it impacts clinical goals (HbA1c).
CarePilot replaces friction-heavy logging with Multimodal Perception Agents.
- Passive Capture: Vision-first meal recognition optimized for Singaporean Hawker cuisine.
- Emotional Vital Signs: Real-time speech and text analysis to detect burnout or anxiety before they lead to non-adherence.
- Proactive Guardrails: A reasoning engine that cross-references meal intake with medication schedules to prevent adverse events.
- Clinical Grounding: All guidance is anchored in Singapore-specific clinical guidelines for chronic disease.
- Capture: The user snaps a photo of their Nasi Lemak and records a brief voice note: "Feeling a bit stressed today, heading to work."
- Multimodal Perception: The Vision Agent identifies components (coconut rice, sambal, fried fish) while the Emotion Pipeline detects high-arousal stress.
- Cross-Reference: The system checks the Medication Vault and notes the user's Metformin dose is due in 30 minutes.
- Action: CarePilot provides Singlish-optimized feedback: "That's a bit heavy on the carbs for today, lah. Take your Metformin in 30 mins to stay on track. Hang in there with the work stress!"
- Impact: The event is persisted to a Longitudinal Health Timeline, enabling providers to see the correlation between stress and dietary spikes.
- Vision-First Meal Intelligence: Deep recognition of complex Asian cuisines (Hawker food) with automatic carbohydrate/sodium estimation.
- Medication & Adherence Guardrails: Smart reminders with conflict detection (e.g., advising against high-glucose meals before specific tests).
- Emotion & Behavioral Signals: Analyzing prosody (tone) and sentiment to provide a holistic view of the "Mental Load" of chronic care.
- Health Timeline & Insights: A unified event stream that correlates behavior with biometric trends.
- Personalization Engine: Adapts tone and guidance based on user engagement patterns and clinical severity.
CarePilot utilizes a Feature-First Modular Monolith designed for clinical reliability and low-latency response.
graph TD
User([User]) --- Web[Next.js 14 Frontend]
Web --- API[FastAPI Gateway]
subgraph Reasoning ["Reasoning Engine (LangGraph)"]
API --> Workflow[Meal/Medication Workflows]
Workflow --> Perceive[Perception Node]
Workflow --> Reconcile[Claim Reconciliation]
Workflow --> Persist[Structured Persistence]
end
subgraph Agents ["Agent Layer (pydantic-ai)"]
Perceive --> VisionAgent[Vision LLM Agent]
Perceive --> EmotionAgent[Audio/Text Emotion Agent]
end
subgraph Infra ["Infrastructure"]
Workflow --> DB[(SQLite/SQLModel)]
API --> Redis[Redis Cache/Scheduler]
Redis --> Worker[Worker Runtime]
end
- Bounded Agents: AI agents propose structured data; deterministic domain logic validates and commits.
- Event-Driven Timeline: Every interaction is an immutable event, enabling RAG (Retrieval-Augmented Generation) over the patient's entire history.
- Modular Extensibility: New clinical domains (e.g., Renal care) can be added as isolated feature modules.
- LangGraph Workflows: Complex health journeys (like meal analysis) are managed as stateful graphs, ensuring traceability from raw input to final nutrition log.
- Dual-Branch Emotion Pipeline: Uses
transformersandlibrosafor multi-modal emotion inference, combining acoustic prosody with semantic sentiment. - Structured Output Contracts: Rigorous Zod/Pydantic schemas ensure that LLM outputs never violate clinical data integrity.
- Reminder Scheduler: Worker-driven scheduling with Redis available for distributed coordination when enabled.
- Local-First Context: Optional vector memory in
data/vectorstore/for retrieval-augmented personalization.
apps/
api/ FastAPI transport layer (transport-only routers)
web/ Next.js frontend (Next.js 14 App Router)
workers/ Async worker runtime (reminders, outbox)
src/
care_pilot/
core/ Shared primitives and canonical API contracts
features/ Product behavior, job-based services, and domain logic
agent/ Bounded inference-only agents
platform/ Infrastructure adapters (persistence, auth, messaging)
config/ Settings composition root
docs/ System-of-record knowledge base (design docs, plans, specs, references)
tests/ Repository-level tests and meta-guardrails
- What is new? Moving from "Input -> Chart" to "Perception -> Reasoning -> Action." CarePilot is an active participant in the care plan, not just a spreadsheet.
- Cultural Nuance: Specialized prompt engineering and few-shot learning for Singaporean dietary habits and linguistic nuances (Singlish).
- Holistic Wellness: The first system to treat Emotion as a primary health metric alongside Glucose or Blood Pressure.
- Patient-Level: Projected 35% increase in medication adherence through proactive, contextual reminders.
- System-Level: 60% reduction in manual logging time via Vision-first entry.
- Behavioral: Identification of stress-eating patterns within 14 days of use, enabling early behavioral intervention.
- Frontend: Next.js 14 (App Router), TypeScript, Tailwind CSS, Radix UI.
- Backend: FastAPI, Python 3.12, SQLModel + Alembic migrations.
- Agents & Workflows: Pydantic AI + LangGraph.
- Intelligence Providers: Local LLMs via Ollama/vLLM; optional OpenAI/Gemini/Qwen providers.
- Data: SQLite by default; Redis optional for cache/coordination; optional vector memory for RAG.
- Tooling: UV (Python package manager), PNPM (Node package manager).
- Python 3.12+
- Node.js 20+
uv(Fast Python package manager)pnpm(Fast Node package manager)
-
Clone & Install Dependencies:
git clone https://github.com/Fpengz/CarePilot.git cd CarePilot make install -
Environment Setup:
cp .env.example .env # Add your OPENAI_API_KEY and other credentials to .env -
Run Development Stack: CarePilot uses a unified CLI for orchestration and a Makefile for convenience:
make dev # OR canonical: uv run python scripts/cli.py devNavigate to
http://localhost:3000to view the dashboard.
To ensure system integrity, run the following:
Full Suite:
make testBackend:
make test-backend
# OR canonical:
uv run python scripts/cli.py test backendWeb:
make test-web
# OR directly from the package:
cd apps/web && pnpm lint && pnpm typecheck- Q2 2026: Integration with Singapore HealthHub (OpenAPI) for direct prescription syncing.
- Q3 2026: Family Care Circles: Real-time alerts for caregivers when high-risk emotional/physical patterns are detected.
- Q4 2026: Clinical Dashboard: A specialized view for HCPs to review longitudinal trends during consultations.
Developed for the Singapore Innovation Challenge (Problem Statement 1).