[AIML] Lecture 23 to25
[AIML] Lecture 23 to25
LEARNING (IT3201)
(Sem: 6
(Section B))
th
Lecture 24-28
Instructor: Venkatesh Gauri Shankar
Intelligent Agents in AI
• In the context of AI, intelligent agents are entities that are designed to
perceive their environment, reason about it, and take actions to
achieve specific goals.
• All agents are software programs, but not all software programs
are agents.
Perception Capable of perceiving its environment May not necessarily have sensing capabilities
Decision-Making Makes decisions based on perception and goals Follows predefined logic or algorithms
Learning May incorporate learning mechanisms May lack adaptive or learning capabilities
Complexity Can be complex, incorporating AI techniques Can vary in complexity, from simple to complex
Purpose Designed to achieve specific goals or tasks Developed for a particular function or task
Adaptability Can adapt to changing conditions May require manual updates for changes
Interaction Can interact with other agents or systems May or may not interact with external entities
Examples Intelligent agents in robotics, virtual assistants Text editors, calculators, basic programs
Components of Intelligent Agents
• Perception (Sensors): Intelligent agents are equipped with sensors or
mechanisms to perceive information from their environment. These sensors
could include cameras, microphones, temperature sensors, or other input
devices depending on the nature of the agent and its application.
Case Study:
A simple reflex agent is used to control traffic lights at an intersection. The
agent makes decisions based on the current state (percept) of the traffic,
without considering the history.
Scenario:
If the sensors detect heavy traffic on one road, the traffic light for that road
stays green for a longer duration to allow vehicles to clear the congestion.
Classification of Agents: Case study
• Simple Reflex Agent: Traffic Light Controller
Case Study:
A simple reflex agent is used to control traffic lights at an intersection. The
agent makes decisions based on the current state (percept) of the traffic,
without considering the history.
Scenario:
If the sensors detect heavy traffic on one road, the traffic light for that road
stays green for a longer duration to allow vehicles to clear the congestion.
Classification of Agents: Case study
• Model-Based Reflex Agent: Chess Playing Agent
▪ Case Study:
▪ A model-based reflex agent plays chess. It maintains an internal model of
the chessboard to make decisions based on the current state and history
of moves.
▪ Scenario:
▪ The agent considers the positions of all pieces on the board and uses a
model to determine the best move based on learned strategies and past
game data.
Classification of Agents: Case study
• Goal-Based Agent: Personal Assistant App
• Case Study:
• A goal-based agent in the form of a personal assistant app helps users
manage tasks and appointments.
• Scenario:
• The user sets a goal of scheduling a meeting. The agent analyzes the
user's calendar, considers the goal, and suggests available time slots for
the meeting.
Classification of Agents: Case study
• Utility-Based Agent: Online Retail Recommendation System
• Case Study:
• A utility-based agent is employed in an online retail recommendation
system, such as Amazon's.
• Scenario:
• The agent evaluates the utility or preference of different products for a
user based on their browsing and purchase history, recommending items
with the highest predicted utility.
Classification of Agents: Case study
• Learning Agent: Email Spam Filter
• Case Study:
• A learning agent is used as an email spam filter.
• Scenario:
• The agent learns from the user's actions (marking emails as spam or not)
and continuously adapts its filtering criteria to improve accuracy over
time.
Classification of Agents: Case study
• Rational Agent: Stock Trading Algorithm
• Case Study:
• A rational agent operates as a stock trading algorithm.
• Scenario:
• The agent analyzes market data, news, and historical trends to make buy
or sell decisions, aiming to maximize returns while considering risk.
Classification of Agents: Case study
• Belief-Desire-Intention (BDI) Agent: Social Robot in Elderly Care
• Case Study:
• A BDI agent is implemented in a social robot designed to assist elderly
individuals.
• Scenario:
• Scenario:
• Scenario:
• Scenario:
• Scenario:
• Scenario:
• This agent is responsible for perceiving the environment, making decisions, and
taking actions without interacting with other agents.
• In a multi-agent system, multiple intelligent agents exist and operate within the
same environment.
• These agents may have their own goals, capabilities, and decision-making
processes. The agents can interact with each other, sharing information and
influencing each other's behavior.
• Multi-agent systems are prevalent in applications where collaboration,
coordination, or competition between agents is essential.
Single and Multi-Agent System
• Example: Chess-Playing Agent
• Agent: The chess-playing program that makes decisions based on the
current state of the chessboard and its goal to win the game.
• Environment: The chessboard, opponent, and game rules.
• Performance Measure: Winning the game or making optimal moves.
• Example: Multi-Agent Robotic Swarm
• Agents: A group of small robotic drones working together to explore an
unknown environment.
• Environment: The physical space with obstacles, potential targets, and
other drones.
• Performance Measure: Efficient exploration, coverage of the entire area.
Single and Multi-Agent System
• Key Differences:
1.Interaction:
1. Single-Agent: Operates independently without interaction with other agents.
2. Multi-Agent: Involves interactions, collaborations, or competitions between multiple agents.
2.Goals:
1. Single-Agent: Has its own set of goals and objectives.
2. Multi-Agent: Each agent may have individual goals, and there may be collective goals for the
group.
3.Decision-Making:
1. Single-Agent: Makes decisions based on its own perception and goals.
2. Multi-Agent: Decision-making may involve considering the actions and influence of other agents.
4.Complexity:
1. Single-Agent: Generally simpler, as there's only one agent to consider.
2. Multi-Agent: Can be more complex due to interactions and coordination between multiple agents.
5.Applications:
1. Single-Agent: Found in applications where individual entities operate independently.
2. Multi-Agent: Used in scenarios requiring collaboration, distributed problem-solving, or
competition.
Agents in AI