Knowledge Based Systems

Similar documents
Overview. cis32-spring2003-parsons-lect15 2

Overview EXPERT SYSTEMS. What is an expert system?

Sample Interaction: Explanation. Sample Interaction (cont d) Sample Interaction: Therapy. Sample Interaction: Diagnosis. How It Worked: Representation

Knowledge is rarely absolutely certain. In expert systems we need a way to say that something is probably but not necessarily true.

Physicians and possibly medical students and paramedics.

Expert Systems: Simple Examples and case study

CPS331 Lecture: Coping with Uncertainty; Discussion of Dreyfus Reading

Expert Systems. Artificial Intelligence. Lecture 4 Karim Bouzoubaa

Inferencing in Artificial Intelligence and Computational Linguistics

Citation for published version (APA): Geus, A. F. D., & Rotterdam, E. P. (1992). Decision support in aneastehesia s.n.

Expert System Profile

Foundations of AI. 10. Knowledge Representation: Modeling with Logic. Concepts, Actions, Time, & All the Rest

Artificial Intelligence Lecture 7

56 The Evolution of MYCIN s Rule Form

Chapter 2. Knowledge Representation: Reasoning, Issues, and Acquisition. Teaching Notes

Models for Inexact Reasoning. Imprecision and Approximate Reasoning. Miguel García Remesal Department of Artificial Intelligence

Agent-Based Systems. Agent-Based Systems. Michael Rovatsos. Lecture 5 Reactive and Hybrid Agent Architectures 1 / 19

INFERENCING STRATEGIES

Intelligent Machines That Act Rationally. Hang Li Toutiao AI Lab

Intelligent Machines That Act Rationally. Hang Li Bytedance AI Lab

Artificial Intelligence

Bayesian Belief Network Based Fault Diagnosis in Automotive Electronic Systems

[1] provides a philosophical introduction to the subject. Simon [21] discusses numerous topics in economics; see [2] for a broad economic survey.

STIN2103. Knowledge. engineering expert systems. Wan Hussain Wan Ishak. SOC 2079 Ext.: Url:

Artificial Intelligence Programming Probability

Programming with Goals (3)

A FRAMEWORK FOR CLINICAL DECISION SUPPORT IN INTERNAL MEDICINE A PRELIMINARY VIEW Kopecky D 1, Adlassnig K-P 1

in Engineering Prof. Dr. Michael Havbro Faber ETH Zurich, Switzerland Swiss Federal Institute of Technology


CS 4365: Artificial Intelligence Recap. Vibhav Gogate

Integrating Cognition, Perception and Action through Mental Simulation in Robots

1 What is an Agent? CHAPTER 2: INTELLIGENT AGENTS

Thinking Like a Researcher

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

Insight Assessment Measuring Thinking Worldwide

ERA: Architectures for Inference

Diagnosis Of the Diabetes Mellitus disease with Fuzzy Inference System Mamdani

Lecture 3: Bayesian Networks 1

Design and Implementation of Fuzzy Expert System for Back pain Diagnosis

An expert system (Autodoc) for diagnosing diseases and prescribing medication using visual basic.net

THE CUSTOMER SERVICE ATTRIBUTE INDEX

Dealing with Uncertainty in Expert Systems

Clinical Decision Support Systems. 朱爱玲 Medical Informatics Group 24 Jan,2003

CISC453 Winter Probabilistic Reasoning Part B: AIMA3e Ch

Fodor on Functionalism EMILY HULL

Rational drug design as hypothesis formation

Intelligent Agents. Chapter 2 ICS 171, Fall 2009

Cognitive Modeling. Lecture 9: Intro to Probabilistic Modeling: Rational Analysis. Sharon Goldwater

Artificial Intelligence

A Comparison of Collaborative Filtering Methods for Medication Reconciliation

BEHAVIOR ANALYSIS IN LEISURE CONTEXTS An Introductory Learning Manual

Cognitive Modeling. Mechanistic Modeling. Mechanistic Modeling. Mechanistic Modeling Rational Analysis

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

Finding Information Sources by Model Sharing in Open Multi-Agent Systems 1

On the Representation of Nonmonotonic Relations in the Theory of Evidence

Probability-Utility Model for Managing Evidence-based Central Database

Intelligent Agents. CmpE 540 Principles of Artificial Intelligence

Poultry Diseases Expert System using Dempster-Shafer Theory

Intelligent System Project

Agents and Environments

L6: Overview. with side orders of lecture revision, pokemon, and silly experiments. Dani Navarro

Bayesian Networks in Medicine: a Model-based Approach to Medical Decision Making

Coordination in Sensory Integration

LEARNING. Learning. Type of Learning Experiences Related Factors

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

Katsunari Shibata and Tomohiko Kawano

Overview. What is an agent?

Implementation of Perception Classification based on BDI Model using Bayesian Classifier

Position Paper: How Certain is Recommended Trust-Information?

We, at Innovatech Group, have designed xtrack, an easy-to-use workout application that tracks the fitness progress of the user, asking the user to

Artificial Intelligence For Homeopathic Remedy Selection

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

PSYC20007 READINGS AND NOTES

ISSN (PRINT): , (ONLINE): , VOLUME-5, ISSUE-5,

How Does Analysis of Competing Hypotheses (ACH) Improve Intelligence Analysis?

Models of Information Retrieval

Lecture 6. Perceptual and Motor Schemas

Agents and Environments

Foundations of Artificial Intelligence

Unifying Data-Directed and Goal-Directed Control: An Example and Experiments

Outline. What s inside this paper? My expectation. Software Defect Prediction. Traditional Method. What s inside this paper?

Lecture 9 Internal Validity

Predictive Disturbance Management in Manufacturing Control Systems

Chapter 1 Introduction to Educational Research

Introduction to Medical Computing

New Effects-Based Operations Models in War Games. Lee W. Wagenhals Larry K. Wentz

Module 1. Introduction. Version 1 CSE IIT, Kharagpur

CS343: Artificial Intelligence

Oscillatory Neural Network for Image Segmentation with Biased Competition for Attention

Cortex Gateway 2.0. Administrator Guide. September Document Version C

Contents. Foundations of Artificial Intelligence. Agents. Rational Agents

Plan Recognition through Goal Graph Analysis

Spatial Cognition for Mobile Robots: A Hierarchical Probabilistic Concept- Oriented Representation of Space

Causal Knowledge Modeling for Traditional Chinese Medicine using OWL 2

19th AWCBR (Australian Winter Conference on Brain Research), 2001, Queenstown, AU

Strategic Decision Making. Steven R. Van Hook, PhD

Learning Objectives. Learning Objectives 17/03/2016. Chapter 4 Perspectives on Consumer Behavior

Cancer Control Council Evaluation and Monitoring Framework

ACCTG 533, Section 1: Module 2: Causality and Measurement: Lecture 1: Performance Measurement and Causality

A Computational Theory of Belief Introspection

Transcription:

Knowledge Based Systems Human Expert A human expert is a specialist for a specific differentiated application field who creates solutions to customer problems in this respective field and supports them by applying these solutions. Requirements Formulate precise problem scenarios from customer inquiries Find correct and complete solution Understandable answers Explanation of solution Support the deployment of solution Rudolf Kruse, Alexander Dockhorn Bayesian Networks 8

Knowledge Based Systems (2) Intelligent System An intelligent system is a program that models the knowledge and inference methods of a human expert of a specific field of application. Requirements for construction: Knowledge Representation Knowledge Acquisition Knowledge Modification Rudolf Kruse, Alexander Dockhorn Bayesian Networks 9

Qualities of Knowledge In most cases our knowledge about the present world is incomplete/missing (knowledge is not comprehensive) e.g. I don t know the bus departure times for public holidays because I only take the bus on working days. vague/fuzzy/imprecise (knowledge is not exact) e. g. The bus departs roughly every full hour. uncertain (knowledge is unreliable) e.g. The bus departs probably at 12 o clock. We have to decide nonetheless! Reasoning under Vagueness Reasoning with Probabilities...and Cost/Benefit Rudolf Kruse, Alexander Dockhorn Bayesian Networks 10

Example Objective: Be at the university at 9:15 to attend a lecture. There are several plans to reach this goal: P 1 : Get up at 8:00, leave at 8:55, take the bus at 9:00... P 2 : Get up at 7:30, leave at 8:25, take the bus at 8:30...... All plans are correct, but they imply different costs and different probabilities to actually reach that goal. P 2 would be the plan of choice as the lecture is important and the success rate of P 1 is only about 80 95%. Question: Is a computer capable of solving these problems involving uncertainty? Rudolf Kruse, Alexander Dockhorn Bayesian Networks 11

Uncertainty and Facts Example: We would like to support a robot s localization by fixed landmarks. From the presence of a landmark we may infer the location. Problem: Sensors are imprecise! We cannot conclude definitely a location simply because there was a landmark detected by the sensors. The same holds true for undetected landmarks. Only probabilities are being increased or decreased. Rudolf Kruse, Alexander Dockhorn Bayesian Networks 12

Degrees of Belief We (or other agents) are only believing facts or rules to some extent. One possibility to express this partial belief is by using probability theory. The agent believes the sensor information to 0.9 means: In 9 out of 10 cases the agent trusts in the correctness of the sensor output. Probabilities gather the uncertainty that originates due to ignorance. Probabilities Vagueness/Fuzziness! The predicate large is fuzzy whereas This might be Peter s watch. is uncertain. Rudolf Kruse, Alexander Dockhorn Bayesian Networks 13

Rational Decisions under Uncertainty Choice of several actions or plans These may lead to different results with different probabilities. The actions cause different (possibly subjective) costs. The results yield different (possibly subjective) benefits. It would be rational to choose that action that yields the largest total benefit. Decision Theory = Utility Theory + Probability Theory Rudolf Kruse, Alexander Dockhorn Bayesian Networks 14

Decision-theoretic Agent input perception output action 1: K a set of probabilistic beliefs about the state of the world 2: calculate updated probabilities for current state based on available evidence including current percept and previous action 3: calculate outcome probabilities for actions, given action descriptions and probabilities of current states 4: select action A with highest expected utility given probabilities of outcomes and utility information 5: return A Decision Theory: An agent is rational if and only if it chooses the action yielding the largest utility averaged over all possible outcomes of all actions. Rudolf Kruse, Alexander Dockhorn Bayesian Networks 15

Rule-based Systems Rudolf Kruse, Alexander Dockhorn Bayesian Networks 16

Rule-based Systems Modi of usage: Query: Facts are retrieved from database or user is interrogated Explanation: System answers questions how a decision was concluded Example rule base: 1. COLLAT PYMT REP OK 2. APP COLLAT 3. RATING REP 4. INC PYMT 5. BAL REP OK Description: COLLAT satisfactory collateral PYMT payments undisputed REP good reputation APP high appraisal RATING good rating INC positive income BAL excellent balance OK loan will be approved Rudolf Kruse, Alexander Dockhorn Bayesian Networks 17

Decision Rule Tree Corresponding and/or-tree: OK OK OK rule 5 rule 1 BAL REP COLLAT PYMT REP REP COLLAT PYMT REP rule 3 rule 2 rule 4 rule 3 RATING APP INC RATING Rudolf Kruse, Alexander Dockhorn Bayesian Networks 18

Example Queries User: Why do you believe that the loan should be approved? System: Because the collateral for the loan is satisfactory, and the applicant is able to make the loan payments, and the applicant has a good financial reputation. User: Why did you ask me about whether or not the applicant s income exceeds his/her expenses? System: Because I was trying to establish whether or not the applicant is able to make the loan payments. User: Why do you believe that the applicant has a good financial reputation? System: Because the credit rating service said that the applicant has a good credit rating. Rudolf Kruse, Alexander Dockhorn Bayesian Networks 19

Rules A rule in general is a if-then-construct consisting of a condition and an action. If condition then conclusion These two parts may be interpreted differently according to the context: Inference rules: If premise then conclusion Hypotheses: If evidence then hypothesis Productions: If condition then action Rules are often referred to as productions or production rules. Rudolf Kruse, Alexander Dockhorn Bayesian Networks 20

Rules A rule in the ideal case represents a unit of knowledge. A set of rules together with an execution/evaluation strategy comprises a program to find solutions to specific problem classes. Prolog program: rule-based system Rule-based systems are historically the first types of AI systems and were for a long time considered prototypical expert systems. Nowadays, not every expert systems uses rules as its core inference mechanism. Rising importance in the field of business process rules. Rudolf Kruse, Alexander Dockhorn Bayesian Networks 21

Rule Evaluation Forward chaining Expansion of knowledge base: as soon as new facts are inserted the system also calculates the conclusions/consequences. Data-driven behavior Premises-oriented reasoning: the chaining is determined by the left parts of the rules. Backward chaining Answering queries Demand-driven behavior Conclusion-oriented reasoning: the chaining is determined by the right parts of the rules. Rudolf Kruse, Alexander Dockhorn Bayesian Networks 22

Components of a Rules-based System Data base Set of structured data objects Current state of modeled part of world Rule base Set of rules Application of a rule will alter the data base Rule interpreter Inference machine Controls the program flow of the system Rudolf Kruse, Alexander Dockhorn Bayesian Networks 23

Rule Interpretation Main scheme forward chaining Select and apply rules from the set of rules with valid antecedences. This will lead to a modified data base and the possibility to apply further rules. Run this cycle as long as possible. The process terminates, if there is no rule left with valid antecendence a solution criterion is satisfied a stop criterion is satisfied (e. g. maximum number of steps) Following tasks have to be solved: Identify those rules with a valid condition Instantiation or Matching Select rules to be executed need for conflict resolution (e.g. via partial or total orderings on the rules) Rudolf Kruse, Alexander Dockhorn Bayesian Networks 24

Certainty Factors Rudolf Kruse, Alexander Dockhorn Bayesian Networks 25

Mycin (1970) Objective: Development of a system that supports physicians in diagnosing bacterial infections and suggesting antibiotics. Features: Uncertain knowledge was represented and processed via uncertainty factors. Knowledge: 500 (uncertain) decision rules as static knowledge base. Case-specific knowledge: static: patients data dynamic: intermediate results (facts) Strengths: diagnosis-oriented interrogation hypotheses generation finding notification therapy recommendation explanation of inference path Rudolf Kruse, Alexander Dockhorn Bayesian Networks 26

Uncertainty Factors Uncertainty factor CF [ 1, 1] degree of belief. Rules: CF(A B) = 1 B is certainly true given A > 0 A supports B = 0 A has no influence on B < 0 A provides evidence against B = 1 B is certainly false given A Rudolf Kruse, Alexander Dockhorn Bayesian Networks 27

A Mycin Rule RULE035 PREMISE: ($AND (SAME CNTXT GRAM GRAMNEG) (SAME CNTXT MORPH ROD) (SAME CNTXT AIR ANAEROBIC)) ACTION: (CONCL.CNTXT IDENTITY BACTEROIDES TALLY.6) If then 1) the gram stain of the organism is gramneg, and 2) the morphology of the organism is rod, and 3) the aerobicity of the organism is anaerobic there is suggestive evidence (0.6) that the identity of the organism is bacteroides Rudolf Kruse, Alexander Dockhorn Bayesian Networks 28

Example A B[0.80] A[1.00] C D[0.50] C[0.50] B D E[0.90] F [0.80] E F G[0.25] H[0.90] H G[0.30] A 1.0 0.8 B B D 0.9 E 0.9 H 0.3 0.25 G C 0.5 0.5 D E F 0.8 F Rudolf Kruse, Alexander Dockhorn Bayesian Networks 29

Propagation Rules with Conjunction: Disjunction: Serial Combination: CF(A B) = min{cf(a), CF(B)} CF(A B) = max{cf(a), CF(B)} CF(B,{A}) = CF(A B) max{0, CF(A)} Parallel Combination: for n > 1 : CF(B,{A 1,...,A n }) = f(cf(b,{a 1,...,A n 1 }),CF(B,{A n })) f(x,y) = x+y xy if x,y > 0 x+y +xy if x,y < 0 x+y 1 min{ x, y } otherwise Rudolf Kruse, Alexander Dockhorn Bayesian Networks 30

Example (cont.) A 1.0 0.8 B 0.8 0.9 0.25 B D 0.9 E 0.225 H 0.3 0.25 G 0.416 C 0.5 0.5 D 0.25 0.8 E F 0.8 F f(0.3 0.9,0.25 0.8) = 0.27+0.2 0.27 0.2 = 0.416 Rudolf Kruse, Alexander Dockhorn Bayesian Networks 31

Was Mycin a failure? It worked in the Mycin case because the rules had tree-like structure. It can be shown that the rule combination scheme is inconsistent in general. Example: CF(A) = 0.9, CF(D) =? CF(D) = 0.9+0.9 0.9 0.9 = 0.99 D CF(D) = 0.9 D 1 1 0.9 B C 0.9 1 1 A 0.9 vs. 1 A 0.9 Certainty factor is increased just because (the same) evidence is transferred over different (parallel) paths! Rudolf Kruse, Alexander Dockhorn Bayesian Networks 32

Was Mycin a failure? Mycin was never used for its intended purpose, because physicians were distrustful and not willing to accept Mycin s recommendations. Mycin was too good. However, Mycin was a milestone for the development of expert systems. it gave rise to impulses for expert system development in general. Rudolf Kruse, Alexander Dockhorn Bayesian Networks 33