FutureLogic Blog β†’ Artificial Intelligence β†’ IGCSE 0478

What is artificial intelligence, and how does it work?

Artificial intelligence (AI) is the simulation of intelligent behaviour by computers. AI systems can analyse data, recognise patterns, reason and make decisions; some can learn and adapt from experience.

Explore machine learning, supervised and unsupervised learning, expert systems and the inference engine, with examples and original Cambridge IGCSE Computer Science (0478) exam-style practice.

What is artificial intelligence?

Artificial intelligence is the simulation of intelligent behaviour by computers. An AI system may analyse information, recognise patterns, reason, learn, adapt and make decisions. These abilities describe what AI can do; they do not mean that every AI system uses every ability.

AI analyses and decides. Machine learning improves from data. Expert systems apply specialist knowledge.

Cambridge syllabus focus

Topic 6.4 covers artificial intelligence, machine learning and expert systems. Understand characteristics, explain how a system learns from results, and identify the roles of the user interface, knowledge base, rule base and inference engine.

AI characteristics: reason, learn, adapt and decide

Some AI systems reason using available information, recognise patterns in data and make decisions based on those patterns. Systems using machine learning can also learn from data and adapt their future behaviour.

CharacteristicMeaning
ReasoningUsing information to reach a conclusion.
Pattern recognitionFinding similarities or regularities in data.
LearningImproving a model or process using data or results.
AdaptingChanging future responses based on new information.
Decision-makingSelecting an outcome or action from available information.
Exam tip: A characteristic is an ability, such as learning. An application is where AI is used, such as a search engine. Do not confuse them.

How does machine learning work?

Machine learning is an approach to AI in which a system uses data to identify patterns and improve its performance on a task. Rather than a programmer specifying every decision individually, a model learns relationships from examples or observations.

Data β†’ Find patterns β†’ Train or adjust model β†’ Use model β†’ Evaluate results

For example, a search engine can analyse patterns in previous searches and interactions to help improve the relevance of later results. An improvement is a goal, not a guarantee: the quality of the training data and evaluation matters.

Check your understanding

Why might a machine-learning search system use information from previous searches?

Reveal answer

To identify patterns in previous interactions and adjust its model or ranking so future results may be more relevant.

Supervised and unsupervised learning

In supervised learning, the system learns from labelled examples, where the expected answers are provided. In unsupervised learning, the system looks for patterns or groups in data without supplied answer labels.

ApproachTraining dataExample
SupervisedExamples with labelsEmails labelled spam or not spam
UnsupervisedExamples without answer labelsGrouping similar customer behaviour

Check your understanding

A model is given pictures labelled β€œcat” and β€œdog”. Which learning approach is this?

Reveal answer

Supervised learning, because the examples include the correct labels.

What is an expert system?

An expert system attempts to reproduce specialist decision-making within a limited field. A traditional rule-based expert system applies stored knowledge and rules to facts supplied through its interface, then produces advice, a recommendation or a diagnosis.

Examples include medical decision support, technical fault diagnosis and equipment troubleshooting. An expert system does not automatically learn from experience: a conventional rule-based system relies on its stored rules unless those rules are updated.

The four components of an expert system

ComponentRole
User interfaceAccepts information and displays questions or results.
Knowledge baseStores facts and specialist knowledge.
Rule baseStores rules that connect facts to conclusions.
Inference engineApplies rules to facts to derive conclusions and, where relevant, choose further questions.
User input β†’ Interface β†’ Inference engine
↕ Knowledge base + Rule base
β†’ Recommendation

Worked example: diagnosing a faulty computer

A user reports that a computer will not start. The interface asks whether the power indicator lights up. The inference engine uses the answer with the stored facts and rules to decide which question to ask next or which fault to suggest. The system presents its recommendation through the interface.

Exam tip: The inference engine is not the knowledge base. The knowledge base holds facts; the inference engine applies rules to information to reach a conclusion.

AI, machine learning and expert systems compared

TermKey idea
Artificial intelligenceBroad field of systems performing tasks associated with intelligent behaviour.
Machine learningAI approach that learns patterns from data.
Expert systemSpecialist system that applies stored knowledge and rules to a problem.

Common Cambridge exam mistakes

βœ— Saying every AI system learns.

Some AI systems use fixed rules. Learning is a characteristic of machine-learning approaches, not a requirement of every AI system.

βœ— Confusing labelled and unlabelled data.

Supervised learning uses labelled examples; unsupervised learning searches for patterns without labels.

βœ— Calling the inference engine a database.

The inference engine applies rules; the knowledge base stores facts.

βœ— Giving a vague contextual answer.

Instead of β€œit learns”, identify what data is used, what pattern is found and how future decisions may improve.

Original FutureLogic exam-style practice

These are original teaching questions, not official Cambridge examination questions. Suggested marks are indicative.

Question 1 β€” 2 marks

State two characteristics of artificial intelligence.

Reveal model answer

Pattern recognition and reasoning. Other suitable examples include learning, adapting and decision-making.

Question 2 β€” 3 marks

Explain how a search engine could use machine learning to improve results.

Reveal model answer

It collects information about previous searches and interactions, identifies patterns in that data, and uses an updated model to help rank future results more relevantly.

Question 3 β€” 2 marks

Explain the difference between supervised and unsupervised learning.

Reveal model answer

Supervised learning uses labelled training examples; unsupervised learning finds patterns or groups in unlabelled data.

Question 4 β€” 4 marks

Describe the roles of four components of a rule-based expert system.

Reveal model answer

The interface collects user information and shows results; the knowledge base stores specialist facts; the rule base stores decision rules; the inference engine applies those rules to reach conclusions.

Quick quiz

  1. What does AI stand for?
  2. What makes machine learning different from fixed rules?
  3. Which learning method uses labelled data?
  4. What does an inference engine do?
  5. Why is an expert system usually limited to a specialist field?

Quiz answers

Reveal answers
  1. Artificial intelligence.
  2. It learns patterns from data and can adapt its model.
  3. Supervised learning.
  4. It applies rules to facts to derive conclusions.
  5. Its knowledge and rules are designed for a specific domain.

Final summary

AI

Simulates intelligent behaviour.

Machine learning

Learns patterns from data.

Supervised

Uses labelled examples.

Unsupervised

Finds patterns without labels.

Expert system

Uses specialist knowledge and rules.

Inference engine

Applies rules to derive conclusions.

Identify the data β†’ explain the process β†’ connect the result to the context.

Ready to explore artificial intelligence?

Build your understanding with FutureLogic's Topic 6 Knowledge Library.