SlideShare a Scribd company logo
Artificial Intelligence
Instructor:
Muhammad Javaid Iqbal
Lecturer
javaid.Iqbal@superior.edu.pk
JTech Learning Channel
https://youtube.com/playlist?list=PLPKrqmxs-
DAFhdh4VbIbw8LHEJjzg86ZY
Today’s Agenda
• Agents
• Intelligent Agents
• Structure of Intelligent Agent
• Rational Agent
• Agent Types
Important Terminologies - Agent
• Sensor (Perceive): Sensor is a device which detects the
change in the environment and sends the information to
other electronic devices. An agent observes its
environment through sensors.
• Actuators (Act): Actuators are the component of
machines that converts energy into motion. The actuators
are only responsible for moving and controlling a system.
An actuator can be an electric motor, gears, rails, etc.
• Effectors (Response): Effectors are the devices which
affect the environment. Effectors can be legs, wheels,
arms, fingers, wings, fins, and display screen.
Important Terminologies - Agent
• Percept Sequence − It is the history of all that an agent
has perceived till date.
• Agent Function − It is a map from the precept sequence
to an action. A mathematical/abstract illustration.
• Agent Program - runs on the physical architecture to
produce the agent function. Concrete implementation.
• Behavior of Agent − It is the action that agent performs
after any given sequence of percept.
Agent
An agent is anything that can perceive its environment through
sensors and acts upon that environment through effectors.
For example:
• Human Agent has sensory organs such as eyes, ears,
nose, tongue and skin parallel to the sensors, and other
organs such as hands, legs, mouth, for effectors.
• Robotic Agent replaces cameras and infrared range
finders for the sensors, and various motors and actuators
for effectors.
• Software Agent has encoded bit strings as its programs
and actions.
A simple example of Agent
Intelligent Agent
An intelligent agent is an autonomous entity which
act upon an environment using sensors and
actuators for achieving goals.
An intelligent agent may learn from the environment
to achieve their goals.
Example: Thermostat
Intelligent Agent - Four Rules
• Rule 1: An AI agent must have the ability to perceive the
environment.
• Rule 2: The observation must be used to make decisions.
• Rule 3: Decision should result in an action.
• Rule 4: The action taken by an AI agent must be a rational action.
Recall - Rationality
● An agent should "do the right thing", based on what it can perceive and the actions it can
perform. The right action is the one that will cause the agent to be most successful.
● How to measure performance?
○ Using an evaluation measure which is based objective criterion for success of an
agent's behaviour
● Back to the vacuum-cleaner example
○ Amount of dirt cleaned within certain time
○ +1 credit for each clean square per unit time
● General rule: measure what one wants rather than how one thinks the agent should
behave
Rational Agent
For each possible percept sequence, a rational agent should
select an action that is expected to maximize its performance
measure, given the evidence provided by the percept sequence
and whatever built-in knowledge the agent has.
Rational Agent - Example
● A simple agent that cleans a square if it is dirty and moves
to the other square if not. Is it rational?
● Assumption:
○ performance measure: 1 point for each clean square at each time step
○ environment is known a priori
○ actions = {left, right, suck}
○ agent is able to perceive the location and dirt in that location
● Given different assumption, it might not be rational anymore
Autonomy
● The behaviour of an agent depends on its own experience
as well as the built-in knowledge of the agent instilled by
the agent designer.
● A system is autonomous if it takes actions according to its
experience.
Agents - Variants/Types
• Simple Reflex Agent
• Model Based Reflex Agents
• Goal Based Agents
• Utility Based Agents
• Learning Agents
Agents - Variants/Types - Simple Reflex Agent
● Reflex Agent works similar to the reflex action of our body
(e.g. when we immediately lift our finger when it touches
the tip of the flame).
● Just as the prompt response of our body based on the
current situation, the agent also responds based on the
current environment irrespective of the past state of the
environment. The reflex agent can work properly only if
the decisions to be made are based on the current
percept.
Agents - Variants/Types - Simple Reflex Agent
Agents - Variants/Types - Model Based Reflex Agent
● These are the agents with memory. It stores the
information about the previous state, the current state and
performs the action accordingly.
● Just as while driving, if the driver wants to change the
lane, he looks into the mirror to know the present position
of vehicles behind him. While looking in front, he can only
see the vehicles in front and as he already has the
information on the position of vehicles behind him (from
the mirror a moment ago), he can safely change the lane.
The previous and the current state get updated quickly for
deciding the action.
Agents - Variants/Types - Model Based Reflex Agent
Agents - Variants/Types - Goal Based Agent
● In some circumstances, just the information of the current
state may not help in making the right decision.
● If the goal is known, then the agent takes into account the
goal information besides the current state information to
make the right decision.
● E.g. if the agent is a self-driving car and the goal is the
destination, then the information of the route to the
destination helps the car in deciding when to turn left or
right.
Agents - Variants/Types - Goal Based Reflex Agent
Agents - Variants/Types - Utility Agent
● There can be many possible sequences to achieve the
goal but some will be better than others.
● Considering the same example mentioned above, the
destination is known but there are multiple routes.
Choosing an appropriate route also matters to the overall
success of the agent. There are many factors in deciding
the route like the shortest one, the comfortable one, etc.
The success depends on the utility of the agent-based on
user preferences.
Agents - Variants/Types - Utility Agent
Today’s Agenda
• PEAS?
• Agent Environments
PEAS
● There are multiple types/variants of agents (discussed in previous lecture).
● PEAS is a system used to categorize similar systems together.
● This system deliver performance measure with respect to environment,
actuators, and sensors of respective agent.
PEAS
Example
• Self Driving Car
• Auto Pilot
• Cooking Agent
• Teaching
Environments
Environments
• Fully observable vs Partially Observable
• Static vs Dynamic
• Discrete vs Continuous
• Deterministic vs Stochastic
• Single-agent vs Multi-agent
• Episodic vs sequential
• Known vs Unknown
• Accessible vs Inaccessible
Environments - Observation
• Fully Observable
• Partially Observable
• Non-Observable
Which environment will be easy for an agent?
Environments - Prediction
• Deterministic
• Stochastic
Which environment will be easy for
an agent?
Environments - Event
• Episodic
• Serial/Sequential
• Which environment will be easy for an agent?
Environments - Existence
• Single
• Multiple
Which environment will be easy for an
agent?
Environments -
Consistency
• Static
• Dynamic
Which environment will be
easy for an agent?
Environments - Certainty
• Known
• Unknown
Which environment will be easy for an
agent?
Environments -
Accessibility
• Accessible
• Inaccessible
Which environment will be
easy for an agent?
Thanks

More Related Content

Similar to W2_Lec03_Lec04_Agents.pptx

Intelligence Agent - Artificial Intelligent (AI)
Intelligence Agent - Artificial Intelligent (AI)Intelligence Agent - Artificial Intelligent (AI)
Intelligence Agent - Artificial Intelligent (AI)
mufassirin
 
2.IntelligentAgents.ppt
2.IntelligentAgents.ppt2.IntelligentAgents.ppt
2.IntelligentAgents.ppt
GopiSuresh8
 
Intelligent Agents
Intelligent Agents Intelligent Agents
Intelligent Agents
Amar Jukuntla
 
artificial intelligence document final.pptx
artificial intelligence document final.pptxartificial intelligence document final.pptx
artificial intelligence document final.pptx
thahaxaina025
 
Agents1
Agents1Agents1
Agents1
Amar Jukuntla
 
Intelligent (Knowledge Based) agent in Artificial Intelligence
Intelligent (Knowledge Based) agent in Artificial IntelligenceIntelligent (Knowledge Based) agent in Artificial Intelligence
Intelligent (Knowledge Based) agent in Artificial Intelligence
Kuppusamy P
 
Unit-1.pptx
Unit-1.pptxUnit-1.pptx
Unit-1.pptx
DharaDarji5
 
Intelligent Agents, A discovery on How A Rational Agent Acts
Intelligent Agents, A discovery on How A Rational Agent ActsIntelligent Agents, A discovery on How A Rational Agent Acts
Intelligent Agents, A discovery on How A Rational Agent Acts
Sheetal Jain
 
Lec 2 agents
Lec 2 agentsLec 2 agents
Lec 2 agents
Eyob Sisay
 
Intelligent AGent class.pptx
Intelligent AGent class.pptxIntelligent AGent class.pptx
Intelligent AGent class.pptx
AdJamesJohn
 
mosfet3inteliggent ageent preserve2ss.ppt
mosfet3inteliggent ageent preserve2ss.pptmosfet3inteliggent ageent preserve2ss.ppt
mosfet3inteliggent ageent preserve2ss.ppt
danymorales34
 
agents.pdf
agents.pdfagents.pdf
agents.pdf
samisamco1
 
Intelligent agents.ppt
Intelligent agents.pptIntelligent agents.ppt
Intelligent agents.ppt
ShilpaBhatia32
 
CS Artificial intelligence chapter 2.pptx
CS Artificial intelligence chapter 2.pptxCS Artificial intelligence chapter 2.pptx
CS Artificial intelligence chapter 2.pptx
ethiouniverse
 
AI Basic.pptx
AI Basic.pptxAI Basic.pptx
AI Basic.pptx
DharaDarji5
 
Artificial Intelligence Course of BIT Unit 2
Artificial Intelligence Course of BIT Unit 2Artificial Intelligence Course of BIT Unit 2
Artificial Intelligence Course of BIT Unit 2
Home
 
Structure of agents
Structure of agentsStructure of agents
Structure of agents
MANJULA_AP
 

Similar to W2_Lec03_Lec04_Agents.pptx (20)

Intelligence Agent - Artificial Intelligent (AI)
Intelligence Agent - Artificial Intelligent (AI)Intelligence Agent - Artificial Intelligent (AI)
Intelligence Agent - Artificial Intelligent (AI)
 
2.IntelligentAgents.ppt
2.IntelligentAgents.ppt2.IntelligentAgents.ppt
2.IntelligentAgents.ppt
 
Intelligent Agents
Intelligent Agents Intelligent Agents
Intelligent Agents
 
artificial intelligence document final.pptx
artificial intelligence document final.pptxartificial intelligence document final.pptx
artificial intelligence document final.pptx
 
M2 agents
M2 agentsM2 agents
M2 agents
 
Agents1
Agents1Agents1
Agents1
 
Intelligent (Knowledge Based) agent in Artificial Intelligence
Intelligent (Knowledge Based) agent in Artificial IntelligenceIntelligent (Knowledge Based) agent in Artificial Intelligence
Intelligent (Knowledge Based) agent in Artificial Intelligence
 
Unit-1.pptx
Unit-1.pptxUnit-1.pptx
Unit-1.pptx
 
Intelligent Agents, A discovery on How A Rational Agent Acts
Intelligent Agents, A discovery on How A Rational Agent ActsIntelligent Agents, A discovery on How A Rational Agent Acts
Intelligent Agents, A discovery on How A Rational Agent Acts
 
Lec 2 agents
Lec 2 agentsLec 2 agents
Lec 2 agents
 
Intelligent AGent class.pptx
Intelligent AGent class.pptxIntelligent AGent class.pptx
Intelligent AGent class.pptx
 
mosfet3inteliggent ageent preserve2ss.ppt
mosfet3inteliggent ageent preserve2ss.pptmosfet3inteliggent ageent preserve2ss.ppt
mosfet3inteliggent ageent preserve2ss.ppt
 
agents.pdf
agents.pdfagents.pdf
agents.pdf
 
Intelligent agents.ppt
Intelligent agents.pptIntelligent agents.ppt
Intelligent agents.ppt
 
CS Artificial intelligence chapter 2.pptx
CS Artificial intelligence chapter 2.pptxCS Artificial intelligence chapter 2.pptx
CS Artificial intelligence chapter 2.pptx
 
AI Basic.pptx
AI Basic.pptxAI Basic.pptx
AI Basic.pptx
 
M2 agents
M2 agentsM2 agents
M2 agents
 
Artificial Intelligence Course of BIT Unit 2
Artificial Intelligence Course of BIT Unit 2Artificial Intelligence Course of BIT Unit 2
Artificial Intelligence Course of BIT Unit 2
 
Structure of agents
Structure of agentsStructure of agents
Structure of agents
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
 

More from Javaid Iqbal

Introduction to Tools and Techniques in the Data Sceicne
Introduction to Tools and Techniques in the Data SceicneIntroduction to Tools and Techniques in the Data Sceicne
Introduction to Tools and Techniques in the Data Sceicne
Javaid Iqbal
 
lecture5.ppt
lecture5.pptlecture5.ppt
lecture5.ppt
Javaid Iqbal
 
W1_Lec01_Lec02_Introduction.pptx
W1_Lec01_Lec02_Introduction.pptxW1_Lec01_Lec02_Introduction.pptx
W1_Lec01_Lec02_Introduction.pptx
Javaid Iqbal
 
Lecture 10.pptx
Lecture 10.pptxLecture 10.pptx
Lecture 10.pptx
Javaid Iqbal
 
Web Engineering Lec01-02 - Introduction to Web.pptx
Web Engineering Lec01-02 - Introduction to Web.pptxWeb Engineering Lec01-02 - Introduction to Web.pptx
Web Engineering Lec01-02 - Introduction to Web.pptx
Javaid Iqbal
 
W16_Lec_31_Lec_32_Widgets.pptx
W16_Lec_31_Lec_32_Widgets.pptxW16_Lec_31_Lec_32_Widgets.pptx
W16_Lec_31_Lec_32_Widgets.pptx
Javaid Iqbal
 
W14_Lec_27_Lec_28_Services.pptx
W14_Lec_27_Lec_28_Services.pptxW14_Lec_27_Lec_28_Services.pptx
W14_Lec_27_Lec_28_Services.pptx
Javaid Iqbal
 

More from Javaid Iqbal (7)

Introduction to Tools and Techniques in the Data Sceicne
Introduction to Tools and Techniques in the Data SceicneIntroduction to Tools and Techniques in the Data Sceicne
Introduction to Tools and Techniques in the Data Sceicne
 
lecture5.ppt
lecture5.pptlecture5.ppt
lecture5.ppt
 
W1_Lec01_Lec02_Introduction.pptx
W1_Lec01_Lec02_Introduction.pptxW1_Lec01_Lec02_Introduction.pptx
W1_Lec01_Lec02_Introduction.pptx
 
Lecture 10.pptx
Lecture 10.pptxLecture 10.pptx
Lecture 10.pptx
 
Web Engineering Lec01-02 - Introduction to Web.pptx
Web Engineering Lec01-02 - Introduction to Web.pptxWeb Engineering Lec01-02 - Introduction to Web.pptx
Web Engineering Lec01-02 - Introduction to Web.pptx
 
W16_Lec_31_Lec_32_Widgets.pptx
W16_Lec_31_Lec_32_Widgets.pptxW16_Lec_31_Lec_32_Widgets.pptx
W16_Lec_31_Lec_32_Widgets.pptx
 
W14_Lec_27_Lec_28_Services.pptx
W14_Lec_27_Lec_28_Services.pptxW14_Lec_27_Lec_28_Services.pptx
W14_Lec_27_Lec_28_Services.pptx
 

Recently uploaded

Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
ArianaBusciglio
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Marketing internship report file for MBA
Marketing internship report file for MBAMarketing internship report file for MBA
Marketing internship report file for MBA
gb193092
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
chanes7
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 

Recently uploaded (20)

Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Marketing internship report file for MBA
Marketing internship report file for MBAMarketing internship report file for MBA
Marketing internship report file for MBA
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 

W2_Lec03_Lec04_Agents.pptx

  • 1. Artificial Intelligence Instructor: Muhammad Javaid Iqbal Lecturer javaid.Iqbal@superior.edu.pk JTech Learning Channel https://youtube.com/playlist?list=PLPKrqmxs- DAFhdh4VbIbw8LHEJjzg86ZY
  • 2. Today’s Agenda • Agents • Intelligent Agents • Structure of Intelligent Agent • Rational Agent • Agent Types
  • 3. Important Terminologies - Agent • Sensor (Perceive): Sensor is a device which detects the change in the environment and sends the information to other electronic devices. An agent observes its environment through sensors. • Actuators (Act): Actuators are the component of machines that converts energy into motion. The actuators are only responsible for moving and controlling a system. An actuator can be an electric motor, gears, rails, etc. • Effectors (Response): Effectors are the devices which affect the environment. Effectors can be legs, wheels, arms, fingers, wings, fins, and display screen.
  • 4. Important Terminologies - Agent • Percept Sequence − It is the history of all that an agent has perceived till date. • Agent Function − It is a map from the precept sequence to an action. A mathematical/abstract illustration. • Agent Program - runs on the physical architecture to produce the agent function. Concrete implementation. • Behavior of Agent − It is the action that agent performs after any given sequence of percept.
  • 5. Agent An agent is anything that can perceive its environment through sensors and acts upon that environment through effectors. For example: • Human Agent has sensory organs such as eyes, ears, nose, tongue and skin parallel to the sensors, and other organs such as hands, legs, mouth, for effectors. • Robotic Agent replaces cameras and infrared range finders for the sensors, and various motors and actuators for effectors. • Software Agent has encoded bit strings as its programs and actions.
  • 6. A simple example of Agent
  • 7. Intelligent Agent An intelligent agent is an autonomous entity which act upon an environment using sensors and actuators for achieving goals. An intelligent agent may learn from the environment to achieve their goals. Example: Thermostat
  • 8. Intelligent Agent - Four Rules • Rule 1: An AI agent must have the ability to perceive the environment. • Rule 2: The observation must be used to make decisions. • Rule 3: Decision should result in an action. • Rule 4: The action taken by an AI agent must be a rational action.
  • 9. Recall - Rationality ● An agent should "do the right thing", based on what it can perceive and the actions it can perform. The right action is the one that will cause the agent to be most successful. ● How to measure performance? ○ Using an evaluation measure which is based objective criterion for success of an agent's behaviour ● Back to the vacuum-cleaner example ○ Amount of dirt cleaned within certain time ○ +1 credit for each clean square per unit time ● General rule: measure what one wants rather than how one thinks the agent should behave
  • 10. Rational Agent For each possible percept sequence, a rational agent should select an action that is expected to maximize its performance measure, given the evidence provided by the percept sequence and whatever built-in knowledge the agent has.
  • 11. Rational Agent - Example ● A simple agent that cleans a square if it is dirty and moves to the other square if not. Is it rational? ● Assumption: ○ performance measure: 1 point for each clean square at each time step ○ environment is known a priori ○ actions = {left, right, suck} ○ agent is able to perceive the location and dirt in that location ● Given different assumption, it might not be rational anymore
  • 12. Autonomy ● The behaviour of an agent depends on its own experience as well as the built-in knowledge of the agent instilled by the agent designer. ● A system is autonomous if it takes actions according to its experience.
  • 13. Agents - Variants/Types • Simple Reflex Agent • Model Based Reflex Agents • Goal Based Agents • Utility Based Agents • Learning Agents
  • 14. Agents - Variants/Types - Simple Reflex Agent ● Reflex Agent works similar to the reflex action of our body (e.g. when we immediately lift our finger when it touches the tip of the flame). ● Just as the prompt response of our body based on the current situation, the agent also responds based on the current environment irrespective of the past state of the environment. The reflex agent can work properly only if the decisions to be made are based on the current percept.
  • 15. Agents - Variants/Types - Simple Reflex Agent
  • 16. Agents - Variants/Types - Model Based Reflex Agent ● These are the agents with memory. It stores the information about the previous state, the current state and performs the action accordingly. ● Just as while driving, if the driver wants to change the lane, he looks into the mirror to know the present position of vehicles behind him. While looking in front, he can only see the vehicles in front and as he already has the information on the position of vehicles behind him (from the mirror a moment ago), he can safely change the lane. The previous and the current state get updated quickly for deciding the action.
  • 17. Agents - Variants/Types - Model Based Reflex Agent
  • 18. Agents - Variants/Types - Goal Based Agent ● In some circumstances, just the information of the current state may not help in making the right decision. ● If the goal is known, then the agent takes into account the goal information besides the current state information to make the right decision. ● E.g. if the agent is a self-driving car and the goal is the destination, then the information of the route to the destination helps the car in deciding when to turn left or right.
  • 19. Agents - Variants/Types - Goal Based Reflex Agent
  • 20. Agents - Variants/Types - Utility Agent ● There can be many possible sequences to achieve the goal but some will be better than others. ● Considering the same example mentioned above, the destination is known but there are multiple routes. Choosing an appropriate route also matters to the overall success of the agent. There are many factors in deciding the route like the shortest one, the comfortable one, etc. The success depends on the utility of the agent-based on user preferences.
  • 21. Agents - Variants/Types - Utility Agent
  • 22. Today’s Agenda • PEAS? • Agent Environments
  • 23. PEAS ● There are multiple types/variants of agents (discussed in previous lecture). ● PEAS is a system used to categorize similar systems together. ● This system deliver performance measure with respect to environment, actuators, and sensors of respective agent.
  • 24. PEAS Example • Self Driving Car • Auto Pilot • Cooking Agent • Teaching
  • 26. Environments • Fully observable vs Partially Observable • Static vs Dynamic • Discrete vs Continuous • Deterministic vs Stochastic • Single-agent vs Multi-agent • Episodic vs sequential • Known vs Unknown • Accessible vs Inaccessible
  • 27. Environments - Observation • Fully Observable • Partially Observable • Non-Observable Which environment will be easy for an agent?
  • 28. Environments - Prediction • Deterministic • Stochastic Which environment will be easy for an agent?
  • 29. Environments - Event • Episodic • Serial/Sequential • Which environment will be easy for an agent?
  • 30. Environments - Existence • Single • Multiple Which environment will be easy for an agent?
  • 31. Environments - Consistency • Static • Dynamic Which environment will be easy for an agent?
  • 32. Environments - Certainty • Known • Unknown Which environment will be easy for an agent?
  • 33. Environments - Accessibility • Accessible • Inaccessible Which environment will be easy for an agent?