Home / Insights / AI and Machine Learning

AI and Machine Learning

Anomaly Detection in Operations Data: Methods, Thresholds and Avoiding Alert Fatigue

Anomaly detection projects rarely fail because the model cannot find outliers. They fail because it finds too many, nobody trusts the alerts, and the team switches them off. This guide covers the methods, the thresholds and the operating model that keep detection useful.

TopicsAI and Machine LearningBusiness Operations and Integration

Key takeaways

  • Start with a baseline: simple statistical rules on clean, seasonally adjusted data often catch most of what matters and set the bar any model must beat.
  • Pick the method by data shape and labels: control charts and robust statistics for single metrics, Isolation Forest or Local Outlier Factor for multivariate data, supervised models only when you have reliable labelled incidents.
  • Thresholds are a business decision about precision versus recall, not a statistical constant; decide how many false alarms per week the team can absorb and tune to that.
  • Route by severity: page only for anomalies that need action now, send the rest to a daily digest, and measure how many alerts led to action.
  • Treat the detector as a product with an owner, a feedback loop and regular retraining, or it will decay as operations change.

Operations teams generate streams of numbers all day: orders per hour, delivery times, sensor readings, payment failures, queue lengths, stock levels, call volumes. Somewhere in those streams are the early signs of problems worth catching: a supplier feed that silently stopped, a fraud pattern, a machine drifting out of tolerance, a pricing error. Anomaly detection promises to surface those signs automatically. In practice, many deployments end with a muted alert channel and a team that has learned to ignore it.

This article is for operations leads, CTOs and product owners considering anomaly detection on business or operational data, as opposed to pure IT infrastructure monitoring. It explains the main detection methods and when each fits, how to design thresholds deliberately, how to route alerts so people act on them, and how to run the system after launch. It draws on established statistical process control, the documented behaviour of common machine learning methods, and alerting principles from site reliability engineering, which apply just as well to a warehouse as to a web service.

Anomaly detection is one of the services within our machine learning development practice, where we start every engagement with a data review and a baseline, and only build a model if it beats that baseline on your data.

What counts as an anomaly in operations data?

Before choosing a method, agree what you are looking for. The word anomaly hides at least three different problems, and they need different tools.

Three kinds of anomaly

  • Point anomalies. A single value far from normal: one payment of an unusual size, a temperature reading outside tolerance.
  • Contextual anomalies. A value that is normal in general but wrong for its context: order volume that would be fine on a Monday morning but is suspicious at 3 am on a Sunday, or a delivery time that is normal in December but not in June.
  • Collective anomalies. A sequence or group that is abnormal together even if each point is fine: a slow, steady decline in conversion rate, or a cluster of small refunds from the same region.

Most operational value sits in the second and third categories, which is why naive fixed thresholds disappoint. A rule such as “alert if orders per hour fall below 50” is wrong overnight and useless during a sale.

Outlier detection versus novelty detection

The scikit-learn documentation on outlier and novelty detection draws a useful distinction. In outlier detection, the historical data already contains anomalies and the method must find the dense normal region while ignoring them. In novelty detection, you train on data believed to be clean and ask whether each new observation fits. Operations data usually falls into the first category, because nobody has cleaned months of history, and that affects which algorithms behave well.

Write the detection brief

For each metric or data stream, record: what a meaningful anomaly looks like, who would act on it, how quickly they need to know, and what it costs to miss it or to investigate a false alarm. For example, a 30-person e-commerce operator might decide that a payment gateway failure rate anomaly needs a response within 15 minutes, while an unusual return rate in one product category can wait for a daily review.

Action: list your top ten operational metrics and classify the anomalies you care about by type, urgency and cost of error.

Why start with statistical baselines?

Statistical process control has been catching anomalies in factories for decades, and its ideas transfer directly to operations data. They are cheap to implement, easy to explain to the people receiving alerts, and they give you a baseline against which any machine learning model must prove itself.

Control charts and sigma limits

The NIST/SEMATECH Engineering Statistics Handbook describes the control chart: a centre line at the in-control mean, with upper and lower control limits typically set three standard deviations away. For normally distributed data, those limits correspond to roughly a 0.001 chance of a false alarm on each side. The handbook is candid that the choice is arbitrary and that management decides how much risk of chasing a non-existent cause to accept. It also notes that skewed data changes the false-alarm rate on each side, which matters because many operational metrics, such as transaction values or delivery times, are skewed.

Two further points from the handbook shape good practice. First, points inside the limits do not prove the process is in control; non-random patterns, such as a long run on one side of the centre line, also deserve investigation. Second, when a point falls outside the limits, the response is to look for and remove the cause, not simply to log it.

Practical statistical methods

MethodWhat it catchesStrengthsLimits
Fixed thresholdsHard safety or business limitsSimple, explainableIgnores seasonality; noisy on variable metrics
Rolling mean with sigma limitsPoint anomalies against recent behaviourAdapts to drift; cheapAssumes roughly normal data; slow to detect gradual change
Robust statistics (median, MAD, percentiles)Point anomalies in skewed or heavy-tailed dataNot distorted by the outliers it looks forStill univariate; needs seasonal adjustment
Seasonal decomposition plus residual limitsContextual anomalies against daily or weekly cyclesHandles the patterns operations data actually hasNeeds enough history to learn the cycle; holidays break it
Run rules and CUSUM-style testsCollective anomalies, slow driftDetects sustained small shiftsMore parameters to explain

Managed monitoring tools now include similar ideas. AWS’s CloudWatch anomaly detection, for example, learns hourly, daily and weekly patterns from up to two weeks of history, draws an expected band whose width you control with a threshold setting, lets you exclude known unusual periods such as deployments from training, and alarms when the metric leaves the band. That is a reasonable template for what a home-grown system should offer.

Action: implement a seasonally adjusted robust baseline for your most important metric and run it silently for two weeks before adding anything smarter.

When do machine learning methods earn their place?

Statistical baselines work on one metric at a time. Many real anomalies are only visible when several signals are combined: order volume is normal, payment failures are normal, but the two together at this hour of this day are not. That is where multivariate methods help.

Unsupervised methods

The scikit-learn documentation describes the main families and their assumptions, which are worth matching to your data.

  • Isolation Forest. Randomly partitions the data; anomalies are isolated in fewer splits. Described as efficient in high-dimensional data and usable for both outlier and novelty detection. A sensible default for tabular operations data with many features.
  • Local Outlier Factor. Compares each point’s local density with its neighbours’. Useful when normal behaviour has clusters of different density, such as different store formats or customer segments. The neighbourhood size matters; the documentation suggests around 20 as a general starting point.
  • Elliptic Envelope. Fits a robust covariance estimate and flags large Mahalanobis distances. Assumes the normal data is roughly Gaussian, which many operational metrics are not.
  • One-Class SVM. Learns a boundary around training data. The documentation notes it is sensitive to outliers in training data and needs careful tuning, so it suits novelty detection on clean data more than outlier detection on raw operational history.

Supervised and forecasting approaches

  • Supervised classification. If you have reliable labels for past incidents, a classifier can learn them directly. Labels are usually scarce and biased towards incidents people noticed, so treat this as a complement rather than a replacement.
  • Forecast-and-compare. Train a forecasting model on the metric and flag large residuals. This generalises the seasonal decomposition approach and handles multiple seasonalities and external regressors such as promotions.

Choosing a method

Your situationStart withConsider next
One metric, clear daily or weekly cycleSeasonal decomposition plus robust limitsForecast-and-compare
Many related metrics, no labelsIsolation Forest on engineered featuresLocal Outlier Factor if segments differ in density
Clean reference period, want to detect new behaviourNovelty detection (LOF in novelty mode or One-Class SVM)Retrain as the reference period ages
Reliable labelled incidentsSupervised classifier with unsupervised score as a featureActive learning from analyst feedback
Gradual drift matters more than spikesCUSUM or run rules on residualsChange-point detection

Whatever you choose, evaluate it against the statistical baseline on the same held-out period. Our article on evaluation sets and regression checks for AI features describes how to build and maintain that kind of test set.

Action: only move to a multivariate model when you can name an anomaly type the baseline misses and show it in historical data.

How do you set thresholds without guessing?

Every detector produces a score; a threshold turns scores into alerts. Teams often leave the threshold at a library default, such as an assumed contamination rate, and then wonder why alert volume is wrong. The threshold is a business decision about the trade-off between missed anomalies and false alarms.

Start from alert capacity

Work backwards from the people. If the operations team can realistically investigate ten alerts a day across all detectors, that is your budget. Allocate it across metrics by importance, then set each threshold so historical replay produces roughly that volume. This single step prevents most alert fatigue.

Measure precision and recall on history

Google’s SRE workbook chapter on alerting on SLOs frames alert quality in terms of precision (the share of alerts that were significant), recall (the share of significant events that alerted), detection time and reset time. Apply the same four measures here. Replay the detector over the last three to six months, have an operations expert label which alerts would have been worth acting on, and compute them. Then move the threshold and watch how they change.

Threshold design patterns

  • Two windows. The SRE workbook recommends combining a long window that confirms significance with a short window that confirms the problem is still happening, so alerts clear quickly when it stops. For operations data, that might mean requiring both the last hour and the last ten minutes to be anomalous before paging.
  • Severity tiers. A mild deviation goes to a digest; a severe one pages. Define them with different score thresholds or different durations.
  • Per-segment thresholds. A small store and a flagship store should not share a threshold; normalise by segment or use methods that handle varying density.
  • Minimum volume guards. Percentages on tiny counts swing wildly. Suppress alerts when the denominator is too small, or use count-based methods for sparse metrics.
  • Known-event suppression. Maintain a calendar of promotions, holidays, deployments and maintenance, and either exclude those periods from training or suppress alerts during them, as CloudWatch’s training exclusions do.

For example, a regional logistics company might set a delivery-time detector so that a single late route never pages, a depot-wide shift over an hour creates a ticket, and a network-wide shift over 30 minutes pages the duty manager.

Action: write down the alert budget, replay your detector on history, and document the precision and recall you accepted at the chosen threshold.

How do you route alerts so people act on them?

Alert fatigue is a design failure, not a user failure. The SRE workbook puts it plainly: pages and tickets are the only valid ways to get a human to act, and anything else is noise. The same discipline applies to operations alerts.

A routing model

TierCriteriaChannelExpected response
PageSevere, confirmed over two windows, clear owner, action available nowOn-call phone or messaging with escalationAcknowledge within minutes, act or hand over
TicketSignificant but can wait for working hoursTicket queue or task boardReviewed next working day
DigestMild or informational anomaliesDaily or weekly summaryScanned for patterns
Dashboard onlyScores below alert thresholdsVisual band on chartsConsulted during investigation

Rules that reduce fatigue

  • Every alert names an owner and a first action. If nobody can say what to do when it fires, it should not be an alert.
  • Deduplicate and group. One root cause should produce one notification, not one per store or per SKU.
  • Include context. The expected band, the actual value, the recent trend and links to related metrics. An alert that requires opening five dashboards will be ignored.
  • Make feedback one click. Useful, not useful, already known. This data feeds threshold tuning and model retraining.
  • Review alert statistics monthly. Alerts fired, acknowledged, acted on, and time to acknowledge. Retire or retune anything with low action rates.

If your detector feeds an automated response, such as an AI agent that raises tickets or pauses a feed, the routing rules matter even more. Our article on defining tasks, boundaries and success criteria for AI agents covers how to bound those actions safely.

Action: audit the current alert channels and reclassify each existing alert into one of the four tiers, removing any with no owner.

What does implementation involve, and what does it cost?

The modelling is a small part of the work. Most effort goes into data, integration and operations.

Data preparation

  • Consistent time grain. Aggregate events into fixed intervals appropriate to response time: minutes for payments, hours or days for returns.
  • Feature engineering. Ratios, rolling statistics, day-of-week and hour-of-day indicators, lagged values and segment identifiers usually matter more than algorithm choice.
  • Gaps and late data. Operations feeds arrive late and with gaps. Decide how to treat missing intervals; a missing feed is often the anomaly you most want to catch.
  • History cleaning. Mark known incidents and events so you can exclude or label them.

Architecture outline

  1. Ingest events or metrics into a store with reliable timestamps.
  2. Run scheduled jobs that compute features and detector scores per interval.
  3. Apply thresholds, windows and suppression rules to produce candidate alerts.
  4. Route alerts by tier, with deduplication and context.
  5. Capture feedback and store it alongside scores for evaluation.
  6. Retrain or recalibrate on a schedule, and whenever operations change materially.

Illustrative phasing

A typical first phase covers one or two high-value metrics with statistical baselines, a replay-based threshold study and a digest channel, which gives the team evidence before anyone is paged. A second phase adds multivariate detection and paging for the few anomaly types that justify it. Costs scale with the number of data sources to integrate and the quality of their history far more than with the sophistication of the model, so a realistic data audit at the start is the best cost control. When buying a tool rather than building, apply the same questions you would to any AI vendor; our AI vendor due diligence guide lists them.

Action: commission a short data audit of your candidate metrics before committing to a build or a purchase.

How do you keep the detector useful over time?

Operations change: new products, new depots, new suppliers, new channels. A detector tuned to last year’s patterns will drift into either silence or noise.

Operating practices

  • Named owner. One person owns thresholds, alert statistics and the retraining schedule.
  • Monthly calibration review. Precision, recall on labelled events, alert volume versus budget, and response times.
  • Retraining triggers. Scheduled retraining plus event-driven retraining after known structural changes.
  • Change log. Every threshold change recorded with the reason and the expected effect, so later reviewers understand the history.
  • Incident learning. After each real incident, check whether the detector fired, how early, and what would have made it fire earlier without raising false alarms.

Common failure modes

  • Training on history that includes the very incidents you want to detect, so they become normal.
  • Thresholds tuned once at launch and never revisited.
  • Alerts sent to a shared channel with no owner.
  • Success measured by anomalies found rather than by actions taken and losses avoided.

Action: put the monthly calibration review in the calendar before launch, with the owner’s name on it.

Checklist: anomaly detection that people trust

  1. Each metric has a written detection brief: anomaly type, owner, urgency, cost of error.
  2. A seasonally adjusted statistical baseline exists and has run silently for at least two weeks.
  3. Any machine learning model is shown to beat the baseline on a labelled historical period.
  4. Known events and incidents are excluded from or labelled in training data.
  5. An alert budget is agreed and thresholds are set by replaying history against it.
  6. Precision, recall, detection time and reset time are measured and recorded.
  7. Alerts use two windows or equivalent to confirm significance and clear quickly.
  8. Every alert has an owner, a first action, context and a one-click feedback option.
  9. Alerts are routed into page, ticket, digest and dashboard tiers.
  10. Monthly calibration review and retraining schedule are in place with a named owner.

A detector that meets this list may fire less often than a naive one, but the alerts it sends will be read, and that is the only measure that matters.

Frequently asked questions

Do we need machine learning for anomaly detection?

Not always. Seasonally adjusted statistical limits catch many operational anomalies and are easier to explain. Machine learning earns its place when anomalies are only visible across several metrics at once, or when a forecast is needed to define normal.

How much historical data do we need?

Enough to cover the cycles you expect: at least several weeks for daily and weekly patterns, and ideally a year if seasonality matters. Managed tools such as CloudWatch train on around two weeks, which suits short cycles but not annual ones.

How do we stop the team ignoring alerts?

Set an alert budget the team can handle, route by severity, give every alert an owner and a first action, and review action rates monthly. Remove or retune alerts that are rarely acted on.

Can we use the same detector for fraud and for operational monitoring?

The methods overlap, but the thresholds, routing and response differ. Fraud usually needs higher recall and tolerates more review workload; operational alerts need higher precision to avoid paging fatigue. Configure them separately.

What should we measure to prove the project works?

Alerts acted on, incidents detected earlier than before, false alarms per week against budget, and the cost of losses avoided where you can estimate it. Counting anomalies found is not a success metric.

Should we build or buy?

Monitoring platforms cover infrastructure metrics well. Business and operations data usually needs custom features, segment logic and integration with your systems, which favours building on open libraries, often alongside a managed tool for infrastructure.

Sources and methodology

Guidance reflects PoliteTech delivery experience. The external references below informed specific points in this article.

  1. NIST/SEMATECH e-Handbook of Statistical Methods: What are Control Charts? — accessed 10 November 2026. Supports the description of control limits, three-sigma limits, the arbitrary nature of the false-alarm level, skewness effects and non-random patterns.
  2. scikit-learn documentation: Novelty and Outlier Detection — accessed 10 November 2026. Supports the outlier versus novelty distinction and the assumptions and limitations of Isolation Forest, Local Outlier Factor, Elliptic Envelope and One-Class SVM.
  3. Google SRE Workbook: Alerting on SLOs — accessed 10 November 2026. Supports the precision, recall, detection time and reset time framework, multiwindow alerting and the principle of paging only for actionable events.
  4. AWS documentation: Using CloudWatch anomaly detection — accessed 10 November 2026. Supports the description of band-based detection, seasonality handling, two-week training and excluding known periods from training.

Want anomaly alerts your operations team will actually act on?

Share a sample of your operational data and current alerting, and we will assess a baseline, the right methods and a threshold plan before any model is built.