Skip to content

feat: watch and search modes with near / not-near detections on MQTT - #22

Merged
mohanvd merged 2 commits into
mainfrom
21-watch-search-modes
Nov 22, 2026
Merged

mohanvd merged 2 commits into
mainfrom
21-watch-search-modes

Conversation

@mohanvd

@mohanvd mohanvd commented Nov 22, 2026

Copy link
Copy Markdown
Owner

Closes #21

  • Model v2 (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.
  • DR3 is now near / not-near accuracy at least 80% in README, CLAUDE.md, AGENTS.md, docs and the dashboard.
  • Detector (server/detector.py): runs the saved models on live 5 s windows each time a BLE batch arrives, and publishes invigil/node/{node}/detection with near or not_near. invigil start starts it when ml/models/ has models. Whitelist ([whitelist] allowed, hashes only) and an RSSI cut-off ([detector] min_rssi, default -85 dBm) are in server/config.toml. The logger records detection.csv.
  • Dashboard: Live takes detections from MQTT, shows alerts with their type, and a large NEAR: <type> banner for search mode.
  • Response time: not measured live (the unit was off). A replay of the 24 sessions through the detector gives a median of 1.9 s, with 15 of the 19 detected sessions within 5 s. The steps for the live test are in the report.

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.
@vercel

vercel Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
invigil-demo Ready Ready Preview Nov 22, 2026 10:14pm UTC

Request Review

@mohanvd
mohanvd merged commit 1e63d37 into main Nov 22, 2026
7 checks passed
@mohanvd
mohanvd deleted the 21-watch-search-modes branch November 22, 2026 22:16
@github-project-automation github-project-automation Bot moved this from Todo to Done in Invigil Nov 22, 2026

This branch was successfully deployed

1 active deployment
Preview — 6b004074 Deployed Nov 22, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Watch and search modes: near / not-near model, live detections on MQTT, dashboard banner

1 participant