Abstract
Training deep learning models in technical domains is often accompanied by the challenge that although the task is clear, insufficient data for training is available. In this work, we propose a novel approach based on the combination of Siamese networks and radial basis function networks to perform data-efficient classification without pretraining by measuring the distance between images in semantic space in a data-efficient manner. We develop the models using three technical datasets, the NEU dataset, the BSD dataset, and the TEX dataset. In addition to the technical domain, we show the general applicability to classical datasets (cifar10 and MNIST) as well. The approach is tested against state-of-the-art models (Resnet50 and Resnet101) by stepwise reduction of the number of samples available for training. The authors show that the proposed approach outperforms the state-of-the-art models in the low data regime.
Introduction
In industrial manufacturing and technical maintenance, high-quality labeled data is often a luxury. While general computer vision tasks benefit from massive datasets like ImageNet, quality control engineers frequently face "low-data regimes" where only a few examples of specific defects—such as cracks in steel or faults in machine components—are available. Standard deep learning architectures like ResNet are notoriously data-hungry and struggle to generalize from just 3 to 10 samples per class. This paper introduces the Siamese Basis Function Network (SBF-Net) to address this gap, prioritizing comparison-based learning over traditional feature memorization.
Methodology
The SBF-Net architecture merges the semantic feature extraction capabilities of Siamese networks with the similarity-based logic of Radial Basis Function (RBF) networks.
Siamese Kernels and Semantic Embedding
The core innovation is the replacement of traditional RBF kernels with "Siamese-Kernels." Standard RBFs typically rely on Euclidean distance in pixel space, which is sensitive to noise and lighting. In contrast, SBF-Net uses Siamese branches to project images into a 100-dimensional semantic space.
These branches are trained using triplet loss, which forces the model to minimize the distance between an "anchor" image and a "positive" sample (same class) while maximizing the distance to a "negative" sample (different class). This ensures that the resulting embeddings capture the underlying "meaning" of the defect rather than superficial pixel patterns.
SBF-Net Architecture
The final classification is performed by an ensemble of these Siamese-Kernels. For each class, several "anchor" images are randomly selected as prototype centers. The model calculates the cosine distance between a query image and these centers. These similarity scores are then processed by a 4-layer Multi-Layer Perceptron (MLP) for the final classification.
Experimental Setup and Datasets
The model's performance was evaluated across several technical and benchmark datasets:
- Technical Datasets: NEU (steel surface defects), BSD (ball screw drive defects), and TEX (fabric failures).
- Benchmark Datasets: MNIST and CIFAR10 to test generalizability.
The primary evaluation metric was accuracy in the low-data regime, specifically when training samples were reduced to 3, 5, and 10 images per class.
Results and Discussion
SBF-Net demonstrated significant advantages in data-scarce scenarios. In tests with 3–10 images per class, the model outperformed ResNet50 and ResNet101 by approximately 10% accuracy on technical datasets. Notably, on the NEU dataset, SBF-Net achieved a state-of-the-art accuracy of 99.69% when trained on 75% of the data.
While the model excelled in technical domains, it showed slightly lower performance on CIFAR10 compared to ResNets. This suggests that the high visual diversity of natural images in CIFAR10 may require models with higher parameter capacity or more sophisticated anchor selection strategies.
Conclusion
The SBF-Net provides a robust solution for defect classification where data is scarce. By leveraging semantic similarity through Siamese-Kernels, it offers a "head start" in accuracy over traditional deep learning models in industrial settings. Future work will focus on optimizing anchor selection through active learning and reducing computational overhead via knowledge distillation.
Summary updated