Anomaly Detection
Finding unusual data points or events that differ sharply from normal patterns.
Which of these door counts looks stranger?
A library sees a high Saturday count and then a sequence of identical weekday counts. Different kinds of unusual behavior call for different checks.
Busy Saturday
Attendance doubles on the day of a street festival. The value is unusual relative to ordinary Saturdays, but an independent counter and event record may confirm it.
Flat week
The counter reports exactly 100 every day for a week. Each individual value is plausible. The flat sequence warrants checking the feed and device.
Who decides what the flag means?
Choose the reference group, timescale and tolerance for false alarms. Preserve the original data and investigate circumstances before correcting a value or declaring an incident. An anomaly is a reason to inspect, not a diagnosis.
What Makes It Hard
The hardest part is that "unusual" is contextual. A transaction that looks suspicious for one customer may be normal for another. Seasonal patterns, promotions, new products, and shifting user behavior can all make yesterday's baseline misleading today. If the underlying environment changes, the anomaly detector may need retraining, threshold updates, or better features.
Good anomaly detection systems therefore combine statistics, domain knowledge, and operational feedback. They do not replace human judgment. They help people focus attention where it matters most.
Follow the idea
Change detection asks where observations differ over time.
Model monitoring places unusual inputs beside independent outcome signals.
Related concepts (17)
Examples in the AI guides
More chapter examples (5)
Related Yenra articles (41)
Source · scikit-learn guide to novelty and outlier detection
Return to Anomaly Detection in the A–Z glossary