×

Knowledge Representation in AI

In this section, we will understand how to represent the knowledge in the form which could be understood by the knowledge-based agents. The knowledge that is stored in the system is related to the world and its environment. It is stored in the system to prepare these systems to deal with the world and solve complex problems in a better way.

Ontological Engineering

A machine sounds like an empty box unless it is encoded with some features or information. Therefore, to make it a valuable machine, it is required to put the necessary knowledge in it. So that it could understand it and is able to take the right decisions.

There are three factors which are put into the machine,  which makes it valuable:

  • Knowledge: The information related to the environment is stored in the machine.
  • Reasoning: The ability of the machine to understand the stored knowledge.
  • Intelligence: The ability of the machine to make decisions on the basis of the stored information.
Knowledge Representation in AI

With the increasing demand for the knowledge representation technique, there was a need for larger and modular knowledge that could integrate and combine with one another. Ontological engineering is the engineering of such systems which could represent the complex domains effectively. With the help of ontological engineering, the representation of the general concepts such as actions, time, physical objects, performance, meta-data, and beliefs becomes possible on a large-scale.

For special type of representations, we require a special type of ontology known as Special ontology. But for special ontologies, there is a need to move towards a high-level generality.

There are two following major characteristics which distinguish general ontologies from the special one:

  • General ontologies should be applicable in every type of special-purpose domains with some domain-specific axioms.
  • When there is a sufficiently demanding domain, the areas of knowledge should be unified.

Unfortunately, none of the applications of artificial intelligence make use of the shared/general ontology, all they use is special ontology.

Properties of a Knowledge Representation system:

There are following properties of a Knowledge Representation system:

  • Representational Adequacy: It is the ability of the system to represent all kinds of knowledge needed in a specific domain.
  • Inferential Adequacy: It is the ability of a knowledge representation system to manipulate the current stored knowledge so that newly gained knowledge could be added.
  • Inferential Efficiency: It is the ability of the system to directly add new knowledge in the system with efficiency
  • Acqusistional Efficiency: It is the ability of the system to automatically acquire new knowledge from the environment. This leads the system to give more productive result as more knowledge adds up with the current knowledge.

Techniques used for Knowledge Representation

There are following techniques used to represent the stored knowledge in the system:

Knowledge Representation in AI 1
  • Logic: It is the basic method used to represent the knowledge of a machine. The term logic means to apply intelligence over the stored knowledge.

Logic can be further divided as:

  • Propositional Logic: This technique is also known as propositional calculus, statement logic, or sentential logic. It is used for representing the knowledge about what is true and what is false.
  • First-order Logic: It is also known as Predicate logic or First-order predicate calculus (FOPL). This technique is used to represent the objects in the form of predicates or quantifiers. It is different from Propositional logic as it removes the complexity of the sentence represented by it. In short, FOPL is an advance version of propositional logic.

Note: We will discuss the above two techniques in Propositional logic and First-order logic sections.

  • Rule-based System: This is the most commonly used technique in artificial intelligence. In the rule-based system, we impose rules over the propositional logic and first-order logic techniques. If-then clause is used for this technique. For example, if there are two variables A and B. Value of both A and B is True. Consequently, the result of both should also be True and vice-versa. It is represented as:

 If the value of A and B is True, then the result will be True. So, such a technique makes the propositional as well as FOPL logics bounded in the rules.

  • Semantic Networks: The technique is based on storing the knowledge into the system in the form of a graph. Nodes of a graph represent the objects which exist in the real world, and the arrow represents the relationship between these objects. Such techniques show the connectivity of one object with another object. For example, Consider the given knowledge stored in a machine:

Ram has a cycle.

Ram is a boy.

Cycle has a bell.

Ram is 12 years old.

Cycle has two paddles.

Representing the above information in the form of a graph looks like:

Knowledge Representation in AI 2
  • Frames: In this technique, the knowledge is stored via slots and fillers. As we have seen in DBMS, we store the information of an employee in the database, where:

Similarly, the Slots are the entities and Fillers are its attributes. They are together stored in a frame. So, whenever there is a requirement, the machine infers the necessary information to take the decision. For example, Tomy is a dog having one tail.

It can be framed as:

Knowledge Representation in AI 3
Tomy((Species (Value = Dog))
(Feature (Value = Tail))) 
  • Script: It is an advanced technique over the Frames. Here, the information is stored in the form of a script. The script is stored in the system containing all the required information. The system infers the information from that script and solves the problem

Challenges/Issues in Knowledge Representation

  • Important Attributes: Some basic attributes were occurring in almost every problem domain.
  • Relationship among attributes: Any important relationship which exists among object attributes.
  • Choosing Granularity: How much detailed knowledge is needed to be represented?
  • Set of Objects: How to represent the set of objects?
  • Finding the right structure: The information is stored in a large amount. The question is how to access the relevant information out of whole?

Related Topics

Artificial Satellites

Many objects like stars, satellites and the moon are visible in the night sky. Satellites are objects revolving around the planet or a more significant object. Moon is the most...

6 minutes read.

Utility Functions in Artificial Intelligence

The agents use the utility theory for making decisions. It is the mapping from lotteries to the real numbers. An agent is supposed to have various preferences and can choose the one...

3 minutes read.

Hill Climbing Algorithm in AI

Hill Climbing Algorithm: Hill climbing search is a local search problem. The purpose of the hill climbing search is to climb a hill and reach the topmost peak/ point of...

4 minutes read.

Uninformed Search Strategies - Artificial Intelligence

Breadth-first search (BFS) It is a simple search strategy where the root node is expanded first, then covering all other successors of the root node, further move to expand the next...

8 minutes read.

Dynamic Routing

Dynamic Routing Dynamic routing is used to update the routing table and find networks on the routers. It is easier than static routing and default routing, but it is more expensive in terms of...

3 minutes read.

Probabilistic Reasoning

Probabilistic Reasoning Probabilistic Reasoning is the study of building network models which can reason under uncertainty, following the principles of probability theory. Bayesian Networks Bayesian network is a data structure which is used to represent the dependencies among variables....

7 minutes read.

Classical Planning

Classical Planning is the planning where an agent takes advantage of the problem structure to construct complex plans of an action. The agent performs three tasks in classical planning: Planning: The agent plans after...

4 minutes read.

Neural Networks

Neural Networks are one of the most popular techniques and tools in Machine learning. Neural Networks were inspired by the human brain as early as in the 1940s. Researchers studied the...

5 minutes read.

Artificial Intelligence Tutorial | AI Tutorial

Today, Artificial Intelligence (AI) has become the norm of how humans communicate with and understand technology. Even though you've been hearing this buzzword now and then, do you know what...

6 minutes read.

Theory of First-order Logic

Theory of First-order Logic First-order logic is also called Predicate logic and First-order predicate calculus (FOPL). It is a formal representation of logic in the form of quantifiers. In predicate logic, the input is taken...

4 minutes read.

Unsupervised Learning in AI

Unsupervised Learning in AI Unsupervised LearningIntroductionClusteringComparison between Supervised, Unsupervised, and Reinforcement Learning. Unsupervised Learning This is the third major category of Machine Learning. Unsupervised learning happens when we have data without additional feedback,...

2 minutes read.

Constraint Satisfaction Problems in Artificial Intelligence

Constraint Satisfaction Problems in Artificial Intelligence We have seen so many techniques like Local search, Adversarial search to solve different problems. The objective of every problem-solving technique is one, i.e., to find a solution to...

5 minutes read.

Information Retrieval

Information Retrieval: In order to analyze and categorize the text, we'd like to be able to figure out information about the text, some meaning about the text as well. And,...

14 minutes read.

5 algorithms that demonstrate artificial intelligence bias

Unfortunately, in the machine learning algorithm, AI bias is the output due to the prejudiced assumption made due to the algorithm development process. AI systems have biases due to the...

3 minutes read.

Supervised Learning in AI

Supervised Learning in AI Learning Supervised LearningClassification TasksNearest Neighbor ClassificationK nearest neighbor AlgorithmPerceptron LearningSupport Vector MachineRegression TasksLoss FunctionOverfittingRegularizationScikit LearnK Nearest Neighbor ImplementationPerceptron Algorithm ImplementationSupport Vector Machine Algorithm ImplementationRegression Implementation Machine Learning In the Artificial...

33 minutes read.

Knowledge Based Agents in AI

Knowledge is the basic element for a human brain to know and understand the things logically. When a person becomes knowledgeable about something, he is able to do that thing in a better...

4 minutes read.

Integration of Blockchain and Artificial Intelligence

A Blockchain is a shared database or ledger where pieces of data are stored in data structures known as blocks. So, we can say that Blockchain is the distribution storage...

6 minutes read.

Top 10 Artificial Intelligence Technologies in 2024

Artificial Intelligence Technologies in 2020 1. Augmented Reality This is one of the most fascinating technology nowadays. Augmented Reality is the use of text, graphics, audio, etc. in real time. In Simple...

4 minutes read.

Reinforcement Learning in AI

Reinforcement Learning in AI Reinforcement LearningMarkov’s Decision ProcessQ leaningGreedy Decision MakingNIM GameNIM Game Implementation with Python Reinforcement Learning Reinforcement Learning is about learning from experience, where agents are given a set of rewards...

15 minutes read.

Dynamic Bayesian Networks

DBN is a temporary network model that is used to relate variables to each other for adjacent time steps. Each part of a Dynamic Bayesian Network can have any number of Xivariables for...

3 minutes read.