[Paper Review] SIFT and SURF based feature extraction for the anomaly detection
This paper proposes using SIFT and SURF feature extractors as alternatives to deep learning for anomaly detection in industrial images. It evaluates semi-supervised and one-class learning on a custom cookie dataset, demonstrating that SURF with one-class SVM achieves 87.5% test accuracy and AUC of 0.92, comparable to semi-supervised methods, proving the viability of handcrafted features for anomaly detection without requiring large anomalous training data.
In this paper, we suggest a way, how to use SIFT and SURF algorithms to extract the image features for anomaly detection. We use those feature vectors to train various classifiers on a real-world dataset in the semi -supervised (with a small number of faulty samples) manner with a large number of classifiers and in the one-class (with no faulty samples) manner using the SVDD and SVM classifier. We prove, that the SIFT and SURF algorithms could be used as feature extractors, that they could be used to train a semi-supervised and one-class classifier with an accuracy around 89\% and that the performance of the one-class classifier could be comparable to the semi-supervised one. We also made our dataset and source code publicly available.
Motivation & Objective
- To evaluate SIFT and SURF as feature extractors for anomaly detection in industrial image datasets.
- To compare semi-supervised learning (with limited anomalous samples) and one-class learning (with no anomalous samples) using these features.
- To assess whether handcrafted feature extractors can match or approach the performance of deep learning-based methods in anomaly detection.
- To provide a publicly available dataset and codebase for reproducibility and further research.
Proposed method
- SIFT and SURF algorithms extract keypoint descriptors from images, generating high-dimensional feature vectors representing local image structures.
- A semi-supervised training setup uses 1,000 normal (OK) and 50 defective (NOK) samples; a one-class setup uses only 1,000 OK samples for training.
- Multiple classifiers—logistic regression, SVM, SVDD, Naive Bayes, kNN, and ensemble trees—are trained and evaluated on a test set of 200 OK and 200 NOK samples.
- Feature vectors from SIFT and SURF are used as input to classifiers, with performance measured via test accuracy and AUC.
- The method includes data augmentation via 90° rotations, increasing the dataset to 4,900 samples, and bounding box cropping for consistency.
- The study compares the performance of SIFT and SURF across different classifiers and learning paradigms to identify optimal configurations.
Experimental results
Research questions
- RQ1Can SIFT and SURF feature extractors effectively support anomaly detection in industrial images?
- RQ2How does the performance of one-class learning compare to semi-supervised learning when using SIFT and SURF features?
- RQ3Which combination of feature extractor (SIFT vs. SURF) and classifier yields the highest detection accuracy?
- RQ4Is the performance of one-class learning with handcrafted features comparable to semi-supervised learning in real-world anomaly detection?
Key findings
- The SURF feature extractor with one-class SVM achieved a test accuracy of 87.5% and AUC of 0.92, outperforming other combinations in one-class learning.
- The semi-supervised SVM with SURF reached 89.5% test accuracy and AUC of 0.90, demonstrating strong performance with limited anomalous data.
- One-class learning with SURF and SVM produced results comparable to semi-supervised learning, indicating that anomalous data are not strictly necessary for high performance.
- SIFT outperformed SURF in one-class SVDD training, but SURF consistently surpassed SIFT in accuracy and AUC across most other configurations.
- The best-performing model in the semi-supervised setup was Naive Bayes with SURF, achieving 89.0% accuracy and AUC of 0.92.
- The study confirms that handcrafted features from SIFT and SURF can achieve near-state-of-the-art anomaly detection performance, rivaling deep learning approaches in specific setups.
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.