Presentation is loading. Please wait.

Presentation is loading. Please wait.

Modeling Count Data over Time Using Dynamic Bayesian Networks Jonathan Hutchins Advisors: Professor Ihler and Professor Smyth.

Similar presentations


Presentation on theme: "Modeling Count Data over Time Using Dynamic Bayesian Networks Jonathan Hutchins Advisors: Professor Ihler and Professor Smyth."— Presentation transcript:

1 Modeling Count Data over Time Using Dynamic Bayesian Networks Jonathan Hutchins Advisors: Professor Ihler and Professor Smyth

2 Optical People Counter at a Building Entrance Loop Sensors on Southern California Freeways Sensor Measurements Reflect Dynamic Human Activity

3 Outline Introduction, problem description Probabilistic model Single sensor results Multiple sensor modeling Future Work

4 Modeling Count Data In a Poisson distribution: mean = variance = λ p(count|λ) count

5 mean people count variance Simulated Data 15 weeks, 336 time slots

6 mean people count variance Building Data

7 mean people count variance Freeway Data

8 One Week of Freeway Observations

9

10 One Week of Freeway Data

11 Detecting Unusual Events: Baseline Method Ideal model car count Baseline model car count Unsupervised learning faces a “chicken and egg” dilemma

12 Persistent Events Notion of Persistence missing from Baseline model

13 Quantifying Event Popularity Ideal model Baseline model

14 My contribution Adaptive event detection with time-varying Poisson processes A. Ihler, J. Hutchins, and P. Smyth Proceedings of the 12th ACM SIGKDD Conference (KDD-06), August 2006. Baseline method, Data sets, Ran experiments Validation Learning to detect events with Markov-modulated Poisson processes A. Ihler, J. Hutchins, and P. Smyth ACM Transactions on Knowledge Discovery from Data, Dec 2007 Extended the model to include a second event type (low activity) Poisson Assumption Testing Modeling Count Data From Multiple Sensors: A Building Occupancy Model J. Hutchins, A. Ihler, and P. Smyth IEEE CAMSAP 2007,Computational Advances in Multi-Sensor Adaptive Processing, December 2007.

15 "Graphical models are a marriage between probability theory and graph theory. They provide a natural tool for dealing with two problems that occur throughout applied mathematics and engineering -- uncertainty and complexity” Michael Jordan 1998 Graphical Models

16 Nodes  variables Directed Graphical Models observed Observed Count hidden EventRate Parameter

17 Directed Graphical Models Nodes  variables Edges  direct dependencies A B C

18 Graphical Models: Modularity Observed Count t Observed Count t-2 Observed Count t-1 Observed Count t+2 Observed Count t+1

19 Graphical Models: Modularity hidden observed Poisson Rate λ(t) Normal Count t-1 Observed Count t Observed Count t-1 Observed Count t+1 Day, Time t-1 Normal Count t-1 Day, Time t Normal Count t-1 Day, Time t+1

20 Graphical Models: Modularity hidden observed Poisson Rate λ(t) Normal Count t-1 Observed Count t Observed Count t-1 Observed Count t+1 Day, Time t-1 Normal Count t-1 Day, Time t Normal Count t-1 Day, Time t+1

21 Graphical Models: Modularity Event t Event t-1 Event t+1 hidden observed Poisson Rate λ(t) Normal Count t-1 Observed Count t Observed Count t-1 Observed Count t+1 Day, Time t-1 Normal Count t-1 Day, Time t Normal Count t-1 Day, Time t+1

22 Graphical Models: Modularity Event t Event t-1 Event t+1 hidden observed Poisson Rate λ(t) Normal Count t-1 Observed Count t Observed Count t-1 Observed Count t+1 Day, Time t-1 Normal Count t-1 Day, Time t Normal Count t-1 Day, Time t+1 Event State Transition Matrix

23 Event t Event t-1 Event t+1 Event State Transition Matrix Observed Count t Observed Count t-1 Observed Count t+1 Event Count t Event Count t-1 Event Count t+1 hidden observed Poisson Rate λ(t) Normal Count t-1 Day, Time t-1 Normal Count t-1 Day, Time t Normal Count t-1 Day, Time t+1

24 Event t Event t-1 Event t+1 Event State Transition Matrix Observed Count t Observed Count t-1 Observed Count t+1 Event Count t Event Count t-1 Event Count t+1 hidden observed Poisson Rate λ(t) Normal Count t-1 Day, Time t-1 Normal Count t-1 Day, Time t Normal Count t-1 Day, Time t+1 β α η ηη

25 Event t Event t-1 Event t+1 Event State Transition Matrix Observed Count t Observed Count t-1 Observed Count t+1 Event Count t Event Count t-1 Event Count t+1 hidden observed Poisson Rate λ(t) Normal Count t-1 Day, Time t-1 Normal Count t-1 Day, Time t Normal Count t-1 Day, Time t+1 Markov Modulated Poisson Process (MMPP) model e.g., see Heffes and Lucantoni (1994), Scott (1998)

26 Approximate Inference

27 Gibbs Sampling * ** * * ** * ** * * * * * * * *

28 * x y ** * * ** *

29 Block Sampling

30 Gibbs Sampling Event t Event t-1 Event t+1 Event State Transition Matrix Observed Count t Observed Count t-1 Observed Count t+1 Event Count t Event Count t-1 Event Count t+1 Poisson Rate λ(t) Normal Count t-1 Day, Time t-1 Normal Count t-1 Day, Time t Normal Count t-1 Day, Time t+1

31 Gibbs Sampling Event t Event t-1 Event t+1 Event State Transition Matrix Observed Count t Observed Count t-1 Observed Count t+1 Event Count t Event Count t-1 Event Count t+1 Poisson Rate λ(t) Normal Count t-1 Day, Time t-1 Normal Count t-1 Day, Time t Normal Count t-1 Day, Time t+1 Poisson Rate λ(t) Poisson Rate λ(t) Event State Transition Matrix Event State Transition Matrix For the ternary valued event variable with chain length of 64,000 Brute force complexity ~

32 Gibbs Sampling Event t Event t-1 Event t+1 A AA Poisson Rate λ(t) Day, Time t-1 Observed Count t-1 Normal Count t-1 Event Count t-1 Poisson Rate λ(t) Day, Time t-1 Observed Count t-1 Normal Count t-1 Event Count t-1 Poisson Rate λ(t) Day, Time t-1 Observed Count t-1 Normal Count t-1 Event Count t-1

33

34 Chicken/Egg Delima car count

35 Event Popularity car count

36 Notion of Persistence missing from Baseline model Persistent Event

37

38 Detecting Real Events: Baseball Games Total Number Of Predicted Events Graphical Model Detection of the 76 known events Baseline Model Detection of the 76 known events 203100.0%86.8% 186100.0%81.6% 134100.0%72.4% 9898.7%60.5% Remember: the model training is completely unsupervised, no ground truth is given to the model

39 Multi-sensor Occupancy Model Modeling Count Data From Multiple Sensors: A Building Occupancy Model J. Hutchins, A. Ihler, and P. Smyth IEEE CAMSAP 2007,Computational Advances in Multi-Sensor Adaptive Processing, December 2007

40 Where are the People? Building LevelCity Level

41 Optical People Counter at a Building Entrance Loop Sensors on Southern California Freeways Sensor Measurements Reflect Dynamic Human Activity

42 Application: Multi-sensor Occupancy Model CalIt2 Building, UC Irvine campus

43 Building Occupancy, Raw Measurements Occ t = Occ t-1 + inCounts t-1,t – outCounts t-1,t

44 Building Occupancy: Raw Measurements Noisy sensors make raw measurements of little value Over-counting Under-counting

45 Adding Noise Model Event t Event t-1 Event State Transition Matrix Event Count t Event Count t-1 Poisson Rate λ(t) Normal Count t-1 Day, Time t-1 Normal Count t-1 Day, Time t Observed Count t Observed Count t-1 True Count t-1 True Count t

46 Probabilistic Occupancy Model In(Entrance) Sensors Out(Exit) Sensors Occupancy In(Entrance) Sensors Out(Exit) Sensors Constraint Time Occupancy Time tTime t+1

47 24 hour constraint 47           Constraint Occupancy      Building Occupancy Geometric Distribution, p=0.5

48 Gibbs Sampling | Forward-Backward | Complexity Learning and Inference In(Entrance) Sensors Out(Exit) Sensors Occupancy In(Entrance) Sensors Out(Exit) Sensors Occupancy

49 Typical Days Thursday Friday Saturday Building Occupancy

50 Missing Data Building Occupancy time

51 Corrupted Data Building Occupancy Thursday Friday

52 Future Work Freeway Traffic On and Off ramps 2300 sensors 6 months of measurements

53 Sensor Failure Extension

54 Spatial Correlation

55 Four Off-Ramps

56 Publications Modeling Count Data From Multiple Sensors: A Building Occupancy Model J. Hutchins, A. Ihler, and P. Smyth IEEE CAMSAP 2007,Computational Advances in Multi-Sensor Adaptive Processing, December 2007. Learning to detect events with Markov-modulated Poisson processes A. Ihler, J. Hutchins, and P. Smyth ACM Transactions on Knowledge Discovery from Data, Dec 2007 Adaptive event detection with time-varying Poisson processes A. Ihler, J. Hutchins, and P. Smyth Proceedings of the 12th ACM SIGKDD Conference (KDD-06), August 2006. Prediction and ranking algorithms for event-based network data J. O Madadhain, J. Hutchins, P. Smyth ACM SIGKDD Explorations: Special Issue on Link Mining, 7(2), 23-30, December 2005


Download ppt "Modeling Count Data over Time Using Dynamic Bayesian Networks Jonathan Hutchins Advisors: Professor Ihler and Professor Smyth."

Similar presentations


Ads by Google