Repository navigation
High Accuracy detector: architecture, training, and validation in ESPectre 3.0 #126
francescopace
started this conversation in
General
Replies: 1 comment 1 reply
|
Hi Francesco, |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
ESPectre 3.0.0-rc1 includes
high_accuracy, the successor to the experimental ML detector introduced in v2.5. It detects motion entirely on the ESP32, without requiring an empty-room calibration. Training happens offline; the firmware ships with the trained model.The current network is a compact MLP:
8 → 24 (ReLU) → 12 (ReLU) → 1 (Sigmoid)It has 529 parameters, occupying about 2.1 KB as float weights and biases, excluding feature buffers and other runtime state.
The eight inputs describe turbulence, normalized profile displacement, and changes in channel shape. They come from CSI amplitudes and use scale-invariant measurements to reduce sensitivity to radio gain changes. Automatic gain control stays enabled.
The output is a motion score between
0.0and1.0, with a default threshold of0.5. Detection starts once CSI is available and the feature window has filled. For applications with tighter resource budgets,lightweightremains available and uses startup threshold calibration.The training workflow now separates training, model selection, and holdout recordings. Validation includes weak Wi-Fi links, packet loss, and long quiet recordings, where false alarms can be more revealing than an average accuracy score. Python and C++ replay checks keep the training pipeline aligned with firmware behavior.
The RC1 performance report includes results from 13 paired recordings and five long quiet recordings outside the training corpus, with per-chip results and false-alarm counts.
My priority is improving detection in rooms and Wi-Fi conditions the model hasn't seen during training. Stationary presence and gesture recognition need separate research and validation; the current model classifies both an empty room and a person sitting still as
IDLE.For implementation details or contributions:
If you're experimenting with CSI features or small embedded models, share what you've tried, including approaches that didn't work.
All reactions