Computer Vision · Intermediate level

Intermediate level · Module 2: Convolutional Neural Networks · Lesson 3 of 3

CNNs versus Classical Pipelines

Learners compare their CNN with the best classical pipeline on accuracy, robustness, training time and model size, and decide when each is appropriate.

In this lesson you will

  • Compare CNN and classical approaches fairly
  • Choose an approach for a given constraint

Key concepts

fair comparisonrobustness teststraining timemodel sizedata requirements

The lesson

Run the same robustness tests used in Module 1 on the CNN. CNNs usually degrade less under clutter and lighting changes, but they can still fail on rotations or scales that never appeared in training.

Count the costs: training time, prediction time per image, model file size and the amount of labelled data needed. On a few hundred images with a strong colour signal, a classical pipeline may be good enough and much cheaper.

Record the decision with evidence. This comparison habit continues throughout the programme.

Step by step

  1. Evaluate both approaches on the same test set.
  2. Run the robustness tests on both.
  3. Measure time and model size.
  4. Write a recommendation for a small agricultural classifier.

Practice activity

Produce a comparison table and recommendation.

Expected result: A fair comparison and a recommendation that considers data, compute and accuracy.

Check your understanding

  1. When might a classical pipeline be good enough?

    Show answer

    When there is little data and a strong, simple signal such as colour.

  2. Name two costs of CNNs besides accuracy.

    Show answer

    For example more labelled data, longer training and larger models.

Further learning

Taught live by an instructor — online or in person. Free course lessons are for self-study and do not lead to a certificate — see registration options.