5. • How anomaly detection fits into HTM theory
• How we do anomaly detection
– HTM Learning Algorithms
– Anomaly score processing
• Evaluating anomaly detection algorithms
Outline
6. What does anomaly detection have to do with
Hierarchical Temporal Memory?
Applications of HTM:
• Prediction
• Classification
• Anomaly Detection
No changes to the
algorithm
7. Anomaly Detection with HTM
HTM Algorithms
Encoder
SDR
Prediction
Raw anomaly score
Time average
Historical comparison
Anomaly likelihood
Data
How do we turn a data stream into anomaly scores?
8. Raw Anomaly Score
Raw anomaly score is the fraction of active columns
that were not predicted.
rawAnomalyScore =
At -(Pt-1 Ç At )
At
Pt = Predicted columns at time t
At = Active columns at time t
10. Historical Comparison
Compute normal distribution over history
Compute probability for each point relative to the
distribution
m = xP(x)å s = E[(X -m)2
]
16. HTM Learning Algorithms Compared to Other Techniques
Anomaly Type Sudden In
predictable
data
In noisy
data
Human
can’t see
HTM Learning Algorithms Yes Yes Yes Yes
Thresholds Yes No No No
Various Statistical Yes Maybe Yes No
Time Series Analysis Yes Yes No No
Distance-based Yes Maybe No No
Supervised Methods N/A N/A N/A N/A
See “The Science of Anomaly Detection” White Paper at numenta.com
17. Benchmarking Streaming Anomaly Detection
• No training/test set
• No parameter tuning per data sample
• Need real data samples in addition to artificial
• We haven’t found any streaming anomaly detection
benchmarks so far
18. Numenta Anomaly Benchmark (NAB)
• Work in progress
• High velocity, streaming data
• Currently 21 real data samples and 11 artificial samples
• Hand-labeled, requiring multiple labelers to agree
• Open source, configurable
– Currently runs HTM Learning Algorithms and Etsy Skyline algorithms
• Follow progress at http://github.com/numenta/nab
• Please participate!
19. Next Steps
Read the white paper http://numenta.com/#technology
Scott Purdy spurdy@numenta.com
NAB http://github.com/numenta/nab
Algorithm code http://numenta.org
@numenta @scottmpurdy