Lesson 1 of 4 AI and ML Fundamentals

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.

FieldWhat it isExample
Artificial intelligence (AI)Systems that perform tasks normally needing human intelligence. Early AI was rule-based: people wrote the logic by handAn expert system with hand-written rules
Machine learning (ML)Systems that learn patterns from data instead of following rules, producing a model that makes predictionsA spam filter trained on labelled emails
Deep learningML using neural networks with many layers; needs lots of data and GPUs; excels at unstructured dataRecognising faces in photos
Generative AIDeep learning that creates new content, powered by foundation models (FMs)Writing a reply to a customer
Agentic AIGenerative AI that plans, uses tools and takes actions towards a goal, with memory across stepsReading 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.

How the fields nest. Artificial intelligence is the broadest field: systems that perform tasks needing human intelligence, including hand-written rules. Machine learning learns patterns from data. Deep learning is machine learning with many-layered neural networks, suited to images, audio and text. Generative AI is deep learning that creates new content with foundation models, and agentic AI builds on it to plan, use tools and act towards a goal.
Each field is a subset of the one around it.
Put in order

From broadest to narrowest

Exam skills 1.1.1 · 1.1.2

Arrange the fields of AI from the broadest to the most specific.

Log in to try this activity Interactive activities are free with an account.

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.

Sort into groups

Predict or generate?

Exam skills 1.1.2 · 1.2.6

Decide whether each request needs a prediction from a traditional ML model or new content from generative AI.

Log in to try this activity Interactive activities are free with an account.

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.

AreaTasks
Computer visionImage classification, object detection, facial analysis, video analysis
Natural language processing (NLP)Sentiment, entity extraction, translation, summarisation
SpeechSpeech to text and text to speech
OtherRecommendations, forecasting, anomaly detection
Match the pairs

Application areas

Exam skills 1.2.4

Match each task with the area of AI it belongs to.

Log in to try this activity Interactive activities are free with an account.
Worked example

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:

SystemCategoryWhy
Discount applied when the basket is over $100Not ML (rule-based)A person wrote the rule; nothing is learned from data
Forecast of next week's sales from three years of historyMachine learningLearns patterns from structured historical data
Detecting damaged packages in warehouse camera imagesDeep learningImages are unstructured data; neural networks learn visual features
Writing product descriptions from a list of featuresGenerative AICreates new text with a foundation model
An assistant that reads a complaint, checks the order and issues a refundAgentic AIPlans 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.

Check yourself

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.