To address the challenges of small inter-class differences in pest details,severe field background interference,and imbalanced sample distribution,a complementary feature fusion dual-stream network for pest recognition is proposed.This network combines the local perception capability of convolutional neural networks with the global modeling ability of the Mamba model,capturing and integrating the global and local information of pest images.A hierarchical multiscale perception module is designed to extract multi-scale image features through grouped hierarchical convolution and enhance pest detail information with a detail enhancement perception strategy.An adaptive focusing Mamba module is designed to locate key pest regions using dynamic convolution operators and reduce complex background interference.Additionally,an attention-weighted fusion module is designed to achieve adaptive interaction and optimization of global and local features through a cross-attention mechanism,further improving the accuracy of semantic expression.A balanced loss function is constructed to mitigate the effects of class imbalance in the dataset.The experimental results show that the network achieves an accuracy of 71.19%on the large-scale pest dataset IP102,and an accuracy of 99.36%on the D0 dataset,demonstrating its ability to effectively identify pest species.
| 科 Family | 属数 Number of genus | 种数 Number of species | 占总种数比例 Percentage of total species (%) | 属 Genus | 种数 Number of species | 占总种数比例 Percentage of total species (%) |
|---|---|---|---|---|---|---|
| 鹅膏菌科Amanitaceae | 2 | 11 | 5.26 | 鹅膏菌属 Amanita | 10 | 4.78 |
| 小菇科 Mycenaceae | 2 | 12 | 5.74 | 丝盖伞属 Inocybe | 5 | 2.39 |
| 多孔菌科 Polyporaceae | 8 | 14 | 6.70 | 蜡蘑属 Laccaria | 5 | 2.39 |
| 红菇科 Russulaceae | 3 | 23 | 11.00 | 小皮伞属 Marasmius | 6 | 2.87 |
| 小菇属 Mycena | 11 | 5.26 | ||||
| 光柄菇属 Pluteus | 5 | 2.39 | ||||
| 红菇属 Russula | 17 | 8.13 | ||||
| 栓菌属 Trametes | 5 | 2.39 |