Knowledge Representation: Unit-Iii
Knowledge Representation: Unit-Iii
Knowledge Representation
• Human beings are good at understanding, reasoning and
interpreting knowledge. And using this knowledge, they are able to
perform various actions in the real world. But how do machines
perform the same?we will learn about Knowledge Representation
in AI and how it helps the machines perform reasoning and
interpretation using Artificial Intelligence in the following sequence:
• What is Knowledge Representation?
• Different Types of Knowledge
• Cycle of Knowledge Representation
• What is the relation between Knowledge & Intelligence?
• Techniques of Knowledge Representation
• Representation Requirements
• Approaches to Knowledge Representation with Example
What is Knowledge Representation?
• Knowledge Representation in AI describes the representation of knowledge. Basically,
it is a study of how the beliefs, intentions, and judgments of an intelligent agent can
be expressed suitably for automated reasoning. One of the primary purposes of
Knowledge Representation includes modeling intelligent behavior for an agent.
• Knowledge Representation and Reasoning (KR, KRR) represents information from the
real world for a computer to understand and then utilize this knowledge to
solve complex real-life problems like communicating with human beings in natural
language. Knowledge representation in AI is not just about storing data in a database, it
allows a machine to learn from that knowledge and behave intelligently like a human
being.
The different kinds of knowledge that need to be represented in AI include:
• Objects
• Events
• Performance
• Facts
• Meta-Knowledge
• Knowledge-base.
• Following are the kind of knowledge which needs to be represented in AI systems:
1. Object
• All the facts about objects in our world domain. E.g., Guitars contains strings, trumpets are
brass instruments.
2. Events
• Events are the actions which occur in our world.
3. Performance
• It describe behavior which involves knowledge about how to do things.
4. Meta-knowledge
• It is knowledge above knowledge is known as Meta -knowledge.
5. Facts
• Facts are the truths about the real world and what we represent.
6. 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).
Different Types of Knowledge
There are 5 types of Knowledge such as:
• Declarative Knowledge – It includes concepts, facts, and objects and
expressed in a declarative sentence.
• Structural Knowledge – It is a basic problem-solving knowledge that
describes the relationship between concepts and objects.
• Procedural Knowledge – This is responsible for knowing how to do
something and includes rules, strategies, procedures, etc.
• Meta Knowledge – Meta Knowledge defines knowledge about other
types of Knowledge.
• Heuristic Knowledge – This represents some expert knowledge in the
field or subject.
• These are the important types of Knowledge Representation in AI.
• Cycle of Knowledge Representation in AI
• Artificial Intelligent Systems usually consist of various components to
display their intelligent behavior. Some of these components include:
• Perception
• Learning
• Knowledge Representation & Reasoning
• Planning
• Execution
Here is an example to show the different components of the
system and how it works:
Example
Computer Dumb
terminals
Printer
Production Rules
• 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
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.
• So, these were the important techniques for Knowledge Representation in AI
Example:
• IF (at bus stop AND bus arrives) THEN action (get into the bus)
• IF (on the bus AND paid AND empty seat) THEN action (sit down).
• IF (on bus AND unpaid) THEN action (pay charges).
• IF (bus arrives at destination) THEN action (get down from the bus).
Representation Requirements
• A good knowledge representation system must have properties such
as:
• Representational Accuracy: It should represent all kinds of required
knowledge.
• Inferential Adequacy: It should be able to manipulate the
representational structures to produce new knowledge corresponding
to the existing structure.
• Inferential Efficiency: The ability to direct the inferential knowledge
mechanism into the most productive directions by storing appropriate
guides.
• Acquisitional efficiency: The ability to acquire new knowledge easily
using automatic methods.
• Approaches to Knowledge Representation in AI
• There are different approaches to knowledge representation such as:
• 1. Simple Relational Knowledge
• It is the simplest way of storing facts which uses the relational
method. Here, all the facts about a set of the object are set out
systematically in columns. Also, this approach of knowledge
representation is famous in database systems where the relationship
between different entities is represented. Thus, there is little
opportunity for inference.
• 2. Inheritable Knowledge
• In the inheritable knowledge approach, all data must be stored into a
hierarchy of classes and should be arranged in a generalized form or a
hierarchal manner.
• Also, this approach contains inheritable knowledge which shows a
relation between instance and class, and it is called instance relation.
In this approach, objects and values are represented in Boxed nodes.
3. Inferential Knowledge
• The inferential knowledge approach represents knowledge in the
form of formal logic. Thus, it can be used to derive more facts. Also, it
guarantees correctness.
Example:
• Statement 1: John is a cricketer.
• Statement 2: All cricketers are athletes.
Then it can be represented as;
• Cricketer(John)
∀x = Cricketer (x) ———-> Athelete (x)s
• These were some of the approaches to knowledge
representation in AI along with examples.
KNOWLEDGE REPRESENTATION ISSUES
Issues in knowledge representation
• The main objective of knowledge representation is to draw the
conclusions from the knowledge, but there are many issues
associated with the use of knowledge representation techniques.
1. Important attributes
There are two attributes shown in the diagram, instance and isa. Since these attributes support property of inheritance, they are of
prime importance.
i. What are the primitives and at what level should the knowledge be represented?
ii. What should be the number (small or large) of low-level primitives or high-level facts?
High-level facts may be insufficient to draw the conclusion while Low-level primitives may require a lot of storage.
For example: Suppose that we are interested in following facts:
John spotted Alex.
Such a representation can make it easy to answer questions such as: Who spotted Alex?
Hence, the user can add other facts, such as "Spotted (x, y) → saw (x, y)"
4. Representing sets of objects.
There are some properties of objects which satisfy the condition of a set together but not as individual;
While selecting and reversing the right structure, it is necessary to solve following problem statements. They
include the process on how to: