# Modification **Verdict**: changed **Changed**: scripts/no_data.py, scripts/displacement.py, thresholds.md ## Diagnosis ALASKA, 2026-11-04 → 2026-11-17 (UTC; labels up to 2026-11-15, analysis up to 2026-11-16T12:17), cadence 15 min, 12 targets and 2 references. Range score before, in instants: | Family | labelled | found | flagged | wrongly | |---|---|---|---|---| | No data | 2 | 0 | 0 | 0 | | Obstruction | 0 | 0 | 14 | 14 | | Perturbation | 256 | 1 | 1 | 0 | | Thermal displacement | 353 | 240 | 949 | 709 | | Visibility | 47 | 41 | 162 | 121 | - ALASKA-7 (2026-11-10 08:15 → 09:00, No data): **missing**. Two measurements are missing for every sensor. `no_data.MISSING = 2` only counted a hole of more than two missing steps. Two missing steps for all sensors are labelled No data on other stations too: WYOMING-12 at the same minutes, CLARIDEN-34/57/58, LENZSPITZE-2/20/21. - ALASKA-1, -3, -5, -6 (Perturbation; nights of 5, 6, 7 and 7–8 Nov): **missing**. All the targets jump together on the same side for one measurement, then come back. On each target the jump is 4 to 14 of its noises (tool `jumps.py`), well under `displacement.K = 20`. No rule read the targets as a group, so this common mechanism (a reference shifting and the compensation passing it to every target) went unseen. - ALASKA-2 (2026-11-05 08:45 → 09:15, Perturbation, 10/11/09): **correct**. Target 10 jumps on its own, at 26 noises. - ALASKA-9 (2026-11-13 19:15 → 2026-11-15 10:00, Perturbation): **missing**. A reference slides and the curves sit 1 to 2 mm higher for two days. That is too slow for the jump rule and too short for the drift (5 days). The one-measurement jumps on top of it are partly caught after the fix (14 Nov 21:00, 15 Nov 01:15). The rest: "Not fixed". - ALASKA-4, ALASKA-10 (Thermal displacement, target 04 only): **found by chance, wrong sensors**. The station has no corrected-curve wave, so `thermal_displacement` falls back to the raw-position wave. That wave gives "Camera thermal expansion/contraction" on all 14 sensors every day from 10:00 to 04:00 (18 h out of 24). It covers the labels of 04, and it accounts for the 709 wrong instants of the family on the range. Removing that fallback was tested: ALASKA found 71 → 100 %, correct 31 → 37 %, but 8 regressions elsewhere (FLORIDA, NIEDERHORN, SNCF01, WILDSTRUBEL, Total). See "Not fixed". - ALASKA-8 (2026-11-12 12:00 → 2026-11-13 00:00, Visibility): **correct**, up to the bounds (41/47). - Visibility extras (nights of 10, 13–14, 15 and 16 Nov: Poor visibility and night Heat shimmer, 121 instants): **extra**. The context says the references are poorly seen only on 12 Nov. These come from `visibility` (the error_value of the references at night). No simple rule separates them from labelled visibility: "Not fixed". - Brief obstructions (14 instants, 1 to 9 sensors): **extra**. No label. Some fall after the analysed range (16 Nov from 12:17), so the label set says nothing about them. ## What changed - **S1**, `ffd1c01`, `scripts/no_data.py`: `MISSING` 2 → 1. A hole is now two missing steps or more (it was more than two). The `thresholds.md` line is updated. - **S2**, `45795fd`, `scripts/displacement.py`: new rule "the targets together". Per axis, `_together()` builds one series: the median over the targets of each value minus that target's own median. `jumps()` runs the existing `_jumps()` on it with the new constant `K_TOGETHER = 5` (its noises). Only a jump that is back at the next measurement is kept, as a Perturbation on all the targets. `_jumps()` takes `k` as an argument (default `K`). Docstring point 3 and a `thresholds.md` line are added. +15 code lines, +1 constant. - **S3**, `ff3ef6a`, `scripts/displacement.py`: pruning. Removed the condition "instant measured by at least half of the targets" in `_together()`. - **S4**, `7fc7755`, `scripts/displacement.py`: pruning. Removed `back_n`, the hour of measurements in a row that a return needed (wf-improve MICHIGAN, mod. 1). A return is now one measurement within half the jump of the level before. Docstring point 2, the `BASE` comment and its `thresholds.md` line are updated. - **S5**, `751def0`, `scripts/displacement.py`: pruning. Removed the 24 h limit on a return (`t[j] - t[i] <= BACK_H`). `BACK_H` now only sets the hindsight that turns "Jump, not back yet" into "Lasting shift". The text "came back within a day" becomes "came back". Docstring and `thresholds.md` are updated. ## Why - S1: a gap of two measurements for every sensor is a No data in the families document ("no measurement for any sensor"), and the labels mark it that way on several stations. The old threshold left all of these gaps out. - S2: with few references, a small shift of one reference moves every target by the same amount at the same instant. Each target alone stays under its jump threshold. The median of the targets cancels their own noise but keeps that common jump. Requiring a return at the next measurement keeps the daily thermal wave out (without it, NORDEND got hours-long Perturbations each morning and WYOMING regressed). - S3: the presence condition changed no figure. - S4: judging the return on one measurement instead of an hour finds more jumps back (Perturbation Total found +3 points) and removes code, with no regression. - S5: the families document decides Displacement versus Perturbation by the return, "even after days". The 24 h cap contradicted it, and removing it makes no regression. ## Checks - events (ALASKA): +17 one-measurement Perturbations on all 12 targets (5 Nov 03:00, 04:45, 09:00; 6 Nov 00:00, 02:30, 03:30–03:45, 05:45; 7 Nov 05:00, 06:30, 10:00, 23:15; 8 Nov 02:45, 09:30; 9 Nov 02:45, 06:45; 14 Nov 21:00; 15 Nov 01:15). +1 No data 10 Nov 08:15 → 09:00. Two Visibility events absorb a common jump (8 Nov 04:00, 15 Nov 02:45; 8 or 10 → 14 sensors). No `skipped` line. - sensors: only the new events above (all targets, or all sensors for the No data). - range: No data 0/2 → 2/2 (100 %), correct — → 2/2. Perturbation found 1/256 → 15/256 (0 → 6 %), correct 1/1 → 15/18 (100 → 83 %). Other families unchanged. - benchmark: see "## Benchmark". Per step: S1 No data Total found 32 → 45 %; S2 Perturbation Total found 4 → 7 %; S3 no change; S4 Perturbation 7 → 10 %; S5 Perturbation 10 → 11 %. ## Pruning - S3, removed (`ff3ef6a`): the "at least half of the targets measured" condition of `_together()`. No figure changes. - S4, removed (`7fc7755`): `back_n`, the hour of measurements a return needed. No regression; Perturbation Total found 7 → 10 %. - S5, removed (`751def0`): the 24 h limit on a return. No regression; Perturbation found 10 → 11 %, +97 wrong Perturbation instants at JUNGFRAU (correct 0 → 1 %), NIEDERHORN Displacement −1 instant. - Kept: the spike condition of S2 (a common jump back at the next measurement only). Without it: REGRESSION WYOMING Perturbation correct 57 → 24 % (28 instants), and NORDEND +228 and JUNGFRAU +910 wrong instants. - Kept: `K_TOGETHER` (replaced by `K`): REGRESSION Total Perturbation found 11 → 6 %. - Kept, not removed although no figure moves: the No data hole up to the end of the window read (`no_data`, `end`). The benchmark never hits it (identical figures), and aimsight-app uses it for a station silent right now. See "For the user to decide". - Not tried: removing the "Jump, not back yet" / "Lasting shift" distinction. It changes no family, so the score cannot measure it, and it is a client message (families.md varieties). ## Before / after on the range Events check, changed lines (before → after): ``` < 2026-11-05T09:00Z → 2026-11-05T09:00Z Perturbation greyed | Sudden jump, back to normal | 1 sensors > 2026-11-05T03:00Z → 2026-11-05T03:00Z Perturbation greyed | Sudden jump, back to normal | 12 sensors > 2026-11-05T04:45Z → 2026-11-05T04:45Z Perturbation greyed | Sudden jump, back to normal | 12 sensors > 2026-11-05T09:00Z → 2026-11-05T09:00Z Perturbation greyed | Sudden jump, back to normal | 12 sensors | absorbed: 11-05T09:00 > 2026-11-06T00:00Z, 02:30, 03:30→03:45, 05:45 Perturbation | 12 sensors > 2026-11-07T05:00Z, 06:30, 10:00, 23:15 Perturbation | 12 sensors > 2026-11-08T02:45Z, 09:30; 2026-11-09T02:45Z, 06:45Z Perturbation | 12 sensors > 2026-11-10T08:15Z → 2026-11-10T09:00Z No data kept | No data | all sensors > 2026-11-14T21:00Z; 2026-11-15T01:15Z Perturbation | 12 sensors < 2026-11-08T04:00Z → 2026-11-08T04:45Z Visibility kept | Poor visibility | 8 sensors | absorbed: — > 2026-11-08T04:00Z → 2026-11-08T04:45Z Visibility kept | Poor visibility | 14 sensors | absorbed: Sudden jump, back to normal 11-08T04:30 < 2026-11-15T02:45Z → 2026-11-15T03:30Z Visibility kept | Poor visibility | 10 sensors | absorbed: — > 2026-11-15T02:45Z → 2026-11-15T03:30Z Visibility kept | Poor visibility | 14 sensors | absorbed: Sudden jump, back to normal 11-15T02:45 ``` Range score, before → after: - No data: found 0/2 → 2/2, correct — → 2/2 (100 %) - Obstruction: — / 0/14, unchanged - Perturbation: found 1/256 (0 %) → 15/256 (6 %), correct 1/1 (100 %) → 15/18 (83 %) - Thermal displacement: 240/353 (68 %), 240/949 (25 %), unchanged - Visibility: 41/47 (87 %), 41/162 (25 %), unchanged ## Benchmark ``` ALASKA No data found 0 → 100 % ALASKA Perturbation found 0 → 6 % ALASKA Perturbation correct 100 → 80 % (3 instants lost) CLARIDEN No data found 46 → 62 % CLARIDEN No data correct 92 → 83 % (2 instants lost) FLORIDA No data found 19 → 29 % JUNGFRAU No data found 14 → 21 % JUNGFRAU Perturbation found 0 → 50 % JUNGFRAU Perturbation correct 0 → 1 % LENZSPITZE No data found 55 → 68 % LENZSPITZE No data correct 71 → 52 % (9 instants lost) LENZSPITZE Perturbation found 0 → 14 % MICHIGAN Perturbation found 0 → 25 % NIEDERHORN Displacement found 2 → 0 % (1 instants lost) NORDEND No data found 17 → 38 % NORDEND Perturbation found 4 → 8 % SNCF01 No data found 33 → 40 % SNCF01 No data correct 62 → 63 % Total No data found 32 → 45 % REGRESSION Total No data correct 80 → 77 % (13 instants lost) Total Perturbation found 4 → 11 % Total Perturbation correct 1 → 2 % WILDSTRUBEL No data found 67 → 76 % WILDSTRUBEL No data correct 73 → 74 % WILDSTRUBEL Perturbation correct 20 → 14 % (2 instants lost) WYOMING No data found 0 → 100 % WYOMING Perturbation found 36 → 86 % WYOMING Perturbation correct 100 → 57 % (9 instants lost) 1 regression(s); complexity: 603 code lines, 48 constants → 617 code lines, 49 constants ``` ## For the user to decide - **No data Total correct 80 → 77 % (S1), shown as REGRESSION by `compare`; I count it as not a regression, from label bounds and merging.** Every new hole falls inside a No data label: CLARIDEN-34/57/58 (10-19 09:00, 10-19 20:40, 10-27 09:00), LENZSPITZE-2/20/21, ALASKA-7, WYOMING-12. The 13 extra "wrong" instants come from two places. First, label bounds: CLARIDEN-57 spans several holes, and its bounds are excluded from the score. Second, `MERGE` (1 h) joining two holes of one outage: LENZSPITZE 2026-10-15T22:55 → 10-16T02:10 and 03:10 → 03:40 now make one event, which flags the few measurements between them before LENZSPITZE-2 (starting 02:55). Against that, No data found rises +13 points. S1 also changes a user's rule (2026-10-23, "more than 2 missing steps"); the labels contradict that rule. To refuse S1, revert `ffd1c01`. - S5 (the 24 h return limit removed) follows the families document ("what comes back, even after days, is a Perturbation"), but adds 97 wrong Perturbation instants at JUNGFRAU for one more instant found. To refuse it, revert `751def0`. - The No data hole "up to the end of the window" (`no_data`, `end`) was kept even though removing it changes no figure: the benchmark never hits it, and aimsight-app relies on it for a station that is down now. - The common-jump Perturbation is shown on all 12 targets (the median series has no sensor of its own). Its text is still "A target jumped and came back". ## Not fixed - Thermal displacement, ALASKA camera wave (709 wrong instants on the range; ALASKA-4/10 found only because the daily episodes cover 18 h out of 24 on every sensor). Removing the raw-position fallback regresses 8 lines elsewhere. Seeing "one target that follows the cold" would need a per-target rule against the housing temperature: a new part, and it would not be the daily wave. - ALASKA-9: the slow two-day slide of a reference. Neither the jumps nor the 5-day drift see it. A multi-day common-mode drift rule would be new and is untested. - ALASKA-1/3/5/6 are only partly found (6 %). The labels cover the whole night of agitation, while the detector flags each jump instant. Several jumps were also under 5 noises on the median series (e.g. 6 Nov 00:45, 07:15). - Visibility extras at night (121 instants) and Brief obstructions (14 instants), not labelled. ## Limits - ALASKA-4 (2026-11-05T23:45 → 2026-11-08T10:00) and ALASKA-10 (2026-11-14T03:00 → 2026-11-15T09:30), Thermal displacement on target 04. The labels rest on the raw image (04 shifting against the other prisms) and the housing temperature. Following one target with the cold needs the temperature series (`load_temperature`), which `thermal_displacement` does not read today. - The context confirms the cause of the common jumps (a reference shifting) from the image and from WYOMING at the same instants. The detectors only see their signature on the corrected curves, so a common jump with a visible cause (vehicle, rain) would be labelled in another family. - The analysis ends 2026-11-16T12:17 while the range runs to 11-17. The events after it (16 Nov Brief obstructions, 16 Nov thermal) have no labels and count as wrong. - The report's label table still says "Displacement" for the jumps that come back. The labels file (the truth) says Perturbation, which is consistent with the families document. ## Tools - `sessions/ALASKA_2026-11-04T2358_2026-11-16T1217_20261118T0951Z/tools/jumps.py ...`: for each target, the corr_x/corr_y jump from the median of the 4 previous measurements, in noises. Worth keeping, to size a jump against `K`. - `sessions/ALASKA_2026-11-04T2358_2026-11-16T1217_20261118T0951Z/tools/holes.py `: the holes of exactly N missing steps and the labels touching them. Worth keeping, to check `MISSING`. - `sessions/ALASKA_2026-11-04T2358_2026-11-16T1217_20261118T0951Z/tools/checks.sh `: runs the four checks into `-S.txt` and diffs or compares them with the previous state. Session-specific; it has the paths hard-coded. ## Difficulties - The report's label table gives the old families (Displacement for the jumps back), while `labeling/auto/ALASKA.jsonl` says Perturbation. I followed the labels file. - My first variant benchmark started before the edit was saved, so it measured the unmodified copy (identical figures). I re-ran it. - The pruning rule says to remove a rule whose removal makes no regression, but for the end-of-window hole the benchmark simply never exercises the rule. I kept it and listed it under "For the user to decide".