anomaly detection in the wiper system using a markov modulated poisson distribution ping yan tim...

26
Anomaly Detection in the WIPER System using A Markov Modulated Poisson Distribution Ping Yan Tim Schoenharl Alec Pawling Greg Madey

Upload: ambrose-joseph

Post on 18-Dec-2015

216 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Anomaly Detection in the WIPER System using A Markov Modulated Poisson Distribution Ping Yan Tim Schoenharl Alec Pawling Greg Madey

Anomaly Detection in the WIPER System using A Markov Modulated Poisson Distribution

Ping YanTim Schoenharl

Alec PawlingGreg Madey

Page 2: Anomaly Detection in the WIPER System using A Markov Modulated Poisson Distribution Ping Yan Tim Schoenharl Alec Pawling Greg Madey

Outline

Background WIPER MMPP framework Application Experimental Results Conclusions and Future work

Page 3: Anomaly Detection in the WIPER System using A Markov Modulated Poisson Distribution Ping Yan Tim Schoenharl Alec Pawling Greg Madey

Background Time Series

A sequence of observations measured on a continuous time period at time intervals

Example: economy (Stock, financial), weather, medical etc…

Characteristics Data are not independent Displays underlying trends

Page 4: Anomaly Detection in the WIPER System using A Markov Modulated Poisson Distribution Ping Yan Tim Schoenharl Alec Pawling Greg Madey

WIPER System

Wireless Phone-based Emergency Response System

Functions Detect possible emergencies Improve situational awareness

Cell phone call activities reflect human behavior

Page 5: Anomaly Detection in the WIPER System using A Markov Modulated Poisson Distribution Ping Yan Tim Schoenharl Alec Pawling Greg Madey

Data Characteristics

Two cities: Small city A:

Population – 20,000 Towers – 4 Large city B:

Population – 200,000 Towers – 31

Time Period Jan. 15 – Feb. 12, 2006

Page 6: Anomaly Detection in the WIPER System using A Markov Modulated Poisson Distribution Ping Yan Tim Schoenharl Alec Pawling Greg Madey

Tower Activity

Small City (4 Towers)

Page 7: Anomaly Detection in the WIPER System using A Markov Modulated Poisson Distribution Ping Yan Tim Schoenharl Alec Pawling Greg Madey

Tower Activity

Large City (31 Towers)

Page 8: Anomaly Detection in the WIPER System using A Markov Modulated Poisson Distribution Ping Yan Tim Schoenharl Alec Pawling Greg Madey

15-Day Time Period Data

Small City

Page 9: Anomaly Detection in the WIPER System using A Markov Modulated Poisson Distribution Ping Yan Tim Schoenharl Alec Pawling Greg Madey

15-Day Time Period Data

Large City

Page 10: Anomaly Detection in the WIPER System using A Markov Modulated Poisson Distribution Ping Yan Tim Schoenharl Alec Pawling Greg Madey

Observations

Overall call activity of a city are more uniform than a single tower

Call activity for each day displays similar trend

Call activity for each day of the week shares similar behavior

Page 11: Anomaly Detection in the WIPER System using A Markov Modulated Poisson Distribution Ping Yan Tim Schoenharl Alec Pawling Greg Madey

MMPP Modeling

: Observed Data

: Unobserved Data with normal behavior: Unobserved Data with abnormal behavior

Both and can be modulated as a Poisson Process.

Page 12: Anomaly Detection in the WIPER System using A Markov Modulated Poisson Distribution Ping Yan Tim Schoenharl Alec Pawling Greg Madey

Modeling Normal Data Poisson distribution

Rate Parameter: a function of time

~

Page 13: Anomaly Detection in the WIPER System using A Markov Modulated Poisson Distribution Ping Yan Tim Schoenharl Alec Pawling Greg Madey

Adding Day/hour effects

Associated with Monday, Tuesday … Sunday

: Average rate of the Poisson process over one week

: Time interval, such as minute, half hour, hour etc

Page 14: Anomaly Detection in the WIPER System using A Markov Modulated Poisson Distribution Ping Yan Tim Schoenharl Alec Pawling Greg Madey

Requirements:

: Day effect, indicates the changes over the day of the week: Time of day effect, indicates the changes over the time period j on a given day of i

Page 15: Anomaly Detection in the WIPER System using A Markov Modulated Poisson Distribution Ping Yan Tim Schoenharl Alec Pawling Greg Madey

Day Effect

Page 16: Anomaly Detection in the WIPER System using A Markov Modulated Poisson Distribution Ping Yan Tim Schoenharl Alec Pawling Greg Madey

Time of Day Effect

Page 17: Anomaly Detection in the WIPER System using A Markov Modulated Poisson Distribution Ping Yan Tim Schoenharl Alec Pawling Greg Madey

Prior Distributions for Parameters

Page 18: Anomaly Detection in the WIPER System using A Markov Modulated Poisson Distribution Ping Yan Tim Schoenharl Alec Pawling Greg Madey

Modeling Anomalous Data

is also a Poisson process with rate

Markov process A(t) is used to determine the existence of anomalous events at time t

Page 19: Anomaly Detection in the WIPER System using A Markov Modulated Poisson Distribution Ping Yan Tim Schoenharl Alec Pawling Greg Madey

Continued

Transition probabilities matrix

Page 20: Anomaly Detection in the WIPER System using A Markov Modulated Poisson Distribution Ping Yan Tim Schoenharl Alec Pawling Greg Madey

MMPP ~ HMM

Typical HMM (Hidden Markov

Model)

MMPP(Markov Modulated Poisson Process)

Page 21: Anomaly Detection in the WIPER System using A Markov Modulated Poisson Distribution Ping Yan Tim Schoenharl Alec Pawling Greg Madey

Apply MCMC

Forward Recursion Calculate conditional

distribution of P( A(t) | N(t) ) Backward Recursion

Draw sample of and Draw Transition Matrix from

Complete Data

Page 22: Anomaly Detection in the WIPER System using A Markov Modulated Poisson Distribution Ping Yan Tim Schoenharl Alec Pawling Greg Madey

Anomaly Detection

Posterior probability of A(t) at each time t is an indicator of anomalies

Apply MCMC algorithm: 50 iterations

Page 23: Anomaly Detection in the WIPER System using A Markov Modulated Poisson Distribution Ping Yan Tim Schoenharl Alec Pawling Greg Madey

Results

Page 24: Anomaly Detection in the WIPER System using A Markov Modulated Poisson Distribution Ping Yan Tim Schoenharl Alec Pawling Greg Madey

Continued

Page 25: Anomaly Detection in the WIPER System using A Markov Modulated Poisson Distribution Ping Yan Tim Schoenharl Alec Pawling Greg Madey

Conclusions

Cell phone data reflects human activities on hourly, daily scale

MMPP provides a method of modeling call activity, and detecting anomalous events

Page 26: Anomaly Detection in the WIPER System using A Markov Modulated Poisson Distribution Ping Yan Tim Schoenharl Alec Pawling Greg Madey

Future Work

Apply on longer time period, and investigate monthly and seasonal behavior

Implement MMPP model as part of real time system on streaming data

Incorporate into WIPER system