AI Roadmaps
← All roadmaps
IntermediateRoadmap 39 · 11 steps · 4h 41m of video

Anomaly Detection

Find the rare and the unusual: statistical outliers, distance and density methods, isolation forests, one-class SVMs, autoencoders, fraud with imbalanced data, and explaining why a point was flagged.

Before this: Machine Learning. Deep Learning for the autoencoder step; Time Series & Forecasting helps there too.

  1. 15 min
    Step 1

    What anomaly detection is

    Kinds of anomalies, and why you usually train on mostly normal data.

    Introduction to Anomaly Detection for Engineers

    MATLAB

  2. 20 min
    Step 2

    Outliers by z-score

    Flag points far from the mean, which works best on roughly normal data.

    Outlier detection and removal: z score, standard deviation | Feature engineering tutorial python # 3

    codebasics

  3. 11 min
    Step 3

    Multivariate outliers with Mahalanobis distance

    Distance that accounts for correlation; assumes a roughly elliptical data cloud.

    Euclidean distance and the Mahalanobis distance (and the error ellipse)

    TileStats

  4. 9 min
    Step 4

    Outliers as DBSCAN noise points

    Points in no dense cluster become noise, a simple outlier signal.

    Clustering with DBSCAN, Clearly Explained!!!

    StatQuest with Josh Starmer

  5. 6 min
    Step 5

    Local outlier factor

    Compare a point's density to its neighbors' to find local outliers.

    Local Outlier Factor- Everything you need to know! | Outlier Detection| Machine Learning Algorithms

    Trisha Sarkar

  6. 15 min
    Step 6

    Isolation forest

    Anomalies tend to need fewer random splits to isolate, coded in Python.

    Isolation Forest for Outlier Detection within Python

    Andy McDonald

    yzhao062/pyod★ 10.1k
  7. 6 min
    Step 7

    One-class SVM

    Learn a boundary around normal-only data and flag what falls outside it.

    One-Class SVM for Outlier Detection

    MachineLearningInterview

  8. 27 min
    Step 8

    LSTM autoencoder for time-series anomalies

    Train on normal sequences, then flag windows with high reconstruction error.

    180 - LSTM Autoencoder for anomaly detection

    DigitalSreeni

  9. 58 min
    Step 9

    Fraud detection with imbalanced data

    Credit card fraud with under 1% positives: resampling and the right metrics.

    Credit Card Fraud Detection - Dealing with Imbalanced Datasets in Machine Learning

    Greg Hogg

  10. 26 min
    Step 10

    Explain anomalies with SHAP

    See which features pushed an isolation forest to flag a point.

    Explaining Anomalies with Isolation Forest and SHAP | Python Tutorial

    A Data Odyssey

    shap/shap★ 25.9k
  11. 1h 27m
    Step 11

    Where the field stands

    A Microsoft Research talk on algorithms, benchmarks, and explaining anomalies.

    Anomaly Detection: Algorithms, Explanations, Applications

    Microsoft Research

Build it

Watching isn't learning. Pick one and put it on GitHub.

Browse all roadmaps →