FutureLogic Blog β†’ Machine Learning β†’ IGCSE 0478

How does machine learning work?

Machine learning is a type of artificial intelligence in which a computer system uses data to identify patterns and improve its predictions or decisions without a programmer specifying every rule for every situation.

Learn how training data, supervised and unsupervised learning work, why feedback matters and how to explain machine learning in Cambridge IGCSE Computer Science (0478) exam answers.

What is machine learning?

Machine learning (ML) is a branch of artificial intelligence that builds models from data. Instead of writing a separate instruction for every possible case, a system identifies useful patterns and uses them to make predictions or decisions about new information.

Data β†’ find patterns β†’ build a model β†’ use it on new data.

Cambridge syllabus focus

Topic 6.4 introduces AI and machine learning. The key idea in the supplied FutureLogic lesson is that a system uses data and results to adapt its future behaviour. Supervised and unsupervised learning are included as two approaches. This article adds explanatory examples to make those concepts easier to understand.

How does a machine learning system learn?

  1. Collect data: obtain relevant examples, such as images or previous searches.
  2. Identify patterns: use a learning algorithm to discover relationships in the examples.
  3. Build or adjust a model: change internal parameters based on the data.
  4. Test on new examples: check whether the model works beyond the training data.
  5. Improve where appropriate: update or retrain the model using suitable new data and evaluation.
Training data β†’ Learning algorithm β†’ Trained model
New input β†’ Trained model β†’ Prediction

Important distinction: a trained model does not necessarily change every time it is used. Some systems are retrained periodically; others can update as new data arrives.

What is supervised learning?

In supervised learning, the training examples include labels or known answers. The system learns a relationship between each input and its expected output, then uses that relationship on unfamiliar inputs.

Worked example β€” identifying spam emails

A training set contains emails labelled spam or not spam. The model learns patterns associated with those labels. When a new email arrives, it predicts which category it belongs to.

Email + known label β†’ Training
New email β†’ Model β†’ Predicted label
Why is this supervised?

Because the training examples include the correct categories, allowing the model to learn from labelled data.

What is unsupervised learning?

In unsupervised learning, the system receives data without predefined answer labels. It searches for structure, similarities or groups within that data.

Worked example β€” grouping shopping behaviour

A shop analyses customers' purchase patterns without assigning each customer a category in advance. An unsupervised algorithm may group customers with similar purchasing habits.

Unlabelled purchases β†’ Find similarities β†’ Groups
Why is this unsupervised?

Because the algorithm identifies groups without being supplied with a correct group label for each training example.

Supervised and unsupervised learning compared

FeatureSupervisedUnsupervised
Training dataLabelled examplesUnlabelled examples
Main goalPredict a known targetDiscover patterns or groups
ExampleClassify spamGroup similar customers
Known answers during training?YesNo predefined target labels
Exam tip: Supervised means labelled examples, not that a human must watch every decision. Unsupervised means unlabelled data, not that the system works without any programming.

How do results help a model improve?

Some learning systems use the difference between a prediction and a known answer to adjust the model during training. For example, if a labelled image of a cat is incorrectly predicted as a dog, training can use that error to update the model. Over many examples, the model may become more accurate.

For unsupervised learning, there may be no single correct label to compare against. The system instead optimises an objective such as grouping similar data points together. Not all machine learning relies on a success/failure signal in the same way.

Check your understanding

A system is trained using photos labelled β€œcat” and β€œdog”. Which approach is used?

Reveal answer

Supervised learning. The training images have known labels.

Machine learning in a search engine

A search engine may analyse previous searches, selected results and other relevance signals to train or improve ranking models. When a similar search occurs, a model can help estimate which results are most relevant. A click is only one possible signal; it does not automatically mean the selected page was correct or useful.

Strong exam answers explain what data is used, what pattern is found and what future decision changes.

Limitations and risks

  • Biased data: unrepresentative training examples can produce unfair or inaccurate predictions.
  • Poor-quality data: missing or incorrect examples may reduce accuracy.
  • Overfitting: a model can perform well on training examples but poorly on new data.
  • Privacy: collecting personal information requires appropriate safeguards.
  • No guaranteed correctness: predictions can still be wrong, even after training.

Common exam mistakes

βœ— β€œMachine learning means the computer thinks like a human.”

Better: it learns patterns from data and uses a trained model to make predictions or decisions.

βœ— β€œUnsupervised means there is no algorithm.”

Both approaches use algorithms; the difference is whether training examples have known target labels.

βœ— β€œEvery prediction makes the model smarter.”

Using a model does not necessarily update it. Explain how training or retraining takes place.

βœ— Giving only a generic definition in a scenario question.

Name the data collected and the specific prediction or decision that improves.

Original FutureLogic exam-style practice

Original educational questions, not official Cambridge examination questions. Suggested marks are indicative.

Question 1 β€” 2 marks

Describe machine learning.

Reveal model answer

A system identifies patterns in data (1) and uses them to improve predictions or decisions on new examples (1).

Question 2 β€” 2 marks

Explain why a model trained with images labelled β€œapple” and β€œbanana” uses supervised learning.

Reveal model answer

Each training image is supplied with its correct category (1), so the model can learn to predict those categories for new images (1).

Question 3 β€” 3 marks

Describe how a retailer might use unsupervised learning.

Reveal model answer

The retailer collects purchase data without predefined customer-group labels (1). The algorithm identifies similarities in buying patterns (1) and groups customers with similar behaviour (1).

Question 4 β€” 3 marks

Explain how machine learning could improve search result ranking.

Reveal model answer

The system analyses previous search queries and relevance signals (1), identifies patterns associated with useful results (1) and uses a trained model to rank results for future searches (1).

Quick quiz

  1. What is training data?
  2. What makes supervised learning different?
  3. What can unsupervised learning discover?
  4. Does a trained model always update after every prediction?
  5. Why is data quality important?

Quiz answers

Reveal all answers
  1. Examples used to train a model.
  2. It uses known labels or targets.
  3. Patterns, similarities or groups.
  4. No; updating depends on the system.
  5. Poor data can lead to inaccurate or biased results.

Final summary

Machine learning

Builds models from data.

Supervised

Uses labelled examples.

Unsupervised

Finds patterns in unlabelled data.

Evaluation

Checks performance on new examples.

Learn from data. Recognise patterns. Apply the model to new situations.

Ready to explore AI further?

Revisit machine learning and expert systems in the FutureLogic Knowledge Library.