AI Foundations ← pitcsolutions.com All lessons

Lesson 1 of 13 in Start here, about 10 minutes

AI vs ML vs Deep Learning vs Generative AI

Four terms you hear every day, and how each one sits neatly inside the one before it.

By the end of this lesson you will be able to

  • define AI, Machine Learning, Deep Learning and Generative AI in one sentence each
  • explain why each one is a subset of the one before it
  • place a real product (ChatGPT, a spam filter, Face ID) in the right category

The big picture: circles inside circles

People often use these four terms as if they mean the same thing. They don't. The easiest way to remember them is as nested circles: each one is a special, more powerful part of the one outside it.

Nested circles: AI contains Machine Learning, which contains Deep Learning, which contains Generative AI Artificial Intelligence machines that act intelligently Machine Learning learns patterns from data Deep Learning many-layer neural networks Generative AI creates new content
Every Generative AI system is a Deep Learning system, every Deep Learning system is Machine Learning, and all of it is AI. The reverse is not true.
AI→Machine Learning→Deep Learning→Generative AI

As you move right, capability goes up, and so does the need for data and computing power.

Each term in one sentence

Artificial Intelligence

The broad field of building machines that can mimic human intelligence. It includes rule-based systems that never “learn” at all.

Machine Learning

A part of AI where machines learn from data instead of being programmed with every rule.

Deep Learning

A part of ML that uses neural networks with many layers to discover complex patterns by itself.

Generative AI

A part of Deep Learning that creates new content: text, images, code, audio and video.

Think of it like learning mathematics
  • AI is the entire subject of Mathematics.
  • ML is learning algebra by solving many examples.
  • Deep Learning is mastering advanced maths by discovering patterns yourself across thousands of problems.
  • Generative AI is when, after mastering maths, you can write new questions, explain concepts and produce a whole textbook.

Side-by-side comparison

Scroll the table sideways on a phone. Read it one row at a time and notice how each column “grows” compared with the one on its left.

FeatureAIMachine LearningDeep LearningGenerative AI
DefinitionA broad field of creating machines that mimic human intelligenceMachines learn from data without being explicitly programmedUses multi-layer neural networks to learn complex patternsCreates new content such as text, images, code, audio and video
Main goalMake machines intelligentLearn patterns from dataLearn highly complex patterns automaticallyGenerate content that looks human-created
Works byRules, logic, search algorithms, expert systems, MLTraining algorithms on historical dataArtificial neural networks with many hidden layersLarge neural networks: LLMs, diffusion models, GANs, Transformers
Needs training data?SometimesYesYes, usually huge datasetsYes, very large datasets
Feature engineeringMostly manualOften manualLearns features automaticallyLearns representations automatically
Data requirementLow to mediumMediumHighVery high
Computing powerLowMediumHigh (GPU/TPU)Very high (large GPU clusters)
AccuracyDepends on the rulesBetter than rule-based systemsVery high on complex tasksExcellent for content generation
Creates new content?Usually noUsually noLimitedYes
Typical methodsRule engines, expert systems, A* searchLinear regression, decision trees, random forest, SVM, K-MeansCNN, RNN, LSTM, TransformerGPT, Claude, Gemini, Stable Diffusion, DALL·E
Example applicationsChess, expert systems, roboticsSpam and fraud detection, recommendationsFace and speech recognition, self-driving carsChatGPT, image generation, code generation, AI assistants
AWS servicesRekognition, Lex, Polly, ComprehendSageMaker AI, PersonalizeSageMaker AI, Trainium, InferentiaBedrock, Amazon Q, Amazon Nova, SageMaker AI
Everyday exampleA robot following predefined instructionsAn email spam classifierFace unlock on your phoneChatGPT writing an email or code

The family tree

Here is the same relationship drawn as a tree, with the main branches you will meet in later lessons.

Family tree of AI: rule-based AI and machine learning; machine learning branches into supervised, unsupervised, reinforcement and deep learning; deep learning includes CNN, RNN, LSTM and Transformer; Transformer leads to Generative AI with LLMs, image, audio and video models Artificial Intelligence Rule-based AI Machine Learning Supervised Unsupervised Reinforcement Deep Learning CNN RNN LSTM Transformer Generative AI LLMsGPT, Claude Image Audio Video
LSTM stands for Long Short-Term Memory, a type of RNN that remembers information for longer.

One example that uses all four

Imagine you are building the software for a bank. Each technology plays a different role:

TechnologyWhat it does for the bank
AIMakes the overall banking system “smart”.
Machine LearningLearns which transactions are fraudulent from past examples.
Deep LearningRecognises customers from their face or voice.
Generative AIAnswers customer questions, writes emails, summarises documents and generates reports.
Try it: sort these products

Put each into the smallest circle it belongs to: a chess program that searches moves by fixed rules, Netflix recommendations, Face ID, a chatbot that writes poems, Google Translate.

Show suggested answers

Chess by fixed rules: AI (rule-based). Netflix recommendations: ML. Face ID: Deep Learning. Poem-writing chatbot: Generative AI. Google Translate: Deep Learning (a Transformer), and it is also generative because it produces new sentences.

Key takeaways

  • AI → ML → Deep Learning → Generative AI: each is a specialised subset of the one before.
  • ML learns from data; Deep Learning does it with many-layer neural networks; Generative AI uses those networks to create new content.
  • Moving inward needs more data and more computing power, but unlocks harder tasks.

Check your understanding

1. Which statement is always true?

Deep Learning sits inside Machine Learning. Not all AI learns (rule-based systems don't), and most ML models predict rather than create.

2. An email spam filter trained on thousands of labelled emails is best described as…

It learns patterns from labelled historical data, which is the definition of Machine Learning.

3. What does Deep Learning do that classical ML usually doesn't?

Classical ML often needs humans to hand-craft features. Deep networks discover their own features, which is why they need more data and GPUs.