Professional Documents
Culture Documents
3109 1638172575242 CC6052 Lecture wk07 ES
3109 1638172575242 CC6052 Lecture wk07 ES
Expert Systems
This week
Artificial Intelligence (AI)
Expert Systems (ES)
Expertise, experts and transferring expertise
Some knowledge elicitation techniques
Knowledge representation
Use of ES, examples
Structure of ES
Benefits
Limitations
Contrast with DSS
Artificial Intelligence (AI)
Expert System
a decision-making computer package intended to
attain or surpass the levels of performance of a
human expert in some highly specialised field
Expert Systems (ES) - summary
Expert System
expertise of a human expert is transferred to ES
knowledge is stored and can be accessed as required
makes inferences and arrives at a specific conclusion
differs from DSS in that it identifies the best solution to a
problem rather providing a range of possible solutions
advises the user
consists of
knowledge base
inference engine
user interface
Expertise
“Expertise
is the extensive, task-specific
knowledge acquired from
◦ training
◦ reading
◦ experience”
Expertise
Includes
Theories
Rules and procedures
Rules (heuristics) about what to do in a given situation
Global strategies for problem-solving
Meta-knowledge (knowledge about knowledge)
Facts
Turban (2001)
Recognise two main types
Facts
Rules (procedures)
Categorisation: novice to expert
Dreyfus’s stages
1. Novice
o skill acquisition
o novice receives instruction
o rules followed blindly
o lacks coherent sense of task
o judges performance on use of rules
Categorisation: novice to expert
Dreyfus’s
stages
2. Advanced beginner
◦ performance becomes barely acceptable after
experience of real situations
◦ recognises situations on perceived similarity to
previous examples
Categorisation: novice to expert
Dreyfus’s
stages
3. Competence
◦ increased experience
◦ recognises similarities
◦ views decision-making in a hierarchical manner
◦ improves performance
◦ choice of plan is not a simple matter
Categorisation: novice to expert
Dreyfus’sstages
4. Proficiency
◦ view altered by outcome of recent events
◦ certain features stand out - others ignored
◦ plan modified as necessary
◦ understanding the task becomes intuitive
triggered naturally without explicit thought
Categorisation: novice to expert
Dreyfus’sstages
5. Expertise
◦ proceeds without detached deliberation
◦ acts without conscious contemplation of options
◦ performance is fluid
◦ not interrupted by detached deliberation or analysis
Categorisation: novice to expert
◦ Academic
◦ Craftsman
◦ Samurai
Categories of expertise
Practitioner
◦ expertise based on organised principles and methods
◦ expertise gained from
theoretical knowledge
developed from experience and practice
◦ work environment may not offer fully coherent basis for
development of expertise
such expertise is therefore rare
Categories of expertise
Academic
◦ individual expected to
guide
direct
teach
others in field of own expertise
Categories of expertise
Craftsman
◦ expertise gained in routine activities
◦ individual solves similar problems
◦ rote learning of methods and procedures
Categories of expertise
Samurai
◦ characterised by performance of expertise
◦ performance is the key aspect
◦ final outcome is consequence of performance
"There is definitely a moment ... when there is loss of self. ... you
are 'in the zone', when you are not aware of what you're
doing...you are simply in the act of doing it." Michael Boyd
"...it's similar with music in a way – although you have to learn the
notes first, you then have to forget the notes to play the music."
Oliver Sacks
extracts from "More than merely the sum of their parts", public discussion at Columbia
University, reported in The Sunday Times Culture Supplement, page 10-11, 23 November
2008
Knowledge acquisition
Reformulations
Redesigns
Refinements
Buchanan, Barstow, Bechtal, Bennett, Clancey, Kulikowski, Mitchell and Waterman, Constructing an Expert
System: in Building Expert Systems (1983), ed. Hayes-Roth F, Waterman DA and Lenat DB.
Types of Knowledge to be Represented in a Knowledge Base
Heuristics &
decision rules Disjunctive
facts
problem solving
procedures
General
Hypotheses knowledge
Typical
(theories)
situations
Development Consultation
(including knowledge acquisition)
Objective to transfer expertise from expert to ES to non-expert (user).
Involves:
◦ Knowledge acquisition
◦ Knowledge representation
◦ Knowledge inferencing
◦ Knowledge transfer to user Turban (2001)
Repertory Grid Analysis
◦ Based on Kelly’s Personal Construct Theory
every person has a personal view of the world, forms
theories, tests hypotheses, analyses results
◦ Structured interviews
◦ Triads
Structured interviews
Expert is interviewed
◦ identifies important items in the domain
◦ identifies associated attributes
◦ creates a scale of characteristics (opposites)
◦ places items on scale
◦ solutions are placed on grid (table)
◦ ratings from scale may be reviewed
Repertory Grids (RGA)
Generated following structured interview
◦ shows relative position of elements
◦ based on scoring in structured interview
Choc mints 5 5 1
Muesli bar 5 4 3
Carrot 4 2 4
Triads
◦ Consider:
Margaret Thatcher
Ronald Reagan
Ed Miliband
Triads example
left-wing deceased female
Ed Margaret
Ronald
Miliband Thatcher
Reagan
Margaret Ed Ronald Ed
Margaret Ronald
Thatcher Miliband Reagan Miliband
Thatcher Reagan
Items linked
◦ “is-a” relationships
◦ uses inheritance
Is Works-in
45 years old Jim sales
Association list has attribute.value pairs:
((1 . “one”)(2 . “two”)(3 . “three”))
Frame: SALARY
rate of pay: unit (£ per annum)
tax paid to date: unit (month, year)
calculate ((TAX-PAID) (tax))
NI deductions: unit (calculate (NI-CON))
pension contributions: unit (calculate (PENSION))
Data that is known to be true
manages(jim, pat).
manages(jim, mary).
manages(pat, liz).
manages(pat, alan).
manages(mary, ben).
manages(mary, dora).
Production rules
◦ format:
pattern action
typically in the form of if…then…
rules in prolog:
predicate is true if components satisfied
sibling(X,Y) :- parents(X, M, F), parents(Y, M, F).
MYCIN
◦ medical diagnosis, identifying treatment for blood
disorders
◦ symptoms entered
◦ ES compares with known symptoms
presents diagnosis
prompts for further information
◦ each rule has a certainty factor
◦ backward chaining mechanism
Chaffey (2003)
Use of ES: examples (2)
Prospector
Evaluates mineral potential of geological area
Assessing risk of investments
uses probabilistic reasoning (based on Bayes’ theorem)
can explain why it needs answers to specific questions
will choose new hypotheses as necessary
Use of ES: examples (3)
XCON
◦ configures VAX computer systems for DEC
◦ rule-based expert system
◦ probabilistic information not necessary
◦ exact statement of requirements in each case
Use of ES: examples (4)
CLUES
Countrywide’s Loan Underwriting Expert System
developed to ensure rapid, consistent, high-quality loan decisions
CLUES has 400 rules
refined until it agreed with 95% of ‘human expert’ decisions
human underwriter still examines all rejected loans
productivity increased from 6 or 7 applications/day to 16/day
Main components
◦ Knowledge base
◦ Inference engine
◦ User interface
Structure of ES (2)
Other components
Knowledge acquisition sub-system
Blackboard (workspace)
Explanation facility (justifier)
Structure of ES (3)
‘Human’ components
Domain expert
Knowledge engineer
User
Knowledge base
Knowledge base
Knowledge Facts User
acquisition and
Rules Inference
engine
Inference engine
Inference engine
Interpreter
Scheduler
Consistency enforcer
Knowledge Blackboard
base (workspace)
User interface
in simple ES
shows the rules used to derive solution
Domain expert
in short supply
needs some knowledge of domain
needs greater knowledge of development environment
‘Human’ components (3)
Different categories of users
non-expert
uses ES as a consultant or advisor
student
uses ES as an instructor
ES builder
uses ES to improve the knowledge base
uses ES as a partner
expert
uses the ES as a colleague or assistant
e.g. for a second opinion
Benefits of ES (1)
Monetary savings
◦ fewer human experts needed