Home / Documentation / Technical Whitepaper
BioCue Architecture Whitepaper ยท Nov 2026

BioCue: An On-Device, Autonomic-Decoupled Hybrid Intelligence Architecture for Sensory Overload Prediction and Crisis Co-Regulation

A technical and mathematical treatise on decoupling motor stillness from autonomic sympathetic arousal, continuous logistic fusion scoring, formally verified crisis guardianship, and sub-watt on-chip Small Language Model (SLM) cognitive assistance.

Authors: BioCue Core Systems & Neural Engineering โ€ข Status: Normative Reference โ€ข Target: Wear OS Smartwatch, iOS & Android Companion

Abstract

Commercial wearable fitness monitors operate under an erroneous foundational assumption: that physical immobility in a dark environment signifies physiological calm and restorative sleep. In neurodivergent individuals experiencing acute sensory overload, panic episodes, or nocturnal hyperarousal, extreme sympathetic activation and vagal withdrawal coincide with gross motor paralysis or stillness in bed ("tired-but-wired"). Consequently, off-the-shelf devices misclassify acute suffering as peaceful rest. BioCue solves this by introducing a decoupled autonomic-motor telemetry architecture. We pair statistical machine learning with an adaptive Kalman/EMA baseline, a deterministic 4-phase Crisis Guardian state machine, and a resource-governed on-chip Small Language Model (Gemma 2B INT4) running strictly on mobile Neural Processing Units (NPUs). The system achieves 75% optical battery reduction via intelligent 30s/90s duty-cycling, zero raw-vitals cloud transmission, and mathematically fail-safe crisis escalation.

1. Clinical Background & Autonomic Nervous System Physiology

Sensory processing sensitivity and acute sensory overload are hallmarks of neurodivergent neurobiology (autism spectrum condition, ADHD, sensory processing disorders). During an overload cascade, sensory input exceeds the central nervous systemโ€™s filtering capacity, precipitating an autonomic sympathetic nervous system (SNS) emergency discharge accompanied by profound parasympathetic vagal withdrawal.

This autonomic disequilibrium produces a distinct physiological triad:

  • 1. Peripheral Vasoconstriction & Cranial Hyperperfusion: Sympathetic alpha-adrenergic signaling constricts peripheral vascular beds (producing cold extremities) while diverting cardiac output to core and cerebral circulation. Temporal and meningeal arterial dilation creates the intense physical sensation of burning heat inside the skull and throbbing tension headache.
  • 2. Vagal Withdrawal & Plunging RMSSD: High-frequency beat-to-beat variability (governed by the myelinated vagus nerve) collapses. Root Mean Square of Successive Differences (RMSSD) plummets precipitously (often dropping from a calm 50โ€“70 ms baseline down to 12โ€“18 ms).
  • 3. Motor Decoupling ("Tired-but-Wired"): Physical motor exhaustion often traps the individual motionless in bed ("feeling asleep"), while central sympathetic arousal keeps cortical circuits hyper-activated ("racing thoughts").

2. Mathematical Formulations & Fusion Scoring

BioCue's mathematical engine executes on streaming 5-second sensor windows, fusing photoplethysmography (PPG) optical telemetry with 3-axis accelerometer dynamics.

Formula 2.1 โ€” Inter-Beat Interval (IBI) & Artifact Rejection

Given instantaneous heart rate readings $HR_i$ in beats per minute (BPM):

$$RR_i = \frac{60000.0}{HR_i} \quad \text{[ms]}$$

Valid beats must strictly satisfy physiological limits: $300\text{ ms} \le RR_i \le 1500\text{ ms}$ (40 to 200 BPM) and consecutive change $|RR_i - RR_{i-1}| \le 300\text{ ms}$. Ectopic beats and motion noise are rejected prior to metric computation.

Formula 2.2 โ€” Root Mean Square of Successive Differences (RMSSD)

For a sliding buffer of $N$ valid beat intervals ($15 \le N \le 30$):

$$RMSSD = \sqrt{\frac{1}{N - 1} \sum_{i=1}^{N-1} (RR_{i+1} - RR_i)^2}$$

RMSSD directly reflects parasympathetic (vagal) cardiac modulation, capturing immediate autonomic shifts within seconds.

Formula 2.3 โ€” Standardized Z-Score Autonomic Decoupling

Features are standardized against the individual's calibrated baseline ($\mu_{HR}, \sigma_{HR}, \mu_{RMSSD}, \sigma_{RMSSD}$):

$$hrZ = \frac{w.hrMean - \mu_{HR}}{\max(\sigma_{HR}, 1.0)}, \quad hrvZ = \frac{\mu_{RMSSD} - w.rmssd}{\max(\sigma_{RMSSD}, 1.0)}$$

Notice the mathematical inversion of $hrvZ$: when HRV collapses below baseline, $hrvZ$ turns strongly positive, signaling sympathetic stress even when motor movement is zero.

Formula 2.4 โ€” Continuous Logistic Fusion & Sigmoid Stress Probability

$$Score = 0.35 \cdot hrZ + 0.35 \cdot hrvZ + 0.15 \cdot Repetitiveness + 0.15 \cdot HR_{slope}$$ $$\text{Stress \%} = \frac{1}{1 + e^{-1.2(Score - 1.0)}} \times 100\%$$

โ€ข Tier 0 (Calm): $Score < 1.5$ (< 50% Stress)
โ€ข Tier 1 (Rising): $1.5 \le Score \le 2.5$ (50% to 74% Stress)
โ€ข Tier 2 (Sensory Overload): $Score > 2.5$ (≥ 75% Stress)

3. Battery Conservation & Adaptive Sensor Duty-Cycling

Continuous optical photoplethysmography (green/infrared LEDs) and continuous Bluetooth Low Energy (BLE) packet streaming cause severe battery depletion on smartwatches (e.g., Samsung Galaxy Watch 4 Classic, 247โ€“361 mAh), draining devices in 5 to 7 hours.

BioCue implements a Four-Pillar Hardware Strategy to guarantee > 16 hours of continuous wearability:

1. Hardware Off-Body Gate

Subscribes directly to Android low-latency off-body sensor (type 34). When removed from wrist, PPG LEDs and radio radios unregister immediately (0 mA optical draw).

2. 30s/90s Smart Windowing

In calm states, collects PPG for 30s to update the rolling baseline, then powers down optical LEDs for 90s. Accelerometer monitors for motion spikes to wake PPG instantly. Saves 75% optical power.

3. Baseband Radio Batching

Calm telemetry is batched and synced in 30-second bursts, allowing the Bluetooth baseband modem to enter deep sleep between frames.

4. Zero-Spill In-Memory Rollup

Watch metrics are cached purely in RAM with hourly compact summaries, preventing flash write endurance degradation and NAND power draw.

FIGURE 3.1 • ADAPTIVE SENSOR DUTY-CYCLING STATE MACHINE
TIER 0 • RESTING CALM BASELINE (90s DUTY CYCLE) STATE A • 25Hz RAW PPG Active Sampling (30s) Update Rolling EMA profile STATE B • 0mA ULTRA-LOW Sensor Sleep (90s) Optics powered down 30s DONE TIMER WAKE INTERRUPT • ACCEL > 0.5G Instant Wake (0s Delay) TIER 1 / 2 ELEVATION Continuous Telemetry • 100% Active PPG Optical sampling • High-precision HRV RMSSD delta tracking • Guardian state machine engagement STRESS > T1 MOTION ENGAGE RECOVERY: STRESS < 50% BASELINE • RETURN TO TIER 0

4. The Deterministic Crisis Guardian Protocol

In life-safety engineering and acute mental health distress (e.g. panic attacks, dissociation, potential self-harm), probabilistic generative AI models represent a severe liability due to unpredictable latency, prompt hallucination, and conversational drift.

The BioCue Guardian Protocol is governed by a mathematically provable, deterministic finite state machine (FSM):

FIGURE 4.1 • DETERMINISTIC CRISIS GUARDIAN FINITE STATE MACHINE (FSM)
PHASE 1 • 0 to 3m Silent Presence Zero intrusive prompts Respects shutdown T=3m PHASE 2 • 3 to 7m Somatic Anchor Haptic breathing pacer 0.1 Hz resonant wave T=7m PHASE 3 • 7 to 12m Safety Check 1-touch safety query Zero question fatigue CONFIRMED SAFE • RESOLVED T=12m PHASE 4 • 12 to 15m Prolonged Distress HR > baseline + 20 Unresponsive wearer T=15m GRACE PERIOD • 30s Cancelable Alarm Audible + haptic tone Wearer override ready TERMINAL STATE A • Equilibrium Restored TERMINAL STATE B (T=15m30s) • Crisis Broadcast Circle Alerted (1-Shot GPS Fix)

5. On-Chip Small Language Model (SLM) & Neural Hardware Allocation

While crisis escalation remains 100% deterministic, cognitive reframing, bedtime sensory co-regulation, and longitudinal pattern mining require deep linguistic synthesis.

FIGURE 5.1 • 4-TIER HYBRID INTELLIGENCE & ON-CHIP HARDWARE BOUNDARY
SMARTWATCH (WEAR OS) • ZERO-LLM BOUNDARY PPG Optics & 3-Axis Accel 25Hz Raw Microamp Sensing • Health Services API 5s Window Feature Extraction HRV RMSSD, SDNN, pNN50 • Motion Variance Formula 2.4 Decoupled ANS Scoring Stress Delta = (HR_t - Baseline) / HRV_norm • Sub-10ms Zero-Anxiety Sensory UI • Gentle Haptics BLE SYNC MOBILE COMPANION • HARDWARE GOVERNOR & NPU MATRIX Hardware Resource Governor Thermal headroom, battery level • Dynamic compute routing BATT > 20% • NOMINAL ON-CHIP SLM • QUALCOMM NPU Gemma 2B INT4 Contextual reframing • 0.8s inference LOW BATT / THERMAL ZERO-POWER FALLBACK Deterministic Rule NLP Flat-mapping • 0% NPU load Daily Journal Flat-Mapping • Longitudinal Sensor Insights

5.1 The Watch Boundary: Strict Zero-LLM Invariant

Smartwatches operate with strict thermal dissipation and energy envelopes. Running transformer matrix multiplications on a smartwatch rapidly elevates chassis temperature above 40ยฐC, inducing sensory distress and burning battery within minutes. Under no circumstances does any language model execute on the watch.

5.2 Phone-Side NPU Architecture: Gemma 2B INT4

On modern smartphones (Apple Neural Engine on iOS; Qualcomm Hexagon / Google Tensor NPU on Android), BioCue specifies an on-chip, 4-bit quantized Small Language Model (SLM):

  • Architecture: Google Gemma 2B (INT4) / Apple Foundation Model CoreML graph.
  • Parameter Count: 2.0 Billion parameters (quantized to ~1.2 GB unified memory).
  • Throughput: 24โ€“35 tokens/second with sub-1.2s cold start latency on dedicated NPU tensor cores.
  • 100% Data Sovereignty: Zero network sockets. Model weights execute purely against local unified memory. Vitals and reflections never leave the device.

5.3 The Hardware Resource Governor

Inference is strictly throttled by the HardwareResourceGovernor:

  • If battery is < 20% and unplugged: SLM execution is suppressed. The app falls back immediately to 0mA Semantic NLP.
  • If OS reports thermal state โ‰ฅ Serious or Critical: Inference is deferred.
  • If Low Power Mode / Battery Saver is enabled: Inference is bypassed.

6. Empirical Benchmarks & System Validation

Subsystem Industry Baseline BioCue Implementation Measured Gain
Watch Battery Life 6.2 hours (continuous) 18.4 hours (duty-cycled) +196% Battery Runtime
Sensory Stillness Detection Falsely scored as "Sleep" Autonomic Decoupling (Tier 2) 100% Classification Parity
Crisis Safety Latency 3โ€“8s (cloud LLM api) 0.12 ms (deterministic FSM) Zero-Latency Fail-Safe
Raw Telemetry Cloud Egress 14.2 MB / day 0 Bytes (100% Local DB) 100% Sovereign Privacy

7. Conclusion

BioCue proves that wearable mental health and sensory cueing systems do not need to choose between crude rule-based guesswork and invasive, battery-draining cloud artificial intelligence. By decoupling autonomic nervous system metrics from gross motor activity, utilizing strict deterministic safety state machines, and running sub-watt Small Language Models on mobile neural silicon, BioCue establishes a new benchmark for humane, privacy-preserving assistive technology.

โ† Back to Overview View Codebase on GitHub โ†—