Knowledge representation methods جلسه سوم. KR is AI bottleneck The most important ingredient in any expert system is knowledge. The power of expert systems.

Slides:



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

First-Order Logic Chapter 8.
March 2, 2006AI: Chapter 8: First-Order Logic1 Artificial Intelligence Chapter 8: First-Order Logic Michael Scherger Department of Computer Science Kent.
First-Order Logic: Better choice for Wumpus World Propositional logic represents facts First-order logic gives us Objects Relations: how objects relate.
Propositional Logic Reading: C , C Logic: Outline Propositional Logic Inference in Propositional Logic First-order logic.
Knowledge Representation
Artificial Intelligence Lecture No. 10 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
Artificial Intelligence Knowledge-based Agents Russell and Norvig, Ch. 6, 7.
Logic in general Logics are formal languages for representing information such that conclusions can be drawn Syntax defines the sentences in the language.
Logic. Propositional Logic Logic as a Knowledge Representation Language A Logic is a formal language, with precisely defined syntax and semantics, which.
First-Order Logic Chapter 8.
1 Problem Solving CS 331 Dr M M Awais Representational Methods Formal Methods Propositional Logic Predicate Logic.
Knowledge Representation using First-Order Logic (Part II) Reading: Chapter 8, First lecture slides read: Second lecture slides read:
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.
FIRST-ORDER LOGIC FOL or FOPC
Logical Agents Chapter 7 Feb 26, Knowledge and Reasoning Knowledge of action outcome enables problem solving –a reflex agent can only find way from.
First-Order Logic Chapter 8. Problem of Propositional Logic  Propositional logic has very limited expressive power –E.g., cannot say "pits cause breezes.
First-Order Logic Chapter 8. Outline Why FOL? Syntax and semantics of FOL Using FOL Wumpus world in FOL Knowledge engineering in FOL.
Predicate Calculus.
CE An introduction to Artificial Intelligence CE Chapter 8: First Order Logic Ramin Halavati In which we notice that.
Building Knowledge-Driven DSS and Mining Data
FIRST ORDER LOGIC Levent Tolga EREN.
Knowledge Representation. Introduction Knowledge is organized in knowledge base in one or more configurations. A good knowledge representation ‘naturally’
Knowledge Acquisition. Concepts of Knowledge Engineering Knowledge engineering The engineering discipline in which knowledge is integrated into computer.
Logical Agents Chapter 7 (based on slides from Stuart Russell and Hwee Tou Ng)
Pattern-directed inference systems
1 Logical Agents CS 171/271 (Chapter 7) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Logical Agents Logic Propositional Logic Summary
Artificial Intelligence Knowledge Representation.
© Copyright 2008 STI INNSBRUCK Intelligent Systems Predicate Logic.
Limitation of propositional logic  Propositional logic has very limited expressive power –(unlike natural language) –E.g., cannot say "pits cause breezes.
First-Order Logic Chapter 8. Outline Why FOL? Syntax and semantics of FOL Using FOL Wumpus world in FOL Knowledge engineering in FOL.
CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes Jan 17, 2012.
Logical Agents Chapter 7. Knowledge bases Knowledge base (KB): set of sentences in a formal language Inference: deriving new sentences from the KB. E.g.:
CS 666 AI P. T. Chung First-Order Logic First-Order Logic Chapter 8.
1 Logical Agents CS 171/271 (Chapter 7) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Logical Agents Chapter 7. Outline Knowledge-based agents Logic in general Propositional (Boolean) logic Equivalence, validity, satisfiability.
CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes Jan 24, 2012.
Intelligent Control Methods Lecture 7: Knowledge representation Slovak University of Technology Faculty of Material Science and Technology in Trnava.
Artificial Intelligence First-Order Logic (FOL). Outline of this Chapter The need for FOL? What is a FOL? Syntax and semantics of FOL Using FOL.
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Lecture 11 Jim Martin.
First-Order Logic Chapter 8 (not 8.1). Outline Why FOL? Why FOL? Syntax and semantics of FOL Syntax and semantics of FOL Using FOL Using FOL Wumpus world.
First-Order Logic. Outline Why FOL? Syntax and semantics of FOL Using FOL Knowledge engineering in FOL.
LOGIC. Logic in general  Logics are formal languages for representing information such that conclusions can be drawn  Syntax defines the sentences in.
First-Order Logic Chapter 8. Outline Why FOL? Syntax and semantics of FOL Using FOL Wumpus world in FOL Knowledge engineering in FOL.
First-Order Logic Semantics Reading: Chapter 8, , FOL Syntax and Semantics read: FOL Knowledge Engineering read: FOL.
ARTIFICIAL INTELLIGENCE Lecture 2 Propositional Calculus.
1 UNIT-3 KNOWLEDGE REPRESENTATION. 2 Agents that reason logically(Logical agents) A Knowledge based Agent The Wumpus world environment Representation,
CHAPTER 12 Knowledge Representation. Once acquired, knowledge must be organized for use.
First-Order Logic Chapter 8. Problem of Propositional Logic  Propositional logic has very limited expressive power –E.g., cannot say "pits cause breezes.
B.Ombuki COSC 3P711 LOGIC: Knowledge representation Propositional Logic: ch.7 First-Order-Logic: ch.8.
Artificial Intelligence Knowledge Representation.
Knowledge Engineering. Sources of Knowledge - Books - Journals - Manuals - Reports - Films - Databases - Pictures - Audio and Video Tapes - Flow Diagram.
16 April 2011 Alan, Edison, etc, Saturday.. Knowledge, Planning and Robotics 1.Knowledge 2.Types of knowledge 3.Representation of knowledge 4.Planning.
Lecture 14. Recap Problem Solving GA Simple GA Examples of Mutation and Crossover Application Areas.
Artificial Intelligence Logical Agents Chapter 7.
Logical Agents. Inference : Example 1 How many variables? 3 variables A,B,C How many models? 2 3 = 8 models.
LOGICAL AGENTS CHAPTER 7 AIMA 3. OUTLINE  Knowledge-based agents  Wumpus world  Logic in general - models and entailment  Propositional (Boolean)
Knowledge Representation. A knowledge base can be organised in several different configurations to facilitate fast inferencing Knowledge Representation.
Knowledge Representation Techniques
First-Order Logic Chapter 8.
Knowledge Representation using First-Order Logic
EA C461 – Artificial Intelligence Logical Agent
Knowledge Representation
Artificial Intelligence Lecture 11: First Order Logic
Artificial Intelligence
Knowledge Representation I (Propositional Logic)
Deniz Beser A Fundamental Tradeoff in Knowledge Representation and Reasoning Hector J. Levesque and Ronald J. Brachman.
Habib Ullah qamar Mscs(se)
Presentation transcript:

Knowledge representation methods جلسه سوم

KR is AI bottleneck The most important ingredient in any expert system is knowledge. The power of expert systems resides in the specific, high-quality knowledge they contain about task domains. AI researchers will continue to explore and add to the current repertoire of knowledge representation and reasoning methods. But in knowledge resides the power. Because of the importance of knowledge in expert systems and because the current knowledge acquisition method is slow and tedious, much of the future of expert systems depends on breaking the knowledge acquisition bottleneck and in codifying and representing a large knowledge infrastructure.

Overview of knowledge representation Production rules Semantic networks/web-ontologies Frames Propositional logic Predicate logic Probability (next meeting)

Production rules Production rules are in the form of condition-action pairs: “IF this condition(or premises or antecedent) occurs, THEN some action (or result, or conclusion, or consequence) will (or should) occur.” Ideally, each production rule implements an autonomous chunk of expertise that can be developed and modified independently of other rules Production systems are composed of – production rules – working memory, and – a control Rules can be used as descriptive tools for problem-solving heuristics, replacing a more formal analysis of the problem – incomplete but useful guides to make search decisions Rules can be viewed as simulation of the cognitive behavior of human experts

Advantages and limitations of rules Advantages Rules are easy to understand Inference and explanations are easily derived Modifications and maintenance are relatively easy Uncertainty is easily combined with rules Each rule is usually independent of all others Limitations Complex knowledge requires many, many rules: creating problems in using and maintaining the systems Builders likes rules: preventing the choices of more appropriate representation Systems with many rules may have a search limitation in the control program: difficulty in evaluating rule-based systems and making inferences

semantic network A semantic network is a graphic notation for representing knowledge in patterns ofinterconnected nodes and arcs. It is one way for knowledge visualization and presentation. What is common to all semantic networks is a declarative graphic representation that can be used either to represent knowledge or to support automated systems for reasoning about knowledge.

Semantic networks/web Nodes represent objects and descriptive information about those objects – Objects can be any physical item such as a book, car, desk, a person, and etc. – Nodes can also be concepts, events, or actions, Netwon’s law, election, building house, and etc. – Attributes of an object can also be used as nodes, e.g. color, size, class, age, and etc. Links show the relationship between various objects and descriptive factors – Common links are of “IS-A”, “HAS-A”, “A-KIND-OF”, etc. Inheritance is a useful feature of semantic network – Various characteristics of some nodes can inherit the characteristics of others

Semantic network example

Object, Attributes, and Values Objects, attributes, and values, the O-A-V triplet O-A-V can be used as a common way to represent knowledge The O-A-V triplet can be used to characterize all the knowledge in a semantic net. مثال DBPedia

Advantages and limitations Advantages Flexibility in adding new nodes and links The visualization is easy to understand Inheritance Similarity to that of human information storage Ability to reason and create definition statements between nonlinked nodes XML/RDF standards for definition of nodes and relationships Limitations Inheritance has difficulty with exceptions The perception of the situation can place relevant facts at inappropriate points Procedural knowledge is difficult to represent

Frames A frame is a data structure that includes all the knowledge about a particular object (an application OOP to expert systems) A frame groups values that describe one object The knowledge is partitioned into slots A slot can describe declarative and procedural knowledge

A car frame

Propositional logic a formal way for representing complex statements that can be true or false Propositional logic is the simplest logic propositions is a statement that may be true or false We use letters to show propositions

logical connective The proposition symbols P1, P2 etc are sentences

Wumpus world sentences

Pros and cons of propositional logic Propositional logic is declarative Propositional logic allows partial/disjunctive/negated information –(unlike most data structures and databases) Propositional logic is compositional: –meaning of B 1,1  P 1,2 is derived from meaning of B 1,1 and of P 1,2 Meaning in propositional logic is context- independent (unlike natural language, where meaning depends on context)  Propositional logic has very limited expressive power (unlike natural language) –E.g., cannot say "pits cause breezes in adjacent squares“ except by writing one sentence for each square

Beyond Propositional logic Propositional logic not expressive enough –In Wumpus world we needed to explicitly write every case of Breeze & Pit relation –Facts = propositions –“All squares next to pits are breezy” “Regular” programming languages mix facts (data) and procedures (algorithms) –World[2,2]=Pit –Cannot deduce/compose facts automatically –Declarative vs. Procedural

First-Order Logic Propositional logic has very limited expressive power (unlike natural language) E.g., cannot say “pits cause breezes in adjacent squares” except by writing one sentence for each square Whereas propositional logic assumes world contains facts, first- order logic (like natural language) assumes the world contains –Objects: people, houses, numbers, theories, Ronald McDonald, colors, baseball games, wars, centuries... –Relations: red, round, bogus, prime, multistoried..., brother of, bigger than, inside, part of, has color, occurred after, owns, comes between,... –Functions: father of, best friend, third inning of, one more than, end of –Connectives : , , , ,  –Quantifiers : ,  –Universal:   x : (Man(x) ) Mortal(x) ) –Existential:  y : (Father(y, fred ) )

Syntax of FOL: Basic elements ConstantsKingJohn, 2, NUS,... PredicatesBrother, >,... FunctionsSqrt, LeftLegOf,... Variablesx, y, a, b,... Connectives , , , ,  Equality= Quantifiers , 

Truth in first-order logic Sentences are true with respect to a model and an interpretation Model contains objects (domain elements) and relations among them Interpretation specifies referents for constant symbols → objects predicate symbols → relations function symbols →functional relations An atomic sentence predicate(term 1,...,term n ) is true iff the objects referred to by term 1,...,term n are in the relation referred to by predicate

Syntax of FOL: Basic elements

Wumpus world sentences in FOL