AI Chat Paper
Note: Please note that the following content is generated by AMiner AI. SciOpen does not take any responsibility related to this content.
{{lang === 'zh_CN' ? '文章概述' : 'Summary'}}
{{lang === 'en_US' ? '中' : 'Eng'}}
Chat more with AI
PDF (815.7 KB)
Collect
Submit Manuscript AI Chat Paper
Show Outline
Outline
Show full outline
Hide outline
Outline
Show full outline
Hide outline
Publishing Language: Chinese

Few-shot pest classification using spatial-attention-enhanced ResNeSt-101 network and transfer-based meta-learning

Weijian LIANG1,5Qingwen GUO1Chuntao WANG1,2,3,4( )Deqin XIAO1,2,3Qiong HUANG1,2,4
College of Mathematics and Informatics, South China Agricultural University, Guangzhou 510642, China
Key Laboratory of Smart Agricultural Technology in Tropical South China, Ministry of Agriculture and Rural Affairs, Guangzhou 510642, China
Guangdong Provincial Key Laboratory of Agricultural Artificial Intelligence, Guangzhou 510642, China
Guangzhou Key Laboratory of Intelligent Agriculture, Guangzhou 510642, China
Shenzhen Pengcheng Technician College, Shenzhen 518000, China
Show Author Information

Abstract

Pest recognition is a key foundation of pest management. Previous researches have exploited image classification to achieve automatic pest recognition. As it is difficult to obtain sufficient images for new-emerged pest classes, how to develop a pest classifier with a few labeled images is an interesting and challenging problem. Some existing works in the literature employ the matching network framework to solve this problem, which use meta-learning to avoid retraining deep networks. In these works, however, the feature extraction abilities of backbone networks are limited and the meta-learning algorithms do not provide a good weight initialization strategy or might cause network collapse. To close this gap, a few-shot pest classifier using a spatial-attention-enhanced version of ResNeSt-101 and a transfer-based meta-learning algorithm is proposed in this study. First, ResNeSt-101 is enhanced with a spatial attention block to better extract image features. The spatial attention block is suggested to integrate before the max pooling layer in the first stage of ResNeSt-101 and/or append at the end of stages 2-4, and the optimal location is determined as the first stage via the numerical simulation results. Subsequently, network weights are initialized by transfer learning and then optimized by meta-learning. To avoid network collapse, the normalized temperature-scaled cross-entropy loss function instead of the triplet loss function is chosen in the meta-learning algorithm. Finally, pest classification is achieved by computing similarities between deep features of query and support images. In addition, the proposed method is evaluated on two elaborately constructed pest image datasets AD0 and MIP50 with N-way K-shot accuracy and the time of per image processing (TPIP). These two pest image datasets are constructed as follows: images in the public pest image datasets, IP102 and D0, are firstly cleaned by eliminating the images with class ambiguities due to the English pest name-based categorizing; and the images of eggs, larvae, and pupae stages are removed while those of adults remained. Considering the limitation of human resources and time costs, only 50 classes are then selected from the cleaned IP102 pest dataset to construct the MIP50 pest image dataset. Subsequently, pest images are finally searched by the Latin pest names from the Internet, yielding the AD0 pest image dataset. The elaborately constructed MIP50 includes 16424 adult pest images from 50 categories of IP102, and the AD0 consists of 17112 adult pest images from all 40 categories of D0. Extensive experimental simulation results show that when there are only a few unseen pest categories in the test set, the 5-way 10-shot accuracy evaluation method achieves an accuracy of 96.37% on the AD0 dataset and 76.91% on the MIP50 dataset. When there exist several unseen and seen pest classes in the test set, the proposed method using the 5-way 10-shot setting achieves an accuracy of 93.73% on the AD0 dataset and 90.60% on the MIP50 dataset. The TPIP of the proposed method is approximately 0.44 ms, which satisfies the real-time pest recognition requirement in most scenarios. In addition, a series of comparative and ablation experiments suggest that the proposed method is effective in few-shot pest classification. These results indicate that the proposed few-shot pest classification using spatial-attention-enhanced ResNeSt-101 network and transfer-based meta-learning is effective and thus promising in practical applications. Although the proposed scheme is promising, there exist several issues that need to be further investigated in future work. For example, increasing the way number would probably lead to lower classification accuracy, optimizing the metrics in this work by adopting the metric that better characterizes the complex relationships between samples in the support set and those in the query set, and applying the proposed scheme to practically recognize pests in fields.

CLC number: TP391.4; S24 Document code: A

References

【1】
【1】
 
 
Transactions of the Chinese Society of Agricultural Engineering
Pages 285-297

{{item.num}}

Comments on this article

Go to comment

< Back to all reports

Review Status: {{reviewData.commendedNum}} Commended , {{reviewData.revisionRequiredNum}} Revision Required , {{reviewData.notCommendedNum}} Not Commended Under Peer Review

Review Comment

Close
Close
Cite this article:
LIANG W, GUO Q, WANG C, et al. Few-shot pest classification using spatial-attention-enhanced ResNeSt-101 network and transfer-based meta-learning. Transactions of the Chinese Society of Agricultural Engineering, 2024, 40(6): 285-297. https://doi.org/10.11975/j.issn.1002-6819.202304013

302

Views

3

Downloads

0

Crossref

0

Web of Science

6

Scopus

Received: 21 April 2023
Revised: 23 October 2023
Published: 31 March 2024
© Chinese Society of Agricultural Engineering 2024