Task Types

Anomaly Detection

In shortAutomatically spotting data points or periods that differ sharply from the normal pattern, such as an unexpected traffic drop or spike.

Updated 24 Oct 2026· 2 min read

Anomaly detection, also called outlier detection, finds the values that do not fit the expected pattern in a dataset. In SEO and marketing that usually means a sudden change in traffic, impressions, conversions or crawl behaviour that someone should look at. It is often unsupervised: the model learns what normal looks like and flags what does not.

How it works

There are a few common approaches:

  • Statistical thresholds: flag values more than a set number of standard deviations from a rolling average.
  • Forecast-based: predict what the metric should be (see Time Series Forecasting) and flag days where the actual value falls outside the prediction interval. This handles seasonality, so a normal Sunday dip is not an alert.
  • Density-based clustering: DBSCAN groups dense regions of data and leaves sparse points unassigned as noise, which MLforSEO highlights as making it “excellent for anomaly detection”.
  • Isolation-based: Isolation Forest measures how easy a point is to separate from the rest; outliers are isolated quickly.

Google Analytics 4 also has built-in anomaly detection in its insights and reports, which uses a similar forecast-and-compare idea.

How it’s used in SEO and marketing

  • Alerting on traffic or click drops by page group, country or device.
  • Catching tracking breaks, such as a tag removed in a deployment.
  • Spotting crawl spikes from bots, including AI crawlers, in server logs.
  • Flagging odd data in keyword or product datasets before analysis.
  • Detecting fraudulent clicks or spammy reviews.

Example

A forecast built on two years of Search Console data expects about 4,000 clicks a day to a product category, plus or minus 400. One Tuesday it records 2,100. The alert fires, and you find a template change removed the category description. Without the forecast, the drop could have been mistaken for normal mid-week variation for days.

Limitations and things to watch

  • Too many alerts and people stop reading them. Tune thresholds and group alerts by cause.
  • An anomaly is a prompt to investigate, not an explanation.
  • Seasonality, holidays and known events must be accounted for, or they will be flagged every year.
  • Gradual declines can slip under the threshold; review trends as well as alerts.

Learn it on MLforSEO

Where Anomaly Detection shows up on MLforSEO

Sources and further reading

Other terms from Task Types

See all 13 Task Types terms →