Repository navigation
feat: watch and search modes with near / not-near detections on MQTT - #22
Merged
Merged
Conversation
Distance becomes near (under 1 m) or not near, trained on RSSI features only. A detector service runs the saved models on live 5 s windows and publishes the detection topic; invigil start runs it. Allowed devices come from a whitelist of hashes in config.toml. The dashboard takes detections from MQTT and shows a NEAR banner for search mode. Design requirement 3 is now near / not-near accuracy. Results in docs/results/2026-11-23-model-v2.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #21
docs/results/2026-11-23-model-v2/report.md): distance is now near (under 1 m) or not near, trained on RSSI features only. Held out by session: 89.6% accuracy, 84.2% balanced, 76% of near windows found. Type is still 100% but only on one earpiece brand, with no watch or allowed data. Adding manufacturer and timing features to the distance model made it worse: it learned which device it was looking at, not the distance.server/detector.py): runs the saved models on live 5 s windows each time a BLE batch arrives, and publishesinvigil/node/{node}/detectionwithnearornot_near.invigil startstarts it whenml/models/has models. Whitelist ([whitelist] allowed, hashes only) and an RSSI cut-off ([detector] min_rssi, default -85 dBm) are inserver/config.toml. The logger recordsdetection.csv.NEAR: <type>banner for search mode.