Cotton aphid is one of the most major pests to significantly impact both fiber yield and quality. Accurate and timely monitoring of aphid populations is often required to effectively integrate pest prevention and control during cotton production worldwide. However, existing detection approaches have been constrained by the extremely small size of targets, high-density infestations, and serious background noise from cotton leaf textures and vein patterns. In this study, a multi-scale feature attention model, YOLO-ALST, was proposed to solve these limitations under complex field environments using deep learning. Three architectures were also integrated to overcome the challenges of aphid detection. 1) Embedded adaptive attention layer (AAL) in the network’s neck dynamically enhanced to represent aphid-dense channels, while suppressing redundant background noise, significantly identifying micro-targets from complex backgrounds. 2) Shifted window transformer (Swin Transformer) module was integrated to strengthen global semantic modeling. A hierarchical window self-attention mechanism was utilized to transcend the limitations of conventional convolutional receptive fields, effectively capturing spatial dependencies and long-range contextual information, particularly for target overlap and boundary ambiguity in high-density aphid colonies. 3) A hybrid loss function was integrated, ccomplete intersection over union (CIoU) loss with focal loss. Bounding box regression was optimized to correct localization biases for micro-targets, according to the consistency parameter of an aspect ratio. Class imbalance between positive and negative samples was reduced to enhance training stability and convergence efficiency. A large-scale multi-scenario dataset was constructed to validate the model, including 6 830 high-quality annotated images from diverse ecological environments in northern and southern Xinjiang, China. Extensive experiments were conducted on the mainstream detectors, including YOLOv5, YOLOv8, and YOLO11. The results show that YOLO-ALST achieved a mean average precision (mAP@50) of 88.89% on the overall test set, consistently outperforming the baseline and mainstream models. Notably, under high-density aphid scenarios—the most challenging conditions for current detectors—YOLO-ALST improved the mAP@50 to 78.85%, indicating a significant gain of 5.22 percentage points over the YOLO11 baseline, while maintaining superior robustness in precision and recall. Finally, a mobile was integrated with the YOLO-ALST model in a practical field. Accurate localization and counting of cotton aphids were realized to integrate with real-time image, photo detection, and offline analysis. Field experiment demonstrates that a mAP@50 of 82.56% and 71.42% were achieved in the low- and high-density scenarios, respectively. Exhibiting an average per-frame inference time of merely 42 and 53 ms for low- and high-density scenarios, respectively, the proposed mobile solution demonstrates significant superiority over traditional manual counting methods, effectively reducing the monitoring time by 13 minutes in low-density areas and 20 minutes in high-density clusters. Furthermore, the model was compressed into a footprint of only 12.8 MB, indicating efficient deployment on mobile terminals. These findings can effectively transform advanced deep learning into an efficient, practical productivity tool for large-scale monitoring in smart agriculture.
- Article type
- Year
- Co-author
Unmanned aerial vehicle (UAV) remote sensing is widely used in land cover classification, but at present, object recognition of UAV images in farmland environment is cumbersome, requiring manual image stitching to preprocess the image, and finally training the model for recognition. In order to improve the computing speed and efficiency of UAV images in farmland environment, this paper proposes a parallel Mosaic recognition algorithm for UAV images in farmland environment. Firstly, based on SURF algorithm, KNN algorithm and RANSAC algorithm, the panoramic image Mosaic of UAV based on image transformation is realized. Then the inverted binary tree parallel processing algorithm is proposed. The parallel processing algorithm is planned by the idea of divide and conquer, and the image Mosaic recognition task is automatically divided into multiple sub-processes according to the number of CPU cores of the edge device and the number of images. And they are distributed to different computing cores to execute, and to improve the computing efficiency in the field environment. Finally, by extracting the transformation matrix in image Mosaic, the recognition was realized at the same time in the process of image Mosaic, and the recognition results were also spliced by using the transformation matrix. The parallel splicing recognition algorithm greatly improves the efficiency of UAV image splicing recognition, which is of great significance to realize real-time monitoring of UAV images. The experimental data were taken in the Science and Education Park of Henan Agricultural University and the Pest Field Observation Station base of the Ministry of Agriculture and Rural Affairs in Korle, Yuanyang County, Henan Province. In order to increase the diversity of data, Phantom4RTK and Mavic3E were used to avoid the influence of different Uavs on the Mosaic effect. The collected images are RGB three-band images, and the shooting height is about 20-100 m. The resolution of the Sprite 4RTK camera is 5472×3648 pixel, and the resolution of the Imperial 3E camera is 5 280×3 956. The CPU model of the equipment selected for the experiment is i7-11700, the frequency is 2.50 GHz, there are 8 cores and 16 logical processors, and the memory is 64GB. The graphics card of the model training device is NVIDIA A100-PCIE, the neural network is U-Net, and the development framework is Pytorch. The training epoch is 300 rounds, and the backbone network is frozen for training in the first 50 rounds to avoid too much data noise. The batch size (batch_size) is set to 16 and the loss function is the cross entropy loss (CE). Model training significantly reduces the loss value after the start of training and converges at 150 rounds and becomes stable at 200 rounds. The final mIoU of the model training was 89.01%. We use the reverse binary tree parallel stitching algorithm and other stitching algorithms for comparative experiments. The experimental results show that under the same experimental environment and data set, using the inverted binary tree parallel stitching scheme, the stitching time is reduced by about 60%-90% on average compared with commercial software. We test the inverted binary tree parallel splicing recognition algorithm in a farmland environment, and deploy the initially trained model to the device. The experimental results show that compared with the serial Mosaic recognition, the parallel Mosaic recognition of inverted binary tree not only reduces the time consumption by 70%, but also improves the mIoU of image recognition by 10.17%. It shows that in the farmland environment, the multi-threaded inverted binary tree parallel scheme can make better use of the computing resources of edge devices in the farmland environment, greatly improve the speed of UAV image stitching and recognition, and provide technical support for rapid real-time monitoring of UAV.
京公网安备11010802044758号