Publications
Sort:
Issue
Accurate Detection of Tree Planting Locations in Inner Mongolia for The Three North Project Based on YOLOv10-MHSA
Smart Agriculture 2025, 7(3): 108-119
Published: 01 May 2025
Abstract PDF (59 MB) Collect
Downloads:47
Objective

The traditional manual field investigation method of the tree planting locations is not only inefficient but also error-prone, and the low-altitude unmanned aerial vehicle (UAV) has become the best choice to solve these problems. To solve the problem of accuracy and efficiency in the detection of tree planting locations (tree pits) in Inner Mongolia of China's Three North Project, an accurate recognition and detection model of tree planting locations based on YOLOv10-MHSA was proposed.

Methods

A longendurance, multi-purpose vertical take-off and landing (VTOL) fixed-wing UAV was used to collect images of tree planting locations. Equipped with a 26-megapixel camera with high spatial resolution, the UAV was well-suited for high-precision field mapping. Aerial photography was conducted between 11: 00 and 12: 00 on August 1, 2024. Flight parameters were set as follows: Altitude of 150 m (yielding a ground resolution of approximately 2.56 cm), course overlap rate of 75%, side overlap rate of 65%, and flight speed of 20 m/s. To prevent overfitting during network training, the original data set was enhanced. To improve the quality and efficiency of model training, different attention mechanisms and optimizing loss functions were introduced. Specifically, a more effective EIOU loss function was introduced, comprising three components: IOU loss, distance loss, and azimuth loss. This function directly minimizes the width and height discrepancies between the target frame and anchor, leading to faster convergence and more accurate positioning. Additionally, the Focal-EIOU loss function was adopted to address sample imbalance in bounding box regression tasks, further improving the model's convergence speed and positioning precision.

Results and Discussions

After the introduction of the multihead self-attention mechanism (MHSA), the model achieved improvements of 1.4% and 1.7% in the evaluation metrics AP@0.5 and AP@0.5:0.95, respectively, and the accuracy and recall rate were also improved. This indicates that MHSA effectively aids the model in extracting the feature information of the target and improving the detection accuracy in complex background. Although the processing speed of the model decreases slightly after adding the attention mechanism, it could still meet the requirements of real-time detection. The experiment compared four loss functions: CIOU, SIOU, EIOU and Focal-EIOU. The results showed that the FocalEIOU loss function yielded significant increases in precision and recall. This demonstrated that the Focal-EIOU loss function could accelerate the convergence speed of the model and improve the positioning accuracy when dealing with the sample imbalance problem in small target detection. Finally, an improved model, YOLOv10-MHSA, was proposed, incorporating MHSA attention mechanism,small target detection layer and Focal-EIOU loss function. The results of ablation experiments showed that AP@0.5 and AP@0.5:0.95 were increased by 2.2% and 0.9%, respectively, after adding only small target detection layer on the basis of YOLOv10n, and the accuracy and recall rate were also significantly improved. When the MHSA and Focal-EIOU loss functions were further added, the model detection effect was significantly improved. Compared with the baseline model YOLOv10n, the AP@0.5, AP@0.5:0.95, P-value and R-value were improved by 6.6%, 10.0%, 4.1% and 5.1%, respectively. Although the FPS was reduced, the detection performance of the improved model was significantly better than that of the original model in various complex scenes, especially for small target detection in densely distributed and occluded scenes.

Conclusions

By introducing MHSA and the optimized loss function (Focal-EIOU)into YOLOv10n model, the research significantly improved the accuracy and efficiency of tree planting location detection in the Three North Project in Inner Mongolia. The experimental results show that MHSA can enhance the ability of the model to extract local and global information of the target in complex background, and effectively reduce the phenomenon of missed detection and false detection. The Focal-EIOU loss function accelerates the convergence speed of the model and improves the positioning accuracy by optimizing the sample imbalance problem in the bounding box regression task. Although the model processing speed has decreased, the method proposed still meets the real-time detection requirements, provides strong technical support for the scientific afforestation of the Three North Project.

Issue
Detection of wheat scab spores in dense scene based on YOLOv8-FECA
Transactions of the Chinese Society of Agricultural Engineering 2024, 40(21): 127-136
Published: 15 November 2024
Abstract PDF (1.5 MB) Collect
Downloads:4

Wheat scab is one of the most serious diseases that threaten global wheat production. The primary causal agents can be from the fungi Fusarium graminearum and Fusarium asiaticum. The Fusarium spores can be disseminated in the transmission and infection of wheat scab. Consequently, the early and precise identification of pathogen spore concentrations is of paramount importance to prompt the detection of wheat scab, particularly for the high wheat yield and quality, as well as food safety. Conventional techniques, such as microscopic observation and medium isolation, have posed a great challenge to the rapid response and the transmission of large-scale crop disease, due to time-consuming and sophisticated technical expertise. Furthermore, there are missed and erroneous detections of densely distributed small targets in scab spore images. In this study, a small target detection model, YOLOv8-FECA was developed to overcome this challenge. Firstly, a small target detection layer with a feature map size of 160×160 was added to the original YOLOv8 baseline model. The network was then improved to capture the semantic information of small targets, in order to enhance the accuracy of feature description. Secondly, a focus attention mechanism, FECA, was designed to combine the CBAM and ECA modules. This module was then added at the neck end of the network to reduce information loss during downsampling. Ultimately, Wise-IoU Loss and DFL Loss were integrated as the regression loss for the bounding box, in order to enhance the convergence and the precision of bounding box estimation. The experimental results demonstrate that the small target detection layer was added to introduce the focus attention mechanism, compared with the original YOLOv8 baseline model. Wise-IoU Loss and DFL were also introduced after Loss improvement. The average detection accuracy of the new YOLOv8-FECA on spore data set mAP@0.5 and mAP@0.5:0.95 increased by 4.3 percentage points and 6.3 percentage points, respectively, compared with the benchmark model Yolov8n. In terms of performance, the YOLOv8-FECA model was improved in both accuracy and recall, compared with the YOLOv8n. The improved model demonstrated an elevated degree of accuracy and comprehensiveness in identifying the wheat scab spores, with an increase of 2.6 percentage points in Precision and 3.8 percentage points in Recall. There was a decrease in the frame rate per second (FPS) of YOLOv8-FECA, compared with YOLOv8n (from 134 to 106). Nevertheless, a high detection speed was achieved among performance indicators. The YOLOv8-FECA successfully improved the detection accuracy during real-time detection, where mAP @ 0.5 reached 96.8 %. The robustness of the model was verified as well. The results demonstrated that the accurate detection of spores was achieved even in challenging scenarios, such as the high spore density and low light conditions. Moreover, compared with the prevalent target models, including YOLOv5s, YOLOv7-tiny, SSD network, and the exemplar two-stage Faster-R-CNN, YOLOv8-FECA exhibited superior performance, in terms of mAP. The new model was superior in detecting small targets, such as scab spores. This finding can provide technical support to the automatic detection of wheat scab spores in the field, especially for the early warning of scab.

Total 2