Expert Systems

What an expert system is, its five components, how it finds possible solutions, and its uses.

Key words (8)

expert system, knowledge base, rules base, inference engine, explanation system, user interface, probability, scenario.

Lesson Objectives

What is an expert system?

Expert Systems: What is an expert system?
  • A computer program that mimics a human expert
  • Built from the knowledge of many experts
  • Asks the user questions
  • Gives possible answers with a % probability
  • Explains how it reached the answer
  • Purpose: give expert advice to non-experts
Expert Systems: What is an expert system?

Components of an expert system

Expert Systems: Components of an expert system
  • Knowledge base: facts from human experts
  • Rules base: IF ... THEN rules
  • Inference engine: searches the knowledge base using the rules
  • Explanation system: explains how and why a solution was reached
  • User interface: where the user answers questions and sees results
Expert Systems: Components of an expert system

Component: knowledge base

Expert Systems: Component: knowledge base
  • A database of facts
  • Knowledge collected from human experts
    • e.g. illnesses and their symptoms
  • Searched by the inference engine
  • Can be updated with new knowledge
Expert Systems: Component: knowledge base

Component: rules base

Expert Systems: Component: rules base
  • A set of IF ... THEN rules
  • Links the user's answers to facts in the knowledge base
  • Rules can use AND / OR
  • Used by the inference engine to reach a conclusion
Expert Systems: Component: rules base

Component: inference engine

Diagram of the inference engine. The inference engine, the brain of the expert system, follows the rules in the rules base and searches the knowledge base of expert information. Two example rules use IF, THEN, AND and OR: if the engine will not turn and the lights do not work then the fault is a flat battery; if the fuel gauge is empty or the fuel light is on then there is no fuel.
  • The "brain" of the expert system
  • Takes the user's answers from the user interface
  • Uses the rules base to search the knowledge base
  • Decides which question to ask next
  • Works out the possible solutions
Diagram of the inference engine. The inference engine, the brain of the expert system, follows the rules in the rules base and searches the knowledge base of expert information. Two example rules use IF, THEN, AND and OR: if the engine will not turn and the lights do not work then the fault is a flat battery; if the fuel gauge is empty or the fuel light is on then there is no fuel.

Component: explanation system

Expert Systems: Component: explanation system
  • Explains how and why a solution was reached
  • Shows which answers and rules were used
  • Shows the % probability of each solution
  • Helps the user trust and check the answer
Expert Systems: Component: explanation system

Component: user interface

Expert Systems: Component: user interface
  • The screen the user works with
  • Asks the user questions
  • User answers, e.g. Yes / No, or picks from a list
  • Shows the possible solutions and explanations
  • Must be easy for a non-expert to use
Expert Systems: Component: user interface

How the parts work together

Diagram of the whole expert system process. The user answers questions through the user interface. The user interface passes them to the inference engine, the brain of the expert system, which applies the IF THEN rules in the rules base, using AND and OR, and searches the knowledge base of expert information. The user interface shows possible solutions with a percentage chance, and the explanation system explains how and why a solution was reached.

How an expert system finds possible solutions

Expert Systems: How an expert system finds possible solutions

Example scenario: car engine fault

Car Fault Finder expert system screen. The user answers No to Does the engine turn over? and No to Do the lights work? The possible solutions are a flat battery (85%) and a loose battery cable (10%). Below, a box shows that different answers give a different scenario: if the lights work the fault is the starter motor, and if the engine turns over the problem is fuel.
  • User answers the questions: "No", "No"
  • Rule: IF engine will not turn AND lights do not work THEN battery fault
  • Solution given: flat battery (85%)
  • A different scenario:
    • Lights work: starter motor fault
    • Engine turns over: fuel problem
Car Fault Finder expert system screen. The user answers No to Does the engine turn over? and No to Do the lights work? The possible solutions are a flat battery (85%) and a loose battery cable (10%). Below, a box shows that different answers give a different scenario: if the lights work the fault is the starter motor, and if the engine turns over the problem is fuel.

Uses of expert systems

Expert Systems: Uses of expert systems
  • Mineral prospecting
  • Car engine fault diagnosis
  • Medical diagnosis
  • Chess games
  • Financial planning
  • Route scheduling for delivery vehicles
  • Plant and animal identification
Expert Systems: Uses of expert systems

Expert systems: mineral prospecting

Expert Systems: Expert systems: mineral prospecting
  • Geologist enters rock types and test results
  • System compares with known deposits
  • Gives % chance of finding oil, gas or minerals
  • Saves money on drilling
Expert Systems: Expert systems: mineral prospecting

Expert systems: car engine fault diagnosis

Expert Systems: Expert systems: car engine fault diagnosis
  • Mechanic answers questions or plugs into the car
  • System finds the likely fault
  • Suggests how to fix it
  • Faster repairs
Expert Systems: Expert systems: car engine fault diagnosis

Expert systems: medical diagnosis

Expert Systems: Expert systems: medical diagnosis
  • Doctor enters the symptoms
  • System lists possible illnesses with percentages
  • Suggests tests to confirm
  • Doctor makes the final decision
Expert Systems: Expert systems: medical diagnosis

Expert systems: chess games

Expert Systems: Expert systems: chess games
  • Knows millions of positions and moves
  • Works out the best next move
  • Can beat world champions
  • Used to practise and learn
Expert Systems: Expert systems: chess games

Expert systems: financial planning

Expert Systems: Expert systems: financial planning
  • User enters income, savings and goals
  • System suggests savings and investments
  • Shows risk of each option
  • Used by banks and advisers
Expert Systems: Expert systems: financial planning

Expert systems: route scheduling for delivery vehicles

Expert Systems: Expert systems: route scheduling for delivery vehicles
  • Inputs: addresses, traffic, delivery times
  • Works out the best order for drops
  • Shortest route for each van
  • Saves fuel and time
Expert Systems: Expert systems: route scheduling for delivery vehicles

Expert systems: plant and animal identification

Expert Systems: Expert systems: plant and animal identification
  • User answers questions about features
    • e.g. leaf shape, colour, number of legs
  • System names the species
  • Used by students and scientists
Expert Systems: Expert systems: plant and animal identification

Expert systems: advantages and disadvantages

AdvantagesDisadvantages
Expert advice available to anyone, 24/7No common sense
Fast and consistent answersOnly as good as its knowledge and rules
Does not forget knowledgeExpensive to set up and update
Can hold the knowledge of many expertsErrors could lead to wrong decisions
Gives probabilities and explanationsUsers may trust it too much

End of the topic

You've completed the topic: lesson 3 of 3 published in this unit, and already 100% of the way through. Keep it up!

100%

When you are ready, click the Next button below to move on to What is the Systems Life Cycle?.