Remote sensing scarce sample data expansion method and device

By building a text-image pre-training model and an image generation network, and using mask images for data enhancement, the problem of a small number of samples and insufficient content diversity in remote sensing image data sets is solved, and more consistent and rich image data generation is achieved, improving Intelligent algorithm interpretation capabilities.

CN118865015AInactive Publication Date: 2024-10-29BEIJING INST OF REMOTE SENSING INFORMATION

Patent Information

Application Number
CN202410842549.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-10-29
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The number of samples of specified objects in specific backgrounds in remote sensing image data sets is sparse and the content diversity is insufficient, which limits the interpretation capabilities of intelligent algorithms and the expansion of subsequent tasks.

Method used

A remote sensing scarce sample data expansion method is adopted. By acquiring and preprocessing remote sensing scarce image data sets, a text-image pre-training model and an image generation network are constructed, and mask images are used for data enhancement to generate a trained sample generation model. image data.

Benefits of technology

It solves the problems of small number of samples and lack of content diversity, improves the visual consistency of synthesized images, and meets a wider range of application scenarios and diverse fusion needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118865015A_ABST
    Figure CN118865015A_ABST
Patent Text Reader

Abstract

The invention discloses a remote sensing scarce sample data expansion method and device. The method comprises the following steps: acquiring a remote sensing scarce image data set and a mask image set; the mask image set comprises a mask image; preprocessing the remote sensing scarce image data set to obtain a preprocessed image data set; constructing to obtain a remote sensing scarce sample generation model; performing training processing on the remote sensing scarce sample generation model by using the preprocessed image data set to obtain a trained remote sensing scarce sample generation model; utilizing the trained remote sensing scarce sample to generate a model, and processing the user sample expansion instruction to obtain a remote sensing expansion image; the user sample expansion instruction comprises a to-be-expanded target image, a to-be-expanded remote sensing image and a to-be-expanded mask image. According to the method, the target image containing the specific object is fused in the designated area of the remote sensing image, so that expansion of the remote sensing scarce sample is realized, and the problems that the quantity of remote sensing image samples of the specific object is rare and the content diversity is insufficient under the designated background are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of remote sensing image processing and artificial intelligence, and in particular to a method and device for expanding remote sensing scarce sample data. Background Art

[0002] Due to the wide imaging range, limited imaging frequency, sparse and uneven spatial distribution of ground objects in real remote sensing images, among many public remote sensing image datasets, the remote sensing image data of specified objects in a specific background is not rich enough in quantity and the content diversity is not sufficient. This greatly limits the improvement of the interpretation ability of intelligent algorithms on remote sensing images and the expansion of subsequent downstream tasks.

[0003] Due to the current complex remote sensing image acquisition conditions and high data sample production costs, the number of remote sensing image samples of specific objects under specified backgrounds required is scarce and the content diversity is insufficient.

[0004] Therefore, how to solve the problem of small number of remote sensing sample images and lack of content diversity, while making the synthetic images look as harmonious and unified as possible from a visual perspective, is an urgent problem that needs to be solved. Summary of the invention

[0005] The present invention mainly solves the problem of small number of remote sensing sample images and lack of content diversity, and the problem of making the synthetic image look as harmonious and unified as possible from a visual level. The present invention discloses a method and device for expanding remote sensing scarce sample data.

[0006] In a first aspect of the embodiment of the present application, a method for expanding remote sensing scarce sample data is disclosed, comprising:

[0007] S1, obtaining a remote sensing scarce image dataset and a mask image set; the mask image set includes mask images;

[0008] S2, preprocessing the remote sensing scarce image dataset to obtain a preprocessed image dataset;

[0009] S3, construct a remote sensing scarce sample generation model;

[0010] S4, using the preprocessed image data set, training the remote sensing scarce sample generation model to obtain a trained remote sensing scarce sample generation model;

[0011] S5, using the trained remote sensing scarce sample generation model, processing the user sample expansion instruction to obtain a remote sensing expansion image; the user sample expansion instruction includes a target image to be expanded, a remote sensing image to be expanded, and a mask image to be expanded.

[0012] The remote sensing scarce image dataset is a FAST subset in the SAMRS dataset; the FAST subset includes remote sensing images of three types of objects: aircraft, ships and vehicles, and corresponding category label information; the mask image is used to represent the position information to be replaced in the remote sensing image; the dimension of the mask image is the same as that of the remote sensing image; the mask image is represented by m, m∈{0,1} H×W , the row and column numbers of the elements with a value of 1 in m represent the position coordinate information of the pixel to be replaced in the remote sensing image; H and W are the row and column dimension values ​​of the remote sensing image respectively.

[0013] The preprocessing of the remote sensing scarce image dataset to obtain a preprocessed image dataset includes:

[0014] S21, removing incomplete images from the remote sensing scarce image dataset to obtain a first image dataset;

[0015] S22, performing target object recognition processing on each image in the first image data set to obtain a target object image; calculating a ratio of the target object image area to the entire image area; determining whether the ratio is within a ratio threshold range to obtain a first determination result; and removing from the first image data set all images for which the first determination result is negative to obtain a second image data set;

[0016] S23, performing target object recognition processing on each image in the second image data set to obtain the number of target objects; judging whether the number of target objects is greater than a set number threshold, to obtain a second judgment result; and eliminating from the second image data set all images for which the second judgment result is yes, to obtain a preprocessed image data set.

[0017] The remote sensing scarce sample generation model includes: a text-image pre-training model, an image generation network, and a decoding network;

[0018] The text-image pre-training model is used to receive a target image, perform semantic extraction processing on the target image, and obtain an image embedding vector; the output end of the text-image pre-training model is connected to the input end of the image generation network;

[0019] The image generation network is used to perform fusion processing on the input image embedding vector, remote sensing image and mask image to obtain extended image information; the output end of the image generation network is connected to the input end of the decoding network;

[0020] The decoding network is used to decode the extended image information to obtain image information.

[0021] The text-image pre-training model includes a data enhancement layer, an image encoder, and a fully connected layer;

[0022] The data enhancement layer is used to perform data enhancement processing on the image input into the text-image pre-training model to obtain an enhanced image;

[0023] The image encoder comprises a first input module, a first convolution module, a depth-separable convolution module, a first dimension-raising convolution module, a second dimension-raising convolution module, a third dimension-raising convolution module, a fourth dimension-raising convolution module, a second convolution module, a first pooling module, a third convolution module and a first fully connected module;

[0024] The input end of the first input module of the image encoder is used to receive the enhanced image; the output end of the first input module of the image encoder is connected to the input end of the first convolution module of the image encoder; the output end of the first convolution module of the image encoder is connected to the input end of the depthwise separable convolution module of the image encoder; the output end of the depthwise separable convolution module of the image encoder is connected to the input end of the first dimensionality-raising convolution module of the image encoder; the output end of the first dimensionality-raising convolution module of the image encoder is connected to the input end of the second dimensionality-raising convolution module of the image encoder; the output end of the second dimensionality-raising convolution module of the image encoder is connected to the input end of the image encoder. The output end of the third dimensionality-raising convolution module of the encoder is connected to the input end of the fourth dimensionality-raising convolution module of the image encoder; the output end of the fourth dimensionality-raising convolution module of the image encoder is connected to the input end of the second convolution module of the image encoder; the output end of the second convolution module of the image encoder is connected to the input end of the first pooling module of the image encoder; the output end of the first pooling module of the image encoder is connected to the input end of the third convolution module of the image encoder; the output end of the third convolution module of the image encoder is connected to the input end of the first fully connected module of the image encoder;

[0025] The image encoder is connected to the data enhancement layer and the fully connected layer respectively, and is used to perform image encoding processing on the enhanced image to obtain image encoding information;

[0026] The fully connected layer is implemented by a multi-layer perceptron and is used to perform matrix compression processing on the image coding information to obtain an image embedding vector;

[0027] The image generation network is implemented using a U-Net network.

[0028] The method of using the pre-processed image data set to train the remote sensing scarce sample generation model to obtain a trained remote sensing scarce sample generation model includes:

[0029] Acquire a plurality of remote sensing images in the preprocessed image data set; construct a first image set using all the acquired remote sensing images; the first image set includes remote sensing images;

[0030] Performing target object recognition processing on each remote sensing image in the first image set to obtain a corresponding target image; the target image contains a target object; and constructing a target image set using all the target images;

[0031] A training data set is constructed using the first image set, the target image set and the mask image set; the training data set includes training data and corresponding label information; the expression of the training data is: The corresponding label information is X s ;X s ∈R H×W×3 , X s represents a remote sensing image, where H and W are the width and height of the remote sensing image respectively; X r ∈R H0×W0×3 , X r represents the target image, where H0 and W0 are the width and height of the target image respectively; represents the complementary image of the mask image;

[0032] A test set is constructed by using the first image set, the target image set and the mask image set; the test set includes test data; the expression of the test data is (X s ,X r ,m);

[0033] Initialize the number of training times;

[0034] Acquire training data from the training data set;

[0035] The target image in the training data is input into the text-image pre-training model of the remote sensing scarce sample generation model, and the target image in the training data is input into the text-image pre-training model of the remote sensing scarce sample generation model. and the template image, inputting the image generation network of the remote sensing scarce sample generation model, and using the remote sensing scarce sample generation model to obtain image information;

[0036] Using a loss function to calculate the image information and the label information corresponding to the training data to obtain a difference value;

[0037] Performing an accumulation operation on the training times;

[0038] Determine whether the training number value exceeds the training number threshold, and obtain a first determination result; when the first determination result is yes, trigger the execution of a model verification operation;

[0039] When the first judgment result is no, judging whether the difference value is less than a preset threshold, and obtaining a second judgment result;

[0040] When the second judgment result is yes, triggering the execution of a model verification operation; when the second judgment result is no, using the difference value to update the weight values ​​of the image generation network and the decoding network, triggering the execution of obtaining training data from the training data set;

[0041] The test set is used to verify the remote sensing scarce sample generation model; the target image in the test set is input into the text-image pre-training model of the remote sensing scarce sample generation model, the remote sensing image and the template image in the training data are input into the image generation network of the remote sensing scarce sample generation model, and the remote sensing scarce sample generation model is used to obtain a test fusion image; the test fusion image is subjected to image quality assessment processing to obtain an image quality result; if the image quality result is unqualified, triggering the execution of obtaining training data from the training data set; if the image quality result is qualified, a trained remote sensing scarce sample generation model is obtained.

[0042] The parameter updating model is:

[0043]

[0044] θ←θ+v;

[0045] In the formula, x (i) is the i-th training data in the training data set, y (l) is the label information corresponding to the i-th training data, v is the parameter update value, θ is the parameter of the image generation network and the decoding network, η is the initial parameter learning rate, α is the momentum angle parameter, 0≤α≤π / 4, It means to find the partial derivative of variable θ, f(x (i) ; θ) represents the image information obtained by the remote sensing scarce sample generation model for the i-th training data, and f(.) is the calculation function corresponding to the remote sensing scarce sample generation model.

[0046] In a second aspect of the embodiment of the present application, a device for expanding remote sensing scarce sample data is disclosed, the device comprising:

[0047] A memory storing executable program code;

[0048] a processor coupled to the memory;

[0049] The processor calls the executable program code stored in the memory to execute the remote sensing scarce sample data expansion method.

[0050] According to a third aspect of the embodiments of the present application, a computer storable medium is disclosed, wherein the computer storable medium stores computer instructions, and when the computer instructions are called, they are used to execute the remote sensing scarce sample data expansion method.

[0051] In a fourth aspect of the embodiments of the present application, an information data processing terminal is disclosed, and the information data processing terminal is used to implement the remote sensing scarce sample data expansion method.

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

[0053] The present invention is based on the expansion of the SAMRS dataset, which has detailed and specific category labels. On average, each type of object has multiple fine categories, which can cover a wider range of application scenarios and meet more diverse fusion needs.

[0054] During the training process of the model, the present invention re-deconstructs the target image and the remote sensing image through self-supervised training to achieve precise control and seamless fitting.

[0055] The present invention solves the problem of small number of remote sensing sample images and lack of content diversity, and improves the consistency of the visual level of the synthetic image. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 It is a flow chart for implementing the method of the present invention. DETAILED DESCRIPTION

[0057] In order to better understand the content of the present invention, an embodiment is given here.

[0058] Figure 1 It is a flow chart for implementing the method of the present invention.

[0059] In a first aspect of the embodiment of the present application, a method for expanding remote sensing scarce sample data is disclosed, comprising:

[0060] S1, obtaining a remote sensing scarce image dataset and a mask image set; the mask image set includes mask images;

[0061] S2, preprocessing the remote sensing scarce image dataset to obtain a preprocessed image dataset;

[0062] S3, construct a remote sensing scarce sample generation model;

[0063] S4, using the preprocessed image data set, training the remote sensing scarce sample generation model to obtain a trained remote sensing scarce sample generation model;

[0064] S5, using the trained remote sensing scarce sample generation model, processing the user sample expansion instruction to obtain a remote sensing expansion image. The user sample expansion instruction includes a target image to be expanded, a remote sensing image to be expanded, and a mask image to be expanded;

[0065] The user sample expansion instruction is obtained from the user, or is obtained by parsing the user input instruction.

[0066] The remote sensing scarce image dataset is a FAST subset in the SAMRS dataset; the FAST subset includes remote sensing images of three types of objects: aircraft, ships and vehicles, and corresponding category label information; the mask image is used to represent the position information to be replaced in the remote sensing image; the dimension of the mask image is the same as that of the remote sensing image; the mask image is represented by m, m∈{0,1} H×W , the row and column numbers of the elements with a value of 1 in m represent the position coordinate information of the pixel to be replaced in the remote sensing image; H and W are the row and column dimension values ​​of the remote sensing image respectively.

[0067] The preprocessing of the remote sensing scarce image dataset to obtain a preprocessed image dataset includes:

[0068] S21, removing incomplete images from the remote sensing scarce image dataset to obtain a first image dataset;

[0069] S22, performing target object recognition processing on each image in the first image data set to obtain a target object image; calculating a ratio of the target object image area to the entire image area; determining whether the ratio is within a ratio threshold range to obtain a first determination result; and removing from the first image data set all images for which the first determination result is negative to obtain a second image data set;

[0070] S23, performing target object recognition processing on each image in the second image data set to obtain the number of target objects; judging whether the number of target objects is greater than a set number threshold, and obtaining a second judgment result; and removing all images with the second judgment result being yes from the second image data set, and obtaining a preprocessed image data set;

[0071] The remote sensing scarce sample generation model includes: a text-image pre-training model, an image generation network, and a decoding network;

[0072] The text-image pre-training model is used to receive the target image, the remote sensing image and the mask image to generate fused image information; the output end of the text-image pre-training model is connected to the input end of the image generation network;

[0073] The image generation network is used to perform fusion processing on the input fusion image information to obtain extended image information; the output end of the image generation network is connected to the input end of the decoding network;

[0074] The decoding network is used to decode the extended image information to obtain image information.

[0075] The text-image pre-training model can be implemented using the Clip function group;

[0076] The decoding network can be implemented using a convolutional neural network.

[0077] The text-image pre-training model includes a data enhancement layer, an image encoder, and a fully connected layer;

[0078] The text-image pre-training model is used to receive a target image, perform semantic extraction processing on the target image, and obtain an image embedding vector; the output end of the text-image pre-training model is connected to the input end of the image generation network;

[0079] The input end of the first input module of the image encoder is used to receive the enhanced image; the output end of the first input module of the image encoder is connected to the input end of the first convolution module of the image encoder; the output end of the first convolution module of the image encoder is connected to the input end of the depthwise separable convolution module of the image encoder; the output end of the depthwise separable convolution module of the image encoder is connected to the input end of the first dimensionality-raising convolution module of the image encoder; the output end of the first dimensionality-raising convolution module of the image encoder is connected to the input end of the second dimensionality-raising convolution module of the image encoder; the output end of the second dimensionality-raising convolution module of the image encoder is connected to the input end of the image encoder. The output end of the third dimensionality-raising convolution module of the encoder is connected to the input end of the fourth dimensionality-raising convolution module of the image encoder; the output end of the fourth dimensionality-raising convolution module of the image encoder is connected to the input end of the second convolution module of the image encoder; the output end of the second convolution module of the image encoder is connected to the input end of the first pooling module of the image encoder; the output end of the first pooling module of the image encoder is connected to the input end of the third convolution module of the image encoder; the output end of the third convolution module of the image encoder is connected to the input end of the first fully connected module of the image encoder;

[0080] The image encoder is connected to the data enhancement layer and the fully connected layer respectively, and is used to perform image encoding processing on the enhanced image to obtain image encoding information;

[0081] The fully connected layer is implemented by a multi-layer perceptron and is used to perform matrix compression processing on the image coding information to obtain an image embedding vector;

[0082] The image generation network is implemented using a U-Net network.

[0083] Another implementation of the image generation network includes: a second input module, a fourth convolution module, a fifth convolution module, a sixth convolution module, a second pooling module, a seventh convolution module, a second fully connected module and a third fully connected module;

[0084] The input end of the second input module of the image generation network is connected to the output end of the second dimension-raising convolution module of the first recognition network; the output end of the second input module of the image generation network is connected to the input end of the fourth convolution module of the image generation network; the output end of the fourth convolution module of the image generation network is connected to the input end of the fifth convolution module of the image generation network; the output end of the fifth convolution module of the image generation network is connected to the input end of the sixth convolution module of the image generation network; the output end of the sixth convolution module of the image generation network is connected to the input end of the second pooling module of the image generation network; the output end of the second pooling module of the image generation network is connected to the input end of the seventh convolution module of the image generation network; the output end of the seventh convolution module of the image generation network is connected to the input end of the second fully connected module of the image generation network; the output end of the second fully connected module of the image generation network is connected to the input end of the third fully connected module of the image generation network;

[0085] The image generation network is used to perform fusion processing on the input image embedding vector, remote sensing image and mask image to obtain extended image information; the output end of the image generation network is connected to the input end of the decoding network;

[0086] The decoding network is used to decode the extended image information to obtain image information.

[0087] The convolution module can be implemented by using 3D multi-channel convolution;

[0088] The depthwise separable convolution module can be implemented by connecting a channel splitting submodule and a single-channel convolution submodule. Specifically, it can be implemented by using the depthwise separable convolution module in the MobileNet network.

[0089] The dimension-raising convolution module can be implemented by using the dimension-raising convolution module in the ResNet network;

[0090] The pooling module can be implemented by using a maximum pooling operation.

[0091] Specifically, when the convolution module, depthwise separable convolution module, dimensionality-increasing convolution module and pooling module are implemented by using multiple three-dimensional filters in parallel, the data characteristics of the matrices of the corresponding three-dimensional filters are different. The data characteristics of the matrices include the mean, variance, eigenvalues, etc. of the matrices.

[0092] The method of using the pre-processed image data set to train the remote sensing scarce sample generation model to obtain a trained remote sensing scarce sample generation model includes:

[0093] The method of using the pre-processed image data set to train the remote sensing scarce sample generation model to obtain a trained remote sensing scarce sample generation model includes:

[0094] Acquire a plurality of remote sensing images in the preprocessed image data set; construct a first image set using all the acquired remote sensing images; the first image set includes remote sensing images;

[0095] Performing target object recognition processing on each remote sensing image in the first image set to obtain a corresponding target image; the target image contains a target object; and constructing a target image set using all the target images;

[0096] A training data set is constructed using the first image set, the target image set and the mask image set; the training data set includes training data and corresponding label information; the expression of the training data is: The corresponding label information is X s ;X s ∈R H×W×3 , X s represents a remote sensing image, where H and W are the width and height of the remote sensing image respectively; X r ∈R H0×W0×3 , X r represents the target image, where H0 and W0 are the width and height of the target image respectively; represents the complementary image of the mask image;

[0097] A test set is constructed by using the first image set, the target image set and the mask image set; the test set includes test data; the expression of the test data is (X s ,X r ,m);

[0098] Initialize the number of training times;

[0099] Acquire training data from the training data set;

[0100] The target image in the training data is input into the text-image pre-training model of the remote sensing scarce sample generation model, and the target image in the training data is input into the text-image pre-training model of the remote sensing scarce sample generation model. and the template image, inputting the image generation network of the remote sensing scarce sample generation model, and using the remote sensing scarce sample generation model to obtain image information;

[0101] Using a loss function to calculate the image information and the label information corresponding to the training data to obtain a difference value;

[0102] Performing an accumulation operation on the training times;

[0103] Determine whether the training number value exceeds the training number threshold, and obtain a first determination result; when the first determination result is yes, trigger the execution of a model verification operation;

[0104] When the first judgment result is no, judging whether the difference value is less than a preset threshold, and obtaining a second judgment result;

[0105] When the second judgment result is yes, triggering the execution of a model verification operation; when the second judgment result is no, using the difference value to update the weight values ​​of the image generation network and the decoding network, triggering the execution of obtaining training data from the training data set;

[0106] The test set is used to verify the remote sensing scarce sample generation model; the target image in the test set is input into the text-image pre-training model of the remote sensing scarce sample generation model, the remote sensing image and the template image in the training data are input into the image generation network of the remote sensing scarce sample generation model, and the remote sensing scarce sample generation model is used to obtain a test fusion image; the test fusion image is subjected to image quality assessment processing to obtain an image quality result; if the image quality result is unqualified, triggering the execution of obtaining training data from the training data set; if the image quality result is qualified, a trained remote sensing scarce sample generation model is obtained.

[0107] The parameter updating model is:

[0108]

[0109] θ←-θ+v;

[0110] In the formula, x (i) is the i-th training data in the training data set, y (l)is the label information corresponding to the i-th training data, v is the parameter update value, θ is the parameter of the image generation network and the decoding network, η is the initial parameter learning rate, α is the momentum angle parameter, 0≤α≤π / 4, It means to find the partial derivative of variable θ, f(x (l) ; θ) represents the image information obtained by the remote sensing scarce sample generation model for the i-th training data, and f(.) is the calculation function corresponding to the remote sensing scarce sample generation model;

[0111] The image quality assessment process is performed on the test fusion image to obtain the image quality result, which is to calculate the FID, IS, PNSR, and SSIM indicators of all the test fusion images, perform weighted summation processing on the indicators of all the test fusion images, and obtain the total indicator; and determine whether the total indicator exceeds a preset quality threshold. If so, the image quality result is determined to be qualified.

[0112] The image generation network generates image y by gradually reversing the Markov forward process, from y 0 =X s Start the forward process to generate a series of increasingly noisy images {y t |t∈[1,T]}, where ε is Gaussian noise, RGB or grayscale value, α t As the time step t decreases, the diffusion model gradually denoises the noisy image of the last step of condition c by minimizing the loss function in the following formula:

[0113]

[0114] in, Indicates that yt, c, t is input to the output of the image generation network, and ε represents the label value corresponding to the input data.

[0115] During model training, the target image X r In the training process, the remote sensing image X s The data enhancement processing of the data enhancement layer refers to the process of reducing this difference in the target image X. r Several data enhancement techniques (including flipping, rotation, blurring, and elastic transformation) are used to enrich the data type of the target image and deconstruct the relationship with the remote sensing image. Therefore, formally, the conditions input to the image generation network can be expressed as:

[0116] c=MLP(CLIP cls (A(X r ))),

[0117] In the above formula, Α represents the data enhancement method. Subsequent experiments have shown that this method can effectively improve the generalization and robustness of the model.

[0118] The image encoder converts the enhanced image into 257 labeled tokens, including 1 class label token and 256 patch label tokens, using only the class label as the guiding condition of the diffusion model, and compresses the target image data from a matrix of spatial size 224×224×3 to a one-dimensional vector of dimension 1024, i.e., the image embedding vector, through a multi-layer perceptron (i.e., fully connected layer). This highly compressed feature representation tends to ignore high-frequency details during the compression process while maintaining semantic information, thereby forcing the network to understand the content of the target image and preventing the model from learning a simple mapping function to achieve the best results in both training and testing.

[0119] The ratio threshold range may be 10%-50%.

[0120] The target object recognition process can be implemented by using algorithms such as cluster recognition, support vector machine recognition, and fuzzy recognition.

[0121] The preprocessing of the remote sensing scarce image dataset to obtain a preprocessed image dataset includes:

[0122] First, incomplete data of objects are eliminated. For slice images in the FAST subset, objects at the edge of the image may sometimes be incomplete. This type of data will affect the generation effect, so this application will eliminate it.

[0123] Secondly, during the experiment, this application found that the proportion of the object in the entire image has a great influence on the generation effect. Too large or too small will affect the generation effect, especially when the object proportion is too small, there is a high probability that the object cannot be generated. Experimental verification shows that this application believes that the proportion of objects in the entire image is roughly 10%-50%, which is a roughly appropriate proportion and can guarantee the generation effect to a certain extent. Therefore, before constructing the training data, this application eliminates the data with an object proportion of more than 50%, and re-crops the data with a proportion of less than 10% to ensure that the object size proportion is appropriate.

[0124] Finally, due to the imaging characteristics of remote sensing images themselves, there will be hundreds of small objects in one image. When these small objects are very close, the fusion area on the constructed training data remote sensing image will contain multiple small objects, which will cause the model to generate multiple objects in an uncontrollable way when generating the target image in the fusion area. Therefore, this application eliminates data with too dense objects when constructing training data.

[0125] Specifically, the SAMRS dataset is a large-scale remote sensing segmentation dataset generated by an effective paradigm constructed through SAM (segmentation model) and existing remote sensing object classification and position regression datasets. SAMRS has a total of 105,090 images and 1,668,241 instances, which is several orders of magnitude more than the existing high-resolution remote sensing segmentation datasets. It provides object category, location and instance information, and can be used alone or in combination. The present invention selects a representative subset FAST because it is a fine segmentation data of high-resolution remote sensing images, and for the three common objects in remote sensing images, namely aircraft, ships and vehicles, this dataset has more detailed and specific category labels, with an average of ten fine categories for each type of object, which can cover a wider range of application scenarios and meet more diverse fusion needs.

[0126] In a second aspect of the embodiment of the present application, a device for expanding remote sensing scarce sample data is disclosed, the device comprising:

[0127] A memory storing executable program code;

[0128] a processor coupled to the memory;

[0129] The processor calls the executable program code stored in the memory to execute the remote sensing scarce sample data expansion method.

[0130] According to a third aspect of the embodiments of the present application, a computer storable medium is disclosed, wherein the computer storable medium stores computer instructions, and when the computer instructions are called, they are used to execute the remote sensing scarce sample data expansion method.

[0131] In a fourth aspect of the embodiments of the present application, an information data processing terminal is disclosed, and the information data processing terminal is used to implement the remote sensing scarce sample data expansion method.

[0132] The method of the present invention is applied to expand and generate actual images. The trained model is evaluated from two aspects: visualization effect and quantifiable indicators. The quantifiable indicators of the generated results are shown in Table 1. Table 1 evaluates the generation effect of the model from three indicators: FID, IS, PNSR, and SSIM.

[0133] Table 1 Quantitative indicator statistics

[0134]

[0135] As can be seen from Table 1, the present invention achieves rapid and accurate generation of remote sensing sample data of a target image.

[0136] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A method for expanding scarce remote sensing sample data, characterized in that: include: S1, obtain the remote sensing scarce image dataset and mask image collection; The mask image set includes a mask image; S2, preprocessing the remote sensing scarce image dataset to obtain a preprocessed image dataset; S3, construct a remote sensing scarce sample generation model; S4, using the preprocessed image data set, training the remote sensing scarce sample generation model to obtain a trained remote sensing scarce sample generation model; S5, using the trained remote sensing scarce sample generation model, processing the user sample expansion instruction to obtain a remote sensing expansion image; the user sample expansion instruction includes a target image to be expanded, a remote sensing image to be expanded, and a mask image to be expanded.

2. The method for expanding remote sensing scarce sample data according to claim 1, characterized in that: The remote sensing scarce image dataset is a FAST subset in the SAMRS dataset; the FAST subset includes remote sensing images of three types of objects: aircraft, ships, and vehicles, and corresponding category label information; The mask image is used to represent the position information to be replaced in the remote sensing image; the dimension of the mask image is the same as that of the remote sensing image; the mask image is represented by m, m∈{0,1} H×W , the row and column numbers of the elements with a value of 1 in m represent the position coordinate information of the pixel to be replaced in the remote sensing image; H and W are the row and column dimension values ​​of the remote sensing image respectively.

3. The method for expanding remote sensing scarce sample data according to claim 2, characterized in that: The preprocessing of the remote sensing scarce image dataset to obtain a preprocessed image dataset includes: S21, removing incomplete images from the remote sensing scarce image dataset to obtain a first image dataset; S22, performing target object recognition processing on each image in the first image data set to obtain a target object image; calculating a ratio of the target object image area to the entire image area; determining whether the ratio is within a ratio threshold range to obtain a first determination result; and removing from the first image data set all images for which the first determination result is negative to obtain a second image data set; S23, performing target object recognition processing on each image in the second image data set to obtain the number of target objects; judging whether the number of target objects is greater than a set number threshold, to obtain a second judgment result; and eliminating from the second image data set all images for which the second judgment result is yes, to obtain a preprocessed image data set.

4. The method for expanding remote sensing scarce sample data according to claim 2, characterized in that: The remote sensing scarce sample generation model includes: a text-image pre-training model, an image generation network, and a decoding network; The text-image pre-training model is used to receive a target image, perform semantic extraction processing on the target image, and obtain an image embedding vector; the output end of the text-image pre-training model is connected to the input end of the image generation network; The image generation network is used to perform fusion processing on the input image embedding vector, remote sensing image and mask image to obtain extended image information; the output end of the image generation network is connected to the input end of the decoding network; The decoding network is used to decode the extended image information to obtain image information.

5. The method for expanding remote sensing scarce sample data according to claim 4, characterized in that: The text-image pre-training model includes a data enhancement layer, an image encoder, and a fully connected layer; The data enhancement layer is used to perform data enhancement processing on the image input into the text-image pre-training model to obtain an enhanced image; The image encoder comprises a first input module, a first convolution module, a depth-separable convolution module, a first dimension-raising convolution module, a second dimension-raising convolution module, a third dimension-raising convolution module, a fourth dimension-raising convolution module, a second convolution module, a first pooling module, a third convolution module and a first fully connected module; The input end of the first input module of the image encoder is used to receive the enhanced image; the output end of the first input module of the image encoder is connected to the input end of the first convolution module of the image encoder; the output end of the first convolution module of the image encoder is connected to the input end of the depthwise separable convolution module of the image encoder; the output end of the depthwise separable convolution module of the image encoder is connected to the input end of the first dimensionality-raising convolution module of the image encoder; the output end of the first dimensionality-raising convolution module of the image encoder is connected to the input end of the second dimensionality-raising convolution module of the image encoder; the output end of the second dimensionality-raising convolution module of the image encoder is connected to the input end of the image encoder. The output end of the third dimensionality-raising convolution module of the encoder is connected to the input end of the fourth dimensionality-raising convolution module of the image encoder; the output end of the fourth dimensionality-raising convolution module of the image encoder is connected to the input end of the second convolution module of the image encoder; the output end of the second convolution module of the image encoder is connected to the input end of the first pooling module of the image encoder; the output end of the first pooling module of the image encoder is connected to the input end of the third convolution module of the image encoder; the output end of the third convolution module of the image encoder is connected to the input end of the first fully connected module of the image encoder; The image encoder is connected to the data enhancement layer and the fully connected layer respectively, and is used to perform image encoding processing on the enhanced image to obtain image encoding information; The fully connected layer is implemented by a multi-layer perceptron and is used to perform matrix compression processing on the image coding information to obtain an image embedding vector; The image generation network is implemented using a U-Net network.

6. The method for expanding remote sensing scarce sample data according to claim 4, characterized in that: The method of using the pre-processed image data set to train the remote sensing scarce sample generation model to obtain a trained remote sensing scarce sample generation model includes: Acquire a plurality of remote sensing images in the preprocessed image data set; construct a first image set using all the acquired remote sensing images; the first image set includes remote sensing images; Performing target object recognition processing on each remote sensing image in the first image set to obtain a corresponding target image; the target image contains a target object; and constructing a target image set using all the target images; A training data set is constructed using the first image set, the target image set and the mask image set; the training data set includes training data and corresponding label information; the expression of the training data is: The corresponding label information is X s ;X s ∈R H×W×3 , X s represents a remote sensing image, where H and W are the width and height of the remote sensing image respectively; X r ∈R H0×W0×3 , X r represents the target image, where H0 and W0 are the width and height of the target image respectively; represents the complementary image of the mask image; A test set is constructed by using the first image set, the target image set and the mask image set; the test set includes test data; the expression of the test data is (X s ,X r ,m); Initialize the number of training times; Acquire training data from the training data set; The target image in the training data is input into the text-image pre-training model of the remote sensing scarce sample generation model, and the target image in the training data is input into the text-image pre-training model of the remote sensing scarce sample generation model. and the template image, inputting the image generation network of the remote sensing scarce sample generation model, and using the remote sensing scarce sample generation model to obtain image information; Using a loss function to calculate the image information and the label information corresponding to the training data to obtain a difference value; Performing an accumulation operation on the training times; Determine whether the training number value exceeds the training number threshold, and obtain a first determination result; when the first determination result is yes, trigger the execution of a model verification operation; When the first judgment result is no, judging whether the difference value is less than a preset threshold, and obtaining a second judgment result; When the second judgment result is yes, triggering the execution of a model verification operation; when the second judgment result is no, using the difference value to update the weight values ​​of the image generation network and the decoding network, triggering the execution of obtaining training data from the training data set; The test set is used to verify the remote sensing scarce sample generation model; the target image in the test set is input into the text-image pre-training model of the remote sensing scarce sample generation model, the remote sensing image and the template image in the training data are input into the image generation network of the remote sensing scarce sample generation model, and the remote sensing scarce sample generation model is used to obtain a test fusion image; the test fusion image is subjected to image quality assessment processing to obtain an image quality result; if the image quality result is unqualified, triggering the execution of obtaining training data from the training data set; if the image quality result is qualified, a trained remote sensing scarce sample generation model is obtained.

7. The method for expanding remote sensing scarce sample data according to claim 6, characterized in that: The parameter updating model is: θ←θ+v; In the formula, x (i) is the i-th training data in the training data set, y (i) is the label information corresponding to the i-th training data, v is the parameter update value, θ is the parameter of the image generation network and the decoding network, η is the initial parameter learning rate, α is the momentum angle parameter, 0≤α≤π / 4, It means to find the partial derivative of variable θ, f(x (i) ; θ) represents the image information obtained by the remote sensing scarce sample generation model for the i-th training data, and f(·) is the calculation function corresponding to the remote sensing scarce sample generation model.

8. A device for expanding remote sensing scarce sample data, characterized in that: The device comprises: A memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the remote sensing scarce sample data expansion method according to any one of claims 1 to 7.

9. A computer storable medium, characterized in that: The computer storable medium stores computer instructions, and when the computer instructions are called, they are used to execute the remote sensing scarce sample data expansion method according to any one of claims 1 to 7.

10. An information data processing terminal, characterized in that: The information data processing terminal is used to implement the remote sensing scarce sample data expansion method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Training sample construction method and recognition method for remote sensing image ground feature recognition

    CN115937631A

  • Self-supervised image data set construction method, system and equipment based on diffusion generation

    CN117576515A

  • Data compression method and device based on high-throughput satellite Internet of Things

    CN117978247A

  • Remote sensing image scene classification method and device based on compression model

    CN118015350A

Cited By

  • Fetal ultrasound image label removing method and device based on image channel splitting

    CN119784686A