Skip to content
Cambridge AS & A Level9626

Expert systems

Information Technology 9626 Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Expert systems notes as a printable PDF.

Read online free. Download a watermarked copy with a free account.

Read the notes

The full Expert systems notes as text: skim, search, and jump between subtopics.

~13 min read

1. What an expert system does

An expert system takes knowledge gathered from experts and applies it to a problem. The user enters details and answers questions. The system outputs possible solutions, not one certain answer.

The syllabus scenarios are: mineral prospecting, investment analysis, financial planning, insurance planning, car engine fault diagnosis, medical diagnosis, route scheduling for delivery vehicles, and plant and animal identification.

For route scheduling, the locations and details of the deliveries are input. The system outputs suggested routes and estimated delivery times.

Examiner insight

“Many candidates confused the expert system with a real time tracking system.” “A route scheduling system takes intended locations and using variables, some of which will be real-world real time variables, plots a sequence that the deliveries will then follow, in order to achieve a route that is effective both in terms of distance and time.”

Worked example 18 marks

A company employs drivers to deliver parcels in a city. The company uses an expert system to plan the routes each driver will follow each day. Describe how an expert system can be used to provide route scheduling in this scenario.

  1. 1

    A user interface is used to input the details [1]

  2. 2

    The expert system applies prior knowledge to the problem, using rules (IF…THEN) [1]

  3. 3

    These rules are stored in the knowledge base [1]

  4. 4

    The locations/addresses for delivery are input [1]

  5. 5

    Details of each delivery are input, such as weight and dimensions [1]

  6. 6

    The responses are compared with the facts, by the inference engine, in the knowledge base [1]

  7. 7

    Suggested routes are output [1]

  8. 8

    Estimated times of delivery are output, to the user interface or a printed list [1]

2. Components of an expert system

The user interface displays questions, takes the user's answers and outputs suggestions or an explanation of the findings.

The knowledge base is a database of facts and a rules base. The inference engine is the reasoning system. It searches the rules base and compares the inputs with the facts, using IF…THEN rules. It produces suggestions.

The explanation system gives an explanation for decisions, so the user can learn. The knowledge base editor lets the engineer update the knowledge base and edit the rules base.

Examiner insight

“This question was not well answered, with candidates seeming to know the components of an expert system but unable to describe them in the detail required at A level.” “For example, it is not sufficient to know that an inference engine exists; candidates must be able to understand what it does.”

Worked example 14 marks

A mechanic uses an expert system. This system has a user interface and an explanation system. Identify and describe two other components of an expert system.

  1. 1

    Component 1: knowledge base [1]

  2. 2

    It stores all the facts/information, and the rules base [1]

  3. 3

    Component 2: inference engine [1]

  4. 4

    It applies logic, using IF…THEN reasoning, to identify possible solutions [1]

3. Creating the knowledge base

A knowledge base is built from what experts know. Data is collected from experts and other relevant sources. Someone decides which data is relevant.

The data is entered using a knowledge base editor. The rules base is designed and created, and linked to the facts.

The question may ask how a system is created. Describe the building process, not how the finished system is used.

Examiner insight

“Many candidates missed that this question was about the process of creating an expert system and focussed on the use of an expert system, or gave a generic description of an expert system, or, in some cases, how an expert system would produce the delivery list.”

Worked example 14 marks

An expert system contains an inference engine and a knowledge base. Describe how a knowledge base is created.

  1. 1

    Data is collected from experts/relevant sources [1]

  2. 2

    The relevance of the data is decided [1]

  3. 3

    The data is entered into the knowledge base, using a knowledge base editor [1]

  4. 4

    The rules base is designed and created [1]

4. Forward chaining: data driven

A rule has the form IF … THEN. The inference engine searches the rules for one whose IF part is known to be true. The THEN part adds new information.

In forward chaining, the engine starts with the data and works towards a goal. It repeats until a goal is reached or no further solution can be found. Forward chaining is called data driven.

The syllabus uses data driven and goal driven reasoning in diagnoses, gaming and artificial intelligence (for use in manipulating social media).

Examiner insight

“Typically, candidates stated that a data driven system used a lot of data or confused a data driven system with data mining.” “These candidates showed a good understanding of how to link a data driven system to a real world example and demonstrate technical understanding at the same time.”

Worked example 15 marks

An expert system may be data driven. Describe, with the use of an example, what is meant by the term data driven.

  1. 1

    Example: a car engine system is given the symptoms the mechanic types in [1]

  2. 2

    It uses forward chaining [1]

  3. 3

    The inference engine starts with the data and progresses towards a goal [1]

  4. 4

    It searches the rules base until one matches the IF statement [1]

  5. 5

    The THEN part brings out new information, and this repeats until a goal is reached [1]

5. Backward chaining: goal driven

In backward chaining, the engine starts with a list of goals (hypotheses). It searches the rules for one whose THEN part matches a goal.

If the IF part of that rule is not known to be true, it is added to the list of goals. The engine works back until the facts settle it.

Backward chaining is called goal driven. Forward chaining is data driven.

Examiner insight

“Some candidates appreciated that backward chaining was a goal-based process, but, generally, very few were able to explain the concept with any great accuracy.” “Several candidates mentioned forward and backward chaining but few gave an adequate description of either.”

Worked example 16 marks

Describe the reasoning used by an inference engine in an expert system.

  1. 1

    The inference engine compares inputs with rules in the knowledge base [1]

  2. 2

    It uses IF…THEN reasoning [1]

  3. 3

    Backward chaining starts with a list of goals/hypotheses [1]

  4. 4

    It searches the rules until one has a THEN part that matches a desired goal [1]

  5. 5

    If the IF part of that rule is not known to be true, the THEN part adds this to the list of goals [1]

  6. 6

    Backward chaining can be called goal driven [1]

6. Advantages and disadvantages

Advantages: the system gives a consistent analysis, draws on a range of experts, covers areas the user knows little about, is available at all times, and explains its decisions so the user can learn.

Disadvantages: it can only deal with problems recorded in the system. It must be updated as new technology arrives. If its questions are badly structured, the solutions may be irrelevant.

The system produces a range of possible solutions. The final decision rests with the user.

Examiner insight

“Candidates often seemed to be under the impression that the expert system provided the diagnosis and the doctor's role was just to accept this and act upon it.” “Where candidates stated that the expert system only producing one diagnosis, this was not awarded.”

Worked example 18 marks

The expert system is used to diagnose faults in a car’s engine. Evaluate the use of this system.

  1. 1

    The final decision to follow the advice rests with the mechanic [1]

  2. 2

    Benefit: it provides an explanation for decisions [1]

  3. 3

    Therefore the mechanic can learn [1]

  4. 4

    Benefit: it produces a range of possible solutions [1]

  5. 5

    Based on answers to a set of questions [1]

  6. 6

    Drawback: it can only deal with problems recorded in the expert system [1]

  7. 7

    Therefore anything outside the experience of the experts cannot be dealt with [1]

  8. 8

    Conclusion: a value judgement after at least two arguments [1]

Recap

  • An expert system applies experts' knowledge to a problem and outputs possible solutions.
  • Components: user interface, inference engine, knowledge base (facts and rules base), explanation system, knowledge base editor.
  • The inference engine uses IF…THEN rules on the knowledge base.
  • A knowledge base is created by collecting data from experts, deciding what is relevant, entering it and creating the rules base.
  • Forward chaining: starts with the data, towards a goal. Data driven.
  • Backward chaining: starts with a list of goals, works back to the facts. Goal driven.
  • Disadvantage: only problems recorded in the system. The user makes the final decision.

End-of-chapter exercise

Test yourself on the whole chapter. Work through these before moving on.

  1. State the component of an expert system that holds the facts and the rules base.1 mark
    Answer
    1. The knowledge base.

    Trap: The inference engine uses the rules but does not store them.

  2. Name the component of an expert system that applies IF…THEN rules to the facts to reach a conclusion.1 mark
    Answer
    1. The inference engine.

    Trap: Writing ‘interference engine’ is a spelling examiners reported.

  3. A delivery company uses an expert system for route scheduling. A student says, “It tells the driver when to turn left or right.” Explain why this is wrong.2 marks
    Answer
    1. Route scheduling takes the intended locations of the deliveries.
    2. It plots a sequence for the deliveries to follow, effective in distance and time, not directions from A to B.

    Trap: Examiners reported candidates who thought route scheduling meant planning a single route from A to B.

  4. A rule base is: ``` R1: IF the animal has feathers THEN it is a bird R2: IF it is a bird AND it swims THEN it is a water bird R3: IF it is a water bird AND it is black and white THEN it is a penguin ``` The facts entered are: has feathers, swims, black and white. Use forward chaining to say which rules are used, in order, and the conclusion.3 marks
    Answer
    1. Forward chaining starts with the data.
    2. R1 matches (has feathers), so it adds: it is a bird. R2 matches (bird and swims), so it adds: it is a water bird.
    3. R3 matches (water bird and black and white). Conclusion: it is a penguin.

    Trap: Starting at R3 works from the goal, which is backward chaining.

  5. Use the same rule base: ``` R1: IF the animal has feathers THEN it is a bird R2: IF it is a bird AND it swims THEN it is a water bird R3: IF it is a water bird AND it is black and white THEN it is a penguin ``` Use backward chaining to test the goal “it is a penguin”.4 marks
    Answer
    1. The goal list starts with: it is a penguin.
    2. R3 has a THEN part that matches. Its IF part “water bird” is not known, so it is added to the goal list.
    3. R2 has a THEN part that matches. “Bird” is not known, so it is added to the goal list.
    4. R1 matches “bird”. If the animal has feathers, swims and is black and white, the goal is confirmed.

    Trap: Working from the facts forward is data driven, not goal driven.

  6. A student writes: “A data driven expert system is one that uses a lot of data.” Explain what data driven means.3 marks
    Answer
    1. Data driven means the inference engine starts with the data entered and progresses towards a goal.
    2. It uses forward chaining, searching the rules for one whose IF part matches.
    3. It is not about the amount of data.

    Trap: Examiners reported candidates who confused data driven with a lot of data or with data mining.

  7. A garage buys an expert system to diagnose engine faults. Give two disadvantages of the system. Develop each with a reason.4 marks
    Answer
    1. It can only deal with problems recorded in it.
    2. So a problem outside the experts' experience cannot be dealt with.
    3. It must be updated as new cars and technology come onto the market.
    4. So without updating its advice may not fit the new engine.

    Trap: A disadvantage stated with no reason is only half an answer.

  8. Describe how the knowledge base for a plant identification expert system would be created.4 marks
    Answer
    1. Data about plants is collected from experts or other relevant sources.
    2. The relevance of the data is decided.
    3. The data is entered using a knowledge base editor.
    4. The rules base is designed and created, and linked to the facts.

    Trap: Describing how the finished system identifies a plant answers a different question.

  9. An insurance company uses an expert system to help a consultant assess the risk of insuring a customer. Describe how the user interface, the inference engine and the knowledge base each help.6 marks
    Answer
    1. User interface: it displays questions and the consultant types in the customer's answers.
    2. It outputs suggestions or probabilities of possible solutions to the consultant.
    3. Inference engine: it compares the customer's answers with the facts in the knowledge base.
    4. It uses the rules, with IF…THEN reasoning, to assess the risk.
    5. Knowledge base: it holds the facts and the rules base, gathered from experts.
    6. The consultant makes the final decision.

    Trap: Examiners reported answers that knew insurance but did not explain how the system helps assess the risk.

  10. A doctor uses an expert system with these rules: ``` R1: IF fever AND cough THEN flu suspected R2: IF flu suspected AND aching THEN flu likely ``` The doctor wants to test only the hypothesis “flu likely”. (a) State whether this is data driven or goal driven, and name the type of chaining. (b) Describe how the inference engine tests the hypothesis. (c) State one reason the doctor still makes the decision.5 marks
    Answer
    1. (a)
    2. Goal driven, using backward chaining.
    3. (b)
    4. The goal list starts with: flu likely. R2 has a matching THEN part, so “flu suspected” is added to the goals.
    5. R1 has a matching THEN part. Fever and cough are checked (asked or already known).
    6. If they are true, flu suspected is true. Aching is then checked. If true, flu likely is confirmed.
    7. (c)
    8. The system produces possible solutions. The final decision rests with the doctor.

    Trap: Saying the system gives one diagnosis for the doctor to accept is not credited.

Say this, not that

Wording that loses the mark, against the wording the mark scheme credits.

Loses the markGets the mark
The expert system tracks the vehicle in real time.It produces a route schedule from the locations and details of the deliveries.
Data driven means the system uses a lot of data.Data driven: the engine starts with the data and progresses towards a goal (forward chaining).
Interference engineInference engine
The expert system gives the diagnosis and the doctor accepts it.It produces possible solutions. The final decision rests with the user.

Frequently asked questions

What is an expert system?
An expert system takes knowledge gathered from experts and applies it to a problem. The user enters details and answers questions, and the system outputs possible solutions, not one certain answer. The syllabus scenarios include medical diagnosis, car engine fault diagnosis and route scheduling for delivery vehicles.
What are the components of an expert system and what does the inference engine do?
The main components are the user interface, the knowledge base, the inference engine, the explanation system and the knowledge base editor. The knowledge base holds a database of facts and a rules base. The inference engine is the reasoning system: it searches the rules base, compares the inputs with the facts, and produces suggestions using IF...THEN rules.
What is the difference between forward chaining and backward chaining?
In forward chaining the inference engine starts with the data and works towards a goal, so it is called data driven. In backward chaining the engine starts with a list of goals, which are hypotheses, and works back until the facts settle it, so it is called goal driven. A rule's THEN part adds new information in forward chaining.
How is the knowledge base of an expert system created?
Data is collected from experts and other relevant sources, and someone decides which data is relevant. The data is entered using a knowledge base editor. The rules base is then designed and created, and linked to the facts. Describe this building process, not how the finished system is used.
What are the disadvantages of using an expert system?
An expert system can only deal with problems recorded in the system, so anything outside the experience of the experts cannot be dealt with. It must be updated as new technology arrives. If its questions are badly structured, the solutions may be irrelevant. The system produces a range of possible solutions, and the final decision rests with the user.
What mistakes do students make when describing expert systems and data driven reasoning?
Students often think that data driven means a system that uses a lot of data, but data driven means the engine starts with the data and progresses towards a goal. Many also confuse an expert system with a real time tracking system. The system does not give one diagnosis for the doctor to accept; it produces possible solutions, and the final decision rests with the user.

Free notes are just the start.

Unlock every Workbook and Chapter at a Glance, and generate your own worksheets and predicted papers.

Explore plans

Related chapters