Inspiration

Medical errors are a leading cause of preventable patient mortality worldwide. When auditing adverse drug events, a critical pattern emerges: the lethal hazard rarely lives inside a single prescription—it hides in the blind spots between hospital visits.

Consider Eleanor Vance:

  1. An inpatient cardiologist discharges her on Warfarin (Coumadin) for Atrial Fibrillation and DVT.
  2. Two weeks later, an outpatient orthopedist prescribes high-dose Ibuprofen (800mg) for knee pain without cross-referencing the inpatient summary.
  3. Taking an NSAID alongside an anticoagulant multiplies severe gastrointestinal bleeding risk by over 400%.

When patients ask a generic AI chatbot, "Can I take Advil for my knee pain?", standard models lack cross-document chronological memory, hallucinate reassurance, or leak Protected Health Information (PHI) to third-party clouds. We built WeCare Sentinel so every patient, family caregiver, and clinician gets plain-English medication safety verified against real hospital records—backed by a sub-microsecond hardware infusion interlock.

What it does

WeCare Sentinel closes the loop between fragmented medical records, multi-chain clinical AI reasoning, and real-time bedside safety:

  • Plain-English Medication & Allergy Interception (Home View): Translates dense clinical alerts into clear human-readable cards ("Ask & Check Meds"), immediately flagging dangerous drug conflicts (Warfarin + Ibuprofen) and buried allergy omissions (Sulfa drugs missing in follow-up notes) with click-to-verify links.
  • Zero-Hallucination Line Grounding (My Records): Every warning and AI answer links straight to the highlighted verbatim line inside original discharge summaries, alongside a chronological medication reconciliation diff.
  • 6-Language Global Accessibility & Voice Intercom: Switches seamlessly across English, Hindi, Spanish, Tamil, Chinese, and French with localized UI labels, multilingual medical query normalization, speech-to-text microphone input, and native spoken voice alerts (BCP-47 Web Speech API).
  • Medicine Map (2D Pharmacodynamic Hazard Radar): Interactive force-directed SVG graph mapping how active therapies collide across enzymes and organs (CYP2C9 hepatic clearance, Hemostasis & Platelets, Gastric Mucosa).
  • Safer Swaps (Counterfactual "What-If" Sandbox): Lets clinicians simulate substitutions in-silico before committing to the EHR—demonstrating switching Ibuprofen -> Acetaminophen slashing hemorrhagic risk from 94% down to 12% (-82%) with one-click SQLite adoption.
  • QNX 8.0 Real-Time Bedside Interlock: Bridges clinical AI gating with a BlackBerry QNX Neutrino SDP 8.0 resource manager (/dev/infusion_pump) that hard-locks dangerous infusions in microseconds under a 50ms watchdog heartbeat lease.
  • Multi-Chain Cognitive Meta-Orchestrator & Local LingSante-3.1 MoE: Unifies Graph-of-Thoughts (GoT), LATS / Monte Carlo Tree Search, Tree-of-Thoughts (ToT), ReAct, Buffer-of-Thoughts, Self-RAG, and a 4-cycle Reflexion loop powered by Ant Group's open-source LingSante-3.1 124B MoE on-premise architecture.
  • Enterprise Audit, Security & Training: Exports validated HL7 FHIR R4 bundles, exposes Anthropic MCP and Google A2A endpoints, signs decisions with WebCrypto SHA-256 audit hashes, defends against adversarial prompt/SQL injection (0% jailbreak bypass), and includes a 30-second Bedside Triage Gauntlet simulation mode.

How we built it

  • Frontend: React 19, TypeScript (Strict Mode), Vite 8, Tailwind CSS v4, Lucide React, Canvas Confetti, W3C Web Audio API, W3C Web Speech API, and W3C WebCrypto SHA-256.
  • Backend & Document Ingestion: Python 3.12, FastAPI, Uvicorn, Pydantic v2, PyMuPDF (pymupdf), python-docx, and SQLite 3 (WAL mode at data/wecare_sentinel.db) supporting .zip, .pdf, .docx, .txt, .md, .csv, and .json records.
  • Clinical AI & Cognitive Engines: Ant Group LingSante-3.1-air-VL (124B MoE) integration, deterministic brand-to-class ATC/RxNorm resolution, 4-cycle Reflexion Engine, and unified ToT / ReAct / GoT / LATS-MCTS orchestrator.
  • Hardware Safety & Interoperability: BlackBerry QNX Neutrino SDP 8.0 POSIX microkernel interlock bridge, HL7 FHIR Release 4 JSON exporter, Anthropic MCP server (backend/protocols/mcp_server.py), and Google A2A agent cards (backend/protocols/a2a_cards.py).
  • Deployment & Testing: Vercel (wecare-sentinel.vercel.app) with 37/37 automated pytest verification tests passing across backend engines and strict TypeScript/Vite production builds.

Challenges we ran into

  • Real-Time Microkernel Safety vs. LLM Inference Latency: Multi-step LLM reasoning takes seconds, whereas an IV pump infusing anticoagulants or high-risk drugs requires microsecond protection. We decoupled the QNX 8.0 ASIL-D safety lease so deterministic rules and the 50ms watchdog pulse fail closed immediately in hardware without blocking on chat generation.
  • Colloquial Patient Queries vs. Clinical Terminology: Real patients ask about "Advil" or write symptoms in Hindi, Tamil, or Spanish, while charts document "Ibuprofen" and contraindication rules check "NSAID" classes. Building deterministic multilingual query normalization plus brand-to-class mapping eliminated blind spots regardless of phrasing.
  • Making Deep Clinical Reasoning Understandable for Everyday People: Our initial engineering dashboard packed cognitive trees, kernel telemetry, and raw diffs into one screen. Redesigning around a progressive "Simple by default, deep on demand" layout (plain-English home warnings + optional Advanced Lab drawer) made the app usable by both patients and clinical engineers.

Accomplishments that we're proud of

  • 37/37 Automated Tests Passing across contradiction auditing, QNX hardware interlock, LingSante inference, multi-format document extraction, FHIR export, and cognitive orchestration—with zero TypeScript build errors.
  • 100% Verbatim Citation Grounding: Every safety claim links straight to exact document IDs and line numbers so nothing has to be taken on faith.
  • Multi-Modal Accessibility: Accessible in 6 spoken and written languages while still exposing full GoT/LATS reasoning traces, adversarial Red-Team audits, and QNX microkernel telemetry for judges and engineers.

What we learned

  • Trust in Clinical AI Requires Provenance + Clarity: Clinicians reject black-box risk scores without exact source lines, and everyday patients freeze when confronted with raw pharmacological jargon—solving both simultaneously unlocks real adoption.
  • Safety Architecture Must Be Layered: Ontology checks, iterative Critic Reflexion, prompt-injection defense, and hardware watchdog cutoffs work far better together than trusting any single LLM prompt.

What's next for WeCare Sentinel

  1. Physical ARM64 QNX Testbed: Deploy the /dev/infusion_pump QNX 8.0 resource manager onto ARM64 embedded hardware driving a real stepper-motor infusion actuator.
  2. SMART-on-FHIR EHR Integration: Plug the HL7 FHIR R4 gateway and MCP/A2A tools directly into Epic App Orchard and Cerner workflows as an automated discharge-reconciliation co-pilot.
  3. Expanded Local Pharmacy & Offline Mobile Mode: Package on-device OCR + quantized local inference for rural clinics and multilingual family caregivers with zero internet connectivity.

Built With

Share this project:

Updates

Submission history