Automated and Emerging Technologies

Automated and Emerging Technologies

Artificial intelligence

Artificial Intelligence Paper 1 13 min read

On this page
  1. In this note
  2. What you should already know
  3. What is AI?
  4. Expert systems
  5. Machine learning
  6. Summary
  7. Ways they test it
  8. What the examiner looks for
  9. Past-paper questions, solved
  10. Common mistakes
  11. Practice
  12. Can I do this?
  13. Quiz

In this note

Syllabus 6.3 Artificial intelligence
  • 6.3.1Understand what is meant by artificial intelligence (AI): a branch of computer science dealing with the simulation of intelligent behaviours by computers.
  • 6.3.2Describe the main characteristics of AI: the collection of data and the rules for using that data; the ability to reason; it can include the ability to learn and adapt.
  • 6.3.3Explain the basic operation and components of AI systems: expert systems (knowledge base, rule base, inference engine, interface) and machine learning (a program that can automatically adapt its own processes and/or data).

Before this: Robotics. This is the last note of Paper 1 theory.

Part 1Learn the topic

The notes: every idea from the start, with our own examples.

What you should already know

Robots

Mechanical structure + electrical components + programmable. A robot does not have to be intelligent.

Quick check: does every robot have AI?

No: AI is something extra some robots have.

What is AI?

Artificial intelligence (AI): a branch of computer science dealing with the simulation of intelligent behaviours by computers, so a computer can do things that would need intelligence if a person did them.
CharacteristicWhat it meansExample
Collection of data and the rules for using that datait holds facts and rules that say what to do with thema medical system stores symptoms and IF … THEN rules
Ability to reasonit can work out a conclusion or make a decision from the datadecides the most likely illness
Ability to learn and adapt (can be included)it can change its own processes / data from experience, so it improvesa game character learns how a player moves

The syllabus covers two kinds of AI system: expert systems and machine learning.

Expert systems

An expert system copies the knowledge of a human expert (a doctor, a mechanic, a geologist) so that someone else can get an expert answer: a diagnosis, a fault, a decision. It has four components:

ComponentIts job
Knowledge basea database of facts about the subject (collected from experts)
Rule basethe rules (IF … THEN) for using the facts; links the facts in the knowledge base so the inference engine can use them
Inference enginethe part that makes decisions: it applies the rule base to the knowledge base and the user's answers to reach a diagnosis; it also decides which question to ask next based on the previous answers
Interfacehow the user inputs data (answers questions) and sees the output (the questions and the diagnosis)
Usere.g. a doctorInterfaceinput / outputInference enginemakes decisionsKnowledge basefactsRule baseIF … THEN rulesanswersquestions,diagnosisthe inference engine applies the rule base to the knowledge base
The four components of an expert system.

General methodHow an expert system works (e.g. diagnosing a car fault)

  1. The user enters data through the interface (or plugs the car into it), e.g. "the brakes squeak".
  2. The inference engine compares the data with the knowledge base …
  3. … and applies the rule base to the knowledge base.
  4. It decides which question to ask next, based on the previous answers, and shows it on the interface.
  5. When it has enough data it decides the diagnosis (the most likely one if there are several).
  6. The interface outputs the diagnosis (often with how it was reached).
The inference engine makes the decisions. The knowledge base only stores facts and the rule base only stores rules: neither of them "decides".

Machine learning

Machine learning: a program that can automatically adapt its own processes and/or data, so it improves without being reprogrammed by a person.

General methodHow a system uses machine learning (any scenario)

  1. It collects / gathers data as it works (e.g. where obstacles are, how a user speaks, which results were clicked).
  2. It analyses the data to find patterns.
  3. It stores successful and unsuccessful results / actions.
  4. It adapts its own processes, rules or data using this.
  5. So next time it makes fewer mistakes / gives more accurate results (say what improves in the scenario).
ScenarioWhat it learnsSo …
robot vacuum cleanerthe shape of the room, where obstacles and dirtier areas areit takes the most efficient route
smart speakerthe user's voice, accent and different ways of askingit understands voice commands better, ignores background noise
search enginewhich results users clicked or ignored (feedback)it changes its rules to give more relevant results
game characterpatterns in the player's movementsit predicts and reacts to the player's next move
weather systempatterns in past weather data, feedback on its forecastsit makes more accurate predictions
Training can be supervised (the system is given the inputs and the correct outputs) or unsupervised (it is given only inputs and must find the patterns itself). Either earns a mark when describing machine learning.

Try it yourself

1
Which component of an expert system makes the decisions?
Show answer

Answer The inference engine

2
Which component stores the facts?
Show answer

Answer The knowledge base

3
A program can automatically adapt its own processes and data. Name this ability.
Show answer

Answer Machine learning

4
Name the four components of an expert system.
Show answer

Answer Knowledge base, rule base, inference engine, interface

Summary

  • AI: the simulation of intelligent behaviours by computers.
  • Characteristics: data + rules for using it; ability to reason; can learn and adapt.
  • Expert system: knowledge base (facts) · rule base (rules) · inference engine (applies rules to facts, decides next question and diagnosis) · interface.
  • Machine learning: automatically adapts its own processes / data: gathers data → patterns → stores results → adapts → fewer mistakes.

If you see …

  • "explain how an expert system operates" [5-6]interface input · inference engine · knowledge base · rule base · applies rules to facts · decides next question · outputs diagnosis
  • "explain how X can make use of machine learning" [3-4]gathers data · patterns · adapts own processes · so … (scenario) · fewer mistakes
Part 2How it is examined

Question types, what the examiner gives marks for, and real past-paper questions solved.

Ways they test it

Type 1 Define / characteristics

"Describe what is meant by AI" [2-3]; "identify three other characteristics of AI" [3]

Spot it "what is meant by".

  1. simulation of intelligent behaviour · data + rules · reason · learn / adapt

Type 2 Components

"Identify the three other components in an expert system" [3]; "circle three components" [3]

Spot it one component already named.

  1. From knowledge base, rule base, inference engine, interface: leave out the one given.

Type 3 Operation

"Explain how the expert system operates and how it is used to diagnose the problem" [5-6]

Spot it "operate / diagnose".

  1. Follow the method; say "inference engine" for every decision.

Type 4 Cloze

"Complete the paragraph using terms from the list" [5-7]

Spot it a word list.

  1. Facts → knowledge base; decides → inference engine; links / applies → rule base; types / output → interface.

Type 5 Machine learning in a scenario

"Explain how the robot vacuum cleaner can make use of machine learning" [3-4]

Spot it a named device.

  1. Method + what it learns in that device.

What the examiner looks for

"Explain how an expert system operates" [6]

Marking points (one mark each, up to the marks shown)

  • It has an interface …
  • … used to input data / view output
  • It has a knowledge base
  • It has a rule base
  • It has an inference engine
  • Applies the rule base to the knowledge base to provide the output / diagnosis
  • Decides what to ask next based on the data input

Keywords interface knowledge base rule base inference engine applies diagnosis

Too vague "the knowledge base decides"; "it thinks like a human"

Past-paper questions, solved

0478/12/M/J/24 Q10Paper 1 · Computer systems7 marksFull size
A garage’s expert system: AI and diagnosing a brake problem

How to start (a) two characteristics [2]. (b) the operation method, in the garage’s words [5].

Show a full-mark answer and the mark scheme

(a) The simulation of intelligent behaviours by computers. It has the ability to reason.

(b) The mechanic enters data about the brakes into the interface. The inference engine decides which questions to ask, using the previous answers given. It compares the answers entered with the knowledge base and the rule base. It decides on the most likely diagnosis and the interface outputs it.

PartAnswer / workingMarksGuidance
10(a)Any two: simulation of intelligent behaviour · data + rules for using it · ability to reason · ability to learn / adaptB2
10(b)Any five: data entered via interface · inference engine decides which questions · … using previous answers · decides diagnosis · … comparing with knowledge base and rule base · most likely option · interface outputs diagnosis · explanation systemB5
Total: 7 marks
0478/13/O/N/23 Q10Paper 1 · Computer systems9 marksFull size
Expert system cloze; what machine learning means

How to start (a) five gaps: match each gap to a component’s job. (b) four points about machine learning.

Show a full-mark answer and the mark scheme

(a) An expert system has a knowledge base that contains a list of facts. The inference engine applies the rule base to the knowledge base to reach a diagnosis for the repair of the car. The user provides data to the system using an interface.

(b) It is a form of AI that can adapt its own processes and edit its own data. It analyses patterns and stores successful and unsuccessful results, to influence future decisions. It can be trained, supervised or unsupervised.

PartAnswer / workingMarksGuidance
10(a)knowledge base · inference engine · rule base // knowledge base · knowledge base // rule base · interfaceB5
10(b)Any four: form of AI · adapts own processes · edits own data · can be trained · supervised / unsupervised · analyses patterns, stores results · to influence future decisionsB4
Total: 9 marks
0478/12/O/N/24 Q8Paper 1 · Computer systems6 marksFull size
A robot vacuum cleaner: expert system components and machine learning

How to start (b) circle exactly three. (c) machine learning in this device: say what it learns.

Show a full-mark answer and the mark scheme

(b) Knowledge base, rule base, inference engine.

(c) It gathers data while vacuuming, such as where obstacles are and where the dirtier areas are. It adapts its own processes using this data, so it knows the most efficient route to vacuum the room and which areas to concentrate on.

PartAnswer / workingMarksGuidance
8(b)knowledge base · rule base · inference engineB3
8(c)Any three: gathers data · adapts own processes · … obstacles · dirtier areas · path / shape of room · most efficient route · areas to avoidB3
Total: 6 marks
0478/12/F/M/25 Q6Paper 1 · Computer systems6 marksFull size
A search engine using AI and machine learning

How to start (a) the question gives "learn": give three other characteristics. (b) how the search engine changes from feedback.

Show a full-mark answer and the mark scheme

(a) The collection of data; rules for using the data; the ability to reason.

(b) If a result does not give a suitable response, this is recorded. The search engine changes its own data and rules according to this feedback, so next time it provides more relevant results.

PartAnswer / workingMarksGuidance
6(a)Any three: collection of data · rules for data · ability to reason · ability to adaptB3
6(b)Any three: changes its data / rules · according to feedback · unsuitable result recorded · result changed next time · more accurate / relevantB3
Total: 6 marks
0478/13/O/N/24 Q5Paper 1 · Computer systems4 marksFull size
An automated plough using AI to navigate

How to start Four marks: name machine learning, then what it gathers and what improves.

Show a full-mark answer and the mark scheme

It could use machine learning. It gathers data while ploughing, such as the dimensions of the field and where obstacles are, and uses this data to adapt its own process, creating a map of the field and the most efficient route, so it makes fewer mistakes in future.

PartAnswer / workingMarksGuidance
5(d)Any four: machine learning · gathers data from ploughing · adapts own process · fewer mistakes · … dimensions / landscape / obstacles · map of field · most efficient route · knows what to avoidB4
Total: 4 marks

Common mistakes

  • ✗ "The knowledge base makes the diagnosis"✓ "The inference engine applies the rule base to the knowledge base to make the diagnosis"
  • ✗ "AI is a robot"✓ "AI is the simulation of intelligent behaviour by computers"Robots and AI are separate topics.
  • ✗ "Machine learning means it learns"✓ "It automatically adapts its own processes and data"Don't define a word with itself.
  • ✗ Generic machine-learning answers✓ Say what this device learns (route, voice, obstacles…)Scenario marks need the scenario.

Practice

Practice: easy, medium, hard

Easy

1
Name the component of an expert system that stores facts.
Show answer

Answer Knowledge base

2
Give two characteristics of AI. [2]
Show answer

Answer e.g. collection of data and rules for using it · ability to reason · ability to learn / adapt

Medium

1
Describe the role of the rule base in an expert system. [2]
Show answer

Answer Stores the rules (IF … THEN) · used by the inference engine · to link the facts in the knowledge base

2
Describe the role of the inference engine. [2]
Show answer

Answer Makes decisions · by applying the rules to the facts / knowledge · to give a result / diagnosis

Hard

1
A chess program uses machine learning. Explain how this helps it play better. [4]
Show answer

Answer Collects data about each game / the opponent’s moves · finds patterns · stores successful and unsuccessful moves · adapts its own processes · so it chooses better moves and makes fewer mistakes next time

Can I do this?

Anything unticked: revise that section first. All ticked: take the quiz.

Quiz

The multiple-choice and guided questions need JavaScript. The concept checks and exam practice below work without it.

Your progress on this note is saved when JavaScript is on.

⬇️ Download this chapter as a PDF: Full notes