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

Slides:



Advertisements
Similar presentations
Lecture Notes on AI & NN Chapter 1 Introduction to Intelligence Theory Section 2 Intelligence Theory & Information Science.
Advertisements

Artificial Intelligence
1 Knowledge Representation Introduction KR and Logic.
Semantics (Representing Meaning)
Introduction to Artificial Intelligence
Dr. Brian Inbody RUG How to achieve higher morale and happier employees More productivity, less missed time, less turnover Understand the Science.
Knowledge Representation
Introduction to AI & AI Principles (Semester 1) WEEK 6 (07/08) John Barnden Professor of Artificial Intelligence School of Computer Science University.
Fundamentals/ICY: Databases 2013/14 Week 6: Monday John Barnden Professor of Artificial Intelligence School of Computer Science University of Birmingham,
Elements of Decision Problems
Introduction to AI & AI Principles (Semester 1) WEEK 11 (Wed) – Wrap-Up (2008/09) John Barnden Professor of Artificial Intelligence School of Computer.
Introduction to AI & AI Principles (Semester 1) WEEK 8 (07/08) [Barnden’s slides only] John Barnden Professor of Artificial Intelligence School of Computer.
Knowledge Acquisitioning. Definition The transfer and transformation of potential problem solving expertise from some knowledge source to a program.
Introduction to AI & AI Principles (Semester 1) REVISION LECTURES (Term 3) John Barnden Professor of Artificial Intelligence School of Computer Science.
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Lecture 9 Jim Martin.
Introduction to AI & AI Principles (Semester 1) WEEK 7 (07/08) [Barnden’s slides only] John Barnden Professor of Artificial Intelligence School of Computer.
Introduction to AI & AI Principles (Semester 1) WEEK 2 – Tuesday part B Introduction to AI & AI Principles (Semester 1) WEEK 2 – Tuesday part B (2008/09)
Introduction to AI & AI Principles (Semester 1) REVISION LECTURES (Term 3) John Barnden Professor of Artificial Intelligence School of Computer Science.
Introduction to AI & AI Principles (Semester 1) WEEK 10 (07/08) [John Barnden’s slides only] School of Computer Science University of Birmingham, UK.
Introduction to AI & AI Principles (Semester 1) WEEK 7 John Barnden Professor of Artificial Intelligence School of Computer Science University of Birmingham,
Introduction to AI & AI Principles (Semester 1) WEEK 2 – Wednesday Introduction to AI & AI Principles (Semester 1) WEEK 2 – Wednesday (2008/09) John Barnden.
Introduction to AI & AI Principles (Semester 1) WEEK 11 John Barnden Professor of Artificial Intelligence School of Computer Science University of Birmingham,
Software Requirements
Introduction to AI & AI Principles (Semester 1) WEEK 3 – Wednesday Introduction to AI & AI Principles (Semester 1) WEEK 3 – Wednesday (2008/09) John Barnden.
LEARNING FROM OBSERVATIONS Yılmaz KILIÇASLAN. Definition Learning takes place as the agent observes its interactions with the world and its own decision-making.
Introduction to AI & AI Principles (Semester 1) WEEK 4 (07/08) John Barnden Professor of Artificial Intelligence School of Computer Science University.
Introduction to AI & AI Principles (Semester 1) WEEK 4 John Barnden Professor of Artificial Intelligence School of Computer Science University of Birmingham,
Introduction to AI & AI Principles (Semester 1) WEEK 1 – Wednesday Introduction to AI & AI Principles (Semester 1) WEEK 1 – Wednesday (2008/09) John Barnden.
Introduction to AI & AI Principles (Semester 1) WEEK 3 John Barnden Professor of Artificial Intelligence School of Computer Science University of Birmingham,
Introduction to AI & AI Principles (Semester 1) WEEK 3 – Tuesday part B Introduction to AI & AI Principles (Semester 1) WEEK 3 – Tuesday part B (2008/09)
Introduction to AI & AI Principles (Semester 1) WEEK 4 – Wednesday Introduction to AI & AI Principles (Semester 1) WEEK 4 – Wednesday (2008/09) John Barnden.
Introduction to AI & AI Principles (Semester 1) WEEK 5 – Wednesday Introduction to AI & AI Principles (Semester 1) WEEK 5 – Wednesday (2008/09) John Barnden.
Introduction to AI & AI Principles (Semester 1) WEEK 3 – Tuesday part A Introduction to AI & AI Principles (Semester 1) WEEK 3 – Tuesday part A (2008/09)
©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 5 Slide 1 Requirements engineering l The process of establishing the services that the.
Philosophy A philosophy is a system of beliefs about reality.
Intro to Maths for CS: 2013/14 Sets (2) – OPTIONAL MATERIAL John Barnden Professor of Artificial Intelligence School of Computer Science University of.
Artificial Intelligence Introduction (2). What is Artificial Intelligence ?  making computers that think?  the automation of activities we associate.
Project done by Khatniuk Svetlana. Through games children experiment and discover. Games add variation to a lesson and increase motivation. The game context.
Artificial Intelligence
Natural Language Processing Introduction. 2 Natural Language Processing We’re going to study what goes into getting computers to perform useful and interesting.
Fundamentals/ICY: Databases 2013/14 Week 10 –Monday –Normalization, contd John Barnden Professor of Artificial Intelligence School of Computer Science.
Declarative vs Procedural Programming  Procedural programming requires that – the programmer tell the computer what to do. That is, how to get the output.
1 CS 350 Data Structures Chaminade University of Honolulu.
LOGIC AND ONTOLOGY Both logic and ontology are important areas of philosophy covering large, diverse, and active research projects. These two areas overlap.
Fundamentals/ICY: Databases 2012/13 WEEK 11 – 4 th Normal Form (optional material) John Barnden Professor of Artificial Intelligence School of Computer.
1 Knowledge Representation CS 171/CS How to represent reality? Use an ontology (a formal representation of reality) General/abstract domain Specific.
Yarmouk University Department of Computer Information Systems CIS 499 Yarmouk University Department of Computer Information Systems CIS 499 Yarmouk University.
1 Introduction to Artificial Intelligence (Lecture 1)
The Burnet News Club GLOSSARY Glossary Burnet News Club words.
Programming Languages and Design Lecture 3 Semantic Specifications of Programming Languages Instructor: Li Ma Department of Computer Science Texas Southern.
Introduction to Planning Dr. Shazzad Hosain Department of EECS North South Universtiy
Fundamentals/ICY: Databases 2013/14 WEEK 9 –Friday John Barnden Professor of Artificial Intelligence School of Computer Science University of Birmingham,
Instructional Objective  Define an agent  Define an Intelligent agent  Define a Rational agent  Discuss different types of environment  Explain classes.
University of Kurdistan Artificial Intelligence Methods (AIM) Lecturer: Kaveh Mollazade, Ph.D. Department of Biosystems Engineering, Faculty of Agriculture,
MDA & RM-ODP. Why? Warehouses, factories, and supply chains are examples of distributed systems that can be thought of in terms of objects They are all.
Intro to Planning Or, how to represent the planning problem in logic.
1 CMSC 471 Fall 2004 Class #21 – Thursday, November 11.
Intro to Maths for CS: 2012/13 Sets (end, week 3) John Barnden Professor of Artificial Intelligence School of Computer Science University of Birmingham,
Software Engineering, COMP201 Slide 1 Software Requirements BY M D ACHARYA Dept of Computer Science.
Forward and Backward Chaining
Intelligent Agents Chapter 2. How do you design an intelligent agent? Definition: An intelligent agent perceives its environment via sensors and acts.
1 Software Requirements Descriptions and specifications of a system.
Semantics (Representing Meaning)
Fundamentals/ICY: Databases 2010/11 WEEK 1
Knowledge Representation
Intelligent Agents Chapter 2.
STATE SPACE REPRESENTATION
KNOWLEDGE REPRESENTATION
Workshop for Programming And Systems Management Teachers
The 4 Dimensions of Health
Presentation transcript:

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

Discussion based on Frayn’s guest lecture on chess

REVIEW: where were we?

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

Planning Actions: Some Needs uEnvisaging the effect of a series of actions uRemembering different series and their effects, so as to investigate alternatives properly uTaking account of time constraints, effort constraints, etc. uNEW: Allowing for the time and effort of the planning process itself. 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 unknown things (e.g., unknown action effects).

New for Week 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 … … … …

Towards Search, contd. uWhat order to investigate the actions possible in 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?

More on Search in Week 11

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).

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.

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.

Why Not Use Human Language? 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.

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.

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.

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, …

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, …

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

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 anor a property of Y, or a property of the group consisting of X andY 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.

Groups of Entities: Some Examples uA group of people going out together. uThe set of prime numbers less than 100. uA couple’s children. uThe thoughts you had yesterday. uThe industrial strikes that have occurred in the UK in the last ten years. uThe set of time instants between now and a minute from now. uYour limbs.

Groups versus Entities uAny conceivable group is in principle an entity. But it may not be included in the set of entities of interest. uWhen a group is regarded as an entity, it is possible for its members to be entities in their own right as well. uIt’s largely a matter of taste/convenience whether you regard a complex object as one entity or a group of entities or both. l Extreme example: a person could be regarded as the set of molecules in his/her body. Usually it’s not convenient to do this!

Generalization/Quantification  Don't want to refer only to particular entities.Need to have representations that are about, for example, everyone in a room, without having to list them all some unidentified buildings in a city an unidentified pen in your bag a few, several or many places you have been five of the lecturers in the School and so forth.  Case of referring to every thing with particular characteristics: UNIVERSAL generalization/quantification.  Case of referring to a or some things with particular characteristics: EXISTENTIAL generalization/quantification.

Propositional Structure  Want to be able to join statements together in various ways. John is happy AND Mary is sad John is happy OR Mary is sad IF John is happy THEN Mary is sad Mary is sad BECAUSE John is happy AFTER Mary cried, John was happy and so forth.  Need to able to negate statements. It's NOT the case that John is happy.  AND (  ), OR (  ), IF-THEN (  ), negation (  ) and some closely related things are (to some extent) captured by “Propositional" (or “Sentential”) Logic … … and that's all it captures (in its basic forms).

A Taste of “Predicate Logic”  Predicate logic adds ability to deal also with entities, properties and relationships explicitly, as well as universal generalization (  ) and existential generalization (  ).  Some examples of predicate logic expressions: happy(TheodosiaKirkbride) taller-than(TheodosiaKirkbride, MaryPoppins) criticizes(TheodosiaKirkbride, MaryPoppins, 14feb05) happy(TheodosiaKirkbride)  sad(MaryPoppins) happy(TheodosiaKirkbride)  sad(MaryPoppins)  x (is-person(x)  rich(x)   happy(x))  y (is-person(y)  rich(y)  sad(y)) uStandard predicate logic has no inbuilt facilities for other sorts of generalization or propositional structure.