maximeandClaude Opus 5.5 fb32143722 displacement: Target flipping, common peaks, lasting jumps under K, camera drift and five constants removed
Removed (their benchmark contribution, each alone): Target flipping with FLIP and MAX_FLIPPING (none), the common
one-step peak with K_PEAK and PEAK_MIN (Displacement found -2, one jump back at WILDSTRUBEL), the jump under K that
stays with K_LASTING and PLATEAU (2 instants at NIEDERHORN), the first BASE measurements faced with the level after
(none), the usual place of the first day (Visibility found -1), the camera drift with LARGE (Displacement correct -3),
MAX_HOLE of the drift pieces (Displacement found +3). Variety Large shift folded into Lasting shift. The event
sentences of the varieties are now the episodes' texts.

Benchmark Totals (from the previous commit): Displacement found 91 -> 93 %, correct 28 -> 25 %; Visibility found
55 -> 54 %, correct 72 -> 71 %; the other families unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 17:20:17 +01:00
2026-11-16 11:56:56 +01:00

detectors

The AIMsight anomaly detectors and their benchmark. Python 3, standard library only.

The detectors

One detector per anomaly family of the displacements, in scripts/:

Family Detector
Visibility visibility.py
Obstruction obstruction.py
Target issue target_issue.py
Thermal displacement thermal_displacement.py
No data no_data.py
Displacement displacement.py

categories.py runs them all and classifies their episodes into events, one line per event; they read a station folder through scripts/data.py of the tools repository, the sibling ~/aimsight-tools.

python3 scripts/categories.py <station folder> --from YYYY-MM-DD --to YYYY-MM-DD   # --chunk N, --history N

thresholds.md is the registry of the detectors' thresholds and what each was tuned on.

Measuring them: bench/

The detectors against labels (JSONL, one per line, {"id", "start", "end", "family", "description"}, UTC ISO times):

python3 bench/score.py <station folder> --labels <labels.jsonl> --from YYYY-MM-DD --to YYYY-MM-DD       # the score of a range
python3 bench/regression.py --labels <folder of <STATION>.jsonl> --data <folder of <STATION>/>       # the benchmark; --from/--to: one range for all
python3 bench/sensors.py <station folder> --from YYYY-MM-DD --to YYYY-MM-DD                             # the sensors of each event

A change to a detector is checked with the benchmark; a refactoring leaves every figure unchanged.

Improving them

The detectors are improved by Optimizer (its optimize skill, from one analysis), with the upgrader and validator agents of the agents repository: on the range of an analysis, its labels as the truth, the upgrader fixes the detectors (one commit per fix here) and the validator keeps, removes or cancels the fixes against overfitting, judged by this benchmark. Nothing is pushed.

Copied from Support-Agent on 2026-11-13 (commit 48a3092); the detectors now evolve here. Used by aimsight-app and Optimizer, through a detectors -> ~/aimsight-detectors link (one copy on the workstation); their labels come from the labeling repository, their data from aimsight-data. The architecture of the repositories: ~/aimsight-app/docs/architecture.drawio.

S
Description
Detectors for time series classification
Readme
417 KiB
0 Stars 1 Watchers 0 Forks
Languages
Python 100%