Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D.,...

46
Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : [email protected] web-site : http://drsridhar.tripod.com

Transcript of Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D.,...

Page 1: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.

Knowledge Acquisition, Representation, and Reasoning

ByDr.S.Sridhar,Ph.D.,

RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc.email : [email protected]

web-site : http://drsridhar.tripod.com

Page 2: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.

Learning Objectives

• Understand the nature of knowledge.• Learn the knowledge engineering processes.• Evaluate different approaches for knowledge

acquisition.• Examine the pros and cons of different

approaches.• Illustrate methods for knowledge verification

and validation.• Examine inference strategies.• Understand certainty and uncertainty

processing.

Page 3: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.

Development of a Real-Time Knowledge-Based System at Eli Lilly Vignette• Problems with fermentation process

• Quality parameters difficult to control• Many different employees doing same task• High turnover

• Expert system used to capture knowledge• Expertise available 24 hours a day

• Knowledge engineers developed system by:• Knowledge elicitation

• Interviewing experts and creating knowledge bases• Knowledge fusion

• Fusing individual knowledge bases• Coding knowledge base• Testing and evaluation of system

Page 4: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.

Knowledge Engineering

• Process of acquiring knowledge from experts and building knowledge base• Narrow perspective

• Knowledge acquisition, representation, validation, inference, maintenance

• Broad perspective• Process of developing and maintaining

intelligent system

Page 5: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.

Knowledge Engineering Process• Acquisition of knowledge

• General knowledge or metaknowledge• From experts, books, documents, sensors, files

• Knowledge representation• Organized knowledge

• Knowledge validation and verification• Inferences

• Software designed to pass statistical sample data to generalizations

• Explanation and justification capabilities

Page 6: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.
Page 7: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.

Knowledge

• Sources • Documented

• Written, viewed, sensory, behavior

• Undocumented• Memory

• Acquired from• Human senses• Machines

Page 8: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.

Knowledge

• Levels • Shallow

• Surface level• Input-output

• Deep • Problem solving• Difficult to collect, validate• Interactions betwixt system components

Page 9: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.

Knowledge

• Categories• Declarative

• Descriptive representation

• Procedural • How things work under different

circumstances• How to use declarative knowledge

− Problem solving

• Metaknowledge• Knowledge about knowledge

Page 10: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.

Knowledge Engineers

• Professionals who elicit knowledge from experts• Empathetic, patient• Broad range of understanding, capabilities

• Integrate knowledge from various sources• Creates and edits code• Operates tools

• Build knowledge base• Validates information• Trains users

Page 11: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.
Page 12: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.

Elicitation Methods

• Manual• Based on interview• Track reasoning process• Observation

• Semiautomatic• Build base with minimal help from knowledge

engineer• Allows execution of routine tasks with

minimal expert input• Automatic

• Minimal input from both expert and knowledge engineer

Page 13: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.

Manual Methods

• Interviews• Structured

• Goal-oriented• Walk through

• Unstructured• Complex domains• Data unrelated and difficult to integrate

• Semistructured

Page 14: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.

Manual Methods

• Process tracking• Track reasoning processes

• Protocol analysis• Document expert’s decision-making • Think aloud process

• Observation• Motor movements• Eye movements

Page 15: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.

Manual Methods

• Case analysis• Critical incident• User discussions• Expert commentary• Graphs and conceptual models• Brainstorming• Prototyping• Multidimensional scaling for distance matrix• Clustering of elements• Iterative performance review

Page 16: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.

Semiautomatic Methods

• Repertory grid analysis• Personal construct theory

• Organized, perceptual model of expert’s knowledge• Expert identifies domain objects and their attributes• Expert determines characteristics and opposites for

each attribute• Expert distinguishes between objects, creating a grid

• Expert transfer system• Computer program that elicits information from

experts• Rapid prototyping• Used to determine sufficiency of available

knowledge

Page 17: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.
Page 18: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.

Semiautomatic Methods, continued

• Computer based tools features:• Ability to add knowledge to base• Ability to assess, refine knowledge• Visual modeling for construction of

domain• Creation of decision trees and rules• Ability to analyze information flows• Integration tools

Page 19: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.

Automatic Methods

• Data mining by computers• Inductive learning from existing

recognized cases• Neural computing mimicking

human brain• Genetic algorithms using natural

selection

Page 20: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.

Multiple Experts

• Scenarios • Experts contribute individually• Primary expert’s information reviewed by

secondary experts• Small group decision• Panels for verification and validation

• Approaches• Consensus methods• Analytic approaches• Automation of process through software usage• Decomposition

Page 21: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.

Automated Knowledge Acquisition

• Induction• Activities

• Training set with known outcomes• Creates rules for examples• Assesses new cases

• Advantages• Limited application• Builder can be expert

− Saves time, money

Page 22: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.

Automated Knowledge Acquisition

• Difficulties• Rules may be difficult to understand• Experts needed to select attributes• Algorithm-based search process produces

fewer questions• Rule-based classification problems• Allows few attributes• Many examples needed• Examples must be cleansed• Limited to certainties• Examples may be insufficient

Page 23: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.

Automated Knowledge Acquisition

• Interactive induction• Incrementally induced knowledge

• General models − Object Network

• Based on interaction with expert• interviews

• Computer supported• Induction tables• IF-THEN-ELSE rules

Page 24: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.

Evaluation, Validation, Verification• Dynamic activities

• Evaluation• Assess system’s overall value

• Validation• Compares system’s performance to expert’s• Concordance and differences

• Verification• Building and implementing system correctly• Can be automated

Page 25: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.
Page 26: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.

Production Rules

• IF-THEN• Independent part, combined with

other pieces, to produce better result• Model of human behavior• Examples

• IF condition, THEN conclusion• Conclusion, IF condition• If condition, THEN conclusion1 (OR) ELSE

conclusion2

Page 27: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.

Artificial Intelligence Rules

• Types• Knowledge rules

• Declares facts and relationships• Stored in knowledge base

• Inference• Given facts, advises how to proceed• Part of inference engines• Metarules

Page 28: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.

Artificial Intelligence Rules

• Advantages• Easy to understand, modify, maintain• Explanations are easy to get.• Rules are independent.• Modification and maintenance are relatively easy.• Uncertainty is easily combined with rules.

• Limitations• Huge numbers may be required• Designers may force knowledge into rule-based

entities• Systems may have search limitations; difficulties in

evaluation

Page 29: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.

Semantic Networks

• Graphical depictions

• Nodes and links • Hierarchical

relationships between concepts

• Reflects inheritance

Page 30: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.

Frames

• All knowledge about object• Hierarchical structure allows for inheritance• Allows for diagnosis of knowledge

independence• Object-oriented programming

• Knowledge organized by characteristics and attributes

• Slots• Subslots/facets

• Parents are general attributes• Instantiated to children

• Often combined with production rules

Page 31: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.

Knowledge Relationship Representations• Decision tables

• Spreadsheet format• All possible attributes compared to conclusions

• Decision trees• Nodes and links• Knowledge diagramming

• Computational logic• Propositional

• True/false statement• Predicate logic

• Variable functions applied to components of statements

Page 32: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.
Page 33: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.

Reasoning Programs

• Inference Engine• Algorithms• Directs search of knowledge base

• Forward chaining− Data driven− Start with information, draw conclusions

• Backward chaining− Goal driven− Start with expectations, seek supporting evidence

• Inference/goal tree• Schematic view of inference process

− AND/OR/NOT nodes− Answers why and how

• Rule interpreter

Page 34: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.

Explanation Facility

• Justifier• Makes system more understandable• Exposes shortcomings• Explains situations that the user did not anticipate• Satisfies user’s psychological and social needs• Clarifies underlying assumptions• Conducts sensitivity analysis

• Types• Why• How• Journalism based

• Who, what, where, when, why, how• Why not

Page 35: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.

Generating Explanations

• Static explanation• Preinsertion of text

• Dynamic explanation• Reconstruction by rule evaluation

• Tracing records or line of reasoning• Justification based on empirical

associations• Strategic use of metaknowledge

Page 36: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.

Uncertainty

• Widespread• Important component• Representation

• Numeric scale• 1 to 100

• Graphical presentation• Bars, pie charts

• Symbolic scales• Very likely to very unlikely

Page 37: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.

Uncertainty

• Probability Ratio• Degree of confidence in conclusion• Chance of occurrence of event

• Bayes Theory• Subjective probability for propositions

• Imprecise• Combines values

• Dempster-Shafer• Belief functions• Creates boundaries for assignments of

probabilities• Assumes statistical independence

Page 38: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.

Certainty

• Certainty factors• Belief in event based on evidence• Belief and disbelief independent and

not combinable• Certainty factors may be combined

into one rule• Rules may be combined

Page 39: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.

Expert System Development

• Phases• Project initialization• Systems analysis and design• Prototyping• System development• Implementation• Postimplementation

Page 40: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.

Project Initialization

• Identify problems• Determine functional requirements• Evaluate solutions• Verify and justify requirements• Conduct feasibility study and cost-

benefit analysis• Determine management issues • Select team• Project approval

Page 41: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.

Systems Analysis and Design• Create conceptual system design• Determine development strategy

• In house, outsource, mixed• Determine knowledge sources• Obtain cooperation of experts• Select development environment

• Expert system shells• Programming languages• Hybrids with tools

• General or domain specific shells• Domain specific tools

Page 42: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.

Prototyping

• Rapid production• Demonstration prototype

• Small system or part of system• Iterative• Each iteration tested by users• Additional rules applied to later

iterations

Page 43: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.

System Development

• Development strategies formalized• Knowledge base developed• Interfaces created• System evaluated and improved

Page 44: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.

Implementation

• Adoption strategies formulated• System installed• All parts of system must be fully

documented and security mechanisms employed

• Field testing if it stands alone; otherwise, must be integrated

• User approval

Page 45: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.

Postimplementation

• Operation of system• Maintenance plans

• Review, revision of rules• Data integrity checks• Linking to databases

• Upgrading and expansion• Periodic evaluation and testing

Page 46: Knowledge Acquisition, Representation, and Reasoning By Dr.S.Sridhar,Ph.D., RACI(Paris),RZFM(Germany),RMR(USA),RIEEEProc. email : drssridhar@yahoo.com.

Internet

• Facilitates knowledge acquisition and distribution

• Problems with use of informal knowledge

• Open knowledge source