RM Unit-3 Knowledge Representation Issues-2019
RM Unit-3 Knowledge Representation Issues-2019
(2180703)
Rutal Mahajan
S.N.P.I.T.R.C., Umrakh
[email protected]
Knowledge Representation
Facts: Things we want to represent. Truth in some
relevant world.
Representation of facts.
• Information emerges when relationships among facts are established and understood;
Provides answers to "who", "what", "where", and "when".
Example : The temperature dropped 15 degrees and then it started raining.
• Knowledge emerges when relationships among patterns are identified and understood;
Provides answers as "how".
Example : If the humidity is very high and the temperature drops substantially, then
atmospheres is unlikely to hold the moisture, so it rains.
The arrows connecting explicit with declarative and tacit with procedural,
indicate the strong relationships exist among them.
− The arrow connecting declarative and procedural indicates that we often
develop procedural knowledge as a result of starting with declarative
knowledge. i.e., we often "know about" before we "know how".
The Knowledge and the Representation are distinct entities, play a central but
distinguishable roles in intelligent system.
− Knowledge is a description of the world;
it determines a system's competence by what it knows.
− Representation is the way knowledge is encoded;
it defines the system's performance in doing something.
Implicit
knowledge
Explicit
knowledge
Facts Representations
• Spot is a dog A fact represented in English sentence
• dog (Spot) Using forward mapping function the above fact is represented in logic
• ∀ x : dog(x) → hastail (x) A logical representation of the fact that "all dogs have tails"
Now using deductive mechanism we can generate a new representation of object:
• hastail (Spot) A new object representation
• Spot has a tail Using backward mapping function to generate English sentence
[it is new knowledge]
Knowledge Representation Issues (AI B.E.8th semester)
2/23/2019 11
by Rutal Mahajan
Forward and Backward Representation
The forward and backward representations are elaborated below :
• The doted line on top indicates the abstract reasoning process that a program is intended to
model.
• The solid lines on bottom indicates the concrete reasoning process that the program
performs.
3. Semantic Networks
4. Frame Representation
• The directed arrows represent attributes (isa, instance, and team) originating at the object
being described and terminating at the object or its value.
• the box nodes represents objects and values of the attributes.
Logic:
• way of representing facts formally
• formally representing facts is important (logical representation) because…
it is powerful way of deriving new knowledge from old.
• E.g: New statement is proved true by proving that it follows the
statements already known - Mathematical induction
Logic:
• Syntax: specifies symbols in language about how they can be combined to
form sentences
• Semantics: it specifies how to assign a truth value to a sentence based on
its meaning in the world.
• Inference Procedure: specifies methods for computing new sentences from
an existing sentences.
E.g. Induction or Deduction
Propositional Logic:
Proposition is a statement, in which English would be a declarative sentence.
Examples:
(a) sky is blue
(b) Snow is cold
(c) 12*12=144
Properties of statement:
• Tautology/Satisfiability: means valid sentence. a sentence
which is true for all the interpretations.
Eg.”we wear woollen cloths”
“It is Hot or It is not Hot” (A V ~A) (A or Not A)
5. De-Morgan’s Rule:
(ךP ˅ Q) ==> ךP ˄ ךQ P ˅ T => P
( ךP ˄ Q) ==> ךP ˅ ךQ P ˅ F => P
P ˅ ךT => P
6. Implication elimination:
P Q => ךP ˅ Q
P ˄ F => F
P ˄ T => P
Knowledge Representation Issues (AI B.E.8th semester)
2/23/2019 24
by Rutal Mahajan
Propositional Logic –Representation and use
Example 1:
“I will get wet if it rains and I go out of the house”
Example 2:
“If it is raining, then it is not sunny”
RAINING : It is raining
WINDY: It is windy
If it is raining, then it is not sunny
RAINING SUNNY
e.g. ( P ˄ Q ˄ R ) ˅ (P ˄ Q ) ˅ (P ˄ R ) ˅ P
3. Use distributive and other laws & equivalent formulas to obtain Normal forms.
CNF
Solution:
Let us denote these statements with propositions H,O and R:
H: “ It is humid”.
O: “ It is Hot”.
R: “It will rain”.
To prove: R.
ךH [ ךO ˅ H]
ךO O
E
[EMPTY CLAUSE / CONTRADICTION ]
Knowledge Representation Issues (AI B.E.8th semester)
2/23/2019 30
by Rutal Mahajan
Propositional Logic –How it works?? Proof by Resolution
Since an empty clause ( E ) has been deduced we say that our assumption is wrong
and hence we have proved: “It will rain”
• Theorem proving is decidable BUT (we got yes/ no answer-It will rain)
Disadvantage:
1. Can not express complex AI problems
2. Weak knowledge representation language.
- hard to identify individual entities
E.g. Pooja, Priya, Mumbai etc.
- cannot represent properties of individual entities
E.g. Pooja is Tall
- cannot express specialization, generalization or patterns
E.g. All rectangles have 4 sides
Knowledge Representation Issues (AI B.E.8th semester)
2/23/2019 32
by Rutal Mahajan
Questions from GTU( last updated winter 2018)
1) Explain the different issues in Knowledge representation [7 Marks](Nov-18,Dec-14,May-16]
2) Explain mapping between facts and representations in knowledge representation.
3) Explain property inheritance algorithm with example.
4) Discuss approaches to knowledge representation
5) Differentiate tactic and explicit knowledge
6) What are various resolution strategies? Explain any.
7) What is resolution? Explain algorithm for resolution in propositional logic
8) Differentiate procedural and declarative knowledge representation mapping.
9) Explain Horn Clause in detail.