A Few-Shot Image Classification Method by Hard Pairwise-Based Excitation
Traditional models trained with a small number of label samples often have low prediction accuracy and weak generalization ability and are difficult to be applied to practical production.A classification method named hard pairwise-based excitation is proposed for the few-shot image classification,including pre-training stage and meta learning stage.Pre-training stage trains the encoder on the base class dataset and used as the initial feature encoder in the meta learning stage;In the meta learning stage,the encoder will be further optimized,and the meta training process uses the essential feature method to reduce the impact of abnormal samples on the cen-troid;Combining measurement learning and meta learning,a loss function named hard sample-pairs excitation is designed.From the perspective of sample pairs,the model is guided to expand the distance between positive and negative samples during the training process,making similar samples more compact.The experimental results on public datasets mini-ImageNet and tiered-ImageNet show that the classification accuracy is 64.12%and 70.15%,respectively,verifying the effectiveness and feasibility of the proposed method.
hard pairwise-basedfew-shot learningmeta learningmeasurement learning