Cambridge IGCSE · Topic 6.3
IGCSE Computer Science 0478 / Topic 6 / IGCSE

Computers that seem to think.

A program that diagnoses a car fault like a mechanic, an email filter that gets better at spotting spam the more you use it: both simulate intelligent behaviour. Learn what AI means, its main characteristics, and how the two kinds in your syllabus, expert systems and machine learning, actually work.

The key idea

Artificial intelligence (AI) is a branch of computer science dealing with the simulation of intelligent behaviours by computers. Its main characteristics are: a collection of data and rules for using that data; the ability to reason (apply the rules to reach conclusions); and it can include the ability to learn and adapt. At IGCSE you study two kinds: expert systems, which have a knowledge base, rule base, inference engine and interface; and machine learning, where a program can automatically adapt its own processes and/or data.

the four components of an expert system User non-expert Interface questions, answers Inference engine reasons, decides Knowledge base + rule base (rules) the inference engine applies the rules to the facts to reach a conclusion
Fig. 1: how the parts of an expert system work together
Section 01

What is AI?

AI does not mean a computer that is conscious or truly understands. It means a computer that behaves as if it were intelligent: it uses data and rules to make decisions a person would normally make.

CharacteristicWhat it meansExample
Collection of data and rules for using itThe system stores facts and the rules that link them"IF temperature > 38 °C THEN patient has a fever"
Ability to reasonIt applies the rules to the data to reach a conclusion or make a decisionfever AND rash → suggests a possible illness
Can learn and adaptIt changes its own data or processes based on new data or feedback, so it improves over timea spam filter that gets better as users mark emails as spam
Your turn
A calculator gives the correct answer to 365 × 24 every time. Explain why it is not usually described as AI.
Examiner trap

"AI is when a computer thinks like a human" is too vague for marks. Use the syllabus words: simulates intelligent behaviour, using data and rules, the ability to reason, and possibly to learn and adapt.

Section 02

Expert systems.

An expert system gives a non-expert the advice a human expert would give, such as a doctor, a mechanic or a geologist. It has four components (Fig. 1).

Worked example Medical diagnosis
Describe how an expert system helps a doctor diagnose an illness.
  1. The interface asks the doctor questions about the patient's symptoms, e.g. "Does the patient have a temperature above 38 °C?"
  2. The doctor enters the answers through the interface.
  3. The inference engine compares the answers with the facts in the knowledge base, using the rules in the rule base.
  4. It chooses the next question based on the answers so far, narrowing down the possible illnesses.
  5. The interface displays the most likely diagnosis (often with a percentage probability) and an explanation of how it was reached.
Answer: interface → inference engine + rule base + knowledge base → conclusion
Your turn
Give two uses of expert systems other than medical diagnosis.
Examiner trap

Do not mix up the knowledge base and the rule base. The knowledge base holds the facts; the rule base holds the rules; the inference engine uses the rules on the facts.

Stage 1 · Learn

Check what the sim just showed you

Four quick checks. Each correct answer earns XP and records this skill on your profile.

Quick check+10 XP

Which is the best description of artificial intelligence?

Quick check+10 XP

Which component of an expert system applies the rules to the facts to reach a conclusion?

Quick check+10 XP

What does the knowledge base of an expert system contain?

Quick check+10 XP

Which describes machine learning?

Section 03

Machine learning.

In a normal program, a programmer must change the code to change what it does. A machine learning program can automatically adapt its own processes and/or data, so it improves with experience.

machine learning: a spam filter that adapts Collect data many labelled emails Make a decision spam or not spam? Get feedback user marks a mistake Adapt itself updates itself each time round the loop it makes fewer mistakes no programmer rewrites the code: the program changes itself
Fig. 2: a machine learning program improves each time round the loop
Expert systemMachine learning
Where the rules come fromwritten in by people from expert knowledgeworked out by the program from data
Changes over time?only if someone updates the knowledge or rule baseadapts itself automatically with new data
Your turn
A music streaming site suggests songs. Explain how machine learning means the suggestions improve over time.
Examiner trap

"Machine learning is when a computer learns" just repeats the question. Say it automatically adapts its own processes and/or data, without being reprogrammed.

Stage 2 · Exam

Exam-style questions

Unlocks once the four checks above are done. Worth more XP, written to IGCSE Paper 1 standard.

Finish the four checks above to unlock the exam questions
Exam style+20 XP

An expert system asks a user "Is the engine making a clicking noise?" Which component displays this question?

Exam style+20 XP

Which is a main characteristic of AI listed in the syllabus?

Exam style+20 XP

An email filter wrongly lets a spam email through. The user marks it as spam, and similar emails are blocked in future. What does this show?

Exam style+20 XP

Which is an example of an IF ... THEN rule that would be stored in the rule base of a medical expert system?

Skill unlocked

Artificial intelligence, mastered.

This skill is now recorded on your profile. Keep the chain going.

-Rank -Level -Score -Topics
Go deeper · practice
Six original Cambridge-style questions
What AI is, its main characteristics, the four components of an expert system, and how machine learning adapts itself.