26
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 ...dddas/Papers/MMPPslides.pdf · Thu2 Fri2 Sat2 Sun3 15-Day Time Period Data Small City . 0 5 10 15 20 25 0 5000 10000 15000

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Anomaly Detection in the WIPER System using A Markov ...dddas/Papers/MMPPslides.pdf · Thu2 Fri2 Sat2 Sun3 15-Day Time Period Data Small City . 0 5 10 15 20 25 0 5000 10000 15000

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

Ping Yan Tim Schoenharl

Alec Pawling Greg Madey

Page 2: Anomaly Detection in the WIPER System using A Markov ...dddas/Papers/MMPPslides.pdf · Thu2 Fri2 Sat2 Sun3 15-Day Time Period Data Small City . 0 5 10 15 20 25 0 5000 10000 15000

Outline

n  Background n  WIPER n  MMPP framework n  Application n  Experimental Results n  Conclusions and Future work

Page 3: Anomaly Detection in the WIPER System using A Markov ...dddas/Papers/MMPPslides.pdf · Thu2 Fri2 Sat2 Sun3 15-Day Time Period Data Small City . 0 5 10 15 20 25 0 5000 10000 15000

Background

n  Time Series n  A sequence of observations measured

on a continuous time period at time intervals

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

n  Characteristics n  Data are not independent n  Displays underlying trends

Page 4: Anomaly Detection in the WIPER System using A Markov ...dddas/Papers/MMPPslides.pdf · Thu2 Fri2 Sat2 Sun3 15-Day Time Period Data Small City . 0 5 10 15 20 25 0 5000 10000 15000

WIPER System

n  Wireless Phone-based Emergency Response System

n  Functions n  Detect possible emergencies n  Improve situational awareness

n  Cell phone call activities reflect human behavior

Page 5: Anomaly Detection in the WIPER System using A Markov ...dddas/Papers/MMPPslides.pdf · Thu2 Fri2 Sat2 Sun3 15-Day Time Period Data Small City . 0 5 10 15 20 25 0 5000 10000 15000

Data Characteristics

n  Two cities: n  Small city A:

n  Population – 20,000 Towers – 4

n  Large city B: n  Population – 200,000 Towers – 31

n  Time Period n  Jan. 15 – Feb. 12, 2006

Page 6: Anomaly Detection in the WIPER System using A Markov ...dddas/Papers/MMPPslides.pdf · Thu2 Fri2 Sat2 Sun3 15-Day Time Period Data Small City . 0 5 10 15 20 25 0 5000 10000 15000

Tower Activity

0 5 10 15 20 250

100

200

300

400

500

600

700

800

Hour

Cal

l Act

iviti

es

Small City (4 Towers)

Page 7: Anomaly Detection in the WIPER System using A Markov ...dddas/Papers/MMPPslides.pdf · Thu2 Fri2 Sat2 Sun3 15-Day Time Period Data Small City . 0 5 10 15 20 25 0 5000 10000 15000

0 5 10 15 20 250

100

200

300

400

500

600

700

Hour

Cal

l Act

iviti

esTower Activity

Large City (31 Towers)

Page 8: Anomaly Detection in the WIPER System using A Markov ...dddas/Papers/MMPPslides.pdf · Thu2 Fri2 Sat2 Sun3 15-Day Time Period Data Small City . 0 5 10 15 20 25 0 5000 10000 15000

0 5 10 15 20 250

200

400

600

800

1000

1200

1400

1600

1800

Every Hour

Cal

l Act

iviti

es

Sun1Mon1Tue1Wed1Thu1Fri1Sat1Sun2Mon2Tue2Wed2Thu2Fri2Sat2Sun3

15-Day Time Period Data

Small City

Page 9: Anomaly Detection in the WIPER System using A Markov ...dddas/Papers/MMPPslides.pdf · Thu2 Fri2 Sat2 Sun3 15-Day Time Period Data Small City . 0 5 10 15 20 25 0 5000 10000 15000

0 5 10 15 20 250

5000

10000

15000

Every Hour

Cal

l Act

iviti

es

Sun1Mon1Tue1Wed1Thu1Fri1Sat1Sun2Mon2Tue2Wed2Thu2Fri2Sat2Sun3

15-Day Time Period Data

Large City

Page 10: Anomaly Detection in the WIPER System using A Markov ...dddas/Papers/MMPPslides.pdf · Thu2 Fri2 Sat2 Sun3 15-Day Time Period Data Small City . 0 5 10 15 20 25 0 5000 10000 15000

Observations

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

n  Call activity for each day displays similar trend

n  Call activity for each day of the week shares similar behavior

Page 11: Anomaly Detection in the WIPER System using A Markov ...dddas/Papers/MMPPslides.pdf · Thu2 Fri2 Sat2 Sun3 15-Day Time Period Data Small City . 0 5 10 15 20 25 0 5000 10000 15000

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 ...dddas/Papers/MMPPslides.pdf · Thu2 Fri2 Sat2 Sun3 15-Day Time Period Data Small City . 0 5 10 15 20 25 0 5000 10000 15000

Modeling Normal Data

n  Poisson distribution

n  Rate Parameter: a function of time

~

Page 13: Anomaly Detection in the WIPER System using A Markov ...dddas/Papers/MMPPslides.pdf · Thu2 Fri2 Sat2 Sun3 15-Day Time Period Data Small City . 0 5 10 15 20 25 0 5000 10000 15000

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 ...dddas/Papers/MMPPslides.pdf · Thu2 Fri2 Sat2 Sun3 15-Day Time Period Data Small City . 0 5 10 15 20 25 0 5000 10000 15000

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 ...dddas/Papers/MMPPslides.pdf · Thu2 Fri2 Sat2 Sun3 15-Day Time Period Data Small City . 0 5 10 15 20 25 0 5000 10000 15000

Day Effect

0 20 40 60 80 100 120 140 160 1800

500

1000

1500

2000

Time Interval (7 Days x 24 Hours)

Cal

l Act

iviti

es

Call activitiesDay effectOverall Average

Page 16: Anomaly Detection in the WIPER System using A Markov ...dddas/Papers/MMPPslides.pdf · Thu2 Fri2 Sat2 Sun3 15-Day Time Period Data Small City . 0 5 10 15 20 25 0 5000 10000 15000

Time of Day Effect

0 5 10 15 20 25 30 35 40 45 500

200

400

600

800

1000

Time Interval (Half hour)

Cal

l Act

iviti

es

Call activitiesTime of Day EffectOverall Average Day Effect

Page 17: Anomaly Detection in the WIPER System using A Markov ...dddas/Papers/MMPPslides.pdf · Thu2 Fri2 Sat2 Sun3 15-Day Time Period Data Small City . 0 5 10 15 20 25 0 5000 10000 15000

Prior Distributions for Parameters

Page 18: Anomaly Detection in the WIPER System using A Markov ...dddas/Papers/MMPPslides.pdf · Thu2 Fri2 Sat2 Sun3 15-Day Time Period Data Small City . 0 5 10 15 20 25 0 5000 10000 15000

Modeling Anomalous Data n  is also a Poisson process with

rate

n  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 ...dddas/Papers/MMPPslides.pdf · Thu2 Fri2 Sat2 Sun3 15-Day Time Period Data Small City . 0 5 10 15 20 25 0 5000 10000 15000

Continued

n  Transition probabilities matrix

Page 20: Anomaly Detection in the WIPER System using A Markov ...dddas/Papers/MMPPslides.pdf · Thu2 Fri2 Sat2 Sun3 15-Day Time Period Data Small City . 0 5 10 15 20 25 0 5000 10000 15000

MMPP ~ HMM

n  Typical HMM (Hidden Markov

Model)

n  MMPP (Markov Modulated Poisson Process)

Page 21: Anomaly Detection in the WIPER System using A Markov ...dddas/Papers/MMPPslides.pdf · Thu2 Fri2 Sat2 Sun3 15-Day Time Period Data Small City . 0 5 10 15 20 25 0 5000 10000 15000

Apply MCMC

n  Forward Recursion n  Calculate conditional distribution

of P( A(t) | N(t) )

n  Backward Recursion n  Draw sample of and

n  Draw Transition Matrix from Complete Data

Page 22: Anomaly Detection in the WIPER System using A Markov ...dddas/Papers/MMPPslides.pdf · Thu2 Fri2 Sat2 Sun3 15-Day Time Period Data Small City . 0 5 10 15 20 25 0 5000 10000 15000

Anomaly Detection

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

n  Apply MCMC algorithm: n  50 iterations

Page 23: Anomaly Detection in the WIPER System using A Markov ...dddas/Papers/MMPPslides.pdf · Thu2 Fri2 Sat2 Sun3 15-Day Time Period Data Small City . 0 5 10 15 20 25 0 5000 10000 15000

Results

Page 24: Anomaly Detection in the WIPER System using A Markov ...dddas/Papers/MMPPslides.pdf · Thu2 Fri2 Sat2 Sun3 15-Day Time Period Data Small City . 0 5 10 15 20 25 0 5000 10000 15000

Continued

Page 25: Anomaly Detection in the WIPER System using A Markov ...dddas/Papers/MMPPslides.pdf · Thu2 Fri2 Sat2 Sun3 15-Day Time Period Data Small City . 0 5 10 15 20 25 0 5000 10000 15000

Conclusions

n  Cell phone data reflects human activities on hourly, daily scale

n  MMPP provides a method of

modeling call activity, and detecting anomalous events

Page 26: Anomaly Detection in the WIPER System using A Markov ...dddas/Papers/MMPPslides.pdf · Thu2 Fri2 Sat2 Sun3 15-Day Time Period Data Small City . 0 5 10 15 20 25 0 5000 10000 15000

Future Work

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

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

n  Incorporate into WIPER system