﻿# NAB anomaly windows score detection timing rather than only point labels

Distinguish NAB labeled windows from individual anomaly points, preserve file-scoped timestamp intervals, and report scoring profiles and threshold selection with results.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-nab-anomaly-window-timing-scoring-profile/
Language: en

## An interval is not a collection of independent alarms

An anomaly notebook may expand every NAB interval into positive point labels and compare detectors with a generic classification score. That can be useful as a declared alternative task, but it is not automatically the original benchmark's timing-sensitive evaluation.

The [NAB paper](https://arxiv.org/abs/1510.03336) motivates scoring streaming detections with attention to timeliness and false alarms. Preserve that objective before interpreting an aggregate result.

## Windows belong to named source files

The [published window table](https://raw.githubusercontent.com/numenta/NAB/master/labels/combined_windows.json) maps relative file paths to timestamp intervals, including files without anomalous windows. A timestamp alone is not a globally unique observation across the corpus.

Keep the full file identity when joining labels and detector outputs. Filtering or resampling a series requires a recoverable time map. The [data identity guide](/journal/data-guide-coco-instance-caption-identities/) explains why equal local coordinates from different records must not collapse into one entity.

## Detection position changes the scoring question

A benchmark concerned with early detection treats alarm timing differently from a count of every correctly labeled positive point. An application should distinguish event detection, detection delay, and pointwise coverage rather than hiding them behind a shared accuracy label.

If scores are converted into binary alarms, preserve the threshold and how it was chosen. Searching against evaluation labels is another information-use decision, not a property intrinsic to an unsupervised score generator.

## The profile is part of the result definition

The [official scoring profiles](https://raw.githubusercontent.com/numenta/NAB/master/config/profiles.json) assign different costs to detection outcomes. Comparing numbers produced under different profiles without identifying them mixes different preferences about false positives and false negatives.

Record profile identity, code revision, threshold protocol, and included file set together. An altered cost matrix is a changed evaluation rule even when detector outputs remain identical.

## Validate timing on a short replay

Inspect a source series with a known window and place example alarms before, inside, and after it. Follow their timestamps through the selected scorer and confirm how the intended profile treats them. Preserve non-anomalous files rather than evaluating only windows with known events.

The [temporal availability guide](/journal/data-guide-temporal-split-availability/) helps review streaming evidence. Correct reproduction supports the specified NAB comparison; it does not establish operational alert value in a new system or make a pointwise metric interchangeable with the benchmark score.
