🌍 Machine Learning · subject

Machine Learning Project: Image Classification Syllabus

The Project: Image Classification syllabus for Machine Learning in full: 6 chapters, 13 topics and 27 sub-topics, every one listed below, plus 50 Project: Image Classification flashcards with answers.

6Chapters
13Topics
27Sub-topics
50Flashcards

Project: Image Classification syllabus: all 6 chapters

Expand any chapter to see its topics and sub-topics.

  1. Define the Project

    2 topics
    • Identify the Problem
      • Specify the Type of Images
      • Define the Objective
    • Gather Requirements
      • Determine Hardware and Software Needs
      • Identify Data Sources
  2. Collect and Prepare Data

    3 topics
    • Collect Data
      • Download or Scrape Images
      • Label Images
    • Preprocess Data
      • Resize Images
      • Normalize Pixel Values
      • Augment Data
    • Split Data
      • Create Training Set
      • Create Validation Set
      • Create Test Set
  3. Build the Model

    2 topics
    • Choose a Model Architecture
      • Select a Pre-trained Model or Build from Scratch
    • Compile the Model
      • Define Loss Function
      • Select Optimizer
      • Specify Metrics
  4. Train the Model

    2 topics
    • Set Training Parameters
      • Define Batch Size
      • Set Number of Epochs
    • Monitor Training
      • Track Training and Validation Loss
      • Adjust Learning Rate if Necessary
  5. Evaluate the Model

    2 topics
    • Test on Validation Set
      • Calculate Accuracy
      • Generate Confusion Matrix
    • Test on Test Set
      • Evaluate Performance Metrics
  6. Deploy the Model

    2 topics
    • Choose Deployment Method
      • Deploy as a Web Service
      • Deploy on Mobile Device
    • Monitor and Maintain
      • Track Model Performance
      • Update Model as Needed

Machine Learning Project: Image Classification flashcards — 50 questions with answers

  1. What is the core goal of an image classification project?

    To build a model that assigns one or more predefined category labels to an input image, mapping pixel data to a discrete class.

  2. In the 'Identify the Problem' stage, what distinguishes binary, multi-class, and multi-label classification?

    Binary = 2 mutually exclusive classes; multi-class = one label chosen from more than 2 mutually exclusive classes; multi-label = an image can belong to several classes simultaneously.

  3. Why is defining success metrics part of identifying the problem?

    Because the metric (e.g., accuracy, precision/recall, F1) determines how you train, tune, and judge the model; an undefined target makes the project impossible to evaluate.

  4. What is the difference between image classification and object detection?

    Classification assigns a label to the whole image; object detection also localizes objects with bounding boxes and classifies each one.

  5. During 'Gather Requirements', what are the key categories of requirements to capture?

    Functional (what classes/accuracy), data (sources, volume, labeling), performance (latency, throughput), hardware/deployment constraints, and legal/privacy requirements.

  6. What is a latency requirement and why does it matter for model choice?

    Latency is the maximum allowable inference time per image; tight latency budgets favor smaller, faster architectures (e.g., MobileNet) over large ones (e.g., ResNet-152).

  7. When collecting data, what does 'class balance' mean and why is it important?

    Class balance is having roughly comparable numbers of examples per class; imbalance biases the model toward majority classes and inflates accuracy while hiding poor minority-class performance.

  8. What is data leakage in the context of collecting and splitting image data?

    When information from outside the training set (e.g., near-duplicate images, or test images) leaks into training, producing overly optimistic and unrealistic performance estimates.

  9. Why must collected image data be representative of deployment conditions?

    Because a model only generalizes to distributions similar to its training data; mismatched lighting, angles, or devices cause domain shift and degraded real-world accuracy.

  10. What is image annotation/labeling, and what quality issue commonly arises?

    Labeling is assigning ground-truth class labels to images; the common issue is label noise (incorrect or inconsistent labels), which limits achievable accuracy.

  11. In preprocessing, what is image resizing and why is it required?

    Resizing converts all images to a fixed spatial size (e.g., 224x224) because most networks require a uniform input shape for batching and matrix operations.

  12. Write the standard min-max normalization that scales pixel values from $[0,255]$ to $[0,1]$.

    $$x' = \frac{x}{255}$$

  13. Write the z-score (standardization) formula used to normalize image channels with mean $\mu$ and standard deviation $\sigma$.

    $$x' = \frac{x - \mu}{\sigma}$$

  14. What is data augmentation and name four common image augmentations?

    Synthetically expanding training data by transforming images; examples: random horizontal flip, rotation, random crop, brightness/contrast jitter, and zoom.

  15. Why does data augmentation help reduce overfitting?

    It increases effective dataset diversity, exposing the model to plausible variations so it learns invariant features instead of memorizing specific pixels.

  16. What is one-hot encoding of class labels and why is it used with categorical cross-entropy?

    Representing a label as a vector with a 1 at the true class index and 0 elsewhere; categorical cross-entropy compares this target vector against the predicted probability distribution.

  17. What is a typical train/validation/test split ratio, and what is each subset used for?

    Commonly 70/15/15 or 80/10/10. Train fits parameters, validation tunes hyperparameters and monitors generalization, test gives a final unbiased performance estimate.

  18. Why must the test set remain untouched until the very end?

    To provide an unbiased estimate of generalization; using it during development causes information leakage and over-optimistic results.

  19. What is stratified splitting and when should you use it?

    Splitting so each subset preserves the original class proportions; use it for imbalanced datasets to ensure all classes appear in train, validation, and test.

  20. What is k-fold cross-validation and what does it estimate?

    The data is split into $k$ folds; the model trains on $k-1$ folds and validates on the remaining one, rotating $k$ times. It estimates generalization more robustly by averaging across folds.

Show the other 30 Project: Image Classification flashcards
  1. What is a Convolutional Neural Network (CNN) and why is it suited to images?

    A network using convolutional layers that apply learnable filters across spatial regions; it exploits local connectivity and weight sharing to capture spatial patterns efficiently.

  2. For an input of size $W$, filter size $F$, padding $P$, and stride $S$, give the output spatial dimension of a convolution layer.

    $$O = \frac{W - F + 2P}{S} + 1$$

  3. What is the role of a pooling layer (e.g., max pooling) in a CNN?

    It downsamples feature maps to reduce spatial dimensions and computation while providing translation invariance; max pooling keeps the maximum value in each window.

  4. What is transfer learning and why is it standard for image classification with limited data?

    Reusing a model pretrained on a large dataset (e.g., ImageNet) and adapting it to a new task; it leverages learned general features, enabling strong accuracy with far less data and compute.

  5. Distinguish feature extraction from fine-tuning in transfer learning.

    Feature extraction freezes the pretrained backbone and trains only a new classifier head; fine-tuning additionally unfreezes some backbone layers to update them at a low learning rate.

  6. Compare ResNet and MobileNet at a high level.

    ResNet uses residual (skip) connections enabling very deep, high-accuracy networks but is heavier; MobileNet uses depthwise-separable convolutions for a lightweight, fast model suited to mobile/edge with lower accuracy.

  7. What problem do residual (skip) connections in ResNet solve?

    They mitigate the vanishing-gradient/degradation problem in very deep networks by letting gradients flow through identity shortcuts, learning $F(x)+x$ instead of $F(x)$ alone.

  8. When compiling the model, what three things must you specify?

    The loss function, the optimizer, and the evaluation metric(s).

  9. Which loss is used for multi-class single-label classification, and write its formula for one example.

    Categorical cross-entropy: $$L = -\sum_{i=1}^{C} y_i \log(\hat{y}_i)$$ where $y_i$ is the one-hot target and $\hat{y}_i$ the predicted probability for class $i$.

  10. Which activation is used on the output layer for multi-class classification, and write its formula.

    Softmax: $$\hat{y}_i = \frac{e^{z_i}}{\sum_{j=1}^{C} e^{z_j}}$$ which turns logits into a probability distribution summing to 1.

  11. Which output activation and loss are used for binary or multi-label classification?

    Sigmoid activation per output unit with binary cross-entropy loss: $$L = -[y\log\hat{y} + (1-y)\log(1-\hat{y})]$$

  12. What is the Adam optimizer and why is it popular?

    An adaptive optimizer combining momentum and per-parameter adaptive learning rates (RMSProp-style); it converges fast and works well with default settings across many tasks.

  13. Write the basic gradient descent parameter update rule with learning rate $\eta$.

    $$\theta \leftarrow \theta - \eta \nabla_{\theta} L$$

  14. What is the learning rate and what happens if it is too high or too low?

    The step size for parameter updates. Too high causes divergence or oscillation; too low causes very slow convergence and risk of getting stuck.

  15. Define batch size, epoch, and iteration in training.

    Batch size = number of samples per gradient update; epoch = one full pass over the training set; iteration = one gradient update (one batch). Iterations per epoch $= \lceil N / \text{batch size} \rceil$.

  16. What is the ReLU activation and why is it commonly used in hidden layers?

    $$\text{ReLU}(x) = \max(0, x)$$ It is cheap, non-saturating for positive inputs, and reduces vanishing gradients compared to sigmoid/tanh.

  17. While monitoring training, how do you diagnose overfitting from the loss curves?

    Training loss keeps decreasing while validation loss stops decreasing and starts rising; the train/validation gap widens.

  18. What is early stopping?

    A regularization technique that halts training when the validation metric stops improving for a set number of epochs (patience), restoring the best weights to avoid overfitting.

  19. What is dropout and how does it regularize a network?

    During training it randomly zeroes a fraction $p$ of unit activations each step, preventing co-adaptation of neurons and acting like training an ensemble, which improves generalization.

  20. What is batch normalization and what benefit does it give during training?

    It normalizes layer inputs per mini-batch to zero mean and unit variance (then scales/shifts), stabilizing and speeding training and allowing higher learning rates.

  21. What is a learning-rate schedule, and give one common example.

    A rule that changes the learning rate during training; examples include step decay, exponential decay, cosine annealing, and reduce-on-plateau (lower LR when validation stalls).

  22. What distinguishes underfitting from overfitting?

    Underfitting = high error on both train and validation (model too simple/undertrained); overfitting = low train error but high validation error (model memorizes noise).

  23. Why do you evaluate on the validation set during training?

    To estimate generalization on unseen data, guide hyperparameter tuning and model selection, and detect overfitting without touching the test set.

  24. Define accuracy, precision, and recall using TP, TN, FP, FN.

    $\text{Accuracy}=\frac{TP+TN}{TP+TN+FP+FN}$, $\text{Precision}=\frac{TP}{TP+FP}$, $\text{Recall}=\frac{TP}{TP+FN}$.

  25. Write the F1-score formula and state what it balances.

    $$F_1 = 2\cdot\frac{\text{Precision}\cdot\text{Recall}}{\text{Precision}+\text{Recall}}$$ It is the harmonic mean of precision and recall, useful for imbalanced classes.

  26. What is a confusion matrix and what does it reveal in multi-class classification?

    A table of predicted vs. actual classes; its diagonal shows correct predictions and off-diagonal cells reveal which classes are confused with which.

  27. What does the test set evaluation tell you that the validation set cannot?

    An unbiased estimate of real-world generalization, because the test set was never used for fitting or hyperparameter tuning, unlike the validation set.

  28. List three common deployment methods for an image classification model.

    Cloud/REST API server (e.g., TensorFlow Serving), on-device/edge deployment (e.g., TensorFlow Lite, Core ML), and batch/offline inference. Browser deployment via TensorFlow.js is another option.

  29. What is model quantization and why is it used for edge deployment?

    Reducing weight/activation precision (e.g., float32 to int8) to shrink model size and speed up inference with minimal accuracy loss, enabling deployment on resource-limited devices.

  30. In 'Monitor and Maintain', what is model/data drift and how do you respond?

    Drift is when input data distribution or label relationships change over time, degrading accuracy; respond by monitoring live metrics, collecting new labeled data, and retraining/redeploying the model.

Machine Learning Project: Image Classification FAQ

What is in the Machine Learning Project: Image Classification syllabus?

Machine Learning Project: Image Classification is split into 6 chapters: Define the Project, Collect and Prepare Data, Build the Model, Train the Model, Evaluate the Model and Deploy the Model. Together they contain 13 topics and 27 sub-topics.

How many chapters are in Machine Learning Project: Image Classification?

6 chapters, containing 13 topics and 27 sub-topics. The largest chapter is Collect and Prepare Data, with 3 topics.

Are there flashcards for Machine Learning Project: Image Classification?

Yes — a 50-card Project: Image Classification deck, printed in full in the flashcards section of this page and available in the Examius app with spaced repetition. The free plan covers one exam of your choice, including its flashcards; Examius Pro, a one-time purchase, unlocks every other exam and deck.