🧠
Domain 1 · Essential AI Knowledge · 38% of the exam

AI, machine learning and deep learning

Three nested ideas, how each one learns, and why the deepest circle is the one that needs GPUs.

Lesson 2 of 29~16 min read5 quiz questions6 key terms
Exam objectives this lesson covers
  • Differentiate the concepts of AI, machine learning, and deep learning.
  • Explain the key AI use cases and industries.

The exam objective is "differentiate AI, ML and DL". The short answer is a set of nested circles: all deep learning is machine learning, all machine learning is AI, but not the other way round. IBM's article puts it neatly: all ML is AI, but not all AI is ML. The longer answer, and the one that helps with harder questions, is about where the logic comes from.

Artificial Intelligenceany technique that mimics intelligent behaviourMachine Learninglearns patterns from dataDeepLearningmany-layer neural netsRules-based AIif temp > 22: cool()Classic MLtrees, SVM, k-meansDeep learningCNN, RNN, Transformer
Fig 1. Nested circles. On the right, the same idea as examples: hand-written rules, classic ML models, and deep neural networks.

01Artificial intelligence: the broadest circle

AI is any technique that makes a machine behave in a way we would call intelligent: reasoning, planning, perceiving, using language. Crucially, AI does not have to learn. A thermostat that switches the cooling on above 22°C, or a 1980s "expert system" built from thousands of if-then rules written by specialists, is rules-based AI. The intelligence is in the rules a human typed. That works for narrow, stable problems and breaks down when the world is too messy to describe with rules (try writing rules that recognise a cat in any photo).

02Machine learning: logic learned from data

Machine learning flips the approach. Instead of writing the rules, you give the system examples and let it find the patterns. The term goes back to Arthur Samuel's checkers-playing program in 1959. The goal is generalisation: perform well on new data the model has never seen, not just memorise the training set.

A few words appear in every ML discussion, and the exam assumes them:

Three ways a model can learn

ParadigmData it needsTypical tasksExamples
SupervisedLabelled examples (input + correct answer)Classification, regressionSpam filter, price prediction, image classification
UnsupervisedUnlabelled dataClustering, association, dimensionality reductionCustomer segments with k-means, PCA
ReinforcementAn environment that returns rewardsLearning a policy of actionsGame playing, robotics, tuning LLMs with RLHF

Two refinements are worth knowing. Self-supervised learning creates its own labels from the data (for example, hide a word in a sentence and predict it); this is how large language models are pretrained. Semi-supervised learning mixes a small labelled set with a large unlabelled one.

03Deep learning: many layers, features learned automatically

Deep learning is machine learning with neural networks that have many layers. Each layer transforms its input a little; stacked together they can represent extremely complex functions. The big practical difference from classic ML is feature engineering. With classic ML, a human usually decides which features matter. With deep learning, the network learns its own features from raw data (pixels, audio samples, tokens). That scales far better, at the cost of being harder to interpret.

input layerhidden layers (the "deep" part)output
Fig 2. A small neural network. Signals flow forward through hidden layers; during training, error flows backward to adjust each connection weight.

Common deep learning architectures you should recognise by name and purpose:

ArchitectureGood atNotes
CNN (convolutional)Images and videoLearns visual filters: edges, then shapes, then objects
RNN / LSTMSequencesKeeps a hidden state; largely replaced by transformers for language
TransformerLanguage, and now almost everythingIntroduced in 2017; the attention mechanism processes a whole sequence in parallel; the basis of LLMs
Diffusion, GAN, VAEGenerating images and other mediaGenerative models

04Why deep learning is the circle that needs GPUs

Deep learning only took off around 2012 when three things came together: huge datasets, better algorithms, and GPUs that could do the enormous number of matrix multiplications in parallel. A modern network has billions of parameters, and training it means multiplying large matrices billions of times. That is exactly the parallel arithmetic a GPU is built for (see CPU vs GPU). Classic ML on small tabular data often runs perfectly well on CPUs; deep learning at scale does not.

Teaching someone to recognise birds. Rules-based AI hands them a field guide of rules. Classic ML gives them photos plus a checklist of features to look at (beak length, wing colour). Deep learning shows them millions of photos and lets them work out for themselves which features matter.

05Where it is used

IBM lists the big families of use: computer vision (inspection, medical imaging), natural language processing (chatbots, translation, search), time series (forecasting, fraud), and generative models (images, code, text). Industry examples you can expect in exam questions: fraud detection in finance, recommendation in retail, diagnostics and drug discovery in healthcare, predictive maintenance in manufacturing, autonomous driving in automotive. The LLM use cases lesson goes deeper on generative AI.

06Keeping models healthy: MLOps

A model is not finished when training ends. Data in the real world drifts away from the training data (model drift), and a model can fit its training data too closely and fail on new data (overfitting). MLOps is the practice of managing the whole pipeline, from data curation and training to deployment, monitoring and retraining, with versioning and governance. That pipeline is what the infrastructure in Domains 2 and 3 exists to run.

✦Key terms: flip the cards

What the exam looks for
  • Nested relationship: DL ⊂ ML ⊂ AI.
  • Rules-based AI vs learned models: where the logic comes from.
  • DL learns features automatically; classic ML relies more on feature engineering.
  • Why DL depends on GPUs: massive parallel matrix maths over large data.
Common traps
  • "AI" does not always mean learning; rules-based systems are AI too.
  • Unsupervised learning has no labels, but it is not reinforcement learning (no reward).
  • Transformers are deep learning; do not file LLMs under "classic ML".

?Quick quiz

1. Which statement is correct?

Why: Deep learning is a subset of ML, which is a subset of AI.

2. A model groups customers by purchase behaviour with no labels provided. Which paradigm?

Why: Clustering unlabelled data is unsupervised learning.

3. What most distinguishes deep learning from classic machine learning?

Why: Deep networks learn their own feature representations from raw inputs.

4. An expert system built from hand-written if-then rules is best described as:

Why: It is AI, but the logic is written by people, not learned from data.

5. Which three factors made deep learning practical around 2012?

Why: Large datasets, algorithmic advances and GPU parallel compute came together.

Score: 0 / 5

Original readingWhat Is Machine Learning (ML)?, IBM ↗

This lesson explains the reading in plain language and adds the exam context around it. Read the original too: it is short, and seeing the vendor wording helps on exam day.

All lessons →
↑