DOC PREVIEW
Berkeley COMPSCI 188 - HMMs II

This preview shows page 1-2-3-4-5-6 out of 19 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 19 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 19 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 19 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 19 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 19 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 19 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 19 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

CS 188: Artificial Intelligence Fall 2008AnnouncementsRecap: Some Simple CasesHidden Markov ModelsBattleship HMMPassage of TimeExample: Passage of TimeObservationExample: ObservationExample HMMSlide 11The Forward AlgorithmBelief UpdatesParticle FilteringParticle Filtering: TimeParticle Filtering: ObservationParticle Filtering: ResamplingRobot LocalizationSLAMCS 188: Artificial IntelligenceFall 2008Lecture 19: HMMs II11/6/2008Dan Klein – UC Berkeley1AnnouncementsMidterm solutions up, regrade requests by 11/13Midterm evaluation up, please fill out!P5 up, due 11/19No section next week2Recap: Some Simple CasesE1X1X2X1QueriesModelsX2X1Hidden Markov ModelsAn HMM isInitial distribution:Transitions:Emissions:X5X2E1X1X3X4E2E3E4E5Battleship HMMP(X1) = uniformP(X|X’) = usually move according to fixed, known patrol policy (e.g. clockwise), sometimes move in a random direction or stay in placeP(Rij|X) = as before: depends on distance from ships in x to (i,j) (really this is just one of many independent evidence variables that might be sensed)1/9 1/91/9 1/91/91/91/9 1/9 1/9P(X1)P(X|X’=<1,2>)1/6 1/60 1/61/200 0 0X5X2Ri,jX1X3X4Ri,jRi,jRi,jE5Passage of TimeAssume we have current belief P(X | evidence to date)Then, after one time step passes:Or, compactly:Basic idea: beliefs get “pushed” through the transitionsWith the “B” notation, we have to be careful about what time step t the belief is about, and what evidence it includesX2X1Example: Passage of TimeAs time passes, uncertainty “accumulates”T = 1 T = 2 T = 5Transition model: ships usually go clockwiseObservationAssume we have current belief P(X | previous evidence):Then:Or:Basic idea: beliefs reweighted by likelihood of evidenceUnlike passage of time, we have to renormalizeE1X1Example: ObservationAs we get observations, beliefs get reweighted, uncertainty “decreases”Before observation After observationExample HMMExample HMMS SESEThe Forward AlgorithmWe are given evidence at each time and want to knowWe can derive the following updatesWe can normalize as we go if we want to have P(x|e) at each time step, or just once at the end…Belief UpdatesEvery time step, we start with current P(X | evidence)We update for time:We update for evidence:The forward algorithm does both at once (and doesn’t normalize)Problem: space is |X| and time is |X|2 per time stepX2E1X1X2E1X1E2Particle FilteringSometimes |X| is too big to use exact inference|X| may be too big to even store B(X)E.g. X is continuous|X|2 may be too big to do updatesSolution: approximate inferenceTrack samples of X, not all valuesTime per step is linear in the number of samplesBut: number needed may be largeThis is how robot localization works in practice0.0 0.10.0 0.00.00.20.0 0.2 0.5Particle Filtering: TimeEach particle is moved by sampling its next position from the transition modelThis is like prior sampling – samples’ frequencies reflect the transition probsHere, most samples move clockwise, but some move in another direction or stay in placeThis captures the passage of timeIf we have enough samples, close to the exact values before and after (consistent)Particle Filtering: ObservationSlightly trickier:We don’t sample the observation, we fix itThis is similar to likelihood weighting, so we downweight our samples based on the evidenceNote that, as before, the probabilities don’t sum to one, since most have been downweighted (in fact they sum to an approximation of P(e))Particle Filtering: ResamplingRather than tracking weighted samples, we resampleN times, we choose from our weighted sample distribution (i.e. draw with replacement)This is equivalent to renormalizing the distributionNow the update is complete for this time step, continue with the next oneRobot LocalizationIn robot localization:We know the map, but not the robot’s positionObservations may be vectors of range finder readingsState space and readings are typically continuous (works basically like a very fine grid) and so we cannot store B(X)Particle filtering is a main technique[DEMOS]SLAMSLAM = Simultaneous Localization And MappingWe do not know the map or our locationOur belief state is over maps and positions!Main techniques: Kalman filtering (Gaussian HMMs) and particle methods[DEMOS]DP-SLAM, Ron


View Full Document

Berkeley COMPSCI 188 - HMMs II

Documents in this Course
CSP

CSP

42 pages

Metrics

Metrics

4 pages

NLP

NLP

23 pages

Midterm

Midterm

9 pages

Agents

Agents

8 pages

Lecture 4

Lecture 4

53 pages

CSPs

CSPs

16 pages

Midterm

Midterm

6 pages

MDPs

MDPs

20 pages

mdps

mdps

2 pages

Games II

Games II

18 pages

Load more
Download HMMs II
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view HMMs II and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view HMMs II 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?