# Anomaly detection

> Anomaly detection is the automated identification of data points, transactions or behaviour that differ markedly from the normal pattern, such as a suspicious payment, a sudden drop in sales or a failing machine, so they can be investigated.

Also called: outlier detection, fraud detection, anomaly monitoring, unusual activity detection. Category: Data and retrieval. Source: https://aibuildindex.com/glossary/anomaly-detection

## In the index

- Machine learning: median $3,520, middle half $500 to $10,000, 4,945 priced briefs (https://aibuildindex.com/skills/machine-learning)
- Data science: median $4,000, middle half $500 to $12,400, 1,181 priced briefs (https://aibuildindex.com/skills/data-science)

Most data most of the time is unremarkable. Anomaly detection watches for the exceptions: a card payment far from the customer's usual pattern, a supplier invoice twice the normal size, website traffic falling off a cliff, a sensor reading drifting upward. Catching these early can prevent fraud, outages and waste. For a buyer the hard part is not finding unusual data, which is easy, but finding the unusual data that matters without burying the team in false alarms.

## How it works

Approaches range from simple to sophisticated:

- **Rules and thresholds.** Flag any refund above a set amount, or any day where orders fall well below the usual level. Transparent and quick, but blind to new patterns.
- **Statistical baselines.** Learn the normal range for each metric, including seasonality, and flag values outside it. Often built on a [forecast](https://aibuildindex.com/glossary/forecasting): if the actual figure falls far outside the forecast range, it is an anomaly.
- **Machine learning.** Unsupervised methods such as isolation forests or autoencoders learn what normal looks like across many features at once and score how unusual each new record is. Where past incidents have been labelled, a supervised [classification](https://aibuildindex.com/glossary/classification) model can be trained to recognise them.

Language models can help explain why an alert fired or summarise the context around it, but the detection itself is usually done by statistical or machine learning methods.

An example: an accounts payable team runs every incoming invoice through a model that compares it with the supplier's history. Unusual amounts, new bank details or duplicate invoice numbers are held for review, and everything else flows through.

## What it means for cost

The model is usually the smaller part of the work. Cost comes from connecting the data sources, defining what counts as normal for each segment, tuning sensitivity, and building the review workflow where people confirm or dismiss alerts ([human-in-the-loop](https://aibuildindex.com/glossary/human-in-the-loop)). Those decisions feed back to improve the system over time.

Ask a builder how they will balance missed anomalies against false alarms, how alerts reach the right person, and how the baseline adapts when the business changes, for example after a price rise or a new product launch.

## Common questions

### What is the difference between anomaly detection and fraud detection?

Fraud detection is one application of anomaly detection, often combined with supervised models trained on known fraud cases and with business rules. Anomaly detection is broader and also covers operations, quality, security and data errors.

### Why do anomaly detection systems produce so many false alarms?

Because unusual is not the same as wrong. Seasonal peaks, promotions and legitimate one-off events all look anomalous. Systems improve by learning seasonality, segmenting by customer or product, and using reviewer feedback to suppress known harmless patterns.

## Related terms

- [Predictive analytics](https://aibuildindex.com/glossary/predictive-analytics): Predictive analytics is the use of historical data and statistical or machine learning models to estimate the likelihood of future outcomes for individual cases, such as which customers will churn, which leads will convert or which invoices will be paid late.
- [Machine learning](https://aibuildindex.com/glossary/machine-learning): Machine learning is a branch of AI in which software learns patterns from examples rather than following hand-written rules, then uses those patterns to make predictions or decisions about new data.
- [Forecasting](https://aibuildindex.com/glossary/forecasting): Forecasting is the use of historical data and statistical or machine learning models to estimate future values, such as next month's sales, call volumes or stock needs, usually with a range that shows how uncertain the estimate is.
- [Observability](https://aibuildindex.com/glossary/observability): Observability is the ability to see what a live system is doing and why, through logs, traces and metrics, so that errors, slow responses, rising costs and poor AI outputs can be found and explained.
- [Human in the loop](https://aibuildindex.com/glossary/human-in-the-loop): Human in the loop is a design approach in which an automated or AI system pauses for a person to review, correct or approve its work at defined points, so that judgement and accountability stay with people where mistakes would be costly.
- [Classification](https://aibuildindex.com/glossary/classification): Classification is a machine learning task in which a model assigns each input, such as an email, image, transaction or document, to one of a set of predefined categories, for example spam or not spam, or which team should handle it.
