Beginner level · Module 6 of 6 · 8 guided hours
Introduction to Image Classification
Training and evaluating classical image classifiers on extracted features with scikit-learn, analysing errors visually, and measuring how a model trained on public images performs on local photographs. It ends with the level project.
Learning objectives
- Train image classifiers on feature vectors with scikit-learn
- Evaluate classifiers with confusion matrices and error galleries
- Measure and explain performance on local images
Topics
- datasets, labels and splits
- SVM and logistic regression on features
- accuracy and confusion matrices
- error galleries
- testing on local photographs
- presenting results and limits
Lessons
-
Lesson 1 Training a Classical Image Classifier
Learners combine their colour and HOG features, split the data and train an SVM and a logistic regression classifier.
feature matrix X and labels ytrain_test_split with stratifyStandardScalerSVCLogisticRegression
-
Lesson 2 Evaluating Classifiers and Reading Their Errors
Learners compute a confusion matrix, build a gallery of misclassified images and group mistakes by cause.
confusion matrixper-class recallConfusionMatrixDisplayerror galleryerror causes
-
Lesson 3 Testing on Local Images and Presenting the Project
Learners test their classifier on the photographs they took locally, measure the change in accuracy, and present the project with its limits.
domain shiftlocal test setaccuracy droplimitationsnext steps
Practical activity
Complete the level project: a produce or plant classifier with documented data, preprocessing, features, evaluation on public and local images, and a results note.
Expected outcomes
- A complete classical image classification system
- Honest evaluation under domain shift
Assessment
The level project, assessed against the level criteria, with a presentation.
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.