CMSC 372 Artificial Intelligence What is AI? Thinking Like Acting Like Humans Humans Thought Processes Behaviors

Similar documents
CMSC 372 Artificial Intelligence. Fall Administrivia

Outline. Agents and environments Rationality PEAS (Performance measure, Environment, Actuators, Sensors) Environment types Agent types

Artificial Intelligence

Agent. Pengju Ren. Institute of Artificial Intelligence and Robotics

Intelligent Agents & Search Problem Formulation. AIMA, Chapters 2,

Artificial Intelligence

Intelligent Agents p.1/25. Intelligent Agents. Chapter 2

Artificial Intelligence

CMSC 421, Artificial Intelligence

Plan for the 2nd hour. What is AI. Acting humanly: The Turing test. EDAF70: Applied Artificial Intelligence Agents (Chapter 2 of AIMA)

Artificial Intelligence: An overview

Introduction to Artificial Intelligence: cs580

Artificial Intelligence

HIT3002: Introduction to Artificial Intelligence

Artificial Intelligence

Intelligent Systems. Lecture 1 - Introduction

Artificial Intelligence: Definition

CS 486/686 Artificial Intelligence

Course Info. CS 486/686 Artificial Intelligence. Outline. Artificial Intelligence (AI)

Our 2-course meal for this evening

Introduction to Artificial Intelligence

CS 380: ARTIFICIAL INTELLIGENCE

Outline. What is AI? A brief history of AI State of the art

Administrivia. CS 188: Artificial Intelligence Spring Agents and Environments. Today. Vacuum-Cleaner World. A Reflex Vacuum-Cleaner

CS 380: ARTIFICIAL INTELLIGENCE RATIONAL AGENTS. Santiago Ontañón

22c:145 Artificial Intelligence

Structure of Intelligent Agents. Examples of Agents 1. Examples of Agents 2. Intelligent Agents and their Environments. An agent:

COMP9414/ 9814/ 3411: Artificial Intelligence. 2. Environment Types. UNSW c Alan Blair,

Introduction to AI. Chapter 1. TB Artificial Intelligence 1/ 23

Outline. Introduction to AI. Artificial Intelligence. What is an AI? What is an AI? Agents Environments

What is AI? Artificial Intelligence. Acting humanly: The Turing test. Outline

Artificial Intelligence

CS:4420 Artificial Intelligence

CISC 1600 Lecture 3.4 Agent-based programming

CSIS 4463: Artificial Intelligence. Introduction: Chapter 1

Artificial Intelligence CS365. Amitabha Mukerjee

COS402 Artificial Intelligence Fall, Lecture I: Introduction

Inf2D 01: Intelligent Agents and their Environments

CS 188: Artificial Intelligence Fall Course Information

AI History. CE417: Introduction to Artificial Intelligence Sharif University of Technology Spring 2012

22c:145 Artificial Intelligence. Texbook. Bartlett Publishers, Check the class web sites daily!

Artificial Intelligence for Engineers. EE 562 Winter 2015

COMP9414/ 9814/ 3411: Artificial Intelligence. Week 2. Classifying AI Tasks

Last Time: Acting Humanly: The Full Turing Test

Artificial Intelligence (Introduction to)

Introduction to Artificial Intelligence

CSE 473 Artificial Intelligence (AI)

Artificial Intelligence. An Introductory Course

Course Information. CS 188: Artificial Intelligence. Course Staff. Course Information. Today. Waiting List. Lecture 1: Introduction.

CS 188: Artificial Intelligence. Course Information

CS 188: Artificial Intelligence

Artificial Intelligence

Ar#ficial)Intelligence!!

Instructor. Artificial Intelligence (Introduction to) What is AI? Introduction. Dr Sergio Tessaris

2. Environment Types. COMP9414/ 9814/ 3411: Artificial Intelligence. Agent Model. Agents as functions. The PEAS model of an Agent

Overview Agents, environments, typical components

Course Information. CS 188: Artificial Intelligence Fall Course Staff. Course Information. Today. Sci-Fi AI? Lecture 1: Introduction 8/25/2011

CSE 473 Artificial Intelligence (AI) Outline

CS 188: Artificial Intelligence Fall Administrivia

Artificial Intelligence. What is AI?

Overview. Pre AI developments. Birth of AI, early successes. Overwhelming optimism underwhelming results

Artificial Intelligence. AI Slides (4e) c Lin

CS 730/830: Intro AI. Prof. Wheeler Ruml. TA Bence Cserna. Thinking inside the box. 5 handouts: course info, project info, schedule, slides, asst 1

CS 343H: Artificial Intelligence. Week 1a: Introduction

CS 1571 Introduction to AI Lecture 1. Course overview. CS 1571 Intro to AI. Course administrivia

CS 380: ARTIFICIAL INTELLIGENCE INTRODUCTION. Santiago Ontañón

Introduction to Multiagent Systems

CS 380: ARTIFICIAL INTELLIGENCE

Random Administrivia. In CMC 306 on Monday for LISP lab

Computer Science 1400: Part #8: Where We Are: Artificial Intelligence WHAT IS ARTIFICIAL INTELLIGENCE (AI)? AI IN SOCIETY RELATING WITH AI

CPS331 Lecture: Intelligent Agents last revised July 25, 2018

Artificial Intelligence. Berlin Chen 2004

CS360: AI & Robotics. TTh 9:25 am - 10:40 am. Shereen Khoja 8/29/03 CS360 AI & Robotics 1

Introduction. Artificial Intelligence. Topic 1. What is AI? Contributions to AI History of AI Modern AI. Reading: Russel and Norvig, Chapter 1

Artificial Intelligence

CPS331 Lecture: Agents and Robots last revised November 18, 2016

Lecture 1 What is AI? EECS 348 Intro to Artificial Intelligence Doug Downey

WHAT THE COURSE IS AND ISN T ABOUT. Welcome to CIS 391. Introduction to Artificial Intelligence. Grading & Homework. Welcome to CIS 391

CITS3001. Algorithms, Agents and Artificial Intelligence. Semester 1, 2015

Welcome to CompSci 171 Fall 2010 Introduction to AI.

Administrivia. CS 188: Artificial Intelligence Fall Course Details. Course Staff. Announcements. Today.

CSC 550: Introduction to Artificial Intelligence. Fall 2004

Intro to Artificial Intelligence Lecture 1. Ahmed Sallam { }

What is AI? AI is the reproduction of human reasoning and intelligent behavior by computational methods. an attempt of. Intelligent behavior Computer

CSCI 446: Ar*ficial Intelligence. CSCI 446: Ar*ficial Intelligence Keith Vertanen

Lecture 1 What is AI?

CPS331 Lecture: Agents and Robots last revised April 27, 2012

Goals of this Course. CSE 473 Artificial Intelligence. AI as Science. AI as Engineering. Dieter Fox Colin Zheng

3.1 Agents. Foundations of Artificial Intelligence. 3.1 Agents. 3.2 Rationality. 3.3 Summary. Introduction: Overview. 3. Introduction: Rational Agents

History and Philosophical Underpinnings

CSC384 Intro to Artificial Intelligence* *The following slides are based on Fahiem Bacchus course lecture notes.

LECTURE 1: OVERVIEW. CS 4100: Foundations of AI. Instructor: Robert Platt. (some slides from Chris Amato, Magy Seif El-Nasr, and Stacy Marsella)

CSCE 315: Programming Studio

Lecture 1 What is AI?

Introduction to AI. Hal Daumé III. Computer Science University of Maryland CS 421: Introduction to Artificial Intelligence 26 Jan 2012

Introduction to Multi-Agent Systems. Michal Pechoucek & Branislav Bošanský AE4M36MAS Autumn Lect. 1

1/29/18. Chapter Outline. Artificial Intelligence. So you wanna do AI? What is Artificial Intelligence? Chapter 1. Motivations to study AI

What is Artificial Intelligence? Alternate Definitions (Russell + Norvig) Human intelligence

KI-Programmierung. Introduction

Informatics 2D: Tutorial 1 (Solutions)

Transcription:

CMSC 372 Artificial Intelligence Fall 2017 What is AI? Machines with minds Decision making and problem solving Machines with actions Robots Thinking Like Humans Acting Like Humans Cognitive modeling/science Computational Psychology How does the brain work? Speech Understanding Turing Test Thought Processes Behaviors Machines with logic laws of thought Logic Do the right thing Intelligent behavior in artifacts Thinking Rationally Acting rationally Reasoning Etc. Designing Intelligent Agents learning 2 1

Landmarks in AI History 1956 Birth of Artificial Intelligence Dartmouth Conference 1950 Alan Turing Computing Machinery & Intelligence 1943 McCulloch & Pitts Boolean Circuit model of brain 1952 69 Look Ma, no hands! GPS, Geometry Prob. Solver, Checkers, LISP 1940 1950 1960 1970 1980 1990 2000 2010 3 Landmarks in AI History 1969 79 Knowledge based systems DENDRAL, MYCIN, SHRDLU, PLANNER, CD, frames 1943 McCulloch & Pitts Boolean Circuit model of brain 1956 Birth of Artificial Intelligence Dartmouth Conference 1950 Alan Turing Computing Machinery &Intelligence 1952 69 Look Ma, no hands! GPS, Geometry Prob. Solver, Checkers, LISP 1969 Minsky & Papert: Perceptrons Kills Neural Network Agenda 1966 ALPAC Report Machine Translation Killed 1965 Robinson Algorithm for logical reasoning 1962 Block et al Perceptron Convergence Theorem 1940 1950 1960 1970 1980 1990 2000 2010 4 2

Landmarks in AI History 1969 79 Knowledge based systems DENDRAL, MYCIN, SHRDLU, PLANNER, CD, frames 1943 McCulloch & Pitts Boolean Circuit model of brain 1956 Birth of Artificial Intelligence Dartmouth Conference 1950 Alan Turing Computing Machinery &Intelligence 1952 69 Look Ma, no hands! GPS, Geometry Prob. Solver, Checkers, LISP 1969 Minsky & Papert: Perceptrons kills Neural Network Agenda 1966 ALPAC Report Machine Translation Killed 1965 Robinson Algorithm for logical reasoning 1962 Block et al Perceptron Convergence Theorem 1980 AI becomes an industry Expert Systems boom 1976 Newell & Simon Physical Symbol System Hypothesis 1988 Resurgence of probability Nouvelle AI: ALife, GAs, soft computing HMMs, Bayes networks, data mining, ML 1985 95 Rebirth of Neural networks PDP, Connectionist models, Backprop 1990 AI Winter Expert Systems go bust 1940 1950 1960 1970 1980 1990 2000 2010 5 Landmarks in AI History 1969 79 Knowledge based systems DENDRAL, MYCIN, SHRDLU, PLANNER, CD, frames 1943 McCulloch & Pitts Boolean Circuit model of brain 1956 Birth of Artificial Intelligence Dartmouth Conference 1950 Alan Turing Computing Machinery &Intelligence 1952 69 Look Ma, no hands! GPS, Geometry Prob. Solver, Checkers, LISP 1969 Minsky & Papert: Perceptrons kills Neural Network Agenda 1966 ALPAC Report Machine Translation Killed 1965 Robinson Algorithm for logical reasoning 1962 Block et al Perceptron Convergence Theorem 1976 Newell & Simon Physical Symbol System Hypothesis 1988 Resurgence of probability Nouvelle AI: Alife, GAs, soft computing HMMs, Bayes networks, data mining, ML 1985 95 Rebirth of Neural networks PDP, Connectionist models, backprop 1980 AI becomes and industry 1990 Expert Systems boom AI Winter Expert Systems go bust 2001 AI Spring? HRI, data driven AI 1995 Agents everywhere! Robots, subsumption, human level AI 1940 1950 1960 1970 1980 1990 2000 2010 6 3

Landmarks in AI History 1969 79 Knowledge based systems DENDRAL, MYCIN, SHRDLU, PLANNER, CD, frames 1943 McCulloch & Pitts Boolean Circuit model of brain 1956 Birth of Artificial Intelligence Dartmouth Conference 1950 Alan Turing Computing Machinery &Intelligence 1952 69 Look Ma, no hands! GPS, Geometry Prob. Solver, Checkers, LISP 1969 Minsky & Papert: Perceptrons kills Neural Network Agenda 1966 ALPAC Report Machine Translation Killed 1965 Robinson Algorithm for logical reasoning 1962 Block et al Perceptron Convergence Theorem 1976 Newell & Simon Physical Symbol System Hypothesis 1988 Resurgence of probability Nouvelle AI: Alife, GAs, soft computing HMMs, Bayes networks, data mining, ML 1985 95 Rebirth of Neural networks PDP, Connectionist models, backprop 1980 AI becomes and industry 1990 Expert Systems boom AI Winter Expert Systems go bust 1995 Agents everywhere! Robots, subsumption, human level AI 2006 AI yields advances Self driven cars, MAPGEN, DEEP BLUE Home robots, Spam filters, etc. 2001 AI Spring? HRI, data driven AI Machine Learning makes a lot of noise. Mostly driven by Big data and hardware advances. Goes commercial 2011 Big Data AI Watson, Deep Q&A Language translation 1940 1950 1960 1970 1980 1990 2000 2010 7 Agenda What is AI? History, Foundations, Examples: Overview Intelligent Agents Problem Solving Using Classical Search Techniques Beyond Classical Search Adversarial Search & Game Playing Constraint Satisfaction Problems Knowledge Representation & Reasoning (KRR) First Order Logic & Inference Classical Planning Planning & Acting in the Real World Other topics depending upon time... 8 4

AI: State of the Art Chapter 1, Exercise 1.14: Which of the following can be solved by computers? Play a decent game of table tennis (Ping Pong) Driving autonomously in Bryn Mawr, PA Driving in Cairo Buy a week s worth of groceries at the market Buy a week s worth of groceries on the web Play a game of bridge at the competitive level Discovering and proving new mathematical theorems Write an intentionally funny story Giving competent legal advice in a specialized area of law Translate spoken English into spoken Swedish in real time Perform a complex surgical operation 9 AI: State of the Art Chapter 1, Exercise 1.14: Which of the following can be solved by computers? Play a decent game of table tennis (Ping Pong) Driving autonomously in Bryn Mawr, PA Driving in Cairo Buy a week s worth of groceries at the market Buy a week s worth of groceries on the web Play a game of bridge at the competitive level Discovering and proving new mathematical theorems Write an intentionally funny story Giving competent legal advice in a specialized area of law Translate spoken English into spoken Swedish in real time Perform a complex surgical operation 10 5

Intelligent Agents Agents and environments Rationality PEAS (Performance measure, Environment, Actuators, Sensors) Environment types Agent types 11 What is AI? Do the right thing Intelligent behavior in artifacts Rational Behavior Designing Intelligent Agents Acting rationally learning Do the right thing. That which is expected to maximize goal achievement, given available information. Doesn t necessarily involve thinking. E.g. blinking reflex. Any thinking there is, should be in service of rational action. Design Rational Agents. : Problem: Computational limitations make perfect rationality unachievable. So, design best program for given computational resources. 12 6

Agents Agent: 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 Software agent: receives keystrokes, file contents, network packets as sensory inputs and acts by displaying, writing files, sending network packets, etc. 13 Agents Agent: 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 Software agent: receives keystrokes, file contents, network packets as sensory inputs and acts by displaying, writing files, sending network packets, etc. 14 7

Agents Perception: sensors Actions: actuators Environment: the world the agent is in 15 Agent = Architecture + Program The agent function maps from percept histories to actions: [f: P* A] The agent program runs on the physical architecture to produce f 16 8

Example: Vacuum cleaner world A B Percepts: location and contents, e.g., [A,Dirty] Actions: Left, Right, Suck 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 Left Suck Right Suck A B 9

A vacuum cleaner agent table Agent Program 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 function TableDrivenVacuumAgent(percept) returns action append percept to end of percepts action LookUp(percepts, table) return action percepts Agent Program 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 Left Suck Right Suck function ReflexVacuumAgent([location, status]) returns action if status = Dirty then return Suck else if location = A then return Right else if location = B then return Left 10

Designing Agents What is the right function? Can it be implemented in a small agent program? Is this a good agent? Bad? Stupid?...analysis! function ReflexVacuumAgent([location, status]) returns action if status = Dirty then return Suck else if location = A then return Right else if location = B then return Left? function TableDrivenVacuumAgent(percept) returns action append percept to end of percepts action LookUp(percepts, table) return action Analysis: Performance Measure An agent should strive to "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 E.g., performance measure of a vacuum cleaner agent could be amount of dirt cleaned up, amount of time taken, amount of electricity consumed, amount of noise generated, etc. 11

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. Rational Agents Rationality is distinct from omniscience (all knowing with infinite knowledge) Agents can perform actions in order to modify future percepts so as to obtain useful information (information gathering, exploration) An agent is autonomous if its behavior is determined by its own experience (with ability to learn and adapt) 12

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 (Autonomous Uber?) Performance measure Environment Actuators Sensors 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, profits Environment: Roads, other traffic, pedestrians, customers Actuators: Steering wheel, accelerator, brake, signal, horn Sensors: Cameras, sonar, speedometer, GPS, odometer, engine sensors, keyboard 13

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 14

Environment Types Fully observable (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): The next state of the environment is completely determined by the current state and the action executed by the agent. (If the environment is deterministic except for the actions of other agents, then the environment is strategic) Episodic (vs. sequential): The agent's experience is divided into atomic "episodes" (each episode consists of the agent perceiving and then performing a single action), and the choice of action in each episode depends only on the episode itself. Environment Types Static (vs. dynamic): The environment is unchanged while an agent is deliberating. (The environment is semidynamic if the environment itself does not change with the passage of 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. 15

Environment Types Chess w/o clock Solitaire Internet Shopping Taxi Real World Observable? Deterministic? Episodic? Static? Discrete? Single agent? 31 Environment Types Chess w/o clock Solitaire Internet Shopping Taxi Real World Observable? Yes Deterministic? Strategic Episodic? No Static? Yes Discrete? Yes Single agent? No 32 16

Environment Types Chess w/o clock Solitaire Internet Shopping Taxi Real World Observable? Yes Partly No Partly Partly Deterministic? Strategic Yes Partly No No Episodic? No No No No No Static? Yes Yes Semi No No Discrete? Yes Yes Yes No No Single agent? No Yes Yes, but No No 33 Environment Types Chess w/o clock Solitaire Internet Shopping Taxi Real World Observable? Yes Partly No Partly Partly Deterministic? Strategic Yes Partly No No Episodic? No No No No No Static? Yes Yes Semi No No Discrete? Yes Yes Yes No No Single agent? No Yes Yes, but No No Environment type determines agent design. 34 17

Agent functions and programs An agent is completely specified by the agent function mapping percept sequences to actions The agent function (or a small equivalence class) has to be rational Aim: find a way to implement the rational agent function concisely Table Lookup Agent function TableDrivenVacuumAgent(percept) returns action append percept to end of percepts action LookUp(percepts, table) return action Drawbacks: Huge table Take a long time to build the table No autonomy Even with learning, need a long time to learn the table entries 18

Reflex Vacuum Agent function ReflexVacuumAgent([location, status]) returns action if status = Dirty then return Suck else if location = A then return Right else if location = B then return Left Generic Agent Framework Sensors?????? Actuators 19

Agent Types In order of increasing generality: Simple reflex agents Model based reflex agents Goal based agents Utility based agents Agent Types In order of increasing generality: Simple reflex agents Model based reflex agents Goal based agents Learning??? Utility based agents 20

Simple Reflex Agents Sensors What the world is like now Condition Action Rules What action I should do now Actuators Simple Reflex Agents function SimpleReflexAgent(percept) returns Action persistent: rules, a set of condition action rules state InterpretInput(percept) rule RuleMatch(state, rules) action rule.action return action 21

Model Based Reflex Agents State How the world evolves What my actions do Sensors What the world is like now Condition Action Rules What action I should do now Actuators Model Based Reflex Agents function ModelBasedReflexAgent(percept) returns Action persistent: state, the agent s current conception of the world state model, a description of how the next state depends on current state and action rules, a set of condition action rules action, the most recent action, initially none state UpdateState(state, action, percept, model) rule RuleMatch(state, rules) action rule.action return action 22

Goal Based Agents State How the world evolves What my actions do Sensors What the world is like now What it will be like if I do A Goals What action I should do now Actuators Utility Based Agents State How the world evolves What my actions do Sensors What the world is like now What it will be like if I do A Utility How happy I will be in such a state What action I should do now Actuators 23

Learning Agents Critic Sensors feedback learning goals Learning element changes knowledge Performance element Problem generator Actuators Summary Agents interact with environments through sensors and actuators Agent function describes what the agent does in all circumstances Performance measure evaluates the environment sequence A perfectly rational agent maximizes expected performance Agent programs implement (some) agent functions PEAS descriptions define task environments Environments are categorized along several dimensions: observable? deterministic? episodic? static? discrete? single agent? Several basic agent types exist: reflex, reflex with state (model), goal based, utility based 48 24

Acknowledgements Much of the content in this presentation is based on Chapter 2, Artificial Intelligence: A Modern Approach, by Russell & Norvig, Third Edition, Prentice Hall, 2010. This presentation is being made available by Deepak Kumar for any and all educational purposes. Please feel free to use, modify, or distribute. Powerpoint file(s) are available upon request by writing to dkumar@cs.brynmawr.edu Prepared in January 2015, modified September 2017. 49 25