Knowledge Representation & Reasoning: By: Irum Naz Sodhar Lecturer IT, SBBU-SBA Main Campus
Knowledge Representation & Reasoning: By: Irum Naz Sodhar Lecturer IT, SBBU-SBA Main Campus
Knowledge
Representation &
1
Reasoning
By:
Irum Naz Sodhar
Lecturer IT, SBBU-SBA Main Campus
3/2/2021
3/2/2021
1
02/03/2021
Outlines 3
3/2/2021
What is Knowledge 4
•?
3/2/2021
2
02/03/2021
3/2/2021
Types of Reasoning 6
3/2/2021
3
02/03/2021
1. Deductive reasoning
7
• Deductive reasoning is deducing new information from logically related known information.
• It is the form of valid reasoning, which means the argument's conclusion must be true when
the premises are true.
• It is type of propositional logic in AI, and it requires various rules and facts.
• It is sometimes referred to as top-down reasoning, and contradictory to inductive reasoning.
• In deductive reasoning, the truth of the premises guarantees the truth of the conclusion.
• Deductive reasoning mostly starts from the general premises to the specific conclusion, which
can be explained as below example.
• Example:
• Premise-1: All the human eats veggies
• Premise-2: Suresh is human.
• Conclusion: Suresh eats veggies.
3/2/2021
2. Inductive Reasoning:
8
3/2/2021
4
02/03/2021
3. Abductive reasoning:
9
3/2/2021
5
02/03/2021
5. Monotonic Reasoning:
11
• In monotonic reasoning, once the conclusion is taken, then it will remain the same even if we
add some other information to existing information in our knowledge base.
• In monotonic reasoning, adding knowledge does not decrease the set of prepositions that can be derived.
• To solve monotonic problems, we can derive the valid conclusion from the available facts only,
and it will not be affected by new facts.
• Monotonic reasoning is not useful for the real-time systems, as in real time, facts get
changed, so we cannot use monotonic reasoning.
• Monotonic reasoning is used in conventional reasoning systems, and a logic-based system is
monotonic.
• Any theorem proving is an example of monotonic reasoning.
• Example:
• Earth revolves around the Sun.
• It is a true fact, and it cannot be changed even if we add another sentence in knowledge base
like, "The moon revolves around the earth" Or "Earth is not round," etc.
3/2/2021
3/2/2021
6
02/03/2021
6. Non-monotonic Reasoning
13
3/2/2021
7
02/03/2021
Introduction 15
3/2/2021
8
02/03/2021
• Objects
• Events
• Performance
• Facts
• Meta-Knowledge Task For Lecture
• Knowledge-base
3/2/2021
9
02/03/2021
3/2/2021
10
02/03/2021
• Shows AI system with the real world and the components involved in showing
intelligence.
• The Perception component retrieves data or information from the
environment.
• With the help of this component, you can retrieve data from the environment,
find out the source of noises and check if the AI was damaged by anything.
• Also, it defines how to respond when any sense has been detected.
• Then, there is the Learning Component that learns from the captured data by
the perception component.
• The goal is to build computers that can be taught instead of programming them. Learning
focuses on the process of self-improvement. In order to learn new things, the system
requires knowledge acquisition, inference, acquisition of heuristics, faster searches, etc.
3/2/2021
22
3/2/2021
11
02/03/2021
3/2/2021
3/2/2021
12
02/03/2021
Continue… 25
3/2/2021
Four Techniques of KR
3/2/2021
13
02/03/2021
Logical Representation
27
• Logical representation is a language with some definite
rules which deal with propositions and has no ambiguity in
representation.
• It represents a conclusion based on various conditions and lays
down some important communication rules.
• Also, it consists of precisely defined syntax and semantics which
supports the sound inference.
• Each sentence can be translated into logics using syntax and
semantics.
3/2/2021
• Advantages:
• Logical representation helps to perform logical reasoning.
• This representation is the basis for the programming languages.
• Disadvantages:
• Logical representations have some restrictions and are challenging to work
with.
• This technique may not be very natural, and inference may not be very
efficient.
3/2/2021
14
02/03/2021
3/2/2021
30
3/2/2021
15
02/03/2021
• Advantages:
• Semantic networks are a natural representation of knowledge.
• Also, it conveys meaning in a transparent manner.
• These networks are simple and easy to understand.
• Disadvantages:
• Semantic networks take more computational time at runtime.
• Also, these are inadequate as they do not have any equivalent quantifiers.
• These networks are not intelligent and depend on the creator of the system.
3/2/2021
Frame Representation
32
3/2/2021
16
02/03/2021
• Advantages:
• It makes the programming easier by grouping the related data.
• Frame representation is easy to understand and visualize.
• It is very easy to add slots for new attributes and relations.
• Also, it is easy to include default data and search for missing values.
• Disadvantages:
• In frame system inference, the mechanism cannot be easily processed.
• The inference mechanism cannot be smoothly proceeded by frame
representation.
• It has a very generalized approach.
3/2/2021
Production Rules
34
• In production rules, agent checks for the condition and if the condition
exists then production rule fires and corresponding action is carried out.
• The condition part of the rule determines which rule may be applied to
a problem.
• Whereas, the action part carries out the associated problem-solving
steps. This complete process is called a recognize-act cycle.
• The production rules system consists of three main parts:
• The set of production rules
• Working Memory
• The recognize-act-cycle
3/2/2021
17
02/03/2021
• Advantages:
• The production rules are expressed in natural language.
• The production rules are highly modular and can be easily removed or
modified.
• Disadvantages:
• It does not exhibit any learning capabilities and does not store the result of
the problem for future uses.
• During the execution of the program, many rules may be active. Thus, rule-
based production systems are inefficient.
3/2/2021
18
02/03/2021
3/2/2021
Example 38
3/2/2021
19
02/03/2021
2. Inheritable Knowledge 39
3/2/2021
Example 40
3/2/2021
20
02/03/2021
3. Inferential Knowledge
41
3/2/2021
3/2/2021
21
02/03/2021
• - Explain
3/2/2021
22