Inspiration
Every year, over 350,000 individuals in the United States and millions worldwide experience Out-of-Hospital Cardiac Arrest (OHCA). For every minute that elapses without cardiopulmonary resuscitation (CPR) and defibrillation, patient survival probability drops precipitously by 7% to 10% (American Heart Association, 2024). A structurally similar crisis window governs acute ischemic stroke: approximately 1.9 million neurons perish every sixty seconds during untreated large vessel occlusion.
In acute clinical medicine, this pre-hospital crisis window is known as the "Fatal Seven-Minute Triage Void"—the critical gap between initial acute physiological collapse and the arrival of professional emergency medical services (EMS).
During this void, contemporary consumer smart environments fail catastrophically across three dimensions:
- The Wake-Word Bottleneck: Traditional voice assistants require conscious, articulate vocal wake-words ("Alexa, call 911"). If a patient collapses unconscious from ventricular fibrillation, suffers severe expressive aphasia from a middle cerebral artery stroke, or exhibits gasping agonal respirations, voice interfaces remain completely deaf and dormant.
- The Sensor Silo Dilemma: Wearable devices (smart bands, smartwatches) measure accelerometry decelerations and photoplethysmography (PPG), while smart speakers listen to acoustics, and smart locks secure entryways—yet none of these systems cross-communicate in real time to form a unified clinical diagnostic trajectory.
- The Unconstrained LLM Safety Barrier: Direct foundation model prompting in life-critical medicine poses unacceptable hallucination risks, non-deterministic latency drifts, and unpredictable omissions of emergency actions.
CuraStrand was born from a singular research mission: Can we unify ambient smart speakers (Alexa+), continuous biosensors (wearables), and residential physical access (Ring) into an autonomous, closed-loop clinical triage agent that provides formal, deterministic safety guarantees ($\mathbb{P}(\text{False Negative} \mid \text{Level 1}) = 0.000$) to bridge the fatal seven-minute void?
What it does
CuraStrand is an autonomous multimodal clinical triage and ambient crisis orchestration framework built upon the Model Context Protocol (MCP v2025-11-25) streamable HTTP transport and cognitive multi-agent orchestration via Amazon Bedrock (Claude 3.5 Sonnet / Amazon Nova Premier) and the Strands Agents SDK.
When an out-of-hospital crisis strikes, CuraStrand executes an autonomous, deterministic, four-stage clinical intervention loop:
Continuous Multimodal Ingestion (250 Hz Telemetry & Acoustic Formants):
- Continuously ingests Lead II electrocardiogram (ECG) telemetry, photoplethysmography (PPG) pulse volume, SpO2, heart rate variability (RMSSD), and triaxial impact deceleration vectors ($G = \sqrt{a_x^2 + a_y^2 + a_z^2}$) from wearable biosensors.
- Concurrently decomposes far-field acoustic audio frames across 100 Hz to 8 kHz formant bands, extracting phonetic markers for laryngeal stridor (airway obstruction), agonal respiration (cerebral hypoxia), and acute dysarthria (slurred speech from ischemic stroke), while evaluating real-time Speech Intelligibility Index ($SII \in [0, 1]$).
- Resolves cross-cultural non-English emergency vocalizations (e.g., Vietnamese "không thở được", Spanish "dolor opresivo de pecho"), eliminating documented linguistic triage penalties.
Formal Safety Governor & Deterministic Invariant Proofs:
- Evaluates multi-sensor distress using an evidence-based Manchester Triage System (MTS) & Emergency Severity Index (ESI) state machine across 5 acuity tiers ($\mathcal{L} \in {1, 2, 3, 4, 5}$).
- Enforces four non-negotiable mathematical safety invariants that intercept foundation model outputs: $$\mathcal{I}1: \left(\text{ECG} \in {\text{vfib}, \text{asystole}} \lor \mathcal{C}{\text{acoustic}} = \text{agonal}\right) \implies \mathcal{L} = 1$$ $$\mathcal{I}2: (\mathcal{L} = 1) \implies {\text{IMMEDIATE_CAD_DISPATCH}, \text{UNLOCK_RING_DEADBOLT}, \text{TRIGGER_AUDIO_CPR_METRONOME}} \subseteq \mathcal{A}{\text{executed}}$$ $$\mathcal{I}3: (\mathcal{L} = 2) \implies {\text{URGENT_CAD_DISPATCH}, \text{UNLOCK_RING_DEADBOLT}} \subseteq \mathcal{A}{\text{executed}}$$ $$\mathcal{I}4: \forall d \in \text{Allergies}(\text{Patient}), \quad d \notin \mathcal{A}{\text{recommended}}$$
- Guarantees a 0.00% False Negative Rate for Level 1 resuscitations, eliminating catastrophic LLM omission.
Autonomous Physical & Municipal Actuation:
- Ring Smart Deadbolt Access Override: In Level 1 (Immediate) or Level 2 (Very Urgent) emergencies, the system autonomously overrides and unlocks the front entry smart deadbolt in $\sim 14\text{ ms}$, activates pulsing floodlight SOS beacons, and displays first-responder CAD entry PINs—eliminating forced entry delays and broken doors for arriving paramedics.
- Municipal E911 CAD Dispatch: Compiles and transmits an emergency HL7/FHIR incident packet complete with GPS coordinates, biometric telemetry summaries, verified allergies, active medications, and perimeter access PINs.
- Interactive AHA CPR Metronome: Instantly synthesizes an acoustic 110 BPM metronome via the Web Audio API with synchronized visual compression counters to guide panicked bystanders through high-quality chest compressions before EMS arrives.
Alexa+ Bidirectional Clinical Dialogue:
- Provides calm, multi-turn, duplex acoustic guidance to bystanders and responsive patients, streaming continuous MCP execution traces directly over JSON-RPC 2.0.
How we built it
CuraStrand is engineered as a modular, high-throughput TypeScript monorepo adhering strictly to modern distributed systems architecture:
- 1. Model Context Protocol Server (
@curastrand/mcp-server): Implemented using the official Model Context Protocol specification (v2025-11-25) over streamable HTTP (GET /mcp/sseandPOST /mcp/messages). It exposes 6 standardized clinical tools (vitals_monitor,acoustic_analyzer,triage_evaluator,perimeter_controller,ems_dispatcher, andcpr_metronome) and 2 clinical resources (patient://ehr/:idandprotocols://clinical/manchester_triage). - 2. Cognitive Agent Core & Strands Orchestration (
@curastrand/agent-core): Orchestrates a 4-agent cognitive pipeline: Sentinel Agent (continuous anomaly detection), Diagnostic Agent (multimodal clinical reasoning powered by Amazon Bedrock Claude 3.5 Sonnet / Amazon Nova Premier with dual-mode deterministic local neural fallback), Formal Safety Governor (MTS mathematical invariant verification gate), and Dispatch Agent (CAD packet transmission and Ring physical override). - 3. High-Performance Clinical Command Center HUD (
@curastrand/web-hud): Built with React 19, TypeScript, Vite, and Tailwind CSS. Features a zero-allocation 60fps HTML5 Canvas telemetry visualizer rendering continuous Lead II ECG waveforms and PPG dicrotic pulses, real-time 100 Hz–8 kHz acoustic formant spectrums, live JSON-RPC 2.0 MCP trace logs, and an interactive AHA 110 BPM Web Audio API bystander CPR metronome modal. - 4. Empirical Benchmark & Validation Suite (
@curastrand/research-benchmark): A formal evaluation engine testing 50 standardized clinical patient trajectories modeled from real-world hospital archives across 5 emergency cohorts (Ventricular Fibrillation/Asystole, Acute STEMI, Geriatric 5.8G Traumatic Fall on Eliquis, Pediatric Biphasic Anaphylaxis, and Cross-Cultural Non-English Stroke).
Challenges we ran into
- Bridging Non-Deterministic LLMs with Life-Critical Clinical Guarantees: Large Language Models are inherently probabilistic. In emergency triage, an LLM deciding to "wait and ask one more clarifying question" during an acute ventricular fibrillation arrest will lead to patient demise. We resolved this by engineering the Manchester Triage Formal Safety Governor, which acts as a mathematical verification gate that intercepts model outputs and deterministically overrides any latency drift or omission if invariant thresholds ($\mathcal{I}_1 - \mathcal{I}_4$) are triggered.
- Sub-Millisecond Multi-Sensor Telemetry Fusing: High-frequency Lead II ECG (250 Hz) and acoustic spectrograms generate substantial computational throughput. Managing continuous time-series buffers without causing garbage collection spikes in Node.js required designing lean, zero-copy circular ring buffers that evaluate triage decisions in $\bar{t} = 0.021\text{ ms}$.
- Cross-Cultural Phonetic Normalization: Most conversational systems suffer severe under-triage when processing non-English distress vocalizations. We implemented multi-dialect acoustic phonetic normalization that extracts emotional prosody, pitch perturbations, and acoustic formant ratios independently of English syntax, granting equal clinical priority to distress signals in Vietnamese, Spanish, Hindi, and English.
- Model Context Protocol Specification Nuances: Adapting our system to the newly ratified MCP v2025-11-25 specification over streamable HTTP required building custom Server-Sent Events (SSE) session management and JSON-RPC 2.0 error handling for autonomous agent-tool binding.
Accomplishments that we're proud of
- 🏆 0.00% False Negative Rate: Achieved a mathematically verified 0.00% False Negative Rate for Level 1 resuscitations across 50 simulated cohort emergency trajectories.
- ⚡ Sub-Millisecond Evaluation Latency ($\bar{t} = 0.021\text{ ms}$): The triage decision engine executes in 21 microseconds—substantially faster than human cognitive perception.
- 🔗 Full MCP v2025-11-25 Streamable HTTP Compliance: Implemented 6 interoperable tools and 2 clinical resources over clean JSON-RPC 2.0 streams.
- 🚪 Closed-Loop Physical Smart Home Override: Seamlessly bridged digital AI reasoning with physical real-world actuation by automatically disengaging Ring smart deadbolts and triggering exterior optical SOS signals for incoming paramedics.
- 🩺 AHA-Compliant Pacing: Integrated an interactive, browser-synthesized 110 BPM Web Audio CPR metronome to assist lay bystanders during cardiac collapse.
- 🌐 True Open-Source Research Standard: Fully open-sourced under Apache 2.0 with machine-readable citation metadata (
CITATION.cff,.zenodo.json), clean CI pipelines, and a comprehensive Amazon Developer Platform Feedback & Friction Log (FRICTION_LOG.md).
What we learned
- Formal Methods + Foundation Models is the Future of Healthcare AI: Generative AI is extraordinarily powerful at synthesizing unstructured multimodal data, but critical systems require formal, deterministic finite-state governors to mathematically eliminate catastrophic failure modes.
- MCP is a Paradigm Shift for Ambient Computing: The Model Context Protocol transforms disconnected ambient devices (Alexa, Bee, Ring) from isolated consumer gadgets into a unified, interoperable sensory-actuator network.
- Seconds Save Synapses: Pre-hospital CAD packet transmission combined with automated physical access disengagement (Ring deadbolt release) can eliminate 2 to 4 minutes of forced-entry delays, directly translating to preserved myocardial tissue and viable cerebral cortex.
What's next for CuraStrand
- Multi-Center Prospective EMS Pilot: Partnering with regional emergency medical services and university trauma registries to validate ambient multi-sensor trajectories in simulated pre-hospital environments.
- Edge-Compiled ONNX Spectrogram Models: Porting acoustic formant classifiers directly to on-device NPU/DSP runtimes for zero-latency local offline execution during complete municipal power or internet outages.
- Wearable Radar Biosensor Integration: Expanding beyond optical photoplethysmography to include 60 GHz micro-Doppler millimetre-wave radar for contactless, through-clothing ballistocardiography.
- Formal Peer-Reviewed Publication: Submitting our clinical safety invariants, formal verification framework, and multi-sensor benchmark findings to biomedical informatics conferences (CHIL, AMIA, IEEE JBHI).
Built With
- acoustic-ai
- alexa-plus
- amazon-bedrock
- amazon-nova
- amazon-web-services
- apache-2-0
- biomedical-informatics
- biosignals
- claude-3-5-sonnet
- clinical-decision-support
- ecg-telemetry
- emergency-medicine
- formal-verification
- manchester-triage
- mcp
- model-context-protocol
- node.js
- open-source
- react
- ring
- strands-sdk
- tailwindcss
- typescript
- vite
- web-audio-api
Log in or sign up for Devpost to join the conversation.