The Numenta Anomaly Benchmark (NAB) is an open benchmark of labeled streaming time series and a scoring method that rewards early detection and penalizes false alarms, designed to compare real-time anomaly detection algorithms. It was released in 2015 by Alexander Lavin and Subutai Ahmad of the company Numenta and remains one of the most cited reference benchmarks for time series anomaly detection.
NAB differs from classic classification benchmarks because it evaluates detectors in an online setting: each algorithm sees data points one at a time, must decide immediately whether something is unusual, and cannot look ahead. This mirrors monitoring and alerting in servers, sensors and business metrics, where a late alarm is worth far less than an early one.
What the NAB dataset contains
The NAB corpus consists of 58 data files with roughly 365,000 data points in total, each a univariate time series with timestamps and values. Most files come from real-world sources such as cloud server metrics, road traffic sensors, online advertising rates and social media mention counts; a smaller group is artificially generated to test specific behaviors.
The following table lists the main data categories and the kind of signal each represents.
| Category | Source of the signal | Typical anomalies |
|---|---|---|
| realAWSCloudwatch | Server CPU, network and disk metrics | Load spikes, failing instances |
| realKnownCause | Machine temperature, taxi demand, system failures | Events with documented causes |
| realTraffic | Freeway speed and travel time sensors | Accidents, sensor faults |
| realAdExchange | Online advertising click and cost rates | Sudden pricing changes |
| realTweets | Mention volume of public companies | News-driven bursts |
| artificialWithAnomaly | Synthetic periodic and noisy signals | Injected jumps and level shifts |
| artificialNoAnomaly | Synthetic signals without events | None; tests false positive rate |
Anomalies were labeled by human annotators following written guidelines, and where possible from known causes such as logged outages. Each label marks the moment an anomaly begins, not the full duration of an incident.
How NAB scores a detector
NAB scores detectors with anomaly windows and a position-dependent reward. Around each labeled anomaly, the benchmark places a window whose combined length across a file equals 10 percent of the file length, split evenly among the anomalies in that file. A detection inside a window counts as a true positive, and earlier detections in the window earn more through a scaled sigmoid function.
Only the first detection in each window counts, so repeated alerts for the same event bring no extra reward. Detections outside any window are false positives and subtract points, with a smaller penalty when they fall shortly after a window. A window with no detection is a false negative. The first 15 percent of every file is a probationary period used for learning and is not scored.
Raw scores are normalized so that a perfect detector scores 100 and a null detector, which never raises an alert, scores 0. Real detectors can score below zero when their false alarms outweigh their hits.
In practice, each detector writes an anomaly score between 0 and 1 for every timestamp, and the benchmark converts these scores into binary detections with a single threshold per profile. The open-source NAB repository ships the data, the labels, the scoring code and reference results for detectors such as Numenta’s hierarchical temporal memory (HTM) model, Twitter’s seasonal hybrid ESD approach, a Bayesian change point detector and simple sliding-window baselines. Because every step is scripted, a new detector can be added with a small wrapper and scored reproducibly on the full corpus.
Application profiles and weights
NAB reports results under three application profiles that weight errors differently, because the cost of a missed event and the cost of a false alarm vary between use cases. The table shows the published weighting of each profile.
| Profile | True positive weight | False positive weight | False negative weight | Suited to |
|---|---|---|---|---|
| Standard | 1.0 | 0.11 | 1.0 | General comparison |
| Reward low false positives | 1.0 | 0.22 | 1.0 | Operations teams with alert fatigue |
| Reward low false negatives | 1.0 | 0.11 | 2.0 | Safety-critical monitoring |
A detector is also allowed to tune its threshold per profile on the benchmark data, which is one reason why reported scores should be compared only when the same tuning procedure was used.
How NAB compares with other benchmarks
NAB occupies a specific niche: univariate, streaming, early-detection evaluation. Other benchmarks emphasize multivariate data, offline evaluation or point-wise metrics, and results on one rarely transfer directly to another.
| Benchmark | Data type | Evaluation focus | Notable trait |
|---|---|---|---|
| NAB | Univariate streaming series | Early detection with windows | Rewards timeliness |
| Yahoo S5 | Univariate web metrics | Point-wise labels | Large synthetic share |
| UCR anomaly archive | Univariate series, one anomaly each | Locating a single anomaly | Built to avoid trivial cases |
| SMD and SWaT | Multivariate server or plant data | Point or range metrics | Many correlated channels |
| MVTec AD | Industrial images | Pixel and image level | Visual, not temporal |
Criticism and correct use of NAB
NAB has drawn substantial methodological criticism, and careful practitioners use it as one signal among several rather than as a final verdict. Researchers such as Renjie Wu and Eamonn Keogh have argued that several widely used time series benchmarks, NAB included, contain trivially detectable anomalies, ambiguous labels and a bias toward anomalies near the end of files.
- Label quality: some labels are debatable, and some obvious events are unlabeled.
- Scoring complexity: the sigmoid window function and profile tuning make scores hard to interpret.
- Threshold tuning on test data: per-profile optimization can inflate results.
- Univariate scope: modern systems often need multivariate anomaly detection.
- Small corpus: 58 files limit statistical confidence when scores differ by a few points.
Good practice is to report NAB scores alongside precision, recall and detection delay, to publish the full configuration, and to confirm conclusions on a second benchmark such as the UCR archive.
In plain words
The Numenta Anomaly Benchmark is like a driving test for alarm systems. It gives a program dozens of recorded data streams, such as server load or road traffic. Experts have marked where something unusual happened.
The program sees the data one moment at a time. It must shout when it sees trouble. Shouting early earns more points. Shouting at nothing costs points. Staying silent during a real problem costs the most.
The final score shows how useful the alarm would be in real life.
A real-world example
A platform engineering team must choose an automatic alerting method for thousands of cloud server metrics. Its current static thresholds fire too often at night, and engineers have started ignoring them. The team shortlists three candidates: a rolling z-score, a forecasting-based detector and a streaming isolation forest variant.
Before testing on internal data, the team runs all three through NAB using the reward low false positives profile, which matches its concern about alert fatigue. The forecasting-based detector scores highest, mainly because it flags CPU spikes earlier in the realAWSCloudwatch files without extra false alarms.
The team then replays two months of its own labeled incident data and confirms the ranking. The chosen detector cuts nightly false alerts by more than half while still catching every recorded outage, and NAB serves as a quick, reproducible first filter rather than the only evidence.