CIE IGCSE | 6.3.3 Operations and Controls of AI

Lesson objective

Explain the basic operation and components of expert systems and machine learning, and how they simulate intelligent behaviour.

Learn

6.3.3 | OPERATIONS AND CONTROLS OF AI

01 | THE TWO SYSTEMS IN THIS SYLLABUS

The specification limits this section’s basic AI operation to expert systems and machine learning.

An expert system applies stored knowledge and rules to infer a conclusion. Machine learning allows a program to automatically adapt its processes or data using training information.

The course title includes “controls”. Here, the main assessed content is how these systems operate and which components they use. Checking inputs, testing and human oversight provide useful context for controlling their use.

02 | THE FOUR EXPERT-SYSTEM COMPONENTS

Remember the role, not only the component name
ComponentMain role
Knowledge baseStore relevant facts and expert knowledge about the domain
Rule baseStore rules linking conditions to conclusions or actions
Inference engineApply appropriate rules to the available information to infer results
InterfaceLet the user supply information and receive questions or results

Implementations can organise their information differently, but these are the four distinct components named in the syllabus.

The inference engine uses the knowledge and rules; it is not simply another name for the knowledge base.

03 | SEE HOW THE COMPONENTS CONNECT

The interface does not decide the answer merely because it displays it. The inference engine performs the reasoning using the available knowledge and rules.

04 | WORKED EXPERT SYSTEM: PRINTER TROUBLESHOOTING

Use an invented expert system that recommends a first check, rather than claiming to identify every fault.

Rules are simplified examples for learning, not complete support instructions
ComponentTeaching example
Knowledge baseKnowledge about printer power, paper and indicators
Rule baseR1: IF power absent THEN recommend checking power<br>R2: IF power present AND paper absent THEN recommend checking paper tray
InterfaceAsk whether power is present and paper is loaded
Inference engineCheck the answers against the rule conditions

The user answers: power is present; paper is absent. R1 does not match. Both conditions in R2 match, so the engine infers the recommendation to check the paper tray.

The interface displays the recommendation. It does not prove the tray is the only possible fault.

05 | TRACE THE REASONING

  1. Obtain relevant information.

    The interface gathers answers about the current problem.

  2. Make the information available for reasoning.

    The system combines current facts with its stored domain knowledge.

  3. Apply relevant rules.

    The inference engine checks which conditions match.

  4. Infer a conclusion or ask for more information.

    The available facts may support a recommendation or require another question.

  5. Present the result.

    The user receives it through the interface.

Different systems can reason in different orders. The key syllabus idea is that an inference engine applies knowledge and rules, rather than selecting an unsupported answer at random.

06 | EXPERT-SYSTEM LIMITS

Wrong input: an incorrect user answer can cause the wrong rule to be applied.

Missing knowledge: an unusual fault may not be covered.

Outdated rules: a changed product or process may require the knowledge and rules to be updated.

A fixed expert system does not necessarily learn automatically when a user disagrees. People can review its behaviour and amend its information.

07 | MACHINE LEARNING: ADAPT FROM DATA

The specification describes machine learning as a program having the ability to automatically adapt its own processes and/or data.

In a common example, training data is used to adjust a model that will later classify an input or predict an outcome.

People still choose the task, data, model and training process. Automatic adaptation does not mean the system creates its own purpose or understands the world like a person.

Unlike a simple rule-based example, the programmer need not explicitly write a separate rule for every input pattern.

08 | WORKED MACHINE LEARNING: MATERIAL IMAGES

A school project aims to classify images into paper, metal and plastic categories. This is a teaching scenario, not a claim that every item can be identified from an image.

Labelled classification is one machine-learning approach, not the only kind
StageWhat happens
Collect suitable examplesObtain representative images with appropriate category labels
Prepare dataCheck labels and use a consistent suitable representation
TrainThe training process adjusts the model using the examples
EvaluateCheck performance on suitable examples not used to fit the model
Use / inferenceProvide a new image and obtain a predicted category
ReviewInvestigate errors and decide whether further training or design changes are needed

The predicted category can be wrong, especially for unclear, unusual or poorly represented examples.

09 | TRAINING IS NOT THE SAME AS USE

TRAINING

Examples → adaptation process → adjusted model

INFERENCE

New input → trained model → prediction

Training changes the model. Inference uses it. A deployed model can remain fixed while producing different outputs for different inputs.

Some systems support ongoing learning, but not every model changes on every request. A new answer alone is not evidence that learning occurred.

10 | WHY TEST WITH DIFFERENT EXAMPLES?

A model may fit familiar examples well but perform poorly on new ones. Generalisation concerns how the learned relationships work beyond the fitting examples.

Using suitable evaluation data not used to fit the model gives a better check than only reusing training examples.

Example: a classifier trained mainly on clean objects against plain backgrounds might struggle with crushed objects or cluttered scenes.

More examples are useful only when their quality and relevance support the task. Incorrect labels or unrepresentative data can undermine performance.

11 | COMPARE OPERATION

Both need appropriate information and evaluation
PointExpert-system exampleMachine-learning example
Main basisExplicit domain knowledge and rulesModel adapted from training data
Result productionInference engine applies rules to factsTrained model maps an input to a predicted result
UpdatingPeople may change knowledge and rulesTraining automatically adapts the model through a chosen process
Possible faultWrong facts or missing/outdated rulesPoor representation, labels or generalisation
Continuous learningNot requiredNot required during every use

Real systems may combine both approaches. For the course, explain each basic method separately before comparing them.

12 | CHECKING AND HUMAN OVERSIGHT

Useful checks include validating inputs, testing representative cases, reviewing errors and limiting use to the system’s demonstrated capabilities.

Human oversight matters when a result has significant consequences. A recommendation or prediction should not be accepted simply because it is produced by AI.

When the system is uncertain or the case falls outside its intended scope, a suitable design can request more information or refer the decision to a person.

These controls support appropriate use; they do not guarantee every result is correct or unbiased.

13 | COMMON MISTAKES

  • The knowledge base applies the rules: that is the inference engine’s role.
  • The interface is the reasoning engine: it handles interaction.
  • Machine learning means writing every pattern rule manually: training adapts a model through data.
  • Every expert system learns automatically: fixed rules can stay unchanged.
  • Inference always retrains the model: using and adapting it are different stages.
  • Training success proves new-case accuracy: generalisation needs evaluation.
  • AI output is a guaranteed fact: it depends on information, method and context.

MATCH THE AI COMPONENT OR STAGE

Terminology

Terminology

Expert system

An AI system applying stored knowledge and rules to infer conclusions in a defined domain.

Knowledge base

Stored domain facts and expert knowledge.

Rule base

Stored rules relating conditions to conclusions or actions.

Inference engine

The component applying knowledge and rules to infer results.

Interface

The means of exchanging questions, inputs and results with the user.

Current facts

Information available about the case being considered.

Machine learning

A program’s ability to automatically adapt its processes and/or data.

Training data

Information used to fit or adjust a model.

Label

A known category or target associated with an example.

Training

The process adapting a model using information.

Model

A representation used to map inputs to results.

Inference

Applying a method or trained model to obtain a result.

Prediction

An estimated outcome or category produced from input information.

Evaluation data

Suitable examples used to check performance, separate from fitting where appropriate.

Generalisation

Performance on inputs beyond the examples used to fit the model.

Human oversight

People reviewing behaviour and intervening when required.

Questions

Questions

CHECK YOUR UNDERSTANDING

Select all correct choices. Each exact set earns one point.

1. Which components are named for an expert system?
2. Which component applies rules to infer a conclusion?
3. Which component pairings are correct?
4. Power is present and paper is absent. Our rule says to recommend checking the paper tray when both are true. Which are correct?
5. Which describe machine-learning training?
6. Which distinguish training and inference?
7. Which evaluation choices are appropriate?
8. Which checks can support suitable use?

EXPLAIN AND COMPARE

Write your answers before revealing each sample.

1. Describe the four components of an expert system.

2. Explain the difference between a rule base and an inference engine.

3. Describe how the printer example produces its recommendation.

4. Describe the basic operation of the image-classification machine-learning example.

5. Compare an expert-system update with machine-learning training.

6. Explain why separate evaluation data is useful.

7. Evaluate accepting all AI recommendations without review.

APPLY IT | BUILD A SMALL EXPERT-SYSTEM PLAN

A classroom support tool asks whether a projector has power and whether an input source is selected. Propose a knowledge item, two simple recommendation rules and the role of the interface and inference engine.

Reveal suggested answer

Knowledge: the projector requires appropriate power and an input source for ordinary display. Rule 1: if power is absent, recommend checking the power arrangement. Rule 2: if power is present and no input is selected, recommend checking source selection. The interface asks and displays; the engine matches the current answers to applicable rules. These are first-check recommendations, not a complete diagnosis.

Flashcards

Flashcards

Click to flip. Select the ideas you need to revisit.

0 cards selected for revision.

    Selections are kept while this page is open.

    Workbook

    Workbook

    COMING SOON

    The workbook for 6.3.3 Operations and Controls of AI is coming soon. Complete the matching task and written questions in your exercise book.