5 Knowledge Representation
5 Knowledge Representation
KnowledgeRepresentation
By
Lecture Delivered on:
Manish Kumar Sharma 08/11/2021
Assistant Professor
Representation
• AI agents deal with knowledge (data)
– Facts (believe & observe knowledge)
– Procedures (how to knowledge)
– Meaning (relate & defineknowledge)
• Right representation is crucial
– Early realisation in AI
– Wrong choice can lead to project failure
– Active research area
Choosing a Representation
1. Logical Representations
2. Production Rules
3. Semantic Networks
• Conceptual graphs, frames
4. Description Logics (seetextbook)
What is a Logic?
• Syntax
– Rules for constructing legal sentences in the logic
– Which symbols we can use (English: letters, punctuation)
– How we are allowed to combine symbols
• Semantics
– How we interpret (read) sentences in the logic
– Assigns a meaning to each sentence
• Example: “All lecturers are seven foot tall”
– A valid sentence (syntax)
– And we can understand the meaning (semantics)
– This sentence haCpS8p69e1n-AsI-KtNoOWbLeEDfGaElRsEePREtS(EhNeTArTeIONisa counterexample)
PropositionalLogic
• Syntax
– Propositions, e.g. “it is wet”
– Connectives: and, or, not, implies, iff (equivalent)
• For all X
– if (X is a rose)
– then there existsY
• (X has Y) and (Y is a thorn)
Example: FOLSentence
• Multi-valued logics
– More than two truth values
– e.g., true, false & unknown
– Fuzzy logic uses probabilities, truth value in [0,1]
• Modal logics
– Modal operators define mode for propositions
– Epistemic logics (belief)
• e.g. p (necessarily p), p (possibly p), …
– Temporal logics (time)
• e.g. p (aClSw86a91y-AsI-KpNO),W LEDpGE(ReEPvREeSnENtTuATaIOlNlyp),…
Logic is a Good Representation
• Production rules
• Semantic networks
– Conceptual graphs
– Frames