01

From rules to examples

For most of computing history, programmers told computers exactly what to do with explicit instructions: if this happens, do that. This works well for calculating a payroll or sorting a list, but it struggles with tasks people find easy, such as recognising a cat in a photo. Nobody can write down precise rules for every possible cat. Machine learning takes a different approach. Instead of rules, the computer is given many examples and learns to recognise the patterns that distinguish them.

02

A simple example

Imagine building a spam filter. Rather than listing every suspicious word, engineers collect thousands of emails already marked as spam or not spam. A machine learning algorithm examines them and discovers which features, such as certain words, links or sender patterns, tend to appear in spam. When a new email arrives, the trained model estimates the probability that it is spam. As spammers change tactics, the model can be retrained with fresh examples, something rigid rules cannot easily do.

03

Where the idea came from

The term machine learning was popularised in 1959 by Arthur Samuel, an IBM researcher whose program learned to play checkers by playing thousands of games against itself and improving over time. For decades, machine learning remained a specialist field limited by small datasets and slow computers. The explosion of digital data from the internet and smartphones, combined with powerful graphics chips, transformed it from the 2010s into the dominant approach in AI.

04

Three main types

In supervised learning, the model learns from labelled examples, such as photos tagged with what they show, or houses with their sale prices. In unsupervised learning, it looks for structure in unlabelled data, for example grouping customers with similar shopping habits. In reinforcement learning, a system learns by trial and error, receiving rewards for good actions, the method used to teach AI to play games and control robots. Many modern systems combine all three.

05

What training means

A machine learning model contains adjustable numbers called parameters. During training, the model makes predictions on examples, measures how wrong they are and nudges its parameters to reduce the error. Repeating this millions or billions of times gradually improves accuracy. Simple models may have a handful of parameters; the largest modern language models have hundreds of billions. Training them requires enormous computing power, while using a trained model, called inference, is much cheaper per task.

06

Testing what it learned

A model that simply memorises its training examples is useless on new data, a problem called overfitting. To guard against this, engineers hold back some examples the model never sees during training and use them to test performance. A good model generalises, meaning it performs well on new cases similar to those it learned from. Real-world performance must also be monitored, because the world changes and patterns in new data may drift away from the training data.

07

Everywhere in daily life

Machine learning powers recommendations on streaming and shopping sites, face unlock on phones, voice assistants, translation apps, navigation apps that predict traffic, fraud detection in banking, weather forecasting, medical image analysis and the chatbots that answer questions in natural language. Most people use dozens of machine learning systems every day without noticing them. Large language models such as those behind modern chatbots are a form of machine learning trained on vast amounts of text.

08

Strengths and weaknesses

Machine learning excels at finding complex patterns in large amounts of data and can often match or exceed human performance on narrow tasks. But it depends heavily on its data: biased or incomplete examples produce biased or unreliable models. Models can be confidently wrong, especially on situations unlike their training data, and their reasoning can be hard to explain. That is why careful testing, human oversight and good data practices are essential, particularly in high-stakes areas.

09

Learning more

Machine learning combines statistics, computer science and mathematics, but its core idea is intuitive: learn from experience. Many free courses, from universities and companies such as Google, teach the basics without advanced maths. Understanding how these systems learn helps people use AI tools wisely, recognise their limits and take part in debates about how they should be used in society. As AI spreads into every field, basic machine learning literacy is becoming as useful as basic computer skills.

FOLLOW THE EVIDENCE

Sources & further reading

A simplified introduction to a broad technical field. Photograph: original AI-generated illustration (Adobe Firefly). Reference organisations do not endorse this website.