148 lines
11 KiB
Markdown
148 lines
11 KiB
Markdown
# Modification
|
||
|
||
**Verdict**: nothing to change
|
||
**Changed**: none
|
||
|
||
## Diagnosis
|
||
|
||
NORDEND, 2026-08-23 → 2026-09-05 (UTC), one measurement every 15 min (19 targets, 3 references).
|
||
|
||
| Family | labelled | found | flagged | wrongly |
|
||
|---|---|---|---|---|
|
||
| Displacement | 1 | 0 | 0 | 0 |
|
||
| No data | 7 | 7 | 7 | 0 |
|
||
| Obstruction | 3 | 3 | 82 | 77 |
|
||
| Perturbation | 2 | 0 | 5 | 5 |
|
||
| Target issue | 1 | 0 | 0 | 0 |
|
||
| Thermal displacement | 12 | 11 | 26 | 2 |
|
||
| Visibility | 18 | 9 | 16 | 6 |
|
||
|
||
(The table comes from `tools/table.py`: a label counts as found when an event of its family overlaps it; "wrongly" means an event that overlaps no label of its family.)
|
||
|
||
- **NORDEND-24 (Target issue, PR04): missed. It is 1224 of the range's labelled instants, the largest defect.** The cause is `target_issue.py`. A degraded day there is a day with at least 25 % of the target's measurements rejected (`SHARE`). On 21-25/08 PR04 is rejected 22-92 % a day, but that run is only 5 days, under `WEEK`, so it becomes "Target obscured" (Obstruction). From 26/08 to 05/09 PR04 is rejected on only 0-13 % of each day, with 4 days of no rejection at all. Its daily median error_value is 16-35 % of its threshold (its neighbours: 10-15 %), and its corrected curves are 1.5-4 times noisier than theirs. The label rests on "error_value several times its neighbours'". Nothing simple separates that from the rest:
|
||
- PR04 is just as high on 14-16/08, before the label starts.
|
||
- CTR01 sits at 3× the other targets all along without a label until 16/10.
|
||
- families.md asks for "rejections almost every day" and says "an error_value right at the threshold, with few own rejections, is not a Target issue".
|
||
|
||
Consequence: PR04's rejected points become Brief obstructions (1 sensor) and Target obscured. That is most of the 77 wrong Obstruction events and of the Obstruction "correct" score of 4 %.
|
||
- **Thermal displacement: 11 of 12 found, with narrow bounds** (73 % of the instants found). `thermal_displacement.py` (camera path) ends each daily wave at 23:00 (`RETURN`), while the NORDEND labels run 05:15 → 05:15. The 23:00-06:00 nights are not flagged. The 2 wrong events are 28/08 and 03/09, where the context removed the labels (NORDEND-248, NORDEND-83: movement absorbed by the compensation). The camera path flags every day the raw positions move (D-074). NORDEND-245 counts as missed only because its part on the range is 00:00-05:15, a night.
|
||
- **NORDEND-316, -70, -71, -73, -255, -318, -69 (Visibility): wrong family (Obstruction).** `visibility.py` produces a Brief obstruction at the instant where PR07 or CTR01 is rejected. At the same instant, `categories.py` attaches the jump back of every target (`displacement.py`, together: K_TOGETHER) to that single-instant Obstruction. The events show "Brief obstruction, 18-20 sensors".
|
||
- **NORDEND-85 (Visibility, cause not established): read as Perturbation, 19 sensors. This is an alternative reading.** families.md: "without an established cause: Perturbation".
|
||
- **NORDEND-251 (Perturbation, PR05): wrong family (Brief obstruction at 12:00, 7 sensors). NORDEND-80 (Perturbation) and NORDEND-250 (Displacement), the camera's small steps: missed.** They are up to 7 noises, under `K` (20 noises) and under the 5 noises of the median of the targets (`K_TOGETHER`).
|
||
- **NORDEND-254 (Visibility, PR07 one jump): missed.** The jump is under `K`. The error_value rises once, which is not a rejection and not a run of 3.
|
||
- **Visibility, 6 events with no label:** 24/08 10:30 → 25/08 11:30 (the PR07 day; NORDEND-53 was removed), 25-26/08 night, 27/08 day (PR06, PR07), 31/08 16:00, and 03/09 21:45 and 04/09 16:30. The last two overlap the Obstruction labels NORDEND-86 and NORDEND-91: cobweb thread, "a thread that hides a target, Obstruction; the web that veils the image, Visibility".
|
||
- **Perturbation, 5 events with no label:** 26/08 16:15, 01/09 05:00, 03/09 16:45, 04/09 06:45 and 10:45. These are jumps of the median of the targets, back at the next measurement (K_TOGETHER). The context calls them short jumps that stay within the noise.
|
||
- **Correct:** the 7 No data, NORDEND-57, -247, -249, -65, -67, -75, -317, -89, -90 (Visibility), and NORDEND-61, -86, -91 (Obstruction). Bounds are within a few measurements, or the event runs longer (NORDEND-61's event ends at 23:45).
|
||
|
||
## What changed
|
||
|
||
Nothing. Each change I tried made a regression or no gain; see Checks and Pruning.
|
||
|
||
## Why
|
||
|
||
The main defect, PR04 as a Target issue while it is rarely rejected, needs a rule based on the error_value relative to the other targets. That rule would also flag CTR01 for months without a label, and it contradicts the families document's own criterion (own rejections almost every day). The other defects are either label conventions (thermal nights, compensated camera days) or jumps under the noise thresholds.
|
||
|
||
## Checks
|
||
|
||
- events and sensors: unchanged (no commit). The before outputs are `events-before.txt` and `sensors-before.txt`.
|
||
- range: unchanged (`range-before.txt`).
|
||
- benchmark: unchanged (`benchmark-before.txt`).
|
||
- Trials on copies (not committed):
|
||
- **Thermal: the contraction runs to the next morning's start (RETURN = 0).**
|
||
- Range: Thermal found 73 → 100 %, correct 86 → 85 %.
|
||
- Benchmark: 5 regressions:
|
||
|
||
| Station | Thermal displacement correct |
|
||
|---|---|
|
||
| FLORIDA | 41 → 30 % |
|
||
| NIEDERHORN | 87 → 41 % |
|
||
| SNCF01 | 89 → 79 % |
|
||
| WILDSTRUBEL | 25 → 12 % |
|
||
| Total | 69 → 64 % |
|
||
|
||
- Dropped (`trial-thermal-RETURN0.txt`).
|
||
- **Visibility: a Brief obstruction on at least half of the sensors measured becomes a one-instant Poor visibility** (both branches of rule 2).
|
||
- Range: Visibility found 71 → 73.
|
||
- Benchmark: 0 regressions, but no family `Total` gains a point; SNCF01 Visibility correct 80 → 56 % (trains hiding most targets); +3 code lines.
|
||
- Dropped (`trial-whole-scene-brief.txt`).
|
||
|
||
## Pruning
|
||
|
||
The detector the diagnosis blames most is `target_issue.py`. Each removal was compared against `benchmark-before.txt`; all three made regressions, so all three rules stay:
|
||
|
||
- **`BRIDGE` (1 → 0, no bridging day). Kept.** Removing it gives:
|
||
|
||
| Station | Score | Change | Instants lost |
|
||
|---|---|---|---|
|
||
| FLORIDA | Target issue found | 97 → 90 % | 193 |
|
||
| NIEDERHORN | Obstruction correct | 37 → 22 % | 305 |
|
||
| NORDEND | Target issue found | 55 → 46 % | 729 |
|
||
| Total | Target issue found | 84 → 80 % | — |
|
||
|
||
Output: `pruning-BRIDGE.txt`.
|
||
- **`MIN_DAYS` (2 → 1, a single degraded day suffices). Kept.** Removing it gives Total Obstruction correct 28 → 26 % (294 instants). Output: `pruning-MIN_DAYS.txt`.
|
||
- **`WEEK` (no Target obscured variety, every run is a Degraded target). Kept.** Removing it gives:
|
||
|
||
| Station | Score | Change |
|
||
|---|---|---|
|
||
| Total | Obstruction found | 42 → 24 % |
|
||
| Total | Target issue correct | 100 → 98 % |
|
||
| NORDEND | Obstruction found | 43 → 22 % |
|
||
| WILDSTRUBEL | Obstruction found | 35 → 25 % |
|
||
| BREITHORN | Obstruction found | 100 → 36 % |
|
||
|
||
It also gains Total Target issue found 84 → 89 %. Output: `pruning-WEEK.txt`.
|
||
|
||
## Before / after on the range
|
||
|
||
No change: the events check and the range score are identical (`events-before.txt`, `range-before.txt`).
|
||
|
||
| Family | found | correct |
|
||
|---|---|---|
|
||
| Displacement | 0/1 | — |
|
||
| No data | 14/14 | 14/14 |
|
||
| Obstruction | 16/19 | 16/406 |
|
||
| Perturbation | 0/2 | 0/5 |
|
||
| Target issue | 0/1224 | — |
|
||
| Thermal displacement | 758/1044 | 758/881 |
|
||
| Visibility | 71/103 | 71/274 |
|
||
|
||
## Benchmark
|
||
|
||
No commit: the benchmark is `benchmark-before.txt` (complexity 609 code lines, 46 constants). `compare` of a file against itself: 0 regressions.
|
||
|
||
## For the user to decide
|
||
|
||
- NORDEND-24 (NORDEND, 26/08 → 05/09, Target issue, PR04): the detectors see PR04 as normal there, with a few Brief obstructions. They see 21-25/08 as Target obscured (Obstruction). If the labels' reading is kept (a target whose usual error_value is several times its neighbours' is a Target issue even when rarely rejected), families.md should say so. The same reading covers NORDEND-152 (01/10 → 16/10, PR04). It is the largest missed share of NORDEND Target issue in the benchmark: about 3400 instants.
|
||
- NORDEND thermal labels (NORDEND-51, -52, -55, -56, -246, -68, -72, -74, -78, -81) run 05:15 → 05:15, nights included, while other stations label part of the day. The detectors' wave ends at 23:00. Covering the nights costs 5 points of Total Thermal correct.
|
||
- 28/08 and 03/09 (NORDEND-248 and NORDEND-83, removed): the camera path flags the compensated camera movement (D-074, "everything is detected"). The labels keep only what the corrected curves keep.
|
||
- NORDEND-85 (03/09 16:30, Visibility, cause not established): read as Perturbation, consistent with families.md.
|
||
|
||
## Not fixed
|
||
|
||
- **NORDEND-24 (PR04):** no general rule found; see above.
|
||
- **NORDEND-316, -70, -71, -73, -255, -318, -69:** a weak target rejected while all targets jump at once is read as Obstruction, through the single-instant Obstruction rule of `categories.py` (SNCF01 2026-10-14, S1). Tightening that rule to an obstruction that includes a reference would only move these instants to Perturbation, still not Visibility.
|
||
- **NORDEND-250, NORDEND-80, NORDEND-251, NORDEND-254:** steps and jumps under `K` and `K_TOGETHER`. Lowering those would bring in the unlabelled short jumps the context says stay within the noise.
|
||
|
||
## Limits
|
||
|
||
- NORDEND-24 (2026-08-17T05:15Z → 2026-10-01T00:00Z, Target issue), its 21-25/08 part: Target issue (the target itself) or Target obscured (something in front) is decided by the cause, seen on the images. The measurements give only the duration (`WEEK`).
|
||
- NORDEND-316 (2026-08-28T14:15Z → 14:45Z), NORDEND-317 (2026-08-31T14:30Z → 15:00Z), NORDEND-318 (2026-09-01T14:45Z → 15:30Z), Visibility: "whole image less clean in the sun" for one measurement. Telling this apart from a passage hiding many targets (the trains of SNCF01) would take the image of the instant.
|
||
- NORDEND-53, -248, -253 and -83 were removed by the context; the detectors still flag around NORDEND-53 (PR07 Target obscured and Poor visibility, 24-25/08), -248 and -83 (thermal, 28/08 and 03/09).
|
||
|
||
## Tools
|
||
|
||
All tools are in `/home/maxime/aimsight-optimizer/sessions/NORDEND_2026-08-23T0515_2026-09-04T0615_20261118T1542Z/tools/`:
|
||
|
||
- `dayshare.py <station> <from> <to> <sensors>`: each sensor's share of rejected measurements per UTC day. Worth keeping for Target issue work.
|
||
- `dayratio.py <station> <from> <to>`: table of each sensor's daily median error_value/threshold. Worth keeping.
|
||
- `daynoise.py <station> <from> <to> [sensors]`: table of the daily median step of corr per sensor. Worth keeping.
|
||
- `brief_share.py <detectors> <labels folder> <data folder>`: the Brief obstructions of every station, bucketed by share of sensors × label family. Single-use.
|
||
- `episodes_at.py <detectors> <station> <from> <to>`: the raw episodes of each detector over a span, before categories.py. Worth keeping.
|
||
- `table.py <detectors> <station> <labels> <from> <to>`: the diagnosis table and the missed labels. Worth keeping.
|
||
|
||
## Difficulties
|
||
|
||
- The labels touching the range include 6 outside the analysed span: NORDEND-245, -24, -88, -89, -90 and -91. The table counts them because the range check covers to 2026-09-05.
|
||
- Foreground `sleep` is blocked, so I waited on the background benchmarks with until-loops.
|