Individual machine learning study

Recyclable Container Classification

A comparative KNN and linear SVM pipeline classifies cardboard and metal cans using engineered image features.

PythonOpenCVHOGHSVscikit-learn
Recyclable Container Classification — supplied project image
Supplied project image.

Individual machine learning project

Overview

A supervised computer vision pipeline distinguishes cardboard from metal cans as a study in automated recyclable waste identification.

Engineering approach

I curated 300 balanced images from Roboflow Universe and UCI RealWaste, resized them to 128 × 128 with aspect-ratio preservation, and combined 1,764 HOG and 256 HSV features. Using a stratified 240/60 train-test split, I compared KNN and linear SVM; ten-fold cross-validation selected K=3. Misclassification analysis identified challenges with lighting, orientation, background clutter and shape. I refined the initial four-category problem into two classes to improve feature separation.

Results

KNN classified 48/60 test images correctly (80%); linear SVM classified 57/60 (95%). On ten independent photographs, KNN classified 9/10 and SVM 10/10. These small samples demonstrate promising performance rather than general real-world accuracy.