Knowledge Representation & Logic

Slides:



Advertisements
Similar presentations
ARCHITECTURES FOR ARTIFICIAL INTELLIGENCE SYSTEMS
Advertisements

Problem Solving Well-formed predicate calculus expressions provide a means of describing objects and relations in a problem domain and inference rule.
Knowledge Representation
CPSC 322 Introduction to Artificial Intelligence November 5, 2004.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 8 Slide 1 System modeling 2.
Problem Solving and Search in AI Part I Search and Intelligence Search is one of the most powerful approaches to problem solving in AI Search is a universal.
Case-based Reasoning System (CBR)
Dr Eleni Mangina – COURSE: LOGIC PROGRAMMING (during a joint degree with Fudan University in Software Engineering) DEPT. OF COMPUTER SCIENCE UCD Problem.
Logical Agents Chapter 7 Feb 26, Knowledge and Reasoning Knowledge of action outcome enables problem solving –a reflex agent can only find way from.
Representation  A farmer wants to move himself, a hunrgry silver fox, a hungry, fat goose, and a sack of tasty grain across a river. Unfortunately, his.
Objects Objects are at the heart of the Object Oriented Paradigm What is an object?
Course Instructor: Aisha Azeem
Domain-Specific Software Engineering Alex Adamec.
RDF (Resource Description Framework) Why?. XML XML is a metalanguage that allows users to define markup XML separates content and structure from formatting.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
GENERAL CONCEPTS OF OOPS INTRODUCTION With rapidly changing world and highly competitive and versatile nature of industry, the operations are becoming.
Knowledge representation
CS654: Digital Image Analysis Lecture 3: Data Structure for Image Analysis.
LDK R Logics for Data and Knowledge Representation Modeling First version by Alessandro Agostini and Fausto Giunchiglia Second version by Fausto Giunchiglia.
110/19/2015CS360 AI & Robotics AI Application Areas  Neural Networks and Genetic Algorithms  These model the structure of neurons in the brain  Humans.
44220: Database Design & Implementation Modelling the ‘Real’ World Ian Perry Room: C41C Ext.: 7287
Semantic web course – Computer Engineering Department – Sharif Univ. of Technology – Fall Knowledge Representation Semantic Web - Fall 2005 Computer.
Generic Tasks by Ihab M. Amer Graduate Student Computer Science Dept. AUC, Cairo, Egypt.
Data Structures and Algorithms Dr. Tehseen Zia Assistant Professor Dept. Computer Science and IT University of Sargodha Lecture 1.
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.
Architecture View Models A model is a complete, simplified description of a system from a particular perspective or viewpoint. There is no single view.
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?
Knowledge Representation Fall 2013 COMP3710 Artificial Intelligence Computing Science Thompson Rivers University.
Onlinedeeneislam.blogspot.com1 Design and Analysis of Algorithms Slide # 1 Download From
NATURAL LANGUAGE PROCESSING
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.
Hierarchical Modeling.  Explain the 3 different types of model for which computer graphics is used for.  Differentiate the 2 different types of entity.
Artificial Intelligence Knowledge Representation.
16 April 2011 Alan, Edison, etc, Saturday.. Knowledge, Planning and Robotics 1.Knowledge 2.Types of knowledge 3.Representation of knowledge 4.Planning.
Artificial Intelligence Logical Agents Chapter 7.
© 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U.S. only, with content that may be different from the U.S.
Knowledge Representation Part I Ontology Jan Pettersen Nytun Knowledge Representation Part I, JPN, UiA1.
Artificial Intelligence 4. Knowledge Representation
Knowledge Representation
Analysis Classes Unit 5.
The function of knowledge representation scheme is
Abstract descriptions of systems whose requirements are being analysed
WELCOME TO COSRI IBADAN
International Research and Development Institute Uyo
Knowledge Representation
Knowledge Representation
Survey of Knowledge Base Content
Unit# 9: Computer Program Development
CSc4730/6730 Scientific Visualization
What would be our focus ? Geometry deals with Declarative or “What is” knowledge. Computer Science deals with Imperative or “How to” knowledge 12/25/2018.
Chapter 5 Architectural Design.
KNOWLEDGE REPRESENTATION
Artificial Intelligence: Logic agents
Hierarchical Modeling & Constructive Solid Geometry
Chapter 11 user support.
Requirement Analysis using
What would be our focus ? Geometry deals with Declarative or “What is” knowledge. Computer Science deals with Imperative or “How to” knowledge 2/23/2019.
6.001 SICP Variations on a Scheme
Knowledge Representation I (Propositional Logic)
Knowledge Representation
Semantic Nets and Frames
Chapter 5 Architectural Design.
Stumpf and Teague Object-Oriented Systems Analysis and Design with UML
Some Programming Paradigms
S.JOSEPHINE THERESA, DEPT OF CS, SJC, TRICHY-2
Entity-Relationship Modelling
Stumpf and Teague Object-Oriented Systems Analysis and Design with UML
Visual Programming Languages ICS 539 Icon System Visual Languages & Visual Programming, Chapter 1, Editor Chang, 1990 ICS Department KFUPM Sept. 1,
Software Architecture & Design
Presentation transcript:

Knowledge Representation & Logic Concepts: Semantic Nets & propositional logic Readings: Semantic Nets (Winston chap. 2) Readings: Russell & Norvig (Chap 6) B.M.Ombuki COSC 3P71

Knowledge representation? We will discuss knowledge representation from two aspects: - knowledge representation and semantic nets - knowledge representation that is concerned with the syntax and semantics of the language of propositional logic B.M.Ombuki COSC 3P71

Knowledge Representation Core problem in developing an intelligent system:knowledge representation: express knowledge in a computer-tractable form Knowledge representation: a description that incorporates information about a problem, environment, entity, ... Primary focus of knowledge representation is two fold; - - How to represent the knowledge one has about a problem domain - How to reason using that knowledge in order to answer questions or make decisions Knowledge representation deals with the problem of how to model the world sufficiently for intelligent action Knowledge-based agents know something about their environment and they use their knowledge together with an inference engine to reason about their environment. B.M.Ombuki COSC 3P71

How essential is KR ? A ‘problem’ involves relationships between concrete objects, abstract concepts relationship: dependencies, constraints, independencies,... an appropriate KR makes these explicit, and clarifies them so as to model them succinctly and without unnecessary details once the KR is designed, then the essence of the problem is clear good representation is key to good problem solving once an appropriate KR is arrived at for a given problem, the problem is almost solved B.M.Ombuki COSC 3P71

KR If we didn’t have a useful KR, the problem solving algorithm would have to incorporate the problem details within itself result (at best): unwieldy, complex algorithm worse result (probably): cannot solve problem, because the problem definition is unclear and abstruse B.M.Ombuki COSC 3P71

How do you know that a particular KR is good? Evaluating KR How do you know that a particular KR is good? Explicitness:clarity is important in expressing state of problem at a glance constraints: expressing how objects, relations influence each other suppress irrelevant detail transparency: easy to understand completeness: all problem variations can be handled concise: compact and clear fast: quick access for reads, writes, updates computable: their creation can be automated A problem can be represented in more than one way which is preferrable depends on the goals for the problem solving task and above goals B.M.Ombuki COSC 3P71

Semantic Nets and Knowledge Representation A representation can be viewed as having four components: 1. Lexical: what symbols are used (vocabulary or lexicon) labels for objects, links e.g.. chess pieces, board positions, board move links e.g.. duck, farmer, moose, boat trip links 2. structural: constraints describing how symbols can be arranged structure of KR: how are nodes and links connected? 3. semantic: the meaning or interpretation of the lexical and structural components what are they denoting wrt the problem at hand? 4. procedural: the means to use the KR to solve a problem may be many; likely there is one that uses that particular KR to best advantage B.M.Ombuki COSC 3P71

Semantic Nets semantic net: a representation in which nodes represent objects, links displays relations between objects, and link labels denote the particular relations syntactically, semantic nets are labeled graphs more than merely a data structure: the representations that nodes and links denote are important --> the semantics due to their generality, semantic nets are the foundation of many KR schemes they are often specialized according to the application B.M.Ombuki COSC 3P71

Semantic Nets A farmer, fox, goose and grain needs to move across a river in a boat. Constraint: boat can only carry the farmer and one other occupant at a time. Condition: Fox should not be left unattended with goose and goose should not be left with grains. What should the farmer do? Figure 2.1:(Winston P17) Problem of Farmer B.M.Ombuki COSC 3P71

Semantic nets lexical: nodes, links, link labels structural: nodes interconnected with labeled links semantics: depends on application procedural: include procedures to read, write, update the net eg. Farmer problem in text lexical: nodes: represent configurations of farmer, goose, fox, grain, and river bank orientation links: canoe trips link labels: not too critical here (“canoe trip”), arrows important structural: the connections that do not result in an eaten entity semantic: we ascribe the semantic net our “intended interpretation” wrt the problem as a whole B.M.Ombuki COSC 3P71

Example Lintel Right post left is-supported by GO258 G088 G083 g0075 g0034 Equivalence semantics: relates description in the representation to descriptions in other representations with meaning Procedural semantics: set of programs (defined) operates on descriptions in representation Descriptive semantics: explanations of what descriptions mean in a language we understand (e.g above example) Note: equivalence semantics & procedural semantics  Descriptive semantics B.M.Ombuki COSC 3P71

Semantic nets note the similarity between KR / semantic nets in AI problem solving, and data structures and computer programs especially how an appropriate net / data structure simplifies problem solving / program note that we can find mappings between representations hence there is no “most powerful” net but one net might be clearer than another Homework: Read on taxonomy of nets described in Winston (p.21, fig 2.2) B.M.Ombuki COSC 3P71

Using semantics nets 1. matching Describe and match method: We will look at a few examples of the use of Semantic nets 1. matching Describe and match method: (i) describe object using a suitable representation (i.e. in the ‘language’ you understand) (ii) look it up in your library of known objects for a match or until no more library descriptions found (iii) announce success if found, or failure. fig 2.4 Winston (p.23) see next slide B.M.Ombuki COSC 3P71

Example:Matching Library object Description Rejects identify identify object by describing it Rejects identify B.M.Ombuki COSC 3P71

Illustration of describe Matching and Match Feature-based object identifier has: (1) feature extractor: describe main characteristics of object to be identified (eg. shape, size, colour, ...) these characteristics are used to construct a semantic net representation for this object becomes a feature point - an abstract ‘coordinate’ in a multi-dimensional feature space (2) feature evaluator measures feature point distance from known objects in feature space B.M.Ombuki COSC 3P71

Example Area Fig 2.5: Winston p.24 4 3 2 unknown 1 8 No. of holes 16 B.M.Ombuki COSC 3P71

1. feature-based identification in analogy problems geometric analogy net: nodes: geometric primitives (dots, circles, squares,...) links: (i) relations between primitives (above, inside, left of, ...) (ii) transformations: addition, deletion, expansion, contraction, rotation, reflection, and combinations of these We then use this net representation to denote analogies: how one picture is related to another See Fig 2.6 p.25 Winston B.M.Ombuki COSC 3P71

Analogy problems Fig 2.7 B.M.Ombuki COSC 3P71

Feature ID and analogy problems in this rule, the transformation links are the key: when doing an analogy problem, we want to find an instance which duplicates these transformations (may be more than 1 transformation!) the problem solver can create these transformations and relations automatically, using tricks from computer graphics (see figs 2.8, 2.9) then, once we ascribe rules for all the transformations, we find the one that matches the problem specification the best note that there many be more than one transformation per analogy we may need to choose the best of many: need a way to judge B.M.Ombuki COSC 3P71