© 2000-2012 Franz Kurfess Knowledge-Based Systems CSC 480: Artificial Intelligence Dr. Franz J. Kurfess Computer Science Department Cal Poly.

Slides:



Advertisements
Similar presentations
Knowledge Representation using First-Order Logic
Advertisements

ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
CS344: Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 10– Club and Circuit Examples.
Computer Science Department California Polytechnic State University San Luis Obispo, CA, U.S.A. Franz J. Kurfess Knowledge Retrieval.
1 © Franz J. Kurfess Constrained Access Franz J. Kurfess Cal Poly SLO Computer Science Department.
© 2005 Franz J. Kurfess Expert System Examples 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.
© Franz Kurfess Project Topics 1 Topics for Master’s Projects and Theses -- Winter Franz J. Kurfess Computer Science Department Cal Poly.
Knowledge Acquisitioning. Definition The transfer and transformation of potential problem solving expertise from some knowledge source to a program.
© 2002 Franz J. Kurfess Introduction 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.
© 2002 Franz J. Kurfess Introduction 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.
© 2001 Franz J. Kurfess Introduction 1 CPE/CSC 580: Knowledge Management Dr. Franz J. Kurfess Computer Science Department Cal Poly.
Represent the following sentences in first-order logic, using a consistent vocabulary
Knowledge Representation using First-Order Logic (Part III) This lecture: R&N Chapters 8, 9 Next lecture: Chapter 13; Chapter (Please read lecture.
Building knowledge bases The fundamental problem of understanding intelligence is not the identification of a few powerful techniques, but rather the question.
CE An introduction to Artificial Intelligence CE Chapter 8: First Order Logic Ramin Halavati In which we notice that.
© 2001 Franz J. Kurfess Knowledge Retrieval 1 CPE/CSC 580: Knowledge Management Dr. Franz J. Kurfess Computer Science Department Cal Poly.
© 2001 Franz J. Kurfess Introduction 1 CPE/CSC 580: Knowledge Management Dr. Franz J. Kurfess Computer Science Department Cal Poly.
First-Order Logic Knowledge Representation Reading: Chapter 8, , FOL Syntax and Semantics read: FOL Knowledge Engineering read:
Semantic Web Technologies Lecture # 2 Faculty of Computer Science, IBA.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Dr. Samy Abu Nasser Faculty of Engineering & Information Technology Artificial Intelligence.
Chapter 14: Artificial Intelligence Invitation to Computer Science, C++ Version, Third Edition.
Knowledge representation
Applications of Propositional Logic
School of Computing FACULTY OF ENGINEERING Developing a methodology for building small scale domain ontologies: HISO case study Ilaria Corda PhD student.
Artificial Intelligence Building Knowledge Base Chapter 8.
INTRODUCTION TO SCIENCE Chapter 1 Physical Science.
Fall 98 Introduction to Artificial Intelligence LECTURE 7: Knowledge Representation and Logic Motivation Knowledge bases and inferences Logic as a representation.
Major objective of this course is: Design and analysis of modern algorithms Different variants Accuracy Efficiency Comparing efficiencies Motivation thinking.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
LOGIC AND ONTOLOGY Both logic and ontology are important areas of philosophy covering large, diverse, and active research projects. These two areas overlap.
1 Introduction to Software Engineering Lecture 1.
CS344: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 20,21: Application of Predicate Calculus.
1 Knowledge Representation CS 171/CS How to represent reality? Use an ontology (a formal representation of reality) General/abstract domain Specific.
Artificial Intelligence Chapter 18. Representing Commonsense Knowledge.
Programming Languages and Design Lecture 3 Semantic Specifications of Programming Languages Instructor: Li Ma Department of Computer Science Texas Southern.
Generic Tasks by Ihab M. Amer Graduate Student Computer Science Dept. AUC, Cairo, Egypt.
© 2002 Franz J. Kurfess Introduction 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.
Of 33 lecture 1: introduction. of 33 the semantic web vision today’s web (1) web content – for human consumption (no structural information) people search.
Some Thoughts to Consider 8 How difficult is it to get a group of people, or a group of companies, or a group of nations to agree on a particular ontology?
Lecture 8-2CS250: Intro to AI/Lisp What do you mean, “What do I mean?” Lecture 8-2 November 18 th, 1999 CS250.
© 2000 Franz Kurfess System Design Methods 1 CSC 205: Software Engineering I Dr. Franz J. Kurfess Computer Science Department Cal Poly.
Pattern Recognition. What is Pattern Recognition? Pattern recognition is a sub-topic of machine learning. PR is the science that concerns the description.
COMPUTER SYSTEM FUNDAMENTAL Genetic Computer School INTRODUCTION TO ARTIFICIAL INTELLIGENCE LESSON 11.
Definition and Technologies Knowledge Representation.
Artificial Intelligence Logical Agents Chapter 7.
Knowledge Representation Part I Ontology Jan Pettersen Nytun Knowledge Representation Part I, JPN, UiA1.
5 Systems Analysis and Design in a Changing World, Fourth Edition.
5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.
Knowledge Representation Techniques
COMP6215 Semantic Web Technologies
First-Order Logic Knowledge Representation
Ontology From Wikipedia, the free encyclopedia
Artificial Intelligence First Order Logic
Notes 8: Predicate logic and inference
First-Order Logic Knowledge Representation
First-Order Logic Knowledge Representation
First-Order Logic Knowledge Representation
CSE 415 Introduction to Artificial Intelligence Winter 2004
Introduction to Artificial Intelligence
Logic for Artificial Intelligence
TA : Mubarakah Otbi, Duaa al Ofi , Huda al Hakami
Knowledge Representation using First-Order Logic (Part III)
First-Order Logic Knowledge Representation
CSE 415 Introduction to Artificial Intelligence Winter 2003
Deniz Beser A Fundamental Tradeoff in Knowledge Representation and Reasoning Hector J. Levesque and Ronald J. Brachman.
Representations & Reasoning Systems (RRS) (2.2)
Building knowledge bases
Presentation transcript:

© Franz Kurfess Knowledge-Based Systems CSC 480: Artificial Intelligence Dr. Franz J. Kurfess Computer Science Department Cal Poly

© Franz Kurfess Knowledge-Based Systems Course Overview  Introduction  Intelligent Agents  Search  problem solving through search  informed search  Games  games as search problems  Knowledge and Reasoning  reasoning agents  propositional logic  predicate logic  knowledge-based systems  Learning  learning from observation  neural networks  Conclusions

© Franz Kurfess Knowledge-Based Systems Chapter Overview Knowledge-Based Systems  Motivation  Objectives  Evaluation Criteria  Terminology  Data  Knowledge  Information  Knowledge Engineering  Methodology  Ontologies  Example Domains  Electronic Circuits  Important Concepts and Terms  Chapter Summary

© Franz Kurfess Knowledge-Based Systems Logistics  Term Project  Deadline Part 2  Assignment of Evaluation Teams  Lab and Homework Assignments  Draft of Assignment 3  Final Exam  Take-Home  Extra Credit  “AI Nuggets”

© Franz Kurfess Knowledge-Based Systems Bridge-In

© Franz Kurfess Knowledge-Based Systems Pre-Test

© Franz Kurfess Knowledge-Based Systems Motivation  without a good knowledge representation scheme, reasoning becomes very difficult  a balance must be found between expressiveness of the representation language, understandability, and efficiency of the inference mechanism  it is good to have a general-purpose methodology that can be refined for specific domains or problems  for performance reasons, sometimes specific schemes, methods, or inference mechanisms are used

© Franz Kurfess Knowledge-Based Systems Objectives  distinguish between different phases in the knowledge representation process  learn to apply the concepts of predicate logic for the representation of knowledge  understand the difficulties of finding a good knowledge representation scheme  general-purpose  domain- or task-specific  distinguish the tasks and activities of a knowledge engineer from those of a system designer of programmer

© Franz Kurfess Knowledge-Based Systems Evaluation Criteria

© Franz Kurfess Knowledge-Based Systems Terminology  Data  fixed relations between individual items  often arranged as vectors or arrays  interpretation is usually provided for the collection of data as a whole  Knowledge  separate, possibly dynamic relations between individual items  interpretation must be done for individual items  Information  generic term, used in a very general sense  precisely defined for information theory

© Franz Kurfess Knowledge-Based Systems Knowledge Engineering  often performed by a knowledge engineer  intermediary between users, domain experts and programmers  must know enough about the domain  objects  relationships  must be comfortable in the representation language  encoding of objects and relationships  must understand the implementation of the inference mechanism  performance issues  explanation of results

© Franz Kurfess Knowledge-Based Systems Knowledge Engineering Methodology  domain  objects, facts  vocabulary  predicates, functions, constants in the language of logic  ideally results in an ontology  background knowledge  general knowledge about the domain  specify the axioms about the terms in the ontology  specific problem  description of the instances of concepts and objects that determine the problem to be investigated  queries  requests answers from the knowledge base/inference mechanism

© Franz Kurfess Knowledge-Based Systems Example: Electronic Circuits  domain  digital circuits, wires, gates, signals, input and output terminals  types of gates: AND, OR, XOR, NOT  vocabulary  constants for naming gates: X 1, X 2, …  functions for gate types  Type(X 1 ) = XOR  functions for terminals  Out(1, X 1 ) for the only output of X 1  In(n, X 1 ) for the input n of X 1  predicates for connectivity  Connected(Out(1, X 1 ), In(2, X 2 ) )  two objects and a function for the signal values  On, Off  Signal(Out(1, X 1 ))

© Franz Kurfess Knowledge-Based Systems Example: Electronic Circuits (cont.)  background knowledge  two connected terminals have the same signal  ∀ t 1, t 2 Connected(t 1, t 2 )  Signal(t 1 ) = Signal(t 2 )  signals must be either on of off, but not both  ∀ tSignal(t)= On  Signal(t) = Off On  Off  connections go both ways (commutative)  ∀ t 1, t 2 Connected(t 1, t 2 )  Connected(t 2, t 1 )  definition of OR  ∀ gType(g)= OR  Signal(Out(1,g)) = On  ∃ n Signal(In(n,g)) = On  definition of AND  ∀ gType(g)= AND  Signal(Out(1,g)) = Off  ∃ n Signal(In(n,g)) = Off  definition of XOR (sometimes denoted by ⊕ )  ∀ gType(g)= XOR  Signal(Out(1,g)) = On  Signal(In(1,g))  Signal(In(2,g))  definition of NOT  ∀ gType(g)= NOT  Signal(Out(1,g))  Signal(In(1,g))

© Franz Kurfess Knowledge-Based Systems Example: Electronic Circuits (cont.)  specific problem: circuit C 1 to be modeled Type(X 1 ) = XOR; Type(X 2 ) = XOR; Type(A 1 ) = AND; Type(A 2 ) = AND; Type(O 1 ) = OR; Connected(In(1, C 1 ), In(1, X 1 )); Connected(In(1, C 1 ), In(1, A 1 )); Connected(In(2, C 1 ), In(2, X 1 )); Connected(In(2, C 1 ), In(2, A 1 )); Connected(In(3, C 1 ), In(2, X 2 )); Connected(In(3, C 1 ), In(1, A 2 )); Connected(Out(1, X 1 ), In(1, X 2 )); Connected(Out(1, X 1 ), In(2, A 2 )); Connected(Out(1, A 2 ), In(1, O 1 )); Connected(Out(1, A 1 ), In(2, O 1 )); Connected(Out(1, X 2 ), Out(1, C 1 )); Connected(Out(1, O 1 ), Out(2, C 1 )); C1C1 X1X1 X2X2 A2A2 A1A1 O1O

© Franz Kurfess Knowledge-Based Systems Example: Electronic Circuits (cont.)  queries  When is the first output of C 1 (sum bit) off and the second one (carry bit) on? ∃ i 1, i 2, i 3 Signal(In(1, C 1 )= i 1  Signal(In(2, C 1 ) = i 2  Signal(In(3, C 1 ) = i 3  Signal(Out(1, C 1 ) = Off  Signal(Out(2, C 1 ) = On  Give all combinations of the values for the terminals of C 1 ∃ i 1, i 2, i 3, o 1, o 2 Signal(In(1, C 1 )= i 1  Signal(In(2, C 1 ) = i 2  Signal(In(3, C 1 ) = i 3  Signal(Out(1, C 1 ) = o 1  Signal(Out(2, C 1 ) = o 2

© Franz Kurfess Knowledge-Based Systems Ontologies  define the terminology about the objects and their relationships in a systematic way  closely related to taxonomies, classifications  ontologies don’t have to be hierarchical  emphasis on the terms to describe objects, relationships, not on the properties of objects or specific relationships between objects  general ontology  convergence of a multitude of special-purpose ontologies  should be applicable to any special-purpose domain

© Franz Kurfess Knowledge-Based Systems Example General Ontology there is no generally agreed upon ontology Anything AbstractObjectsPhysicalObjectsEvents SetsNumbersRepresentationalObjects CategoriesSentences ThingsStuffIntervalsPlacesProcesses MeasurementsAnimalsAgents Humans MomentsSolidLiquidGas

© Franz Kurfess Knowledge-Based Systems Issues for Ontologies  categories  measures  composite objects  time, space, and change  events and processes  physical objects  substances  mental objects and beliefs

© Franz Kurfess Knowledge-Based Systems Categories  categories are very important for reasoning  almost always organized as taxonomic hierarchies  general statements about related objects can be made easily  specific properties of instances can either be inferred, or specified explicitly  inheritance  similar to OO programming

© Franz Kurfess Knowledge-Based Systems Measures  values for properties of objects  frequently expressed quantitatively  number and unit function  allows the use of ordering function on objects

© Franz Kurfess Knowledge-Based Systems Composite Objects  objects frequently can be decomposed into parts, or composed into larger objects  often expressed through PartOf relation  allows grouping of objects into hierarchies  frequently the internal structure of objects is of importance  allows general reasoning about certain aspects of objects

© Franz Kurfess Knowledge-Based Systems Time, Space, and Change  can be described around the notion of events and processes  events are discrete  processes are continuous  sometimes also called liquid events

© Franz Kurfess Knowledge-Based Systems Events  an event is an object with temporal and spatial extent  it occurs somewhere for a certain duration  this viewpoint implies some similarities with physical objects  also have temporal and spatial extent  events may also have internal structure  intervals are special events  they include all sub-events during a given time period  places are special events  fixed in time, with a temporal extent

© Franz Kurfess Knowledge-Based Systems Objects  sometimes it is useful to view some types of objects as fluents  may change during its existence, but still be considered as an object  e.g. the country of Germany  the president of the U.S.

© Franz Kurfess Knowledge-Based Systems Substances  allows the grouping of large numbers of primitive objects into “stuff”  denoted by mass nouns in contrast to count nouns  dividing stuff into smaller pieces yields the same type of stuff  quantity is different  intrinsic properties  belong to the substance of an object  are retained under subdivisions  extrinsic properties  come from the specific object as a whole  change or get lost under subdivision

© Franz Kurfess Knowledge-Based Systems Mental Objects and Beliefs  mental objects are “in one’s head”  allows the agent to reason about its mental processes  some mental processes are the reasoning processes themselves  the agent then can perform higher-level reasoning  leads to considerable technical and philosophical complications  assumed to be a pre-condition for consciousness  beliefs are used to make statements about mental objects

© Franz Kurfess Knowledge-Based Systems Example Domains  Internet Shopping  see [AIMA-2, Chapter 10]

© Franz Kurfess Knowledge-Based Systems Post-Test  phases of the knowledge engineering methodology  significance of ontologies  relevant aspects of ontologies

© Franz Kurfess Knowledge-Based Systems Evaluation  Criteria

© Franz Kurfess Knowledge-Based Systems Important Concepts and Terms  measure  mental object  object  ontology  physical object  predicate logic  process  propositional logic  rule  space  substance  time  vocabulary  agent  automated reasoning  belief  category  change  composite object  domain  event  hierarchy  inference  knowledge engineering  knowledge representation  logic

© Franz Kurfess Knowledge-Based Systems Chapter Summary  knowledge representation is a fundamental aspect of reasoning systems  knowledge representation is often done in stages  domain selection  vocabulary definition  encoding of background knowledge  specification of the problem  formulation of queries  ontologies are used for capturing the terminology of a domain  knowledge engineers act as intermediaries between users, domain experts and programmers

© Franz Kurfess Knowledge-Based Systems