Inspiration

Over 3.5 million elderly Americans depend on rural home-health agencies where two systemic failures collide every single day:

  1. The Rural Cellular Dead-Zone Crisis: Field caregivers frequently visit farmhouses and rural homes with 0% cellular connectivity. Cloud-only health apps fail completely in dead zones, while federal 21st Century Cures Act Electronic Visit Verification (EVV) mandates strict GPS-stamped arrival and task verification—putting agencies at constant risk of Medicaid reimbursement clawbacks.
  2. The Clinical Handoff & HIPAA Privacy Gap: Supervising RNs lose hours manually transcribing unstructured hospital discharge paperwork into caregiver shift checklists, while out-of-state family members are left completely in the dark—or worse, exposed to unredacted Protected Health Information (PHI/PII) sent over insecure text messages.

We built VitalsEdge.ai to prove that Hybrid Cloud-to-Edge AI is not just a latency optimization—it is the missing link that makes HIPAA-compliant, offline-resilient clinical care possible at the rural edge.


What it does

VitalsEdge.ai is a 3-Tier Zero-Trust Hybrid AI Clinical Compliance, EVV, and Family Handoff Engine connecting three role-scoped portals in real time:

  • Tab 1 — Supervising RN & Agency Command (Cloud Intelligence):
    • Unstructured Plan-of-Care (POC) Ingestion: RNs paste raw hospital discharge narratives or use the RN AI Co-Pilot (Gemini 2.5 Flash via Vertex AI / Firebase AI Logic) to automatically synthesize structured daily ADLs, clinical guardrails, and timed medication schedules.
    • Cryptographic 3-Tier Access Key Minting: Mints role-scoped cryptographic keys (MASTER-XXXX, CG-XXXX, FAM-XXXX) persisted to Google Cloud Firestore and dispatches real-time EVV shifts.
  • Tab 2 — Rural Field Caregiver Edge Device (100% Offline-Capable Edge AI):
    • Federal EVV Geolocation Stamp: Captures hardware GPS coordinates and timestamps offline (21st Century Cures Act compliance).
    • Multimodal BP Cuff & Pulse Oximeter Vision Scanner: Caregivers snap a live photo of an LCD blood pressure cuff (getUserMedia camera or upload) to automatically extract SYS / DIA / Pulse / SpO2 directly into the clinical audit log.
    • Hands-Free Voice Dictation & On-Device Gemini Nano 4 Triage: Caregivers dictate shift observations via the Web Speech API. Using Firebase AI Logic (PREFER_ON_DEVICE) and Chrome's built-in Gemini Nano 4 (window.ai.languageModel), the app performs zero-cloud HIPAA PII/PHI scrubbing (redacting SSNs, phone numbers, MRNs, and private identifiers locally before any packet leaves the device) and executes an instant Rule-by-Rule Plan-of-Care Compliance Audit even in a 0% cellular dead zone.
  • Tab 3 — Out-of-State Family Peace-of-Mind Portal:
    • Displays real-time, 100% PII-redacted shift verifications, interactive medication adherence checkoffs, plain-English clinical vital trend summaries, and bidirectional Family-to-Caregiver Care Notes that sync directly back into the caregiver's active rulebook.

How we built it

  • Hybrid AI Routing (PREFER_ON_DEVICE -> Cloud Fallback): We architected our frontend engine (static/js/hybrid_engine.js) around the Firebase AI Logic Web SDK (getGenerativeModel({ mode: 'PREFER_ON_DEVICE' })) coupled with Chrome's Built-in AI Prompt API (window.ai.languageModel / Gemini Nano 4) for local, zero-cost, zero-egress PII scrubbing and offline clinical compliance verification.
  • Cloud Reasoning & Multimodal Vision: When online, heavy multi-document clinical synthesis, RN Plan-of-Care rulebook generation, and Multimodal LCD Blood Pressure monitor OCR route to Gemini 2.5 Flash on Google Cloud Vertex AI via our Python Flask backend (app.py).
  • Real-Time Persistence & Offline Queueing: We paired a progressive Service Worker (sw.js) and localStorage offline dead-zone sync queue with Google Cloud Firestore (vitalsedge_state/production) for instant bidirectional state synchronization across Tab 1, Tab 2, and Tab 3.
  • Production Cloud Deployment: Containerized with Docker and Gunicorn and deployed serverlessly on Google Cloud Run mapped to our custom production domain (https://vitalsedge.ai).

Why Hybrid AI Matters (Architectural Justification)

  1. Privacy & HIPAA Zero-Trust by Design: Sensitive patient notes often contain raw SSNs, phone numbers, or family identifiers spoken aloud during dictation. By scrubbing PII on-device with Gemini Nano 4 prior to network transmission, raw PHI never touches a cloud log.
  2. True Rural Dead-Zone Resilience: Caregivers cannot wait for cellular bars to verify whether a patient's 168/102 mmHg blood pressure breaches their congestive heart failure protocol. On-device inference delivers <80ms clinical triage with zero internet connection.
  3. 80%+ Cloud Token Cost Reduction: High-frequency keystroke audits and shift-note checks run completely free on the caregiver's local NPU/GPU, reserving paid Cloud Gemini tokens strictly for complex RN care-plan extraction and multimodal vision tasks.

Challenges we ran into

  • Deterministic Clinical JSON from Compact On-Device Models: Early on-device prompts occasionally produced conversational prose rather than strict rule-by-rule compliance flags. We solved this by engineering a compact, deterministic system prompt pairing local regex pre-tokenizers with Gemini Nano 4 structured reasoning so every single ADL and medication rule is evaluated reliably offline.
  • Zero-Friction Judging vs. Zero-Trust Security: In production, each portal is gated by cryptographic keys (CG-XXXX and FAM-XXXX). So hackathon judges can test all three roles instantaneously without copying login keys, we built an Instant Frictionless Demo Mode that unlocks all three tabs out-of-the-box while preserving a 1-click "Sign Out / Preview Gate" toggle to inspect the cryptographic key gates.

Accomplishments that we're proud of

  • Delivering a complete, end-to-end 3-portal clinical compliance loop (Supervising RN -> Rural Field Caregiver -> Out-of-State Family Member + Patient Voice Pendant) in a single cohesive web application.
  • Achieving zero-cloud PII redaction and live offline dead-zone queuing that seamlessly flushes to Google Cloud Firestore the moment connectivity returns.
  • Building a multi-tenant Founder SaaS Command Console capable of provisioning agencies and calculating live hybrid unit economics (80%+ cloud inference savings).

What we learned

  • How to combine Firebase AI Logic's PREFER_ON_DEVICE mode and Chrome's Gemini Nano 4 with cloud Gemini 2.5 Flash so each model handles the exact workload suited to its parameter size and privacy boundary.
  • How hardware Web APIs (WebRTC getUserMedia camera capture, Web Speech API voice dictation & synthesis, and HTML5 Geolocation EVV) elevate Hybrid AI from a text chatbot into a true field-ready clinical medical tool.

What's next for VitalsEdge.ai

  • Direct EHR / FHIR HL7 Integration: Automated ingestion of hospital discharge summaries via SMART-on-FHIR endpoints.
  • Bluetooth Low Energy (BLE) Medical Device Pairing: Direct WebBluetooth pairing with pulse oximeters, weight scales, and BP cuffs alongside our Multimodal Vision LCD scanner.
  • Pilot Deployment with Rural Home-Health Agencies: Rolling out VitalsEdge.ai across independent rural home-care providers in Wisconsin and the Midwest.

Built With

Share this project:

Updates

Submission history