Lecture 2 - Perception, Intelligence and Reasoning
Lecture 2 - Perception, Intelligence and Reasoning
INTELLIGENCE AND
REASONING
DR REGINA ESI TURKSON
Agent and Structure
Agent: An agent is anything that can be viewed as
perceiving its environment through sensors and acting
upon that environment through actuators.
Artificial Agent
A computer program or system that is programmed to
observe its surroundings, make decisions, and perform
actions in order to accomplish a particular objective or set
of goals. Eg:
Sensors: perceiving its environment
Actuator: acting upon
Examples of agents: Intelligent personal assistant,
Autonomous robots, Gaming agent, Fraud detection agent,
Traffic management agent, software agent, Human-agent.
Terminologies
Percept:
Percept Sequence:
Agent function:
Agent program:
NB: program,agent function and agent
program
Structure of an AI agent
Architecture and Agent programs
Agent = Architecture + Agent Program
Architecture is the machinery that the agent executes on
The Concept of Rationality
◦ Rationality, rational agents, artificial intelligence
Forward chaining is a bottom-up approach to reasoning and inference. It starts with the given
data or facts and uses rules and logic to derive new conclusions or reach a goal.
Forward chaining
Step 1: Initially, the system has a set of known facts or data.
Step 2: It matches these facts against the antecedents (conditions) of the rules to find a rule
whose conditions are satisfied by the available data. Step
3: Once a rule with fulfilled conditions is found, its consequent (action) is executed, adding new
facts to the data pool.
Step 4: The process continues iteratively, applying rules and generating new facts until no more
rules can be executed or until a specific goal is reached.
Backward Chaining
Backward chaining is a top-down approach to reasoning and inference.
How backward chaining works:
Step 1: The system starts with a specific goal or query.
Step 2: It looks for rules or conditions that have the goal as a consequent (action).
Step 3: Once a rule with the desired goal as the consequent is found, it checks if the antecedents
(conditions) of the rule can be satisfied using the available data.
Step 4: If the antecedents can be fulfilled, the goal is considered proven and the process stops.
Step 5: If the antecedents cannot be satisfied directly, the system recursively treats the
antecedents as new goals and repeats the process until it finds the necessary data to support
the original query.
Approaches to designing a
knowledge-based agent
There are mainly two approaches to build a knowledge-based agent:
Declarative approach: starts with an empty knowledge base and telling the agent which
sentences to start with.
Procedural approach: develop a program that already encodes the desired behavior or agent.
The three main Levels of
knowledge-based agent
Knowledge Level: We specify what the agent knows and what the agent's goals are. We can modify
its behavior using these specifications. Eg. Assume an automated taxi agent needs to travel from
station A to station B, and he knows the route from A to B, then this falls under the knowledge level.
Logical Level: At the logical level, knowledge is encoded into logical statements. At the logical level
we can expect to the automated taxi agent to reach the destination B.
Implementation Level: This is the physical representation of logic and knowledge. At the
implementation level agent perform actions as per logical and knowledge level. At this level, an
automated taxi agent actually implements his knowledge and logic so that it can reach to the
destination.
Branches of logic
Modal Logic:
Fuzzy Logic:
Temporal Logic:
Applications of logic
Automated Discovery in Science
Inductive Programming
Automation of Mathematical Reasoning: Knowledge Representation
Inference and Reasoning
Expert Systems
Natural Language Processing (NLP)
Robotics
Game Playing