🚨 Problem with the v1 Trigger Logic
───────────────────────────────────
The original rule was:
- “No motion for 15-30 s” AND
- “No breathing or critically low SpO₂”
The “AND” requirement (both conditions simultaneously) creates two serious hazards:
A. Incapacitated-but-breathing Scenario
• Someone faints or has a seizure; they stop moving but still breathe reflexively.
• SpO₂ may stay > 88 % for 30-60 s, so criterion 2 is FALSE.
• Result: DMS never trips → continued hypoxia → secondary loss of airway / brain injury.
B. Sensor-failure Scenario
• Flow sensor gets blocked with condensation; it mis-reports “normal breathing.”
• Motion stops, but criterion 2 again FALSE → DMS never trips.
• Single-point failure defeats the whole switch—exactly what a DMS is supposed to prevent.
(Conversely, aggressive “OR” logic would dump too often—e.g., sitting perfectly still between sets.)
We need something both fail-safe (one bad variable can’t kill you) and false-trip resistant (doesn’t pop every time you pause to stretch).
───────────────────────────────────
DMS Trigger Logic v2 – “Tiered ANY/SUPERVISE” Model
───────────────────────────────────
-
SENSOR SUITE
• Motion: tri-axial accelerometer (wristband or head-strap)
• Respiration: mask flow + thoracic impedance strip
• SpO₂ + HR: integrated pulse-ox (temporal artery or ear-clip)
• Strap-tension microswitch (detects slump)
-
THREE-TIER DECISION TREE
Tier 0 — NORMAL
• All parameters in green zone.
• DMS armed but inactive.
Tier 1 — PRE-ALERT (“Watch”)
• ANY single red flag for ≥ 8 s
– No motion or no flow or SpO₂ < 88 % or HR < 45 bpm* or strap slack.
• Actions: audible beep + haptic buzz; app flashes yellow.
• System drops FiO₂ by one safety step (e.g., 2 % O₂ increase) but does not fully vent.
• If user moves/inhales within 5 s → return to Tier 0.
Tier 2 — DMS TRIP (“Dump”)
• ANY of the following:
a. Two independent red flags concurrently for ≥ 10 s
(e.g., no motion + no flow, or SpO₂ < 80 % + strap slack)
b. One red flag persists ≥ 20 s (covers single-sensor failure)
c. Hardware watchdog (heartbeat packet lost > 3 s)
• Actions:
- Mechanical bypass valve pops open (spring-loaded)
- Electronic solenoid vents hypoxic module
- 95 dB alarm + vibration
- App issues SOS push + optional GPS SMS to emergency contact
- Data log stamped for incident review
Tier 3 — HARD FAILSAFE
• Total power loss, firmware crash, or internal temp > 60 °C.
• Independent reed relay de-energizes → bypass valve OPEN (no logic required).
(*HR threshold auto-tunes from user’s baseline during first three sessions.)
-
ANTI-FALSE-DUMP SAFEGUARDS
• “Move-to-Cancel”: any deliberate motion > 0.3 g resets to Tier 0 instantly.
• Adaptive filters: ignores rhythmic micro-movements (cycling cadence, treadmill vibration).
• Calibration wizard lets the athlete set “rest-still” profiles (e.g., meditation/yoga mode).
-
SELF-TEST & REDUNDANCY
• On power-up the mask performs a 2-sec bypass-valve snap test (audible click confirms).
• Dual flow sensors (venturi + MEMS) – majority vote.
• Wrist sensor has its own coin-cell; if BLE link dies, that counts as a red flag.
───────────────────────────────────
v2 Logic at a Glance
───────────────────────────────────
| Condition (≥ 8 s) | Tier 0 → 1 | Tier 1 Escalates if | Result |
|---|
| Single red flag | YES | Flag lasts 20 s OR 2nd flag appears | Full dump & alarm |
| Power / CPU loss | N/A | Instant | Bypass valve springs open |
───────────────────────────────────
Benefits of v2
──────────────
• ANY single catastrophic metric can ultimately trigger a dump—no single-point fatal dependency.
• Tiered approach slashes nuisance trips yet never lets you linger unconscious.
• All active decisions are still backed by the purely mechanical valve in Tier 3.
Let me know if you want parameter tweaks, an FSM diagram, or validation test protocols!