What AI, ML and deep learning actually are
Artificial Intelligence (AI) is the broad field of building systems that can perform tasks normally needing human intelligence - reasoning, perception, language, decision-making.
Machine Learning (ML) sits inside AI: it is the practice of training algorithms on data so they learn patterns and improve at a task without being explicitly programmed with rules for every case.
Deep learning sits inside ML: it uses artificial neural networks with many layers (hence 'deep') to learn complex patterns, especially from unstructured data like images, audio and text.
Generative AI sits inside deep learning: models (often built on transformer architecture) that generate new content - text, images, code, audio - rather than just classifying or predicting a number.
The three main ML learning types
- Supervised learning: trains on labelled data (input plus known correct output), e.g. predicting house price from features. Used for classification and regression.
- Unsupervised learning: trains on unlabelled data to find structure, e.g. clustering customers into segments. No 'correct answer' given.
- Reinforcement learning: an agent learns by taking actions in an environment and receiving rewards or penalties, aiming to maximise cumulative reward over time, e.g. game-playing agents or robotics.
Key building blocks of neural networks
- Neurons (nodes) organised in layers: input layer, one or more hidden layers, output layer.
- Weights and biases: learned numeric values that determine how strongly inputs influence outputs.
- Activation functions (e.g. ReLU, sigmoid): introduce non-linearity so networks can learn complex patterns, not just straight lines.
- Training uses forward propagation (making a prediction) and backpropagation (adjusting weights based on the error, using gradient descent) across many epochs.
Common exam trip-ups
- Do not confuse AI (broadest), ML (subset), deep learning (subset of ML) and generative AI (subset of deep learning) - the exam loves testing this nesting.
- Labelled data is the defining feature of supervised learning, not unsupervised.
- Reinforcement learning is defined by reward signals and sequential decisions, not by having labelled training examples.
- A model 'training' on data is different from a model 'performing inference' (making predictions on new, unseen data) - know the split between the training phase and the inference phase.
- Overfitting means a model performs well on training data but poorly on new data - it has memorised rather than generalised.
How does AI relate to ML, deep learning and generative AI?
Nested subsets: AI is broadest, ML is a subset of AI, deep learning is a subset of ML, generative AI is a subset of deep learning.
tap to reveal
What defines supervised learning?
Training on labelled data (inputs with known correct outputs) for tasks like classification and regression.
tap to reveal
What defines unsupervised learning?
Training on unlabelled data to discover hidden patterns or structure, e.g. clustering.
tap to reveal
What defines reinforcement learning?
An agent learns by taking actions in an environment and receiving rewards or penalties, aiming to maximise cumulative reward.
tap to reveal
What makes deep learning 'deep'?
Neural networks with multiple hidden layers between the input and output layers.
tap to reveal
What is backpropagation?
The process of adjusting a neural network's weights based on prediction error, using gradient descent, to reduce error over training.
tap to reveal
What role do activation functions play?
They introduce non-linearity so the network can learn complex, non-straight-line patterns.
tap to reveal
What is the difference between training and inference?
Training is when the model learns from data; inference is when the trained model makes predictions on new, unseen data.
tap to reveal
What is overfitting?
When a model performs well on training data but poorly on new data because it has memorised rather than generalised.
tap to reveal
What is generative AI typically built on?
Transformer architecture, used to generate new content such as text, images, audio or code.
tap to reveal
What is the difference between classification and regression?
Classification predicts a discrete category/label; regression predicts a continuous numeric value.
tap to reveal
Give an example task suited to unsupervised learning.
Customer segmentation - clustering customers into groups without predefined labels.
tap to reveal
Give an example task suited to reinforcement learning.
A game-playing agent or robot learning optimal actions through trial and reward feedback.
tap to reveal