22c:145 Artificial Intelligence

Similar documents
AI: Intelligent Agents. Chapter 2

Artificial Intelligence CS 6364

Intelligent Agents. Chapter 2

Intelligent Agents. Outline. Agents. Agents and environments

Artificial Intelligence. Intelligent Agents

Intelligent Agents. Soleymani. Artificial Intelligence: A Modern Approach, Chapter 2

Intelligent Agents. Russell and Norvig: Chapter 2

Outline. Chapter 2 Agents & Environments. Agents. Types of Agents: Immobots

Agents & Environments Chapter 2. Mausam (Based on slides of Dan Weld, Dieter Fox, Stuart Russell)

Princess Nora University Faculty of Computer & Information Systems ARTIFICIAL INTELLIGENCE (CS 370D) Computer Science Department

Agents & Environments Chapter 2. Mausam (Based on slides of Dan Weld, Dieter Fox, Stuart Russell)

Intelligent Agents. Chapter 2 ICS 171, Fall 2009

Foundations of Artificial Intelligence

Contents. Foundations of Artificial Intelligence. Agents. Rational Agents

Chapter 2: Intelligent Agents

CS 331: Artificial Intelligence Intelligent Agents

Dr. Mustafa Jarrar. Chapter 2 Intelligent Agents. Sina Institute, University of Birzeit

CS 331: Artificial Intelligence Intelligent Agents

Intelligent Agents. CmpE 540 Principles of Artificial Intelligence

CS 771 Artificial Intelligence. Intelligent Agents

Agents. This course is about designing intelligent agents Agents and environments. Rationality. The vacuum-cleaner world

Artificial Intelligence Intelligent agents

Agents. Formalizing Task Environments. What s an agent? The agent and the environment. Environments. Example: the automated taxi driver (PEAS)

Intelligent Agents. BBM 405 Fundamentals of Artificial Intelligence Pinar Duygulu Hacettepe University. Slides are mostly adapted from AIMA

Intelligent Autonomous Agents. Ralf Möller, Rainer Marrone Hamburg University of Technology

CS 331: Artificial Intelligence Intelligent Agents. Agent-Related Terms. Question du Jour. Rationality. General Properties of AI Systems

Web-Mining Agents Cooperating Agents for Information Retrieval

Agents. Environments Multi-agent systems. January 18th, Agents

Artificial Intelligence Agents and Environments 1

Agents and Environments

Intelligent Agents. Instructor: Tsung-Che Chiang

Lecture 2 Agents & Environments (Chap. 2) Outline

Intelligent Agents. Philipp Koehn. 16 February 2017

Web-Mining Agents Cooperating Agents for Information Retrieval

Intelligent Agents. Instructor: Tsung-Che Chiang

KECERDASAN BUATAN 3. By Sirait. Hasanuddin Sirait, MT

Vorlesung Grundlagen der Künstlichen Intelligenz

Agents and State Spaces. CSCI 446: Artificial Intelligence

Outline for Chapter 2. Agents. Agents. Agents and environments. Vacuum- cleaner world. A vacuum- cleaner agent 8/27/15

Artificial Intelligence

Rational Agents (Chapter 2)

Introduction to Artificial Intelligence 2 nd semester 2016/2017. Chapter 2: Intelligent Agents

How do you design an intelligent agent?

What is AI? The science of making machines that: Think rationally. Think like people. Act like people. Act rationally

Artificial Intelligence

Artificial Intelligence Lecture 7

CS324-Artificial Intelligence

Agents and Environments. Stephen G. Ware CSCI 4525 / 5525

Ar#ficial Intelligence

Agents and Environments

AI Programming CS F-04 Agent Oriented Programming

Overview. What is an agent?

Agents and State Spaces. CSCI 446: Ar*ficial Intelligence Keith Vertanen

Module 1. Introduction. Version 1 CSE IIT, Kharagpur

Rational Agents (Ch. 2)

Agents. Robert Platt Northeastern University. Some material used from: 1. Russell/Norvig, AIMA 2. Stacy Marsella, CS Seif El-Nasr, CS4100


Silvia Rossi. Agent as Intentional Systems. Lezione n. Corso di Laurea: Informatica. Insegnamento: Sistemi multi-agente.

Rational Agents (Ch. 2)

CS343: Artificial Intelligence

Solutions for Chapter 2 Intelligent Agents

COMP329 Robotics and Autonomous Systems Lecture 15: Agents and Intentions. Dr Terry R. Payne Department of Computer Science

AGENT-BASED SYSTEMS. What is an agent? ROBOTICS AND AUTONOMOUS SYSTEMS. Today. that environment in order to meet its delegated objectives.

GRUNDZÜGER DER ARTIFICIAL INTELLIGENCE

1 What is an Agent? CHAPTER 2: INTELLIGENT AGENTS

Introduction to Arti Intelligence

Artificial Intelligence. Admin.

Embodiment in GLAIR: A Grounded Layered Architecture. with Integrated Reasoning for Autonomous Agents. Henry Hexmoor. Johan Lammens.

PCT 101. A Perceptual Control Theory Primer. Fred Nickols 8/27/2012

Introduction to Deep Reinforcement Learning and Control

A PCT Primer. Fred Nickols 6/30/2011

Problem Solving Agents

Definitions. The science of making machines that: This slide deck courtesy of Dan Klein at UC Berkeley

Katsunari Shibata and Tomohiko Kawano

Artificial Intelligence. Outline

OPTIC FLOW IN DRIVING SIMULATORS

ISSN (PRINT): , (ONLINE): , VOLUME-5, ISSUE-5,

Artificial Intelligence

Robotics Summary. Made by: Iskaj Janssen

Sequential Decision Making

What is AI? The science of making machines that:

EEL-5840 Elements of {Artificial} Machine Intelligence

Perceptual Anchoring with Indefinite Descriptions

Learning to Identify Irrelevant State Variables

CS148 - Building Intelligent Robots Lecture 5: Autonomus Control Architectures. Instructor: Chad Jenkins (cjenkins)

A Computational Framework for Concept Formation for a Situated Design Agent

Reinforcement Learning

THE DIMENSIONS OF DRIVER PERFORMANCE DURING SECONDARY MANUAL TASKS

Inferring Actions and Observations from Interactions

20. Experiments. November 7,

Living with Newton's Laws

Towards Learning to Ignore Irrelevant State Variables

Environmental Trigger Reduction. Team Members: Maria Orozco, LVN Betty Franco, CSM Adaeze Saa, MD

Measuring impact. William Parienté UC Louvain J PAL Europe. povertyactionlab.org


POND-Hindsight: Applying Hindsight Optimization to POMDPs

What is Artificial Intelligence? A definition of Artificial Intelligence. Systems that act like humans. Notes

Four Example Application Domains

The Misjudgment of Risk due to Inattention

Unmanned autonomous vehicles in air land and sea

Transcription:

22c:145 Artificial Intelligence Fall 2005 Intelligent Agents Cesare Tinelli The University of Iowa Copyright 2001-05 Cesare Tinelli and Hantao Zhang. a a These notes are copyrighted material and may not be used in other course settings outside of the University of Iowa in their current or modified form without the express written permission of the copyright holders. 22c:145 Artificial Intelligence, Fall 05 p.1/33

Readings Chap. 2 of [Russell and Norvig, 2003] 22c:145 Artificial Intelligence, Fall 05 p.2/33

Intelligent Agents An agent is a system that perceives its environment through sensors and acts upon that environment through effectors. A rational agent is an agent whose acts try to maximize some performance measure. 22c:145 Artificial Intelligence, Fall 05 p.3/33

Agents and Environments Agent Sensors Percepts? Environment Actuators Actions Agents include humans, robots, softbots, thermostats, etc. 22c:145 Artificial Intelligence, Fall 05 p.4/33

Agents as Mappings An agent can be seen as a mapping between percept sequences and actions. Agent : Percept Action The less an agents relies on its built-in knowledge, as opposed to the current percept sequence, the more autonomous it is. 22c:145 Artificial Intelligence, Fall 05 p.5/33

Vacuum-cleaner world A B Percepts: location and contents, e.g., [A, Dirty] Actions: Left, Right, Suck, NoOp 22c:145 Artificial Intelligence, Fall 05 p.6/33

A vacuum-cleaner agent Percept sequence [A, Clean] [A, Dirty] [B, Clean] [B, Dirty] [A, Clean], [A, Clean] [A, Clean], [A, Dirty]. Action Right Suck Lef t Suck Right Suck. function REFLEX-VACUUM-AGENT( [location,status]) returns action if status = Dirty then return Suck else if location = A then return Right else if location = B then return Left 22c:145 Artificial Intelligence, Fall 05 p.7/33

More Examples of Artificial Agents Agent Type Percepts Actions Goals Environment Medical diagnosis system Symptoms, findings, patient s answers Questions, tests, treatments Healthy patient, minimize costs Patient, hospital Satellite image analysis system Pixels of varying intensity, color Print a categorization of scene Correct categorization Images from orbiting satellite Part-picking robot Pixels of varying intensity Pick up parts and sort into bins Place parts in correct bins Conveyor belt with parts Refinery controller Temperature, pressure readings Open, close valves; adjust temperature Maximize purity, yield, safety Refinery Interactive English tutor Typed words Print exercises, suggestions, corrections Maximize student s score on test Set of students 22c:145 Artificial Intelligence, Fall 05 p.8/33

Rational Agents The rationality of an agent depends on the performance measure defining the agent s degree of success the percept sequence, the sequence of all the things perceived by the agent the agent s knowledge of the environment the actions that the agent can perform For each possible percept sequence, an ideal rational agent does whatever possible to maximize its performance, based on the percept sequence and its built-in knowledge. 22c:145 Artificial Intelligence, Fall 05 p.9/33

PEAS To design a rational agent, we must specify the task environment Consider, e.g., the task of designing an automated taxi: Performance measure? Environment? Actuators? Sensors? 22c:145 Artificial Intelligence, Fall 05 p.10/33

PEAS To design a rational agent, we must specify the task environment Consider, e.g., the task of designing an automated taxi: Performance measure? Safety, destination, profits, legality, comfort,... Environment? Actuators? Sensors? 22c:145 Artificial Intelligence, Fall 05 p.10/33

PEAS To design a rational agent, we must specify the task environment Consider, e.g., the task of designing an automated taxi: Performance measure? Safety, destination, profits, legality, comfort,... Environment? Streets/freeways, traffic, pedestrians, weather... Actuators? Sensors? 22c:145 Artificial Intelligence, Fall 05 p.10/33

PEAS To design a rational agent, we must specify the task environment Consider, e.g., the task of designing an automated taxi: Performance measure? Safety, destination, profits, legality, comfort,... Environment? Streets/freeways, traffic, pedestrians, weather... Actuators? Steering, accelerator, brake, horn, speaker/display,... Sensors? 22c:145 Artificial Intelligence, Fall 05 p.10/33

PEAS To design a rational agent, we must specify the task environment Consider, e.g., the task of designing an automated taxi: Performance measure? Safety, destination, profits, legality, comfort,... Environment? Streets/freeways, traffic, pedestrians, weather... Actuators? Steering, accelerator, brake, horn, speaker/display,... Sensors? Cameras, accelerometers, gauges, engine sensors, keyboard, GPS,... 22c:145 Artificial Intelligence, Fall 05 p.10/33

Internet shopping agent Performance measure? Environment? Actuators? Sensors? 22c:145 Artificial Intelligence, Fall 05 p.11/33

Environment Types With respect to an agent, an environment may, or may not, be: observable: the agent s sensors detect all aspects relevant to the choice of action; deterministic: the next state is completely determined by the current state and the actions selected by the agent; episodic: the agent s experience is divided into episodes ; the quality of the agent s actions does not depend on previous episodes; static: it does not change while the agent is deliberating; discrete: there are a limited number of distinct, clearly defined percepts and actions; single-agent: there are not more agents in the environment. 22c:145 Artificial Intelligence, Fall 05 p.12/33

Environment Types Observable? Deterministic? Episodic? Static? Discrete? Single-agent? Solitaire Backgammon E-shopping Taxi 22c:145 Artificial Intelligence, Fall 05 p.13/33

Environment types Solitaire Backgammon E-shopping Taxi Observable? Yes Yes No No Deterministic? Episodic? Static? Discrete? Single-agent? 22c:145 Artificial Intelligence, Fall 05 p.14/33

Environment types Solitaire Backgammon E-shopping Taxi Observable? Yes Yes No No Deterministic? Yes No Semi No Episodic? Static? Discrete? Single-agent? 22c:145 Artificial Intelligence, Fall 05 p.15/33

Environment types Solitaire Backgammon E-shopping Taxi Observable? Yes Yes No No Deterministic? Yes No Partly No Episodic? No No No No Static? Discrete? Single-agent? 22c:145 Artificial Intelligence, Fall 05 p.16/33

Environment types Solitaire Backgammon E-shopping Taxi Observable? Yes Yes No No Deterministic? Yes No Partly No Episodic? No No No No Static? Yes Semi Semi No Discrete? Single-agent? 22c:145 Artificial Intelligence, Fall 05 p.17/33

Environment types Solitaire Backgammon E-shopping Taxi Observable? Yes Yes No No Deterministic? Yes No Partly No Episodic? No No No No Static? Yes Semi Semi No Discrete? Yes Yes Yes No Single-agent? 22c:145 Artificial Intelligence, Fall 05 p.18/33

Environment types Solitaire Backgammon E-shopping Taxi Observable? Yes Yes No No Deterministic? Yes No Partly No Episodic? No No No No Static? Yes Semi Semi No Discrete? Yes Yes Yes No Single-agent? Yes No Yes/No No 22c:145 Artificial Intelligence, Fall 05 p.19/33

Environment types The environment type largely determines the agent design The real world is (of course) partially observable, stochastic (instead of deterministic), sequential (instead of episodic), dynamic (instead of static), continuous (instead of discrete), multi-agent (instead of single-agent). 22c:145 Artificial Intelligence, Fall 05 p.20/33

Agent Programs Since an agent is just a mapping from percepts to actions, we can design a program to implement this mapping. An agent program could be as simple as a table lookup. However: that might be impossible (a chess playing agent, for instance, would need 35 100 table entries.) there might be a much more efficient solution the agent would have no autonomy 22c:145 Artificial Intelligence, Fall 05 p.21/33

Different Types of Agents Agents programs can be divided in the following classes, with increasing level of sophistication: Simple reflex agents Goal-based agents Utility-based agents Learning agents 22c:145 Artificial Intelligence, Fall 05 p.22/33

A Reflex Taxi-Driver Agent We cannot implement it as a table-lookup: the percepts are too complex. But we can abstract some portions of the table by coding common input/output associations. We do this with a list of condition/action rules: if car-in-front-is-braking then brake if light-becomes-green then move-forward if intersection-has-stop-sign then stop 22c:145 Artificial Intelligence, Fall 05 p.23/33

Simple Reflex Agents Agent Sensors Condition action rules What the world is like now What action I should do now Environment Actuators Reflex agents can be implemented very efficiently. However, they have limited applicability. 22c:145 Artificial Intelligence, Fall 05 p.24/33

Reflex Taxi-Driver Agent with State Often, the agent must remember some of its percepts to take an action. Ex: car in front signals it is turning left. It must also remember which actions it has taken. Ex: loaded/unloaded passenger. In jargon, it must have internal state. 22c:145 Artificial Intelligence, Fall 05 p.25/33

Reflex Agents with Internal State State How the world evolves What my actions do Condition action rules Sensors What the world is like now What action I should do now Environment Agent Actuators 22c:145 Artificial Intelligence, Fall 05 p.26/33

Reflex Taxi-Driver Agent with State To update its state the agent needs two kinds of knowledge: 1. how the world evolves independently from the agent; Ex: an overtaking car gets closer with time. 2. how the world is affected by the agent s actions. Ex: if I turn left, what was to my right is now behind me. 22c:145 Artificial Intelligence, Fall 05 p.27/33

A Goal-based Taxi-Driver Agent Knowing about the world is not always enough to decide what to do. Ex: what direction do I take at an intersection? The agent needs goal information. Ex: passenger s destination Combining goal information with the knowledge of its actions, the agent can choose those actions that will achieve the goal. A new kind of decision-making is required ( what-if reasoning ). Search and Planning are devoted to find action sequences that achieve an agent s goal. 22c:145 Artificial Intelligence, Fall 05 p.28/33

Goal-based Agents State How the world evolves What my actions do Goals Sensors What the world is like now What it will be like if I do action A What action I should do now Environment Agent Actuators 22c:145 Artificial Intelligence, Fall 05 p.29/33

Goal-based Agents Goal-based Agents are much more flexible in responding to a changing environment; accepting different goals. 22c:145 Artificial Intelligence, Fall 05 p.30/33

Utility-based Taxi-Driver Agent There may be many ways to get to a destination but some may be better than others. Ex: this way is faster/cheaper/more comfortable/... A particular configuration of the world, a world state, can be assigned a utility (the quality of being useful) value for the agent. A sequence of actions is preferred if it leads to a goal state with higher utility value. A utility function helps the agent s decision-making in case of 1. conflicting goals (by helping find a trade-off). Ex: minimize trip time and also fuel consumption. 2. several possible goals, none of which is achievable with certainty. 22c:145 Artificial Intelligence, Fall 05 p.31/33

Utility-based Agents State How the world evolves What my actions do Utility Sensors What the world is like now What it will be like if I do action A How happy I will be in such a state What action I should do now Environment Agent Actuators 22c:145 Artificial Intelligence, Fall 05 p.32/33

Learning Agents Performance standard Critic Sensors feedback learning goals Learning element changes knowledge Performance element Environment Problem generator Agent Actuators 22c:145 Artificial Intelligence, Fall 05 p.33/33