Knowledge Representation
Knowledge Representation
{
REPRESENTATION
Humans are best at understanding, reasoning, and interpreting
knowledge. Human knows things, which is knowledge and as per
their knowledge they perform various actions in the real world.
But how machines do all these things comes under knowledge
representation and reasoning.
Knowledge representation and reasoning (KR, KRR) is the part of
Artificial intelligence which concerned with AI agents thinking
and how thinking contributes to intelligent behavior of agents.
It is responsible for representing information about the real world
so that a computer can understand and can utilize this knowledge
to solve the complex real world problems such as diagnosis a
medical condition or communicating with humans in natural
language.
Knowledge representation is not just storing data into some
database, but it also enables an intelligent machine to learn from
that knowledge and experiences so that it can behave intelligently
like a human.
What to Represent:
Following are the kind of knowledge which needs to be represented
in AI systems:
Object: All the facts about objects in our world domain. E.g.,
Guitars contains strings, trumpets are brass instruments.
Events: Events are the actions which occur in our world.
Performance: It describe behavior which involves knowledge about
how to do things.
Meta-knowledge: It is knowledge about what we know.
Facts: Facts are the truths about the real world and what we
represent.
Knowledge-Base: The central component of the knowledge-based
agents is the knowledge base. It is represented as KB. The
Knowledgebase is a group of the Sentences (Here, sentences are
used as a technical term and not identical with the English
language).
Types of knowledge
1. Declarative Knowledge:
Declarative knowledge is to know about something.
declarative sentences.
It is simpler than procedural language.
2. Procedural Knowledge
It is also known as imperative knowledge.
applied.
3. Meta-knowledge:
Knowledge about the other types of knowledge is called
Meta-knowledge.
4. Heuristic knowledge:
Heuristic knowledge is representing knowledge of some
objects.
The relation between knowledge
and intelligence:
Knowledge plays an important role in demonstrating intelligent
behavior in AI agents. An agent is only able to accurately act on
some input when he has some knowledge or experience about
that input.
Let's suppose if you met some person who is speaking in a
language which you don't know, then how you will able to act on
that. The same thing applies to the intelligent behavior of the
agents.
As we can see in below diagram, there is one decision maker
which act by sensing the environment and using knowledge. But
if the knowledge part will not present then, it cannot display
intelligent behavior.
AI knowledge cycle:
An Artificial intelligence system has the following components for
displaying intelligent behavior:
Perception
Learning
Planning
Execution
Frame Representation
Production Rules
Logical representation is a language with some concrete rules
which deals with propositions and has no ambiguity (two or more
possible ways) in representation. Logical representation means
drawing a conclusion based on various conditions.
This representation lays down some important communication
representation.
How to write those symbols.
Semantics:
Semantics are the rules by which we can interpret(explain) the
Predicate logics
to work with.
Logical representation technique may not be very natural, and
1.
In propositional logic, we use symbolic variables to represent the
Compound propositions
other words, there is only one positive literal on the left-hand side
of the implication. Example: p → q.
Horn Clauses in General: These are Horn clauses where n ≤ 1. In
other words, there can be zero or one positive literal(s) on the left-
hand side of the implication.
Horn clauses are particularly useful in logic programming and
artificial intelligence because they are easy to reason about and can
be efficiently evaluated.
Definite Clauses:
Definite clauses are a broader concept than Horn clauses. A
definite clause is a logical formula that consists of a head and a
body. It is of the form:
H ← B1, B2, ..., Bn
Here, H is the head, which is a single literal, and B1, B2, ..., Bn are
the body, which consists of zero or more literals.
Definite clauses include Horn clauses as a special case when there
is only one literal in the body. However, definite clauses are more
general because they can have multiple literals in the body.
In summary, Horn clauses are a specific type of definite clause
where there are restrictions on the number of literals in the body,
making them particularly simple and efficient for certain types of
logical reasoning.
First-Order Logic in
Artificial intelligence
In the topic of Propositional logic, we have seen that how to
represent statements using propositional logic. But unfortunately,
in propositional logic, we can only represent the facts, which are
either true or false. PL is not sufficient to represent the complex
sentences or natural language statements. The propositional logic
has very limited expressive power. Consider the following
sentence, which we cannot represent using PL logic.
"Some humans are intelligent", or
"Sachin likes cricket."
To represent the above statements, PL logic is not sufficient, so we
required some more powerful logic, such as first-order logic.
First-Order logic:
First-order logic is another way of knowledge representation in
artificial intelligence. It is an extension to propositional logic.
FOL is sufficiently expressive to represent the natural language
statements in a concise way.
First-order logic is also known as Predicate logic or First-order
predicate logic. First-order logic is a powerful language that
develops information about the objects in a more easy way and can
also express the relationship between those objects.
First-order logic (like natural language) does not only assume that
the world contains facts like propositional logic but also assumes the
following things in the world:
Objects: A, B, people, numbers, colors, wars, theories, squares, pits,
wumpus, ......
Relations: It can be unary relation such as: red, round, is adjacent, or n-
any relation such as: the sister of, brother of, has color, comes between
Function: Father of, best friend, third inning of, end of, ......
As a natural language, first-order logic also has two main parts:
Syntax
Semantics
Syntax of First-Order logic:
The syntax of FOL determines which collection of symbols is a
logical expression in first-order logic. The basic syntactic elements of
first-order logic are symbols. We write statements in short-hand
notation in FOL.