Artificial Intelligence 4. Knowledge Representation

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

1 Knowledge Representation Introduction KR and Logic.
Artificial Intelligence 12. Two Layer ANNs
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.
Knowledge Representation
Knowledge Representation
CSM6120 Introduction to Intelligent Systems Knowledge representation.
Knowledge Representation Methods
Knowledge Representation I (Propositional Logic) CSE 473.
Copyright © Cengage Learning. All rights reserved.
Knowledge representation methods جلسه سوم. KR is AI bottleneck The most important ingredient in any expert system is knowledge. The power of expert systems.
Review Topics Test 1. Background Topics Definitions of Artificial Intelligence & Turing Test Physical symbol system hypothesis vs connectionist approaches.
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.
 Predicate: A sentence that contains a finite number of variables and becomes a statement when values are substituted for the variables. ◦ Domain: the.
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.
Early Work Masterman: 100 primitive concepts, 15,000 concepts Wilks: Natural Language system using semantic networks Shapiro: Propositional calculus based.
Pattern-directed inference systems
Artificial Intelligence Knowledge Representation Logical Agents
1 Predicate (Relational) Logic 1. Introduction The propositional logic is not powerful enough to express certain types of relationship between propositions.
KNOWLEDGE BASED SYSTEMS
Knowledge Representation
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.
Chapter 7. Propositional and Predicate Logic Fall 2013 Comp3710 Artificial Intelligence Computing Science Thompson Rivers University.
Artificial Intelligence Knowledge Representation Department of Computer Science & Enggineering V. R. Palekar.
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.
Artificial Intelligence Knowledge Representation.
Definition and Technologies Knowledge Representation.
Artificial Intelligence Logical Agents Chapter 7.
Knowledge Representation Lecture 2 out of 5. Last Week Intelligence needs knowledge We need to represent this knowledge in a way a computer can process.
Proof And Strategies Chapter 2. Lecturer: Amani Mahajoub Omer Department of Computer Science and Software Engineering Discrete Structures Definition Discrete.
Propositional Logic: Logical Agents (Part I)
Knowledge Representation & Logic
Logic.
Knowledge Representation Techniques
By P. S. Suryateja Asst. Professor, CSE Vishnu Institute of Technology
Chapter 7. Propositional and Predicate Logic
Knowledge Representation and Reasoning
Propositional Logic Session 3
The function of knowledge representation scheme is
Knowledge Representation
Artificial Intelligence (CS 370D)
Knowledge Representation
CS201: Data Structures and Discrete Mathematics I
Logic Programming Languages
Knowledge Representation and Inference
The Scientific Method.
Artificial Intelligence Lecture 11: First Order Logic
Artificial Intelligence
KNOWLEDGE REPRESENTATION
Artificial Intelligence Chapter 15. The Predicate Calculus
Back to “Serious” Topics…
Discrete Mathematics CMP-200 Propositional Equivalences, Predicates & Quantifiers, Negating Quantified Statements Abdul Hameed
Logical Entailment Computational Logic Lecture 3
Chapter 7. Propositional and Predicate Logic
CS 416 Artificial Intelligence
Knowledge Representation I (Propositional Logic)
Artificial Intelligence 12. Two Layer ANNs
Knowledge Representation
Predicates and Quantifiers
CSNB234 ARTIFICIAL INTELLIGENCE
CS201: Data Structures and Discrete Mathematics I
ece 720 intelligent web: ontology and beyond
Logical and Rule-Based Reasoning Part I
Representations & Reasoning Systems (RRS) (2.2)
Habib Ullah qamar Mscs(se)
Presentation transcript:

Artificial Intelligence 4. Knowledge Representation Course V231 Department of Computing Imperial College © Simon Colton

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

4.1 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 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 Semantics 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

First Order Predicate Logic More expressive logic than propositional And one we will use a lot in this course Later lecture all about first order predicate logic Syntax allows Constants, variables, predicates, functions and quantifiers So, we say something is true for all objects (universal) Or something is true for at least one object (existential) Semantics Working out the truth of statement This can be done using rules of deduction

Example Sentence In English: In first order predicate logic: “Every Monday and Wednesday I go to John’s house for dinner” In first order predicate logic: X ((day_of_week(X, monday) day_of_week(X, weds)) eat(me, dinner))). (go_to(me, house_of(john) Note the change from “and” to “or” Translating is problematic

Higher Order Predicate Logic More expressive than first order predicate logic Allows quantification over functions and predicates, as well as objects For example We can say that all our polynomials have a zero at 17: f (f(17)=0). Working at the meta-level Important to AI, but not often used

Other Logics Fuzzy logic Multi-valued logics Modal logics 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)

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

Graphical Representations 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?

Better Graphical Representation Because the formalism is the same We can guess that Julia’s age is similar to Bryan’s

Semantic Network Formalisms Used a lot for natural language understanding Represent two sentences by graphs Sentences with same meaning have exactly same graphs Conceptual Dependency Theory Roger Schank’s brainchild Concepts are nodes, relationships are edges Narrow down labels for edges to a very few possibilities Problem: Not clear whether reduction to graphs can be automated for all sentences in a natural language

Conceptual Graphs John Sowa Each graph represents a single proposition Concept nodes can be: Concrete (visualisable) such as restaurant, my dog spot Abstract (not easily visualisable) such as anger Edges do not have labels Instead, we introduce conceptual relation nodes Many other considerations in the formalism See Russell and Norvig for details

Example Conceptual Graph Advantage: Single relationship between multiple concepts is easily representable

Production Rule Representations Consists of <condition,action> 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

Example Production Rule As reported in Doug Lenat’s PhD thesis 102. After creating a new generalization G of Concept C Consider looking for non-examples of G This was paraphrased In general, we have to be more concrete About exactly when to fire and what to do

Frame Representations Information retrieval in face of new situation The information is store 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