CSCI 360 Introduc/on to Ar/ficial Intelligence Week 2: Problem Solving and Op/miza/on. Professor Wei-Min Shen Week 8.1 and 8.2

Size: px
Start display at page:

Download "CSCI 360 Introduc/on to Ar/ficial Intelligence Week 2: Problem Solving and Op/miza/on. Professor Wei-Min Shen Week 8.1 and 8.2"

Transcription

1 CSCI 360 Introduc/on to Ar/ficial Intelligence Week 2: Problem Solving and Op/miza/on Professor Wei-Min Shen Week 8.1 and 8.2

2 Status Check Projects Project 2 Midterm is coming, please do your homework! Read the HW Guide (TJ will release that soon) Ques/ons? 2

3 Probabilis/c Model (Ac/ons & Sensors) Readings: AIMA 15, ALFE 2, 5, (5.10) Defini/ons Markov Chains, HMM, DBN, Examples: Speech recogni/on ( hearing =?= believing ) Traveling in colored rooms ( seeing =?= believing ) Given: a map of colored rooms, and an experience (act/see): e 1:t Compute: which room the robot was/is/will-be in: X States, observa/ons, transi/ons, ac/ons, sensors, Inferences P(X t e 1:t ) which room I am in now (state es/ma/on) P(X t+k e 1:t ) which room I will be in at /me t+k (predic/on) P(X k e 1:t ) which room I was in at /me k (smoothing) P(x 1:t e 1:t ) what rooms I have been in the past (explana/on) P(M t e 1:t ) can I improve my map (learning) 3

4 Reasoning over Time Determinis/c Reasoning over /me Automata, Determinis/c Finite Automata (DFA) Probabilis/c Reasoning over /me Non-Determinis/c Finite Automata (NFA) Hidden Markov Model (HMM) Dynamic Bayesian Networks (DBN) 4

5 Example of Reasoning over Time Speech Recogni/on Listening is not always equal to hearing J Traveling through rooms with colored walls Seeing does not always tell where you are J a 0 Room-1 a 1 Room-2 a 2 Room-3 a 3 Wall-color Wall-color Wall-color 5

6 Problem of Reasoning over Time Given: A model of the world (e.g., a map of rooms with colored walls) An experience of observa/ons and ac/ons from /me 1 to t Compute: Which states (e.g., rooms) the robot was/is/will-be in? a 0 Room-1 a 1 Room-2 a 2 Room-3 a 3 Wall-color Wall-color Wall-color 6

7 States, Ac/ons and Sensors Example of the Lijle Prince s Planet Percepts: {rose, volcano, nothing} Ac/ons: {forward, backward, turn-around} States: {north-side, south-side, east-side, west-side} 7

8 The Planet of Lijle Prince See Nothing See Volcano See Rose See Nothing 8

9 A Model for Lijle Prince s Planet See Nothing See Volcano See Rose See Nothing His internal ac/on model has only 4 states! (why?) 9

10 The Ac/on/Sensor Model 10

11 Lijle Prince s Determinis/c Model Are the ac/ons determinis/c? Are the sensors determinis/c? Is there any hidden states in this example? 11

12 Two Big Uncertain/es Seeing may not be believing States and observa/ons are not 1-1 mapping One state may be seen in many different ways The same observa/on may be seen in many different states E.g., When the prince sees nothing, where is he? Facing which way? Can you made the lijle prince s sensors non-determinis/c? Ac/on may not produce the same results Ac/ons do not always take you to the same states E.g., the lijle prince s planet may have planet-quakes J Transi/ons between states by ac/ons may be nondeterminis/c now Can you made the lijle prince s ac/ons non-determinis/c? 12

13 Certainty vs Uncertainty The certain way s1 a1 s2 The uncertain way S1 is not always blue s1 a1 a1 a1 S2 is not always red s3 s2 a1 from S1 does not always go to S2 s3 13

14 Uncertainty in Sensor & Ac/ons? State S19?? Observa/ons????? Solu/on: let s use probabili/es Sensor Model (for states and observa/ons) P( Observation State ) Probabilis/c Transi/ons (for states and ac/ons) P( Next_State Current_State, Ac/on) 14

15 Hidden Markov Model (with ac/ons) z1 z2 s23 a1 z1 s94 z3 1. Ac/ons a1 2. Percepts (observa/ons) 3. States 4. Appearance: states à observa/ons 5. Transi/ons: (states, ac/ons) à states 6. Current State a1 s77 15

16 Hidden Markov Model (1/2) Ac/on Model 16

17 Hidden Markov Model (2/2) Sensor Model This is also called localiza/on. 17

18 Lijle Prince s Model (HMM + Ac/ons) {P(s3 s0,f)=.51, P(s2 s1,b)=.32, P(s4 s3,t)=.89, } {P(rose s0)=.76, P(volcano s1)=.83, P(nothing s3)=.42, } π 1 (0) = 0.25,π 2 (0) = 0.25,π 3 (0) = 0.25,π 4 (0) =

19 Lijle Prince Example Model (ac/on) Transi/on Probabili/es Φ (Fwd, Back, Turn) F S0 S1 S2 S3 S S S S B S0 S1 S2 S3 S S S S T S0 S1 S2 S3 S S S S (sensor) Appearance Probabili/es θ θ Rose Volcano Nothing S S S S Ini/al State Probabili/es π π S0 S1 S2 S Later, we may add u/lity to states (e.g., prefer to see rose) 19

20 Experience and State Sequence E 1:T is an experience is a sequence of {observe 1, act 1, observe 2, act 2,., act T-1, observe T } E 1:T = {o 1, a 1, o 2, a 2, o 3,, o T-1, a T-1, o T } X 1:T is a sequence of states that may correspond to the experience X 1:T = {X 1, X 2, X 3,, X T-1, X T } 20

21 E 1:T Lijle Prince in Ac/on {rose}, fward, {none},, turn, {rose}, back, {volcano} /me States may be hidden! S1 S2 S3 S4 S1 S2 S3 S4 S1 S2 S3 S4 S1 S2 S3 S4 Given: the observable experience E 1:T (/me 1 through T) Defini/ons: State S and ac/ons A (Forward, Back, Turn) (Ac/on model) Transi/on Probabili/es Φ (Sensor model) Appearance Probabili/es θ (rose, volcano, none) (localiza/on) Ini/al/current State Probabili/es π 21

22 Lijle Prince Example From an experience (/me 1 through t) Infer the most likely sequence of states {rose}, forward, {.},, turn,, {rose}, bwd, {volcano} S1 S2 S3 S4 S1 S2 S3 S4 S1 S2 S3 S4 S1 S2 S3 S4 Find the best sequence of states that support the given experience! 22

23 Possible Inferences with names P(X 1:t E 1:t ) what states I have been through ( explana/on ) P(X t E 1:t ) which state I am in now ( state es/ma/on localiza/on ) P(X t+k E 1:t ) which state I will be in at /me t+k ( predic/on ) P(X k E 1:t ) which state I was in at /me k (k<t) ( smoothing ) P(M t E 1:t ) How correct is my model at /me t ( model learning ) 23

24 Temporal Models Models with ac/ons and sensors The next 12 slides are essen/al for you to understand the concepts The rest will follow naturally if you do Markov Chains No observa/on, no explicit ac/ons, transit randomly Hidden Markov Model No explicit ac/ons, state transit randomly Dynamic Bayesian Networks No explicit ac/ons, States are Bayesian Networks Con/nuous State Model No explicit ac/ons, States are con/nuous POMDP 24

25 Lijle Prince Ac/on Model (S,A,Φ,θ,π) Transi/on Probabili/es Φ (Forward, Back, Turn) F S0 S1 S2 S3 S S S S B S0 S1 S2 S3 S S S S T S0 S1 S2 S3 S S S S Appearance Probabili/es θ θ Rose Volcano Nothing S S S S Ini/al State Probabili/es π π S0 S1 S2 S

26 E 1:T Lijle Prince in Ac/on {rose}, fward, {none},, turn, {rose}, back, {volcano} /me Hidden! S1 S2 S3 S4 S1 S2 S3 S4 S1 S2 S3 S4 S1 S2 S3 S4 Given: experience E 1:T (/me 1 through T) You can Infer: P(X t E 1:t ), where (which state) am I at now? (es/ma/on) P(X t+k E 1:t ), where I will be at /me t+k? (predic/on) P(X k E 1:t ), where I was at /me k < t? (smooth) P(X 1:t E 1:t ) which sequence of states I went through? (explana/on) 26

27 P(X 1:t E 1:t ) explana/on Example Given: experience E 1:2 ={rose, forward, nothing} Infer: the most likely sequence of states X 1:2 E= {rose}, forward, {nothing} E 1:2 ={rose, forward, nothing} O 1:2 ={rose, nothing} // observa/ons A 1 ={forward} // ac/on sequence E 1:2 =O 1:2 A 1 S0 S1 S2 S3 S0 S1 S2 S3 Compute P(X E): 16 possible X, which one is most likely? {s0,s0}, {s0,s1}, {s0,s2}, {s0,s3}, {s1,s0}, {s1,s1}, {s1,s2}, {s1,s3}, {s2,s0}, {s2,s1}, {s2,s2}, {s2,s3}, {s3,s0}, {s3,s1}, {s3,s2}, {s3,s3} Find the best sequence of states that support the experience! 27

28 P(X 1,2 E 1,2 ) Example in a Graph P(X E) {s0,s0} {s0,s1} {s0,s2} {s0,s3} {s1,s0} {s1,s1} {s1,s2} {s1,s3} {s2,s0} {s2,s1} {s2,s2} {s2,s3} {s3,s0} {s3,s1} {s3,s2} {s3,s3} X 28

29 Compute P(X 1:T E 1:T ) P(X 1:T E) where E=OA X1:T is all possible sequences of states Let x={i 1, i 2,, i T } be a sequence of states P(x E) = p(xe)/p(e) = P(xOA)/P(OA) = p(x A)p(O xa)/p(o A) = α p(x A)p(O xa) p(x A)= p(o xa)= O = {z 1, z 2,, z T }, A = {b 1, b 2,, b T-1 }, x = {i 1, i 2,, i T } E={rose, forward, nothing} O={rose, nothing} // observa/ons A={forward} // ac/on sequence {s0,s0}, {s0,s1}, {s0,s2}, {s0,s3}, {s1,s0}, {s1,s1}, {s1,s2}, {s1,s3}, {s2,s0}, {s2,s1}, {s2,s2}, {s2,s3}, {s3,s0}, {s3,s1}, {s3,s2}, {s3,s3} 29

30 In Our Example 16 possible x p(x A) p({s 0,s 0 } {f})=π(s 0 )p s0,s0 (f)=.25*.1=.025 p({s 0,s 1 } {f})=π(s 0 )p s0,s1 (f)=.25*.1=.025 p({s 0,s 2 } {f})=π(s 0 )p s0,s2 (f)=.25*.1=.025 p({s 0,s 3 } {f})=π(s 0 )p s0,s3 (f)=.25*.7=.175 p({s 1,s 0 } {f})=π(s 1 )p s1,s0 (f)=.25*.1=.025 p({s 1,s 1 } {f})=π(s 1 )p s1,s1 (f)=.25*.1=.025 p({s 1,s 2 } {f})=π(s 1 )p s1,s2 (f)=.25*.1=.175 p({s 1,s 3 } {f})=π(s 1 )p s1,s3 (f)=.25*.7=.025 p({s 2,s 0 } {f})=π(s 2 )p s2,s0 (f)=.25*.1=.175 p({s 2,s 1 } {f})=π(s 2 )p s2,s1 (f)=.25*.1=.025 p({s 2,s 2 } {f})=π(s 2 )p s2,s2 (f)=.25*.1=.025 p({s 2,s 3 } {f})=π(s 2 )p s2,s3 (f)=.25*.7=.025 p({s 3,s 0 } {f})=π(s 3 )p s3,s0 (f)=.25*.1=.025 p({s 3,s 1 } {f})=π(s 3 )p s3,s1 (f)=.25*.1=.175 p({s 3,s 2 } {f})=π(s 3 )p s3,s2 (f)=.25*.1=.025 p({s 3,s 3 } {f})=π(s 3 )p s3,s3 (f)=.25*.7=.025 {s0,s0}, {s0,s1}, {s0,s2}, {s0,s3},{s1,s0}, {s1,s1}, {s1,s2}, {s1,s3}, {s2,s0}, {s2,s1}, {s2,s2}, {s2,s3},{s3,s0}, {s3,s1}, {s3,s2}, {s3,s3} p(o xa) Θs 0 (r) Θs 0 (n)=.8*.1=.08 Θs 0 (r) Θs 1 (n)=.8*.1=.08 Θs 0 (r) Θs 2 (n)=.8*.8=.64 Θs 0 (r) Θs 3 (n)=.8*.8=.64 Θs 1 (r) Θs 0 (n)=.1*.1=.01 Θs 1 (r) Θs 1 (n)=.1*.1=.01 Θs 1 (r) Θs 2 (n)=.1*.8=.08 Θs 1 (r) Θs 3 (n)=.1*.8=.08 Θs 2 (r) Θs 0 (n)=.1*.1=.01 Θs 2 (r) Θs 1 (n)=.1*.1=.01 Θs 2 (r) Θs 2 (n)=.1*.8=.08 Θs 2 (r) Θs 3 (n)=.1*.8=.08 Θs 3 (r) Θs 0 (n)=.1*.1=.01 Θs 3 (r) Θs 1 (n)=.1*.1=.08 Θs 3 (r) Θs 2 (n)=.1*.8=.08 Θs 3 (r) Θs 3 (n)=.1*.8=.08 E={rose, forward, nothing} O={rose, nothing}, A={forward} Best Explana/on is: {s0, s3} 30

31 Which Explana/on is the Best? Among all possible sequences of states, the best explana/on is the sequence of states that gives the maximal value for P(x E)= Experience: Observa/ons: o 1, o 2,, o T-1, o T Ac/ons: b 1, b 2,, b T-1 Sensor models: Ac/on models: P ij [b] = P(s j s i, b) Explana/on: State sequence: i 1, i 2, i 3,, i T 31

32 Compute Hidden State Sequence (1/2) Experience consists of both O and A O is observa/on sequence and A is ac/on sequence in experience M is the model, C is the background informa/on O = {z 1, z 2,, z T }, A = {b 1, b 2,, b T-1 }, I = {i 1, i 1,, i T } In Lijle Prince Example: I used x for I, and ignored M and C there. 32

33 Compute Hidden State Sequence (2/2) O = {z 1, z 2,, z T }, A = {b 1, b 2,, b T }, I = {i 1, i 1,, i T } In Lijle Prince Example, I wrote above as p(x A) and p(o xa) Among all possible sequences in I, there is one with the maximal probability. 33

34 P(O AMC) by Forward Procedure Main idea: not consider all possible state sequence, but every step in the experience and compute P(O AMC) incrementally on the /me t: 34

35 Forward Procedure Forward Procedure Complexity is O(TN 2 ) 35

36 Forward Procedure Example Time: t t t E = { rose, forward, none, turn, volcano,..} α 1 (i): α 1 (s 0 ) = π(s 0 )Θs 0 (r)=.25*.8=.20 α 1 (s 1 ) = π(s 1 )Θs 1 (r)=.25*.1=.025 α 1 (s 2 ) = π(s 2 )Θs 2 (r)=.25*.1=.025 α 1 (s 3 ) = π(s 3 )Θs 3 (r)=.25*.1=.025 α 2 (i): α 2 (s 0 ) = α 1 (s 0 ) p s0,s0 (f) Θs 0 (n) + α 1 (s 1 ) p s1,s0 (f) Θs 0 (n) + α 1 (s 2 ) p s2,s0 (f) Θs 0 (n) + α 1 (s 3 ) p s3,s0 (f) Θs 0 (n) α 2 (s 1 ) = α 1 (s 0 ) p s0,s1 (f) Θs 1 (n) + α 1 (s 1 ) p s1,s1 (f) Θs 1 (n) + α 1 (s 2 ) p s2,s1 (f) Θs 1 (n) + α 1 (s 3 ) p s3,s1 (f) Θs 1 (n) α 2 (s 2 ) = α 1 (s 0 ) p s0,s2 (f) Θs 2 (n) + α 1 (s 1 ) p s1,s2 (f) Θs 2 (n) + α 1 (s 2 ) p s2,s2 (f) Θs 2 (n) + α 1 (s 3 ) p s3,s2 (f) Θs 2 (n) α 2 (s 3 ) = α 1 (s 0 ) p s0,s3 (f) Θs 3 (n) + α 1 (s 1 ) p s1,s3 (f) Θs 3 (n) + α 1 (s 2 ) p s2,s3 (f) Θs 3 (n) + α 1 (s 3 ) p s3,s3 (f) Θs 3 (n) α 3 (i): α 3 (s 0 ) = α 2 (s 0 ) p s0,s0 (t) Θs 0 (v) + α 2 (s 1 ) p s1,s0 (t) Θs 0 (v) + α 2 (s 2 ) p s2,s0 (t) Θs 0 (v) + α 2 (s 3 ) p s3,s0 (t) Θs 0 (v) α 3 (s 1 ) = α 2 (s 0 ) p s0,s1 (t) Θs 1 (v) + α 2 (s 1 ) p s1,s1 (t) Θs 1 (v) + α 2 (s 2 ) p s2,s1 (t) Θs 1 (v) + α 2 (s 3 ) p s3,s1 (t) Θs 1 (v) α 3 (s 2 ) = α 2 (s 0 ) p s0,s2 (t) Θs 2 (v) + α 2 (s 1 ) p s1,s2 (t) Θs 2 (v) + α 2 (s 2 ) p s2,s2 (t) Θs 2 (v) + α 2 (s 3 ) p s3,s2 (t) Θs 2 (v) α 3 (s 3 ) = α 2 (s 0 ) p s0,s3 (t) Θs 3 (v) + α 2 (s 1 ) p s1,s3 (t) Θs 3 (v) + α 2 (s 2 ) p s2,s3 (t) Θs 3 (v) + α 2 (s 3 ) p s3,s3 (t) Θs 3 36 (v)

37 Backward Procedure Similar to forward See ALFE

38 Inference: State Es/ma/on P(X t E 1:t ) Which state I am most likely in now? It is the state s i such that α T (i) is the maximal 38

39 Inference: State Predic/on P(X t+k E 1:t ) which state I will be in at /me t+k? Depending on your ac/on during (t, t+k] If you have an non-ac/on, use that informa/on and con/nue compu/ng the future α values. Example/exercise: compute when k=1, k=2, 39

40 Inference: State Smoothing P(X k E 1:t ) which state I was in at /me k (smoothing) It is the state s i such that α k (i) P ij (b k+1 ) θ j (z k+1 ) β k+1 (j) is the maximal This is to say, given /me 1,,k, k+1,...,t (best forward from 1 to k) + (best transi/on from k to k+1) + (best backward to k+1 from t) 40

41 State Explana/on P(X 1:t E 1:t ) what states I have been through (explana/on) They are the following states: t=1: the state s i such that α 1 (i) is the maximal t=2: the state s i such that α 2 (i) is the maximal t=t: the state s i such that α T (i) is the maximal 41

42 Model Learning P(M t E 1:t ) How correct is my model of the world (learning) a er I have my experience We will talk about this a er mid-term 42

43 Homework Given: the Lijle Prince (see slide 18 or 24) His sensor model (you complete the rest) His ac/on model (you complete the rest) Assume he had the following experience Observa/ons: {rose, nothing, volcano, nothing} Ac/ons: {forward, turn, backward, backward} You Compute: P(X 1 E 1 ), P(X 2 E 1:2 ), P(X 3 E 1:3 ), P(X 1:3 E 1:3 ) P(X 4 E 1:3 ) 43

44 Other Models Markov Chains No observa/on, no explicit ac/ons, transit randomly Hidden Markov Model No explicit ac/ons, state transit randomly Con/nuous State Model No explicit ac/ons, States are con/nuous Dynamic Bayesian Networks No explicit ac/ons, States are Bayesian Networks POMDP 44

45 Hidden Markov Models Markov chains not so useful for most agents Eventually you don t know anything anymore Need observa/ons to update your beliefs Hidden Markov models (HMMs) Underlying Markov chain over states S You observe outputs (effects) at each /me step As a Bayes net: Hidden States X 1 X 2 X 3 X 4 X 5 Evidence E 1 E 2 E 3 E 4 E 5 45

46 Rain/Umbrella Example in the Book An HMM is defined by: Ini/al distribu/on: Transi/ons: Emissions (sensor model): 46

47 Ghostbuster HMM P(X 1 ) = uniform P(X X ) = usually move clockwise, but some/mes move in a random direc/on or stay in place P(R ij X) = the same sensor model as before: red means close, green means far away. 1/9 1/9 1/9 1/9 1/9 1/9 1/9 1/9 1/9 P(X 1 ) X 1 X 2 X 3 X 4 1/6 1/6 0 1/6 1/2 0 R i,j R i,j R i,j R i,j P(X X =<1,2>) See ghost Not see ghost 47

48 Condi/onal Independence HMMs have two important independence proper/es: Markov hidden process, future depends only on the present (not past) Current observa/on independent of all else given the current state X 1 X 2 X 3 X 4 E 1 E 2 E 3 E 4 Quiz: does this mean that observa/ons are independent? [No, correlated by the hidden state] 48

49 Real HMM Examples Speech recogni/on HMMs: Observa/ons are acous/c signals (con/nuous valued) States are specific posi/ons in specific words (so, tens of thousands) Machine transla/on HMMs: Observa/ons are words (tens of thousands) States are transla/on op/ons Robot tracking: Observa/ons are range readings (con/nuous/discrete) States are posi/ons on a map (con/nuous/discrete) 49

50 Filtering / Monitoring / Localiza/on Filtering, or monitoring, is the task of tracking the distribu/on P(X) (the belief state) over /me We start with P(X) in an ini/al se ng, usually uniform As /me passes, or we get observa/ons, we update P(X) P(X t E 1:t ) 50

51 Example: Robot Localiza/on P(X t E 1:t ) Example from Michael Pfeiffer State X: Room Prob 0 t=0 (before sensing, all states are equally likely) Sensor model: never more than 1 mistake Mo/on model: may not execute ac/on with small prob. 1 51

52 Example: Robot Localiza/on P(X t E 1:t ) Prob 0 1 t=1 (sensing: no room up or down) 52

53 Example: Robot Localiza/on P(X t E 1:t ) Prob 0 1 t=2 53

54 Example: Robot Localiza/on P(X t E 1:t ) Prob 0 1 t=3 54

55 Example: Robot Localiza/on P(X t E 1:t ) Prob 0 1 t=4 55

56 Example: Robot Localiza/on P(X t E 1:t ) Prob 0 1 t=5 56

57 Filtering Example P(X t E 1:t ) Day 0: P(R 0 )=<0.5,0.5> Day 1 (Umbrella appears è U 1 =true) P(R 1 )=P(r 0 )P(R 1 r 0 ) = α0.5<0.7,0.3> + α0.5<0.3,0.7> = <0.5,0.5> upda/ng with evidence for t=1 gives: P(R 1 u 1 )=αp(u 1 R 1 )P(R 1 )=α<0.9,0.2><0.5,0.5> =α<0.45,0.1> = <0.818,0.182> Day 2 (Umbrella appears è U 2 =true) P(R 2 u 1 )=P(R 2 r 1 ) P(r 1 u 1 ) =α<0.818<0.7,0.3> <0.3,0.7>> = <0.627,0.373> upda/ng with evidence for t=2 gives: P(R 2 u 1,u 2 )=αp(u 2 R 2 )P(R 2 u 1 )=α<0.9,0.2><0.627,0.373> =α<0.565,0.075> = <0.883,0.117> 57

58 Smoothing P(X k E 1:t ) Divide evidence e 1:t into e 1:k, e k+1:t : Using Bayes rule Using condi/onal independence Backward message computed by a backwards recursion: Condi/oning on X k+1 Using condi/onal independence = BACKWARD(b k+2:t,e k+1:t ) b k+1:t =Σ Xt+1 (P(e k+1 x k+1 )P(x k+1 X k ) b k+2:t 58

59 Smoothing Example Compute es/mate for rain at t=1 P(R 1 u 1,u 2 )=αp(r 1 u 1 )P(u 2 R 1 ) P(R 1 u 1 ) = <0.818,0.182> P(u 2 R 1 ) =Σ r2 P(u 2 r 2 ) P( r 2 ) P(r 2 R 1 ) Smoothed estimate: =(0.9 1 <0.7,0.3>) + (0.2 1 <0.3,0.7>) = <0.69,0.41> P(R 1 u 1,u 2 )=α<0.818,0.182> <0.69,0.41> = <0.883,0.117> Forward-backward algorithm: cache forward messages along the way Time linear in t (polytree inference), space O(t j f j ) 59

60 Best Explana/on Queries X 1 X 2 X 3 X 4 X 5 E 1 E 2 E 3 E 4 E 5 Query: most likely seq: 60

61 State Path Trellis State trellis: graph of states and transi/ons over /me sun sun sun sun rain rain rain rain Each arc represents some transi/on Each arc has weight Each path is a sequence of states The product of weights on a path is the seq s probability Can think of the Forward (and now Viterbi) algorithms as compu/ng sums of all paths (best paths) in this graph 61

62 Viterbi Algorithm: choose the best state seq. Similar to slide 18 α t (s t ), but use max not sum sun sun sun sun rain rain rain rain α t (s t ) α t-1 (s t-1 ) 62

63 Viterbi Example

64 Viterbi Example

65 Other Models Markov Chains No observa/on, no explicit ac/ons, transit randomly Hidden Markov Model No explicit ac/ons, state transit randomly Dynamic Bayesian Networks No explicit ac/ons, States are Bayesian Networks Con/nuous State Model No explicit ac/ons, States are con/nuous POMDP 65

66 Dynamic Bayesian Networks {evidence}, ac/on, {evidence},, ac/on,, {evidence}, ac/on, {evidence} S1 S2 S3 S4 S1 S2 S3 S4 S1 S2 S3 S4 S1 S2 S3 S4 Each /me slice is a Bayesian Network with variables and CPTs 66

67 Dynamic Bayes Nets (DBNs) We want to track mul/ple variables over /me, using mul/ple sources of evidence Idea: Repeat a fixed Bayes net structure at each /me Variables from /me t can condi/on on those from t-1 Discrete valued dynamic Bayes nets are also HMMs 67

68 Exact inference in DBNs Variable elimina/on applies to Dynamic Bayesian nets Procedure: unroll the network for T /me steps, then eliminate variables un/l P(X T e 1:T ) is computed Online belief updates: Eliminate all variables from the previous /me step; store factors for current /me only 68

69 Likelihood weigh/ng for DBNs Set of weighted samples approximates the belief state LW samples pay no attention to the evidence! ) fraction agreeing falls exponentially with t ) num. samples required grows exponentially with t 69

70 DBNs vs. HMMs Every HMM is a single-variable DBN; every discrete DBN is an HMM Sparse dependencies ) exponentially fewer parameters; e.g., 20 state variables, three parents each DBN has 20x2 3 =160 parameters, HMM has 2 20 x2 20 ¼

71 Other Models Markov Chains No observa/on, no explicit ac/ons, transit randomly Hidden Markov Model No explicit ac/ons, state transit randomly Dynamic Bayesian Networks No explicit ac/ons, States are Bayesian Networks Con/nuous State Model No explicit ac/ons, States are con/nuous POMDP 71

72 Kalman Filters {evidence}, ac/on, {evidence},, ac/on,, {evidence}, ac/on, {evidence} S1 S2 S3 S4 S1 S2 S3 S4 S1 S2 S3 S4 S1 S2 S3 S4 In each /me slice, state variables are con/nuous (not discrete) 72

73 Summary Temporal models use states, transitions, sensors Transitions may related to agent s actions, or spontaneous Markov assumptions and stationarity assumption, so we need - transition model P(Xt Xt-1) or P(Xt Xt-1, a t-1 ) - sensor model P(Et Xt) Tasks: filtering, prediction, smoothing, most likely seq all done recursively with constant cost per time step Types of models HMM have a single discrete state variable Dynamic Bayes nets subsume HMMs; exact update intractable Other models may have internal structure driven by actions 73

CSE 473: Ar+ficial Intelligence. Probability Recap. Markov Models - II. Condi+onal probability. Product rule. Chain rule.

CSE 473: Ar+ficial Intelligence. Probability Recap. Markov Models - II. Condi+onal probability. Product rule. Chain rule. CSE 473: Ar+ficial Intelligence Markov Models - II Daniel S. Weld - - - University of Washington [Most slides were created by Dan Klein and Pieter Abbeel for CS188 Intro to AI at UC Berkeley. All CS188

More information

CSE 473: Ar+ficial Intelligence

CSE 473: Ar+ficial Intelligence CSE 473: Ar+ficial Intelligence Hidden Markov Models Luke Ze@lemoyer - University of Washington [These slides were created by Dan Klein and Pieter Abbeel for CS188 Intro to AI at UC Berkeley. All CS188

More information

CSE 473: Ar+ficial Intelligence. Example. Par+cle Filters for HMMs. An HMM is defined by: Ini+al distribu+on: Transi+ons: Emissions:

CSE 473: Ar+ficial Intelligence. Example. Par+cle Filters for HMMs. An HMM is defined by: Ini+al distribu+on: Transi+ons: Emissions: CSE 473: Ar+ficial Intelligence Par+cle Filters for HMMs Daniel S. Weld - - - University of Washington [Most slides were created by Dan Klein and Pieter Abbeel for CS188 Intro to AI at UC Berkeley. All

More information

CSCI 360 Introduc/on to Ar/ficial Intelligence Week 2: Problem Solving and Op/miza/on

CSCI 360 Introduc/on to Ar/ficial Intelligence Week 2: Problem Solving and Op/miza/on CSCI 360 Introduc/on to Ar/ficial Intelligence Week 2: Problem Solving and Op/miza/on Professor Wei-Min Shen Week 13.1 and 13.2 1 Status Check Extra credits? Announcement Evalua/on process will start soon

More information

CSE 473: Artificial Intelligence

CSE 473: Artificial Intelligence CSE 473: Artificial Intelligence Hidden Markov Models Dieter Fox --- University of Washington [Most slides were created by Dan Klein and Pieter Abbeel for CS188 Intro to AI at UC Berkeley. All CS188 materials

More information

CS 188: Artificial Intelligence Spring 2009

CS 188: Artificial Intelligence Spring 2009 CS 188: Artificial Intelligence Spring 2009 Lecture 21: Hidden Markov Models 4/7/2009 John DeNero UC Berkeley Slides adapted from Dan Klein Announcements Written 3 deadline extended! Posted last Friday

More information

Announcements. CS 188: Artificial Intelligence Fall Markov Models. Example: Markov Chain. Mini-Forward Algorithm. Example

Announcements. CS 188: Artificial Intelligence Fall Markov Models. Example: Markov Chain. Mini-Forward Algorithm. Example CS 88: Artificial Intelligence Fall 29 Lecture 9: Hidden Markov Models /3/29 Announcements Written 3 is up! Due on /2 (i.e. under two weeks) Project 4 up very soon! Due on /9 (i.e. a little over two weeks)

More information

CS 188: Artificial Intelligence Spring Announcements

CS 188: Artificial Intelligence Spring Announcements CS 188: Artificial Intelligence Spring 2011 Lecture 18: HMMs and Particle Filtering 4/4/2011 Pieter Abbeel --- UC Berkeley Many slides over this course adapted from Dan Klein, Stuart Russell, Andrew Moore

More information

CSE 473: Ar+ficial Intelligence. Hidden Markov Models. Bayes Nets. Two random variable at each +me step Hidden state, X i Observa+on, E i

CSE 473: Ar+ficial Intelligence. Hidden Markov Models. Bayes Nets. Two random variable at each +me step Hidden state, X i Observa+on, E i CSE 473: Ar+ficial Intelligence Bayes Nets Daniel Weld [Most slides were created by Dan Klein and Pieter Abbeel for CS188 Intro to AI at UC Berkeley. All CS188 materials are available at hnp://ai.berkeley.edu.]

More information

CSEP 573: Artificial Intelligence

CSEP 573: Artificial Intelligence CSEP 573: Artificial Intelligence Hidden Markov Models Luke Zettlemoyer Many slides over the course adapted from either Dan Klein, Stuart Russell, Andrew Moore, Ali Farhadi, or Dan Weld 1 Outline Probabilistic

More information

Hidden Markov Models. Hal Daumé III. Computer Science University of Maryland CS 421: Introduction to Artificial Intelligence 19 Apr 2012

Hidden Markov Models. Hal Daumé III. Computer Science University of Maryland CS 421: Introduction to Artificial Intelligence 19 Apr 2012 Hidden Markov Models Hal Daumé III Computer Science University of Maryland me@hal3.name CS 421: Introduction to Artificial Intelligence 19 Apr 2012 Many slides courtesy of Dan Klein, Stuart Russell, or

More information

CS 5522: Artificial Intelligence II

CS 5522: Artificial Intelligence II CS 5522: Artificial Intelligence II Hidden Markov Models Instructor: Wei Xu Ohio State University [These slides were adapted from CS188 Intro to AI at UC Berkeley.] Pacman Sonar (P4) [Demo: Pacman Sonar

More information

Markov Models. CS 188: Artificial Intelligence Fall Example. Mini-Forward Algorithm. Stationary Distributions.

Markov Models. CS 188: Artificial Intelligence Fall Example. Mini-Forward Algorithm. Stationary Distributions. CS 88: Artificial Intelligence Fall 27 Lecture 2: HMMs /6/27 Markov Models A Markov model is a chain-structured BN Each node is identically distributed (stationarity) Value of X at a given time is called

More information

Announcements. CS 188: Artificial Intelligence Fall VPI Example. VPI Properties. Reasoning over Time. Markov Models. Lecture 19: HMMs 11/4/2008

Announcements. CS 188: Artificial Intelligence Fall VPI Example. VPI Properties. Reasoning over Time. Markov Models. Lecture 19: HMMs 11/4/2008 CS 88: Artificial Intelligence Fall 28 Lecture 9: HMMs /4/28 Announcements Midterm solutions up, submit regrade requests within a week Midterm course evaluation up on web, please fill out! Dan Klein UC

More information

Markov Chains and Hidden Markov Models

Markov Chains and Hidden Markov Models Markov Chains and Hidden Markov Models CE417: Introduction to Artificial Intelligence Sharif University of Technology Spring 2018 Soleymani Slides are based on Klein and Abdeel, CS188, UC Berkeley. Reasoning

More information

CS 5522: Artificial Intelligence II

CS 5522: Artificial Intelligence II CS 5522: Artificial Intelligence II Hidden Markov Models Instructor: Alan Ritter Ohio State University [These slides were adapted from CS188 Intro to AI at UC Berkeley. All materials available at http://ai.berkeley.edu.]

More information

Hidden Markov Models. AIMA Chapter 15, Sections 1 5. AIMA Chapter 15, Sections 1 5 1

Hidden Markov Models. AIMA Chapter 15, Sections 1 5. AIMA Chapter 15, Sections 1 5 1 Hidden Markov Models AIMA Chapter 15, Sections 1 5 AIMA Chapter 15, Sections 1 5 1 Consider a target tracking problem Time and uncertainty X t = set of unobservable state variables at time t e.g., Position

More information

PROBABILISTIC REASONING OVER TIME

PROBABILISTIC REASONING OVER TIME PROBABILISTIC REASONING OVER TIME In which we try to interpret the present, understand the past, and perhaps predict the future, even when very little is crystal clear. Outline Time and uncertainty Inference:

More information

Hidden Markov models 1

Hidden Markov models 1 Hidden Markov models 1 Outline Time and uncertainty Markov process Hidden Markov models Inference: filtering, prediction, smoothing Most likely explanation: Viterbi 2 Time and uncertainty The world changes;

More information

CS 343: Artificial Intelligence

CS 343: Artificial Intelligence CS 343: Artificial Intelligence Hidden Markov Models Prof. Scott Niekum The University of Texas at Austin [These slides based on those of Dan Klein and Pieter Abbeel for CS188 Intro to AI at UC Berkeley.

More information

Approximate Inference

Approximate Inference Approximate Inference Simulation has a name: sampling Sampling is a hot topic in machine learning, and it s really simple Basic idea: Draw N samples from a sampling distribution S Compute an approximate

More information

CSE 473: Artificial Intelligence Spring 2014

CSE 473: Artificial Intelligence Spring 2014 CSE 473: Artificial Intelligence Spring 2014 Hidden Markov Models Hanna Hajishirzi Many slides adapted from Dan Weld, Pieter Abbeel, Dan Klein, Stuart Russell, Andrew Moore & Luke Zettlemoyer 1 Outline

More information

Temporal probability models. Chapter 15, Sections 1 5 1

Temporal probability models. Chapter 15, Sections 1 5 1 Temporal probability models Chapter 15, Sections 1 5 Chapter 15, Sections 1 5 1 Outline Time and uncertainty Inference: filtering, prediction, smoothing Hidden Markov models Kalman filters (a brief mention)

More information

CS 343: Artificial Intelligence

CS 343: Artificial Intelligence CS 343: Artificial Intelligence Particle Filters and Applications of HMMs Prof. Scott Niekum The University of Texas at Austin [These slides based on those of Dan Klein and Pieter Abbeel for CS188 Intro

More information

Hidden Markov Models. Vibhav Gogate The University of Texas at Dallas

Hidden Markov Models. Vibhav Gogate The University of Texas at Dallas Hidden Markov Models Vibhav Gogate The University of Texas at Dallas Intro to AI (CS 4365) Many slides over the course adapted from either Dan Klein, Luke Zettlemoyer, Stuart Russell or Andrew Moore 1

More information

CS 5522: Artificial Intelligence II

CS 5522: Artificial Intelligence II CS 5522: Artificial Intelligence II Particle Filters and Applications of HMMs Instructor: Wei Xu Ohio State University [These slides were adapted from CS188 Intro to AI at UC Berkeley.] Recap: Reasoning

More information

Temporal probability models. Chapter 15

Temporal probability models. Chapter 15 Temporal probability models Chapter 15 Outline Time and uncertainty Inference: filtering, prediction, smoothing Hidden Markov models Kalman filters (a brief mention) Dynamic Bayesian networks Particle

More information

CS 343: Artificial Intelligence

CS 343: Artificial Intelligence CS 343: Artificial Intelligence Particle Filters and Applications of HMMs Prof. Scott Niekum The University of Texas at Austin [These slides based on those of Dan Klein and Pieter Abbeel for CS188 Intro

More information

CS 5522: Artificial Intelligence II

CS 5522: Artificial Intelligence II CS 5522: Artificial Intelligence II Particle Filters and Applications of HMMs Instructor: Alan Ritter Ohio State University [These slides were adapted from CS188 Intro to AI at UC Berkeley. All materials

More information

Probability, Markov models and HMMs. Vibhav Gogate The University of Texas at Dallas

Probability, Markov models and HMMs. Vibhav Gogate The University of Texas at Dallas Probability, Markov models and HMMs Vibhav Gogate The University of Texas at Dallas CS 6364 Many slides over the course adapted from either Dan Klein, Luke Zettlemoyer, Stuart Russell and Andrew Moore

More information

Outline. CSE 573: Artificial Intelligence Autumn Agent. Partial Observability. Markov Decision Process (MDP) 10/31/2012

Outline. CSE 573: Artificial Intelligence Autumn Agent. Partial Observability. Markov Decision Process (MDP) 10/31/2012 CSE 573: Artificial Intelligence Autumn 2012 Reasoning about Uncertainty & Hidden Markov Models Daniel Weld Many slides adapted from Dan Klein, Stuart Russell, Andrew Moore & Luke Zettlemoyer 1 Outline

More information

CS 188: Artificial Intelligence Fall Recap: Inference Example

CS 188: Artificial Intelligence Fall Recap: Inference Example CS 188: Artificial Intelligence Fall 2007 Lecture 19: Decision Diagrams 11/01/2007 Dan Klein UC Berkeley Recap: Inference Example Find P( F=bad) Restrict all factors P() P(F=bad ) P() 0.7 0.3 eather 0.7

More information

CS 7180: Behavioral Modeling and Decision- making in AI

CS 7180: Behavioral Modeling and Decision- making in AI CS 7180: Behavioral Modeling and Decision- making in AI Hidden Markov Models Prof. Amy Sliva October 26, 2012 Par?ally observable temporal domains POMDPs represented uncertainty about the state Belief

More information

CS 188: Artificial Intelligence

CS 188: Artificial Intelligence CS 188: Artificial Intelligence Hidden Markov Models Instructor: Anca Dragan --- University of California, Berkeley [These slides were created by Dan Klein, Pieter Abbeel, and Anca. http://ai.berkeley.edu.]

More information

Hidden Markov Models (recap BNs)

Hidden Markov Models (recap BNs) Probabilistic reasoning over time - Hidden Markov Models (recap BNs) Applied artificial intelligence (EDA132) Lecture 10 2016-02-17 Elin A. Topp Material based on course book, chapter 15 1 A robot s view

More information

CS532, Winter 2010 Hidden Markov Models

CS532, Winter 2010 Hidden Markov Models CS532, Winter 2010 Hidden Markov Models Dr. Alan Fern, afern@eecs.oregonstate.edu March 8, 2010 1 Hidden Markov Models The world is dynamic and evolves over time. An intelligent agent in such a world needs

More information

Mini-project 2 (really) due today! Turn in a printout of your work at the end of the class

Mini-project 2 (really) due today! Turn in a printout of your work at the end of the class Administrivia Mini-project 2 (really) due today Turn in a printout of your work at the end of the class Project presentations April 23 (Thursday next week) and 28 (Tuesday the week after) Order will be

More information

Bayesian Networks BY: MOHAMAD ALSABBAGH

Bayesian Networks BY: MOHAMAD ALSABBAGH Bayesian Networks BY: MOHAMAD ALSABBAGH Outlines Introduction Bayes Rule Bayesian Networks (BN) Representation Size of a Bayesian Network Inference via BN BN Learning Dynamic BN Introduction Conditional

More information

Sta$s$cal sequence recogni$on

Sta$s$cal sequence recogni$on Sta$s$cal sequence recogni$on Determinis$c sequence recogni$on Last $me, temporal integra$on of local distances via DP Integrates local matches over $me Normalizes $me varia$ons For cts speech, segments

More information

Hidden Markov Models. Aarti Singh Slides courtesy: Eric Xing. Machine Learning / Nov 8, 2010

Hidden Markov Models. Aarti Singh Slides courtesy: Eric Xing. Machine Learning / Nov 8, 2010 Hidden Markov Models Aarti Singh Slides courtesy: Eric Xing Machine Learning 10-701/15-781 Nov 8, 2010 i.i.d to sequential data So far we assumed independent, identically distributed data Sequential data

More information

CSE 473: Artificial Intelligence Probability Review à Markov Models. Outline

CSE 473: Artificial Intelligence Probability Review à Markov Models. Outline CSE 473: Artificial Intelligence Probability Review à Markov Models Daniel Weld University of Washington [These slides were created by Dan Klein and Pieter Abbeel for CS188 Intro to AI at UC Berkeley.

More information

Reasoning Under Uncertainty Over Time. CS 486/686: Introduction to Artificial Intelligence

Reasoning Under Uncertainty Over Time. CS 486/686: Introduction to Artificial Intelligence Reasoning Under Uncertainty Over Time CS 486/686: Introduction to Artificial Intelligence 1 Outline Reasoning under uncertainty over time Hidden Markov Models Dynamic Bayes Nets 2 Introduction So far we

More information

Introduction to Artificial Intelligence (AI)

Introduction to Artificial Intelligence (AI) Introduction to Artificial Intelligence (AI) Computer Science cpsc502, Lecture 9 Oct, 11, 2011 Slide credit Approx. Inference : S. Thrun, P, Norvig, D. Klein CPSC 502, Lecture 9 Slide 1 Today Oct 11 Bayesian

More information

Introduc)on to Ar)ficial Intelligence

Introduc)on to Ar)ficial Intelligence Introduc)on to Ar)ficial Intelligence Lecture 10 Probability CS/CNS/EE 154 Andreas Krause Announcements! Milestone due Nov 3. Please submit code to TAs! Grading: PacMan! Compiles?! Correct? (Will clear

More information

Markov Models and Hidden Markov Models

Markov Models and Hidden Markov Models Markov Models and Hidden Markov Models Robert Platt Northeastern University Some images and slides are used from: 1. CS188 UC Berkeley 2. RN, AIMA Markov Models We have already seen that an MDP provides

More information

Bayesian networks Lecture 18. David Sontag New York University

Bayesian networks Lecture 18. David Sontag New York University Bayesian networks Lecture 18 David Sontag New York University Outline for today Modeling sequen&al data (e.g., =me series, speech processing) using hidden Markov models (HMMs) Bayesian networks Independence

More information

Hidden Markov Models. By Parisa Abedi. Slides courtesy: Eric Xing

Hidden Markov Models. By Parisa Abedi. Slides courtesy: Eric Xing Hidden Markov Models By Parisa Abedi Slides courtesy: Eric Xing i.i.d to sequential data So far we assumed independent, identically distributed data Sequential (non i.i.d.) data Time-series data E.g. Speech

More information

Probability. CS 3793/5233 Artificial Intelligence Probability 1

Probability. CS 3793/5233 Artificial Intelligence Probability 1 CS 3793/5233 Artificial Intelligence 1 Motivation Motivation Random Variables Semantics Dice Example Joint Dist. Ex. Axioms Agents don t have complete knowledge about the world. Agents need to make decisions

More information

Introduction to Machine Learning CMU-10701

Introduction to Machine Learning CMU-10701 Introduction to Machine Learning CMU-10701 Hidden Markov Models Barnabás Póczos & Aarti Singh Slides courtesy: Eric Xing i.i.d to sequential data So far we assumed independent, identically distributed

More information

CS 188: Artificial Intelligence Fall 2011

CS 188: Artificial Intelligence Fall 2011 CS 188: Artificial Intelligence Fall 2011 Lecture 20: HMMs / Speech / ML 11/8/2011 Dan Klein UC Berkeley Today HMMs Demo bonanza! Most likely explanation queries Speech recognition A massive HMM! Details

More information

Human-Oriented Robotics. Temporal Reasoning. Kai Arras Social Robotics Lab, University of Freiburg

Human-Oriented Robotics. Temporal Reasoning. Kai Arras Social Robotics Lab, University of Freiburg Temporal Reasoning Kai Arras, University of Freiburg 1 Temporal Reasoning Contents Introduction Temporal Reasoning Hidden Markov Models Linear Dynamical Systems (LDS) Kalman Filter 2 Temporal Reasoning

More information

Machine Learning & Data Mining CS/CNS/EE 155. Lecture 11: Hidden Markov Models

Machine Learning & Data Mining CS/CNS/EE 155. Lecture 11: Hidden Markov Models Machine Learning & Data Mining CS/CNS/EE 155 Lecture 11: Hidden Markov Models 1 Kaggle Compe==on Part 1 2 Kaggle Compe==on Part 2 3 Announcements Updated Kaggle Report Due Date: 9pm on Monday Feb 13 th

More information

Hidden Markov Models,99,100! Markov, here I come!

Hidden Markov Models,99,100! Markov, here I come! Hidden Markov Models,99,100! Markov, here I come! 16.410/413 Principles of Autonomy and Decision-Making Pedro Santana (psantana@mit.edu) October 7 th, 2015. Based on material by Brian Williams and Emilio

More information

Graphical Models. Lecture 1: Mo4va4on and Founda4ons. Andrew McCallum

Graphical Models. Lecture 1: Mo4va4on and Founda4ons. Andrew McCallum Graphical Models Lecture 1: Mo4va4on and Founda4ons Andrew McCallum mccallum@cs.umass.edu Thanks to Noah Smith and Carlos Guestrin for some slide materials. Board work Expert systems the desire for probability

More information

Extensions of Bayesian Networks. Outline. Bayesian Network. Reasoning under Uncertainty. Features of Bayesian Networks.

Extensions of Bayesian Networks. Outline. Bayesian Network. Reasoning under Uncertainty. Features of Bayesian Networks. Extensions of Bayesian Networks Outline Ethan Howe, James Lenfestey, Tom Temple Intro to Dynamic Bayesian Nets (Tom Exact inference in DBNs with demo (Ethan Approximate inference and learning (Tom Probabilistic

More information

Machine Learning & Data Mining CS/CNS/EE 155. Lecture 8: Hidden Markov Models

Machine Learning & Data Mining CS/CNS/EE 155. Lecture 8: Hidden Markov Models Machine Learning & Data Mining CS/CNS/EE 155 Lecture 8: Hidden Markov Models 1 x = Fish Sleep y = (N, V) Sequence Predic=on (POS Tagging) x = The Dog Ate My Homework y = (D, N, V, D, N) x = The Fox Jumped

More information

CS 188: Artificial Intelligence. Our Status in CS188

CS 188: Artificial Intelligence. Our Status in CS188 CS 188: Artificial Intelligence Probability Pieter Abbeel UC Berkeley Many slides adapted from Dan Klein. 1 Our Status in CS188 We re done with Part I Search and Planning! Part II: Probabilistic Reasoning

More information

Introduction to Artificial Intelligence (AI)

Introduction to Artificial Intelligence (AI) Introduction to Artificial Intelligence (AI) Computer Science cpsc502, Lecture 10 Oct, 13, 2011 CPSC 502, Lecture 10 Slide 1 Today Oct 13 Inference in HMMs More on Robot Localization CPSC 502, Lecture

More information

Our Status in CSE 5522

Our Status in CSE 5522 Our Status in CSE 5522 We re done with Part I Search and Planning! Part II: Probabilistic Reasoning Diagnosis Speech recognition Tracking objects Robot mapping Genetics Error correcting codes lots more!

More information

Machine Learning for Data Science (CS4786) Lecture 19

Machine Learning for Data Science (CS4786) Lecture 19 Machine Learning for Data Science (CS4786) Lecture 19 Hidden Markov Models Course Webpage : http://www.cs.cornell.edu/courses/cs4786/2017fa/ Quiz Quiz Two variables can be marginally independent but not

More information

Artificial Intelligence

Artificial Intelligence Artificial Intelligence Roman Barták Department of Theoretical Computer Science and Mathematical Logic Summary of last lecture We know how to do probabilistic reasoning over time transition model P(X t

More information

Intelligent Systems (AI-2)

Intelligent Systems (AI-2) Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 11 Oct, 3, 2016 CPSC 422, Lecture 11 Slide 1 422 big picture: Where are we? Query Planning Deterministic Logics First Order Logics Ontologies

More information

Dynamic Bayesian Networks and Hidden Markov Models Decision Trees

Dynamic Bayesian Networks and Hidden Markov Models Decision Trees Lecture 11 Dynamic Bayesian Networks and Hidden Markov Models Decision Trees Marco Chiarandini Deptartment of Mathematics & Computer Science University of Southern Denmark Slides by Stuart Russell and

More information

Hidden Markov Models

Hidden Markov Models Hidden Markov Models CI/CI(CS) UE, SS 2015 Christian Knoll Signal Processing and Speech Communication Laboratory Graz University of Technology June 23, 2015 CI/CI(CS) SS 2015 June 23, 2015 Slide 1/26 Content

More information

Announcements. CS 188: Artificial Intelligence Fall Causality? Example: Traffic. Topology Limits Distributions. Example: Reverse Traffic

Announcements. CS 188: Artificial Intelligence Fall Causality? Example: Traffic. Topology Limits Distributions. Example: Reverse Traffic CS 188: Artificial Intelligence Fall 2008 Lecture 16: Bayes Nets III 10/23/2008 Announcements Midterms graded, up on glookup, back Tuesday W4 also graded, back in sections / box Past homeworks in return

More information

CS188 Outline. We re done with Part I: Search and Planning! Part II: Probabilistic Reasoning. Part III: Machine Learning

CS188 Outline. We re done with Part I: Search and Planning! Part II: Probabilistic Reasoning. Part III: Machine Learning CS188 Outline We re done with Part I: Search and Planning! Part II: Probabilistic Reasoning Diagnosis Speech recognition Tracking objects Robot mapping Genetics Error correcting codes lots more! Part III:

More information

Intelligent Systems (AI-2)

Intelligent Systems (AI-2) Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 19 Oct, 23, 2015 Slide Sources Raymond J. Mooney University of Texas at Austin D. Koller, Stanford CS - Probabilistic Graphical Models D. Page,

More information

Introduction to Mobile Robotics Probabilistic Robotics

Introduction to Mobile Robotics Probabilistic Robotics Introduction to Mobile Robotics Probabilistic Robotics Wolfram Burgard 1 Probabilistic Robotics Key idea: Explicit representation of uncertainty (using the calculus of probability theory) Perception Action

More information

Advanced Data Science

Advanced Data Science Advanced Data Science Dr. Kira Radinsky Slides Adapted from Tom M. Mitchell Agenda Topics Covered: Time series data Markov Models Hidden Markov Models Dynamic Bayes Nets Additional Reading: Bishop: Chapter

More information

DART Tutorial Sec'on 1: Filtering For a One Variable System

DART Tutorial Sec'on 1: Filtering For a One Variable System DART Tutorial Sec'on 1: Filtering For a One Variable System UCAR The Na'onal Center for Atmospheric Research is sponsored by the Na'onal Science Founda'on. Any opinions, findings and conclusions or recommenda'ons

More information

Markov localization uses an explicit, discrete representation for the probability of all position in the state space.

Markov localization uses an explicit, discrete representation for the probability of all position in the state space. Markov Kalman Filter Localization Markov localization localization starting from any unknown position recovers from ambiguous situation. However, to update the probability of all positions within the whole

More information

Final Exam December 12, 2017

Final Exam December 12, 2017 Introduction to Artificial Intelligence CSE 473, Autumn 2017 Dieter Fox Final Exam December 12, 2017 Directions This exam has 7 problems with 111 points shown in the table below, and you have 110 minutes

More information

Intelligent Systems (AI-2)

Intelligent Systems (AI-2) Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 19 Oct, 24, 2016 Slide Sources Raymond J. Mooney University of Texas at Austin D. Koller, Stanford CS - Probabilistic Graphical Models D. Page,

More information

CS 188: Artificial Intelligence Spring Announcements

CS 188: Artificial Intelligence Spring Announcements CS 188: Artificial Intelligence Spring 2011 Lecture 12: Probability 3/2/2011 Pieter Abbeel UC Berkeley Many slides adapted from Dan Klein. 1 Announcements P3 due on Monday (3/7) at 4:59pm W3 going out

More information

CS 343: Artificial Intelligence

CS 343: Artificial Intelligence CS 343: Artificial Intelligence Bayes Nets: Sampling Prof. Scott Niekum The University of Texas at Austin [These slides based on those of Dan Klein and Pieter Abbeel for CS188 Intro to AI at UC Berkeley.

More information

CSE 473: Artificial Intelligence

CSE 473: Artificial Intelligence CSE 473: Artificial Intelligence Probability Steve Tanimoto University of Washington [These slides were created by Dan Klein and Pieter Abbeel for CS188 Intro to AI at UC Berkeley. All CS188 materials

More information

Introduc)on to Ar)ficial Intelligence

Introduc)on to Ar)ficial Intelligence Introduc)on to Ar)ficial Intelligence Lecture 13 Approximate Inference CS/CNS/EE 154 Andreas Krause Bayesian networks! Compact representa)on of distribu)ons over large number of variables! (OQen) allows

More information

Temporal Models.

Temporal Models. Temporal Models www.cs.wisc.edu/~page/cs760/ Goals for the lecture (with thanks to Irene Ong, Stuart Russell and Peter Norvig, Jakob Rasmussen, Jeremy Weiss, Yujia Bao, Charles Kuang, Peggy Peissig, and

More information

CS188 Outline. CS 188: Artificial Intelligence. Today. Inference in Ghostbusters. Probability. We re done with Part I: Search and Planning!

CS188 Outline. CS 188: Artificial Intelligence. Today. Inference in Ghostbusters. Probability. We re done with Part I: Search and Planning! CS188 Outline We re done with art I: Search and lanning! CS 188: Artificial Intelligence robability art II: robabilistic Reasoning Diagnosis Speech recognition Tracking objects Robot mapping Genetics Error

More information

Our Status. We re done with Part I Search and Planning!

Our Status. We re done with Part I Search and Planning! Probability [These slides were created by Dan Klein and Pieter Abbeel for CS188 Intro to AI at UC Berkeley. All CS188 materials are available at http://ai.berkeley.edu.] Our Status We re done with Part

More information

CS 188: Artificial Intelligence Fall 2009

CS 188: Artificial Intelligence Fall 2009 CS 188: Artificial Intelligence Fall 2009 Lecture 14: Bayes Nets 10/13/2009 Dan Klein UC Berkeley Announcements Assignments P3 due yesterday W2 due Thursday W1 returned in front (after lecture) Midterm

More information

Hidden Markov Model. Ying Wu. Electrical Engineering and Computer Science Northwestern University Evanston, IL 60208

Hidden Markov Model. Ying Wu. Electrical Engineering and Computer Science Northwestern University Evanston, IL 60208 Hidden Markov Model Ying Wu Electrical Engineering and Computer Science Northwestern University Evanston, IL 60208 http://www.eecs.northwestern.edu/~yingwu 1/19 Outline Example: Hidden Coin Tossing Hidden

More information

Hidden Markov Models. George Konidaris

Hidden Markov Models. George Konidaris Hidden Markov Models George Konidaris gdk@cs.brown.edu Fall 2018 Recall: Bayesian Network Flu Allergy Sinus Nose Headache Recall: BN Flu Allergy Flu P True 0.6 False 0.4 Sinus Allergy P True 0.2 False

More information

CS 6140: Machine Learning Spring What We Learned Last Week 2/26/16

CS 6140: Machine Learning Spring What We Learned Last Week 2/26/16 Logis@cs CS 6140: Machine Learning Spring 2016 Instructor: Lu Wang College of Computer and Informa@on Science Northeastern University Webpage: www.ccs.neu.edu/home/luwang Email: luwang@ccs.neu.edu Sign

More information

CS 6140: Machine Learning Spring What We Learned Last Week. Survey 2/26/16. VS. Model

CS 6140: Machine Learning Spring What We Learned Last Week. Survey 2/26/16. VS. Model Logis@cs CS 6140: Machine Learning Spring 2016 Instructor: Lu Wang College of Computer and Informa@on Science Northeastern University Webpage: www.ccs.neu.edu/home/luwang Email: luwang@ccs.neu.edu Assignment

More information

CS 6140: Machine Learning Spring 2016

CS 6140: Machine Learning Spring 2016 CS 6140: Machine Learning Spring 2016 Instructor: Lu Wang College of Computer and Informa?on Science Northeastern University Webpage: www.ccs.neu.edu/home/luwang Email: luwang@ccs.neu.edu Logis?cs Assignment

More information

Linear Dynamical Systems

Linear Dynamical Systems Linear Dynamical Systems Sargur N. srihari@cedar.buffalo.edu Machine Learning Course: http://www.cedar.buffalo.edu/~srihari/cse574/index.html Two Models Described by Same Graph Latent variables Observations

More information

Par$cle Filters Part I: Theory. Peter Jan van Leeuwen Data- Assimila$on Research Centre DARC University of Reading

Par$cle Filters Part I: Theory. Peter Jan van Leeuwen Data- Assimila$on Research Centre DARC University of Reading Par$cle Filters Part I: Theory Peter Jan van Leeuwen Data- Assimila$on Research Centre DARC University of Reading Reading July 2013 Why Data Assimila$on Predic$on Model improvement: - Parameter es$ma$on

More information

Course Overview. Summary. Performance of approximation algorithms

Course Overview. Summary. Performance of approximation algorithms Course Overview Lecture 11 Dynamic ayesian Networks and Hidden Markov Models Decision Trees Marco Chiarandini Deptartment of Mathematics & Computer Science University of Southern Denmark Slides by Stuart

More information

CS 188: Artificial Intelligence. Bayes Nets

CS 188: Artificial Intelligence. Bayes Nets CS 188: Artificial Intelligence Probabilistic Inference: Enumeration, Variable Elimination, Sampling Pieter Abbeel UC Berkeley Many slides over this course adapted from Dan Klein, Stuart Russell, Andrew

More information

We Live in Exciting Times. CSCI-567: Machine Learning (Spring 2019) Outline. Outline. ACM (an international computing research society) has named

We Live in Exciting Times. CSCI-567: Machine Learning (Spring 2019) Outline. Outline. ACM (an international computing research society) has named We Live in Exciting Times ACM (an international computing research society) has named CSCI-567: Machine Learning (Spring 2019) Prof. Victor Adamchik U of Southern California Apr. 2, 2019 Yoshua Bengio,

More information

Bayesian Methods in Artificial Intelligence

Bayesian Methods in Artificial Intelligence WDS'10 Proceedings of Contributed Papers, Part I, 25 30, 2010. ISBN 978-80-7378-139-2 MATFYZPRESS Bayesian Methods in Artificial Intelligence M. Kukačka Charles University, Faculty of Mathematics and Physics,

More information

Machine Learning for OR & FE

Machine Learning for OR & FE Machine Learning for OR & FE Hidden Markov Models Martin Haugh Department of Industrial Engineering and Operations Research Columbia University Email: martin.b.haugh@gmail.com Additional References: David

More information

CSCI 360 Introduc/on to Ar/ficial Intelligence Week 2: Problem Solving and Op/miza/on. Instructor: Wei-Min Shen

CSCI 360 Introduc/on to Ar/ficial Intelligence Week 2: Problem Solving and Op/miza/on. Instructor: Wei-Min Shen CSCI 360 Introduc/on to Ar/ficial Intelligence Week 2: Problem Solving and Op/miza/on Instructor: Wei-Min Shen Today s Lecture Search Techniques (review & con/nue) Op/miza/on Techniques Home Work 1: descrip/on

More information

Supervised Learning Hidden Markov Models. Some of these slides were inspired by the tutorials of Andrew Moore

Supervised Learning Hidden Markov Models. Some of these slides were inspired by the tutorials of Andrew Moore Supervised Learning Hidden Markov Models Some of these slides were inspired by the tutorials of Andrew Moore A Markov System S 2 Has N states, called s 1, s 2.. s N There are discrete timesteps, t=0, t=1,.

More information

Hidden Markov models

Hidden Markov models Hidden Markov models Charles Elkan November 26, 2012 Important: These lecture notes are based on notes written by Lawrence Saul. Also, these typeset notes lack illustrations. See the classroom lectures

More information

Computa(on of Similarity Similarity Search as Computa(on. Stoyan Mihov and Klaus U. Schulz

Computa(on of Similarity Similarity Search as Computa(on. Stoyan Mihov and Klaus U. Schulz Computa(on of Similarity Similarity Search as Computa(on Stoyan Mihov and Klaus U. Schulz Roadmap What is similarity computa(on? NLP examples of similarity computa(on Machine transla(on Speech recogni(on

More information

CS 7180: Behavioral Modeling and Decision- making in AI

CS 7180: Behavioral Modeling and Decision- making in AI CS 7180: Behavioral Modeling and Decision- making in AI Learning Probabilistic Graphical Models Prof. Amy Sliva October 31, 2012 Hidden Markov model Stochastic system represented by three matrices N =

More information

Bayes Nets: Sampling

Bayes Nets: Sampling Bayes Nets: Sampling [These slides were created by Dan Klein and Pieter Abbeel for CS188 Intro to AI at UC Berkeley. All CS188 materials are available at http://ai.berkeley.edu.] Approximate Inference:

More information

Announcements. Inference. Mid-term. Inference by Enumeration. Reminder: Alarm Network. Introduction to Artificial Intelligence. V22.

Announcements. Inference. Mid-term. Inference by Enumeration. Reminder: Alarm Network. Introduction to Artificial Intelligence. V22. Introduction to Artificial Intelligence V22.0472-001 Fall 2009 Lecture 15: Bayes Nets 3 Midterms graded Assignment 2 graded Announcements Rob Fergus Dept of Computer Science, Courant Institute, NYU Slides

More information