CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes Jan 10, 2012.

Slides:



Advertisements
Similar presentations
Becerra-Fernandez, et al. -- Knowledge Management 1/e -- © 2004 Prentice Hall Chapter 7 Technologies to Manage Knowledge: Artificial Intelligence.
Advertisements

AI 授課教師:顏士淨 2013/09/12 1. Part I & Part II 2  Part I Artificial Intelligence 1 Introduction 2 Intelligent Agents Part II Problem Solving 3 Solving Problems.
January 11, 2006AI: Chapter 2: Intelligent Agents1 Artificial Intelligence Chapter 2: Intelligent Agents Michael Scherger Department of Computer Science.
WHAT IS ARTIFICIAL INTELLIGENCE?
1 Lecture 35 Brief Introduction to Main AI Areas (cont’d) Overview  Lecture Objective: Present the General Ideas on the AI Branches Below  Introduction.
CPSC 322, Lecture 19Slide 1 Propositional Logic Intro, Syntax Computer Science cpsc322, Lecture 19 (Textbook Chpt ) February, 23, 2009.
Artificial Intelligence Knowledge-based Agents Russell and Norvig, Ch. 6, 7.
What is Artificial Intelligence? –Depends on your perspective... Philosophical: a method for modeling intelligence Psychological: a method for studying.
AI CSC361: Intelligent Agents1 Intelligent Agents -1 CSC361.
Introduction to Artificial Intelligence Ruth Bergman Fall 2004.
Artificial Intelligence Overview John Paxton Montana State University August 14, 2003.
Logical Agents Chapter 7 Feb 26, Knowledge and Reasoning Knowledge of action outcome enables problem solving –a reflex agent can only find way from.
What is Artificial Intelligence? –not programming in LISP or Prolog (!) –depends on your perspective... a method for modeling intelligence a method for.
Artificial Intelligence
Intelligent Agents Chapter 2. Outline Agents and environments Rationality PEAS (Performance measure, Environment, Actuators, Sensors) Environment types.
CPSC 7373: Artificial Intelligence Jiang Bian, Fall 2012 University of Arkansas at Little Rock.
Introduction to AI, H. Feili 1 Introduction to Artificial Intelligence LECTURE 1: Introduction What is AI? Foundations of AI The.
CPSC 171 Artificial Intelligence Read Chapter 14.
1 AI and Agents CS 171/271 (Chapters 1 and 2) Some text and images in these slides were drawn from Russel & Norvig’s published material.
1 Lyle H. Ungar, University of Pennsylvania What is AI? “Artificial Intelligence is the study of how to make computers do things at which, at the moment,
Artificial Intelligence Dr. Paul Wagner Department of Computer Science University of Wisconsin – Eau Claire.
CISC4/681 Introduction to Artificial Intelligence1 Introduction – Artificial Intelligence a Modern Approach Russell and Norvig: 1.
Chapter 14: Artificial Intelligence Invitation to Computer Science, C++ Version, Third Edition.
Chapter 10 Artificial Intelligence. © 2005 Pearson Addison-Wesley. All rights reserved 10-2 Chapter 10: Artificial Intelligence 10.1 Intelligence and.
Artificial Intelligence: Definition “... the branch of computer science that is concerned with the automation of intelligent behavior.” (Luger, 2009) “The.
Knowledge representation
Artificial Intelligence: An Introduction Definition of AI Foundations of AI History of AI Advanced Techniques.
1 Learning Agents Laboratory Computer Science Department George Mason University Prof. Gheorghe Tecuci 1. Introduction.
10/6/2015 1Intelligent Systems and Soft Computing Lecture 0 What is Soft Computing.
Lection 3. Part 1 Chapter 2 of Russel S., Norvig P. Artificial Intelligence: Modern Approach.
Outline Agents and environments Rationality PEAS (Performance measure, Environment, Actuators, Sensors) Environment types Agent types Artificial Intelligence.
Logical Agents Logic Propositional Logic Summary
Introduction to Artificial Intelligence and Soft Computing
Agents CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
How Solvable Is Intelligence? A brief introduction to AI Dr. Richard Fox Department of Computer Science Northern Kentucky University.
1 CS 2710, ISSP 2610 Foundations of Artificial Intelligence introduction.
AI: Can Machines Think? Juntae Kim Department of Computer Engineering Dongguk University.
CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes Jan 17, 2012.
Logical Agents Chapter 7. Outline Knowledge-based agents Logic in general Propositional (Boolean) logic Equivalence, validity, satisfiability.
Introduction to Artificial Intelligence CS 438 Spring 2008 Today –AIMA, Chapter 1 –Defining AI Next Tuesday –Intelligent Agents –AIMA, Chapter 2 –HW: Problem.
KNOWLEDGE BASED SYSTEMS
Course Overview  What is AI?  What are the Major Challenges?  What are the Main Techniques?  Where are we failing, and why?  Step back and look at.
Introduction to Artificial Intelligence CS 438 Spring 2008.
What is Artificial Intelligence?
1/23 Intelligent Agents Chapter 2 Modified by Vali Derhami.
Princess Nora University Artificial Intelligence CS 461 Level 8 1.
1 UNIT-3 KNOWLEDGE REPRESENTATION. 2 Agents that reason logically(Logical agents) A Knowledge based Agent The Wumpus world environment Representation,
CSC 9010 Spring Paula Matuszek Intelligent Agents Overview Slides based in part on Hwee Tou Ng, aima.eecs.berkeley.edu/slides-ppt, which are in turn.
Artificial Intelligence, simulation and modelling.
Some Thoughts to Consider 5 Take a look at some of the sophisticated toys being offered in stores, in catalogs, or in Sunday newspaper ads. Which ones.
Intelligent Agents. Outline Agents and environments Rationality PEAS (Performance measure, Environment, Actuators, Sensors) Environment types Agent types.
1 Artificial Intelligence & Prolog Programming CSL 302.
The Hebrew University of Jerusalem School of Engineering and Computer Science Academic Year: 2011/2012 Instructor: Jeff Rosenschein.
Artificial Intelligence
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
Brief Intro to Machine Learning CS539
Chapter 11: Artificial Intelligence
School of Computer Science & Engineering
EA C461 – Artificial Intelligence Logical Agent
Intelligent Agents Chapter 2.
Intelligent Agents Chapter 2.
Hong Cheng SEG4560 Computational Intelligence for Decision Making Chapter 2: Intelligent Agents Hong Cheng
Basic Intro Tutorial on Machine Learning and Data Mining
Artificial Intelligence introduction(2)
Introduction to Artificial Intelligence and Soft Computing
Artificial Intelligence: Logic agents
AI and Agents CS 171/271 (Chapters 1 and 2)
Symbolic AI 2.0 Yi Zhou.
EA C461 – Artificial Intelligence Logical Agent
Knowledge Representation I (Propositional Logic)
Presentation transcript:

CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes Jan 10, 2012

Goals of artificial intelligence (AI) field 1.Artificial systems with humanlike ability to understand and reason (cf. cognitive science) 2.Solve problems that are too large to find the best answer algorithmically, using heuristic (incomplete) methods 3.Solve problems that are not well-understood

Artificial systems with humanlike ability to understand and reason Main techniques: ontology, automated reasoning, formal logic, state-space search Uses: problem-solving/planning, natural language processing, intelligent HCI Applications: game characters, search engines, recommender systems

Artificial systems with humanlike ability to understand and reason (cont.) Main techniques: evidential logics (probability, fuzzy logic,...), Bayesian inference nets, Markov models Uses: Problem solving under uncertainty, decision support systems (“expert systems”) Application: medical diagnosis and advice

Solve problems that are too large to find the best answer algorithmically, so require incomplete methods Main techniques: heuristic search; dependency- directed backtracking Uses: scheduling, resource allocation Application: factory production

Solve problems that are not well-understood Main techniques: weighted linear models; bayesian inference nets; statistical induction and machine learning in general Uses: finance, computational science (discovery), data mining Application: oil exploration

Go over syllabus

History of AI Initial Optimism 1960’s Samuel’s Checker player – early ML Problem Solver (Simon & Newell) Employed means-ends analysis (a pre-cursor of backward chaining now used in many systems) Match A to B to find difference D Goal: Transform situation A to situation B none Success Subgoal: Reduce D fail Fail Transform A’ into B fail Fail A’ Success suceed

Means-ends analysis (cont) Search for operator Q relevant to reducing D Goal: Reduce difference D between situations A and B none Fail Subgoal: Apply Q to A producing A’ fail Success A’ Match A to the conditions of Q, finding difference F Goal: Apply operator Q to A none Subgoal: Reduce F fail Fail Apply Q to A’’ fail Fail Success A’ A’’

Knowledge-based systems ’s – mid 80’s “Micro-world experiments SHRDLU (Terry Winograd) Rule-based “expert” systems Mycin, Dendral (Ed Feigenbaum) Acceptance by industry – huge oversell The knowledge acquisition bottleneck History of AI (cont.)

Late 80’s – mid 90’s – AI winter Hopes pinned on neural nets/ML to overcome KA bottleneck Late 90’s to present – more computing power Rise of probabilistic approaches Lexical tagging breakthrough in NLP More rigorous experiments/evaluation methods 2000’s – influence of the Web revives AI Massive text corpuses and need for better web browsers inspires NLP Hardware advances inspire robotics Intelligent Agents/Web Bots – applications to e- commerce

Agents and environments

Black box vs. glass box approach f Input (stimulus i ) Output (response j ) Weighted linear functions Bayesian models Neural nets Support vector machines

Black box vs. glass box approach Goals Strategies, plans General Knowledge: Concepts/categories Relationships Schemas/scripts rules of behavior The current environment (situation) Models of other agents Goal: tell Sam the details of a social event

Designing an Intelligent Agent What can the agent do? (range of possible actions) What about the environment ? Inputs to the program are called percepts Symbolic input from keyboard, files, networks Sensor data from the physical world Often must be interpreted into meaningful concepts What can the agent know? History of its own previous inputs and actions Properties of the environment + world knowledge Knowledge of its own goals, preferences, etc. Strategies for its behavior

Vacuum-cleaner world Percepts: location and contents, e.g., [A,Dirty] Actions: Left, Right, Suck, NoOp

Types of Agents Reflex agent: no “state” or memory Reacts to current input according to its program (condition  action rules) Knowledge-based agent: Uses an explicit knowledge base Exhibits “understanding” of its input by relating it to prior knowledge Reacts according to rules, but the conditions may be complex and require inference to evaluate

Types of Agents (cont) Planning agents Explicitly represent their own goals and/or preferences (“utilities”) and can reason about them (i.e., planning) Exhibit a kind of autonomy – actions do not follow directly from a table lookup Learning agents Learning from positive and negative examples – “supervised learning” Learn from experience to improve its outcomes – “reinforcement learning”

How do we judge whether we have succeeded? getting the “right answer” ? having a good outcome ? (using some “utility” function) the Turing Test ? (and modified versions) we know it when we see it?

Types of Agents (cont.) Reflex agent Behavior depends only on current input (no history or model of the overall environment) Ex: Vacuum Agent – Percepts: 2-tuple: A or B, Clean or Dirty – Actions: Left, Right, Suck, NoOp

Vacuum agent’s behavior The vacuum agent might follow this simple strategy: – if current location is dirty, clean it (Suck) – If current location is clean move to the other location

Knowledge Representation: Two Approaches Procedural representation – Program’s statements directly encode the knowledge (for example, of the strategy to follow) Declarative representation – A data structure encodes the knowledge and the program’s statements act like an interpreter

Approach 1 (procedural) if status = Dirty then return Suck else if location = A then return Right else if location = B then return Left Implementing the Vacuum Agent

Approach 2 (declarative): state  perceive() rule  rule-match(state, rule base) action  RHS(rule) return action Implementing the Vacuum agent Per ceptAction [A, Clean]Right [A, Dirty]Suck … Rule Base

Simple reflex agents

Production Rule Systems Behavior is expressed as a set of production rules (called “table-driven” by RN) 1. Condition  Action 2. Condition  Action... Condition called left-hand-side (LHS) Action called right-hand-side (RHS)

In what sense is an agent that uses declarative knowledge more intelligent ??

Production rule systems Drawbacks: – Huge RULE BASE (time consuming to build by hand) – What if more than one condition is satisfied? – Inflexible (no adaptation or learning)

Analyzing Agent Performance Discussion of “rationality” – Must define a performance measure How clean (but penalty for extra work?) – Rationality maximizes expected value of the measure – Depends on knowledge of the environment Can a clean square get dirty again? At what rate?

Knowledgeable agents

Knowledge bases Knowledge base = set of sentences in a formal language Declarative approach to building an agent (or other system): – Tell it what it needs to know (percept pre-interpreted) Then it can Ask itself what to do - answers should follow from the KB Agents can be viewed at the knowledge level -- what they know, regardless of how implemented Or at the implementation level -- data structures and algorithms that manipulate them

Q: What formal language(s) can we use to represent Current facts about the state of the world General facts about how the world behaves General facts about the effects of actions that the agent can perform Condition  action rules that specify how the agent is to behave A: Formal logic Syntax and semantics well understood Computational tractability known for important subsets (Horn clause logic)

Introduce Python Assignment 1

Relational Agent Systems How are you feeling today ?