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?

- 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

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

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

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

Component: inference engine
- 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
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

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

How the parts work together
How an expert system finds possible solutions

Example scenario: car engine fault
- 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
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: 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: 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: medical diagnosis

- Doctor enters the symptoms
- System lists possible illnesses with percentages
- Suggests tests to confirm
- Doctor makes the final decision

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: 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: 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: 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: advantages and disadvantages
| Advantages | Disadvantages |
|---|---|
| Expert advice available to anyone, 24/7 | No common sense |
| Fast and consistent answers | Only as good as its knowledge and rules |
| Does not forget knowledge | Expensive to set up and update |
| Can hold the knowledge of many experts | Errors could lead to wrong decisions |
| Gives probabilities and explanations | Users 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!
When you are ready, click the Next button below to move on to What is the Systems Life Cycle?.