ML Detector: architecture, training pipeline, and future direction #126
Pinned
francescopace
started this conversation in
General
Replies: 1 comment
|
Hi Francesco, |
0 replies
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.
Starting from v2.5, ESPectre includes an experimental ML-based motion detector built around a simple idea: remove calibration from the user experience while keeping inference fully on-device.
Traditional statistical approaches still work very well, but calibration remains a practical limitation. A compact ML model offers a path toward a more plug-and-play detector, while preserving the project's edge-first and privacy-first nature.
At the same time, this is a constrained embedded problem. The target hardware has limited RAM, limited flash, and a very small inference budget, so the model has to stay lightweight enough for real deployment on ESP32-class devices.
The current production model is a compact MLP:
9 -> 32 -> 16 -> 1It runs on 9 turbulence-window features extracted from CSI-derived motion signals.
This network uses 865 parameters and occupies about 3.4 KB as embedded float weights, which keeps it small enough for practical deployment on ESP32-class devices. The MLP itself requires 816 MACs per inference.
On real hardware, the full ML detection path (feature extraction + MLP inference) currently measures about:
Most of the runtime cost comes from feature extraction rather than from the neural network itself.
The broader point, though, is not just the model itself. Over time, this work turned into a full ML workflow around ESPectre, including:
What interests me most at this stage is not simply maximizing offline accuracy, but pushing toward robust calibration-free sensing that remains practical on real hardware.
This work is also larger than motion detection alone. It is the foundation for future sensing tasks such gesture recognition and Human Activity Recognition (HAR)!
If you want the implementation details, the current references are here:
If you are experimenting with CSI-based ML, tiny on-device models, or embedded Wi-Fi sensing pipelines in general, feel free to share results, ideas, or criticism.
All reactions