CAP6938 Neuroevolution and Developmental Encoding Non-Neural NEAT and Closing Remarks
CAP6938-02 Plan, Activity, and Intent Recognitiongitars/cap6938/cap6938-review1.pdfCAP6938-02 Plan,...
Transcript of CAP6938-02 Plan, Activity, and Intent Recognitiongitars/cap6938/cap6938-review1.pdfCAP6938-02 Plan,...
![Page 1: CAP6938-02 Plan, Activity, and Intent Recognitiongitars/cap6938/cap6938-review1.pdfCAP6938-02 Plan, Activity, and Intent Recognition Review of Material Instructor: Dr. Gita Sukthankar](https://reader034.fdocuments.us/reader034/viewer/2022043007/5f939f786f837c50715b8003/html5/thumbnails/1.jpg)
CAP6938-02Plan, Activity, and Intent
RecognitionReview of Material
Instructor: Dr. Gita SukthankarEmail: [email protected]
Schedule: T & Th 1:30-2:45pmLocation: CL1 212
Office Hours (HEC 232):T 3-4:30pm, Th 10-11:30am
![Page 2: CAP6938-02 Plan, Activity, and Intent Recognitiongitars/cap6938/cap6938-review1.pdfCAP6938-02 Plan, Activity, and Intent Recognition Review of Material Instructor: Dr. Gita Sukthankar](https://reader034.fdocuments.us/reader034/viewer/2022043007/5f939f786f837c50715b8003/html5/thumbnails/2.jpg)
2CAP6938: Dr. Gita Sukthankar
Exam Format
Exam Oct 4th: closed-book, can bring 1 page of notesOct 11th: 2 page writeup of your project results (informal in-class presentation)Oct 18th: Project Phase 2
Chance to start a new project or refine your old one1 page writeup and informal class presentation describing changes you want to make in your project
![Page 3: CAP6938-02 Plan, Activity, and Intent Recognitiongitars/cap6938/cap6938-review1.pdfCAP6938-02 Plan, Activity, and Intent Recognition Review of Material Instructor: Dr. Gita Sukthankar](https://reader034.fdocuments.us/reader034/viewer/2022043007/5f939f786f837c50715b8003/html5/thumbnails/3.jpg)
3CAP6938: Dr. Gita Sukthankar
Definitely on Exam
Specific questions on:Bayes networksHidden Markov Models
RepresentationForward algorithm
General research questions on the 5 papers (Kautz, Tambe, Pynadath, Kaminka, Starner)
![Page 4: CAP6938-02 Plan, Activity, and Intent Recognitiongitars/cap6938/cap6938-review1.pdfCAP6938-02 Plan, Activity, and Intent Recognition Review of Material Instructor: Dr. Gita Sukthankar](https://reader034.fdocuments.us/reader034/viewer/2022043007/5f939f786f837c50715b8003/html5/thumbnails/4.jpg)
4CAP6938: Dr. Gita Sukthankar
Not on Exam
Logic proofs or e-graphsSOARInference using stochastic grammarsVariable elimination for loopy graphsDetails of Baum-Welch algorithmVision based tracking
![Page 5: CAP6938-02 Plan, Activity, and Intent Recognitiongitars/cap6938/cap6938-review1.pdfCAP6938-02 Plan, Activity, and Intent Recognition Review of Material Instructor: Dr. Gita Sukthankar](https://reader034.fdocuments.us/reader034/viewer/2022043007/5f939f786f837c50715b8003/html5/thumbnails/5.jpg)
5CAP6938: Dr. Gita Sukthankar
What makes PAIR hard?
High computational cost Plan library requirements:
Libraries can be incomplete or inaccurateDifficult to author (making learning attractive)Individual differencesMistakes/irrational behavior
Domain-specific characteristics make generalization across domains difficult Specific to activity recognition:
Identifying transitions between behaviorData associationObtaining reliable tracking data (vision)
![Page 6: CAP6938-02 Plan, Activity, and Intent Recognitiongitars/cap6938/cap6938-review1.pdfCAP6938-02 Plan, Activity, and Intent Recognition Review of Material Instructor: Dr. Gita Sukthankar](https://reader034.fdocuments.us/reader034/viewer/2022043007/5f939f786f837c50715b8003/html5/thumbnails/6.jpg)
6CAP6938: Dr. Gita Sukthankar
Application Areas
Robocup (not on the exam)Quality of Life (not on the exam)Adversarial reasoning for games and battlefield analysis (Tambe)Gesture recognition (Starner)
![Page 7: CAP6938-02 Plan, Activity, and Intent Recognitiongitars/cap6938/cap6938-review1.pdfCAP6938-02 Plan, Activity, and Intent Recognition Review of Material Instructor: Dr. Gita Sukthankar](https://reader034.fdocuments.us/reader034/viewer/2022043007/5f939f786f837c50715b8003/html5/thumbnails/7.jpg)
7CAP6938: Dr. Gita Sukthankar
Symbolic (Consistency-based)
Based on the idea that plan recognition is a consistency-checking process.A model matches the set of observations if the observed actions don’t violate any of the constraints specified in the plan library.Example techniques (first 2 weeks of reading)
Event hierarchy circumscription (Kautz)Event tracking/model tracing (Tambe)Fast/complete symbolic plan recognition (Kaminka)
Output: return complete set of models that pass consistency checking
![Page 8: CAP6938-02 Plan, Activity, and Intent Recognitiongitars/cap6938/cap6938-review1.pdfCAP6938-02 Plan, Activity, and Intent Recognition Review of Material Instructor: Dr. Gita Sukthankar](https://reader034.fdocuments.us/reader034/viewer/2022043007/5f939f786f837c50715b8003/html5/thumbnails/8.jpg)
8CAP6938: Dr. Gita Sukthankar
Probabilistic (Likelihood-based)
Based on the idea of selecting the plan that has a high probability based on the observed evidenceBelief is usually calculated using some variant on Bayesian belief update (but Dempster-Shafer evidential reasoning has also been used)Includes both directed/undirected graphical model based procedures
Examples: dynamic Bayes networks (DBNs), hidden Markov/semi-Markov models (HMMs),
Output: model with the maximum likelihood at the current time step given the set of previous observations
![Page 9: CAP6938-02 Plan, Activity, and Intent Recognitiongitars/cap6938/cap6938-review1.pdfCAP6938-02 Plan, Activity, and Intent Recognition Review of Material Instructor: Dr. Gita Sukthankar](https://reader034.fdocuments.us/reader034/viewer/2022043007/5f939f786f837c50715b8003/html5/thumbnails/9.jpg)
9CAP6938: Dr. Gita Sukthankar
Decision-theoretic (Utility-based)
Based on the idea that the agent is rational and acts to maximize a known utility function.Plan recognition process occurs by calculating utility of all plans in current situation.Game-theory is applicable for adversarial reasoning when the agent is simultaneously trying to maximize their utility while minimizing their opponents.Output: a rank-ordering of models by utilityNote: this method is well-suited for prioritizing or pruning the search process and is often used in combination with one of the previous methods
![Page 10: CAP6938-02 Plan, Activity, and Intent Recognitiongitars/cap6938/cap6938-review1.pdfCAP6938-02 Plan, Activity, and Intent Recognition Review of Material Instructor: Dr. Gita Sukthankar](https://reader034.fdocuments.us/reader034/viewer/2022043007/5f939f786f837c50715b8003/html5/thumbnails/10.jpg)
10CAP6938: Dr. Gita Sukthankar
Event Hierarchy CircumscriptionEvent hierarchy
General axioms
H. Kautz, A Formal Theory of Plan Recognition and its Implementation,in Reasoning about Plans
![Page 11: CAP6938-02 Plan, Activity, and Intent Recognitiongitars/cap6938/cap6938-review1.pdfCAP6938-02 Plan, Activity, and Intent Recognition Review of Material Instructor: Dr. Gita Sukthankar](https://reader034.fdocuments.us/reader034/viewer/2022043007/5f939f786f837c50715b8003/html5/thumbnails/11.jpg)
11CAP6938: Dr. Gita Sukthankar
Kautz’s Model
First order predicate calculusEvent hierarchy (logical encoding of a semantic network)
Event predicatesAbstaction axioms Decomposition axioms
General axioms: hardest to use for inferenceIncludes temporal constraints between the stepsEquality constraints between the agents executing steps or objects involved in stepsPreconditions
Special event predicates: End, AnyEvent (top-level abstraction)
![Page 12: CAP6938-02 Plan, Activity, and Intent Recognitiongitars/cap6938/cap6938-review1.pdfCAP6938-02 Plan, Activity, and Intent Recognition Review of Material Instructor: Dr. Gita Sukthankar](https://reader034.fdocuments.us/reader034/viewer/2022043007/5f939f786f837c50715b8003/html5/thumbnails/12.jpg)
12CAP6938: Dr. Gita Sukthankar
Kautz’s Assumptions
Exhaustiveness: Known ways of specializing an event type are the only ways of specializing itDisjointedness: Types are disjoint, unless one abstracts the other, or they abstract a common typeComponent/Use: Seeing an event implies the disjunction of the plans which include it as a componentMinimum Cardinality Assumption: Assume parsimony: the minimum number of plans to explain the observations
![Page 13: CAP6938-02 Plan, Activity, and Intent Recognitiongitars/cap6938/cap6938-review1.pdfCAP6938-02 Plan, Activity, and Intent Recognition Review of Material Instructor: Dr. Gita Sukthankar](https://reader034.fdocuments.us/reader034/viewer/2022043007/5f939f786f837c50715b8003/html5/thumbnails/13.jpg)
13CAP6938: Dr. Gita Sukthankar
RESC Algorithm (Tambe)
Simple insight: model what you would do if you were in the opponent’s positionWhat are problems with this?
High overhead: must program an agent capable of solving the problemModeling the opponent’s world state can be difficult (what is the opponent’s sensor model?)Maintaining multiple hypotheses is even more expensive
What are the strengths?Allows designer to leverage extra domain knowledgeDoes not require enumerating chains of possible events
![Page 14: CAP6938-02 Plan, Activity, and Intent Recognitiongitars/cap6938/cap6938-review1.pdfCAP6938-02 Plan, Activity, and Intent Recognition Review of Material Instructor: Dr. Gita Sukthankar](https://reader034.fdocuments.us/reader034/viewer/2022043007/5f939f786f837c50715b8003/html5/thumbnails/14.jpg)
14CAP6938: Dr. Gita Sukthankar
Ambiguity in Event Tracking
Ambiguity: the bane of plan recognition!Potential solutions:
Maintain multiple operator hierarchies (continue considering allvalid hypotheses)Delay until more evidence presents itself
Tambe solution: attempt to resolve ambiguity and commit to a single interpretation
Passive ambiguity resolution (game-theoretic)Active resolution: modify agent’s actions to resolve ambiguityDetect incorrect interpretation through match failureRecovery mechanisms (assumption injection, backtracking)
![Page 15: CAP6938-02 Plan, Activity, and Intent Recognitiongitars/cap6938/cap6938-review1.pdfCAP6938-02 Plan, Activity, and Intent Recognition Review of Material Instructor: Dr. Gita Sukthankar](https://reader034.fdocuments.us/reader034/viewer/2022043007/5f939f786f837c50715b8003/html5/thumbnails/15.jpg)
15CAP6938: Dr. Gita Sukthankar
Stochastic Grammars
Refer to the shorter version of the PynadathpaperUnderstand how to represent plan recognition as a grammar parsing problemDifference between plan recognition using context-free and context-sensitive grammarsUnderstand Pynadath’s representation of the driving domain
![Page 16: CAP6938-02 Plan, Activity, and Intent Recognitiongitars/cap6938/cap6938-review1.pdfCAP6938-02 Plan, Activity, and Intent Recognition Review of Material Instructor: Dr. Gita Sukthankar](https://reader034.fdocuments.us/reader034/viewer/2022043007/5f939f786f837c50715b8003/html5/thumbnails/16.jpg)
16CAP6938: Dr. Gita Sukthankar
Speedups for Plan Recognition
Smart data structures (Kaminka)Use of dynamic programming (forwards-backwards algorithm, variable elimination)Be able to suggest new speedupsUnderstand the purpose of the ones proposed in the Kaminka paper
Speeding observation matching (tagged feature tree)Improving efficiency of current state queryHypotheses graph data structure
![Page 17: CAP6938-02 Plan, Activity, and Intent Recognitiongitars/cap6938/cap6938-review1.pdfCAP6938-02 Plan, Activity, and Intent Recognition Review of Material Instructor: Dr. Gita Sukthankar](https://reader034.fdocuments.us/reader034/viewer/2022043007/5f939f786f837c50715b8003/html5/thumbnails/17.jpg)
17CAP6938: Dr. Gita Sukthankar
![Page 18: CAP6938-02 Plan, Activity, and Intent Recognitiongitars/cap6938/cap6938-review1.pdfCAP6938-02 Plan, Activity, and Intent Recognition Review of Material Instructor: Dr. Gita Sukthankar](https://reader034.fdocuments.us/reader034/viewer/2022043007/5f939f786f837c50715b8003/html5/thumbnails/18.jpg)
18CAP6938: Dr. Gita Sukthankar
![Page 19: CAP6938-02 Plan, Activity, and Intent Recognitiongitars/cap6938/cap6938-review1.pdfCAP6938-02 Plan, Activity, and Intent Recognition Review of Material Instructor: Dr. Gita Sukthankar](https://reader034.fdocuments.us/reader034/viewer/2022043007/5f939f786f837c50715b8003/html5/thumbnails/19.jpg)
19CAP6938: Dr. Gita Sukthankar
Qualitative part: Directed acyclic graph (DAG)
Nodes - random vars. Edges - direct influence
Quantitative part: Set of conditional probability distributions
0.9 0.1
e
be
0.2 0.8
0.01 0.990.9 0.1
bebb
e
BE P(A | E,B)Family of Alarm
Earthquake
Radio
Burglary
Alarm
Call
Compact representation of joint probability distributions via conditional independence
Together:Define a unique distribution in a factored form
)|()|(),|()()(),,,,( ACPERPEBAPEPBPRCAEBP =
What is a Bayes (belief) net?
Figure from N. Friedman
![Page 20: CAP6938-02 Plan, Activity, and Intent Recognitiongitars/cap6938/cap6938-review1.pdfCAP6938-02 Plan, Activity, and Intent Recognition Review of Material Instructor: Dr. Gita Sukthankar](https://reader034.fdocuments.us/reader034/viewer/2022043007/5f939f786f837c50715b8003/html5/thumbnails/20.jpg)
Conditional probability distributions (CPDs)
• Each node specifies a distribution over its values given its parents values P(Xi | XPai
)• Full table needs 25-1=31
parameters, BN needs 10
Earthquake Burglary
AlarmRadio
Pearl, 1988
Call
0.990.01be
0.10.9be
0.80.2be
0.10.9be
P(A|E,B)BE
![Page 21: CAP6938-02 Plan, Activity, and Intent Recognitiongitars/cap6938/cap6938-review1.pdfCAP6938-02 Plan, Activity, and Intent Recognition Review of Material Instructor: Dr. Gita Sukthankar](https://reader034.fdocuments.us/reader034/viewer/2022043007/5f939f786f837c50715b8003/html5/thumbnails/21.jpg)
21CAP6938: Dr. Gita Sukthankar
![Page 22: CAP6938-02 Plan, Activity, and Intent Recognitiongitars/cap6938/cap6938-review1.pdfCAP6938-02 Plan, Activity, and Intent Recognition Review of Material Instructor: Dr. Gita Sukthankar](https://reader034.fdocuments.us/reader034/viewer/2022043007/5f939f786f837c50715b8003/html5/thumbnails/22.jpg)
22CAP6938: Dr. Gita Sukthankar
CPDs for HMMs
Y1 Y3
X1 X2 X3
Y2
Transition matrix
Observation matrix
Initial state distribution
B
Aπ
Parameter tyeing
1 2 3
A=state transition matrix
![Page 23: CAP6938-02 Plan, Activity, and Intent Recognitiongitars/cap6938/cap6938-review1.pdfCAP6938-02 Plan, Activity, and Intent Recognition Review of Material Instructor: Dr. Gita Sukthankar](https://reader034.fdocuments.us/reader034/viewer/2022043007/5f939f786f837c50715b8003/html5/thumbnails/23.jpg)
• Posterior probabilities of Query given Evidence– Marginalize out Nuisance variables– Sum-product
• Most Probable Explanation (MPE)/ Viterbi– max-product
• “Marginal Maximum A Posteriori (MAP)”– max-sum-product
Inference tasksNuisance variable=hidden node that we don’t care about but that we don’tknow the value for
![Page 24: CAP6938-02 Plan, Activity, and Intent Recognitiongitars/cap6938/cap6938-review1.pdfCAP6938-02 Plan, Activity, and Intent Recognition Review of Material Instructor: Dr. Gita Sukthankar](https://reader034.fdocuments.us/reader034/viewer/2022043007/5f939f786f837c50715b8003/html5/thumbnails/24.jpg)
24CAP6938: Dr. Gita Sukthankar
Variable/bucket eliminationPush sums inside products (generalized distributive law)Carry out summations right to left, storing intermediate results (factors) to avoid recomputation (dynamic programming)
Kschischang01,Dechter96
![Page 25: CAP6938-02 Plan, Activity, and Intent Recognitiongitars/cap6938/cap6938-review1.pdfCAP6938-02 Plan, Activity, and Intent Recognition Review of Material Instructor: Dr. Gita Sukthankar](https://reader034.fdocuments.us/reader034/viewer/2022043007/5f939f786f837c50715b8003/html5/thumbnails/25.jpg)
25CAP6938: Dr. Gita Sukthankar
Forwards algorithm (filtering)
Y1:t-1
Xt Xt
YtUse the Markovassumptions
![Page 26: CAP6938-02 Plan, Activity, and Intent Recognitiongitars/cap6938/cap6938-review1.pdfCAP6938-02 Plan, Activity, and Intent Recognition Review of Material Instructor: Dr. Gita Sukthankar](https://reader034.fdocuments.us/reader034/viewer/2022043007/5f939f786f837c50715b8003/html5/thumbnails/26.jpg)
26CAP6938: Dr. Gita Sukthankar
Gesture Recognition (Starner)
Be able to describe how the recognition aspect of the system worksDon’t have to understand the visual trackingDon’t have to understand the use of Gaussian probability densities