Unmanned aerial vehicle aerial image detection method based on YOLOv8s-GElAN
By introducing the RepNCSPELAN module and small target detection layer in YOLOv8s-GElAN, and using the Wise-IOU loss function, the problem of small target detection in UAV aerial images is solved, and efficient and accurate target detection is achieved, which is suitable for complex environments and resource-intensive environments. Limited equipment.
Patent Information
- Application Number
- CN202410983238.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-10-18
AI Technical Summary
It is difficult to detect small targets in UAV aerial images. Traditional deep learning models are difficult to deploy on resource-constrained UAV equipment and require high detection accuracy and real-time response. Existing improvement methods often sacrifice detection when improving detection accuracy. speed or accuracy.
The UAV aerial image detection method based on YOLOv8s-GElAN is used to replace the original network layer by introducing the RepNCSPELAN module in the generalized efficient aggregation network, add a small target detection layer, and replace the loss function with Wise-IOU, optimizing the network structure to Improve small target detection accuracy and adaptability.
Achieving efficient detection in complex and changeable environments improves the detection performance and network adaptability of small targets, reduces the number of model parameters, enhances the adaptability to UAV platforms, and improves detection accuracy and real-time performance.
Smart Images

Figure CN118799293A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image detection, and in particular to a method for detecting unmanned aerial vehicle (UAV) aerial images based on YOLOv8s-GElAN. Background Art
[0002] With the rapid development and widespread application of drone technology, drone aerial images have become an indispensable data source in many fields such as agricultural monitoring, urban planning, environmental protection and disaster relief operations. These high-altitude images provide unprecedented perspectives and details, greatly promoting the efficiency of data collection and analysis. However, images taken by drones often cover large geographical areas, among which small target detection is particularly difficult. These small targets, such as people and vehicles, appear small in size and have unclear details in the image, making them difficult to be effectively identified by traditional target detection methods. Therefore, in recent years, increasing attention to the accuracy of small target detection has become a focus of research.
[0003] With the rapid development of deep learning, the performance of deep learning-based target detection has far exceeded that of traditional target detection methods. Deep learning-based target detection methods can be divided into one-stage and two-stage target detection methods. Two-stage methods, such as R-CNN[5] and Faster R-CNN, classify and locate by first generating candidate regions and then extracting features. One-stage methods, such as the YOLO series and SSD, directly predict the target category and location through a single network, simplifying the process and improving the detection speed. Although the two-stage method can provide higher detection accuracy, its higher method complexity is not suitable for scenarios that require fast response, such as target detection on fast-moving drones. In view of this, the one-stage target detection method, with its faster detection speed, has become a better choice.
[0004] Although deep learning-based target detection technology has achieved remarkable results, its performance in drone target detection applications is not satisfactory. The main reason is that there are obvious differences between drone aerial images and general natural landscape images. Such images often involve vast scenes, diverse scales, small targets, complex backgrounds, and occlusions between targets, all of which increase the difficulty of target recognition. In addition, drone target detection requires extremely high real-time response and accuracy of the system, and complex deep learning models are often difficult to deploy directly on resource-constrained drone equipment, while simplified lightweight models often sacrifice a certain degree of accuracy.
[0005] To solve these problems, scholars at home and abroad have carried out a series of research. Wang proposed the UAV-YOLOv8 method based on YOLOv8 for UAV small target detection. The designed FFNB module realizes the deep and shallow fusion of features, significantly improving the accuracy of small target detection. Although the performance is improved, the detection of some blurred small targets still needs to be improved. In his research, Zhang proposed ATS-YOLOv7 by improving the YOLOv7 model. By introducing AF-FPN and a transformer-based prediction head, the detection of multi-scale targets and detail features was optimized, and the detection speed and accuracy of multi-scale targets were improved. Liu proposed the DCEF2-YOLO model, which combines deformation convolution and efficient feature fusion technology to improve the performance of small target detection. Although it sacrificed a certain detection speed, the model showed excellent performance on multiple aerial image test sets, demonstrating its excellence in small target detection. Cheng Huanxin et al. introduced the multi-scale attention mechanism EMA and the improved C2f module on the basis of YOLOv8 to enhance feature extraction, improve the processing speed and reduce the model parameters, and improve the practicality and efficiency of the method. LiTan et al. introduced dilated convolution and ultra-lightweight subspace attention mechanism (ULSAM) based on the YOLOv4 method, which improved the processing speed of the network without sacrificing recognition accuracy. Liu et al.
[14] proposed an optimization method UAV-YOLO based on YOLOv3, and proposed an optimization training method for the drone perspective dataset, which significantly improved the accuracy of small target detection.
[0006] Patent CN117372898A discloses a method for detecting drone aerial images based on improved YOLOv8, and patent CN118097464A discloses a method for detecting drone aerial images based on improved YOLOv7. Compared with the previous two patents, the present invention is based on the YOLOv8 network, and introduces the RepNCSPELAN module in the generalized efficient aggregation network to replace the C2F module in the original network layer, thereby reducing network parameters and enhancing the feature extraction capability of the target; in addition, by modifying the network results, adding a small target detection layer of 160*160 size, and adjusting the feature map configuration of the output layer, the model significantly improves the detection accuracy of small targets while maintaining the large target detection capability. Replace with the Wise-IOU loss function to reduce the gradient influence of extreme samples, further optimize the overall performance and stability of the model, and further improve the recognition accuracy of the detected target.
[0007] Therefore, there is an urgent need for a UAV aerial image detection method based on YOLOv8s-GElAN to solve the above problems. Summary of the invention
[0008] To solve the above problems, the present application provides a UAV aerial image detection method based on YOLOv8s-GElAN, so as to achieve the purpose of efficient detection in complex and changeable environments and images with densely stacked targets.
[0009] In this application, a method for detecting drone aerial images based on YOLOv8s-GElAN is provided, comprising the following steps:
[0010] S1. Process the VisDrone2019 dataset to obtain training set, test set and validation set;
[0011] S2. Build an improved YOLOv8 model and train the training set on the improved model;
[0012] S3, use the test set of S1 to test the improved YOLOv8 model;
[0013] S4. Evaluate using the evaluation indicators of precision, recall, average precision, and FPS.
[0014] Preferably, the specific content of processing the VisDrone2019 dataset in S1 is:
[0015] Convert the format in the dataset into YOLO format through code;
[0016] The data set is divided into training set, test set and validation set.
[0017] Preferably, the specific steps of building the YOLOv8s-GElAN network improvement model in S2 are as follows:
[0018] Build the YOLOv8s basic network model;
[0019] Use the RepNCSPELAN module in the Generalized Efficient Aggregation Network (GELAN) to replace the C2F module in the YOLOv8s base network model;
[0020] Added a small target detection layer to the YOLOv8s basic network model;
[0021] Change the loss function to Wise-IOU.
[0022] Preferably, the specific content of using the RepNCSPELAN module in the generalized efficient aggregation network (GELAN) to replace the C2F module in the original model is:
[0023] Extract the RepNCSPELAN module from the lightweight network structure GELAN of gradient path planning;
[0024] The RepNCSPELAN module consists of multiple submodules, including a series of convolutional layers (Conv) and RepNCSP modules;
[0025] The main parameters of the RepNCSPELAN module are the number of input channels (c1), the number of output channels (c2), and the number of intermediate channels (c3, c4);
[0026] cv1, cv2, cv3 and cv4 in the RepNCSPELAN module represent different combinations of convolution operations and RepNCSP modules respectively.
[0027] Preferably, the specific content of the newly added small target detection layer in the YOLOv8s basic network model is:
[0028] The original output layer feature maps of the YOLOv8s basic network model are: 80*80 feature size, 40*40 feature size, and 20*20 feature size;
[0029] From the first C2faster in Backbone, an output with an output size of 160*160 is derived;
[0030] A Detect module with a feature size of 160*160 is added to the original output layer feature map of the Head;
[0031] Add upsampling, Concat and C2faster modules in Neck;
[0032] Delete the original module with 20*20 feature size in Neck;
[0033] Modify the feature map of the 20*20 feature size output layer to: 160*160, 80*80, 40*40;
[0034] The modules to which the original 20*20 feature size belongs include the upsampling module connected to SPPF, the Concat module, the C2faster module and the conv module.
[0035] Preferably, the loss function is replaced with WIoUv3.
[0036] Preferably, the expression of WIoUv3 loss function is:
[0037]
[0038] L WIoUv3 =rL WIoUv1 ;
[0039]
[0040] β represents the outlier degree of the anchor box, r represents a scaling factor used to adjust the value of the WIoUv1 loss function, and δ and α are two hyperparameters.
[0041] In summary, the UAV aerial image detection method based on YOLOv8s-GElAN of the present invention has the following beneficial effects compared with the traditional UAV aerial image detection method technology:
[0042] 1. According to the special properties of drone aerial images, the YOLOv8-GELAN target detection network is designed, which can perform efficient detection in complex and changing environments and images with densely stacked targets.
[0043] 2. By adjusting the network structure and adding a small target detection layer designed for small targets, the network's detection ability for objects of different scales can be improved.
[0044] 3. In order to adapt to the UAV platform, by introducing the generalized efficient aggregation network (GELAN), the detection performance of small targets is improved while reducing the number of parameters, thereby improving the adaptability of the network to the UAV platform.
[0045] 4. By introducing the WIOU loss function, the target's position information is processed finely through WIOU, which reduces the error of small target positioning and improves the detection accuracy.
[0046] 5. Based on the test results on the VisDrone2019 dataset, YOLOv8-GELAN has excellent target detection performance in drone aerial images, surpassing the existing mainstream detection networks.
[0047] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 A YOLOv8 network structure diagram of a UAV aerial image detection method based on YOLOv8s-GElAN in the present invention;
[0049] Figure 2 It is a YOLOv8-GELAN structure diagram of a UAV aerial image detection method based on YOLOv8s-GElAN of the present invention;
[0050] Figure 3 This is a GELAN structure diagram of a UAV aerial image detection method based on YOLOv8s-GElAN of the present invention;
[0051] Figure 4It is a RepNCSPELAN structure diagram of a UAV aerial image detection method based on YOLOv8s-GElAN of the present invention;
[0052] Figure 5 This is a small target detection layer structure diagram of a UAV aerial image detection method based on YOLOv8s-GElAN in the present invention;
[0053] Figure 6 This is a detection effect diagram of a UAV aerial image detection method based on YOLOv8s-GElAN in the present invention;
[0054] Figure 7 This is a comparison chart of the effects of YOLOv8 and YOLOv8-GELAN of a drone aerial image detection method based on YOLOv8s-GElAN in the present invention;
[0055] Figure 8 This is a method step diagram of a UAV aerial image detection method based on YOLOv8s-GElAN in the present invention. DETAILED DESCRIPTION
[0056] The technical solution of the present invention is further described below by means of the accompanying drawings and embodiments. It should be noted that unless otherwise specifically stated, the relative arrangement of components and steps, numerical expressions and numerical values described in these embodiments do not limit the scope of the present application.
[0057] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present application, its application, or uses.
[0058] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered part of the specification.
[0059] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0060] Unless otherwise defined, technical or scientific terms used in the present invention shall have the common meanings understood by one having ordinary skills in the field to which the present invention belongs.
[0061] like Figure 1As shown in the figure, the Backbone part includes conv, c2f, SPPF and other modules, and Neck includes C2F, concat, Upsample, and conv. Head has Detect. Backbone part: conv: represents the convolution operation. The C2F module consists of conv, split, Bottleneck, and concat, where split represents the segmentation operation and Bottleneck represents the bottleneck layer, which aims to reduce the amount of calculation by reducing the number of channels while maintaining or improving the expressiveness of features. concat represents the splicing operation. SPPF includes: conv, MaxPool2d, and concat, where MaxPool2d is the maximum pooling layer. Upsample (up-sampling operation) Detect detection module, including: conv, conv2d (two-dimensional convolution layer), Bbox.loss (bounding box loss), and Cls.loss (category loss).
[0062] like Figure 2 As shown, according to the characteristics of drone aerial images, the present invention is based on the YOLOv8s target detection network, and designs and implements the detection network YOLOv8-GELAN based on the YOLOv8 improvement. By modifying the network structure, adding a small target detection layer, introducing a generalized efficient aggregation network (GELAN), and introducing the Wise-IOU loss function, the network improves the accuracy in the drone aerial image target detection task, while reducing the number of network parameters and reducing its demand for hardware resources.
[0063] like Figure 8 As shown, the present invention provides a UAV aerial image detection method based on YOLOv8s-GElAN, comprising the following steps:
[0064] S1. Process the VisDrone2019 dataset to obtain training set, test set and validation set;
[0065] Since the data format in the VisDrone2019 dataset is different from the YOLO format, the format in the dataset is converted into the YOLO format through code, and divided into training set, test set and validation set according to the proportion of the dataset.
[0066] S2. Build an improved YOLOv8 model and train the training set on the improved model.
[0067] The training set divided in S1 is placed in the improved YOLOv8 network to obtain the feature maps of drone aerial images of various scales. In the YOLOv8 backbone network, (1) the present invention uses the RepNCSPELAN module in the generalized efficient aggregation network to replace the original C2F module. RepNCSPELAN can effectively capture local and global information in the image, reduce network parameters while maintaining the compact model and high computational efficiency, and enhance the network's ability to extract key features of the target. (2) A small target detection layer is added. On the basis of the original output layer feature map of 80*80, 40*40, and 20*20, a Detect module with a feature size of 160*160 is added, and the original module with a feature size of 20*20 is deleted. The feature map of its output layer is modified to 160*160, 80*80, and 40*40. The newly added 160*160 size feature map is used to solve the problem of weak feature information capture of small target information in the image, and further improve the accuracy of small target detection. (3) Replace the CIOU loss function in YOLOv8 with Wise-IOU to reduce the large gradients that occur in extreme samples.
[0068] The specific steps for building the YOLOv8s-GElAN network improvement model in S2 are as follows:
[0069] Build the YOLOv8s basic network model;
[0070] Use the RepNCSPELAN module in the Generalized Efficient Aggregation Network (GELAN) to replace the C2F module in the YOLOv8s base network model;
[0071] Added a small target detection layer to the YOLOv8s basic network model;
[0072] Change the loss function to Wise-IOU.
[0073] like Figure 3 As shown in the figure, the GELAN module is a composite module that combines the CSPNet and ELAN structures, and RepNCSPELAN is a key component of this composite module. It enhances the network's feature extraction capabilities through specific structures and operations, thereby improving the performance of the entire target detection model. The main function of this module is to extract and fuse features. It processes input data through a series of convolutional layers and RepNCSP modules, and finally outputs a feature map after feature fusion. Through this design, RepNCSPELAN can effectively capture local and global information in the image, which is very important for target detection tasks.
[0074] like Figure 4As shown in Figure 1, the RepNCSPELAN module consists of multiple submodules, including a series of convolutional layers (Conv) and RepNCSP modules. The number of input channels (c1), output channels (c2), and intermediate channels (c3, c4) of the module are its main parameters, which determine the size and complexity of the module's feature map. The cv1, cv2, cv3, and cv4 in the module represent different combinations of convolution operations and RepNCSP modules.
[0075] Furthermore, the specific content of using the RepNCSPELAN module in the generalized efficient aggregation network (GELAN) to replace the C2F module in the original model is:
[0076] Extract the RepNCSPELAN module from the lightweight network structure GELAN of gradient path planning;
[0077] like Figure 5 As shown, the RepNCSPELAN module consists of multiple submodules, including a series of convolutional layers (Conv) and RepNCSP modules;
[0078] The main parameters of the RepNCSPELAN module are the number of input channels (c1), the number of output channels (c2), and the number of intermediate channels (c3, c4);
[0079] cv1, cv2, cv3 and cv4 in the RepNCSPELAN module respectively represent different combinations of convolution operations and RepNCSP modules.
[0080] Furthermore, the specific content of the newly added small target detection layer in the YOLOv8s basic network model is:
[0081] The original output layer feature maps of the YOLOv8s basic network model are: 80*80 feature size, 40*40 feature size, and 20*20 feature size;
[0082] From the first C2faster in Backbone, an output with an output size of 160*160 is derived;
[0083] A Detect module with a feature size of 160*160 is added to the original output layer feature map of the Head;
[0084] Add upsampling, Concat and C2faster modules in Neck;
[0085] Delete the original module with 20*20 feature size in Neck;
[0086] Modify the feature map of the 20*20 feature size output layer to: 160*160, 80*80, 40*40;
[0087] The modules to which the original 20*20 feature size belongs include the upsampling module connected to SPPF, the Concat module, the C2faster module and the conv module.
[0088] Furthermore, the loss function is Wise-IOU including WIoUv1, WIoUv2, and WIoUv3.
[0089] The expression of WIoUv1 loss function is:
[0090] L IoU = 1-IoU;
[0091]
[0092] L WloUv1 =R WIoU L IoU ;
[0093] Among them, (x, y) and (x gt ,y gt ) are the coordinates of the center points of the anchor box and the target box respectively, W g and H g is the size of the minimum bounding box, and IoU is a common measure of the overlap between the predicted box and the true box.
[0094] Preferably, the expression of WIoUv2 loss function is:
[0095]
[0096] is the gradient gain of the monotonic focusing coefficient, represents the average value of IoU loss, L WloUv1 is the loss function of WIoUv1, γ is an adjustment factor used to adjust The degree of impact on the final loss value.
[0097] The replacement loss function used in this application is WIoUv3.
[0098] Furthermore, the expression of WIoUv3 loss function is:
[0099]
[0100] L WIoUv3 =rL WIoUv1 ;
[0101]
[0102] β represents the outlier degree of the anchor box, r represents a scaling factor used to adjust the value of the WIoUv1 loss function, and δ and α are two hyperparameters.
[0103] S3. Use the test set of S1 to test the improved YOLOv8 model.
[0104] S4. Evaluate using several evaluation indicators such as precision, recall, average precision, FPS, etc.
[0105] In order to solve the problems of missed detection and false detection caused by large changes in target scale, dense distribution of small-sized targets and complex background in drone aerial images, this application proposes an improved method model YOLOv8-GELAN based on YOLOv8s. First, the RepNCSPELAN module in the generalized efficient aggregation network (GELAN) is introduced to strengthen the network's extraction of key target features while reducing network parameters, thereby improving detection accuracy. Secondly, a small target detection layer is introduced to increase the size of the feature map to be detected, thereby improving the network's perception of small targets. The Wise-IOU loss function is introduced to reduce the large gradients of extreme samples and improve the overall performance of the network model.
[0106] The precision (Precision), recall rate (Recall), mAP50 and mAP50-95 of the method mentioned in the present invention on the VisDrone2019 dataset are 55.7%, 45.3%, 47% and 28.4% respectively, which are 6.7%, 7.9%, 8.8% and 5.6% higher than the original YOLOv8s network, and the number of parameters is reduced by 30%. Experiments show that the improved model can better detect small targets in images and can be effectively applied to various application scenarios of drone aerial image target detection.
[0107] The experimental environment of this article is: Ubuntu version is 18.04.5, NVIDIA GeForce RTX 3090 graphics card, video memory size is 24GB, the programming language used is python 3.8.18, CUDA version is 11.7, torch version is 1.13.1, YOLOv8 version is 8.1.6, and all experiments are carried out under the same hyperparameters.
[0108] In the YOLO series of models, the main indicators for evaluating its network performance are as follows: Precision (P), Recall (R), and Mean Average Precision (mAP). This experiment uses mAP@0.5% and mAP@0.5:0.95% as performance reference indicators. mAP@0.5% and mAP@0.5:0.95% represent the mAP value when the IoU threshold is 0.5 and the average mAP value when the IoU starts from 50% and increases to 95% with a step size of 0.05. The larger the mean average precision mAP, the higher the overall accuracy of the model. The calculation formulas for each indicator are as follows:
[0109]
[0110] Among them, T p Indicates that the true positive is the correct prediction, F p Indicates that the false positive is predicting that a non-small target is a small target, F N It indicates false negative examples, that is, predicting small targets as other categories. AP represents the accuracy of a single category, mAP represents the mean accuracy of all categories, and k is the number of categories.
[0111] In order to verify that the proposed method in this application significantly improves the performance of drone aerial image detection, an ablation experiment was conducted on the VisDrone2019 dataset. Due to the overall difference between the YOLOv8-GELAN network architecture and YOLOv8s, YOLOv8s was numbered A for the experiment. On the basis of A, the network structures obtained by adding RepNCSPELAN, improved small target layer, and Wise-IOU were marked as B, C, and D respectively. The experimental results are shown in Table 1. It can be seen from the table that the use of the RepNCSPELAN module in the generalized efficient aggregation network to replace the original C2f module of YOLOv8 has reduced the number of parameters by 23.4%, and the Precision, Recall, mAP@0.5 and mAP@0.5:0.95 have increased by 3%, 3.2%, 3.2%, and 2.4% respectively compared with YOLOv8s, indicating that the introduction of the RepNCSPELAN module not only reduces the number of parameters of the model, but also improves the performance of the model in the target detection task. After adding the improved small target layer, the model parameters are further reduced, and the ability to capture small targets in drone aerial images is enhanced, so that its Precision, Recall, mAP@0.5 and mAP@0.5:0.95 are further improved by 4.4%, 3.4%, 4.8% and 3%. Finally, Wise-IOU is used to optimize the focus on medium-quality anchor frames, reduce overfitting of low-quality anchor frames, and thus improve the accuracy of the model. In summary, YOLOv8-GELAN improves Precision, Recall, mAP@0.5, and mAP@0.5:0.95 by 6.7%, 7.9%, 8.8%, and 5.6% respectively compared with YOLOv8s, and the FPS is reduced by 4 on the original basis, but the FPS reaches 119. The target detection method in this paper can meet the real-time requirements.
[0112] Table 1. Comparison of ablation experiment results
[0113] Experiment number P R mAP@0.5 mAP@0.5:0.95 Parameter quantity (M) FPS A 49 37.4 38.2 22.8 11.23 123 B 52 40.6 41.4 25.2 8.56 92 C 56.4 44 46.2 28.2 7.77 114 D 55.7 45.3 47 28.4 7.77 119
[0114] In order to verify the superiority of the proposed method in the detection performance of drone aerial images, the proposed method is compared with the YOLO series models in recent years, the recently published YOLOv9 method, and the GELAN proposed in v9 on the Visdrone2019 dataset. The method comparison experiment is shown in Table 2. Compared with other excellent YOLO series target detection methods, YOLOv8-GELAN has achieved the best detection performance with an mAP value of 47%. For the newer YOLOv9-c and GELAN methods, the mAP value of YOLOv8-GELAN is about 1% higher than them, which shows the excellent detection performance of the YOLOv8-GELAN method. This is attributed to the fact that the proposed method optimizes the feature extraction network, strengthens the extraction and retention of small target feature information, and the introduction of RepNCSPELAN can effectively capture local and global information in the image to further improve the detection performance.
[0115] Table 2 Comparison of experimental results
[0116] method P% R% mAP@0.5% mAP@0.5: 0.95% Parameter quantity (M) FPS YOLOv5s 42 31.9 30.9 16.2 7 88 YOLOv5m 45.2 35.1 34.1 18.8 21 65 YOLOv7-tiny 45.9 34.4 32.7 16.6 6 151 YOLOv8s 49 37.4 38.2 22.8 11.23 123 YOLOv8m 52.8 40.3 41.7 25.4 25.86 119 YOLOv9-c 57.2 43.5 45.8 28.4 51 89 GELAN 55.5 44.7 45.9 28.5 31.4 99 Methods 55.7 45.3 47 28.4 7.77 119
[0117] By selecting drone aerial images from the VisDrone2019 test set for detection, the detection results are as follows Figure 6 As shown in the figure, we found that our method can accurately detect and locate small targets such as cars and pedestrians under different lighting conditions and scene backgrounds. Specifically, in different situations such as sparse and dense scenes, day and night, our method successfully suppresses the interference of background noise information such as buildings and trees, thereby achieving accurate classification and positioning of targets. This detection result shows that our method performs well in practical scenarios and has strong adaptability and robustness. It can not only cope with complex backgrounds and different lighting conditions, but also accurately detect targets of various sizes, making it highly practical and reliable in the task of target detection in drone aerial images.
[0118] In order to further evaluate the detection performance of the proposed method for drone aerial images, for specific application scenarios such as wildlife detection, night search operations, and ocean detection, images in three different scenarios, such as sparse targets, dark scenes, and extremely long distances, were randomly selected from the VisDrone2019 test set, and the visual detection results of the baseline method YOLOv8 and the improved method in this paper were compared. After comparison, it was found that YOLOv8-GELAN showed higher detection accuracy than YOLOv8 in cases of sparse targets, dark scenes, and extremely long distances. Specifically, in these scenarios, YOLOv8-GELAN successfully reduced missed detections and false detections, and improved the accuracy and reliability of target detection.
[0119] The comparison results are as follows Figure 7 As shown in the figure, there are relatively few cars in the first group of pictures, and it can be seen that YOLOv8 has missed detections. However, YOLOv8-GELAN detected more correct targets, proving that YOLOv8-GELAN can extract richer features from the input pictures. In the second group of pictures, in dark scenes, YOLOv8 missed pedestrians, while YOLOv8-GELAN did not miss any pedestrians; in the third group of pictures, there are a large number of small targets at a long distance, and YOLOv8-GELAN has better detection results than YOLOv8, detecting many small targets that YOLOv8 did not detect. In general, the detection effect of YOLOv8-GELAN is generally better than YOLOv8 for comparison, proving that the network can extract richer semantic information and has better performance.
[0120] According to the special properties of drone aerial images, the target detection network YOLOv8-GELAN is designed, which can perform efficient detection in complex and changing environments and images with densely stacked targets. By adjusting the network structure and adding a small target detection layer designed for small targets, the network's detection ability for objects of different scales can be improved. In order to adapt to the drone platform, the generalized efficient aggregation network (GELAN) is introduced to improve the detection performance of small targets while reducing the number of parameters. The adaptability of the network to the drone platform is improved. Finally, the WIOU loss function is introduced to finely process the position information of the target through WIOU, which reduces the error of small target positioning and improves the detection accuracy. Based on the test results on the VisDrone2019 dataset, YOLOv8-GELAN has excellent target detection performance in drone aerial images, surpassing the existing mainstream detection network. After YOLOv8-GELAN has achieved a high detection accuracy, there is still room for improvement, especially in terms of network layer, detection accuracy and speed. Future research will focus on further optimizing the network architecture, reducing the model size, reducing the number of model parameters, and improving its real-time detection rate to achieve more efficient target detection.
[0121] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that they can still modify or replace the technical solution of the present invention with equivalents, and these modifications or equivalent replacements cannot cause the modified technical solution to deviate from the spirit and scope of the technical solution of the present invention.
Claims
1. A UAV aerial image detection method based on YOLOv8s-GElAN, characterized in that: The following steps are involved: S1. Process the VisDrone2019 dataset to obtain training set, test set and validation set; S2. Build an improved YOLOv8 model and train the training set on the improved model; S3, use the test set of S1 to test the improved YOLOv8 model; S4. Evaluate using the evaluation indicators of precision, recall, average precision, and FPS.
2. The method for detecting unmanned aerial images based on YOLOv8s-GElAN according to claim 1, characterized in that: The specific content of processing the VisDrone2019 dataset in S1 is as follows: Convert the format in the dataset into YOLO format through code; The data set is divided into training set, test set and validation set.
3. The method for detecting unmanned aerial images based on YOLOv8s-GElAN according to claim 1, characterized in that: The specific steps for building the YOLOv8s-GElAN network improvement model in S2 are as follows: Build the YOLOv8s basic network model; Use the RepNCSPELAN module in the Generalized Efficient Aggregation Network (GELAN) to replace the C2F module in the YOLOv8s base network model; Added a small target detection layer to the YOLOv8s basic network model; Change the loss function to Wise-IOU.
4. The method for detecting unmanned aerial images based on YOLOv8s-GElAN according to claim 3, characterized in that: The specific content of using the RepNCSPELAN module in the generalized efficient aggregation network (GELAN) to replace the C2F module in the original model is: Extract the RepNCSPELAN module from the lightweight network structure GELAN of gradient path planning; The RepNCSPELAN module consists of multiple submodules, including a series of convolutional layers (Conv) and RepNCSP modules; The main parameters of the RepNCSPELAN module are the number of input channels (c1), the number of output channels (c2), and the number of intermediate channels (c3, c4); cv1, cv2, cv3 and cv4 in the RepNCSPELAN module respectively represent different combinations of convolution operations and RepNCSP modules.
5. The method for detecting unmanned aerial images based on YOLOv8s-GElAN according to claim 3, characterized in that: The specific contents of the newly added small target detection layer in the YOLOv8s basic network model are: The original output layer feature maps of the YOLOv8s basic network model are: 80*80 feature size, 40*40 feature size, and 20*20 feature size; From the first C2faster in Backbone, an output with an output size of 160*160 is derived; A Detect module with a feature size of 160*160 is added to the original output layer feature map of the Head; Add upsampling, Concat and C2faster modules in Neck; Delete the original module with 20*20 feature size in Neck; Modify the feature map of the 20*20 feature size output layer to: 160*160, 80*80, 40*40; The modules to which the original 20*20 feature size belongs include the upsampling module connected to SPPF, the Concat module, the C2faster module and the conv module.
6. The method for detecting unmanned aerial images based on YOLOv8s-GElAN according to claim 3, characterized in that: Change the loss function to WIoUv3.
7. The method for detecting unmanned aerial images based on YOLOv8s-GElAN according to claim 6, characterized in that: The expression of WIoUv3 loss function is: L WIoUv3 =rL WIoUv1 ; β represents the outlier degree of the anchor box, r represents a scaling factor used to adjust the value of the loss function, and δ and α are two hyperparameters.
Citation Information
Patent Citations
Improved yolov8-based unmanned aerial vehicle aerial image target detection method
CN117372898A
Unmanned aerial vehicle aerial image target detection method based on improved YOLOv7
CN118097464A
Unmanned aerial vehicle aerial target detection method based on improved YOLOv7
CN117011728A
Small target pest detection method and system based on channel and space cooperative attention
CN118038428A
Unmanned aerial vehicle aerial photography small target detection method based on improved YOLOv8s algorithm and electronic equipment
CN118230194A
Cited By
Remote sensing small target detection method and device
CN119229098A
Power transmission line equipment detection method based on lossless data enhancement strategy
CN119625415A
A method for testing transmission line equipment based on lossless data augmentation strategy
CN119625415B
Intelligent sensing method for automatic driving of small ship
CN119693922A
Night traffic scene salient target detection method based on improved YOLOv9
CN119832528A
