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.
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
Learn it in a course
Read about it on the blog
Sources and further reading
- What Machine Learning Clustering Is, and Where It Fits in SEO MLforSEO
- How to Find Machine-Learning-Enabled Automation in Your SEO Workflow MLforSEO
- Introduction to Machine Learning for SEO (course) MLforSEO
- Novelty and outlier detection (scikit-learn User Guide)
- Anomaly detection in Google Analytics (Analytics Help)
Other terms from Task Types
- Binary ClassificationA supervised machine learning task where the model sorts each item into one of exactly two classes, such as ye…
- Clustering (ML Task)An unsupervised ML task that groups unlabelled data, such as keywords, pages or customers, by similarity so pa…
- Computer Vision (Image Recognition)The field of AI that lets machines interpret images and video, from recognising objects and text to describing…
- Content Transformation (ML)Using ML and generative AI to convert content between formats or adapt it for new platforms, e.g. video to tex…
- Keyword ExtractionAn NLP task that automatically pulls the most relevant words or phrases out of a text, used to summarise, tag…
- Multi-Class ClassificationClassification where each item gets exactly one label from three or more options, such as tagging a page as bl…
- Multi-Label ClassificationClassification where one item can receive several labels at once, such as tagging a post as both "analytics" a…
- Regression (ML Task)A supervised machine learning task that predicts a continuous number, such as traffic, revenue or click-throug…
- Search Intent ClassificationLabelling queries by what the searcher wants, such as informational, navigational, commercial or transactional…

