Low-slow-small unmanned aerial vehicle target data set manufacturing method based on image fusion technology and generative adversarial network

Through image fusion technology and generative adversarial network, the difficulty in producing data sets in the field of "low, slow and small" UAV target detection and recognition is solved, achieving fast and efficient data set generation and improving the accuracy of target detection and recognition, ensuring that the data set of high quality and variety.

CN118570667APending Publication Date: 2024-08-30BEIJING INST OF TECH
View PDF 0 Cites 1 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the field of "low, slow and small" UAV target detection and recognition, data set production faces many challenges, including data collection limitations, annotation complexity, privacy and legal issues, and difficulty in ensuring data quality and accuracy, resulting in time-consuming data set production. Long and difficult.

Method used

Using a method based on image fusion technology and generative adversarial network, a data set carrying annotation information is generated through seamless fusion and Alpha fusion, and the generative adversarial network is used to increase the richness and realism of the data set to achieve rapid and accurate detection of UAV targets. Efficient data set production. Specific steps include the extraction of foreground images and masks, image fusion, and training of a generative adversarial network to generate a diverse UAV data set with annotation information in any background.

Benefits of technology

It realizes the rapid and efficient production of UAV target data sets, improves the accuracy of target detection and recognition, solves the problem of data set diversity and insufficient representation, and ensures the high quality and accuracy of the data set.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570667A
    Figure CN118570667A
Patent Text Reader

Abstract

The invention provides a low-slow-small unmanned aerial vehicle target data set manufacturing method based on an image fusion technology and a generative adversarial network. A large amount of new data sets containing targets can be generated by using a small amount of existing low-slow-small unmanned aerial vehicle target data and any background. According to the invention, based on an image fusion technology, a traditional fusion mode is used to realize'placement 'of a'low-slow-small' unmanned aerial vehicle target on a specific background, and a large number of new data sets carrying unmanned aerial vehicle image positions are directly generated. In addition, by means of the thought of the generative adversarial network, the obtained new data set is used for training, the unmanned aerial vehicle target and the target mask are directly and randomly fused with the specific background, and the richness of the data set is increased. According to the method, the data set with the labeling information is generated by using the image fusion technology and the generative adversarial network, the problems of difficult data acquisition and difficult labeling in the target detection and recognition task are solved, and the method has a wide application prospect in the field of target detection and recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of target detection and recognition, and is a method for producing a “low, slow, and small” UAV target data set based on image fusion technology and generative adversarial networks. Technical Background

[0002] The rapid development of target detection and recognition technology is a significant progress in the field of computer vision. However, in the field of "low, slow and small" drone target detection and recognition, dataset production faces many challenges, making the process time-consuming and difficult.

[0003] These drones tend to have small sizes, low-speed movements, and different flight altitudes and environmental conditions, which bring unique difficulties to the construction of the dataset:

[0004] Data collection limitations: Due to the limited flight sites of drones, it becomes more difficult to obtain data under different environmental conditions (such as indoor and outdoor, complex weather, etc.). This makes it difficult for the dataset to cover various flight scenarios, which affects the diversity and representativeness of the dataset.

[0005] Labeling complexity: For small drone targets, accurate position labeling and bounding box labeling are required, but due to their small size, the labeling process is more cumbersome and complicated. In addition, the labeling of different perspectives, postures and distances needs to be considered, which increases the difficulty and time consumption of labeling.

[0006] Privacy and legal issues: The collection of drone data is subject to strict privacy laws and regulations, especially when shooting in protected areas or sensitive locations, which further complicates and limits data collection.

[0007] Data quality and accuracy: The identification of "low, slow and small" UAV targets requires high-quality and high-accuracy data sets. However, in actual operations, due to the uncertainty of the flight environment, the quality and accuracy of the data are difficult to guarantee, which affects the training and generalization capabilities of the model.

[0008] In summary, the dataset production in the field of "low, slow and small" UAV target detection faces many challenges due to its particularity and environmental limitations, which makes the dataset production time-consuming and difficult. In order to overcome these difficulties, it is necessary to combine methods such as automatic annotation technology and synthetic data, and collect data within the legal and ethical framework to more effectively solve this problem and promote the development of "low, slow and small" UAV target detection technology. Summary of the invention

[0009] In view of the above situation, the present invention proposes a method for producing a "low, slow and small" UAV target dataset based on image fusion technology and generative adversarial network. The relatively mature image fusion technology, mainly including seamless fusion technology and simple Alpha method, is used to directly generate a dataset with annotation information through roughly extracted foreground and arbitrarily shot background images, and then a generative adversarial network is used to increase the richness of the dataset and improve the authenticity of the dataset, so as to achieve rapid acquisition of large-scale datasets and improve the detection and recognition accuracy of existing target detection and recognition networks under different background conditions.

[0010] Technical solution: The present invention provides a method for producing a "low, slow, and small" UAV target dataset based on image fusion technology and generative adversarial networks, which is characterized by fast and efficient production of "low, slow, and small" UAV datasets without manual annotation. The specific steps are as follows:

[0011] S1. First, use a fixed shooting device to shoot a frame of image without a target as the background reference; then, record a video clip containing the target - the target posture, position and other information are as rich as possible; compare and analyze each frame of the video with the background image, aiming to identify and extract the part with significant difference and the largest area. This part is identified as the area where the "low, slow and small" UAV target is located, accurately locate and extract the image of this area, and use it as the foreground image for subsequent steps;

[0012] S2, take an arbitrary background image, combine the Seamless Clone method with the simple Alpha fusion method, place the foreground image extracted in S1 at a random position in the background image, and generate a "low, slow and small" drone target image with target position annotation;

[0013] S3. Use all target images in S1 and image blocks of target image placement in S2 as training sets, and use a generative adversarial network to obtain a generator that can generate new foregrounds and corresponding masks, thereby achieving a diversified dataset with labeled information for a specific category of drones in multiple postures under arbitrary backgrounds.

[0014] Furthermore, in step S1, the specific steps of obtaining the image foreground and mask are as follows:

[0015] S11, fixing the camera position and viewing angle, and taking images without a drone background and with a drone background;

[0016] S12, taking the absolute value of the pixel difference at each position of the two images, and using binarization to find the drone area - accurate to pixels, the drone pixel value is 255, and the background is 0;

[0017] S13, extracting the contour of the binary image in S12, and finding the minimum circumscribed rectangle of the maximum contour, the inner area of ​​the rectangle of the drone image is the foreground image, and the corresponding area of ​​the binary image is the mask image.

[0018] Furthermore, in step S2, the specific steps of obtaining the preliminary fusion data image are as follows:

[0019] S21, when the target background is single, the Grab Cut algorithm can be used to extract the mask again from the foreground image using the lowest circumscribed rectangle of the mask obtained in S13 as the ROI, and the mask can be fused with the original mask to obtain a more reliable mask;

[0020] S22, using the mask position obtained in S13, using the Seamless Clone algorithm to fuse the target image and the background image to obtain a fused image 1;

[0021] S23, using the mask obtained in S13 or the fine mask obtained in S21 and the foreground image obtained in S13, and performing Alpha fusion with the background image to obtain a fused image 2;

[0022] S24, performing weighted summation of the fused image 1 obtained in S22 and the fused image 2 obtained in S23 according to a certain ratio to obtain a preliminary fused image, and the position of the mask used in the background in S23 is the target annotation position of the fused image.

[0023] Furthermore, in step S3, the specific steps of using GAN to generate a richer and more reliable data set are as follows:

[0024] S31. Design a GAN network, which includes three discriminators and a generator. The generator is used to generate a foreground image containing a target and a corresponding mask image. The discriminator is used to identify the foreground image, the mask image, and the fused image respectively.

[0025] S32, the generator in the GAN network generates the foreground and the corresponding mask through a random number sequence, and combines it with the random background to generate a fused image;

[0026] The foreground image in S33 and S13 is used as a real training set for the foreground discriminator, and can also be used as a real training set for the fused image discriminator. The mask image in the same step is used as a real training set for the mask discriminator; the preliminary fused image generated in S24 is used as a real training set for the fused image discriminator; the image and mask generated by the generator in S32 are used as false training sets for the foreground and mask discriminators respectively, and the fused image generated in combination with the random background is used as a false training set for the fused image generator; if there is an annotated drone image, it can be directly used as a real training set for the fused image discriminator;

[0027] S34. The generator loss function includes the judgment errors of three different discriminators; the losses of different discriminators are the judgment errors of the identification results of the false training set and the real training set.

[0028] Beneficial effects:

[0029] The present invention provides a method for generating a "low, slow, and small" UAV dataset. Through the steps of foreground extraction, image fusion, and generator generation, a relatively realistic dataset with self-labels can be produced, which improves the detection and recognition accuracy of the same algorithm for "low, slow, and small" UAV targets when the original data volume is small and the richness is insufficient.

[0030] The present invention uses a simple and quick way to obtain the foreground image and the fusion mask. By comparing the background image obtained when the shooting device is fixed with the image containing the target, different areas in the target image are extracted as the foreground image, and the mask required for seamless fusion is obtained by using the expansion operation.

[0031] The present invention provides a method for expanding a foreground image, that is, increasing the richness of the foreground image by performing rotation within a certain angle range, scaling within a certain scale under a certain horizontal and vertical ratio, and symmetric operations on the extracted foreground image.

[0032] The present invention adopts a generative adversarial network to provide a method for improving the authenticity and richness of a data set. By using the original data foreground image, mask and the generated preliminary "fake" data set as the input data of the generative adversarial network, a generator capable of generating the foreground image and target mask of a "low, slow and small" UAV target is obtained, and finally more and more realistic data sets are obtained. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 It is a schematic diagram of the overall process of the present invention.

[0034] Figure 2 Schematic diagram of generative adversarial network.

[0035] Figure 3 This is the generator network structure diagram. DETAILED DESCRIPTION

[0036] The present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0037] The method of the present invention mainly includes three steps: foreground image and mask extraction; image fusion based on seamless fusion and Alpha fusion; generative adversarial network to improve realism and richness. The specific process is as follows Figure 1 The detailed implementation process is as follows:

[0038] Step S1, foreground image and mask extraction

[0039] Steps such as Figure 1 As shown in the foreground and mask extraction part. First, a fixed shooting device is used to shoot a frame of image without a target as a background reference. Then, a video clip containing the target is recorded, with the target posture, position, etc. as rich as possible. Each frame of the video is compared and analyzed with the background image to identify and extract the part with significant differences and the largest area. This part is identified as the area where the "low, slow and small" UAV target is located. The image of this area is accurately located and extracted as the foreground image used in the subsequent steps.

[0040] Assume that the background image captured first is I B , the image containing the target is I t , take its grayscale image I gB with I gt Calculate the absolute value difference of the corresponding position and obtain the difference image I gd .

[0041] I gd =abs(I gB -I gt )

[0042] Set a threshold and binarize the difference image. That is, if the difference at a certain point is greater than a certain value, it is considered that there is a difference between the target image and the background image at that point. b The existence of the threshold can effectively remove the influence of noise. The binarization formula is as follows.

[0043]

[0044] In the binary image I b Contour extraction is performed in the target image, and the closed contour with the largest area is selected. This contour is the target contour in the target image. Since the purpose of step S1 is to extract the foreground image, the target image should be limited to have only one target, and since the shooting device is fixed, the area with the largest difference from the background image in the target image is the target area. Taking the largest rectangle that can contain the target contour as the reference, the target rectangle rect is appropriately expanded, and the corresponding image block is intercepted to be the foreground image I. f .

[0045] I f =I t (x,y),(x,y)∈rect

[0046] The expansion is performed because the edge of the foreground image will be severely affected by "transparency" during the seamless fusion process, so the target area cannot be located at the edge of the image.

[0047] The mask is obtained by directly intercepting the rect corresponding image block from the binary image.

[0048] mask=I b (x,y),(x,y)∈rect

[0049] Step S2, image fusion implementation

[0050] Steps such as Figure 1 As shown in the preliminary dataset generation section in . Take any background image, combine the seamless fusion method with the simple alpha fusion method, place the foreground image extracted from S1 at a random position in the background image, and generate a "low, slow, and small" drone target image with target position annotations.

[0051] Seamless fusion is a technique in image processing that is used to naturally fuse different parts of an image so that the fused image looks natural and smooth without obvious boundaries or transitions. The goal of this technique is to embed an object or part of an image into another image in a seamless way while maintaining the consistency and realism of the overall image. The algorithm is based on image gradient information and Poisson's equation. Its essence is to use the target image gradient to replace the gradient of the corresponding position in the background image, solve the divergence in the image, and then use Poisson's equation to reconstruct the image with the target.

[0052] I seamless =SeamlessClone(I B ,I f ,mask)

[0053] Alpha fusion is a relatively simple fusion method. Compared with the gradient solution, divergence calculation, and image reconstruction of seamless fusion, Alpha fusion only needs to obtain the fused image through the known image mask, background image, and foreground image, as shown in the following formula.

[0054] I alpha =mask·I B +(1-mask)·I f

[0055] In fact, in the image fusion of large targets, the seamless fusion technology has achieved excellent results. However, in the fusion process of the "low, slow and small" UAV target and background, it was found that since the seamless fusion comprehensively considers the image foreground and background at each position, the target tends to be transparent, especially the edge of the target, so Alpha fusion is used to compensate to a certain extent. The final fused image is as follows.

[0056] I mix =(m·I seamless +n·I alpha ) / (m+n)

[0057] In the formula, m and n are the weights of the two fusion results. According to certain experimental results, when m = 1 and n = 2, the generated data set can achieve better performance in the target detection and recognition network.

[0058] Before image fusion, the foreground image and mask can be processed using the same random rotation, scaling, symmetry, etc. to increase the richness of the foreground target, which is more conducive to improving the data set generated in the case of small samples and improving the performance of the target detection and recognition network.

[0059] For image mask extraction, when the foreground image is relatively simple, the Grab Cut algorithm can be used to automatically re-obtain the mask based on the accurate position of the mask, and combined with the original mask for Alpha fusion.

[0060] Step S3: Improve data richness and authenticity

[0061] Steps such as Figure 1 As shown in the part about improving authenticity and richness. Using all target images in S1 and image blocks of target image placement in S2 as training sets, we use Generative Adversarial Networks (GAN) to obtain a generator that can generate new foregrounds (target images) and corresponding masks, and achieve a diversified dataset with labeled information for various postures of specific categories of drones (included in the training set) in any background.

[0062] Generative adversarial network is a machine learning framework that consists of two neural network models: generator and discriminator. The core idea of ​​GAN is to let the two networks learn from each other, so that the generator can generate realistic data samples, while the discriminator can distinguish between real samples and samples generated by the generator, and both improve together.

[0063] The generator and discriminator used in the present invention are both derived from DCGAN. The input of the generator is a one-dimensional noise sequence, which is gradually expanded into an output image of a specific size through multiple layers of transposed convolution, and the tanh activation function is used at the end to limit the pixel value to a controllable range; the input of the discriminator is the target image, and multiple layers of convolution are used to achieve compression and fusion of the input image, and finally the sigmoid function is used to standardize the output value, and whether the input image is a real target is determined based on its size. Since the generator needs to generate a foreground image and a corresponding mask at the same time, in addition to the original layer in the generator, the present invention adds two parallel convolution layers at the end to output the foreground image and the mask respectively. Its network structure is as follows Figure 3 shown.

[0064] In the design of training strategy, ordinary GAN network only uses a pair of generators and discriminators to "game" with each other to improve the authenticity of the generated results, while the present invention uses one generator and three discriminators for training. The generator is responsible for generating the foreground image and mask, and the discriminators have the following functions:

[0065] a. Identify the generated foreground image and the real foreground image.

[0066] b. Identify the generated mask image and the true mask image.

[0067] c. Identify the fused image and the real image.

[0068] Training strategies such as Figure 2 It should be noted that in order not to increase the workload of data annotation, the background of the target image obtained in step S1 needs to be as monotonous as possible to ensure that the extracted foreground image has no cluttered background except the target area to prevent affecting the work of the discriminator a.

[0069] During the training process, the input of discriminator a includes the foreground image extracted from S1 (as the real image) and the foreground image generated by the generator in this step (as the false image); the input of discriminator b includes the mask extracted from S1 (as the real image) and the mask generated by the generator in this step (as the false image); the input of discriminator c includes the target image generated in S2 (as the real image) and the fused image formed by the foreground, mask and background generated in this step (as the false image). The real image set of discriminator c can also include the foreground image extracted from S1 and the image blocks with the annotated positions of the existing data set.

[0070] The losses of the generator and each discriminator are as follows:

[0071] Loss a =(bce(real_fore,1)+bce(fake_fore,0)) / 2

[0072] Loss b =(bce(real_mask,1)+bce(fake_mask,0)) / 2

[0073] Loss c =(bce(real_image,1)+bce(fake_image,0)) / 2

[0074] Loss gen =(bce(fake_fore,1)+bce(fake_mask,1)+bce(fake_image,1)) / 3

[0075] During the training process, the discriminator uses the identification results of the generator's generated images to determine whether the foreground and mask generated by the generator are realistic enough. After the training is completed, a set of random one-dimensional noise sequences can be directly input into the generator to obtain the "low, slow and small" drone foreground and mask, and the target can be integrated into any background image area in the form of Alpha to obtain a new data with annotation information.

[0076] In summary, the above embodiments are only for illustrating the technical concept of the present invention, and are not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for producing a "low, slow and small" UAV target dataset based on image fusion technology and generative adversarial network. Features The production of a fast and efficient "low, slow and small" drone dataset without manual annotation includes the following steps: S1. First, use a fixed shooting device to shoot a frame of image without a target as the background reference; then, record a video clip containing the target - the target posture, position and other information are as rich as possible; compare and analyze each frame of the video with the background image, aiming to identify and extract the part with significant difference and the largest area. This part is identified as the area where the "low, slow and small" UAV target is located, accurately locate and extract the image of this area, and use it as the foreground image for subsequent steps; S2, take any background image, combine the Seamless Clone method with the simple Alpha fusion method, place the foreground image extracted in S1 at a random position in the background image, and generate a "low, slow and small" drone target image with target position annotation; S3. Use all target images in S1 and image blocks of target image placement in S2 as training sets, and use a generative adversarial network to obtain a generator that can generate new foregrounds and corresponding masks, thereby achieving a diversified dataset with labeled information for a specific category of drones in multiple postures under arbitrary backgrounds.

2. According to the method for preparing a "low, slow and small" UAV target data set in claim 1, It is characterized in that In step S1, the specific steps of obtaining the foreground image and the mask are as follows: S11, fixing the camera position and viewing angle, and taking images without a drone background and with a drone background; S12, taking the absolute value of the pixel difference at each position of the two images, and using binarization to find the drone area - accurate to pixels, the drone pixel value is 255, and the background is 0; S13, extracting the contour of the binary image in S12, and finding the minimum circumscribed rectangle of the maximum contour, the inner area of ​​the rectangle of the drone image is the foreground image, and the corresponding area of ​​the binary image is the mask image.

3. According to the method for preparing a "low, slow and small" UAV target data set in claim 1, It is characterized in that In step S2, the specific steps of obtaining the preliminary fusion data image are as follows: S21, when the target background is single, the Grab Cut algorithm can be used to extract the mask again from the foreground image using the lowest circumscribed rectangle of the mask obtained in S13 as the ROI, and the mask can be fused with the original mask to obtain a more reliable mask; S22, using the mask position obtained in S13, using the Seamless Clone algorithm to fuse the target image and the background image to obtain a fused image 1; S23, using the mask obtained in S13 or the fine mask obtained in S21 and the foreground image obtained in S13, and performing Alpha fusion with the background image to obtain a fused image 2; S24, performing weighted summation of the fused image 1 obtained in S22 and the fused image 2 obtained in S23 according to a certain ratio to obtain a preliminary fused image, and the position of the mask used in the background in S23 is the target annotation position of the fused image.

4. According to the method for preparing a "low, slow and small" UAV target data set in claim 1, It is characterized in that In step S3, the specific steps of using GAN to generate a richer and more reliable data set are as follows: S31. Design a GAN network, which includes three discriminators and a generator. The generator is used to generate a foreground image containing a target and a corresponding mask image. The discriminator is used to identify the foreground image, the mask image, and the fused image respectively. S32, the generator in the GAN network generates the foreground and the corresponding mask through a random number sequence, and combines it with the random background to generate a fused image; The foreground image in S33 and S13 is used as a real training set for the foreground discriminator, and can also be used as a real training set for the fused image discriminator. The mask image in the same step is used as a real training set for the mask discriminator; the preliminary fused image generated in S24 is used as a real training set for the fused image discriminator; the image and mask generated by the generator in S32 are used as false training sets for the foreground and mask discriminators respectively, and the fused image generated in combination with the random background is used as a false training set for the fused image generator; if there is an annotated drone image, it can be directly used as a real training set for the fused image discriminator; S34. The generator loss function includes the judgment errors of three different discriminators; the losses of different discriminators are the judgment errors of the identification results of the false training set and the real training set.

Citation Information

Cited By

  • Method for identifying aircraft type in satellite image, electronic equipment, storage medium and program product

    CN120894704A