Artificial Intelligence
Automated and Emerging Technologies
An expert system is an AI program that imitates the decision-making of a human expert in a specific field, by combining a body of expert knowledge with logical rules.
Examples of expert systems:
- Medical diagnosis systems that suggest possible conditions from a patient's symptoms.
- Equipment troubleshooting systems that walk a technician through finding faults.
- Technical support chatbots that diagnose customer problems.
- Tax advice software that asks questions and recommends actions.
- Geological prospecting systems that suggest where to drill for oil or minerals.
The four components of an expert system
A standard expert system has four parts working together. Exam questions often ask you to name and describe each.
| Component | What it holds / does |
|---|---|
| Knowledge base | A store of facts in the chosen field, gathered from real human experts. For a medical system: lists of diseases, symptoms and test results |
| Rule base | A set of rules (typically IF-THEN statements) that link facts together: "IF cough AND fever AND chest-pain THEN suspect pneumonia" |
| Inference engine | The program that applies the rules to the facts and derives conclusions. It is the "reasoning" component |
| User interface | The way the user interacts with the system: typically a series of questions and a final answer or recommendation |
A typical session: the user enters information through the user interface; the queries the rule base and the to work out what the user is dealing with; the system asks follow-up questions or presents conclusions back through the interface.
Common exam question
Naming the components of an expert system
Question: Identify three of the four components of an expert system, or the others when one or two are named for you, or circle the components in a list of terms (2–3 marks).
Asked in 4 of the 17 papers, one mark per component. The four are the knowledge base, the rule base, the inference engine and the interface; when the stem already names one or two, the marks are for the others. Term lists, here and in the gap-fill descriptions of how the system operates, mix real components with plausible distractors: mechanical engine, question base, output device and machine learning in one paper, operating system, firewall, server, printer, actuator and encryption in another. Machine learning is an ability an expert system may have, not one of its components. The circling version listed only three of the four, so circle exactly the number asked for.
Common exam question
Describing how an expert system operates
Question: Explain how an expert system operates, or describe the role of one component such as the inference engine or the rule base (2 marks for one component, 5–7 for all four).
Asked in 5 of the 17 papers, sometimes as a gap-fill. Take the data through the components, one point each: input at the interface; facts in the knowledge base; rules in the rule base that link those facts, for the inference engine to use; the inference engine applies the rules to the facts to reach a diagnosis or decision and picks the next question from the data entered; output at the interface. For six marks, naming each component earns a mark; the rest come from what they do.
For the role of one component, two of these points about it earn the marks. In a gap-fill a term can be needed twice, and where the description says one base is applied to the other, either order is credited.
Advantages of expert systems
| Advantage | Why it matters |
|---|---|
| Consistent results | Every query is treated the same way, with no fatigue or mood changes |
| Faster responses | Far quicker than waiting for a human expert |
| Stores huge knowledge bases | Can hold more facts than any single human could remember |
| Available 24/7 | No waiting lists, no shift hours |
| Unbiased (when designed well) | Does not have personal preferences, although it may carry biases from its source data |
| Used as a training tool | Junior staff can learn from the system's explanations and recommendations |
Disadvantages of expert systems
| Disadvantage | Why it matters |
|---|---|
| Only as good as the knowledge entered | If the knowledge base is incomplete or out of date, the recommendations will be wrong |
| Lacks human empathy and judgement | A medical expert system cannot reassure a frightened patient or notice non-verbal cues |
| Requires training to use correctly | Users must enter information accurately; mistakes lead to misleading answers |
| Building it is expensive | Capturing expert knowledge in formal rules takes time and a real expert's involvement |
| Cannot easily handle unusual cases | Outside the situations the rules cover, the system may give a confidently wrong answer |
| Maintenance burden | New medical research, new equipment fault types or new tax rules all require the knowledge base and rule base to be updated |
Quick check
5 short questions on this note. See what has stuck, and where to look if something hasn't.