Improved YOLOv8n-based unmanned aerial vehicle target detection method in foggy environment

By improving the YOLOv8n network, combining the depth estimation model and atmospheric scattering physical model, and introducing the global context module GCNet, the problem of low UAV detection accuracy in foggy weather is solved, high-accuracy recognition in foggy environments is achieved, and drones are improved. The effect of human-machine monitoring and safety supervision.

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

Patent Information

Application Number
CN202410712025.8
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 accuracy of UAV target detection decreases, leading to problems of missed detection and false detection. It is difficult for existing technology to effectively identify small UAVs in complex meteorological environments.

Method used

Using the improved YOLOv8n target detection network, a realistic fog data set is generated by creating a GURT-UAV-FOG data set, combined with the Monodepth2 self-supervised monocular depth estimation model and atmospheric scattering physical model, and introduced in the feature extraction and feature fusion network Global context module GCNet improves detection accuracy.

Benefits of technology

The accuracy of UAV detection in foggy weather conditions has been improved. The improved GC-YOLOv8n network has increased the accuracy of identifying UAVs in foggy environments by 2.4%, enhancing the detection capabilities of small or long-distance UAVs. Improved system security and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570449A
    Figure CN118570449A
Patent Text Reader

Abstract

The invention discloses an improved YOLOv8n foggy environment unmanned aerial vehicle target detection method, and establishes an efficient and accurate foggy day unmanned aerial vehicle detection method. Specifically, a global context module GCNet is introduced into YOLOv8n, so that the understanding of a network on a long-distance dependency relationship in an image is enhanced, and the unmanned aerial vehicle small target detection precision under a foggy weather condition is improved. 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 method for detecting unmanned aerial vehicle targets in a foggy environment based on improved YOLOv8n. (II) Background technology

[0002] Object detection is one of the key research directions of artificial intelligence in many fields of industry and life. In recent years, more and more researchers have devoted themselves to the research of object detection. This technology has been widely used in the fields of robotics, drones, aerospace, etc. Unmanned aerial vehicles (UAVs) are aircraft that can achieve autonomous flight. Because of their small size, low cost and flexible movements, they have been used in various aerial photography scenarios. For example, when performing tasks such as air quality monitoring, emergency rescue, military reconnaissance, and enemy target tracking in harsh environments, the role of drones has become crucial. In these challenging scenarios, drones not only provide the advantages of safety and efficiency, but also become an indispensable tool for completing these complex tasks. At the same time, due to the unique structural design of drones, they also bring a series of potential safety hazards. Illegal flights and abuse of drones occur from time to time, causing huge economic losses and safety hazards. Therefore, it is crucial to take effective monitoring measures for drones.

[0003] However, due to their small size and unclear target features, small drone target detection tasks are often affected by complex weather conditions, such as fog, which greatly reduces the detection accuracy. Under clear weather conditions, because of good lighting conditions and good visibility, for the target detection task of small drone targets, it is possible to better identify and detect "illegal" and "indiscriminate" drones. However, under foggy weather conditions, due to the reduced visibility caused by fog, foggy drone images taken by various imaging devices will directly reduce the accuracy of target detection, and targets in foggy images cannot be accurately identified. Detecting drones in foggy weather is even more difficult. Therefore, it is of great practical significance to study how to accurately identify drones in such an environment.

[0004] Therefore, this study is devoted to the related tasks of UAV target detection in foggy weather conditions. The present invention proposes an improved target detection network GC-YOLOv8n. Using the improved target detection network to detect targets can effectively improve the detection accuracy of UAVs under foggy conditions. (III) Summary of the invention

[0005] This paper proposes a method for detecting drone targets in foggy environments based on improved YOLOv8n, aiming to solve the problems of missed detection and false detection of small drone targets in foggy conditions.

[0006] The present invention provides a method for detecting unmanned aerial vehicle targets in a foggy environment based on an improved YOLOv8n, which specifically comprises the following steps:

[0007] S1: Shoot drone videos in clear weather conditions and drone videos in real foggy scenes. After taking frames of the videos, annotate the key information of the drones and obtain part of the GURT-UAV-FOG dataset.

[0008] S2: Create synthetic fog datasets. 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 physics model is used to add fog by combining the depth map obtained in the previous step with the original image. During this process, we adjust the fogging parameters, such as the density and distribution of the fog, to ensure that the generated fog dataset is more visually realistic and diverse. Finally, these simulated fog drone datasets are integrated with the drone datasets collected under real foggy conditions.

[0009] S3: Improve the target detection network and introduce the Global Context (GC) module in the feature extraction and feature fusion network of YOLOv8n.

[0010] S4: Train the improved GC-YOLOv8n target detection model using the GURT-UAV-FOG fog drone dataset.

[0011] S5: The improved GC-YOLOv8n target detection network is inferred on the test set: GC-YOLOv8n identifies the target and obtains the detection box information of the drone, and finally obtains accurate detection results.

[0012] In S1, a key step in the process of making the GURT-UAV-FOG dataset is to collect and process drone videos, which are shot in clear weather and real foggy conditions. First, professional drone equipment is used to fly under different weather conditions to capture the visual environment of clear and foggy days. These videos provide rich visual information for the dataset, covering a wide range of weather conditions, which is extremely important for training and testing drone vision systems. Then, through a precise frame processing step, key frames are extracted from the captured video. This step is to select representative images from a continuous video stream that can show the environmental features under different weather conditions in detail. After the frame processing, each key frame is carefully reviewed and important visual information is extracted from it. In order to make the dataset more practical, these key frames are annotated in detail.

[0013] In S2, for the synthetic fog dataset, the Monodepth2 self-supervised monocular depth estimation model is used to capture the three-dimensional structure of the scene, so as to more accurately simulate the effect of fog in subsequent steps. The atmospheric scattering physical model, which is a mathematical model that simulates the effect of fog on light propagation, is fogged by combining the depth map and the original image obtained in the previous step. Among them, the fogging parameters such as the density and distribution of fog are adjusted to ensure that the generated fog dataset is more visually realistic and diverse. These simulated fog drone datasets are integrated with drone datasets collected under real foggy conditions. The dataset obtained in this way not only contains a wide range of environmental variables, but is also more suitable for training and verifying target detection networks, enabling them to work effectively under various visual conditions, especially in low-visibility foggy environments. This method improves the operational performance of drone systems under complex meteorological conditions, and is of great significance for improving the safety and reliability of drone target detection technology in practical applications. In general, the GURT-UAV-FOG drone dataset has a total of 6740 images, consisting of two parts. One part is the simulated foggy drone dataset obtained by simulating the drone dataset under normal weather conditions, and the other part is the drone dataset taken under real foggy conditions. The two parts are combined to obtain the total foggy drone dataset. In network training, the ratio of training set, validation set and test set is 8:1:1.

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

[0015] The Monodepth2 self-supervised monocular depth estimation model is used to analyze the drone dataset taken under normal weather conditions to generate a depth map, which automatically estimates the distance from each pixel to the camera based on the drone image, providing key depth information for subsequent image processing. Then, the atmospheric scattering model is used to simulate fog by combining the obtained depth map and the original image. The drone images in the simulated foggy environment are obtained, which visually simulate the real foggy effect. The definition of the atmospheric scattering model is based on physical principles and describes how light is scattered and absorbed by particles in the atmosphere under atmospheric conditions where particles such as haze are suspended. By applying this model, we can adjust parameters such as fog density, particle distribution, and the degree of light scattering to create different degrees and types of fog effects, thereby enhancing the scope and applicability of the model under various visibility conditions. The formula of the atmospheric scattering model is as follows:

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

[0017] 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.

[0018] In S3, we improved the YOLOv8n object detection network to improve its accuracy in drone detection under foggy conditions. The network structure of YOLOv8n consists of four main components: input, backbone network, neck network, and detection head module. Among many YOLOv8 variants, we chose YOLOv8n as the detection network. Thanks to its lightweight architecture, it also shows excellent performance on various benchmark datasets. This paper proposes to introduce the GCnet attention mechanism in the backbone feature extraction network and the neck feature fusion network. The Global Context (GC) module is used to simulate long-range dependencies. The network improves the structure and function of the Non-Local (NL) network and the Squeeze-Excitation (SE) network. The global context of different query positions in the NL network is similar, which inspired them to simplify the NL network and create a query-independent simplified module. This simplified module is similar to the structure of the SE network, so the two are fused into a three-step general framework, and GCNet is designed based on this. Compared with traditional NL and SE networks, GCNet is lighter and easier to implement. By simulating global context information, GCNet helps the network to more deeply analyze long-distance dependencies in images. At the same time, the lightweight design of GCNet also ensures that it will not impose a heavy computational burden on the network, which is crucial for real-time target detection applications. The network using GCNet can achieve high accuracy while maintaining good computational efficiency when processing small target detection tasks.

[0019] In S5, when the improved network performs reasoning on the test set, GC-YOLOv8n first identifies the drone target in the image and accurately generates the detection box information of the drone. The improved GC-YOLOv8n network can more effectively handle drone targets of various sizes in complex scenes in the image by using a deeper network architecture and an optimized feature extraction and fusion mechanism. These improvements to the network enhance the detection capabilities of small or long-distance drones. The test results show that the improved GC-YOLOv8n can reliably perform drone recognition tasks in foggy environments, which is of great significance for application scenarios such as drone monitoring, traffic control, and safety supervision.

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

[0021] The present invention designs a method for detecting drone targets in foggy environments based on improved YOLOv8n. By improving the YOLOv8n target detection algorithm, drone detection and recognition in foggy conditions are realized. A global context network GCNet is added to the feature extraction and feature fusion network of YOLOv8n to simulate long-distance dependencies. Experimental results show that the improved GC-YOLOv8n target detection network is 2.4% more accurate than the original YOLOv8n target detection network, which effectively improves the recognition accuracy of drones in foggy weather conditions. (IV) Description of the drawings

[0022] Figure 1 This is the improved GC-YOLOv8n 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. (V) Specific implementation methods

[0024] 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.

[0025] A method for detecting drone targets in a foggy environment based on improved YOLOv8n includes the following steps:

[0026] S1: Collect and process drone videos, which are shot in clear weather and real foggy conditions. First, professional drone equipment is used to fly in different weather conditions to capture the visual environment of clear and foggy days. These videos provide rich visual information for the dataset, covering a wide range of weather conditions, which is extremely important for training and testing drone vision systems. Key frames are extracted from the captured videos through a precise frame processing step. This step is to select representative images from a continuous video stream that can show the environmental features under different weather conditions in detail. After the frame processing, each key frame is carefully reviewed and important visual information is extracted from it. In order to make the dataset more practical, these key frames are annotated in detail.

[0027] S2: Creating synthetic fog datasets. The Monodepth2 self-supervised monocular depth estimation model is used to estimate the depth map of the drone datasets taken under normal weather conditions. This step is to capture the 3D structure of the scene so that the effect of fog can be simulated more accurately in the subsequent steps. Using the atmospheric scattering physics model, which is a mathematical model that simulates the effect of fog on light propagation, fogging is performed by combining the depth map obtained in the previous step with the original image. During this process, the fogging parameters such as fog density and distribution are adjusted to ensure that the generated fog dataset is more visually realistic and diverse. In order to enhance the practicality and robustness of the dataset, these simulated fog drone datasets are integrated with drone datasets collected under real foggy conditions. The resulting dataset not only contains a wide range of environmental variables, but is also more suitable for training and validating the object detection network, enabling it to work effectively in various visual conditions, especially in low-visibility foggy environments.

[0028] S3: Improve the target detection network and introduce the Global Context (GC) module in the feature extraction and feature fusion network in YOLOv8n. The structure of GCNet can be summarized into three steps: global context modeling, channel dependency transformation and feature fusion. In the global context modeling stage, GCNet adopts a more simplified SNL module. The main purpose of this simplification is to further reduce the burden of the network and make GCNet more lightweight. In the conversion stage, GCNet uses a pair of 1×1 convolutions and adds LayersNorm and ReLU loss functions between the two convolutional layers to adjust and optimize the expression of features. Finally, feature fusion is performed by adding broadcast elements step by step. By adding the transformed features to the original input, the model can integrate more context information and improve the expressiveness of the features. At the same time, it can help keep the information in the deep layer of the network from being lost.

[0029] S4: Train the improved GC-YOLOv8n target detection model using the GURT-UAV-FOG fog drone dataset.

[0030] S5: The improved GC-YOLOv8n target detection network is inferred on the test set: GC-YOLOv8n identifies the target and obtains the detection box information of the drone, and finally obtains accurate detection results.

[0031] 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 method for detecting drone targets in foggy environments based on improved YOLOv8n, characterized in that: The method comprises the following steps: S1: Shoot drone videos in clear weather conditions and drone videos in real foggy scenes. After taking frames of the videos, annotate the key information of the drones and obtain part of the GURT-UAV-FOG dataset. S2: Create synthetic fog datasets. 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 physics model is used to add fog by combining the depth map obtained in the previous step with the original image. During this process, we adjust the fogging parameters, such as the density and distribution of the fog, to ensure that the generated fog dataset is more visually realistic and diverse. Finally, these simulated fog drone datasets are integrated with the drone datasets collected under real foggy conditions. S3: Improve the target detection network and introduce the Global Context (GC) module in the feature extraction and feature fusion network of YOLOv8n. S4: Train the improved GC-YOLOv8n target detection model using the GURT-UAV-FOG fog drone dataset. S5: The improved GC-YOLOv8n target detection network is inferred on the test set: GC-YOLOv8n identifies the target and obtains the detection box information of the drone, and finally obtains accurate detection results.

2. According to claim 1, a method for detecting unmanned aerial vehicle targets in a foggy environment based on improved YOLOv8n, characterized in that: The YOLOv8n model is the smallest and fastest network in the YOLOv8 series.

3. The method for detecting unmanned aerial vehicle targets in a foggy environment based on improved YOLOv8n according to claim 1, characterized in that: In S2, the definition of the atmospheric scattering model is based on physical principles, describing how light is scattered and absorbed by particles in the atmosphere under atmospheric conditions where particles such as haze are suspended. By applying this model, we can adjust parameters such as fog density, particle distribution, and the degree of light scattering to create different degrees and types of fog effects, thereby enhancing the application scope and applicability of the model under various visibility conditions. The formula of the atmospheric scattering model is as follows: I(x)=J(x)e -βd(x) +A(1-e -βd(x) ) 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 method for detecting unmanned aerial vehicle targets in a foggy environment based on improved YOLOv8n according to claim 1, characterized in that: 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 method for detecting unmanned aerial vehicle targets in foggy environments based on improved YOLOv8n according to claim 1, characterized in that: In the S3, the Global Context (GC) module is used to simulate long-distance dependencies. The network improves the structure and function of the Non-Local (NL) network and the Squeeze-Excitation (SE) network. The global context of different query positions in the NL network is similar, which inspired them to simplify the NL network and create a query-independent simplified module. This simplified module is similar to the structure of the SE network, so the two are combined into a three-step general framework, and GCNet is designed based on this. Compared with traditional NL and SE networks, GCNet is lighter and easier to implement. By simulating global context information, GCNet assists the network to more deeply resolve long-distance dependencies in the image. At the same time, the lightweight design of GCNet also ensures that it will not impose a heavy computational burden on the network, which is crucial for real-time target detection applications. The network using GCNet can achieve high accuracy while maintaining good computational efficiency when processing small target detection tasks.

6. The method for detecting unmanned aerial vehicle targets in foggy environments based on improved YOLOv8n according to claim 1, characterized in that: The GC-YOLOv8n target detection model is used to detect drones in foggy conditions, which improves the detection effect.

Citation Information

Cited By

  • Semi-supervised target detection method and device for foggy day scene, and medium

    CN120198750A

  • Semi-supervised target detection method, device and medium for foggy scenes

    CN120198750B

  • Foggy day image data set forming method and device based on depth estimation

    CN120451727A