[Paper Review] Image Classification with Classic and Deep Learning Techniques
This paper evaluates classic and deep learning methods for image classification on an 8-class dataset of 2,688 images, comparing Bag of Visual Words (BoVW) with SVM, Multilayer Perceptron (MLP), fine-tuned InceptionV3, and a custom CNN (TinyNet). It finds that while pre-trained models like InceptionV3 achieve 96% accuracy, a lightweight, custom-designed CNN with only 4,000 parameters reaches 82.5% accuracy, demonstrating that small, efficient models can outperform large architectures when data is limited.
To classify images based on their content is one of the most studied topics in the field of computer vision. Nowadays, this problem can be addressed using modern techniques such as Convolutional Neural Networks (CNN), but over the years different classical methods have been developed. In this report, we implement an image classifier using both classic computer vision and deep learning techniques. Specifically, we study the performance of a Bag of Visual Words classifier using Support Vector Machines, a Multilayer Perceptron, an existing architecture named InceptionV3 and our own CNN, TinyNet, designed from scratch. We evaluate each of the cases in terms of accuracy and loss, and we obtain results that vary between 0.6 and 0.96 depending on the model and configuration used.
Motivation & Objective
- To evaluate the performance of classic computer vision techniques like Bag of Visual Words (BoVW) and SVM on image classification.
- To assess the effectiveness of deep learning models, including a Multilayer Perceptron (MLP), fine-tuned InceptionV3, and a custom CNN (TinyNet), on a small, balanced image dataset.
- To investigate the impact of model architecture, depthwise separable convolutions, and optimization techniques on accuracy and parameter efficiency.
- To determine whether training a small CNN from scratch can achieve competitive performance compared to fine-tuning large pre-trained models with limited training data.
- To analyze the trade-off between model complexity, parameter count, and performance in low-data regimes.
Proposed method
- Implemented a BoVW system using local descriptors (SIFT, SURF, DAISY) with dense keypoint sampling and trained an SVM classifier on visual word histograms.
- Designed and trained a Multilayer Perceptron (MLP) as a baseline deep learning model for image classification.
- Fine-tuned the pre-trained InceptionV3 architecture on the dataset, including both frozen and unfrozen feature extraction modes.
- Designed a lightweight CNN from scratch (TinyNet) with 4–5 convolutional layers, using ReLU activation, batch normalization, and max pooling.
- Applied depthwise separable convolutions to reduce model size and parameters while maintaining performance.
- Employed advanced optimization techniques, including the One Cycle Policy and Learning Rate Finder, to accelerate training and improve convergence.
Experimental results
Research questions
- RQ1How do classic computer vision methods like BoVW with SVM compare in performance to modern deep learning models on a small image classification dataset?
- RQ2What is the impact of using dense vs. sparse keypoint detection on BoVW-based classification accuracy?
- RQ3Can a small, custom-designed CNN trained from scratch achieve competitive accuracy compared to fine-tuned pre-trained models like InceptionV3 with limited training data?
- RQ4To what extent do depthwise separable convolutions reduce model size and parameters without sacrificing classification accuracy?
- RQ5How do advanced optimization techniques like the One Cycle Policy affect training speed and model convergence in low-data settings?
Key findings
- The BoVW approach with dense descriptors achieved a maximum accuracy of 0.66 using DAISY, outperforming vanilla SIFT and SURF but remaining significantly below deep learning baselines.
- The Multilayer Perceptron (MLP) achieved poor performance, with accuracy below 0.6, indicating its insufficiency for complex image classification tasks.
- Fine-tuning InceptionV3 with all layers unfrozen achieved the highest accuracy of 0.96, demonstrating the power of transfer learning on small datasets.
- A custom CNN (TinyNet) with only 4,000 parameters achieved 82.5% test accuracy, showing that small, efficient models can be highly effective when data is limited.
- Replacing normal convolutions with depthwise separable convolutions reduced the number of parameters by up to 21 times (from 83K to 3.9K) while maintaining 82.5% accuracy, highlighting the efficiency of this architectural choice.
- Despite increasing model depth and parameters, accuracy did not improve beyond ~90% when training from scratch, indicating data scarcity as the main bottleneck rather than model capacity.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.