What is Machine Learning?

Machine learning is the technique where software improves at a task by practising on lots of examples, without being told the rules.

Think of it like this

Think about how a child learns to recognise cats. Nobody hands them a rulebook saying "pointy ears plus whiskers equals cat" - they just see lots of cats, get corrected when they point at a dog, and gradually get it right. Machine learning works the same way: show the software thousands of labelled examples, let it guess, correct it, and repeat until it's good.

What's happening

Diagram showing thousands of labelled cat and dog photos training a model that adjusts when it guesses wrong, then the trained model correctly identifying a brand new photo as a cat with 97 percent confidence

Summary

Instead of programmers writing the rules, machine learning lets the computer find the rules itself by practising on huge numbers of examples - then apply them to things it has never seen.

A Closer Look

The process has two distinct phases. During training, the model makes a guess for each example, gets told how wrong it was, and nudges its internal settings to do slightly better next time - repeated millions of times. Once trained, the model is just used: it takes new input and produces a prediction, fast and cheaply. The expensive learning happened beforehand.

This is the engine behind most of what gets called AI today: spam filters trained on millions of emails, photo apps that find "all pictures of the dog," voice assistants trained on recorded speech, and chatbots trained on enormous amounts of text. The output is always a prediction with a confidence level, not a certainty - which is why these systems are impressive most of the time and confidently wrong some of the time.

The idea is older than it sounds. The phrase machine learning was popularised in the 1950s by Arthur Samuel, who wrote a draughts (checkers) program that improved by playing game after game against itself. What has changed since is scale: far more data, and far faster computers to crunch through it. Today there are three broad styles. In supervised learning, every example comes with the right answer attached, like photos labelled "cat" or "dog". In unsupervised learning, the software is given unlabelled data and asked to find groupings by itself, such as customers with similar shopping habits. In reinforcement learning, it learns by trial and error, earning rewards for good moves - the approach behind game-playing systems that taught themselves to beat world champions.

Common Misconceptions

  • The machine doesn't "understand" anything - it has found statistical patterns in examples, which is powerful but very different from human comprehension.
  • Machine learning isn't always learning - most models are trained, frozen, and then periodically retrained on fresh data, rather than changing in real time with every click you make.
  • It's not magic or neutral - a model is only as good as its examples, and if the training data contains mistakes or biases, the model faithfully learns those too.

Frequently asked questions

Is machine learning the same as AI?

Not quite. AI is the broad goal of making computers do things that seem intelligent, and machine learning is one way of getting there - currently the most successful one. Older AI systems relied on rules written by hand, such as a chess program following strategies typed in by experts. Machine learning replaces those hand-written rules with patterns learned from examples. So almost all machine learning counts as AI, but not all AI uses machine learning.

Do I need to know maths or coding to use machine learning?

To use it, no - you already do every time a spam filter sorts your email or your phone groups photos by face. Free tools like Teachable Machine let you train simple models with no code at all. To build machine learning systems professionally, you would normally learn a programming language such as Python plus some statistics, but plenty of people start by experimenting and pick up the maths as they go.

Where does the training data come from?

It depends on the job. Companies often use data they already hold, such as emails that users have marked as spam, or records of past transactions. Some data is labelled by people paid to tag images or check answers. Large models may also be trained on public text and images gathered from the web. Because the model learns whatever is in the data, choosing and checking that data is one of the most important parts of the work.

How it connects

Machine learning is the technique powering modern AI:

Try it yourself

Visit teachablemachine.withgoogle.com - a free Google tool where you can train a real machine learning model in your browser in about two minutes. Use your webcam to teach it two poses (say, thumbs up and thumbs down), and watch it learn to tell them apart from your examples alone.