1 CS 385 Fall 2006 Chapter 8 Strong Method (knowledge-intensive) Problem Solving 8.1, 8.2, 8.4.1, 8.4.2.

Slides:



Advertisements
Similar presentations
Planning.
Advertisements

Modelling with expert systems. Expert systems Modelling with expert systems Coaching modelling with expert systems Advantages and limitations of modelling.
STRONG METHOD PROBLEM SOLVING
Planning Module THREE: Planning, Production Systems,Expert Systems, Uncertainty Dr M M Awais.
Planning Module THREE: Planning, Production Systems,Expert Systems, Uncertainty Dr M M Awais.
Reasoning Forward and Backward Chaining Andrew Diniz da Costa
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Planning Chapter 10.
Planning Planning is fundamental to “intelligent” behaviour. E.g.
All rights reserved ©L. Manevitz Lecture 61 Artificial Intelligence Planning System L. Manevitz.
Strong Method Problem Solving
Artificial Intelligence II S. Russell and P. Norvig Artificial Intelligence: A Modern Approach Chapter 11: Planning.
1 Classical STRIPS Planning Alan Fern * * Based in part on slides by Daniel Weld.
Chapter 12: Expert Systems Design Examples
Expert System Human expert level performance Limited application area Large component of task specific knowledge Knowledge based system Task specific knowledge.
Object-Oriented Analysis and Design
CPSC 322 Introduction to Artificial Intelligence November 19, 2004.
Chapter 4 DECISION SUPPORT AND ARTIFICIAL INTELLIGENCE
Problem Solving What is AI way of solving problem?
Artificial Intelligence
Knowledge Acquisition CIS 479/579 Bruce R. Maxim UM-Dearborn.
Marakas: Decision Support Systems, 2nd Edition © 2003, Prentice-Hall Chapter Chapter 7: Expert Systems and Artificial Intelligence Decision Support.
EXPERT SYSTEMS Part I.
Intro to AI Fall 2002 © L. Joskowicz 1 Introduction to Artificial Intelligence LECTURE 12: Planning Motivation Search, theorem proving, and planning Situation.
1 Pertemuan 17 Planning Matakuliah: T0264/Intelijensia Semu Tahun: Juli 2006 Versi: 2/1.
Building Knowledge-Driven DSS and Mining Data
Artificial Intelligence CSC 361
AI Principles, Lecture on Planning Planning Jeremy Wyatt.
McGraw-Hill/Irwin ©2005 The McGraw-Hill Companies, All rights reserved ©2005 The McGraw-Hill Companies, All rights reserved McGraw-Hill/Irwin.
Sepandar Sepehr McMaster University November 2008
Strong Method Problem Solving.
Expert Systems Infsy 540 Dr. Ocker. Expert Systems n computer systems which try to mimic human expertise n produce a decision that does not require judgment.
1 Backward-Chaining Rule-Based Systems Elnaz Nouri December 2007.
Artificial Intelligence Lecture No. 15 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
Chapter 6: Applying the PSSH. Cognitive Science  José Luis Bermúdez / Cambridge University Press 2010 Overview Explain why ID3 and SHAKEY both count.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Course Instructor: K ashif I hsan 1. Chapter # 2 Kashif Ihsan, Lecturer CS, MIHE2.
IDDS: Rules-based Expert Systems
Knowledge based Humans use heuristics a great deal in their problem solving. Of course, if the heuristic does fail, it is necessary for the problem solver.
 Architecture and Description Of Module Architecture and Description Of Module  KNOWLEDGE BASE KNOWLEDGE BASE  PRODUCTION RULES PRODUCTION RULES 
ARTIFICIAL INTELLIGENCE Lecture 3 Predicate Calculus.
CSE (c) S. Tanimoto, 2002 Expert Systems 1 Expert Systems Outline: Various Objectives in Creating Expert Systems Integration of AI Techniques into.
Chapter 13 Artificial Intelligence and Expert Systems.
Expert Systems. L EARNING O BJECTIVES : By the end of this topic you should be able to: explain what is meant by an expert system describe the components.
1 Chapter 16 Planning Methods. 2 Chapter 16 Contents (1) l STRIPS l STRIPS Implementation l Partial Order Planning l The Principle of Least Commitment.
Introduction to Planning Dr. Shazzad Hosain Department of EECS North South Universtiy
AI Lecture 17 Planning Noémie Elhadad (substituting for Prof. McKeown)
SQL Based Knowledge Representation And Knowledge Editor UMAIR ABDULLAH AFTAB AHMED MOHAMMAD JAMIL SAWAR (Presented by Lei Jiang)
1/16 Planning Chapter 11- Part1 Author: Vali Derhami.
Of An Expert System.  Introduction  What is AI?  Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES.
Artificial Intelligence
CS621: Artificial Intelligence Pushpak Bhattacharyya Computer Science and Engineering Department IIT Bombay Lecture 19: Hidden Markov Models.
Artificial Intelligence: Applications
Expert Systems. Knowledge base Inference engine ReasoningControl User interface user Components of an rule based Expert System.
Decision Support and Business Intelligence Systems (9 th Ed., Prentice Hall) Chapter 12: Artificial Intelligence and Expert Systems.
Lecture #1 Introduction
Artificial Intelligence, P.I
Object-Oriented Software Engineering Using UML, Patterns, and Java,
Learning Teleoreactive Logic Programs by Observation
Architecture Components
Introduction Defining the Problem as a State Space Search.
CS62S: Expert Systems Based on:
MANAGING KNOWLEDGE FOR THE DIGITAL FIRM
Intro to Expert Systems Paula Matuszek CSC 8750, Fall, 2004
CS344 : Introduction to Artificial Intelligence
L11. Planning Agents and STRIPS
CIS 488/588 Bruce R. Maxim UM-Dearborn
CS344 : Introduction to Artificial Intelligence
Chapter 2 Problems, Problem Spaces, and Search?
Prof. Pushpak Bhattacharyya, IIT Bombay
Presentation transcript:

1 CS 385 Fall 2006 Chapter 8 Strong Method (knowledge-intensive) Problem Solving 8.1, 8.2, 8.4.1, 8.4.2

2 Intelligence The first principle of knowledge engineering is that the problem-solving power exhibited by an intelligent agent’s performance is primarily the consequence of its knowledge base and only secondarily the conse- quence of the inference method employed. (Feigenbaum) Is this true for people? It is a capital mistake to theorize in the absence of the facts. (Arthur Conan Doyle) What is intelligence/expertise? I don’t know how to define it, but I know when I see it. (Stewart Potter) Humans can solve problems because they know a lot, often in some area of expertise.

3 Expert Systems When I call someone an expert –what are the types of tasks s/he does? –how? Attributes of an expert? –specialist –limited domain Expert: –any person with an ordinary knowledge of a subject who carries a briefcase and is more than 50 miles away from home Expert systems –developed to mimic human problem solving –restricted to specific problem domains

4 Expert Systems Typical areas: –interpretation –prediction –diagnosis –design –planning –monitoring –debugging –instruction –control Next class: give a specific example of each

5 Example: swine (simple wine) Goal: pick a wine Knowledge: –if the meal is meat or turkey, you want a red wine –if the meal is fish or poultry but not turkey you want a white wine –the red wine is beaujolais –the white wine is chablis What's to be determined? –the main-component of the meal (ask the user) –the color of the wine (based on main-component) –the wine (based on the color) See swine knowledge as a collection of if/then rules –goal: what is to be determined

6 SWINE goal = wine. rule-1: if main-component = meat then best-color = red. rule-2: if main-component = fish then best-color = white. rule-3: if main-component = poultry and has-turkey = no then best-color = white. rule-4: if main-component = poultry and has-turkey = yes then best-color = red. rule-5: if best-color = red then wine = beaujolais. rule-6: if best-color = white then wine = chablis. So, where to start? question(has-turkey) = 'Does the meal have turkey in it?'. legalvals(has-turkey) = [yes, no]. multivalued(main-component). question(main- component) = 'Is the main component of the meal meat, fish or poultry?'. legalvals(main-component) = [meat, fish, poultry].

7 Example: Adaptive Radar Control Air Force program to apply current AI technology to improve radar detection capabilities –2-year, 6 man-year effort –C-Band (phased array) radar at Griffis Air Force Base –expert system built in PROLOG My role –proposal writer –program manager –AI person –interface between academic AF program manager and technical radar engineers –cat herder

8 Adaptive Radar Control What is it? –radar sends a signal, some of it is echoed back –signal processing of the radar returns to try to determine where and what objects are –interference (clutter): birds, rain, echos from the ground –adjust radar parameters (dwell time, power level, waveform modification) so as to improve detection capabilities Objective: –maximize probability of target detection Why a candidate for an expert system? –expertise exists –an important problem –try out a new, unexplored, promising technology

9 The Radar Engineer's View

10 My View Signal Processing (ST-100) Radar Control (HP 2117) Adaptive Control (VAX) C Band Radar

11 Rules Identifying sources of interference: if (x, y, z, found in radar returns) interference is a jammer if (x, y, z, found in radar returns) interference is rain clutter Identifying electronic countermeasures if (narrow band jammer detected) implement frequency hopping

12 Project Summary Problems –focusing the effort –extracting rules from the radar experts –PROLOG –making the equipment work –managing a group of people with different skills –keeping within budget Was this AI? –No only 20 rules in 13,000 lines of code mostly configuring equipment and signal processing –Yes attempt to automate human intelligence

13 Building an Expert System Three major components: –knowledge base (the facts and rules for the specific application) –inference engine (uses KB to reach a conclusion) –user interface (allows user to develop KB, run consultation) Figure 8.1 is more complicated, but same basic functions Major characteristic: separation of knowledge and control –knowledge can be represented more naturally (rules) –builders can focus on the knowledge, not the inferencing

14 Figure 8.1: E xpert system architecture Expert system shell

Conceptual Models and Their Role in Knowledge Acquisition Typical in expert system heyday –guys in expensive suits throwing random rules together –expert systems sold as a way to avoid structuring knowledge –people thought they had only to write down a bunch of rules and they captured intelligence Equivalent ideas –anyone can program –anyone can build a database –anyone can set up a web site Not true –as the knowledge engineer starts to understand the problem, structures emerge –conceptual model: the knowledge engineer’s understanding of the problem solving process, not the final result

16 Fig 8.4The role of mental or conceptual models in problem solving. 5 Does this match any of the ways you work?

17 Conceptual Models E.G. car diagnostics: –what are the problems –what factors contribute to each –what are the observable symptoms Same for radar: –what are the types of interference –what are their characteristics –how can they be mitigated –what data do I have to develop to make informed decisions –the last was very difficult

Rule-Based Expert Systems The knowledge base is a set of rules These can be viewed as productions Productions systems are a precursor to expert systems (See SWINE as a production system, data- and goal- driven)

19 A small expert system for analysis of automotive problems.

20 Fig 8.8The and/or graph searched in the car diagnosis example, with the conclusion of Rule 4 matching the first premise of Rule 1.

21 Fig 8.5The production system for car diagnostics, goal driven.

22 Fig 8.6After Rule 1 has fired ? Note addition of '?' Which rule fires next? ?

23 Fig 8.7After Rule 4 has fired Note the stack-based approach to goal reduction This is depth first since premises of rule 1 are explored before going to rule 2 ? ? ?

24 Our notation Iter.Working MemoryConflict Set Rule Fired 1the problem is X1, 2, 31 2getting gas? engine turns over? the problem is X 4, 2, 34 3gas in fuel tank? gas in carburator? →getting gas engine turns over? the problem is X 2, 3 Ask gas in fuel tank? gas in carburator? engine turns over? If the first two are true, add getting gas to working memory. If one of them is false, fire rule 2 4engine turns over? lights come on? the problem is X

25 Planning Find steps to accomplish a specific task What do you plan and how? Knowledge intensive –organize pieces of knowledge and partial plans Major application: robotics –originally: make a plan, have a robot implement –today: robot may give feedback along the way Method –search through the space of possible actions until a sequence that accomplishes the task is found

26 Famous example: The blocks world Start stateGoal

27 Frame problem Specifies –what is true in one state –what is changed by a specific action E.g. pickup e in the preceding slide changes state to

28 Predicates for clear (X), ontable (X), and gripping ()

29 Fig 8.19 Portion of the state space

30 STRIPS (STanford Research Institute Planning System) A method to efficiently represent planning operations Triples describe an operation P: precondition for the operation A: add to the description of the state space D: delete from the description of the state space E.g. to pick up an object? P: the arm is not gripping it it must not have anything on top it must be on the table A: the arm is gripping D: it is no longer on the table and "ungripped"

31 Pickup, putdown, stack, and unstack: pickup(X) P: gripping( )  clear(X)  ontable(X) A: gripping(X) D: ontable(X)  gripping() putdown(X) P: gripping(X) A: ontable(X)  gripping( )  clear(X) D: gripping(X) stack(X) P: clear(Y)  gripping(X) A: on(X,Y)  gripping( )  clear(X) D: clear(Y)  gripping(X) unstack(X) P: clear(X)  gripping( )  on(X,Y) A: gripping(X)  clear(Y) D: gripping()  on(X,Y)

32 Start Goal Problem: nonlinearity of subgoals ontable(a) //REMOVE ontable(c) ontable(d) on(b, a) //SAME? on(e, d) gripping() clear(b) clear(c) //REMOVE clear(e) ontable(c) ontable(d) on(b, a) on(e, d) on(a, c) //NEW gripping() clear(b) clear(c) In order to achieve on(a, c) we need to undo on(b, a)

33 Triangle Tables For organizing specific sequences of actions within a plan Relates preconditions of an action to its postconditions Used to determine what operations can be performed Format –atomic actions along the diagonal –preconditions in the row –postconditions in the column Purpose: interleave preconditions and postconditions of small actions that make up a larger goal Example: go from on(X,Y) to on(X,Y)  on(Y,Z) (a macro action consisting of a sequence of atomic actions)

34 Fig 8.21A triangle table, from on(X,Y) to on(X,Y)  on(y,Z)

35 on(X,Y) to on(X,Y)  on(Y,Z): Try unstack(X,Y) Try putdown(X) What happens when we back up? gripping() clear(X) on(X,Y) ontable(Y) clear(z) gripping(X) clear(Y).... unstack(X,Y) gripping() clear(X) on(X,Y) clear(z) gripping(X)..... unstack(X,Y) ontable(Y).. clear(Y). gripping(). putdown(X)

36 Observations Note the use of X, Y, Z –the table for on(X,Y) → on(X,Y)  on(Y,Z) can be reused When something goes wrong –back up and check what is still true –indicated by nth kernel (3 rd kernel is within the blue box)