Distinguishing AI, Machine Learning, Deep Learning and Generative AI
This lesson explains how the fields of artificial intelligence relate to one another, the foundation for the whole exam. Many questions ask you to place a technology or use case in the right category.
Learning outcomes
After completing this lesson, you will be able to:
- Explain how AI, machine learning, deep learning and generative AI nest inside one another.
- Distinguish the kinds of question traditional machine learning and generative AI answer.
- Identify the main application areas of AI, such as computer vision and natural language processing.
How the fields fit together
The fields nest inside one another: AI contains machine learning, which contains deep learning, which contains generative AI.
Artificial intelligence (AI) is the broadest term: any system that performs tasks that normally need human intelligence. Early AI was rule-based, with people writing the logic by hand, such as an expert system. Machine learning (ML) is the part of AI in which systems learn patterns from data instead of following written rules. Training produces a model, which then makes predictions, such as a spam filter trained on emails labelled spam or not spam.
Deep learning is machine learning with neural networks of many layers. It needs large amounts of data and GPUs, and it excels at unstructured data such as images, audio and text, for example recognising faces. Generative AI is deep learning that creates new content, such as text, images or code, using very large models called foundation models. Agentic AI builds on generative AI: an agent plans steps, uses tools and takes actions towards a goal, remembering what it has done, such as reading a support ticket, issuing a refund and emailing the customer. The following table summarises the fields.
| Field | What it is | Example |
|---|---|---|
| Artificial intelligence (AI) | Systems that perform tasks normally needing human intelligence. Early AI was rule-based: people wrote the logic by hand | An expert system with hand-written rules |
| Machine learning (ML) | Systems that learn patterns from data instead of following rules, producing a model that makes predictions | A spam filter trained on labelled emails |
| Deep learning | ML using neural networks with many layers; needs lots of data and GPUs; excels at unstructured data | Recognising faces in photos |
| Generative AI | Deep learning that creates new content, powered by foundation models (FMs) | Writing a reply to a customer |
| Agentic AI | Generative AI that plans, uses tools and takes actions towards a goal, with memory across steps | Reading a ticket, issuing a refund and emailing the customer |
Rules still work well when the logic is fixed and known; ML is needed when there are too many cases to write down. Classic ML algorithms include linear and logistic regression, decision trees, random forests, XGBoost and k-means. Large language models (LLMs) are foundation models for text.
The following diagram shows the fields nested inside one another, with an example of each.

From broadest to narrowest
Traditional ML versus generative AI
Traditional machine learning and generative AI answer different kinds of question. A traditional ML model makes a prediction about an input: it answers questions such as "is this transaction fraudulent?" or "how many units will we sell next week?" with a category, a number or a score. Each model is usually trained for one task on the organisation's own data, and its answer can be checked against what actually happens.
A generative AI model creates new content. It answers requests such as "write a reply to this customer" or "summarise this report" with text, images or code that did not exist before. One foundation model can perform many such tasks, guided by the instructions in its prompt, and there is often no single correct answer, so its output is judged against criteria such as accuracy and tone.
Deep learning is what makes generative AI possible. In a deep neural network, each layer learns features that are more abstract than those of the layer before: in an image model, early layers detect edges, later layers combine edges into shapes, and the final layers recognise objects such as faces. Because the network learns these features itself, it can work directly with raw images, audio and text.
Predict or generate?
Application areas
AI is applied in a few broad areas. Computer vision works with images and video: classifying images, detecting objects, analysing faces and following activity in video. Natural language processing (NLP) works with text: finding sentiment, extracting names and places, translating and summarising. Speech converts spoken words to text and text to speech. Other common uses include recommending products, forecasting demand and detecting anomalies, such as unusual transactions. The following table summarises the areas.
| Area | Tasks |
|---|---|
| Computer vision | Image classification, object detection, facial analysis, video analysis |
| Natural language processing (NLP) | Sentiment, entity extraction, translation, summarisation |
| Speech | Speech to text and text to speech |
| Other | Recommendations, forecasting, anomaly detection |
Application areas
Placing five systems in the right category
A retailer lists five systems it runs or plans to build, and asks which kind of AI each one is. Working through them shows how the nested categories are used in practice:
| System | Category | Why |
|---|---|---|
| Discount applied when the basket is over $100 | Not ML (rule-based) | A person wrote the rule; nothing is learned from data |
| Forecast of next week's sales from three years of history | Machine learning | Learns patterns from structured historical data |
| Detecting damaged packages in warehouse camera images | Deep learning | Images are unstructured data; neural networks learn visual features |
| Writing product descriptions from a list of features | Generative AI | Creates new text with a foundation model |
| An assistant that reads a complaint, checks the order and issues a refund | Agentic AI | Plans steps and calls tools (order system, payments) to act |
Notice that the first system is perfectly good without AI. Exam questions sometimes describe a fixed, well-understood rule and offer machine learning as a distractor; the simplest correct answer is to keep the rule.
What is the difference between machine learning and deep learning?
Show answer
Deep learning is a kind of machine learning that uses neural networks with many layers, which learn useful features directly from raw data such as images, audio and text. Other ML methods often rely on features chosen by people.
Exam Tips
Remember for the exam
- The fields nest inside one another: AI contains machine learning, which contains deep learning, which contains generative AI.
- A system that learns from data instead of explicit rules is machine learning.
- Many-layered neural networks for images, audio and text are deep learning.
- Creating new content with foundation models is generative AI.
- A system that plans and acts using tools is agentic AI.
- NLP deals with language; computer vision deals with images and video.