AI GLOSSARY · AI CONCEPTS

Anomaly detection

Markdown version

Definition

Anomaly detection, also called outlier detection, is the identification of observations, events or data points that deviate from what is usual, standard or expected.

Also called: anomaly detection machine learning, outlier detection, anomaly detection AI, anomaly detection algorithm.

In plain language

Anomaly detection finds the odd one out. A bank wants to spot an unusual withdrawal, a factory wants to notice a failing sensor, and an engineer wants to see a strange spike in server logs. Some methods learn what normal looks like; others use statistical tests or specified criteria to flag departures. The limit is that unusual does not mean wrong. IBM notes that deviations can come from errors, but also from real events such as a holiday sales spike. A flag is a prompt for a person to look, not a verdict.

Technical definition

IBM describes anomaly detection as identifying observations that deviate from what is usual or expected, and splits time-series anomalies into point, contextual and collective types. Methods include visualisation, statistical tests such as the Grubbs test, and machine learning algorithms such as Isolation Forest, One-Class SVM and Local Outlier Factor. Training can be unsupervised, supervised or semi-supervised. scikit-learn separates outlier detection, where the training data contains outliers, from novelty detection, where it does not and new observations are checked.

Worked examples in this catalogue

Catalogue examples point at a skill, guide or coding tool listed on this site, with what to run and what you see. An example marked illustrative describes the item from its own documentation; it was not executed for this page. Platform Scores are our assessment under a published method, not a safety guarantee.

  1. Skill by Skill Almanac · Illustrative, not executed

    log-error-clustering 49/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    A huge log turned into a ranked table of distinct error signatures, with counts, timing and a triage order.
    Why it exercises the concept
    It is a contrast case. It groups repeated errors by signature and counts them rather than learning a model of normal, but it answers a nearby question: which log events stand out.
  2. Skill by Skill Almanac · Illustrative, not executed

    data-analysis-eda 56/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    A fixed exploratory-analysis procedure and CSV profiler that keeps findings descriptive, evidenced and caveated.
    Why it exercises the concept
    Looking at the data before modelling is one way to notice odd values. The skill profiles data and keeps findings descriptive; it does not fit an anomaly detector. The catalogue has no dedicated outlier skill.
  3. Skill by Skill Almanac · Illustrative, not executed

    code-risky-pattern-scan 42/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    A source-code folder scanned read-only for a fixed list of risky code patterns.
    Why it exercises the concept
    It is a contrast case: fixed rules against known patterns, where anomaly detection looks for departures from what is expected.

How it shows up when you use agents

Coding agents meet anomalies in logs, test timings, metrics and CSV exports. A typical request is "find what is strange in this data". An agent can profile the data, plot it, run a statistical test or fit a detector from a library such as scikit-learn, and report candidates.

What breaks when this is misunderstood: a flagged row is treated as a fault, or an agent declares a dataset clean because nothing was flagged. IBM lists both errors and real events as causes of deviations, so each flag needs a human look at context. A safer habit is to ask the agent to list the flagged items with the rule or score that flagged them, and to keep the unflagged data available for spot checks. For logs, log error clustering gives a ranked table of distinct error signatures. Start with a descriptive pass such as data analysis EDA. Detectors that learn from unlabeled data connect to unsupervised learning.

Common confusions

  • Anomaly versus error. A deviation can be a sensor fault or a real event. IBM gives a holiday sales spike as an intentional example.
  • Outlier detection versus novelty detection. In scikit-learn's terms, outlier detection fits training data that may contain outliers; novelty detection assumes clean training data and checks new observations.
  • Anomaly detection versus classification. Supervised classification commonly trains on labelled examples; classification as a task can also use rules or zero-shot methods. IBM says unsupervised methods have the widest application.
  • Myth. A detector tells you why something is unusual. It flags or scores; explaining the cause is the reader's job.

Terms that mention Anomaly detection

4 terms mention this one

More in AI concepts

Next steps

  1. log-error-clustering A skill that exercises it.
  2. Classification Related term.
  3. scikit-learn Related term.
  4. All glossary terms A to Z and by family.

Sources

Definitions are written by Skill Almanac from these sources and were checked against them on 2026-11-25. Wikipedia is never the only source.

Review record

Last verified

Drafted by Claude (original draft) and OpenAI Codex (targeted revisions); sources and example targets checked by Independent automated source review (OpenAI Codex); not human peer review on 2026-11-25. Last verified .

Change log (5)
  • : Independent automated factual/example review completed. Cached US query estimate aligned to receipt; no traffic promise. Final technical gate recorded separately; publication disabled.
  • : Targeted batch-09 source repairs: corrected required family, implementation or example scope. Independent affected review pending; no publication approval.
  • : Verifier pass: applied verifier corrections to claims and sources.
  • : First version.
  • : Automated review completed; approved for the staged public release. Search indexing is controlled by the release configuration.