Skip to content

Epic: On-device acute fall/crash detector — synthetic data -> GPU training -> tiny on-device model #62

Description

@nandal

What

The fast-acute path of the detection brain: a tiny on-device model that fuses phone sensors and decides whether a hard event — a bike crash, a fall on the stairs, a collapse — just happened, opening the "are you okay?" grace (~10–30s) before summoning help. Inference runs on-device (the raw trace never leaves the edge); training happens off-device on GPUs.

Part of the detection engine (#28, #37); fast-acute depth relates to the wearable (#8). Design discussion + trade-offs: #58.

The loop

OFF-DEVICE (GPUs, one-time)                 ON-DEVICE (always-on)
generate synthetic data ─┐
public datasets ─────────┤→ train/tune → quantise/convert → push ─► load once,
                         │   tiny model   (TFLite/CoreML/      (bundled    run inference:
                         │                 ONNX/ExecuTorch)     + OTA)     sensors in → verdict out
                  benchmark gate ◄─────────────────────────────┘

The phone only ever runs inference; it never trains.

Foundation — open now (independent, parallelisable)

Next — promote to issues once the foundation lands (or someone's circling)

  • Baseline tiny model + GPU training script + model card
  • On-device inference behind a LivenessSource — emit the acute verdict, never a trace
  • Model packaging: versioned artifact, bundled baseline (Sovereign-safe, no backend) + benchmark-gated OTA update with rollback

Guardrails (non-negotiable — see CLAUDE.md)

  • Edge-only: on-device inference, one-bit verdict out, no telemetry logged or synced.
  • Honest metrics: every model ships with a model card stating its train/test distribution; an OTA push must beat the current model on recall AND false-alarm rate, staged and rollback-able. A silently-pushed worse model is a safety regression.
  • The grace window does the safety work — the detector opens a check; it does not summon help by itself. False alarm > no alarm, but keep it cheap.

Where to start

New contributors: pick up #59, #60, or #61 — they need no GPU or ML depth and unlock everything downstream. Debate architecture and datasets in #58.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions