Vorlesung Grundlagen der Künstlichen Intelligenz

Similar documents
Chapter 2: Intelligent Agents

Intelligent Agents. Outline. Agents. Agents and environments

Intelligent Agents. Chapter 2 ICS 171, Fall 2009

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

CS 771 Artificial Intelligence. Intelligent Agents

CS 331: Artificial Intelligence Intelligent Agents

CS 331: Artificial Intelligence Intelligent Agents

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

Web-Mining Agents Cooperating Agents for Information Retrieval

Intelligent Agents. Russell and Norvig: Chapter 2

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

Artificial Intelligence. Intelligent Agents

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

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

AI: Intelligent Agents. Chapter 2

Web-Mining Agents Cooperating Agents for Information Retrieval

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)

Foundations of Artificial Intelligence

Intelligent Agents. CmpE 540 Principles of Artificial Intelligence

Artificial Intelligence CS 6364

Artificial Intelligence Agents and Environments 1

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

Contents. Foundations of Artificial Intelligence. Agents. Rational Agents

22c:145 Artificial Intelligence

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

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

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

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

Lecture 2 Agents & Environments (Chap. 2) Outline

Artificial Intelligence Intelligent agents

Rational Agents (Chapter 2)

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

Intelligent Agents. Chapter 2

Intelligent Agents. Instructor: Tsung-Che Chiang

Agents and Environments

Intelligent Agents. Instructor: Tsung-Che Chiang

Artificial Intelligence

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

Intelligent Agents. Philipp Koehn. 16 February 2017

Agents and State Spaces. CSCI 446: Artificial Intelligence

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

KECERDASAN BUATAN 3. By Sirait. Hasanuddin Sirait, MT

Artificial Intelligence Lecture 7

How do you design an intelligent agent?

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

Agents and Environments

Solutions for Chapter 2 Intelligent Agents

Artificial Intelligence

AI Programming CS F-04 Agent Oriented Programming

Overview. What is an agent?

Module 1. Introduction. Version 1 CSE IIT, Kharagpur

Ar#ficial Intelligence

Rational Agents (Ch. 2)

CS324-Artificial Intelligence

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

CS343: Artificial Intelligence

Rational Agents (Ch. 2)


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

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

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.

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

LECTURE 5: REACTIVE AND HYBRID ARCHITECTURES

1 What is an Agent? CHAPTER 2: INTELLIGENT AGENTS

Robotics Summary. Made by: Iskaj Janssen

Intelligent Machines That Act Rationally. Hang Li Bytedance AI Lab

Vorlesung Grundlagen der Künstlichen Intelligenz

Motion Control for Social Behaviours

Intelligent Machines That Act Rationally. Hang Li Toutiao AI Lab

What is AI? The science of making machines that:

High-level Vision. Bernd Neumann Slides for the course in WS 2004/05. Faculty of Informatics Hamburg University Germany

Robot Behavior Genghis, MIT Callisto, GATech

Part I Part 1 Robotic Paradigms and Control Architectures

Multimodal Driver Displays: Potential and Limitations. Ioannis Politis

Four Example Application Domains

Artificial Intelligence. Outline

Pavlovian, Skinner and other behaviourists contribution to AI

Re: ENSC 370 Project Gerbil Functional Specifications

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

Challenges and opportunities for humanmachine collaboration at beyond human scales

SENSATION AND PERCEPTION KEY TERMS

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

GRUNDZÜGER DER ARTIFICIAL INTELLIGENCE

Enhancing Cognitive System Self Perception Object Identification Using Neural Network

CS 4365: Artificial Intelligence Recap. Vibhav Gogate

Reactivity and Deliberation in Decision-Making Systems

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

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

Human cogition. Human Cognition. Optical Illusions. Human cognition. Optical Illusions. Optical Illusions

Katsunari Shibata and Tomohiko Kawano

Unmanned autonomous vehicles in air land and sea

Fodor on Functionalism EMILY HULL

Introduction to Arti Intelligence

Muddy Tasks and the Necessity of Autonomous Mental Development

Human Abilities: Vision, Memory and Cognition. Oct 14, 2016

Grounding Ontologies in the External World

M.Sc. in Cognitive Systems. Model Curriculum

Semiotics and Intelligent Control

Transcription:

Vorlesung Grundlagen der Künstlichen Intelligenz Reinhard Lafrenz / Prof. A. Knoll Robotics and Embedded Systems Department of Informatics I6 Technische Universität München www6.in.tum.de lafrenz@in.tum.de 089-289-18136 Room 03.07.055 Wintersemester 2012/13 22.10.2012

Grundlagen der Künstlichen Intelligenz Techniques in Artificial Intelligence Chapter 2 Intelligent Agents R. Lafrenz Wintersemester 2012/13 22.10.2012

What is an Agent? An agent is anything that can be viewed as perceiving its environment through sensors and acting upon that environment through actuators Sensing modalities Human vision hearing smelling touch proprioceptive sensors Robot (computer) vision Audio (or speech ) recognition odometry force/torque encoders and force/torque

What is an Agent? An agent is anything that can be viewed as perceiving its environment through sensors and acting upon that environment through actuators Acting Human arms and legs hands other body motion facial expression talking Robot arms, legs, and/or wheels end-effectors (grippers, tools for e.g. drilling, welding) depending on system artificial emotion expression speech output

What is an Agent? Goal: Design an agent that acts successfully in its environment

Examples of (robotic) agents http://www6.in.tum.de/main/researchjast http://mars.jpl.nasa.gov/explore/learnaboutrover/ http://f.asset.soup.io/asset/0059/6767_8701.jpeg http://www.echord.info/wikis/website/gop http://upload.wikimedia.org/wikipedia/commons/c/c7/ Danfos-Thermostatventil.jpg

The Vacuum World Percepts: location and contents: < A B, Clean Dirty > e.g. <A, Dirty> Actions: Left, Right, Suck, NoOp How to describe the agent s behavior? 7

The Vacuum Cleaning Agent The agent function maps from percept histories to actions: [f: P* A] The agent program is an implementation of f, given an agent and its architecture agent = architecture + program How to describe and implement f? 8

The Vacuum Cleaning Agent Defining the agent function by a table Sequence of percepts Action < A, Clean > Right < A, Dirty > Suck < B, Clean > Left < B, Dirty > Suck < A, Clean >, < A, Clean > Right < A, Clean >, < A, Dirty > Suck < A, Clean >, < B, Clean > Left < A, Clean >, < B, Clean >, < A, Dirty > Suck Is this an appropriate representation? 9

The Vacuum Cleaning Agent What is the (or a?) correct function Can it be implemented in a compact way? 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 This describes a finite-state automaton or finite-state machine Does this lead to a rational behavior? 10

Rational agents Doing the right thing based on the available information Rationality depends on Performance measure: An objective criterion for success of an agent's behavior (degree of goal achievement) A priori knowledge about the environment Possible actions Sequence of percepts 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 the built-in knowledge 11

Rational Agents Rational vs. Omniscient Maximizing the expected performance, not the actual one Examples: Distance to goal given the current state estimation (map) Euclidian distance? Dynamic obstacles! 12 Number of work pieces processed by an industrial robot Value of collected information (software agent)

Rational Agents Autonomy: An agent is autonomous if its behavior is determined by its own experience, i.e. the sequence of percepts. Automomy implies the ability to learn and adapt. Suffitient time and sufficient number of percepts are needed for the ability to adapt to new situations and to learn new actions which are adequate in the given situation 13

PEAS description of a rational agent Performance Measure: Assess the perfomance of an agent Environment: The environment in which the agent is able to act and to achieve ist goals Actions: the actions tha agent is able to perfom Sensors: the information an agent can perceive 14

PEAS description of a thermostat Performance measure: constant room temperature Environment: room, house, car Actions: open or close valves, NoOp Sensors: data from temperature sensor Percepts: temperature T at a given time Actions: open or close valve by x% http://upload.wikimedia.org/wikipedia/commons/c/c7/ Danfos-Thermostatventil.jpg 15

The agent program of a thermostat T = T current T desired Agent function uses T to select an appropriate action 16 f: T A function THERMOSTAT-AGENT(temperature) returns an action if temperature <= desired then return OpenValve(k* T) else if temperature > desired then return CloseValve(k* T) else return NoOp Is this sufficient? (consider that the general agent function takes the sequence of percepts)

The agent program of a thermostat How to measure the performance? At each point in time? Oscillation possible Average over a certain period? Slow reaction possible Taking more than one sensor reading into account How to determine the next action? After goal achievement? How to determine the next action? http://www.rn-wissen.de/index.php/regelungstechnik This also affects the implementation and the behavior of the agent function 17

PEAS descriptions of other agents Agent Medical diagnosis system Autonomous taxi driver Controller in chemical industry Part-picking robot Interactive English tutor Performance measure Healthy patient, minimize costs, lawsuits Safe, fast, legal, comfortable trip, maximize profits Puirity, quantity, safety, Percentage of parts in correct bins Maximize student's score on test Environment Actions Sensors Patient, hospital, staff Roads, traffic, pedestrians, customers Industrial environment Conveyor belt with parts, bins Set of students, examiners Screen display (questions, tests, diagnoses, treatments, etc.) Steering wheel, accelerator, brake, horn, Pumps, valves, heating, etc. Robot arm and hand Display of exercises, suggestions, corrections Keyboard (entry of symptoms, findings, patient's answers) Cameras, sonar,, GPS, odometer, voice recognition Sensors for temp., pressure, spectrometers,... Camera, joint angle sensors Keyboard input 18

PEAS descriptions of other agents Agent Soccer playing Searching for titanium on the sea floor Bidding for an item at an auction Performance measure Environment Actions Sensors 19

Classification of environments Fully observable Single agent Deterministic Episodic Static Discrete Partially observable Multiple agents Stochastic Sequential Dynamic Continuous How would you characterize Medical diagnosis systems Playing chess (with clock) Playing soccer Taxi driving 20

Taxonomy of agents Table-driven agent function TABLE-DRIVEN-AGENT(percept) returns an action percepts: a sequence, initially empty table: the table with percet sequences and actions, fully specified append percept to the end of percepts action lookup (table, percepts) return action Might get very large Generation takes time (by programmer or learning algorithm) 21

Taxonomy of agents Table-driven agent What is the size of the table of the agent has P possible percepts and works for T time steps? What would be the table size for a 1h drive with an autonomous taxi using a 30frames/sec 640x40 / 24bit camera as the percepts? 27 MB/sec table size 10 250.000.000.000 State space for Chess: 10 150 Estimated number of atoms in the universe: 10 80 practically infeasible 22

Taxonomy of agents Simple reflex agent Direct use of sensory data often intractable 23

Taxonomy of agents Simple reflex agent function SIMPLE-REFLEX-AGENT(percept) returns an action rules: a set of condition-action rules state interpret-input (percepts) rule rule-match(state, rules) action rule-action (rule) return action Interpretation of percepts 24

Taxonomy of agents Agents with internal world model 25 If history of percepts is needed to select an action, it must be represented in appropriate way

Taxonomy of agents Reflex agent with internal state function REFLEX-AGENT-WITH-STATE(percept) returns an action state: a description of the current world state rules: a set of condition-action rules state interpret-input (state, percepts) rule rule-match(state, rules) action rule-action (rule) state update-state(state, action) return action 26

Taxonomy of agents Goal-based agents 27 Sole percepts are often not sufficient to choose an action Explicit representatioon of goals and using it for action selection

Taxonomy of agents Utility-based agents 28 In most cases, several actions can be performed in a given state Choose the action based on the utility of the expected next state

Taxonomy of agents Learning agents 29

Representation of states and transitions 30 (a) Atomic: blackbox, no internal structure, e.g. a name Used e.g. for search algorithms, games, HMM, MDP (b) Factored: vector of variables or attributes Used e.g. for reasoning with propositional logic, constraint satisfaction (c) Structured: ocjects and relations Bases for first-order logic, relational (or object-oriented) databases, probability models, knowledge-based learning, etc.

Discussion Are the following statements true or false? Why? a) An agent that senses only partial information about the state cannot be perfectly rational. b) There exist task environments in which no pure reflex agent can behave rationally. c) There exists a task environment in which every agent is rational. d) The input to an agent program is the same as the input to the agent function. e) Every agent function is implementable by some program/machine combination. 31

Discussion f) 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. g) It is possible for a given agent to be perfectly rational in two distinct task environments. h) Every agent is rational in an unobservable environment. i) A perfectly rational poker-playing agent never loses. 32

Summary 33 An agent is an entity that perceives and acts It consists of an architecture and a program A ideal rational agend is expected to maximize its performance measure, given the evidence provided by the percept sequence and the built-in knowledge There are different types of environments, some are more challenging than others E.g. partially observable, stochastic, sequential, dynamic, continuous There are different types of agents Reflex agents, only reacting to the perceipts Goal-based agents, trying to achieve given goal(s) Utility-based agents, maximizing their performance