Menu

Introduction to Knowledge Representation

Introduction to Knowledge Representation

What Is Knowledge Representation?

Knowledge representation (KR) is the process of organizing information in a structured form that an AI system can use to answer questions, solve problems, or make decisions.

Humans often understand relationships naturally. For example, we know that a dog is an animal and that animals need food. An AI system needs information represented in a form it can process.

Knowledge representation helps convert information about the world into structures that computers can work with.

Why Does AI Need Knowledge Representation?

An AI system may need to answer questions such as:

  • Is a particular customer eligible for a refund?
  • Which products are related to a specific category?
  • What conclusion follows from a set of known facts?
  • Which action should be taken when certain conditions are met?

Without an appropriate representation, the system may struggle to connect facts or apply rules consistently.

Types of Knowledge in AI

1. Declarative Knowledge

Declarative knowledge describes facts about the world.

Examples:

  • Delhi is the capital of India.
  • A triangle has three sides.
  • A product's return period is 30 days.

2. Procedural Knowledge

Procedural knowledge describes how to perform a task.

Examples:

  • Steps to reset a password.
  • Instructions for processing an order.
  • A procedure for troubleshooting a network connection.

3. Heuristic Knowledge

Heuristic knowledge consists of practical rules of thumb that help solve problems efficiently.

For example, a troubleshooting system may suggest checking the network connection first when a website cannot be reached.

Heuristics are useful, but they do not guarantee a correct conclusion in every situation.

4. Relational Knowledge

Relational knowledge describes how entities are connected.

Examples:

  • A customer places an order.
  • A book has an author.
  • A city belongs to a country.

Common Knowledge Representation Techniques

Technique

Description

Example

Logical representationUses formal statements and rulesIf a user is verified, allow access
Semantic networksRepresent concepts as connected nodesDog → Animal
FramesOrganize information into structured objects with attributesProduct with name, price, and category
Production rulesRepresent knowledge as condition-action or condition-conclusion rulesIf stock is zero, mark item unavailable
Knowledge graphsRepresent entities and their relationships as a graphPerson → works for → Company

Each technique has different strengths. A system may use more than one representation depending on the task.

Example: Representing a Library

A library system might store the following facts:

  • Book: The Hobbit
  • Author: J. R. R. Tolkien
  • Category: Fantasy
  • Availability: Available

It can also store relationships such as:

  • The Hobbit was written by J. R. R. Tolkien.
  • The Hobbit belongs to the fantasy category.
  • The Hobbit is available for borrowing.

An AI system can use these facts to answer questions about the book or recommend related titles.


Artificial Intelligence Tutorial

VA

Vishalini A



Learn via Video Course

Artificial Intelligence and Machine Learning Course Logo

Artificial Intelligence and Machine Learning Course

55 hrs



Get in Touch For Details