Chapter 2: Intelligent Agents



Similar documents
Artificial Intelligence

Chapter 2 Intelligent Agents

Introduction to Artificial Intelligence. Intelligent Agents

Intelligent Agents. Chapter 2. Chapter 2 1

Agents: Rationality (2)

cs171 HW 1 - Solutions

Measuring the Performance of an Agent

Introduction to Artificial Intelligence

A Review of Intelligent Agents

AI: A Modern Approach, Chpts. 3-4 Russell and Norvig

Intelligent Agents. Based on An Introduction to MultiAgent Systems and slides by Michael Wooldridge

Contents Intelligent Agents

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

A Client-Server Interactive Tool for Integrated Artificial Intelligence Curriculum

Course Outline Department of Computing Science Faculty of Science. COMP Applied Artificial Intelligence (3,1,0) Fall 2015

The fundamental question in economics is 2. Consumer Preferences

What is Artificial Intelligence?

Robot coined by Karel Capek in a 1921 science-fiction Czech play

Classroom Activities. These educational materials were developed by the Carnegie Science Center <

What Is an Electric Motor? How Does a Rotation Sensor Work?

CHAPTER 14 Understanding an App s Architecture

CSC384 Intro to Artificial Intelligence

SHOOTING AND EDITING DIGITAL VIDEO. AHS Computing

Motivation. Motivation. Can a software agent learn to play Backgammon by itself? Machine Learning. Reinforcement Learning

COMP 590: Artificial Intelligence

Operations & Maintenance 101 Maintenance Strategies and Work Practices to Reduce Costs

CIM Computer Integrated Manufacturing

Analysis of Micromouse Maze Solving Algorithms

Proceedings of the 9th WSEAS International Conference on APPLIED COMPUTER SCIENCE

Discrete-Event Simulation

14.1 Rent-or-buy problem

Lecture 1: Introduction to Reinforcement Learning

BrainMaster Macromedia Flash Player

AIBO as an Intelligent Robot Watchdog

MEASURING THE SUCCESS

The RoboCup Soccer Simulator

PROGRAM DIRECTOR: Arthur O Connor Contact: URL : THE PROGRAM Careers in Data Analytics Admissions Criteria CURRICULUM Program Requirements

Choosing a Computer for Running SLX, P3D, and P5

Introduction to Learning & Decision Trees

Building a Better Robot

Applying Deep Learning to Car Data Logging (CDL) and Driver Assessor (DA) October 22-Oct-15

Computer Game Programming Intelligence I: Basic Decision-Making Mechanisms

VELOCITY, ACCELERATION, FORCE

Game Design From Concepts To Implementation

Learning Agents: Introduction

GANTRY ROBOTIC CELL FOR AUTOMATIC STORAGE AND RETREIVAL SYSTEM

Emma Watson visits People Tree s partner in Bangladesh to see the impact that fair trade fashion makes and finds out more about the real cost of fast

INTRODUCTION TO MACHINE LEARNING 3RD EDITION

10 tips for servos and steppers a simple guide

Laboratory work in AI: First steps in Poker Playing Agents and Opponent Modeling

Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 10

Tutorial 1. Introduction to robot

Definitions. A [non-living] physical agent that performs tasks by manipulating the physical world. Categories of robots

Simple. Intelligent. The SIMATIC VS 100 Series. simatic MACHINE VISION.

The Secret Formula for Online Training Presentations that Engage

Integrating Artificial Intelligence. Software Testing

Supplemental Worksheet Problems To Accompany: The Pre-Algebra Tutor: Volume 1 Section 1 Real Numbers

1 Different types of systems Sub-systems Different types of control systems Simple systems analysis... 10

ARCHITECTURE OF INDUSTRIAL AUTOMATION SYSTEMS

White Paper Design Sharing in BIM. Design Sharing in BIM

Practical Jealousy Management

Robot Perception Continued

Commentary Drive Assessment

Quantitative vs. Categorical Data: A Difference Worth Knowing Stephen Few April 2005

QUALITATIVE RESEARCH LAUREN WOLLMAN, PH.D CENTER FOR HOMELAND DEFENSE AND SECURITY DEPT. OF NATIONAL SECURITY AFFAIRS NAVAL POSTGRADUATE SCHOOL

Graduate Co-op Students Information Manual. Department of Computer Science. Faculty of Science. University of Regina

what operations can it perform? how does it perform them? on what kind of data? where are instructions and data stored?

Designing Behavior-Based Systems

HOW TO CHANGE NEGATIVE THINKING

TomTom HAD story How TomTom enables Highly Automated Driving

New & Affordable. VariDome. Achieve a quicker payback from your investment in Doming Equipment! MDS MiniDome 1 MDS MiniDome 2 MDS VariDome

Intelligent Flexible Automation

Aguantebocawertyuiopasdfghvdslpmj klzxcvbquieromuchoanachaguilleanic oyafernmqwertyuiopasdfghjklzxcvbn mqwertyuiopasdfghjklzxcvbnmqwerty

Graphical Environment Tool for Development versus Non Graphical Development Tool

DCC - PUC. IIC-3684 Mobile Robotics. Mobile Robots IIC Robots History. Professor : Alvaro Soto. Alvaro Soto Ch. 2.

How To Choose The Right End Effector. For Your Application

Handwriting. Good handwriting (i.e., legible writing done by hand whether it is. Teaching Printing

Appendix A. About RailSys 3.0. A.1 Introduction

Lecture 2 Mathcad Basics

HOW TO SELECT A SCIENCE FAIR TOPIC

Steering Angle Sensor Resets

GUIDE TO ERP IMPLEMENTATIONS: WHAT YOU NEED TO CONSIDER

Simulation-based traffic management for autonomous and connected vehicles

Lies My Calculator and Computer Told Me

Sudoku puzzles and how to solve them

Brain-in-a-bag: creating an artificial brain

Gas Dynamics Prof. T. M. Muruganandam Department of Aerospace Engineering Indian Institute of Technology, Madras. Module No - 12 Lecture No - 25

BACKING UP PROCEDURES FOR SCHOOL BUS DRIVERS

TEACHER S GUIDE TO RUSH HOUR

3D Vision An enabling Technology for Advanced Driver Assistance and Autonomous Offroad Driving

Quiz for Chapter 1 Computer Abstractions and Technology 3.10

Cloud Computing for Agent-based Traffic Management Systems

CHAPTER 11: Flip Flops

Transcription:

Chapter 2: Intelligent Agents

Outline Last class, introduced AI and rational agent Today s class, focus on intelligent agents Agent and environments Nature of environments influences agent design Basic skeleton agent designs CS 420: Artificial Intelligence 2

Outline Last class, introduced AI and rational agent Today s class, focus on intelligent agents Agent and environments Nature of environments influences agent design Basic skeleton agent designs CS 420: Artificial Intelligence 3

Agents An agentis anything that can be viewed as perceivingits environmentthrough sensorsand acting upon that environment through actuators Examples: Human agent Robotic agent Software agent CS 420: Artificial Intelligence 4

Terminologies Percept: the agent s perceptual inputs Percept sequence: the complete history of everything the agent has perceived Agent functionmaps any given percept sequence to an action [f: p* A] The agent programruns on the physical architecture to produce f Agent = architecture + program CS 420: Artificial Intelligence 5

Questions Can there be more than one agent program that implements a given agent function? Given a fixed machine architecture, does each agent program implement exactly one agent function? CS 420: Artificial Intelligence 6

Vacuum-Cleaner World Percepts: location and contents, e.g., [A, dirty] Actions: Left, Right, Suck, NoOp CS 420: Artificial Intelligence 7

A Simple Agent Function Percept sequence [A, Clean] [A, Dirty] [B, Clean] [B, Dirty] [A, Clean], [A, Clean] [A, Clean], [A, Dirty] [A, Clean], [A, Clean], [A, Clean] [A, Clean], [A, Clean], [A, Dirty] Action Right Suck Left Suck Right? Suck Right Suck CS 420: Artificial Intelligence 8

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 Performance measure: An objective criterion for success of an agent's behavior 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 CS 420: Artificial Intelligence 9

Rational Agent Definition: 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. CS 420: Artificial Intelligence 10

Rational Agent Definition: For each possible percept sequence, a rational agent should select an actionthat is expected to maximize its performance measure, given the evidence provided by the percept sequence and whatever built-in knowledge the agent has. CS 420: Artificial Intelligence 11

Vacuum Cleaner 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, no-op} agent is able to perceive the location and dirt in that location Given different assumption, it might not be rational anymore CS 420: Artificial Intelligence 12

Omniscience, Learning and Autonomy Distinction between rationality and omniscience expected performance vs. actual performance Agents can perform actions in order to modify future percepts so as to obtain useful information (information gathering, exploration) An agent can also learnfrom what it perceives An agent is autonomousif its behavior is determined by its own experience (with ability to learn and adapt) CS 420: Artificial Intelligence 13

Questions Given the assumption on slide 12. Describe a rational agent function for the modified performance measure that deducts one point for each movement. Does the agent program require internal state? Discuss possible agent designs for the cases in which clean squares can become dirty and the geography of the environment is unknown. CS 420: Artificial Intelligence 14

Outline Last class, introduced AI and rational agent Today s class, focus on intelligent agents Agent and environments Nature of environments influences agent design Basic skeleton agent designs CS 420: Artificial Intelligence 15

PEAS Specifying the task environment is always the first step in designing agent PEAS: Performance, Environment, Actuators, Sensors CS 420: Artificial Intelligence 16

Taxi Driver Example Performance Measure Environment Actuators Sensors safe, fast, legal, comfortable trip, maximize profits roads, other traffic, pedestrians, customers steering, accelerator, brake, signal, horn, display camera, sonar, speedometer, GPS, odometer, engine sensors, keyboard, accelerator DARPA urban challenge 07: http://www.youtube.com/watch?v=sqfemr50hak CS 420: Artificial Intelligence 17

Medical Diagnosis System Performance Measure healthy patient, minimize costs, lawsuits Environment Actuators Sensors patient, hospital, staff display questions, tests, diagnosis, treatments, referrals keyboard entry of symptoms, findings, patient s answers CS 420: Artificial Intelligence 18

Mushroom-Picking Robot Performance Measure Percentage of good mushrooms in correct bins Environment Actuators Sensors Conveyor belt with mushrooms, bins Jointed arm and hand camera, joint angle sensors CS 420: Artificial Intelligence 19

Properties of Task Environments Fullyobservable(vs. partially observable): An agent's sensors give it access to the complete state of the environment at each point in time Deterministic(vs. stochastic): next state of the env. determined by current state and the agent s action If the environment is deterministic except for the actions of other agents, then the environment is strategic Episodic (vs. sequential): Agent's experience is divided into atomic "episodes" Choice of action in each episode depends only on the episode itself CS 420: Artificial Intelligence 20

Properties of Task Environments Static (vs. dynamic): The environment is unchanged while an agent is deliberating Semidynamicif the environment itself doesn t change with time but the agent's performance score does Discrete(vs. continuous): A limited number of distinct, clearly defined percepts and actions Single agent(vs. multiagent): An agent operating by itself in an environment Competitive vs. cooperative CS 420: Artificial Intelligence 21

Examples Task Environment Oberservable Deterministic Episodic Static Discrete Agents Crossword puzzle fully deterministic sequential static discrete single Chess with a clock fully strategic sequential semi discrete multi Taxi driver mushroom-picking partially stochastic sequential dynamic conti. multi partially stochastic episodic dynamic conti. single The environment type largely determines the agent design The real world is (of course) partially observable, stochastic, sequential, dynamic, continuous, multi-agent CS 420: Artificial Intelligence 22

Exercises Develop PEAS description for the following task environment: Robot soccer player Shopping for used AI books on the Internet Analyze the properties of the above environments CS 420: Artificial Intelligence 23

True/False Questions An agent that senses only partial information about the state cannot be perfectly rational. Suppose an agent selects its action uniformly at random from the set of possible actions. There exists a deterministic task environment in which this agent is rational. It is possible for a given agent to be perfectly rational in two distinct task environments. A perfectly rational poker-playing agent never loses. CS 420: Artificial Intelligence 24

Outline Last class, introduced AI and rational agent Today s class, focus on intelligent agents Agent and environments Nature of environments influences agent design Basic skeleton agent designs CS 420: Artificial Intelligence 25

Agent = Architecture + Program The job of AI is to design the agent program that implements the agent functionmapping percepts to actions Aim: find a way to implement therational agent function concisely Same skeleton for agent program: it takes the current percept as input from the sensors and returns an action to the actuators CS 420: Artificial Intelligence 26

Agent Program vs. Agent Function Agent program takes the current percept as input Nothing is available from the environment Agent function takes the entire percept history To do this, remember all the percepts CS 420: Artificial Intelligence 27

Table-Driven Agent Designer needs to construct a table that contains the appropriate action for every possible percept sequence Drawbacks? huge table take a long time to construct such a table no autonomy Even with learning, need a long time to learn the table entries CS 420: Artificial Intelligence 28

Five Basic Agent Types Arranged in order of increasing generality: Simple reflex agents Model-based reflex agents Goal-based agents Utility-based agents; and Learning agents CS 420: Artificial Intelligence 29

Simple Reflex Agent CS 420: Artificial Intelligence 30

Pseudo-Code Example: write a simple reflex agent for the vacuum cleaner example CS 420: Artificial Intelligence 31

Infinite loops are often unavoidable for simple reflex agent operating in partially observable environments No location sensor Randomization will help A randomized simple relfex agent might outperform a deterministic simple reflex agent Better way: keep track of the part of the world it can t see now Maintain internal states CS 420: Artificial Intelligence 32

Model-Based Reflex Agent CS 420: Artificial Intelligence 33

Pseudo-Code CS 420: Artificial Intelligence 34

Goal-Based Agent CS 420: Artificial Intelligence 35

Utility-Based Agent CS 420: Artificial Intelligence 36

Utility Function Utility function maps a state or a sequence of states onto a real number degree of happiness Conflicting goals Speed and safety Multiple goals CS 420: Artificial Intelligence 37

Learning Agent Determines performance Selects the Best action Making improvements Suggest exploratory actions CS 420: Artificial Intelligence 38

Exercise Select a suitable agent design for: Robot soccer player Shopping for used AI books on the Internet CS 420: Artificial Intelligence 39

Summary Agent, agent function, agent program Rational agent and its performance measure PEAS Five major agent program skeletons Next, solving problems by searching CS 420: Artificial Intelligence 40