DETECTION PROFILES · 4 MIN READ

Choose your detection profile

ESPectre includes two built-in production motion detectors: Lightweight Detection and High-Accuracy Detection. Both analyze the same Wi-Fi CSI stream and expose the same motion state. Lightweight is the published default and leaves more CPU and working memory available; High Accuracy uses a compact pretrained model to improve detection quality and generalization on the maintained corpus.

An ESP32 branching one Wi-Fi signal into short and deep processing paths
One CSI stream feeds two built-in detectors. Native and ESPHome can switch between them at runtime, while Matter selects one at build time.

Two built-in detectors

PUBLISHED DEFAULT

Lightweight Detection

Leaves more CPU time and working memory for the rest of the firmware. It adapts its threshold to the installed room during a quiet startup calibration.

lightweight

DETECTION QUALITY

High-Accuracy Detection

Uses additional feature state and a compact neural network for higher measured accuracy and better cross-environment transfer in the maintained corpus. It starts without quiet-room threshold calibration.

high_accuracy

Choose in thirty seconds

What changes

Runtime cost

Lightweight

Lower CPU and working-memory use.

High Accuracy

More feature state and neural-inference work.

Detection quality

Lightweight

A production baseline with lower measured accuracy and weaker transfer across environments.

High Accuracy

Higher measured accuracy and better cross-environment transfer in the maintained corpus.

Startup

Lightweight

Adapts its threshold using about ten seconds of clean, ready quiet-room coverage.

High Accuracy

Skips threshold calibration, then starts after CSI and its feature window are ready.

Training required from you

Lightweight

None.

High Accuracy

None; the pretrained model is included in the firmware.

Best fit

Lightweight

Constrained devices or products reserving resources for other services.

High Accuracy

Products that prioritize detection quality and can afford the additional runtime cost.

At startup: keep the room still while Lightweight calibrates, and recalibrate after moving the sensor substantially. High Accuracy does not calibrate its threshold, but it still needs CSI capture and its feature window to become ready.

These are detector choices, not power modes. ESPectre benchmarks detector CPU and memory separately and makes no whole-device energy-saving claim for either profile.

How to select it

Choose the frontend or integration you use. Native and ESPHome persist a runtime selection; Matter makes the choice at build time.

Native MQTT shell

Connect to the broker and select the discovered device. The accepted profile is applied immediately and persists across reboots:

./espectre mqtt --broker 192.168.1.20
espectre> set_detector high_accuracy
espectre> info

Use set_detector lightweight to switch back.

Evidence and deeper reference

The SDK detector reference follows CSI through temporal admission, subcarrier processing, feature extraction, and on-device inference. It also covers the performance evidence available for both profiles.