CS324-Artificial Intelligence

Similar documents
Agents and Environments

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

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

AI: Intelligent Agents. Chapter 2

Artificial Intelligence Lecture 7

Intelligent Agents. Instructor: Tsung-Che Chiang

Artificial Intelligence

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

Intelligent Agents. Instructor: Tsung-Che Chiang

CS 331: Artificial Intelligence Intelligent Agents

Artificial Intelligence. Intelligent Agents

Chapter 2: Intelligent Agents

CS 331: Artificial Intelligence Intelligent Agents

Lecture 2 Agents & Environments (Chap. 2) Outline

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

Intelligent Agents. Chapter 2

Intelligent Agents. Outline. Agents. Agents and environments

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

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 and State Spaces. CSCI 446: Artificial Intelligence

Artificial Intelligence

22c:145 Artificial Intelligence

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

Intelligent Agents. Russell and Norvig: Chapter 2

Artificial Intelligence Intelligent agents

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

KECERDASAN BUATAN 3. By Sirait. Hasanuddin Sirait, MT

CS 771 Artificial Intelligence. Intelligent Agents

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

Intelligent Agents. Chapter 2 ICS 171, Fall 2009

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

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

Foundations of Artificial Intelligence

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

Contents. Foundations of Artificial Intelligence. Agents. Rational Agents

Intelligent Agents. CmpE 540 Principles of Artificial Intelligence

Intelligent Agents. Philipp Koehn. 16 February 2017

Artificial Intelligence Agents and Environments 1

Web-Mining Agents Cooperating Agents for Information Retrieval

Artificial Intelligence CS 6364

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

CS343: Artificial Intelligence

Web-Mining Agents Cooperating Agents for Information Retrieval

Module 1. Introduction. Version 1 CSE IIT, Kharagpur

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

Ar#ficial Intelligence

Overview. What is an agent?


Agents and Environments

AI Programming CS F-04 Agent Oriented Programming

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

Vorlesung Grundlagen der Künstlichen Intelligenz

Solutions for Chapter 2 Intelligent Agents

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

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

Rational Agents (Chapter 2)

What is AI? The science of making machines that:

Artificial Intelligence. Admin.

Rational Agents (Ch. 2)

Rational Agents (Ch. 2)

Artificial Intelligence

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

EEL-5840 Elements of {Artificial} Machine Intelligence

Introduction to Machine Learning. Katherine Heller Deep Learning Summer School 2018

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

Intelligent Machines That Act Rationally. Hang Li Bytedance AI Lab

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

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

Intelligent Machines That Act Rationally. Hang Li Toutiao AI Lab

Learning to Identify Irrelevant State Variables

Sequential Decision Making

Speech by The Rt Hon David Cameron

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

Perception Lie Paradox: Mathematically Proved Uncertainty about Humans Perception Similarity

Reality and the brain Learning as Leadership

Optimization and Experimentation. The rest of the story

Artificial Intelligence Programming Probability

20. Experiments. November 7,

The Psychology of Inductive Inference

Artificial Intelligence. Outline

GRUNDZÜGER DER ARTIFICIAL INTELLIGENCE

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

Situation Reaction Detection Using Eye Gaze And Pulse Analysis

Robotics Summary. Made by: Iskaj Janssen

Lecture 13: Finding optimal treatment policies

Reinforcement Learning

Deliberating on Ontologies: The Present Situation. Simon Milton Department of Information Systems, The University of Melbourne

1 What is an Agent? CHAPTER 2: INTELLIGENT AGENTS

Sound is the. spice of life

Introduction to Medical Computing

Dynamic Rule-based Agent

A Theory of Complexity and its Relevance to Better Decision Making

Robot Learning Letter of Intent

Everything you need to stay connected

Consider the following aspects of human intelligence: consciousness, memory, abstract reasoning

Attention and Concentration Problems Following Traumatic Brain Injury. Patient Information Booklet. Talis Consulting Limited

Distraction Related Accidents: Eyes on Road, Hands on Wheel, AND Mind on Task Sarah Wrenn, ThinkReliability

My Notebook. A space for your private thoughts.

Transcription:

CS324-Artificial Intelligence Lecture 3: Intelligent Agents Waheed Noor Computer Science and Information Technology, University of Balochistan, Quetta, Pakistan Waheed Noor (CS&IT, UoB, Quetta) CS324-Artificial Intelligence March 2016 1 / 25

Outline 1 Good Behavior 2 Task Environment 3 Structure of Agents Types of Intelligent Agents 4 Assignment 1 Waheed Noor (CS&IT, UoB, Quetta) CS324-Artificial Intelligence March 2016 2 / 25

Outline 1 Good Behavior 2 Task Environment 3 Structure of Agents Types of Intelligent Agents 4 Assignment 1 Waheed Noor (CS&IT, UoB, Quetta) CS324-Artificial Intelligence March 2016 3 / 25

What is a good behavior? We know! Agent is in the environment, generating sequence of actions according to the percepts it receives. The action sequence is changing the states of the environment generating sequence of states. Good behavior The agent is said to have good behavior if the state sequence is desirable, and evaluation of desirable state sequence is done by a performance measure Performance measure It depends on the task and agents, therefore you should design it according to the circumstances. It is not easy! Waheed Noor (CS&IT, UoB, Quetta) CS324-Artificial Intelligence March 2016 4 / 25

General Rule Recall the vacuum-cleaner agent example, and design a performance measure. General Rule It is better to design performance measures according to what one actually wants in the environment, rather than according to how one thinks the agent should behave. Waheed Noor (CS&IT, UoB, Quetta) CS324-Artificial Intelligence March 2016 5 / 25

General Rule Recall the vacuum-cleaner agent example, and design a performance measure. General Rule It is better to design performance measures according to what one actually wants in the environment, rather than according to how one thinks the agent should behave. Waheed Noor (CS&IT, UoB, Quetta) CS324-Artificial Intelligence March 2016 5 / 25

How to Achieve Rationality At any given time 1 Performance measure (Success criteria) 2 Agent s prior knowledge of the environment 3 Set of actions 4 Percept sequence (Up to given time) Waheed Noor (CS&IT, UoB, Quetta) CS324-Artificial Intelligence March 2016 6 / 25

Rational Agent What we already know about rational agent That acts to achieve best outcome or best expected outcome in the presence of uncertainty. Act sufficiently, if not optimally, in all situations Rational Agent: In Technical Terms A rational agent should select an action for each possible percept sequence that maximizes its performance measure given to date percept sequence, and whatever built-in knowledge agent has. Is the vacuum-cleaner agent is rational? Waheed Noor (CS&IT, UoB, Quetta) CS324-Artificial Intelligence March 2016 7 / 25

Rational Agent What we already know about rational agent That acts to achieve best outcome or best expected outcome in the presence of uncertainty. Act sufficiently, if not optimally, in all situations Rational Agent: In Technical Terms A rational agent should select an action for each possible percept sequence that maximizes its performance measure given to date percept sequence, and whatever built-in knowledge agent has. Is the vacuum-cleaner agent is rational? Waheed Noor (CS&IT, UoB, Quetta) CS324-Artificial Intelligence March 2016 7 / 25

Rational Agent What we already know about rational agent That acts to achieve best outcome or best expected outcome in the presence of uncertainty. Act sufficiently, if not optimally, in all situations Rational Agent: In Technical Terms A rational agent should select an action for each possible percept sequence that maximizes its performance measure given to date percept sequence, and whatever built-in knowledge agent has. Is the vacuum-cleaner agent is rational? Waheed Noor (CS&IT, UoB, Quetta) CS324-Artificial Intelligence March 2016 7 / 25

Vacuum-Cleaner Agent Example (Assume) Performance measure: One point reward for each clean square at each time step (say lifetime = 1000 time step) Knowledge of the environment: is given, but agent does not know where the dirt is, and clean square will remain clean. Set of Actions: Left, right, and clean Perception: Agent can correctly perceive its location, and identify dirt. Is this agent rational? Can you imagine different circumstances where this agent is not rational. Waheed Noor (CS&IT, UoB, Quetta) CS324-Artificial Intelligence March 2016 8 / 25

Vacuum-Cleaner Agent Example (Assume) Performance measure: One point reward for each clean square at each time step (say lifetime = 1000 time step) Knowledge of the environment: is given, but agent does not know where the dirt is, and clean square will remain clean. Set of Actions: Left, right, and clean Perception: Agent can correctly perceive its location, and identify dirt. Is this agent rational? Can you imagine different circumstances where this agent is not rational. Waheed Noor (CS&IT, UoB, Quetta) CS324-Artificial Intelligence March 2016 8 / 25

Omniscience Vs. Rationality Omniscience agent knows the actual outcome of its action, i.e., perfection (Impossible in reality) Omniscience maximizes actual performance, while rationality maximizes expected performance. Rational agent action depends on the percept sequence to date, it also needs to perform information gathering. Exploration is also necessary when the environment is unknown to the rational agent. The rational agent may also be learning from its experience. The rational agent when getting experience, it should also become autonomous, i.e., compensating partial or incorrect knowledge. Waheed Noor (CS&IT, UoB, Quetta) CS324-Artificial Intelligence March 2016 9 / 25

Outline 1 Good Behavior 2 Task Environment 3 Structure of Agents Types of Intelligent Agents 4 Assignment 1 Waheed Noor (CS&IT, UoB, Quetta) CS324-Artificial Intelligence March 2016 10 / 25

Task Environment To build an agent, we should first describe task environment that is actually the description of performance measure, environment, actuators, and sensors (PEAS). Figure : PEAS description for Autonomus Car Agent Class Activity: What will be the task environment for a left luggage detection agent on the air port? Waheed Noor (CS&IT, UoB, Quetta) CS324-Artificial Intelligence March 2016 11 / 25

Outline 1 Good Behavior 2 Task Environment 3 Structure of Agents Types of Intelligent Agents 4 Assignment 1 Waheed Noor (CS&IT, UoB, Quetta) CS324-Artificial Intelligence March 2016 12 / 25

Structure of Agents Agent structure is consist of: Its architecture, i.e., computing device, actuators and sensors Agent program that implements agent function Softbot You can also imagine your agent as an intelligent program, called software robot or softbot. There are plenty of examples such as a website with recommendation agent or scanning news on the Internet and displaying only the one user is interested in. Explore: Verbot http://verbots.sourceforge.net/ Waheed Noor (CS&IT, UoB, Quetta) CS324-Artificial Intelligence March 2016 13 / 25

Outline 1 Good Behavior 2 Task Environment 3 Structure of Agents Types of Intelligent Agents 4 Assignment 1 Waheed Noor (CS&IT, UoB, Quetta) CS324-Artificial Intelligence March 2016 14 / 25

Types of Intelligent Agents Agents Simple Reflex Agents Model-Based Reflex Agents Goal-Based Agents Utility-Based Agents Waheed Noor (CS&IT, UoB, Quetta) CS324-Artificial Intelligence March 2016 15 / 25

Simple Reflex Agents Definition These agents select actions on the basis of the current percept, ignoring the rest of the percept history. Example Vacuum-Agent Autonomus Car Agent Advantage: Simple Disadvantage: Needs fully observable environment. Waheed Noor (CS&IT, UoB, Quetta) CS324-Artificial Intelligence March 2016 16 / 25

Model-Based Reflex Agents Definition An agent that keeps track of part of the environment that it can not observe at a particular time using its best guess. This information is called the internal state and maintained by an internal model. Example In Autonomous car example, breaking if car is closure than a moment ago, if it can not observe the red lights. Updating internal state information encoded in the agent program depends on: How the world evolves without the agent. Agent s action affecting the world. Waheed Noor (CS&IT, UoB, Quetta) CS324-Artificial Intelligence March 2016 17 / 25

Goal-Based Agents Definition With current state description, the agent needs some sort of goal information that describes situations that are desirable. They are less efficient but more flexible. Example Game playing agent needs to consider a large sequence of percept before actually applying an action to find a way to win the game. Autonomous car agent may consider the sequence of percept for possible routes to reach the destination. Searching and planning provides some techniques to find the action sequence that achieve the goal of the agent. Waheed Noor (CS&IT, UoB, Quetta) CS324-Artificial Intelligence March 2016 18 / 25

Reflex Vs. Goal-Based Agents Rules Vs. Decision Making Simple reflex agents action is based on rules that maps percept to actions, where as goal based agents make decisions by reasoning What will happen if I do this. Example The reflex agent brakes when it sees brake lights. A goal-based agent, in principle, could reason that if the car in front has its brake lights on, it will slow down. Given the way the world usually evolves, the only action that will achieve the goal of not hitting other cars is to brake. Discussion: How both agent would behave if it starts raining in the above example. Waheed Noor (CS&IT, UoB, Quetta) CS324-Artificial Intelligence March 2016 19 / 25

Utility Based Agents Example Consider, a goal-based agent will get the taxi to its destination, achieving the goal even if some routes are block. But how about safer, more cheaper, and quicker... Goal-based can make distinction between good vs. bad, but can not answer how much. Definition A rational utility-based agent chooses the action that maximizes the expected utility of the action outcomes that is, the utility the agent expects to derive, on average, given the probabilities and utilities of each outcome. The agent should include an explicit internal utility function and agent should choose action with agreement of the performance measure and utility function. Waheed Noor (CS&IT, UoB, Quetta) CS324-Artificial Intelligence March 2016 20 / 25

Outline 1 Good Behavior 2 Task Environment 3 Structure of Agents Types of Intelligent Agents 4 Assignment 1 Waheed Noor (CS&IT, UoB, Quetta) CS324-Artificial Intelligence March 2016 21 / 25

Assignment 1 Q1: Fully observable, partially observable, deterministic, stochastic, discrete and continuous are the characteristics of an environment, describe them. Q2: Today AI is doing many things around us. Examples include game playing such as IBM s Deep Blue, Logistic Planning, Robotics, etc. Describe two such real world applications of AI in detail of your own choice. Q3: Do you see the application of AI in following: 1 Supper market bar code scanner 2 Web search engines 3 Voice-activated telephone menus 4 Internet routing algorithms that respond dynamically to the state of the network. Waheed Noor (CS&IT, UoB, Quetta) CS324-Artificial Intelligence March 2016 22 / 25

Important Important Note Due date: 15th-April-2016 Explain everything in your own words, copy if proved will penalize your marks. You have to defend you work in a presentation therefore better to make presentation slides as well. Waheed Noor (CS&IT, UoB, Quetta) CS324-Artificial Intelligence March 2016 23 / 25

References I Stuart Russell and Peter Norvig. Artificial Intelligence: A Modern Approach. Pearson Education, Inc, USA, second edition, 2003. George F. Luger. Artificial Intelligence: Structures and Strategies for Complex Problem Solving. Addison-Wesley Publishing Company, USA, 6th edition, 2008. Waheed Noor (CS&IT, UoB, Quetta) CS324-Artificial Intelligence March 2016 24 / 25