Machine learning: what it is, how it works and where it is used
In 2024, the Nobel Prize in Physics went to John Hopfield and Geoffrey Hinton for discoveries that enable machine learning with artificial neural networks. So what is machine learning? It is the branch of artificial intelligence in which a computer learns from examples instead of following rules written by hand. The more relevant data it sees, the better its predictions get. Machine learning powers spam filters, recommendations, fraud detection and assistants like ChatGPT. This guide explains what machine learning is, how it works, its three main types, everyday examples and where it falls short.
Machine learning at a glance
| Question | Short answer |
|---|---|
| Common abbreviation | ML. |
| Core idea | The program works out its own rules from examples, instead of receiving them from a developer. |
| What it produces | A model: a function that predicts, classifies or recommends on new data. |
| The 3 main types | Supervised, unsupervised and reinforcement learning. |
| Examples | Spam filters, recommendations, fraud detection, translation, assistants like ChatGPT. |
| Main limit | It is only as good as its data: bias, errors and unforeseen cases end up in the model. |
What is machine learning? A plain definition
A traditional program applies rules written by a person: "if the email contains this word, mark it as spam". With machine learning, you feed the program thousands of emails that are already sorted, and it finds on its own the clues that separate spam from real messages. Nobody writes the rules; the program infers them from the examples.
The standard definition comes from Tom Mitchell of Carnegie Mellon University. In The Discipline of Machine Learning (2006), he writes that a machine learns a task T, measured by a metric P, from experience E, if it reliably improves P at T after E. For a spam filter, T is sorting email, P is the share of messages sorted correctly, and E is the messages you flag as junk.
The term itself is older. In 1959, IBM researcher Arthur Samuel published "Some Studies in Machine Learning Using the Game of Checkers". His checkers program learned to play better than its author after 8 to 10 hours of play. The line often credited to him ("the ability to learn without being explicitly programmed") does not appear in that paper: it is a later paraphrase.
How machine learning works, in 4 steps
Take a concrete case: estimating the price of a home from its size, neighborhood and number of bedrooms.
- Gather the data: thousands of past sales, with their features and final price. This is often the longest step, because errors, gaps and duplicates must be cleaned up.
- Train the model: the algorithm makes a prediction, measures how far it is from the real price, then adjusts its internal settings to shrink that gap. It repeats this thousands of times.
- Test on data it has never seen: part of the sales is held back to check that the model generalizes. A model that memorizes its examples but fails on new cases is said to overfit.
- Deploy and monitor: the model now prices new homes. Because the market shifts, its accuracy must be tracked over time and the model retrained.
The output of training is called a model. It is not a list of readable rules but a set of numeric parameters: a few dozen for a simple regression, billions for an LLM.
The 3 types of machine learning
| Type | How it learns | Example |
|---|---|---|
| Supervised | From examples labeled with the right answer. | Predicting a price, flagging an email as spam or not. |
| Unsupervised | By finding groups or structure in unlabeled data on its own. | Grouping customers with similar buying habits. |
| Reinforcement | By acting, receiving a reward or penalty, and adjusting its strategy. | Learning to play a game, controlling a robot. |
Supervised learning is the most common in business, because most problems come down to predicting a value you learn after the fact. A fourth family has grown in importance: self-supervised learning, where the labels come from the data itself. A language model trains this way by guessing the next word of a text, with no human annotation.
Machine learning vs AI vs deep learning
These terms fit inside each other like nesting dolls:
- **Artificial intelligence** is the whole field. Recital 12 of the EU AI Act includes both machine learning approaches, which learn from data, and logic- and knowledge-based approaches, which infer from encoded knowledge. A 1980s expert system belongs to the second family.
- Machine learning is the part of AI that learns from data. It includes simple methods such as decision trees and regression.
- **Deep learning** is a branch of machine learning that uses neural networks with many layers. It leads in vision, speech and language.
Assistants like ChatGPT sit at the end of this chain: they are chatbots built on LLMs, which are themselves a product of deep learning. Machine learning is also spreading fast in business: in the EU, 20% of companies with 10 or more employees used AI in 2025, up from 13.5% a year earlier, according to Eurostat.
Machine learning examples in everyday life
- Spam filtering: Google said in 2019 that its machine learning models, together with its other protections, block more than 99.9% of spam, phishing and malware from reaching Gmail inboxes.
- Recommendations: films, music or products suggested from what you and similar users liked.
- Fraud detection: your bank spots a payment that does not match your habits and blocks it.
- Speech and translation: voice dictation, automatic captions and instant translation.
- Text analysis: sorting customer reviews or incoming emails. According to Eurostat, written-language analysis is the AI technology EU businesses use most, by a small margin: 11.75% of them in 2025.
For a broader look at workplace uses, read our guide on how to use AI.
The limits of machine learning
- Biased data makes a biased model: a hiring tool trained on past hires repeats the imbalances in those hires.
- Correlation is not understanding: MIT Sloan describes an X-ray model that seemed to detect tuberculosis better than doctors. It was actually keying on the equipment: older machines are more common in countries where the disease is frequent.
- The black box problem: a complex model struggles to explain its decisions, which matters for a loan refusal or a diagnosis.
- The world changes: a model trained before a market or behavior shift loses accuracy unless it is retrained.
- Confident mistakes: applied to language, this gives AI hallucinations.
When machine learning is not the right tool
Machine learning pays off only when three conditions are met: a repetitive task, many good-quality examples, and tolerance for some errors. If the rule fits in one sentence ("apply a 10% discount to this product"), a spreadsheet or ordinary program is simpler, cheaper and always exact. If you only have a few dozen examples, the model has nothing to learn from. And if every decision must be justified line by line, an explicit rule is easier to defend than a statistical prediction.
Frequently asked questions
What is the difference between AI and machine learning?
Artificial intelligence covers any system that performs a task we consider intelligent, including systems built on hand-written rules. Machine learning is the part of AI that learns those rules from data. Nearly all recent AI relies on machine learning, but not all AI uses it.
What are the 3 types of machine learning?
Supervised learning learns from examples where the right answer is known. Unsupervised learning finds groups in unlabeled data on its own. Reinforcement learning learns by trial and error, guided by rewards.
What is a simple example of machine learning?
Your email spam filter. It learned from millions of already sorted messages to recognize the signs of junk mail. Each time you mark a message as spam, you give it another example.
Is ChatGPT machine learning?
Yes. ChatGPT runs on a large language model trained with machine learning on vast amounts of text, then refined with human feedback. More precisely, it belongs to deep learning, the branch of machine learning that uses deep neural networks.
How do I start learning machine learning?
Start with the basics: statistics, simple linear algebra and the Python language. The free scikit-learn library then lets you try classic algorithms on small datasets. Online courses such as Google's Machine Learning Crash Course guide you step by step.
Sources
- The Nobel Prize in Physics 2024, press releaseRoyal Swedish Academy of Sciences
- The Discipline of Machine LearningCarnegie Mellon University (Tom M. Mitchell)
- Some Studies in Machine Learning Using the Game of CheckersIBM Journal (Arthur L. Samuel, 1959)
- Recital 12, EU Artificial Intelligence ActAI Act (Regulation (EU) 2024/1689)
- Machine learning, explainedMIT Sloan School of Management
- Machine Learning Crash CourseGoogle for Developers