Announcements  Upcoming due dates  F 5 pm Proj 0  M 11:59 pm HW 1  Be careful of edX timezone (UTC)!  New GSI  Welcome Nathan Mandi!  Discussion.

Slides:



Advertisements
Similar presentations
Chapter 2: Intelligent Agents
Advertisements

Additional Topics ARTIFICIAL INTELLIGENCE
Intelligent Agents Chapter 2.
Intelligent Agents Russell and Norvig: 2
ICS-171: 1 Intelligent Agents Chapter 2 ICS 171, Fall 2009.
Intelligent Agents Chapter 2. Outline Agents and environments Agents and environments Rationality Rationality PEAS (Performance measure, Environment,
Intelligent Agents CPS
January 11, 2006AI: Chapter 2: Intelligent Agents1 Artificial Intelligence Chapter 2: Intelligent Agents Michael Scherger Department of Computer Science.
CSE 471/598, CBS 598 Intelligent Agents TIP We’re intelligent agents, aren’t we? Fall 2004.
ICS-271: 1 Intelligent Agents Chapter 2 ICS 279 Fall 09.
ICS-171: Notes 2: 1 Intelligent Agents Chapter 2 ICS 171, Fall 2005.
Intelligent Agents Chapter 2 ICS 171, Fall 2005.
CSE 471/598 Intelligent Agents TIP We’re intelligent agents, aren’t we? Spring 2004.
Intelligent Agents Chapter 2.
Rutgers CS440, Fall 2003 Lecture 2: Intelligent Agents Reading: AIMA, Ch. 2.
Russell and Norvig: Chapter 2 CMSC421 – Fall 2006
Rational Agents (Chapter 2)
Introduction to Logic Programming WS2004/A.Polleres 1 Introduction to Artificial Intelligence MSc WS 2009 Intelligent Agents: Chapter 2.
Rational Agents (Chapter 2)
Intelligent Agents Chapter 2. Outline Agents and environments Rationality PEAS (Performance measure, Environment, Actuators, Sensors) Environment types.
Intelligent Agents Chapter 2. Outline Agents and environments Rationality PEAS (Performance measure, Environment, Actuators, Sensors) Environment types.
CPSC 7373: Artificial Intelligence Jiang Bian, Fall 2012 University of Arkansas at Little Rock.
Intelligent Agents. Software agents O Monday: O Overview video (Introduction to software agents) O Agents and environments O Rationality O Wednesday:
1 AI and Agents CS 171/271 (Chapters 1 and 2) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Artificial Intelligence
CHAPTER 2 Intelligent Agents. Outline Agents and environments Rationality PEAS (Performance measure, Environment, Actuators, Sensors) Environment types.
© Copyright 2008 STI INNSBRUCK Introduction to A rtificial I ntelligence MSc WS 2009 Intelligent Agents: Chapter.
How R&N define AI Systems that think like humans Systems that think rationally Systems that act like humans Systems that act rationally humanly vs. rationally.
Chapter 2 Intelligent Agents. Chapter 2 Intelligent Agents What is an agent ? An agent is anything that perceiving its environment through sensors and.
Intelligent Agents Chapter 2 Some slide credits to Hwee Tou Ng (Singapore)
Lection 3. Part 1 Chapter 2 of Russel S., Norvig P. Artificial Intelligence: Modern Approach.
Outline Agents and environments Rationality PEAS (Performance measure, Environment, Actuators, Sensors) Environment types Agent types Artificial Intelligence.
Intelligent Agents Chapter 2. CIS Intro to AI - Fall Outline  Brief Review  Agents and environments  Rationality  PEAS (Performance measure,
Chapter 2 Agents & Environments. © D. Weld, D. Fox 2 Outline Agents and environments Rationality PEAS specification Environment types Agent types.
PEAS: Medical diagnosis system  Performance measure  Patient health, cost, reputation  Environment  Patients, medical staff, insurers, courts  Actuators.
Intelligent Agents Chapter 2. Outline Agents and environments Rationality PEAS (Performance measure, Environment, Actuators, Sensors) Environment types.
Intelligent Agents Chapter 2. Agents An agent is anything that can be viewed as perceiving its environment through sensors and acting upon that environment.
Agents CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Chapter 2 Hande AKA. Outline Agents and Environments Rationality The Nature of Environments Agent Types.
CE An introduction to Artificial Intelligence CE Lecture 2: Intelligent Agents Ramin Halavati In which we discuss.
CS 8520: Artificial Intelligence Intelligent Agents Paula Matuszek Fall, 2008 Slides based on Hwee Tou Ng, aima.eecs.berkeley.edu/slides-ppt, which are.
INTELLIGENT AGENTS. Agent and Environment Environment Agent percepts actions ? Sensors Effectors.
Rational Agents (Chapter 2)
Dr. Alaa Sagheer Chapter 2 Artificial Intelligence Ch2: Intelligent Agents Dr. Alaa Sagheer.
Intelligent Agents Chapter 2. Outline Agents and environments Rationality PEAS (Performance measure, Environment, Actuators, Sensors) Environment types.
Intelligent Agents Chapter 2. Outline Agents and environments Rationality PEAS (Performance measure, Environment, Actuators, Sensors) Environment types.
1/23 Intelligent Agents Chapter 2 Modified by Vali Derhami.
Intelligent Agents Introduction Rationality Nature of the Environment Structure of Agents Summary.
CSE 471/598 Intelligent Agents TIP We’re intelligent agents, aren’t we?
Chapter 2 Agents & Environments
CSC 9010 Spring Paula Matuszek Intelligent Agents Overview Slides based in part on Hwee Tou Ng, aima.eecs.berkeley.edu/slides-ppt, which are in turn.
Lecture 2: Intelligent Agents Heshaam Faili University of Tehran What is an intelligent agent? Structure of intelligent agents Environments.
CPSC 420 – Artificial Intelligence Texas A & M University Lecture 2 Lecturer: Laurie webster II, M.S.S.E., M.S.E.e., M.S.BME, Ph.D., P.E.
Intelligent Agents. Outline Agents and environments Rationality PEAS (Performance measure, Environment, Actuators, Sensors) Environment types Agent types.
How R&N define AI humanly vs. rationally thinking vs. acting
Intelligent Agents By, JITHIN M J.
EA C461 – Artificial Intelligence Intelligent Agents
Chapter 2 – AIMA Dr. Aarij Mahmood Hussaan
Rational Agents (Chapter 2)
Intelligent Agents Chapter 2.
Intelligent Agents Chapter 2.
Hong Cheng SEG4560 Computational Intelligence for Decision Making Chapter 2: Intelligent Agents Hong Cheng
Intelligent Agents Chapter 2.
Intelligent Agents Chapter 2.
Intelligent Agents Chapter 2.
EA C461 – Artificial Intelligence Intelligent Agents
Artificial Intelligence
Intelligent Agents Chapter 2.
Intelligent Agents Chapter 2.
Presentation transcript:

Announcements  Upcoming due dates  F 5 pm Proj 0  M 11:59 pm HW 1  Be careful of edX timezone (UTC)!  New GSI  Welcome Nathan Mandi!  Discussion  Start today  May change discussion sections up until Tu 9/22  Priority goes to those officially registered  Account Forms  Pick-up after lecture (if you like)

AI in the News Announced July 28, 2015 at IJCAI: Autonomous Weapons: an Open Letter from AI & Robotics Researchers  “Autonomous weapons select and engage targets without human intervention.”  “Starting a military AI arms race is a bad idea.”  BBC – The Now Show commentary (5:50)commentary

AI in the News

CS 188: Artificial Intelligence Agents and environments Instructors: Stuart Russell and Pat Virtue

Outline  Agents and environments  Rationality  PEAS (Performance measure, Environment, Actuators, Sensors)  Environment types  Agent types

Agents and environments  An agent perceives its environment through sensors and acts upon it through actuators (or effectors, depending on whom you ask) Agent ? Sensors Actuators Environment Percepts Actions

Agents and environments  Are humans agents?  Yes!  Sensors = vision, audio, touch, smell, taste, proprioception  Actuators = muscles, secretions, changing brain state Agent ? Sensors Actuators Environment Percepts Actions

Agents and environments  Are pocket calculators agents?  Yes!  Sensors = key state sensors  Actuators = digit display Agent ? Sensors Actuators Environment Percepts Actions

Agents and environments  AI is more interested in agents with substantial computation resources and environments requiring nontrivial decision making Agent ? Sensors Actuators Environment Percepts Actions

Agent functions and agent programs  The agent function maps from percept histories to actions:  f : P *  A  I.e., the agent’s response to any sequence of percepts  The agent program l runs on some machine M to implement f :  f = Agent( l,M)  Real machines have limited speed and memory  The program may take time to choose actions, may be interrupted by new percepts (or ignore them), etc.  Can every agent function be implemented by some agent program?  No! Consider agent for halting problems, NP-hard problems, chess with a slow PC

Example: Vacuum world  Percepts: [location,status], e.g., [A,Dirty]  Actions: Left, Right, Suck, NoOp

Vacuum cleaner agent Percept sequenceAction [A,Clean]Right [A,Dirty]Suck [B,Clean]Left [B,Dirty]Suck [A,Clean],[B,Clean]Left [A,Clean],[B,Dirty]Suck etc Agent functionAgent program function Reflex-Vacuum-Agent([location,status]) returns an action if status = Dirty then return Suck else if location = A then return Right else if location = B then return Left What is the right agent function? Can it be implemented by a small agent program? (Can we ask, “What is the right agent program?”)

Rationality  Fixed performance measure evaluates the environment sequence  one point per square cleaned up?  NO! Rewards an agent who dumps dirt and cleans it up  one point per clean square per time step, for t = 1,…,T  A rational agent chooses whichever action maximizes the expected value of the performance measure  given the percept sequence to date and prior knowledge of environment Does Reflex-Vacuum-Agent implement a rational agent function? Yes, if movement is free, or new dirt arrives frequently

Rationality, contd.  What is rational depends on:  Performance measure  Agent’s prior knowledge of environment  Actions available to agent  Percept sequence to date  Being rational means maximizing your expected utility

Rationality, contd.  Are rational agents omniscient?  No – they are limited by the available percepts  Are rational agents clairvoyant?  No – they may lack knowledge of the environment dynamics  Do rational agents explore and learn?  Yes – in unknown environments these are essential  So rational agents are not necessarily successful, but they are autonomous (i.e., transcend initial program)

Reflex agents in nature TED Talk: Marcus Byrne – The Dance of the Dung Beetle 12:30-15:45

Pacman [Demo L1-1: Manual pacman]

The task environment - PEAS  Performance measure  -1 per step; + 10 food; +500 win; -500 die; +200 hit scared ghost  Environment  Pacman dynamics (incl ghost behavior)  Actuators  Left Right Up Down  Sensors  Entire state is visible Note: formal evaluation of an agent requires defining a distribution over instances of the environment class

PEAS: Automated taxi  Performance measure  Income, happy customer, vehicle costs, fines, insurance premiums  Environment  US streets, other drivers, customers  Actuators  Steering, brake, gas, display/speaker  Sensors  Camera, radar, accelerometer, engine sensors, microphone Image: might-put-taxi-drivers-out-of-business/

PEAS: Medical diagnosis system  Performance measure  Patient health, cost, reputation  Environment  Patients, medical staff, insurers, courts  Actuators  Screen display,  Sensors  Keyboard/mouse

Environment types PacmanBackgammonDiagnosisTaxi Fully or partially observable Single-agent or multiagent Deterministic or stochastic Static or dynamic Discrete or continuous Known or unknown

Agent design  The environment type largely determines the agent design  Partially observable => agent requires memory (internal state)  Stochastic => agent may have to prepare for contingencies  Multi-agent => agent may need to behave randomly  Static => agent has time to compute a rational decision  Continuous time => continuously operating controller

Agent types  In order of increasing generality and complexity  Simple reflex agents  Reflex agents with state  Goal-based agents  Utility-based agents

Simple reflex agents

Pacman agent in Python class GoWestAgent(Agent): def getAction(self, percept): if Directions.WEST in percept.getLegalPacmanActions(): return Directions.WEST else: return Directions.STOP

Pacman agent contd.  Can we (in principle) extend this reflex agent to behave well in all standard Pacman environments?

Pacman agent contd. [Demo L2-1,2: reflex, reflex odd]

Handling complexity  Writing behavioral rules or environment models more difficult for more complex environments  E.g., rules of chess (32 pieces, 64 squares, ~100 moves)  ~ pages as a state-to-state transition matrix (cf HMMs, automata) R.B.KB.RPPP..PPP..N..N…..PP….q.pp..Q..n..n..ppp..pppr.b.kb.r  ~ pages in propositional logic (cf circuits, graphical models)  …  1 page in first-order logic  x,y,t,color,piece On(color,piece,x,y,t)  …

Reflex agents with state

Goal-based agents

Utility-based agents

Pacman planning agent [Demo L2-3: replanning]

Summary  An agent interacts with an environment through sensors and actuators  The agent function, implemented by an agent program running on a machine, describes what the agent does in all circumstances  Rational agents choose actions that maximize their expected utility  PEAS descriptions define task environments; precise PEAS specifications are essential  More difficult environments require more complex agent designs and more sophisticated representations