Foggy day unmanned aerial vehicle detection system based on AO-YOLOv8

By combining the improved anti-fog network AOD-Net and the target detection network YOLOv8n, using fog simulation and atmospheric scattering models, the problem of low UAV detection accuracy in foggy weather is solved, and high-accuracy identification under foggy weather conditions is achieved. The rate of missed detection and false detection is reduced.

CN118570448APending Publication Date: 2024-08-30GUILIN UNIV OF ELECTRONIC TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410712017.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Under foggy weather conditions, the quality of images captured by electronic equipment decreases, resulting in a decrease in UAV detection accuracy. Existing technologies are difficult to effectively identify small targets, and there are problems of missed detection and false detection.

Method used

Combined with the improved dehazing network AOD-Net and target detection network YOLOv8n, by creating a synthetic fog data set, using the Monodepth2 self-supervised monocular depth estimation model and atmospheric scattering physical model to perform fog simulation, replacing the K estimation module of AOD-Net with RFAConv , train the YOLOv8n model to achieve fog removal processing and target detection for UAVs in foggy weather.

Benefits of technology

The accuracy of UAV detection under foggy conditions is improved. Experimental results show that the accuracy of the improved algorithm is increased by 1.8%, effectively reducing missed detections and false detections, and improving recognition accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570448A
    Figure CN118570448A
Patent Text Reader

Abstract

The invention discloses a foggy day unmanned aerial vehicle detection system based on AO-YOLOv8. Specifically, an improved K estimation module is provided for a defogging module AOD-Net so as to effectively remove fog and highlight target features of the unmanned aerial vehicle. And meanwhile, in combination with a target detection algorithm YOLOv8, defogging and target detection are combined to improve the detection precision of the small target of the unmanned aerial vehicle. In order to optimize performance and resource use efficiency, the defogging module and the target detection module are designed to be end-to-end joint reasoning. According to the method, unmanned aerial vehicle images are captured and marked under the fog weather condition, fog synthesis is performed on the unmanned aerial vehicle images under the normal weather condition, and a data set named as GUET-UAV-FOG is constructed and used for evaluating the performance of the proposed network. Experimental results show that the method achieves a good defogging target detection effect in practical application.
Need to check novelty before this filing date? Find Prior Art

Description

(I) Technical field

[0001] The present invention relates to the field of computer vision, and in particular to a foggy UAV detection system based on AO-YOLOv8. (II) Background technology

[0002] With the widespread use of commercial and civil drones, they not only provide great convenience for human life, but also bring some safety hazards. Therefore, detection technology for drones has gradually become the focus of research. At present, these technologies are mainly divided into four main categories: radar, radio frequency, acoustic and vision.

[0003] Radar equipment is large in scale, relatively complex in structure, expensive, and susceptible to electromagnetic interference. Radio frequency technology can intercept the control signals of remote controllers and drones through high-frequency electromagnetic waves, thereby locating drones, but it has no effect on drones that are pre-programmed or do not require real-time communication control. Acoustic technology distinguishes drones through the unique acoustic characteristics emitted by drone propellers. In a noisy environment like a city, misjudgment is very likely to occur. Visual technology uses cameras and other optoelectronic devices to obtain images and further process the images. It is convenient to extract features and can provide visual information such as the appearance, size and load of drones, but this technology does not have the advantage of detection distance. In addition, due to the small size and light weight of drones, it is impossible to perform motion analysis through flight posture changes like large aircraft. Therefore, there are obvious advantages in using machine vision to visualize drones. Combining the above technical characteristics, the drone detection method based on computer vision can effectively realize the detection of drones. However, in actual application scenarios, such as foggy weather conditions, it will have a negative impact on the quality of images captured by electronic devices, such as image blur, grayish white, reduced contrast, etc. These factors will seriously affect the detection performance of the target detection model, resulting in a decrease in detection accuracy and further affecting subsequent visual tasks.

[0004] The present invention proposes to combine the improved defogging network AOD-Net with the target detection network YOLOv8n. Using the improved defogging network to defog the target can effectively improve the detection accuracy of UAVs under foggy conditions. (III) Summary of the invention

[0005] This paper proposes a foggy drone detection system based on AO-YOLOv8, aiming to solve the problems of missed detection and false detection of small drone targets in foggy weather.

[0006] To achieve the above object, the present invention provides a foggy UAV detection system based on AO-YOLOv8, and the method comprises the following steps:

[0007] S1: Shoot a drone dataset under normal weather conditions and a drone dataset under foggy weather conditions, take frames from the video, get drone images, and then annotate the images.

[0008] S2: Create a synthetic fog dataset, use the Monodepth2 self-supervised monocular depth estimation model to estimate the depth map of the drone dataset taken under normal weather conditions, then apply the atmospheric scattering physical model to combine the depth map and the original image for fogging, and change the fogging parameters to obtain a more realistic fog dataset. Combine the simulated fog drone dataset with the fog drone dataset under real conditions to obtain a fog drone dataset for training the target detection network.

[0009] S3: Improve the dehazing network by replacing the last ordinary convolutional layer of the K estimation module in the AOD-Net dehazing network with RFAConv, and use the NYU2 synthetic fog dataset to train the improved dehazing network.

[0010] S4: Train the YOLOv8n object detection model using the foggy drone dataset.

[0011] S5: The improved defogging network and target detection network are jointly inferred on the test set: the defogging network defogs the original foggy image and then sends the image to the target detection network. YOLOv8 recognizes the target and obtains the detection frame information of the drone, and finally obtains accurate detection results.

[0012] In S1 and S2, the data set is a foggy drone data set. Data sets play a vital role in target detection. A good data set is conducive to the training of target detection models and improves the accuracy of algorithm results. The foggy drone data set has a total of 6740 images and consists of two parts. One part is a simulated foggy drone data set obtained by simulating the drone data set under normal weather conditions, and the other part is a drone data set taken under real foggy conditions. The two parts are combined to obtain the total foggy drone data set. In network training, the ratio of training set, validation set and test set is 8:1:1.

[0013] The specific process of fog simulation is as follows:

[0014] First, the Monodepth2 self-supervised monocular depth estimation model is used to estimate the depth map of the drone dataset taken under normal weather conditions. Then, the atmospheric scattering model is used to combine the depth map and the original image to simulate the fog and obtain the simulated foggy drone image. The atmospheric scattering model is defined as:

[0015] I(x)=J(x)e -βd(x)+A(1-e -βd(x) )

[0016] Where I(x) represents the observed foggy image, J(x) is the clear image to be restored, A represents the global atmospheric light, β is the atmospheric scattering coefficient and d(x) is the distance between the object and the camera. In order to generate a scene distribution similar to that in a real foggy scene, that is, to generate fog scenes of different concentrations, the β and A values ​​are randomly assigned.

[0017] The experiment in S3 improves the K estimation module of AOD-Net. The last ordinary convolution layer is replaced with RFAConv to highlight the target features, which is beneficial to the subsequent target detection task. RFAConv is a receptive field attention that not only focuses on the spatial characteristics of the receptive field, but also provides effective attention weights for large-size convolution kernels. This method significantly improves network performance while minimizing the increase in computational cost and parameter count, and RFAConv can capture the key areas of the image, which is convenient for improving the model accuracy in detection tasks. Finally, the improved defogging network is trained using the NYU2 synthetic fog dataset to obtain a defogging model.

[0018] In the S4, this experiment uses the YOLOv8n model for target detection. YOLOv8n is divided into 5 models of n, s, l, m, and x according to different usage scenarios. The network depth is deepened successively, and the detection accuracy is increased successively. Among them, YOLOv8n has the smallest number of parameters and the fastest detection speed. The YOLOv8n network is divided into 4 parts: input, backbone network, neck network, and head network. The input end mainly includes mosaic data enhancement, adaptive anchor frame calculation, and adaptive grayscale filling. The backbone network has Conv, C2f, and SPPF (spatial pyramid pooling fusion) structures, among which the C2f module is the main module for learning residual features. This module is based on the ELAN structure of YOLOv7, through more branch cross-layer connections, so that the model has a richer gradient flow, forming a neural network module with stronger feature representation capabilities. The neck network adopts a path aggregation network (PAN) structure, which can enhance the network's feature fusion ability for objects of different scaling scales. The head network decouples the detection process, mainly including loss calculation and target detection box screening. The loss calculation process mainly includes positive and negative sample allocation strategy and Loss calculation. In the YOLOv8n network, the Task Aligned Assigner allocation strategy is mainly used, that is, positive samples are selected according to the weighted results of classification and regression scores; loss calculation covers two branches, classification and regression. Among them, the classification branch uses binary cross entropy loss (BCE Loss) for training; the regression branch combines distribution focal loss (DF Loss) and complete intersection over union loss (CIOU Loss) to improve the accuracy of the model's bounding box prediction;

[0019] In S5, the improved AOD-Net model and the YOLOv8n target detection algorithm are jointly inferred on the test set to obtain accurate drone detection results under foggy weather conditions.

[0020] The beneficial effects of the present invention are:

[0021] The present invention designs a foggy UAV detection system based on AO-YOLOv8. The improved AOD-Net defogging network is combined with the YOLOv8n target detection algorithm to realize the detection and recognition of UAVs in foggy weather conditions. The K estimation module of the AOD-Net defogging model is improved, and the ordinary convolution is replaced with the receptive field attention module RFAConv, and finally combined with YOLOv8n for target detection. The experimental results show that the improved defogging algorithm combined with the target detection network is 1.8% more accurate than the original defogging algorithm combined with the target detection network, which effectively improves the recognition accuracy of UAVs in foggy weather conditions. (IV) Description of the drawings

[0022] Figure 1 This is the AO-YOLOv8 network architecture diagram proposed by the present invention;

[0023] Figure 2 This is an example of using the Monodepth2 self-supervised monocular depth estimation model to obtain a depth map and synthesize a foggy image.

[0024] Figure 3 This is the flowchart of AO-YOLOv8 joint reasoning.

[0025] Figure 4 This is a performance comparison chart of AO-YOLOv8 and the original AOD-Net model combined with the YOLOv8n target detection algorithm on the test set, where mAP@0.5 is the average precision of the drone when the threshold is 0.5. (V) Specific implementation methods

[0026] The following will be combined with the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention, and the examples of the implementation are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.

[0027] A foggy drone detection system based on AO-YOLOv8, comprising the following steps:

[0028] S1: Construct a target detection foggy drone dataset, capture a drone dataset under normal weather conditions and a drone dataset under foggy weather conditions.

[0029] S2: Simulate the drone dataset under normal weather conditions to obtain a simulated foggy drone dataset, then combine the drone dataset under real foggy weather conditions with the simulated foggy drone dataset to obtain the total foggy drone dataset, and perform target image annotation.

[0030] S3: The dehazing network is improved by replacing the last ordinary convolutional layer of the K estimation module in the AOD-Net dehazing network with RFAConv, and the improved dehazing network is trained using the NYU2 synthetic fog dataset.

[0031] S4: Train the YOLOv8n object detection model using the foggy drone dataset.

[0032] S5: The improved defogging network and target detection network are jointly inferred on the test set: the defogging network defogs the original foggy image and then sends the image to the target detection network. YOLOv8n recognizes the target and obtains the detection frame information of the drone, and finally obtains accurate detection results.

[0033] The following is a further explanation based on the specific implementation steps:

[0034] In S1 and S2, the data set is a foggy drone data set. Data sets play a vital role in target detection. A good data set is conducive to the training of target detection models and improves the accuracy of algorithm results. The foggy drone data set has a total of 6740 images and consists of two parts. One part is a simulated foggy drone data set obtained by simulating the drone data set under normal weather conditions, and the other part is a drone data set taken under real foggy conditions. The two parts are combined to obtain the total foggy drone data set. Among them, the simulation data set is to expand the data set to include scenes under foggy conditions. We selected a series of images from drone images taken under normal weather conditions and simulated the images using synthetic fog technology. In network training, the ratio of training set, validation set and test set is 8:1:1.

[0035] The specific process of fog simulation is as follows:

[0036] This paper refers to the existing fog synthesis method and uses a monocular unsupervised depth estimation method to predict the depth of objects in the image. Compared with simply performing global processing on the fog-free image to simulate the fog environment, the fog simulation method based on the Monodepth2 self-supervised monocular depth estimation model can better represent the characteristics of fog changing with increasing distance and better reflect the real scene. After generating a depth map through monocular depth estimation, the clear drone image and the generated depth map are fused through the atmospheric scattering model to obtain a total of 970 drone images of foggy scenes. The atmospheric scattering model is defined as:

[0037] I(x)=J(x)e -βd(x) +A(1-e -βd(x) )

[0038] Where I(x) represents the observed foggy image, J(x) is the clear image to be restored, A represents the global atmospheric light, β is the atmospheric scattering coefficient and d(x) is the distance between the object and the camera. In order to generate a scene distribution similar to that in a real foggy scene, that is, to generate fog scenes of different concentrations, the β and A values ​​are randomly assigned.

[0039] In the experiment described in S3, the K estimation module of AOD-Net is improved. The last ordinary convolution layer is replaced with RFAConv. The last layer processes and merges the key nodes of multiple previous layer outputs. The use of RFA convolution here can help the model process and fuse these complex features more effectively, which may significantly improve the final defogging effect. Such changes are also relatively moderate and will not excessively disturb the initial feature extraction stage of the network. It can also be strengthened at key decision points, which is beneficial to subsequent target detection tasks. RFAConv is a receptive field attention that not only pays attention to the spatial characteristics of the receptive field, but also provides effective attention weights for large-size convolution kernels. This method significantly improves network performance while minimizing the increase in computational cost and parameter count. RFAConv can capture the key areas of the image, which is convenient for improving the model accuracy in detection tasks. Finally, the improved defogging network is trained using the NYU2 synthetic fog dataset to obtain a defogging model.

[0040] In the S4, this experiment uses the YOLOv8n model for target detection. YOLOv8n is divided into 5 models of n, s, l, m, and x according to different usage scenarios. The network depth is deepened successively, and the detection accuracy is increased successively. Among them, YOLOv8n has the smallest number of parameters and the fastest detection speed. The YOLOv8n network is divided into 4 parts: input, backbone network, neck network, and head network. The input end mainly includes mosaic data enhancement, adaptive anchor frame calculation, and adaptive grayscale filling. The backbone network has Conv, C2f, and SPPF (spatial pyramid pooling fusion) structures, among which the C2f module is the main module for learning residual features. This module is based on the ELAN structure of YOLOv7, through more branch cross-layer connections, so that the model has a richer gradient flow, forming a neural network module with stronger feature representation capabilities. The neck network adopts a path aggregation network (PAN) structure, which can enhance the network's feature fusion ability for objects of different scaling scales. The head network decouples the classification and detection processes, mainly including loss calculation and target detection box screening. The loss calculation process mainly includes the positive and negative sample allocation strategy and Loss calculation. In the YOLOv8n network, the Task Aligned Assigner allocation strategy is mainly used, that is, the positive sample is selected according to the weighted results of the classification and regression scores; the loss calculation covers two branches, classification and regression. Among them, the classification branch uses binary cross entropy loss (BCE Loss) for training; the regression branch combines distribution focal loss (DF Loss) and complete intersection over union loss (CIOU Loss) to improve the accuracy of the model's bounding box prediction.

[0041] In S5, the improved AOD-Net model and the YOLOv8n target detection algorithm are jointly inferred on the test set to obtain accurate drone detection results under foggy weather conditions.

[0042] What is disclosed above is only a preferred embodiment of the present invention, and it certainly cannot be used to limit the scope of rights of the present invention. Ordinary technicians in this field can understand that all or part of the processes of the above embodiment and equivalent changes made according to the claims of the present invention still fall within the scope of the invention.

Claims

1. A foggy drone detection system based on AO-YOLOv8, It is characterized in that The method comprises the following steps: S1: Shoot a drone dataset under normal weather conditions and a drone dataset under foggy weather conditions, and perform frame processing on the videos. S2: Create a synthetic fog dataset. Use the Monodepth2 self-supervised monocular depth estimation model to estimate the depth map of the drone dataset taken under normal weather conditions. Then apply the atmospheric scattering physical model to combine the depth map and the original image for fogging to obtain a simulated foggy drone dataset. Combine the simulated foggy drone dataset with the foggy drone dataset under real conditions. Finally, label all target images to obtain a foggy drone dataset for training the target detection network. S3: Improve the dehazing network by replacing the ordinary convolutional layer of the K estimation module in the AOD-Net dehazing network with RFAConv, and use the NYU2 synthetic fog dataset to train the improved dehazing network. S4: Train the YOLOv8n object detection model using the foggy drone dataset. S5: The improved defogging network and target detection network are jointly inferred on the test set: the defogging network defogs the original foggy image and then sends the image to the target detection network. YOLOv8 recognizes the target and obtains the detection frame information of the drone, and finally obtains accurate detection results.

2. A foggy drone detection system based on AO-YOLOv8 according to claim 1, Features: The YOLOv8n model is the smallest and fastest network in the YOLOv8 series.

3. The foggy drone detection system based on AO-YOLOv8 according to claim 1, Features: AOD-Net is a lightweight end-to-end trainable dehazing model designed based on a reformulated atmospheric scattering model. Unlike most previous methods, it does not estimate the transmission matrix e separately. -βd(x) Instead of estimating these intermediate parameters, AOD-Net directly predicts a clear image. The formula of AOD-Net based on the atmospheric scattering model is: I(x)=J(x)e -βd(x) +A(1-e -βd(x) ) J(x)=K(x)I(x)-K(x)+b where I(x) represents the observed foggy image, J(x) is the clear image to be restored, A represents the global atmospheric light, β is the atmospheric scattering coefficient and d(x) is the distance between the object and the camera.

4. The foggy drone detection system based on AO-YOLOv8 according to claim 1, Features: In S2, the synthetic fog dataset uses a monocular unsupervised depth estimation method to predict the depth of objects in the image. The fog simulation method based on monocular depth estimation can better represent the characteristics of fog changing with increasing distance and better reflect the real scene. After generating a depth map through monocular depth estimation, the clear drone image and the generated depth map are fused through the atmospheric scattering model to obtain a fog simulation image.

5. The foggy drone detection system based on AO-YOLOv8 according to claim 1, Features: In S3, RFAConv dynamically adjusts the convolution parameters according to the spatial characteristics of the receptive field, and achieves more effective feature extraction by focusing on the spatial characteristics of the receptive field.

6. The foggy drone detection system based on AO-YOLOv8 according to claim 1, Features: The target detection method under foggy conditions combines AOD image defogging and YOLOv8n target detection model, which improves the target detection effect.