Machine Learning - 1
Machine Learning - 1
Anomaly Detection
Machine Learning
Motivation
Example
( )
Aircraft Engine Features Data Set :
○ Heat generated
○ Vibration intensity New Engine:
○ -----
𝑥
X
X X XX X
X X X XX
XX X
X X X
X X XX X X
X X X
X
𝑥
Density Estimation
Data Set :
Is anomalous?
𝑥
X
X X XX X Model
X X X XX
X
X
X X X Anomalous
X XX X X
X
X X X OK
𝑥
Anomaly Detection :Example
Fraud Detection
○ Features of user ’s activities
○ Model from the data
○ Identify unusual users by checking which have
Manufacturing
Monitoring computers in a data center
○ Features of machine
○ Memory use.
○ Number of disk accesses/second.
○ CPU load.
○ CPU load/network traffic.
Gaussian Distribution
Gaussian (Normal) Distribution
( )
𝜇
Gaussian Distributions Example
Check
www.desmos.com
Algorithm
Anomaly Detection : Basic Example
Anomalous if
( )
Assume , , and
,
○ Not anomalous
,
○ Anomalous
4. If , Anomalous
Building an Anomaly Detection System
Importance of Evaluation
Test set
Air Craft Engine Motivating Example
Question
○ If we have labelled data (as discussed previously), why don’t we
use supervised learning algorithms?
Anomaly Detection vs. Supervised
Learning
Non-Gaussian Features
log(𝑥)
Introducing New Features