Knowledge Representation and Reasoning Chapter 12 Some material adopted from notes by Andreas Geyer-Schulz and Chuck Dyer.

Slides:



Advertisements
Similar presentations
Expert System Seyed Hashem Davarpanah
Advertisements

Bayesian Network and Influence Diagram A Guide to Construction And Analysis.
Rulebase Expert System and Uncertainty. Rule-based ES Rules as a knowledge representation technique Type of rules :- relation, recommendation, directive,
1 DCP 1172 Introduction to Artificial Intelligence Chang-Sheng Chen Topics Covered: Introduction to Nonmonotonic Logic.
Knowledge Representation CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Knowledge Representation
Probabilistic Reasoning Course 8
Knowledge Representation and Reasoning Chapters , 10.6, 10.9 Some material adopted from notes by Andreas Geyer-Schulz and Chuck Dyer.
Semantic Nets, Frames, World Representation. Knowledge Representation as a medium for human expression An intelligent system must have KRs that can be.
For Friday Finish chapter 10 No homework (get started on program 2)
Intelligent systems Lecture 6 Rules, Semantic nets.
Lecture 10: Semantic Network
Knowledge Representation and Reasoning
Artificial Intelligence Lecture No. 12 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
1 Bayesian Reasoning Chapter 13 CMSC 471 Adapted from slides by Tim Finin and Marie desJardins.
1 Who Stole the Painting? In-class Resolution Refutation Problem N(x) – “x is a knight” K(x) – “x is a knave” R(x) – “x is a regular” N(A) -> ~N(A) = ~N(A)
1 Logical Reasoning Systems Material adopted from slides and notes by Yun Peng, UMBC, Tim Finin, Andreas Geyer-Schulz and Chuck Dyer.
Objects Objects are at the heart of the Object Oriented Paradigm What is an object?
1 CMSC 671 Fall 2003 Class #16 – Wednesday, October 22.
Knowledge representation methods جلسه سوم. KR is AI bottleneck The most important ingredient in any expert system is knowledge. The power of expert systems.
1 CMSC 671 Fall 2010 Class #11 – Monday, October 11.
1 Semantic Web Semantic Web DL Relationships with other Formalisms Habib Rostami.
Frames and semantic networks, page 1 CSI 4106, Winter 2005 A brief look at semantic networks A semantic network is an irregular graph that has concepts.
1 Knowledge Representation and Reasoning Focus on Sections , 10.6 Guest Lecturer: Eric Eaton University of Maryland Baltimore County Lockheed.
1 CSC 9010 Spring Paula MatuszekSlides taken in part from Eric Eaton,
Artificial Intelligence 4. Knowledge Representation Course V231 Department of Computing Imperial College, London © Simon Colton.
For Friday Exam 1. For Monday No reading Take home portion of exam due.
Knowledge Representation and Reasoning Chapter 12 Some material adopted from notes by Andreas Geyer-Schulz and Chuck Dyer.
For Wednesday Read chapter 13 Homework: –Chapter 10, exercise 5 (part 1 only, don’t redo) Progress for program 2 due.
Temporal Reasoning and Planning in Medicine Frame-Based Representations and Description Logics Yuval Shahar, M.D., Ph.D.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Artificial Intelligence Knowledge Representation.
CMSC 471 Spring 2014 Class #22 Thursday, April 17 Knowledge Representation Professor Marie desJardins,
Artificial Intelligence Chapter 18. Representing Commonsense Knowledge.
Semantic web course – Computer Engineering Department – Sharif Univ. of Technology – Fall Knowledge Representation Semantic Web - Fall 2005 Computer.
1 Knowledge Representation Chapter Introduction Real knowledge representation and reasoning systems come in several major varieties. They all based.
Machine Learning Chapter 5. Artificial IntelligenceChapter 52 Learning 1. Rote learning rote( โรท ) n. วิถีทาง, ทางเดิน, วิธีการตามปกติ, (by rote จากความทรงจำ.
Semantic Nets, Frames, World Representation CS – W February, 2004.
1 Knowledge Representation (continue). 2 Knowledge Representation Logic isn’t the only method of representing knowledge. There are other methods which.
Generic Tasks by Ihab M. Amer Graduate Student Computer Science Dept. AUC, Cairo, Egypt.
Lecture 4 Rohan Sinclair
Knowledge Representation
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?
1 Knowledge Based Systems (CM0377) Introductory lecture (Last revised 28th January 2002)
1 CS 385 Fall 2006 Chapter 7 Knowledge Representation 7.1.1, 7.1.5, 7.2.
For Wednesday Read chapter 13 No homework. Program 2 Any questions?
1 Knowledge Representation Chapter 12 Some material adopted from notes by Tim Finin, Marie desJardins Andreas Geyer-Schulz, and Chuck Dyer.
DEALING WITH UNCERTAINTY (1) WEEK 5 CHAPTER 3. Introduction The world is not a well-defined place. There is uncertainty in the facts we know: – What’s.
Lecture 5 Frames. Associative networks, rules or logic do not provide the ability to group facts into associated clusters or to associate relevant procedural.
Issues in Temporal and Causal Inference Pei Wang Temple University, USA Patrick Hammer Graz University of Technology, Austria.
From NARS to a Thinking Machine Pei Wang Temple University.
1 Logical Reasoning Systems Chapter 10 Some material adopted from notes by Tim Finin, Andreas Geyer-Schulz and Chuck Dyer.
Artificial Intelligence Knowledge Representation.
Knowledge Engineering. Sources of Knowledge - Books - Journals - Manuals - Reports - Films - Databases - Pictures - Audio and Video Tapes - Flow Diagram.
Definition and Technologies Knowledge Representation.
Anifuddin Azis UNCERTAINTY. 2 Introduction The world is not a well-defined place. There is uncertainty in the facts we know: What’s the temperature? Imprecise.
Knowledge Representation Chapter 7. 2 Introduction Real knowledge representation and reasoning systems come in several major varieties. These differ in.
Knowledge Representation Techniques
CHAPTER 5 Handling Uncertainty BIC 3337 EXPERT SYSTEM.
Limitations of First-Order Logic
REASONING WITH UNCERTANITY
Professor Marie desJardins,
Class #21 – Monday, November 10
Weak Slot-and-Filler Structures
Class #16 – Wednesday, October 22
Semantic Nets and Frames
Professor Marie desJardins,
Habib Ullah qamar Mscs(se)
Presentation transcript:

Knowledge Representation and Reasoning Chapter 12 Some material adopted from notes by Andreas Geyer-Schulz and Chuck Dyer

Overview Approaches to knowledge representation Deductive/logical methods –Forward-chaining production rule systems –Semantic networks –Frame-based systems –Description logics Abductive/uncertain methods –What’s abduction? –Why do we need uncertainty? –Bayesian reasoning –Other methods: Default reasoning, rule-based methods, Dempster-Shafer theory, fuzzy reasoning

Semantic Networks Simple representation scheme: a graph of labeled nodes and labeled, directed arcs to encode knowledge –often used for static, taxonomic, concept dictionaries Typically used with a special set of accessing procedures that perform “reasoning” –e.g., inheritance of values and relationships Semantic networks popular in 60s & 70s, less used in ‘80s &’90s, back since‘00s as RDF –less expressive than other formalisms: both a feature & bug! The graphical depiction associated with a semantic network is a significant reason for their popularity

Nodes and Arcs Arcs define binary relationships that hold between objects denoted by the nodes john 5 sue age mother mother(john, sue) age(john, 5) wife(sue, max) age(max, 34) age father max wife husband age

What do these nodes and edges mean?

Semantic Networks ISA (is-a) or AKO (a-kind-of) relations often used to link instances to classes and classes to super-classes Some links (e.g. hasPart) are inherited along ISA paths Meaning of a semantic net can be relatively informal or very formal –often defined by implementation –See W. Woods, What’s in a Link, 1975.What’s in a Link isa Robin Bird Animal RedRusty hasPart Wing

Reification Non-binary relationships can be represented by “turning the relationship into an object” Logicians and philosophers call this reificationreification –reify v : consider an abstract concept to be real We might want to represent the generic give event as a relation involving three things: a giver, a recipient and an object, give(john,mary,book32) give42 marybook32 john recipient giver object give isa

Individuals and Classes Many semantic networks distinguish –nodes representing individuals & those representing classes –E.g., subclass from instance_of relation Formalization must deal with nodes like Bird –OWL uses punningOWLpunning subclass instance Robin Bird Animal RedRusty hasPart Wing instance Genus

Inference by Inheritance One kind of reasoning done in semantic nets is inheritance along subclass & instance links –It’s like inheritance in object-oriented languages Semantic networks differ in details of –Inheriting along subclass or instance links, e.g Only inherit values on instance links –inheriting multiple different values, e.g. All possible values are inherited, or Only the “closest” value or values are inherited

From Semantic Nets to Frames Semantic networks evolved into frame representation languages in the 70s and 80sframe representation languages Frames like a OO classes with more meta-data –Cf. AI’s focus on knowledge over data A frame has a set of slots Slots represents relations to other frame or literal values (e.g., number or string) A slot has one or more facets A facet represents some aspect of the relation

Facets A slot in a frame can hold more than a value Other facets might include: –Value: current fillers –Default: default fillers –Cardinality: minimum and maximum number of fillers –Type: type restriction on fillers, e.g another frame –Procedures: if-needed, if-added, if-removed –Salience: measure on the slot’s importance –Constraints: attached constraints or axioms In some systems, the slots themselves are instances of frames.

Description Logics Description logics are a family of frame-like KR systems with a formal semanticsDescription logics –E.g., KL-ONE, OWL Additional kind of inference is automatic classification of Frames and objects – Automatically finding right place in a hierarchy Many current systems limit languages to support decidably complete reasoning The Semantic Web language OWL based on description logic

Logical deduction is not the only kind of reasoning that’s useful Beyond Deduction

Deduction, Abduction, Induction Deduction: major premise: All balls in the box are black minor premise: These balls are from the box conclusion: These balls are black Abduction: rule: All balls in the box are black observation: These balls are black explanation: These balls are from the box Induction: case: These balls are from the box observation: These balls are black hypothesized rule: All ball in the box are black A => B A B A => B B Possibly A Whenever A then B Possibly A => B Deduction: from causes to effects Abduction: from effects to causes Induction: from specific cases to general rules

Abduction Abduction: reasoning that derives an explanatory hypothesis from a given set of facts –Inference result is a hypothesis that, if true, could explain the occurrence of the given facts –Inherently unsound and uncertain Example: Medical diagnosis –Facts: symptoms, test results, other observed findings –KB: causal associations between diseases & symptoms –Reasoning: diseases whose presence would causally explain the occurrence of the given manifestations

Non-monotonic reasoning Abduction is non-monotonic reasoning Monotonic: your knowledge only increases –Propositions don’t change their truth value –You never unknow things In abduction: plausibility of hypotheses can increase/decrease as new facts are collected Deductive inference is monotonic: it never change a sentence’s truth value, once known In abductive and inductive reasoning, hypotheses may be discarded and new ones formed when new observations are made

Default logic Default reasoning is another kind of non- monotonic reasoning We know many facts which are mostly true, typically true, or good default assumptions –E.g., birds can fly, dogs have four legs, etc. Sometimes these facts are wrong however –Ostriches are birds, but can not fly –A dead bird can not fly –Uruguay President José Mujica had a 3-legged dog

Negation as Failure Prolog introduced the notion of negation as failure, which is widely used in logic programming languages and many KR systemsnegation as failure Proving P in classical logic can have three outcomes: true, false, unknown (+ still thinking) Sometimes being unable to prove something can be used as evidence that it is not true This is typically the case in a database context –Is John registered for CMSC 671? –If there’s no record for John in the registrar’s database, assume he’s not registered

Default Logic There are several models for default reasoning –All have advantages and disadvantages, supporters and detractors Implementations often use negation as failure canfly(x) :- bird(x), \+ cannotfly(X). cannotfly(X) :- ostritch(X); dead(X). Autoepistemic reasoning (reasoning about what you know) is useful alsoAutoepistemic reasoning –Does President Obama have a wooden leg?

Dealing with Uncertain Knowledge The world is not a well-defined place There is uncertainty in the facts we know: –What ’ s the temperature? Imprecise measures –Is Obama tall? Imprecise definitions –Where is the pit? Imprecise knowledge There is uncertainty in our inferences –If I have a blistery, itchy rash and was gardening all weekend I probably have poison ivy People make successful decisions all the time anyhow

22 Sources of Uncertainty Uncertain inputs -- missing and/or noisy data Uncertain knowledge –Multiple causes lead to multiple effects –Incomplete enumeration of conditions or effects –Incomplete knowledge of causality in the domain –Probabilistic/stochastic effects Uncertain outputs –Abduction and induction are inherently uncertain –Default reasoning, even deductive, is uncertain –Incomplete deductive inference may be uncertain  Probabilistic reasoning only gives probabilistic results (summarizes uncertainty from various sources)

Reasoning Under Uncertainty How can we reason under uncertainty and with inexact knowledge? Heuristics –mimic expert’s heuristic knowledge processing methods Empirical associations –experiential reasoning –based on limited observations Fuzzy sets and fuzzy logicFuzzy setsfuzzy logic Probabilities –objective (frequency counting) –subjective (human experience )

24 Decision making with uncertainty Rational behavior: For each possible action, identify the possible outcomes Compute the probability of each outcome Compute the utility of each outcome Compute the probability-weighted (expected) utility over possible outcomes for each action Select action with the highest expected utility (principle of Maximum Expected Utility)