Is it AI, machine learning, or deep learning?
People use these three terms as if they mean the same thing — they don't. They're nested: deep learning sits inside machine learning, which sits inside AI. Learn what each one really means, how to tell them apart, and where today's generative AI fits — right here on the page.
01The big picture: nested, not separate
The simplest way to keep these terms straight is to picture circles inside circles. Artificial intelligence is the big outer circle — the broad goal of getting machines to do things that normally need human-like intelligence. Machine learning is a circle inside it. Deep learning is a smaller circle inside machine learning. And generative AI — the chatbots and image makers in the headlines — is an application built inside deep learning. Tap each ring to see what it means and an everyday example.
Artificial Intelligence (AI)
The widest term: any technique that lets a machine carry out tasks we'd normally call "intelligent" — reasoning, planning, understanding language, recognizing images. Crucially, this includes plain hand-coded rules: a system that follows if-then logic written by a person is still AI, even though it never learns anything.
- AI is the broad goal — and it includes both learning systems and systems that just follow hand-coded rules.
- Machine learning is the subset that learns patterns from data instead of being explicitly programmed.
- Deep learning is a subset of machine learning that uses many-layered neural networks; generative AI is one application of it.
02The line that matters most: rules vs. learning
If you only remember one distinction, make it this one. Traditional AI does what a programmer told it to do: a person writes the rules — "if the email contains these exact words, mark it spam" — and the machine follows them. Machine learning flips that around. Instead of writing the rules, you show the system thousands of labelled examples and it figures out the patterns itself. Nobody hand-writes "spam looks like this"; the model learns it from the data. That shift — from programmed to learned — is the heart of what makes machine learning different from the rest of AI.
- Rule-based AI: a human writes the logic; behaviour only changes when a human edits the rules.
- Machine learning: the system is shown examples and learns the patterns; it improves as it sees more data.
- Both are "AI" — the difference is where the rules come from: a person, or the data.
03Three ways a machine can learn
"Machine learning" isn't one method — there are three broad styles, and they differ in what kind of data they get and how they get feedback. Switch between them to see the idea and a one-line example of each.
Supervised — learning from labeled examples
The system is trained on data where each example comes with the right answer (a label). It learns to map inputs to those known answers, then applies that mapping to new, unseen inputs. This is the most common style in everyday applications.
Unsupervised — finding structure in unlabeled data
The data has no labels. The system's job is to discover hidden structure on its own — grouping similar things together or spotting patterns nobody pointed out in advance.
Reinforcement — learning by trial and reward
The system learns by acting, then getting feedback — a reward for good outcomes, a penalty for bad ones. Over many tries it adjusts its behaviour to earn more reward, learning through trial and error rather than from a fixed answer key.
04Where deep learning & generative AI fit
Deep learning is a particular way of doing machine learning: it uses neural networks with many layers ("deep" = many layers). Those extra layers let it learn very complex patterns directly from raw data — which is why deep learning powers most of the recent breakthroughs in image recognition and understanding language. Generative AI — the tools that write text, answer questions, or create images — is an application of deep learning: the same many-layered networks, pointed at the job of creating new content rather than just classifying or predicting. So the headline tools you hear about are deep learning, which is machine learning, which is AI — all the way out to that big outer circle.