Artificial intelligence, Machine Learning and Deep Learning show up together in news, courses and technical documentation, and they are often used as if they were synonyms. They are not. The difference isn’t a matter of opinion or trend: each term describes a different scope, and understanding it helps you read documentation, choose tools and not get lost when someone says “we use AI” without explaining what’s behind it.
The core idea is simple: the three concepts don’t sit side by side, but one inside the other. Deep Learning is a type of Machine Learning, and Machine Learning is one way of building artificial intelligence. In this article you will see what defines each one, how they differ in practice and how to recognize them in a technology you probably use every day.
Three terms, one inside the other

Artificial intelligence is the biggest circle. Inside it is Machine Learning, and inside that, Deep Learning. That is why everything that is Deep Learning is also Machine Learning and artificial intelligence, but not the other way around.
Artificial intelligence: the goal, not the technique
Artificial intelligence (AI) is the broadest of the three terms. AWS describes it as an umbrella term that groups different strategies and techniques so machines can perform tasks we normally associate with human intelligence: recognizing images, understanding language, making decisions or making predictions.
The important thing is that AI defines a goal, not a specific method. There are several paths to that goal, and not all of them involve learning from data. One of the oldest is rule-based systems: a person writes, one by one, the conditions the program must follow.
Imagine an email filter that works like this: if the subject contains “you won a prize” or the sender is on a blocklist, the message goes to the spam folder. That filter makes a decision a person used to make, so it fits the definition of AI. But it doesn’t learn anything: if spammers change the phrase to “you’ve won a gift”, someone has to rewrite the rule.
That limitation is exactly what motivates the next level.
Machine Learning: when the rules come from the data
Machine Learning (ML) is a branch of AI in which nobody writes the rules by hand. Instead, the system receives many examples and finds on its own the patterns that let it solve the task.
Let’s go back to email. With Machine Learning, the starting point isn’t a list of forbidden phrases, but thousands of emails that someone has already labeled as “spam” or “not spam”.

During training, an algorithm analyzes those examples and adjusts a model until it can tell them apart. Then, during inference, the model receives an email it has never seen and estimates which group it belongs to.
This changes the way you work in two ways:
- Rules aren’t programmed, they’re learned. If a new kind of spam appears, you retrain the model with updated examples instead of rewriting conditions.
- The result comes with a degree of confidence. The model doesn’t say “this is spam” with absolute certainty; it calculates how likely it is, and you decide at which value you act.
When the examples come with the correct answer (like the already-labeled emails), it is called supervised learning. When the system only receives unlabeled data and has to discover groups or patterns on its own, it is called unsupervised learning.
Classic Machine Learning works very well with structured data, that is, information organized in rows and columns: a customer’s purchase history, form data or lab results. In these cases, a person usually decides which characteristics (features) the model looks at: the number of links in the email, whether the sender is known, the time it was sent. Typical examples are predicting which customers will cancel a service, detecting spam or recommending products.
Deep Learning: neural networks with many layers
Deep Learning is a type of Machine Learning. It still learns from examples, but it does so with a specific structure: artificial neural networks.
A neural network is made up of layers of computing units connected to each other, inspired in a very simplified way by the neurons in the brain. The first layer receives the input data, the last one produces the result and, between them, there are intermediate layers (called hidden layers) that transform the information step by step. The word “deep” refers precisely to that: the network has many layers stacked up.
Why so many layers matter

Each layer transforms what it receives from the previous one into something a bit more abstract. Nobody tells the network which features to look at: it discovers them during training. A real network has many more neurons and layers, and what each one learns isn’t always so easy to name.
That is the big practical difference from classic Machine Learning. While there a person usually chooses the features, Deep Learning extracts them with very little human intervention. That is why it shines with unstructured data, such as images, audio and text, where it would be almost impossible to describe by hand what needs to be observed.
The cost of depth
That capability comes at a price. According to AWS, Deep Learning usually needs much more training data and more computing power than classic Machine Learning, which also increases cost. That is why it isn’t always the best option: for a table with a few columns and a few thousand rows, a classic model can be faster, cheaper and easier to explain.
One example that contains all three: unlocking your phone with your face
Facial recognition on a phone is a good case for seeing the full relationship. Apple, for example, documents that Face ID compares your face with the enrolled data using neural networks trained specifically for that task, and that it uses another neural network to detect spoofing attempts with photos or masks.
With that, you can already classify it:
- It is Deep Learning, because it uses neural networks to recognize patterns in images of your face.
- It is also Machine Learning, because those networks learned from examples instead of following hand-written rules. Nobody programmed “if the nose is this long, it’s the phone’s owner”.
- And it is also artificial intelligence, because it solves a task that normally requires human perception: recognizing a person.
The reasoning only works in one direction. Everything that is Deep Learning is also Machine Learning and AI, but not the other way around: the rule-based spam filter from the beginning is AI, even though it is neither Machine Learning nor Deep Learning.
Quick comparison
| Artificial intelligence | Machine Learning | Deep Learning | |
|---|---|---|---|
| What it is | Broad field: machines that perform tasks typical of human intelligence | Branch of AI that learns patterns from examples | Type of ML that uses neural networks with many layers |
| Who defines the rules | It can be a person (rules) or the system itself (learning) | The model, from the data | The model, including the features it looks at |
| Data where it shines | Depends on the technique | Structured data (tables) | Unstructured data: images, audio, text |
| Data and compute | Variable | Moderate | Lots of data and more computing power |
| Example | Spam filter with hand-written rules | Spam filter trained on labeled emails | Face unlock on a phone |
Common mistakes when using these terms
Thinking all AI learns on its own. Part of AI works with fixed rules, searches or programmed logic. A system making decisions doesn’t mean it was trained on data.
Using Machine Learning and Deep Learning as synonyms. All Deep Learning is Machine Learning, but many Machine Learning models don’t use deep neural networks. A model that predicts whether a customer will cancel their subscription from a table of data can be solved very well without Deep Learning.
Believing deeper is always better. A network with many layers needs more data, more training time and more resources. If the problem is simple or the data is scarce, a classic model usually gives equally good results and is easier to understand.
Confusing AI with generative AI. Assistants that write text or generate images are one specific case of AI, built with Deep Learning. But AI also includes systems that classify, predict or recommend without generating new content.
Where these concepts appear on AWS
On AWS you can work at different levels of this hierarchy, depending on how much you want to build yourself:

AWS also draws that distinction: building a Machine Learning solution involves preparing a dataset and choosing a model, while many AI capabilities are consumed as ready-made services.
What’s worth remembering
Artificial intelligence is the general goal: getting a machine to solve tasks we associate with human intelligence, with hand-written rules or with learning. Machine Learning is the part of AI that learns those rules from examples. Deep Learning is the part of Machine Learning that does it with neural networks of many layers, and that is why it shines with images, audio and text.
Whenever you hear any of the three terms, ask yourself a question: who wrote the rules, a person or the data? And if it was the data, were deep neural networks used? With those two questions you’ll place almost any technology in the right spot.
The natural next step is to understand how a machine learns from examples: what happens during training and why data matters so much.
References
- What’s the Difference Between AI and Machine Learning? — AWS
- What’s the Difference Between Machine Learning and Deep Learning? — AWS
- What is Artificial Intelligence (AI)? — AWS
- Face ID security — Apple Platform Security
- About Face ID advanced technology — Apple Support
Keep learning:
- Previous lesson: What is artificial intelligence? (coming soon to the blog)
- Next lesson: How does a machine learn? (coming soon to the blog)
If this article helped you, share it with someone who is just getting started with the cloud. See you in the next AWS Unmapped article.
