Artificial Intelligence Knowledge Representation.

Slides:



Advertisements
Similar presentations
1 Knowledge Representation Introduction KR and Logic.
Advertisements

Artificial Intelligence 4. Knowledge Representation
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Artificial Intelligence in the 21 st Century S. Lucci / D. Kopec Chapter 5: Logic in Artificial Intelligence 1.
The Logic of Intelligence Pei Wang Department of Computer and Information Sciences Temple University.
Rigorous Software Development CSCI-GA Instructor: Thomas Wies Spring 2012 Lecture 11.
Agents That Reason Logically Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2004.
Knowledge Representation
CSM6120 Introduction to Intelligent Systems Knowledge representation.
Knowledge Representation Methods
CPSC 322, Lecture 19Slide 1 Propositional Logic Intro, Syntax Computer Science cpsc322, Lecture 19 (Textbook Chpt ) February, 23, 2009.
Models -1 Scientists often describe what they do as constructing models. Understanding scientific reasoning requires understanding something about models.
1 CA 208 Logic Logic Prof. Josef van Genabith Textbooks:  The Essence of Logic, John Kelly, Prentice Hall, 1997  Prolog Programming, Third Edition, Ivan.
Logical Agents Chapter 7. Why Do We Need Logic? Problem-solving agents were very inflexible: hard code every possible state. Search is almost always exponential.
Logical Agents Chapter 7. Why Do We Need Logic? Problem-solving agents were very inflexible: hard code every possible state. Search is almost always exponential.
Knowledge Representation I (Propositional Logic) CSE 473.
Knowledge in intelligent systems So far, we’ve used relatively specialized, naïve agents. How can we build agents that incorporate knowledge and a memory?
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Lecture 8 Jim Martin.
Rules and Expert Systems
Production Rules Rule-Based Systems. 2 Production Rules Specify what you should do or what you could conclude in different situations. Specify what you.
Logical Agents Chapter 7 Feb 26, Knowledge and Reasoning Knowledge of action outcome enables problem solving –a reflex agent can only find way from.
Knowledge Representation. Knowledge Representation Hypothesis Knowledge representation is an essential problem of symbolic-based artificial intelligence.
Knowledge representation methods جلسه سوم. KR is AI bottleneck The most important ingredient in any expert system is knowledge. The power of expert systems.
Notes for Chapter 12 Logic Programming The AI War Basic Concepts of Logic Programming Prolog Review questions.
Artificial Intelligence 4. Knowledge Representation Course V231 Department of Computing Imperial College, London © Simon Colton.
1 Chapter 7 Propositional and Predicate Logic. 2 Chapter 7 Contents (1) l What is Logic? l Logical Operators l Translating between English and Logic l.
LDK R Logics for Data and Knowledge Representation Modeling First version by Alessandro Agostini and Fausto Giunchiglia Second version by Fausto Giunchiglia.
Declarative vs Procedural Programming  Procedural programming requires that – the programmer tell the computer what to do. That is, how to get the output.
110/19/2015CS360 AI & Robotics AI Application Areas  Neural Networks and Genetic Algorithms  These model the structure of neurons in the brain  Humans.
Pattern-directed inference systems
Artificial Intelligence Knowledge Representation.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Logical Agents Chapter 7. Outline Knowledge-based agents Logic in general Propositional (Boolean) logic Equivalence, validity, satisfiability.
Intelligent Control Methods Lecture 7: Knowledge representation Slovak University of Technology Faculty of Material Science and Technology in Trnava.
KNOWLEDGE BASED SYSTEMS
Chapter 2: The Representation of Knowledge
Knowledge Representation
Computer Science CPSC 322 Lecture 22 Logical Consequences, Proof Procedures (Ch 5.2.2)
Finite State Machines (FSM) OR Finite State Automation (FSA) - are models of the behaviors of a system or a complex object, with a limited number of defined.
Propositional Logic Rather than jumping right into FOL, we begin with propositional logic A logic involves: §Language (with a syntax) §Semantics §Proof.
ARTIFICIAL INTELLIGENCE Lecture 2 Propositional Calculus.
Artificial Intelligence Knowledge Representation Department of Computer Science & Enggineering V. R. Palekar.
Logical Agents Chapter 7. Outline Knowledge-based agents Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem.
1 UNIT-3 KNOWLEDGE REPRESENTATION. 2 Agents that reason logically(Logical agents) A Knowledge based Agent The Wumpus world environment Representation,
Some Thoughts to Consider 5 Take a look at some of the sophisticated toys being offered in stores, in catalogs, or in Sunday newspaper ads. Which ones.
#1 Make sense of problems and persevere in solving them How would you describe the problem in your own words? How would you describe what you are trying.
Definition and Technologies Knowledge Representation.
Lecture 14. Recap Problem Solving GA Simple GA Examples of Mutation and Crossover Application Areas.
Artificial Intelligence Logical Agents Chapter 7.
Artificial Intelligence & Knowledge Representation National Institute Of Science & Technology Sudeep Misra [1] Artificial Intelligence and Knowledge Representation.
Artificial Intelligence 4. Knowledge Representation
Knowledge Representation Techniques
Chapter 7. Propositional and Predicate Logic
Knowledge Representation and Reasoning
Propositional Logic Session 3
Artificial Intelligence
EA C461 – Artificial Intelligence Logical Agent
Knowledge Representation
Artificial Intelligence (CS 370D)
Knowledge Representation
Knowledge Representation and Inference
Artificial Intelligence
KNOWLEDGE REPRESENTATION
TA : Mubarakah Otbi, Duaa al Ofi , Huda al Hakami
Back to “Serious” Topics…
Chapter 7. Propositional and Predicate Logic
Knowledge Representation I (Propositional Logic)
Knowledge Representation
Representations & Reasoning Systems (RRS) (2.2)
Habib Ullah qamar Mscs(se)
Presentation transcript:

Artificial Intelligence Knowledge Representation

Overview What is Knowledge? Knowledge Classification. Knowledge Representation Schemas. Representation. Logical Representations. Graphical Representations. Production Rule Representations. Frame Representations

What is Knowledge? data – primitive verifiable facts, of any representation. Data reflects current world,often voluminous frequently changing. information – interpreted data knowledge – relation among sets of data (information), that is very often used for further information deduction. Knowledge is (unlike data) general. Knowledge contains information about behaviour of abstract models of the world.

Overview What is Knowledge? Knowledge Classification. Knowledge Representation Schemas. Representation. Logical Representations. Graphical Representations. Production Rule Representations. Frame Representations

Knowledge Classification : – according to source : empirical, theoretical – according to orientation : domain, heuristic, inference – according to type : declarative, procedural

Overview What is Knowledge? Knowledge Classification. Knowledge Representation Schemas. Representation. Logical Representations. Graphical Representations. Production Rule Representations. Frame Representations

Knowledge Representation Schemas Logic based representation – first order predicate logic, Prolog Procedural representation – rules, production system Network representation – semantic networks, conceptual graphs Structural representation – scripts, frames, objects

Overview What is Knowledge? Knowledge Classification. Knowledge Representation Schemas. Representation. Logical Representations. Graphical Representations. Production Rule Representations. Frame Representations

Representation Representation Representation Think about knowledge, rather than data in AI Facts Procedures Meaning – Cannot have intelligence without knowledge Always been very important in AI Choosing the wrong representation – Could lead to a project failing Still a lot of work done on representation issues

Representations for Problem solving techniques For certain problem solving techniques – The “best” representation has already been worked out – Often it is an obvious requirement of the technique – Or a requirement of the programming language (e.g., Prolog) Examples: – First order theorem proving (first order logic) – Inductive logic programming (logic programs) – Neural networks learning (neural networks) But what if you have a new project? – What kind of general representations schemes are there?

Four General Representation Types Logical Representations Semantic Networks Production Rules Frames

Overview What is Knowledge? Knowledge Classification. Knowledge Representation Schemas. Representation. Logical Representations. Graphical Representations. Production Rule Representations. Frame Representations

Logical Representations What is a Logic? Lay down some concrete communication rules – In order to give information to agents, and get info Without errors in communication (or at least, fewer) Think of a logic as a language – Many ways to translate from one language to another Expressiveness – How much of natural language (e.g., English) We are able to translate into the logical language Not to be confused with logical reasoning – “Sherlock Holmes used pure logic to solve that…” – This is a process, not a language

Syntax and Semantics of Logics Syntax – How we can construct legal sentences in the logic – Which symbols we can use (English: letters, punctuation) – How we are allowed to write down those symbols Semantics – How we interpret (read) sentences in the logic – i.e., what the meaning of a sentence is Example: “All lecturers are six foot tall” – Perfectly valid sentence (syntax) – And we can understand the meaning (semantics) – This sentence happens to be false (there is a counterexample)

Propositional Logic Syntax – Propositions such as P meaning “it is wet” – Connectives: and, or, not, implies, equivalent – Brackets, T (true) and F (false) Semantics – How to work out the truth of a sentence Need to know how connectives affect truth E.g., “P and Q” is true if and only if P is true and Q is true “P implies Q” is true if P and Q are true or if P is false – Can draw up truth tables to work out the truth of statements

Other Logics Fuzzy logic – Use probabilities, rather than truth values Multi-valued logics – Assertions other than true and false allowed E.g., “unknown” Modal logics – Include beliefs about the world Temporal logics – Incorporate considerations of time

Why Logic is a Good Representation Some of many reasons are: – It’s fairly easy to do the translation when possible – There are whole tracts of mathematics devoted to it – It enables us to do logical reasoning – Programming languages have grown out of logics Prolog uses logic programs (a subset of predicate logic)

Overview What is Knowledge? Knowledge Classification. Knowledge Representation Schemas. Representation. Logical Representations. Graphical Representations. Production Rule Representations. Frame Representations

Graphical Representations Logic is not the only fruit Humans draw diagrams all the time, e.g., – E.g. causal relationships: – And relationships between ideas:

Graphical Representations..cont Graphs are very easy to store inside a computer For information to be of any use – We must impose a formalism on the graphs – Jason is 15, Bryan is 40, Arthur is 70, Jim is 74 – How old is Julia?

Overview What is Knowledge? Knowledge Classification. Knowledge Representation Schemas. Representation. Logical Representations. Graphical Representations. Production Rule Representations. Frame Representations

Production Rule Representations Consists of pairs Agent checks if a condition holds – If so, the production rule “fires” and the action is carried out – This is a recognize-act cycle Given a new situation (state) – Multiple production rules will fire at once – Call this the conflict set – Agent must choose from this set Call this conflict resolution Production system is any agent – Which performs using recognize-act cycles

Overview What is Knowledge? Knowledge Classification. Knowledge Representation Schemas. Representation. Logical Representations. Graphical Representations. Production Rule Representations. Frame Representations

Information retrieval when facing a new situation – The information is stored in frames with slots – Some of the slots trigger actions, causing new situations Frames are templates – Which are to be filled-in in a situation – Filling them in causes an agent to Undertake actions and retrieve other frames Frames are extensions of record datatype in databases – Also very similar to objects in OOP

Flexibility in Frames Slots in a frame can contain – Information for choosing a frame in a situation – Relationships between this and other frames – Procedures to carry out after various slots filled – Default information to use where input is missing – Blank slots - left blank unless required for a task – Other frames, which gives a hierarchy

Example Frame