Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction to AI & AI Principles (Semester 1) WEEK 6 (07/08) John Barnden Professor of Artificial Intelligence School of Computer Science University.

Similar presentations

Presentation on theme: "Introduction to AI & AI Principles (Semester 1) WEEK 6 (07/08) John Barnden Professor of Artificial Intelligence School of Computer Science University."— Presentation transcript:

1 Introduction to AI & AI Principles (Semester 1) WEEK 6 (07/08) John Barnden Professor of Artificial Intelligence School of Computer Science University of Birmingham, UK

2 Making a Hot Drink uYour suggestions please!

3 Moving Around and Performing Actions (review) uRemembering a “mental map” of some sort and knowing where oneself is in such a map. Keeping track of movements. Recognizing landmarks. uCreating such a map. uMoving arms, etc. to reach objects efficiently and safely. uGrasping (etc.) objects safely.

4 Planning Actions: Examples uPlanning is discussed in Callan ch. 9 (and 10). uExamples of planning: l Planning the sequence of steps needed to buy presents for people. l Planning how to get to a particular place. l Planning the steps needed to build something. l Planning moves in a game (whether chess, a shoot-em-up, football, …) l Planning the steps needed to convince somebody of something.

5 Planning Actions: Some Needs uEnvisaging the effect of a series of actions. uRemembering different series of actions and their envisaged effects, so as to investigate alternatives properly. uTaking account of time constraints, effort constraints, etc. uTaking account of interactions between parts of the problem (preconditions, conflicts). uRecovering from unexpected problems and benefits when executing a plan: (partial) re-planning, incl. because of unexpected changes in the world independent of one’s own actions. uAllowing for “known unknowns” (e.g., action effects that you know you don’t know).

6 Planning: Towards “Search” uSearch is covered in Callan ch. 3. uIn planning, one can mentally “search” through possible states of the world you could get to, or that would be useful to get to, by imagining doing actions. (FORWARDS SEARCH) If I do this, then that would happen, and then if I do this, that would come about, or if instead I did this then that would happen, … … … … … … … OR (BACKWARDS SEARCH) To get such and such a (sub-)goal state, I could perhaps do this action from such and such another state, and to get to that state I could perhaps do so-and-so, or alternatively I could have done such and such … … … …

7 Towards Search, contd. uWhat order to investigate the actions that are possible from or towards any given state? Investigate all or just some? All in a bunch, or at different points in the search? uFollow a line of investigation as far as you can, and then hop back to a choice point if not getting anywhere? uAny limit on the number of states investigated, or on how far you follow any given line? uHow can you measure how promising a state is? uHow to take care of unexpected world conditions or changes, or unexpected effects of your own actions?

8 More on Search in a Later Lecture

9 Representation Needs in Planning uRepresenting the actual state of the “world”. uKeeping track of several hypothetical states and how they arise from each other. uRepresenting all the information needed about each possible action the system can take. This includes information about what preconditions need to hold in order for the action to apply, and what the effects of the action are (effects on world and on system itself, incl. the “cost” to the system). uRepresenting the goal(s) conditions or states to be achieved, sub-goal states that dynamically arise, time constraints, effort constraints, etc. uPossibly, representing relationships between actions such as conflicts. uInternally expressing general knowledge about the world (e.g., if it’s raining and I go outside my joints will rust).

10 Representation Needs, contd. uPossibly, remembering useful things to help further planning (a type of learning): l Useful, recurring sequences of actions (“chunking” of actions) l Abstractions from such sequences l Why (parts of) the plan succeeded l What failed and why l Why particular steps were decided upon.

11 Further Representation Needs (for Planning or Other Purposes) uInferential Adequacy (has also been called Heuristic Adequacy): ability adequately to support processes for deriving new information from existing information (“inference”, “reasoning”). uAbility to include special things that, for example, speed up access, inference, learning, … uAppropriate degree of narrowness or breadth (general- purposeness) for the researcher’s aims.

12 Why Not Use Human Language? (further thoughts) uThe need for a lot of context to remove ambiguity. Difficulty of knowing exactly what the context is. uPossibly leads to incorrectness or internal misunderstanding. uAlso adds complexity and uncertainty that hurts inferential adequacy. uThe syntax (grammatical structure) of human language is complex and full of historical quirks. This is a problem for all processing of the language, including inference.

13 Representing a State of the World and Expressing General Knowledge about the World (for planning or other purposes) uA state could be past, present, future, hypothetical, … Ignore those differences for the moment.

14 Need to … u … represent entities (physical things, mental things, abstract things, situations, events, actions, processes, …), properties of entities, relationships between entities, groups of entities, … u … make generalizations about types of entities u … capture propositional structure of information.

15 Entities: Some Examples uPeople, desks, faces, noses, pens, chess-pieces, windows, light-switches, rooms, buildings, towns, land areas, planets, … uSizes, lengths, weights, times, prices, …, numbers uWritten/spoken words/numbers/…, diagrams, … uThoughts, emotions, claims, prejudices, personality types, plans, strategies, political movements, terrorism, peace, justice, … uActs of eating, eating in general, the concept of eating, … uSimilarly of saying, believing, learning, …

16 Properties: Some Examples uBeing tall, being expensive, being stupid, having two legs, being kind, being a prime number, being a dog, being an act of violence, having a tail, being coffee, …

17 Relationships: Some Examples uX loving Y, X kissing Y, Y slapping X, X being married to Z, X being taller than Y, X drinking Y, X being a friend of Y, X being a square root of Y, X being less time-consuming than Y, X’s number of legs being Y, X being the end-point of Y, X’s hand grasping Y, uX being between Y and Z, X being the path from Y to Z, X’s tentacle number Z grasping Y, X giving money- amount Y to charity Z uX kissing Y at time T uX being stupid at time T, X giving money-amount Y to charity Z at time T

18 Entities versus Properties versus Relationships uPartly a matter of taste and convenience whether you think of something as being a property of one or more things or a relationship between things. l X being stupid at time T: timed property of X, or a relationship between X and T. l X having 2 legs: a property of X, or a relationship between X and 2. l X and Y being friends as a relationship between X and Y, or a property of X and/or a property of Y, or a property of the group consisting of X and Y uProperties and relationships are also, in principle, entities. But usually the entities are confined to those that we want to state properties of or relationships between.

Download ppt "Introduction to AI & AI Principles (Semester 1) WEEK 6 (07/08) John Barnden Professor of Artificial Intelligence School of Computer Science University."

Similar presentations

Ads by Google