Skip to content
AI.info

Unsupervised learning

Anomaly Thresholds, Alert Budgets, and Evaluation

Evaluate anomaly rankings under sparse, delayed, incomplete, and capacity-constrained feedback.

By the end you can

Two and a half million alarms in thirty-one days

Physiologic monitors watched 461 adults in five intensive care units for 31 days. Somebody counted what they produced. The Results section of the published abstract is the whole problem in four sentences: “A total of 2,558,760 unique alarms occurred in the 31-day study period: arrhythmia, 1,154,201; parameter, 612,927; technical, 791,632. There were 381,560 audible alarms for an audible alarm burden of 187/bed/day. 88.8% of the 12,671 annotated arrhythmia alarms were false positives.” Drew and colleagues published that in 2014.

Nothing in those numbers says how well any single detector ranks. An audible alarm burden of 187 per bed per day is an operating policy. 88.8% false among the arrhythmia alarms anyone actually adjudicated is a yield. The 2,558,760 total is a volume. Anomaly evaluation is not finished when a ranking metric looks strong, because what reaches a human is the score plus a threshold plus a review budget plus whatever adjudication ever arrives. Jacques and Williams, in an AHRQ Patient Safety Network perspective on the same phenomenon, give the general figure independently: “Research has shown that 80%–99% of ECG monitor alarms are false or clinically insignificant.” The queue is the thing being evaluated.

The threshold is a decision policy layered on the anomaly model.

Comparison

Metrics for different alerting questions

No single metric captures ranking, capacity, timing and consequence at once. Average precision and the precision–recall curve summarize ranking under class imbalance across thresholds; they depend on observed prevalence and encode no analyst capacity. Precision at K measures confirmed yield among the top K scores. It matches a fixed review budget, and it says nothing about the cases below K. Recall at capacity measures how many known incidents fall inside an alert budget. It needs an incident denominator, and selective labels bias it. Detection delay measures time from event onset to useful alert. It needs an onset definition, and it trades off against false alarms.

The intensive care count separates these cleanly. The 381,560 audible alarms are a volume statement. The 88.8% false positives among 12,671 annotated arrhythmia alarms are a yield statement, and only about the reviewed set. Neither figure tells you what fraction of real arrhythmias the monitors caught. The denominator of true events was never established. That is the recall-at-capacity question, and the study's numbers cannot answer it.

FigureComparison · 4 columns

Average precision or PR curve

Summarizes ranking under class imbalance.

  • Uses known labels across thresholds
  • Emphasizes positive retrieval quality
  • Depends on observed prevalence
  • Does not encode analyst capacity directly

Precision at K

Measures confirmed yield among the top K scores.

  • Matches a fixed review budget
  • Ignores cases below K
  • Needs reliable adjudication
  • Can vary by day and source

Recall at capacity

Measures captured known incidents within an alert budget.

  • Connects model ranking to resources
  • Requires an incident denominator
  • Can be biased by selective labels
  • Should be sliced by severity

Detection delay

Measures time from event onset to useful alert.

  • Critical for temporal incidents
  • Needs onset definition
  • Can trade off with false alarms
  • Should account for repeated alerts

Visual

Four levels of anomaly evaluation

Each level can succeed while the next one fails. Score ordering asks whether known anomalous cases rank above reference cases. Threshold behavior asks how many alerts an operating point produces, and which cases cross it. Event capture asks whether distinct incidents are detected without a flood of duplicate alerts. Workflow outcome asks whether review uncovers useful cases quickly enough to justify the cost and the intervention.

The first level is the one usually assumed safe. It is not. Wu and Keogh went through the Yahoo, Numenta and NASA anomaly benchmarks — the label sets that score ordering is normally judged against — and concluded: “The majority of the individual exemplars in these datasets suffer from one or more of four flaws.” Liu and Paparrizos characterise those four as triviality, anomaly density, mislabeling and run-to-failure bias. Mislabeling is the one that reaches level one directly. An ordering metric computed against a mislabeled reference set measures the reference set. Wu and Keogh's response was to build a replacement, the UCR Time Series Anomaly Archive, which Liu and Paparrizos count at 250 curated time series drawn from a single dataset. Small and hand-curated, because the large uncurated alternative was worse.

FigureLayers · 4 layers
  1. 01

    Score ordering

    Do known anomalous cases rank above reference cases?

  2. 02

    Threshold behavior

    How many alerts are produced, and which cases cross the operating point?

  3. 03

    Event capture

    Are distinct incidents detected without excessive duplicate alerts?

  4. 04

    Workflow outcome

    Does review uncover useful cases quickly enough to justify cost and intervention?

A good ranking needs a trustworthy label set beneath it, a capacity-aware threshold above it, and an event-aware workflow after it.

Key idea

Treat unreviewed cases as unlabeled, not normal

When review capacity is limited, nobody ever adjudicates the cases below the threshold. Marking them negative creates selective-label bias, and it overstates precision as well. Lakkaraju and colleagues named the structure in 2017: “there are many domains where the data is selectively labeled in the sense that the observed outcomes are themselves a consequence of the existing choices of the human decision-makers”.

The intensive care numbers show the same asymmetry from the other side. The monitors produced 1,154,201 arrhythmia alarms. 12,671 of them were annotated. The 88.8% false-positive rate is a property of that annotated set, and the alarms nobody annotated have no outcome at all — not a negative one. Sample below-threshold cases. Use delayed outcome sources. Report label coverage by score band. The evaluation dataset should record how each label became observable.

Absence of investigation is not evidence of normality.

Example

Evaluation traps in anomaly workflows

Sparse labels and operational feedback can make naive metrics optimistic. One scoring convention can make them meaningless. Liu and Paparrizos, presenting a benchmark study at NeurIPS in 2024, state the result without hedging: “randomly generated predictions under point adjustment can even outperform SOTA methods, with its point-adjusted F score approaching one as the average length of the anomalies increases”.

  • Selective labels: only alerts sent to analysts receive outcomes, so unreviewed low-score cases stay unknown rather than confirmed normal — and the missingness is correlated with the model's own score.
  • Delayed truth: chargebacks and confirmations arrive long after the decision, so recent model versions look better because their positives have not yet matured.
  • Duplicate alerts: the point-adjustment convention credits a whole incident to one flagged timestamp. Kim and colleagues fed it a uniform random anomaly score drawn from U(0,1) — their “Case 1”. It reached a point-adjusted F1 of 0.969 on SWaT and 0.965 on WADI, while its unadjusted F1 was 0.216 and 0.109. On those two datasets it beat every published detector the paper tabulates; the best of those are GDN at 0.935 on SWaT and 0.855 on WADI. Their abstract: “the PA protocol has a great possibility of overestimating the detection performance; even a random anomaly score can easily turn into a state-of-the-art TAD method”.
  • Prevalence shift: a campaign changes the anomaly rate and moves the metric without touching the model. Saito and Rehmsmeier's twenty-case example holds the classifier fixed and goes from ten positives against ten negatives to five against fifteen. Precision falls from 0.6 to 0.33. Accuracy sits at 0.6 both times.
  • Reviewer drift: the confirmation rate is a property of the adjudicators as much as of the detector. That is why three bodies looking at the same clinical alarms publish three different ranges — the Joint Commission's estimate that between 85 and 99 percent of alarm signals do not require clinical intervention, Jacques and Williams's 80%–99% for ECG monitor alarms, and Woo and Bacon's finding, in AHRQ's Making Healthcare Safer III, that false alarms “can range from 72 percent to 99 percent”.

Steps

Set and maintain an anomaly operating point

Choosing a threshold is an institutional act with named owners and dated obligations. Two bodies have written the procedure down in enforceable form.

Step 1, define the alert budget, and step 5, calibrate the threshold policy, are what an accreditor codified after counting the damage. The Joint Commission found 98 alarm-related events in its Sentinel Event database between January 2009 and June 2012. 80 resulted in death, 13 in permanent loss of function, and five in unexpected additional care or an extended stay. Its Sentinel Event Alert of 8 April 2013 names the queue those events sat inside: “It is estimated that between 85 and 99 percent of alarm signals do not require clinical intervention”. The remedy was a numbered standard, not advice: “NPSG.06.01.01: Improve the safety of clinical alarm systems.” It took effect on 1 January 2014 in two phases. Leaders establish alarm system safety as a hospital priority as of 1 July 2014 (EP 1). The most important alarm signals are identified during 2014 (EP 2). Policies and staff education follow as of 1 January 2016 (EP 3, EP 4). Woo and Bacon describe the same sequence from outside: “Later that year, the Joint Commission released its 2014 National Patient Safety Goal on Alarm Management in two phases of implementation”.

Step 2, build delayed labels, needs a maturity window. In some domains the window is fixed by law rather than chosen. FinCEN's rule on when to file, 31 CFR 1020.320(b)(3), reads: “A bank is required to file a SAR no later than 30 calendar days after the date of initial detection by the bank of facts that may constitute a basis for filing a SAR. If no suspect was identified on the date of the detection of the incident requiring the filing, a bank may delay filing a SAR for an additional 30 calendar days to identify a suspect. In no case shall reporting be delayed more than 60 calendar days after the date of initial detection of a reportable transaction.” The Office of the Comptroller of the Currency states the same deadline for its own rule at 12 CFR 21.11: “A financial institution is required to file a suspicious activity report no later than 30 calendar days after the date of initial detection of facts that may constitute a basis for filing a suspicious activity report.” Thirty days, sixty at the outside, is a maturity window an evaluation can be built on. “Chargebacks arrive months later” is not.

The remaining steps follow from those two. Step 3 evaluates rankings with precision–recall behavior, precision at K, recall at capacity and event-level delay. Step 4 samples the unseen — some below-threshold cases, some random ones — to estimate how far selective labels have moved the numbers. Step 6 monitors alert volume, yield, duplicates, reviewer agreement, severity and drift. A figure like 187 audible alarms per bed per day only exists once someone counts.

FigureProcess · 6 steps
  1. 1. Define alert budget

    Set review capacity by period, source, severity, and response deadline.

  2. 2. Build delayed labels

    Track adjudication source, maturity window, uncertainty, and unresolved outcomes.

  3. 3. Evaluate rankings

    Measure PR behavior, precision at K, recall at capacity, and event-level delay.

  4. 4. Sample the unseen

    Review some below-threshold and random cases to estimate selective-label bias.

  5. 5. Calibrate threshold policy

    Choose score, percentile, or dynamic capacity rules with rollback conditions.

  6. 6. Monitor operations

    Track alert volume, yield, duplicates, reviewer agreement, severity, and drift.

Analogy

A lighthouse, a radar screen, and a rescue crew

Radar ranks more possible hazards than the rescue crew can reach. Ranking quality, alarm threshold, duplicate tracks and response time all affect safety. Only the first of those is a property of the radar.

A hazard at sea can be verified by sailing to it. An anomaly label may arrive late, arrive on a legally fixed clock, or never arrive at all — and the review decisions themselves determine which future labels exist. The intensive care unit is the analogy without the metaphor: the monitors ranked, the operating point produced 187 audible alarms per bed per day, and the crew was the same people all along.

Evaluate the queue and response system, not only the scoring model.

Three urgent alerts, and an operating policy that turned them into nothing

The detector fired. Data-exfiltration malware was installed on Target's systems on 30 November 2013, then updated on 2–3 December. Each time, Target's FireEye intrusion-detection system triggered urgent alerts, under the generic name “malware.binary”. What happened next is recorded in the US Senate Commerce Committee's majority staff report of 2014 — an analysis the committee is careful to say is “based on media reports and expert analyses” rather than its own investigation: “Target's security team neither reacted to the alarms nor allowed the FireEye software to automatically delete the malware in question.” On why, the report offers the sentence this lesson exists for: “It is possible that Target staff could have viewed this alert as a false positive if the system was frequently alarming.”

The consequence was later argued in court. The federal district court in Minnesota held, on 2 December 2014: “Plaintiffs have plausibly alleged that Target's actions and inactions—disabling certain security features and failing to heed the warning signs as the hackers' attack began—caused foreseeable harm to Plaintiffs.”

No ranking metric would have flagged this failure, because the ranking was right. The hardest cases are the ones never reviewed and the alerts never acted on, not the ones with an incorrect recorded label. Report label coverage and sampling policy alongside metrics. Treat queue, adjudication and delayed outcomes as one system. The threshold policy you set this quarter is what generates the feedback you will evaluate the next version on.

The evaluation process creates part of the anomaly ground truth it later consumes.

Case

Accuracy unchanged, precision halved, outcomes seen only on release

Ten positives against ten negatives in one sample, five against fifteen in the other: Saito and Rehmsmeier built a twenty-case worked example of what class imbalance does to a metric. The classifier is not touched between the two samples. Only the prevalence changes. Accuracy reads 0.6 either way. Precision falls from 0.6 to 0.33. They warn that ROC plots “can be deceptive with respect to conclusions about the reliability of classification performance”, owing to an intuitive but wrong interpretation of specificity — a specificity computed against a majority class that is easy to get right.

Lakkaraju and colleagues named the missing-label half. In judicial bail data an outcome is observed “only if the human judge decides to release the defendant on bail”. Both halves are present in every alert queue at once: the metric that moves with prevalence rather than with model quality, and the outcomes that exist only for the cases someone chose to act on.

Figure

One classifier, two class balances: the metric that stays still and the metric that notices.

Key takeaways