Accurate and timely monitoring of pests is an effective way to minimize the negative effects of pests in agriculture. Since deep learning-based methods have achieved good performance in object detection, they have been successfully applied for pest detection and monitoring. However, the current pest detection methods fail to balance the relationship between computational cost and model accuracy. Therefore, this paper proposes a lightweight, locality-aware faster R-CNN (LLA-RCNN) method for effective pest detection and real-time monitoring. The proposed model uses MobileNetV3 to replace the original backbone, reduce the computational complexity, and compress the size of the model to speed up pest detection. The coordinate attention (CA) blocks are utilized to enhance the locality information for highlighting the objects under complex backgrounds. Furthermore, the generalized intersection over union (GIoU) loss function and region of interest align (RoI Align) technology are used to improve pest detection accuracy. The experimental results on different types of datasets validate that the proposed model not only significantly reduces the number of parameters and floating-point operations (FLOPs), but also achieves better performance than some popular pest detection methods. This demonstrates strong generalization capabilities and provides a feasible method for pest detection on resource-constrained devices.
Hyperspectral images (HSIs) capture a wide range of spectral features across multiple bands of light, from visible to near-infrared. Hyperspectral image classification technology enables researchers to accurately identify and analyze the composition and distribution of surface materials. Current mainstream deep learning methods typically use block sampling to capture spatial features for the model. However, this approach can affect classification results due to the influence of neighboring features within the sample block. To improve the model’s focus on the center of the sampling block, this study proposes a center highlight with multiscale CNN for hyperspectral image classification (CHMSC). The network utilizes an automatic channel selector (Auto-CHS) to fully consider every channel feature and capture the correlation between the channels. Then, CHMSC enhances the model’s ability to concentrate on the central features of the sampling block utilizing structures such as the center highlight. Finally, before outputting the prediction results, an SENet is employed to further refine the features and learn associate interactions between different scales of spatial features and spectral features. Experimental results from three hyperspectral datasets validate the effectiveness of the proposed method. Specifically, when 15 samples from each class are selected for training, CHMSC achieves the highest overall accuracy (OA) of 90.05%, 92.78%, and 90.15% on the three datasets, outperforming other methods with increases of more than 3.11%, 1.8%, and 2.01% in OA, respectively.