Source

Glossary

Plain definitions of every term used in the course. The module where each is explained is in brackets; Module 2 builds the mathematical ones from scratch.

Term Meaning
Accuracy Share of predictions that are right. Misleading when classes are imbalanced. [10]
Activation function A non-linear function applied after a layer's weighted sum, e.g. ReLU. Without it, stacked layers collapse into one linear layer. [5]
Active learning Choosing which examples to label next to improve a model fastest, often the most uncertain. [11]
Adam An optimiser combining momentum with per-parameter step sizes. Used in vision_train.py. [6]
Agent (AI) A system that takes in observations and chooses actions, judged by a performance measure. The textbook framing of AI. [1]
AUC (area under the ROC curve) The probability that a random positive example scores higher than a random negative one. 0.5 is guessing, 1.0 perfect ranking. Says nothing about which threshold to use. [10]
Augmentation (data) Training on randomly transformed copies (flips, rotations) so the model ignores those changes. Only useful for variation you'll really see. [6]
Automation bias People's tendency to accept a system's suggestion even when it's wrong. [11]
Backbone The pre-trained feature-extracting part of a network (here MobileNetV2), as opposed to the task-specific head. [8]
Backpropagation Computing all gradients by applying the chain rule from the loss backwards through the network. [5]
Baseline A simple reference to compare against: random guessing, the majority class, "same as last week", or the current manual process. [1, 10, 12, 14]
Batch / mini-batch A small group of examples processed together; TrayCheck uses 32. [5]
Batch normalisation (BN) A layer that normalises activations with batch statistics in training and stored averages at prediction time. Frozen during TrayCheck's fine-tuning. [7, 8]
Bias (of a measurement) The average difference between a method's estimates and the reference values, e.g. +8 g means it overestimates by 8 g on average. [10]
Bias–variance trade-off Simple models miss the pattern (bias); flexible ones fit the noise (variance). [6]
Binomial distribution The probabilities of getting exactly k "yes" outcomes in n independent tries, each with probability p. Describes spot-check counts. [2, 11]
Bland–Altman limits of agreement Bias ± 1.96 × the standard deviation of the differences: the range within which most individual estimates fall relative to the reference. [10]
Calibration Whether scores match observed accuracy (score 0.9 → right 90% of the time). [10]
Central limit theorem Sums and averages of many independent pieces have a bell-shaped (normal) distribution, whatever the pieces look like. Why the 95% interval works. [2]
Chain rule The derivative of a composition is the product of the derivatives. The engine of backpropagation. [2]
Classification / regression Predicting a category vs predicting a number. [1]
Closed-set classifier A classifier that can only answer with one of its known classes, even for inputs that belong to none of them. TrayCheck is one. [1]
Cohen's kappa Agreement between two raters, corrected for the agreement expected by chance. 0 = chance level, 1 = perfect. [9]
Conditional probability P(A | B): the share of B cases in which A also happens. Precision and recall are conditional probabilities with the condition swapped. [2, 10]
Confidence interval A range that would contain the true value in a stated share (e.g. 95%) of repeated samples. [10, 11]
Confident mistake A wrong prediction with a high score. TrayCheck's example: ribs called bibimbap at 99%. [1, 10]
Conformal prediction Returning a set of classes that contains the right one with a chosen probability. [14]
Confusion matrix A table of real class (rows) vs predicted class (columns). [3, 10]
Convolution Sliding a small filter over an image and computing the same weighted sum at every position. [7]
Cosine similarity Dot product of two vectors divided by the product of their lengths: 1 for the same direction, 0 for unrelated. Used to compare embeddings. [8]
Cross-entropy (log-loss) −log(probability given to the right answer), averaged. TrayCheck's training loss. [2, 4]
Cross-validation Splitting the training data into k folds, training on k − 1 and validating on the remaining fold, in turn, and averaging. Useful when data is scarce. [9]
Data leakage Information from evaluation data getting into training or model choices, inflating results. [9]
Data quality dimensions Completeness, validity, accuracy, consistency, uniqueness and timeliness: the standard ways to check a dataset. [9]
Decision tree A learned flowchart of yes/no questions about the inputs; each leaf predicts the average (or majority) of the training examples that reach it. [4]
Deep learning Machine learning where the features are learned too, by many stacked trainable layers. [1]
Depthwise separable convolution A per-channel spatial filter followed by a 1×1 channel mixer: far cheaper than a standard convolution. [7]
Derivative The slope of a function at a point: how much the output moves per unit nudge of the input. [2]
Distribution shift Deployment data differing from training data (covariate, label or concept shift; new classes). [9]
Dot product Multiply two vectors entry by entry and add up: a weighted sum. The basic computation of every neuron. [2]
Drift Gradual distribution shift after deployment; nothing breaks, the model just gets worse. Found by monitoring. [12]
Dropout Randomly zeroing hidden units during training as regularisation. TrayCheck uses 0.25. [6]
Early stopping Stopping training when a validation metric stops improving, keeping the best weights. [6]
ECE (expected calibration error) Average gap between scores and accuracy across score bins. [10]
Embedding A vector representation of an input. Similar photos get similar vectors (1280 numbers in TrayCheck). [8]
Epoch One full pass over the training data. [5]
Exponential function and the number e e ≈ 2.718. The function eˣ is always positive, keeps order and is its own slope; softmax uses it to make scores positive. [2]
F1 score Harmonic mean of precision and recall; high only if both are high. [10]
Feature A number computed from the raw input that helps the decision. Designed by people in classical ML, learned in deep learning. [1]
Feature extraction / fine-tuning Training only a new head on a frozen backbone / also updating some backbone layers at a low learning rate. [8]
Feature map The grid of outputs one convolution kernel produces: where in the image its pattern occurs. A layer's feature maps are the next layer's channels. [7]
Generalisation Performing well on data not seen during training. [1]
Global average pooling Averaging each channel over all positions, turning a 3×3×1280 map into 1280 numbers. [7]
Gradient The list of partial derivatives: which way and how steeply the loss changes with each parameter. [2]
Gradient boosting Building a model by adding small decision trees one at a time, each fitted to the errors (residuals) left by the ones before. Strong on tables of numbers. [4, 12]
Gradient check Comparing a hand-derived gradient with a numerical estimate from nudging. [4, 5]
Gradient descent Repeatedly stepping parameters against the gradient to reduce the loss. [2]
Ground truth (reference standard) The trusted answer predictions are compared with: a person's confirmed dish, a weighed plate. Its own quality limits how precisely a model can be judged. [9, 10]
Head The task-specific layers on top of a backbone; TrayCheck's is Dense(96) → Dropout → Dense(4). [8]
Hyperparameter A setting chosen rather than learned (learning rate, dropout rate, threshold). Choose on validation. [6]
ImageNet A dataset of ~1.28 million training photos in 1,000 categories, used to pre-train MobileNetV2. [8]
Independence Two events are independent if knowing one happened tells you nothing about the other; then P(A and B) = P(A) × P(B). [2]
Inverted residual block MobileNetV2's block: expand (1×1) → depthwise 3×3 → linear projection (1×1), with a skip connection. [7]
Issues and improvement register One shared list of every problem found in testing and the pilot, with owner, severity and status; model observations are a category. [11, 14]
Label noise Wrong labels in the data. Hurts training and distorts measurement. [9]
Learning rate The step size in gradient descent. The most important training setting. [2, 6]
Least squares Choosing a line's parameters to minimise the sum of squared misses; for linear regression there is a direct formula. [4]
Likelihood / maximum likelihood The probability a model gives to the observed correct answers (a product, for independent examples); training by maximising it leads to the cross-entropy loss. [2]
Linear regression Predicting a number as a weighted sum of the inputs plus a bias, fitted by minimising mean squared error. [4]
Logarithm (ln) The power you'd raise a base to, to get a number; ln uses base e. Turns products into sums; −ln(p) is the classification loss. [2]
Logistic regression A linear model for yes/no predictions; softmax regression is its many-class version. A standard baseline in predictive analytics. [4]
Logits Raw, unnormalised scores before softmax. [2]
Loss A number that scores how wrong a model's outputs are on examples; training chooses parameters that make it small. [1, 2]
Machine learning Fitting the parameters of a hand-written model to examples, instead of writing the decision rule; judged on examples it hasn't seen. [1]
Macro / weighted average Averaging per-class metrics equally / weighted by class size. [10]
MAE / RMSE Mean absolute error: the typical size of a miss. Root mean squared error: like MAE but punishes large misses more. [10, 12]
Matrix multiplication Taking the dot product of an input with each column of a matrix, one output per column. Shapes (a, b) × (b, c) → (a, c). [2]
Mean squared error (MSE) The average of the squared misses. The standard regression loss: smooth, and it punishes big misses more. [4]
Model A family of possible rules with parameters left open; training picks one member of the family. [1, 2]
Model card A short standard document describing a model's intended use, data, results and limits. [13]
Model version An identifier for the exact model file; TrayCheck stores a hash prefix with every record. [12]
Momentum Stepping along a running total of recent gradients (older ones fading), which speeds steady progress and damps zig-zagging. [6]
Normal distribution The bell curve. About 68% of values lie within 1 standard deviation of the mean, 95% within 1.96, 99.7% within 3. [2]
Odds Probability divided by its complement: 0.8 is odds of 4 (to 1). In logistic regression each weight multiplies the odds by eʷ per unit of input. [4]
One-hot A vector with 1 at the correct class and 0 elsewhere; the softmax gradient on the scores is p minus one-hot. [4]
Optimiser The procedure that searches for parameter values with low loss, such as gradient descent or Adam. [1, 6]
Overfitting / underfitting Fitting training data too closely (big train–val gap) / not fitting it well enough. [6]
Parameters The numbers a model learns (weights and biases). TrayCheck's model has 2,381,348. [1, 8]
Pattern recognition The older name for classification, especially from images and sensors. [1]
Precision / recall Of predictions of a class, the share that are right / of real cases of a class, the share found. [10]
Predictive analytics Using historical records to forecast an outcome (meals needed, waste per dish); usually supervised learning on tabular data. [1, 12]
Pre-training Training on a large general dataset before adapting to a specific task. [8]
Process map A diagram of who does what, in what order; drawn for the current and proposed process in a PoC. [12]
Proof of concept (PoC) A limited trial in the real setting to decide whether an idea is worth further investment. [14]
RAID log A project log of Risks, Assumptions, Issues and Dependencies. [14]
Receptive field The patch of the original image that can affect one output of a convolutional network; it grows with each layer. [7]
Reject option / selective classification Letting a model abstain (send to review) when unsure; evaluated with a risk–coverage curve. [10]
ReLU max(0, x): the standard activation function. [5]
Representation learning Learning the features of the input, not just the decision on top of them. Deep learning is the many-layer version. [1]
Residual (in boosting) Actual value minus the current prediction: what the model hasn't explained yet. Each boosting tree is fitted to the residuals. [4]
Residual (skip) connection Adding a block's input to its output (y = x + F(x)), easing training of deep networks. [7]
Risk–coverage curve Error among accepted predictions vs the share accepted, across thresholds. [10]
ROC curve True positive rate against false positive rate as the threshold moves, for a yes/no classifier. [10]
Sample / population The examples you measured, versus all the cases you care about. A sample's numbers are estimates of the population's. [2]
Session state (Streamlit) Per-browser-session memory that survives reruns; holds TrayCheck's spot-check draws. [12]
SHA-256 hash A fingerprint of a file's contents; used in the manifest and the model version. [9, 12]
Sigmoid σ(z) = 1 / (1 + e⁻ᶻ): squashes any number into 0–1, turning a score into a yes/no probability. [4]
Slice-based evaluation Reporting metrics separately for subgroups (dish, ward, diet type, meal period) so a failing group isn't hidden by the overall figure. [10, 13]
Softmax Turns scores into probabilities that sum to 1. [2]
Spot check A random check of a record that wasn't otherwise flagged, used to estimate hidden errors. [11]
SQL The standard language for querying tables in databases: SELECT, WHERE, GROUP BY, JOIN. [3]
Standard deviation / variance Variance: the average squared distance from the mean. Standard deviation: its square root, back in the original units; a typical distance from the mean. [2]
Standard error The typical size of an estimate's sampling error; shrinks with √n. [2, 10]
Standardisation Subtracting the mean and dividing by the standard deviation, so a quantity is centred on 0 with spread 1. Helps gradient descent; batch normalisation does it inside a network. [4, 7]
Stride / padding How far a filter moves each step / border added so outputs keep their size. [7]
Supervised learning Learning from examples that come with correct answers (labels). [1]
Temperature scaling Dividing logits by one fitted number T to calibrate scores without changing predictions. [10]
Test / validation / training set Final honest measurement / making choices / fitting parameters. [1, 9]
Threshold (review) Minimum top score to skip review; TrayCheck's is 0.85, chosen on validation. [10, 11]
Training/serving skew Inputs prepared differently in use than in training; a silent cause of poor accuracy. [12]
Transfer learning Reusing a model trained on one task as the starting point for another. [8]
Transpose A matrix with rows and columns swapped (Wᵀ). Backpropagation multiplies by transposes to send slopes backwards. [2, 5]
UAT (user acceptance testing) Checking with real users, in their setting, that the system supports their work. For AI, scenarios must cover wrong and unsure outputs. [11]
Vanishing gradients Slopes shrinking towards zero as backpropagation multiplies many small factors through deep networks, so early layers barely learn. Residual connections fix it. [7]
Wilson interval A confidence interval for a proportion that behaves well with small counts. [11]
XOR "Exactly one of two inputs is on": the classic problem no single weighted sum can solve, but two ReLU units can. [5]