Describe the components and structure of expert systems, and explain forward‑ and backward‑chaining reasoning.
An expert system is a computer programme that mimics the decision‑making ability of a human expert in a particular domain. It captures specialised knowledge and applies reasoning techniques to solve problems that would normally require expert judgement.
The architecture can be visualised as a layered model (top‑down):
Different methods are used to encode expert knowledge:
IF temperature > 38°C THEN diagnosis = “fever”.The inference engine drives the reasoning process. Two fundamental styles are required by the syllabus:
| Reasoning style | Syllabus wording | When it is preferred |
|---|---|---|
| Forward chaining | Data‑driven (bottom‑up) | When many facts are known and the goal is to discover all possible conclusions. |
| Backward chaining | Goal‑driven (top‑down) | When a specific hypothesis or goal is given and the system must verify it. |
A hybrid approach (combining forward and backward chaining) is often used in real‑world expert systems to improve efficiency.
| Component | Purpose (syllabus wording) | Typical techniques / examples |
|---|---|---|
| Knowledge‑Base | Stores domain expertise | Rules, frames, semantic networks, fuzzy sets |
| Inference Engine | Derives conclusions from the knowledge‑base | Forward chaining, backward chaining, hybrid reasoning |
| User Interface | Facilitates user input and output | Forms, dialogue boxes, natural‑language queries |
| Explanation Facility | Provides an explanation of the reasoning process | Rule justification, step‑by‑step logs |
| Knowledge‑Base Editor | Updates and expands the knowledge‑base | Interview tools, rule editors, machine‑learning‑assisted capture |
Consider a system that assists doctors in diagnosing respiratory illnesses. A sample rule is:
$$ \text{IF } \text{cough}= \text{dry} \;\land\; \text{fever}>38^\circ\text{C} \;\land\; \text{X‑ray}= \text{infiltrate} \;\text{THEN diagnosis}= \text{“pneumonia”} $$
The inference engine uses forward chaining to match patient data with the rule. The explanation facility then displays the diagnosis together with the justification trace for the clinician.
Prompt: Design an expert system to suggest the best fertilizer for a given soil type. Identify the five components (knowledge‑base, inference engine, user interface, explanation facility, knowledge‑base editor), propose at least three IF‑THEN rules, and decide whether forward or backward chaining would be more appropriate.
This activity reinforces the syllabus requirements for component identification, knowledge representation, and reasoning style.
Create an account or Login to take a Quiz
Log in to suggest improvements to this note.
Your generous donation helps us continue providing free Cambridge IGCSE & A-Level resources, past papers, syllabus notes, revision questions, and high-quality online tutoring to students across Kenya.