AI, machine learning and deep learning
Three nested ideas, how each one learns, and why the deepest circle is the one that needs GPUs.
- 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.
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:
- Features: the numeric inputs the model sees (house size, number of rooms). Text and images are turned into numbers too, often as vectors called embeddings.
- Parameters (or weights): the numbers inside the model that training adjusts.
- Loss function: a score of how wrong the model is. Training tries to make it smaller.
- Gradient descent and backpropagation: the method used to nudge every weight in the direction that lowers the loss, layer by layer, backwards from the output.
- Training vs inference: training is the learning phase; inference is using the trained model to make predictions. This split drives the whole hardware story (next lessons).
Three ways a model can learn
| Paradigm | Data it needs | Typical tasks | Examples |
|---|---|---|---|
| Supervised | Labelled examples (input + correct answer) | Classification, regression | Spam filter, price prediction, image classification |
| Unsupervised | Unlabelled data | Clustering, association, dimensionality reduction | Customer segments with k-means, PCA |
| Reinforcement | An environment that returns rewards | Learning a policy of actions | Game 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.
Common deep learning architectures you should recognise by name and purpose:
| Architecture | Good at | Notes |
|---|---|---|
| CNN (convolutional) | Images and video | Learns visual filters: edges, then shapes, then objects |
| RNN / LSTM | Sequences | Keeps a hidden state; largely replaced by transformers for language |
| Transformer | Language, and now almost everything | Introduced in 2017; the attention mechanism processes a whole sequence in parallel; the basis of LLMs |
| Diffusion, GAN, VAE | Generating images and other media | Generative 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.
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
- 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.
- "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
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.