1 / 28

Uncertainty in Sensing (and action)

Uncertainty in Sensing (and action). Agenda. Planning with belief states Nondeterministic sensing uncertainty Probabilistic sensing uncertainty. Belief State.

josiah
Télécharger la présentation

Uncertainty in Sensing (and action)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Uncertainty inSensing (and action)

  2. Agenda • Planning with belief states • Nondeterministic sensing uncertainty • Probabilistic sensing uncertainty

  3. Belief State • A belief state is the set of all states that an agent think are possible at any given time or at any stage of planning a course of actions, e.g.: • To plan a course of actions, the agent searches a space of belief states, instead of a space of states

  4. Sensor Model (definition #1) • State space S • The sensor model is a function SENSE: S  2Sthat maps each state s  S to a belief state (the set of all states that the agent would think possible if it were actually observing state s) • Example: Assume our vacuum robot can perfectly sense the room it is in and if there is dust in it. But it can’t sense if there is dust in the other room SENSE( ) = SENSE( ) =

  5. Sensor Model (definition #2) • State space S, percept space P • The sensor model is a function SENSE: S  Pthat maps each state s  S to a percept (the percept that the agent would obtain if actually observing state s) • We can then define the set of states consistent with the observation P CONSISTENT(P) = { s if SENSE(s)=P } SENSE( ) = ? ? CONSISTENT( ) =

  6. Right Appl if sIn(R1) {s1= s - In(R1) + In(R2), s2= s}[Rightdoes either the right thing, or nothing] Left Appl ifsIn(R2) {s1= s - In(R2) + In(R1), s2= s - In(R2) + In(R1) - Clean(R2)} [Leftalways move the robot to R1, but it may occasionally deposit dust in R2] • The robot perfectly senses the room it is in and whether there is dust in it • But it can’t sense if there is dust in the other room Suck(r) ApplsIn(r) {s1= s+Clean(r)}[Suck always does the right thing] Vacuum Robot Action and Sensor Model State s : any logical conjunction of In(R1), In(R2), Clean(R1), Clean (R2) (notation: + adds an attribute, - removes an attribute)

  7. Transition Between Belief States • Suppose the robot is initially in state: • After sensing this state, its belief state is: • Just after executing Left, its belief state will be: • After sensing the new state, its belief state will be: or if there is no dust in R1 if there is dust in R1

  8. Transition Between Belief States • Suppose the robot is initially in state: • After sensing this state, its belief state is: • Just after executing Left, its belief state will be: • After sensing the new state, its belief state will be: or if there is no dust in R1 if there is dust in R1 Left Clean(R1) Clean(R1)

  9. Transition Between Belief States • How do you propagate the action/sensing operation to obtain the successors of a belief state? Left Clean(R1) Clean(R1)

  10. Computing the Transition between belief states • Given an action A, and a belief state S = {s1,…,sn} • Result of applying action, without sensing: • Take the union of all SUCC(si,A) for i=1,…,n • This gives us a pre-sensing belief state S’ • Possible percepts resulting from sensing: • {SENSE(si’) for si’ in S’} (using SENSE definition #2) • This gives us a percept set P • Possible states both in S’ AND consistent with each possible percept pj in P: • Sj = {si | SENSE(si’)=pj for si’ in S’}i.e.,Sj = CONSISTENT(pj) ∩ S’

  11. Left Right Suck loop Suck goal goal AND/OR Tree of Belief States An action is applicable to a belief state B if its precondition is achieved in all states in B A goal belief state is one in which all states are goal states

  12. Planning With Probabilistic Uncertainty in Sensing No motion Perpendicular motion

  13. Partially Observable MDPs • Consider the MDP model with states sS, actions aA • Reward R(s) • Transition model P(s’|s,a) • Discount factor g • With sensing uncertainty, initial belief state is a probability distributions over state: b(s) • b(si)  0 for all siS, i b(si) = 1 • Observations are generated according to a sensor model • Observation space oO • Sensor model P(o|s) • Resulting problem is a Partially Observable Markov Decision Process (POMDP)

  14. POMDP Utility Function • A policy p(b)is defined as a map from belief states to actions • Expected discounted reward with policy p: Up(b) = E[t gtR(St)]where St is the random variable indicating the state at time t • P(S0=s) = b0(s) • P(S1=s) = ?

  15. POMDP Utility Function • A policy p(b)is defined as a map from belief states to actions • Expected discounted reward with policy p: Up(b) = E[t gtR(St)]where St is the random variable indicating the state at time t • P(S0=s) = b0(s) • P(S1=s) = P(s|p(b0),b0) = s’ P(s|s’,p(b0)) P(S0=s’) = s’ P(s|s’,p(b0)) b0(s’)

  16. POMDP Utility Function • A policy p(b)is defined as a map from belief states to actions • Expected discounted reward with policy p: Up(b) = E[t gtR(St)]where St is the random variable indicating the state at time t • P(S0=s) = b0(s) • P(S1=s) = s’ P(s|s’,p(b)) b0(s’) • P(S2=s) = ?

  17. POMDP Utility Function • A policy p(b)is defined as a map from belief states to actions • Expected discounted reward with policy p: Up(b) = E[t gtR(St)]where St is the random variable indicating the state at time t • P(S0=s) = b0(s) • P(S1=s) = s’ P(s|s’,p(b)) b0(s’) • What belief states could the robot take on after 1 step?

  18. b0 Choose action p(b0) b1 Predict b1(s)=s’ P(s|s’,(b0)) b0(s’)

  19. b0 Choose action p(b0) b1 Predict b1(s)=s’ P(s|s’,(b0)) b0(s’) Receiveobservation oA oB oD oC

  20. b0 Choose action p(b0) b1 Predict b1(s)=s’ P(s|s’,(b0)) b0(s’) Receiveobservation P(oA|b1) P(oB|b1) P(oC|b1) P(oD|b1) b1,A b1,B b1,C b1,D

  21. b0 Choose action p(b0) b1 Predict b1(s)=s’ P(s|s’,(b0)) b0(s’) Receiveobservation P(oA|b1) P(oB|b1) P(oC|b1) P(oD|b1) b1,A b1,B b1,C b1,D Update belief b1,A(s) = P(s|b1,oA) b1,C(s) = P(s|b1,oC) b1,B(s) = P(s|b1,oB) b1,D(s) = P(s|b1,oD)

  22. b0 Choose action p(b0) b1 Predict b1(s)=s’ P(s|s’,(b0)) b0(s’) P(o|b) = sP(o|s)b(s) Receiveobservation P(oA|b1) P(oB|b1) P(oC|b1) P(oD|b1) b1,A b1,B b1,C b1,D Update belief P(s|b,o) = P(o|s)P(s|b)/P(o|b) = 1/Z P(o|s) b(s) b1,A(s) = P(s|b1,oA) b1,C(s) = P(s|b1,oC) b1,B(s) = P(s|b1,oB) b1,D(s) = P(s|b1,oD)

  23. Belief-space search tree • Each belief node has |A| action node successors • Each action node has |O| belief successors • Each (action,observation) pair (a,o) requires predict/update step similar to HMMs • Matrix/vector formulation: • b(s): a vector b of length |S| • P(s’|s,a): a set of |S|x|S| matrices Ta • P(ok|s): a vector ok of length |S| • ba= Tab(predict) • P(ok|ba) = okTba(probability of observation) • ba,k = diag(ok)ba / (okTba) (update) • Denote this operation as ba,o

  24. Receding horizon search • Expand belief-space search tree to some depth h • Use an evaluation function on leaf beliefs to estimate utilities • For internal nodes, back up estimated utilities:U(b) = E[R(s)|b] + gmaxaA oO P(o|ba)U(ba,o)

  25. QMDP Evaluation Function • One possible evaluation function is to compute the expectation of the underlying MDP value function over the leaf belief states • f(b) = sUMDP(s) b(s) • “Averaging over clairvoyance” • Assumes the problem becomes instantly fully observable after 1 action • Is optimistic: U(b)  f(b) • Approaches POMDP value function as state and sensing uncertainty decreases • In extreme h=1 case, this is called the QMDP policy

  26. QMDP Policy (Littman, Cassandra, Kaelbling 1995)

  27. Worst-case Complexity • Infinite-horizon undiscounted POMDPs are undecideable (reduction to halting problem) • Exact solution to infinite-horizon discounted POMDPs are intractable even for low |S| • Finite horizon: O(|S|2 |A|h|O|h) • Receding horizon approximation: one-step regret is O(gh) • Approximate solution: becoming tractable for |S| in millions • a-vector point-based techniques • Monte Carlo tree search • …Beyond scope of course…

  28. Schedule • 11/29: Robotics • 12/1: Guest lecture: Mike Gasser, Natural Language Processing • 12/6: Review • 12/8: Final project presentations, review

More Related