Intelligent Agents. CmpE 540 Principles of Artificial Intelligence

Similar documents
Intelligent Agents. Outline. Agents. Agents and environments

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

Web-Mining Agents Cooperating Agents for Information Retrieval

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

Web-Mining Agents Cooperating Agents for Information Retrieval

Chapter 2: Intelligent Agents

Intelligent Agents. Chapter 2 ICS 171, Fall 2009

AI: Intelligent Agents. Chapter 2

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

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)

CS 771 Artificial Intelligence. Intelligent Agents

Artificial Intelligence Agents and Environments 1

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

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

CS 331: Artificial Intelligence Intelligent Agents

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

CS 331: Artificial Intelligence Intelligent Agents

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

Artificial Intelligence. Intelligent Agents

22c:145 Artificial Intelligence

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

Artificial Intelligence CS 6364

Lecture 2 Agents & Environments (Chap. 2) Outline

Intelligent Agents. Philipp Koehn. 16 February 2017

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

Vorlesung Grundlagen der Künstlichen Intelligenz

Agents and Environments

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

How do you design an intelligent agent?

Intelligent Agents. Instructor: Tsung-Che Chiang

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

Intelligent Agents. Russell and Norvig: Chapter 2

Intelligent Agents. Instructor: Tsung-Che Chiang

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

Foundations of Artificial Intelligence

Contents. Foundations of Artificial Intelligence. Agents. Rational Agents

Intelligent Agents. Chapter 2

Artificial Intelligence

Rational Agents (Chapter 2)

Artificial Intelligence Intelligent agents

KECERDASAN BUATAN 3. By Sirait. Hasanuddin Sirait, MT

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

Artificial Intelligence Lecture 7

Agents and State Spaces. CSCI 446: Artificial Intelligence

Artificial Intelligence

CS324-Artificial Intelligence

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

Module 1. Introduction. Version 1 CSE IIT, Kharagpur

Agents and Environments

Overview. What is an agent?

Ar#ficial Intelligence

AI Programming CS F-04 Agent Oriented Programming

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

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

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

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

Robotics Summary. Made by: Iskaj Janssen


Rational Agents (Ch. 2)

1 What is an Agent? CHAPTER 2: INTELLIGENT AGENTS

Lecture 5- Hybrid Agents 2015/2016

LECTURE 5: REACTIVE AND HYBRID ARCHITECTURES

ICS 606. Intelligent Autonomous Agents 1. Intelligent Autonomous Agents ICS 606 / EE 606 Fall Reactive Architectures

Intelligent Machines That Act Rationally. Hang Li Bytedance AI Lab

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

Programming with Goals (3)

Paul Figueroa. Washington Municipal Clerks Association ANNUAL CONFERENCE. Workplace Bullying: Solutions and Prevention. for

Intelligent Machines That Act Rationally. Hang Li Toutiao AI Lab

A Cooperative Multiagent Architecture for Turkish Sign Tutors

Observation and Assessment. Narratives

Unmanned autonomous vehicles in air land and sea

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

The Power of Feedback

CAN T WE ALL JUST GET ALONG?

Sequential Decision Making

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

Semiotics and Intelligent Control

Rules of apparent motion: The shortest-path constraint: objects will take the shortest path between flashed positions.

Reactivity and Deliberation in Decision-Making Systems

Oscillatory Neural Network for Image Segmentation with Biased Competition for Attention

Four Example Application Domains

Multi-agent Engineering. Lecture 4 Concrete Architectures for Intelligent Agents. Belief-Desire-Intention Architecture. Ivan Tanev.

Situation Reaction Detection Using Eye Gaze And Pulse Analysis

Accommodating Individuals with Disabilities

A Cooperative Multiagent Architecture for Turkish Sign Tutors

Katsunari Shibata and Tomohiko Kawano

The Fallacy of Taking Random Supplements

Introduction to Deep Reinforcement Learning and Control

Logic Model. When do you create a Logic Model? Create your LM at the beginning of an evaluation and review and update it periodically.

The Case For Empathy. Understanding how emotions impact customer experiences. by JANET LEBLANC, Janet LeBlanc + Associates Inc.

STPA Applied to Automotive Automated Parking Assist


1) Principle of Proactivity

Nothing in biology makes sense except in the light of evolution Theodosius Dobzhansky Descent with modification Darwin

Personality and Interests

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

Transcription:

CmpE 540 Principles of Artificial Intelligence Intelligent Agents Pınar Yolum pinar.yolum@boun.edu.tr Department of Computer Engineering Boğaziçi University 1 Chapter 2 (Based mostly on the course slides from http://aima.cs.berkeley.edu/ and http://www.cmpe.boun.edu.tr/~ akin/) 2 1

Outline Agents and environments Rationality PEAS (Performance measure, Environment, Actuators, Sensors) Environment types Agent types Agents An agent is anything that can be viewed as perceiving its environment through sensors and acting upon that environment through actuators Human agent: eyes, ears, and other organs for sensors; hands, legs, mouth, and other body parts for actuators Robotic agent: cameras and infrared range finders for sensors; various motors for actuators 3 4 2

Agents and environments Vacuum-cleaner world The agent function maps from percept histories to actions: [f: P* A] The agent program runs on the physical architecture to produce f agent = architecture + program 5 Percepts: location and contents, e.g., [A; Dirty] Actions: Left, Right, Suck, Op 6 3

A vacuum-cleaner agent Rationality Percept sequence [A;Clean] [A;Dirty] [B;Clean] [B;Dirty] [A;Clean], [A;Clean] [A;Clean], [A;Dirty] Action Right Suck Left Suck Right Suck Example tabulation of actions What is the right function? Can it be implemented in a small agent program? 7 A rational agent is one that does the right thing. More precisely, what is rational at any given time depends on four things: The performance measure that defines the criterion of success. The agent s prior knowledge of the environment. The actions that the agent can perform. The agent s percept sequence to date. 8 4

Rational agents 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. 9 PEAS PEAS: Performance measure, Environment, Actuators, Sensors Must first specify the setting for intelligent agent design Consider, e.g., the task of designing an automated taxi driver: Performance measure: Safe, fast, legal, comfortable trip, maximize profits Environment: Roads, other traffic, pedestrians, customers Actuators: Steering wheel, accelerator, brake, signal, horn Sensors: Cameras, sonar, speedometer, GPS, odometer, engine sensors, keyboard 10 5

PEAS Agent: Medical diagnosis system Performance measure: Healthy patient, minimize costs, lawsuits Environment: Patient, hospital, staff Actuators: Screen display (questions, tests, diagnoses, treatments, referrals) Sensors: Keyboard (entry of symptoms, findings, patient's answers) PEAS Agent: Part-picking robot Performance measure: Percentage of parts in correct bins Environment: Conveyor belt with parts, bins Actuators: Jointed arm and hand Sensors: Camera, joint angle sensors 11 12 6

PEAS Agent Characteristics Agent: Interactive English tutor Performance measure: Maximize student's score on test Environment: Set of students Actuators: Screen display (exercises, suggestions, corrections) Sensors: Keyboard 13 Situatedness: The agent receives some form of sensory input from its environment, and it performs some action that changes its environment in some way. Examples of environments: the physical world and the Internet. Autonomy: The agent can act without direct intervention by humans or other agents and that it has control over its own actions and internal state. 14 7

Agent Characteristics Adaptivity : The agent is capable of (1) reacting flexibly to changes in its environment; (2) taking goal-directed initiative (i.e., is pro-active), when appropriate; and (3) learning from its own experience, its environment, and interactions with others. Sociability: The agent is capable of interacting in a peer-to-peer manner Environment (1) Agents are situated in an environment Different environments (based on Russell and rvig) Accessible environment: If an agent can perceive everything happening around; Agents have complete information. Rarely happens in practice Inaccessible environments: Internet, physical world with other agents or humans. 15 16 8

Environment (2) Deterministic environment: Each action has a guaranteed effect An agent can determine the state of the world by knowing the state before an action happens and knowing the effect of the action Physical world: Deterministic? History freedom: Environment (3) Episode: Single cycle of an agent perceiving and taking an action Episodic: If the choice depends on the current episode and not on previous episodes Easier to operate Sequential: History matters Needs thinking ahead Chess 17 18 9

Static environment: Environment (4) The environment only changes by the actions of the agent Ex: Chess Dynamic environment: Other agents actions can change the environment The environment itself can change over time Ex: Internet Environment (5) Discrete environment: Fixed, finite number of actions and percepts Chess: At each time point, the number of actions is finite Continuous environment: t composed of discrete units Either number of actions or percepts infinite Possible to convert continuous environments into discrete environments (with loss of precision) 19 20 10

Single vs. Multiagent Open environment: Environment (6) Autonomous entities Can enter and leave frequently Don t need to let anyone know control over what others will do Cooperative entities use of sellers if they cannot cooperate with customers Environment types Solitaire Backgammon Internet Shopping Observable?? Deterministic?? Episodic?? Static?? Discrete?? Single-agent?? Taxi Need for rules, regulations, contracts 21 22 11

Environment types Agent functions and programs Observable?? Deterministic?? Episodic?? Static?? Discrete?? Solitaire Yes Yes Yes Yes Backgammon Yes Semi Yes Internet Shopping Partly Semi Yes Taxi An agent is completely specified by the agent function mapping percept sequences to actions One agent function (or a small equivalence class) is rational Aim: find a way to implement the rational agent function concisely Singleagent?? Yes Yes (except auctions) 23 24 12

Table-lookup agent (1) function TABLE-DRIVEN-AGENT( percept) returns an action static: percepts, a sequence, initially empty table, a table of actions, indexed by percept sequences, initially fully specified append percept to the end of percepts action LOOKUP( percepts, table) Table-lookup agent (2) Drawbacks: Huge table Take a long time to build the table autonomy Even with learning, need a long time to learn the table entries return action 25 26 13

Agent Types Simple reflex agents Four basic types in order of increasing generality: simple reflex agents reflex agents with state goal-based agents utility-based agents All these can be turned into learning agents 27 28 14

Simple Reflex Agent Select actions based only on the current percept, ignoring the rest of the percept history. Table lookup of percept-action pairs defining all possible condition-action rules necessary to interact in an environment Problems Possible condition-action rules too big to generate and to store (Chess has about 10 120 states, for example) knowledge of non-perceptual parts of the current state t adaptive to changes in the environment; requires entire table to be updated if changes occur 29 Model-based reflex agents (with state) 30 15

Reflex Agent with State Goal-based agents The knowledge about how the world works is called a model of the world. An agent that uses such a model is called a model-based agent. Encode "internal state" of the world to remember the past as contained in earlier percepts Needed because sensors do not usually give the entire state of the world at each input, so perception of the environment is captured over time. "State" used to encode different "world states" that generate the same immediate percept. Requires ability to represent change in the world; one possibility is to represent just the latest state, but then can't reason about hypothetical courses of action 31 32 16

Add a goal Goal-Oriented Agents What is the agent trying to do? Drive to Taksim; buy a book online Perform actions that will realize the goal A set of condition-action rules is not enough Think about a goal state where the desired goal holds Plan or search a sequence of actions such that applying those actions will transform the current state into the goal state Goal Based Agents Choose actions so as to achieve a (given or computed) goal= a description of a desirable situation Keeping track of the current state is often not enough--- need to add goals to decide which situations are good Deliberative instead of reactive May have to consider long sequences of possible actions before deciding if goal is achieved--- involves consideration of the future, "what will happen if I do...?" 33 34 17

Utility-based agents Utility-Based Agents (1) A goal-oriented agent may achieve its goals in a number of ways. thing is said about whether one way is better than another However, one path can be preferred over another because it s shorter, cheaper, etc. Utility: Quantitative measure of a chosen path A function from states to real numbers 35 36 18

Utility-Based Agents (2) Agents may have conflicting goals* Buy a book with a low cost and buy it fast Which goal should have precedence over the other? Assign a utility to each goal Maximize expected utility Learning agents 37 38 19

Components of a Learning Agent learning element, which is responsible for making improvements, performance element, which is responsible for selecting external actions. The performance element is the entire agent: it takes in percepts and decides on actions. critic gives feedback from the on how the agent is doing. problem generator is responsible for suggesting actions that will lead to new and informative experiences. Developing Agents (1) Depends on what is expected of the agent An agent that interacts with other agents over the Web JAVA! Better support for Web standards Easy integration with other programming environments An agent that processes logical formulae (logicbased agents) Prolog Java+Prolog 39 40 20

Developing Agents (2) Agent0, GOLOG, 3APL Agent programming languages Constructs for beliefs, goals, etc. Specify rules to reason on these (update, delete) Use an interpreter which will track which rules are fired and make modifications accordingly Developing Agents (3) Java Agent DEvelopment Framework (JADE) FIPA-compliant Available libraries for agent templates MadKit Agents programmed in Java Enforce an organization model so that each agent plays a role in the MAS OAA, JATLite, IBM Able 41 42 21