Skip to Content
Practical Machine Learning: A New Look at Anomaly Detection
book

Practical Machine Learning: A New Look at Anomaly Detection

by Ted Dunning, Ellen Friedman
August 2014
Intermediate to advanced content levelIntermediate to advanced
66 pages
1h 25m
English
O'Reilly Media, Inc.
Content preview from Practical Machine Learning: A New Look at Anomaly Detection

Chapter 5. Anomalies in Sporadic Events

The input signals in the examples discussed in previous chapters have all been values sampled at uniform intervals. Such signals make it easy to talk about a reconstructed value computed by a model and the difference between that value and the original input the reconstruction error.

In practice, however, there are other forms of data that are important to process for anomaly detection. One important class of such data is known as an event stream and is usually derived from log files of one sort or another. A key characteristic of these log files is that they record events that occur at irregular intervals.

It is also fairly common for these events to be associated with a symbolic value such as your IP address and the URL of a web page you visit if page views are the input of interest. Another input might be stock trades, for which the symbolic values could include the stock sign and be combined with the trades, price, and number of shares. Other examples of this type of input are e-commerce purchases or Internet packets. In each of these cases, we want to be able to detect anomalous activity in these event streams, such as changes in the rate or geolocation of web traffic, or perhaps the number of stock trades in particular time periods in stock markets. Sometimes the anomaly of interest is the absence of activity during a particular time interval, and that can be a challenge for anomaly detection models to handle.

Because these events occur ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical Machine Learning Cookbook

Practical Machine Learning Cookbook

Vikram Chandra Jha, Atul Tripathi

Publisher Resources

ISBN: 9781491914151Errata