Aerial remote sensing image target sample augmentation method and target detection method

Through the simulation data automatic collection system and the cycle consistency generation adversarial network, the problem of insufficient real samples in aerial remote sensing image target detection is solved, high-quality simulation samples are generated, and detection efficiency and accuracy are improved.

CN118587520APending Publication Date: 2024-09-03CHINESE PEOPLES LIBERATION ARMY UNIT 93114
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202311034469.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-16
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Insufficient real samples lead to low efficiency and accuracy in target detection in aerial remote sensing images, and acquisition of existing data sets is difficult and costly.

Method used

A simulated data automated collection system is used, the game engine GTAV is used to generate simulated aerial remote sensing images, and the simulated data style is migrated to real data through a cycle consistency generation adversarial network to build a high-quality sample set for target detection.

Benefits of technology

Generate simulation samples with rich content and realistic style quickly and at low cost, effectively supplementing scarce real samples, and improving the efficiency and accuracy of target detection in aerial remote sensing images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587520A
    Figure CN118587520A
Patent Text Reader

Abstract

The invention discloses an aerial remote sensing image target sample augmentation method. Comprising the following steps: constructing a simulation data automatic acquisition system, rendering a simulation scene, generating a simulation aerial remote sensing image, acquiring a target category and coordinates, performing ray detection, constructing a simulation sample set, constructing a style migration training sample set, constructing a cyclic consistency generative adversarial network, and constructing a migrated simulation sample set. Simulation aerial remote sensing image training and real aerial remote sensing image target detection are carried out. According to the method, a large number of simulation samples are generated through the game engine GTAV, and then the simulation samples are used for target detection neural network training, so that the problem of low precision of aerial remote sensing image target detection when real samples are insufficient is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to an aerial remote sensing image target sample augmentation method and a target detection method, which belong to the field of aerial remote sensing image target detection and can be specifically used for traffic flow monitoring, maritime target reconnaissance and the like. Background Art

[0002] The task of aerial remote sensing image target detection is to locate and classify the targets of interest in aerial remote sensing images. The targets can be vehicles, ships, aircraft, buildings, etc., and they play an important role in both civil and military fields. Aerial remote sensing image target detection algorithms are mainly divided into traditional methods and deep learning methods. The former relies on manually designed features to detect targets, while the latter automatically extracts features through artificial neural networks. It has powerful feature learning and expression capabilities and is the mainstream algorithm for target detection tasks.

[0003] However, the deep learning-based aerial remote sensing image target detection algorithm relies on high-quality training data sets. On the one hand, when the existing aerial remote sensing image data sets are significantly different from the current task, it is impossible to train an excellent network. Reconstructing the aerial remote sensing image training data set consumes a lot of manpower and material resources, and the acquisition of aerial remote sensing images is subject to many restrictions. On the other hand, simulation data can be generated on a large scale and quickly at a very low cost. Summary of the invention

[0004] The purpose of the present invention is to provide a method for augmenting target samples of aerial remote sensing images to solve the problem of low efficiency and accuracy of target detection in aerial remote sensing images due to insufficient real samples.

[0005] To achieve the above object, the technical solution adopted by the present invention is: a method for augmenting target samples of aerial remote sensing images, based on an automatic collection system for simulation data, the automatic collection system for simulation data adopts the game engine GTAV, is based on .NET Framework 4.8, is developed and constructed using C#, introduces two plug-ins, Script Hook V and Script Hook V.NET, to implement the call of the GTAV native interface, and then uses the interface to obtain and save simulation data;

[0006] The following steps are involved:

[0007] S1. Rendering simulation scene: Based on the simulation data automatic acquisition system, the model and map are automatically loaded, and the simulation scene under the aerial perspective is rendered;

[0008] S2, generation of simulated aerial remote sensing images: based on the simulation scene obtained in S1, obtain the simulated aerial remote sensing images within the screen range, and save the obtained simulated aerial remote sensing images to a designated folder;

[0009] S3, target category and coordinate acquisition, specifically:

[0010] S31, obtaining the category of each target within the screen range, and the maximum and minimum coordinates of the target model in the three-dimensional world;

[0011] S32, constructing a three-dimensional bounding box according to the maximum and minimum coordinates of the target model in the three-dimensional world, and then converting all eight points of the three-dimensional bounding box into pixel coordinates of the two-dimensional image by calculation, thereby obtaining the coordinates of the rectangular bounding box of the target;

[0012] S4, ray detection: Use the simulation data automatic acquisition system to obtain the current camera position in the game world. When the line connecting the camera and the target model is blocked by other models, delete the target model until all target models that are completely blocked in the line of sight are deleted;

[0013] S5, construction of simulation sample set: the simulation data automatic acquisition system automatically collects training data at set time intervals. The training data includes one-to-one corresponding images and labels, both of which are named by the timestamp of the acquisition time, and finally obtains the simulation sample set;

[0014] S6, style transfer training sample set construction: using the simulated sample set constructed in S5 as the source domain data, selecting the real samples of the aerial remote sensing images to be detected as the target domain data, and constructing the training sample set of the style transfer algorithm;

[0015] S7, Construction of Cycle-Consistent Generative Adversarial Network: Introduce the idea of ​​generative adversarial, learn the mapping relationship between source domain to target domain and target domain to source domain at the same time, add cycle-consistency loss, and construct a cycle-consistent generative adversarial network that can transfer the style of simulated aerial remote sensing images to real aerial remote sensing images;

[0016] S8, construction of simulated sample set after migration: through the cycle-consistent generative adversarial network constructed in S7, a simulated image that is closer to the real image after migration is obtained, and then the simulated image label before migration in S5 is copied to obtain a simulated sample set after migration that can be used for target detection neural network training.

[0017] A method for detecting targets in aerial remote sensing images based on the above-mentioned method for augmenting target samples of aerial remote sensing images is also provided, which uses a simulated sample set to detect targets in aerial images, and further includes the following steps:

[0018] S9, simulated aerial remote sensing image training: the migrated simulated sample set is used for target detection neural network training to obtain a trained target detection neural network model;

[0019] S10. Target detection on real aerial remote sensing images: If the real data does not have training samples, the network model obtained in S9 is directly used for target detection on real aerial remote sensing images. If the real data has training samples, the network model obtained in S9 is used as a pre-training model, and then fine-tuned using real training samples for target detection on real aerial remote sensing images.

[0020] Due to the application of the above technical solution, the present invention has the following advantages compared with the prior art:

[0021] The present invention provides a method for augmenting target samples of aerial remote sensing images and a method for detecting targets in aerial remote sensing images based on the method. The method can quickly generate simulation samples with rich content and realistic style, effectively supplement the scarce real samples in special scenes, and apply the generated simulation samples to the training of neural networks for detecting targets in aerial remote sensing images, thereby greatly improving the efficiency and accuracy of detecting targets in aerial remote sensing images. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Attached Figure 1 It is a schematic diagram of the process of the method for augmenting target samples of aerial remote sensing images of the present invention;

[0023] Attached Figure 2 It is a schematic diagram of the comparison of simulation images before and after migration;

[0024] Attached Figure 3 Schematic diagram of the visualization effect of target detection on real images. DETAILED DESCRIPTION

[0025] Embodiment: A method for augmenting target samples of aerial remote sensing images and a target detection method based on the target sample augmentation method, wherein simulation data is applied to target detection of aerial remote sensing images to improve the accuracy of target detection.

[0026] Firstly, we design and develop an automated simulation data acquisition system to quickly and cost-effectively construct a large-scale simulation sample set for target detection in aerial remote sensing images.

[0027] Then, to overcome the domain difference between simulated data and real data, a recurrent generative adversarial network is constructed to achieve feature transfer between cross-domain images, and the object detection network is trained using fine-tuning techniques;

[0028] Therefore, the use of simulated data can effectively complete the target detection task on real aerial remote sensing images.

[0029] The main steps are as follows:

[0030] 1. Construction of automatic simulation data collection system

[0031] The simulation data automatic acquisition system is based on .NET Framework 4.8 and developed in C#. It uses two plug-ins, Script Hook V and Script Hook V.NET, to call the native interfaces of GTAV (such as camera pose, vehicle density, weather, etc.), and combines with other GTAV modules to complete the simulation data acquisition work. GTAV refers to Grand Theft Auto V.

[0032] The simulation data is mainly divided into simulated aerial remote sensing images and annotation information;

[0033] The simulation data automatic collection system calls GTAV native interfaces such as camera pose, vehicle density, and weather, automatically loads models and maps, and renders simulation scenes from an aerial perspective;

[0034] Take a screenshot of the simulation scene within the screen range to obtain a simulated aerial remote sensing image;

[0035] Then, all target models in the current simulation scene are obtained. Since the models that are not visible in the line of sight are also loaded when rendering the simulation world, the ray detection method is used to remove the targets that are completely blocked in the line of sight. Specifically, the position of the current camera in the game world is obtained through the simulation data automatic acquisition system. When the line connecting the camera and the target model is blocked by other models, the target model is deleted until all target models that are completely blocked in the line of sight are deleted.

[0036] Then, all targets are traversed to obtain the category of each target model and the bounding box of the target model in the three-dimensional world. All eight points of the three-dimensional bounding box are converted into pixel coordinates of the two-dimensional image by calculation.

[0037] x i and i Sort them respectively to get the coordinates of the upper left corner of the rectangular bounding box of the target model (x max ,y max ) and the lower right corner coordinate (x min ,y min );

[0038] After the above steps, the category, location information and related information of the target model are stored in a label text file.

[0039] 2. Simulation sample set generation

[0040] The simulation data automatic acquisition system automatically collects simulation data at set time intervals, and names images and labels with the timestamp of the acquisition moment, with one-to-one correspondence between the two;

[0041] The simulation data automated acquisition system also draws the annotation information in the simulated aerial remote sensing image for user inspection;

[0042] Without human intervention, a large-scale simulation sample set can be constructed quickly and at low cost, which can be used for training aerial remote sensing image target detection networks.

[0043] 3. Simulation of aerial remote sensing image style transfer

[0044] Since the color saturation, texture, and clarity of simulated aerial remote sensing images are different from those of real aerial remote sensing images, there are certain domain differences between the simulated data and the real data set;

[0045] In order to reduce the domain difference, the idea of ​​generative adversarial is introduced, and the mapping relationship between the source domain to the target domain and the target domain to the source domain is learned at the same time. Cycle consistency loss is added to construct a cycle consistency generative adversarial network that can transfer the style of simulated aerial remote sensing images to real aerial remote sensing images. The cycle consistency generative adversarial network consists of two parts: the discriminant network and the generative network.

[0046] Without changing the image content, a cycle-consistent generative adversarial network is used to transform the style of the simulated aerial remote sensing image into the same style as the real aerial remote sensing image.

[0047] Assume that the sample spaces of the simulated aerial photography sample set and the real aerial photography sample set are X and Y respectively, and given the training samples and where x i ∈X,y i ∈Y;

[0048] Let the mapping from X to Y be G, and the mapping from Y to X be F;

[0049] At the same time, set D X and D Y As the discriminant network, D X Used to identify the simulated aerial remote sensing image set {x i} and the fake real aerial remote sensing image set {F(y)} output by the generative network; similarly, D y Used to identify the real aerial remote sensing image set {y i} and the transformed forged simulated image aerial photography set {G(x)};

[0050] Thus, we can construct the adversarial loss of the two mapping functions to map the function G and its discriminator D Y For example, the adversarial loss calculation formula for this part is:

[0051]

[0052] In the formula, G makes the mapped fake real aerial remote sensing image G(x) and the original real aerial remote sensing image y as similar as possible, that is, it is hoped that the loss is minimized;

[0053] And D Y Then we are committed to distinguishing the forged real aerial remote sensing image G(x) from the original real aerial remote sensing image y, that is, we hope that the loss is maximized;

[0054] The training goal is Similarly, for the mapping function F and its discriminator D X The training goal is

[0055] However, it is impossible to train an effective style transfer model using only this loss, because there are countless mappings G that can make G(x) reach a distribution close to that of the real aerial remote sensing image y;

[0056] To this end, a cycle consistency loss is introduced to keep the image consistent after translation and inverse translation, and to transfer the image style while maintaining the geometric structure of the object;

[0057] The cycle consistency loss is calculated as follows:

[0058]

[0059] Adding the adversarial loss and the cycle consistency loss gives the final total loss, as shown in formula (3):

[0060] L(G,F,D X ,D Y )=L GAN (G,D Y ,X,Y)+

[0061] L GAN (F,D X ,Y,X)+λL cyc (G,F)#(3)

[0062] Where λ is a parameter that controls the weights of the two losses;

[0063] The simulation images before and after migration are as follows: Figure 2 shown.

[0064] 4. Target detection in aerial remote sensing images based on simulated sample sets

[0065] First, the simulated sample set after style transfer is used for object detection neural network training;

[0066] Then, if the real data does not have training samples, the network trained on the simulated image is directly used for object detection on the real image;

[0067] If the real data has training samples, the network trained on the simulated image is used as a pre-training model, and then fine-tuned using the real training samples for object detection on the real image;

[0068] The visualization effect of target detection on real images is as follows Figure 3 shown.

[0069] When using the above-mentioned aerial remote sensing image target sample augmentation method, it can automatically obtain aerial perspective images and their annotations from the modern computer game GTAV (GrandTheft Auto V), and quickly construct a large-scale aerial remote sensing image target detection simulation sample set, which is an effective supplement to the scarce real samples in special scenes. At the same time, the automatically generated corresponding labels reduce the cost of sample annotation, and obtain simulated samples with rich content and realistic style, which can be used for the training of real-scene aerial remote sensing image target detection based on deep learning, and improve the accuracy of target detection.

[0070] The above embodiments are only for illustrating the technical concept and features of the present invention, and their purpose is to enable people familiar with the technology to understand the content of the present invention and implement it accordingly, and they cannot be used to limit the protection scope of the present invention. Any equivalent changes or modifications made according to the spirit of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for augmenting target samples of aerial remote sensing images, characterized in that: Based on a simulation data automatic acquisition system, the simulation data automatic acquisition system adopts the game engine GTAV, is based on .NET Framework 4.8, is developed and constructed using C#, introduces two plug-ins, Script Hook V and Script Hook V .NET, to implement the call of the GTAV native interface, and then uses the interface to obtain and save simulation data; The following steps are involved: S1. Rendering simulation scene: Based on the simulation data automatic acquisition system, the model and map are automatically loaded, and the simulation scene under the aerial perspective is rendered; S2, generation of simulated aerial remote sensing images: based on the simulation scene obtained in S1, obtain the simulated aerial remote sensing images within the screen range, and save the obtained simulated aerial remote sensing images to a specified folder; S3, target category and coordinate acquisition, specifically: S31, obtaining the category of each target within the screen range, and the maximum and minimum coordinates of the target model in the three-dimensional world; S32, constructing a three-dimensional bounding box according to the maximum and minimum coordinates of the target model in the three-dimensional world, and then converting all eight points of the three-dimensional bounding box into pixel coordinates of the two-dimensional image by calculation, thereby obtaining the coordinates of the rectangular bounding box of the target; S4, ray detection: Use the simulation data automatic acquisition system to obtain the current camera position in the game world. When the line connecting the camera and the target model is blocked by other models, delete the target model until all target models that are completely blocked in the line of sight are deleted; S5, construction of simulation sample set: the simulation data automatic acquisition system automatically collects training data at set time intervals. The training data includes one-to-one corresponding images and labels, both of which are named by the timestamp of the acquisition time, and finally obtains the simulation sample set; S6, style transfer training sample set construction: using the simulated sample set constructed in S5 as the source domain data, selecting the real samples of the aerial remote sensing images to be detected as the target domain data, and constructing the training sample set of the style transfer algorithm; S7, Construction of Cycle-Consistent Generative Adversarial Network: Introduce the idea of ​​generative adversarial, learn the mapping relationship between source domain to target domain and target domain to source domain at the same time, add cycle-consistency loss, and construct a cycle-consistent generative adversarial network that can transfer the style of simulated aerial remote sensing images to real aerial remote sensing images; S8, construction of simulated sample set after migration: through the cycle-consistent generative adversarial network constructed in S7, a simulated image that is closer to the real image after migration is obtained, and then the simulated image label before migration in S5 is copied to obtain a simulated sample set after migration that can be used for target detection neural network training.

2. A method for detecting targets in aerial remote sensing images, characterized in that: Using a simulated sample set to detect an aerial image target comprises the steps as claimed in claim 1, and further comprises the following steps: S9, simulated aerial remote sensing image training: the migrated simulated sample set is used for target detection neural network training to obtain a trained target detection neural network model; S10. Target detection on real aerial remote sensing images: If the real data does not have training samples, the network model obtained in S9 is directly used for target detection on real aerial remote sensing images. If the real data has training samples, the network model obtained in S9 is used as a pre-training model, and then fine-tuned using real training samples for target detection on real aerial remote sensing images.

Citation Information

Patent Citations

  • Image annotation method and device used in three-dimensional simulation, and electronic equipment

    CN113763569A