AI Session 2 Slides
AI Session 2 Slides
AI Session 2 Slides
Reasoning
Session 2 Slides
AI - Agents & Environments
🠶 An AI system is composed of an agent and its
environment.
🠶 The agents act in their environment.
🠶 The environment may contain other agents.
🠶 What are Agent and Environment?
🠶 An agent is anything that can perceive its environment
through sensors and acts upon that environment
through effectors.
AI - Agents & Environments
🠶 Examples of agents.
🠶 Perception
🠶 Receives data from the environment
🠶 It can be visual, audio or another form of sensory input
🠶 Learning
🠶 The learning component is responsible for learning from data captured by Perception
comportment
AI knowledge cycle:
🠶 It is the simplest way of storing facts which uses the relational method, and
each fact about a set of the object is set out systematically in columns.
🠶 This approach of knowledge representation is famous in database systems
where the relationship between different entities is represented.
🠶 This approach has little opportunity for inference.
Inheritable knowledge
🠶 In the inheritable knowledge approach, all data must be stored into a hierarchy
of classes.
🠶 All classes should be arranged in a generalized form or a hierarchal manner.
🠶 In this approach, we apply inheritance property.
🠶 Elements inherit values from other members of a class.
🠶 This approach contains inheritable knowledge which shows a relation between
instance and class, and it is called instance relation.
🠶 Every individual frame can represent the collection of attributes and its value.
🠶 In this approach, objects and values are represented in Boxed nodes.
Inheritable knowledge
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)
Procedural Knowledge
🠶 Rules or Production Rules for Procedural Knowledge Representation
🠶 A production system consists of three components; the data base, the rules and
the interpreter.
🠶 The data base or the working memory represents all the knowledge of the
system at any given moment.
🠶 It can be thought of as a simple data base of facts which are true of the domain
at that time.
🠶 The contents of data base change as facts are added or deleted according to the
application of the rules.
Procedural Knowledge
🠶 Rules are expressed as IF-THEN statements
🠶 If the pH of the spill is less than 6,
🠶 Then the spill material is an acid.
🠶 When the If portion of a rule is satisfied by the facts in the database the action
specified by the THEN in the database portion is performed.
🠶 When this happens the rule is said to fire or execute.
🠶 A rule interpreter compares the IF portions of rules with facts in the database
and executes the rule whose IF portion matches the facts.
Procedural Knowledge
Techniques of knowledge representation
🠶 There are mainly four ways of knowledge representation which are given as
follows:
🠶 Logical Representation
🠶 Semantic Network Representation
🠶 Frame Representation
🠶 Production Rules
Logical Representation
🠶 Propositions are statements that can be either true or false, and nothing else.
🠶 Lets look at this proposition
🠶 Example 1: Peter is a man
🠶 Here man is the predicate
🠶 a predicate is statement whose truth value is depend upon the variables
🠶 This can be represented in a predicate logic statement as
🠶 Man(Peter)
🠶 In other words we can say Man is a class and Peter is an object of class man
Logical Representation
🠶
Logical Representation
🠶
Logical Representation
🠶
Semantic Network Representation