﻿# SKAB needs separate anomaly and changepoint targets

Distinguish SKAB point anomaly flags from changepoint labels, preserve experiment boundaries, and validate actual sensor headers before building detection windows.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-skab-anomaly-changepoint-target-header-contract/
Language: en

## Select the target before selecting the detector

A monitoring prototype can appear to miss faults because its developer compares continuous anomaly scores with isolated transition labels. The [SKAB repository](https://raw.githubusercontent.com/waico/SKAB/master/README.md) distinguishes `anomaly` from `changepoint`. An anomalous condition may continue after its onset; detecting every affected observation differs from locating the transition.

Declare the target and scoring interpretation before tuning thresholds. A discrepancy between these targets is not automatically a broken sensor or annotation error.

## The physical experiment defines the sequence

The [data directory description](https://raw.githubusercontent.com/waico/SKAB/master/data/README.md) organizes experiments by interventions and provides an anomaly-free recording. Keep the source path as experiment identity rather than treating directory concatenation as continuous operation.

A sliding window must not connect the end of an intervention to the beginning of an unrelated recording. Split membership should also follow the declared experiment protocol, rather than allowing overlapping windows to distribute nearly identical measurements across training and evaluation.

## The downloaded header is an interface contract

The [valve experiment file](https://raw.githubusercontent.com/waico/SKAB/master/data/valve1/1.csv) contains explicit datetime, sensor, and annotation fields. Its flow-rate header is `Volume Flow RateRMS`; a shortened name in descriptive material should not silently substitute for that actual field.

Validate required names, delimiter, numeric conversion, and ordering against the downloaded artifact. Preserve a deliberate rename map. Exclude both annotation columns from model features even when the selected evaluation uses only the other target.

## Temporal labels need explicit window alignment

A detector returning a score per window still needs an assignment rule: endpoint, center, or another documented coordinate. Map that coordinate to the original timestamp before comparing with annotations. Otherwise a correct detection can be shifted by the adapter itself.

The [temporal availability guide](/journal/data-guide-temporal-split-availability/) also explains why centered processing and future context must be distinguished from online detection. Inspect time differences instead of assuming every adjacent row represents an uninterrupted sampling interval.

## Audit a transition rather than only aggregate accuracy

Trace a short neighborhood through parsing, windowing, prediction, and scoring. Show which observations carry each annotation and which coordinate receives the score. The [data identity guide](/journal/data-guide-coco-instance-caption-identities/) provides a useful approach to preserving this correspondence.

This audit establishes which SKAB task was implemented. A strong result on one intervention does not establish universal industrial fault coverage, and a transition metric should not be presented as interchangeable with sustained anomalous-state classification.
