Polarimetric SAR Image Classification Method Based on Diffusion Model
The polarimetric SAR image data set is expanded by generating pseudo data through the Diffusion model, which solves the problems of high sample labeling cost and low flexibility of data augmentation in the fine classification of polarimetric SAR images and ground objects, and improves the classification accuracy and model generalization ability. .
Patent Information
- Application Number
- CN202410273172.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-11
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-03-11
AI Technical Summary
The existing technology has problems in the fine classification of ground objects in polarimetric SAR images, such as high sample labeling costs, low flexibility in data augmentation, and the generated data does not have pixel-level label attributes, resulting in low classification accuracy.
A polarimetric SAR image classification method based on the Diffusion model is adopted. By constructing a Diffusion data augmentation model and a convolutional neural network, pseudo data is generated to expand the data set and achieve pixel-level classification of polarimetric SAR images.
It effectively avoids dependence on a large amount of labeled data, improves the robustness and generalization ability of the polarimetric SAR image classification model, and improves the classification accuracy.
Smart Images

Figure CN118115803B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of polarimetric synthetic aperture radar images, and in particular to a polarimetric SAR image classification method based on a Diffusion model. Background Art
[0002] Polarimetric Synthetic Aperture Radar (PSAR) images are image data acquired through SAR systems, which can provide polarization information of targets, including the target's scattering matrix, polarization deconstruction, etc. Compared with traditional optical images, polarimetric SAR images are not restricted by lighting conditions and can be acquired under any weather and lighting conditions; they provide scattering information of targets and can acquire information such as the shape, structure, and internal material distribution of targets; they are not dependent on natural light and have the ability to observe continuously day and night. Therefore, the classification of polarimetric SAR images is an important research topic in the field of remote sensing image processing.
[0003] Polarimetric SAR image object classification is the task of classifying and identifying objects using polarimetric SAR images, accurately determining the type of objects in a given area, and can be widely used in military reconnaissance, agricultural monitoring, urban planning and other fields. In recent years, polarimetric SAR image target fine classification technology based on deep learning has become mainstream, and has achieved high-precision classification results under the guidance of sufficient manually annotated data. However, the complex echo imaging mechanism of polarimetric SAR images leads to extremely high sample annotation costs, and high-quality annotation requires a lot of expert knowledge, which brings great challenges to the practical application of object classification and recognition algorithms. In addition, most existing data augmentation methods are limited to simple processing and reuse of labeled samples, such as rotation, scaling, perturbation, etc. These methods can be used alone or in combination, but they are prone to excessive deformation of data or introduction of too much noise, affecting the training effect of the model. Compared with generative data augmentation, such methods are less flexible and often difficult to truly avoid the model's large demand for diversified labeled data. Moreover, in the research on data set expansion, the main purpose is to improve the performance and generalization ability of polarimetric SAR image object classification. However, the simple processing and reuse of labeled samples in previous methods often backfires. Therefore, how to solve the problem of deep learning methods' reliance on massive samples in the application of fine classification and recognition of ground objects in polarimetric SAR images, and make full use of the existing precious labeled data to improve the recognition accuracy and the performance and generalization ability of the ground object classification model, is an urgent practical application demand for breaking through the efficient and accurate classification technology of ground objects based on satellite remote sensing and artificial intelligence.
[0004] In order to solve the above problems, some scholars have proposed a few-shot polarimetric SAR image ground object classification method based on semi-supervised or self-supervised neural network model, that is, the original unsupervised or semi-supervised traditional methods such as feature decomposition and clustering algorithm are integrated with neural network training methods such as contrastive learning to achieve the few-shot polarimetric SAR image ground object classification. For example, Zhang et al. proposed a new diversity excitation mechanism and combined it with the contrastive learning (CL) method to realize the unsupervised pre-training method, learn transferable representations without manual annotation, and realize the few-shot polarimetric SAR image classification (see reference: L. Zhang, S. Zhang, B. Zou and H. Dong, "Unsupervised Deep Representation Learning and Few-Shot Classification of PolSAR Images," in IEEE Transactions on Geoscience and Remote Sensing, vol. 60, pp. 1-16, 2022, Art no. 5100316, doi: 10.1109 / TGR-S.2020.3043191.). At the same time, scholars in the field of remote sensing image processing have applied image generation models such as GAN to augment optical remote sensing image data.
[0005] However, the existing methods for classifying ground objects in polariSAR images based on semi-supervised or self-supervised neural network models and the generative dataset expansion methods in the field of remote sensing image processing have the following problems: First, the former introduces traditional algorithms, and replaces the prior knowledge brought by a large number of data labels with the processing results of traditional algorithms on polariSAR data with complex and rich information for the training of classification models, so the classification accuracy of the models cannot be effectively guaranteed; second, due to the particularity of polariSAR data, the existing image generative dataset methods are difficult to be directly used for polariSAR data generation, and the generated data do not have clear pixel-level label attributes and cannot be directly applied to pixel-level image classification, and the existing generative data expansion methods have not done sufficient research on the performance of generating small low-resolution samples. Due to the above-mentioned related problems, the existing polariSAR image classification is not accurate enough. Summary of the invention
[0006] In order to solve the above problems existing in the prior art, the present invention provides a polarization SAR image classification method based on a Diffusion model, which can effectively and accurately classify SAR images to be classified through a small number of polarization SAR image training samples.
[0007] In order to better achieve the above technical objectives, the present invention provides the following technical solutions: a polarization SAR image classification method based on a Diffusion model, comprising:
[0008] Acquire polarimetric SAR data, wherein the polarimetric SAR data includes polarimetric SAR images and corresponding ground object real marking maps; based on the polarimetric SAR data, acquire the data set to be augmented through a data selection algorithm;
[0009] Constructing a Diffusion data augmentation model, wherein the Diffusion data augmentation model is trained by using a training set to be augmented, and pseudo data is generated by using the trained Diffusion data augmentation model;
[0010] Reconstructing and generating an augmented data set based on the data set to be augmented and the pseudo data;
[0011] Constructing a convolutional neural network, training the convolutional neural network by augmenting the data set, and generating a trained convolutional neural network;
[0012] The feature data corresponding to the polarimetric SAR image to be classified is classified through the trained convolutional neural network to generate the ground object category prediction classification result of the polarimetric SAR image to be classified.
[0013] Optionally, the process of acquiring the data set to be augmented includes:
[0014] Acquire a complex-valued feature matrix of the polarization SAR image according to the polarization SAR image, wherein the complex-valued feature matrix includes a complex-valued feature vector of each pixel;
[0015] Generate labeled data based on the real labeled map of the ground objects, construct the initial ground truth matrix, classify and annotate the initial ground truth matrix at the pixel level based on the labeled data, and generate the ground truth matrix;
[0016] According to the coordinate values of the labeled pixels in the surface truth matrix, the complex-valued eigenvector at the corresponding coordinate value in the complex-valued feature matrix is obtained as the first complex-valued eigenvector, and the first complex-valued eigenvector is used as the center point, and several complex-valued eigenvectors are selected around as the second complex-valued eigenvectors, and the first complex-valued eigenvector and the second complex-valued eigenvector are combined into a complex-valued feature matrix block, and the upper triangular elements in the complex-valued eigenvector in the complex-valued feature matrix block are separated by real and imaginary parts to form a real-valued eigenvector, and a high-dimensional real-valued feature matrix is generated based on the real-valued eigenvector, and the surface truth matrix is divided into blocks according to the pixel coordinates in the high-dimensional real-valued feature matrix, and the ground object category with the largest proportion of the high-dimensional real-valued feature matrix is obtained for the divided surface truth matrix as label information, and the label information and the high-dimensional real-valued feature matrix block are correspondingly combined to generate a training set to be augmented.
[0017] Optionally, the process of acquiring the complex-valued characteristic matrix of the polarimetric SAR image includes:
[0018] The polarization coherence matrix of each pixel of the polarization SAR image is obtained, the mean and variance of each element in the polarization coherence matrix of each pixel are calculated, and each element in the polarization coherence matrix of each pixel is normalized according to the mean and variance to generate a complex-valued eigenvector of each pixel, and further generate a complex-valued eigenmatrix of the polarization SAR image.
[0019] Optionally, the process of generating pseudo data through the trained Diffusion data augmentation model includes: a forward diffusion process and a reverse diffusion process; wherein the forward diffusion process includes: initializing the time step, signal-to-noise ratio and noise factor, and gradually adding noise to the training sample features according to the time step, signal-to-noise ratio and noise factor to generate a training sample feature matrix sequence at each time step; the reverse diffusion process includes: performing noise prediction on the training sample feature matrix sequence through a noise prediction model, and gradually denoising the training sample feature matrix sequence according to the noise prediction result to generate pseudo samples.
[0020] Optionally, the noise prediction model includes a downsampling module, a deep feature transformation module and an upsampling module connected in sequence;
[0021] The downsampling module includes four sequentially connected downsampling sub-blocks, wherein the downsampling sub-block includes a sequentially connected TimeEmbedding block, a residual block, an attention block, a residual block, a second attention block and a feature compression block;
[0022] The deep feature transformation module includes a TimeEmbedding block, a residual block, an attention block and a residual block cascaded in sequence;
[0023] The upsampling module includes four sequentially connected upsampling sub-blocks, wherein the upsampling sub-blocks include a TimeEmbedding block, a residual block, an attention block, a residual block, an attention block, a residual block, an attention block, and a feature restoration block that are sequentially connected;
[0024] The TimeEmbedding block includes a first linear layer and a second linear layer;
[0025] The residual block includes a first structure, the first structure includes a group normalization layer, a SiLU activation layer and a convolution layer connected in sequence, wherein two ends of the first structure are connected in parallel with a SiLU activation layer and a fully connected layer connected in sequence, and the parallel structure is subsequently connected with a group normalization layer, a SiLU activation layer, a Dropout layer, a convolution layer, a group normalization layer, a SiLU activation layer, a convolution layer, a group normalization layer, a SiLU activation layer, a convolution layer, a LayerNorm layer, a linear connection layer, a linear connection layer, a linear connection layer and a LayerNorm layer connected in sequence;
[0026] The attention block includes a group normalization layer, a convolution layer and a convolution layer connected in sequence; the feature compression block includes a convolution layer; the specific structure of the feature restoration block includes a deconvolution layer.
[0027] Optionally, a Diffusion data augmentation model is trained for each ground object category to generate pseudo data for a separate ground object category.
[0028] Optionally, the noise prediction module adopts a total loss function group of a weighted sum of a mean square error loss value and a noise distribution matching loss value as a loss function, wherein the loss function is calculated based on the noise prediction result and the actual noise during the training process, and the weight of the noise prediction model is updated according to the loss function until the loss function converges or the number of training times reaches a threshold, thereby completing the training of the noise prediction module, wherein the noise distribution matching loss value is calculated using an accurate feature distribution matching method.
[0029] Optionally, the convolutional neural network includes an input layer, a feature extraction module and a Softmax classifier output layer connected in sequence;
[0030] Among them, the feature extraction module includes a shallow feature extraction block and a deep feature extraction block, wherein the shallow feature extraction block includes a convolutional layer, a ReLU activation layer, a convolutional layer, a ReLU activation layer, a convolutional layer, a BN batch normalization layer and a ReLU activation layer connected in sequence; the deep feature extraction block includes a convolutional layer, a BN batch normalization layer, a ReLU activation layer, a convolutional layer, a BN batch normalization layer, a ReLU activation layer, a maximum pooling layer, a global average pooling layer and a fully connected layer connected in sequence.
[0031] Optionally, the feature data corresponding to the polarization SAR image to be classified adopts a corresponding high-dimensional real-valued feature matrix block.
[0032] The present invention has the following technical effects:
[0033] In the present invention, the proposed PolSAR image classification method based on Diffusion data augmentation uses a constructed Diffusion data augmentation model and a convolutional neural network model to gradually transform the feature matrix corresponding to a small amount of selected labeled data into Gaussian noise through a forward diffusion denoising process, and learns the added noise distribution through a noise prediction model, and then performs inverse diffusion denoising on the random noise through the learned model parameters to generate pseudo data; finally, the convolutional neural network model trained by the reconstructed augmented data set realizes the pixel-level classification of the PolSAR image. This method effectively avoids the problem of the prior art's heavy reliance on labeled PolSAR image data sets, and increases the diversity of real data through the pseudo data set generated from random noise by the Diffusion model, which can effectively improve the robustness and generalization ability of the polarimetric SAR image classification model. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0035] Figure 1 A schematic diagram of a process flow of a PolSAR image classification method based on data augmentation provided by an embodiment of the present invention;
[0036] Figure 2 A synthetic image of polarimetric SAR data used in an embodiment of the present invention;
[0037] Figure 3 The embodiment of the present invention provides Figure 2 Ground feature ground truth label map;
[0038] Figure 4 A classification result diagram of a convolutional network model trained with real data for classification provided in an embodiment of the present invention;
[0039] Figure 5 A graph showing the classification results of a convolutional network model trained by augmenting a dataset with a pseudo-true mixture ratio of 1:1 provided in an embodiment of the present invention;
[0040] Figure 6 A graph of classification results of a convolutional network model trained on a dataset with a pseudo-true mixture ratio of 10:1 provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0041] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0042] The present invention discloses a PolSAR image classification method based on Diffusion data augmentation, including: obtaining a small amount of PolSAR data; constructing an original training set for training a Diffusion data augmentation model according to the PolSAR data; constructing a Diffusion data augmentation model and using the original data set for training; using the trained Diffusion data augmentation model to generate pseudo data, reconstructing the original training set containing real data and the generated data of the augmentation model into an augmented data set for training a classification model; constructing a classic convolutional neural network model; using the augmented training set to train the convolutional neural network model; and using the trained convolutional neural network model to classify the PolSAR image data to be classified. The present invention avoids the problem of the prior art's heavy reliance on the labeled PolSAR image data set and the problem of the difficulty and tediousness of the manual labeling of polarimetric SAR data in the prior art, and increases the diversity of real data through the pseudo data set generated from random noise by the Diffusion model, which can effectively improve the robustness and generalization ability of the polarimetric SAR image classification model.
[0043] In order to solve the existing technical problems, the present invention proposes a PolSAR image classification method based on Diffusion data augmentation, comprising:
[0044] Acquire polarimetric SAR data; wherein the polarimetric SAR data includes full polarimetric SAR image data and its corresponding ground object real marking map; construct the data set to be augmented for the training data augmentation model through a data selection algorithm based on the polarimetric SAR data;
[0045] Build a Diffusion data augmentation model and use the data set to be augmented for training;
[0046] Use the trained Diffusion data augmentation model to generate pseudo data, and reconstruct the original data set to be augmented containing real data and the pseudo data generated by the augmentation model into an augmented data set for training the classification model;
[0047] A classic convolutional neural network (CNN) model is constructed; wherein the CNN network model for realizing classification comprises an input layer, a feature extraction module and a Softmax classifier output layer; the output end of the input layer is cascaded with the input end of the feature extraction module, and the output end of the feature extraction module is cascaded with the output layer of the Softmax classifier;
[0048] The convolutional neural network model is trained using the augmented data set to obtain a trained convolutional neural network model; the trained convolutional neural network model is used to classify the polarimetric SAR images to be classified to obtain multi-class ground object classification and recognition results of the PolSAR images to be classified.
[0049] Preferably, a data augmentation model training set is constructed based on polarimetric SAR data through a data selection algorithm, specifically including: preprocessing the polarimetric SAR image; constructing a complex-valued feature matrix of the polarimetric SAR image based on the preprocessed polarimetric SAR image; marking a small amount of data corresponding to each ground object category in the preprocessed polarimetric SAR image based on a ground object real labeling map corresponding to the polarimetric SAR image, and using the data as labeled data; constructing a matrix of the same size as the polarimetric SAR image, and classifying the labeled data at the pixel level according to the ground object category (e.g., water area image, ground object real labeling map ... The matrix value corresponding to the pixel point is 1; the matrix value corresponding to the pixel point in the vegetation coverage area is 2, etc.) and all the unlabeled data are set to zero to obtain the surface truth matrix. According to the coordinate values of different objects in the surface truth matrix corresponding to the polarimetric SAR image, the first complex-valued eigenvector corresponding to the coordinate position in the complex-valued feature matrix of the polarimetric SAR image is found; with the first complex-valued eigenvector as the center point, multiple second complex-valued eigenvectors are selected around, and the first complex-valued eigenvector and the selected second complex-valued eigenvector are combined to form a pre-selected complex-valued feature matrix block, and the matrix block size is 16 pixels * 16 pixels. According to the derivation process and physical meaning of the complex-valued feature matrix of the polarimetric SAR image, it is known that it has the conjugate transpose identity property and the diagonal elements are all real numbers, so the upper triangular matrix elements are selected, and the imaginary part and the real part are separated, and finally the high-dimensional real-valued eigenvector corresponding to each object mark coordinate is obtained; according to the above method, the complex-valued eigenvectors corresponding to the coordinates of all labeled data in the complex-valued feature matrix block are transformed accordingly to obtain a training sample set consisting of a pre-selected high-dimensional real-valued feature matrix block. In order to ensure that the generated data is least affected by the quality of the training samples, a simple analysis is performed on the proportions of different land objects contained in the surface true value matrix block corresponding to the pre-selected high-dimensional real-valued feature matrix block. The land object category with the largest proportion is used as the label information of the training sample, and samples with similar contents of the main component land object category and the secondary principal component land object category are discarded as easily confused samples. Finally, the same number of training samples of each category are selected to constitute the data set to be augmented. The training samples of different categories include the high-dimensional real-valued feature matrix block, i.e., the training sample features and the corresponding land object category labels.
[0050] Preferably, a small amount of training set samples of each type of land object are used to train the Diffusion data augmentation model to obtain a trained Diffusion data augmentation model, which specifically includes: initializing the time step (Timesteps) and predefined noise factor (beta) required in the forward diffusion and reverse diffusion processes; randomly selecting K groups of training sample features with replacement from the training set to be augmented, wherein each type of land object sample is trained separately with a category generation model to ensure that the generated samples have clear label attributes; determining the number of execution steps of the noise addition process according to the time step, determining the noise intensity required for each step according to the predefined noise factor, performing noise processing on the input K groups of training sample features, obtaining a training sample feature matrix sequence after noise addition at each time step, and then inputting it into the prediction noise model to realize the addition of noise distribution prediction, and further realizing the generation of realistic samples, i.e., pseudo data, from noise. It is worth noting that the Diffusion data augmentation model combines the characteristics of mathematical models and neural network models, and uses the Diffusion model, i.e., neural network, with an existing actual module structure to model the probability distribution changes of samples in the forward diffusion and reverse diffusion processes, thereby generating new sample data.
[0051] Preferably, the downsampling module in the prediction noise model is used to reduce the resolution of the noise image of adjacent time steps through stacked convolutional layers and pooling layers, capture wide-area contextual information and extract more abstract feature representations, and further feature extraction and compression are achieved through a deep feature conversion module. Finally, the upsampling module is used to restore and reconstruct the noise distribution, achieve effective image noise feature recovery and information fusion, and output the predicted noise of adjacent time steps.
[0052] Preferably, the convolutional neural network model is trained using pseudo data generated by the data augmentation model and an augmented data set reconstructed from the data set to be augmented to obtain a trained convolutional neural network model, specifically including: establishing a weight parameter set according to the weights of all filters in each convolutional layer and the weights of each fully connected layer, and initializing the weight parameter set of each convolutional layer using a weight random initialization method; inputting a batch training mixed data feature set into the input layer; performing shallow feature extraction on the training sample features of the batch training feature set using a shallow feature extraction module, extracting local features of the training sample feature matrix and retaining spatial structure information; superimposing the shallow feature set and the batch training feature set dimensions to form a fused feature set that is input into a deep feature extraction module; extracting semantic features from the fused feature set using a deep feature extraction module, and obtaining a label probability set through a fully connected layer in the module; classifying and predicting the discriminable feature sets of various types of objects using a Softmax classifier output layer to obtain a predicted label set; adjusting the weight parameter sets of each layer of the network according to the training label set and the predicted label set corresponding to the batch training feature set to obtain a trained convolutional neural network model.
[0053] Preferably, a shallow feature extraction module of a convolutional neural network is used to perform shallow feature extraction on the training sample features of a batch training feature set, and the shallow feature set is superimposed with the batch training feature set dimension to form a fused feature set, and then a deep feature extraction module is used to extract deep features from the fused feature set, and finally a predicted label set is obtained, specifically including: taking the batch training mixed data feature set as the input feature data of the first convolutional layer; sequentially outputting the extracted shallow feature set of the batch training mixed data through the shallow feature extraction module; superimposing the shallow feature set output by the third ReLU activation layer of the shallow feature extraction module with the batch training feature set dimension as the input of the fourth convolutional layer of the deep feature extraction module; the second BN batch normalization layer, the fourth ReLU activation layer, the fifth convolutional layer, the third BN batch normalization layer, and the fifth ReLU activation layer output the deep feature set of the batch training mixed data; taking the deep feature set as the input of the first maximum pooling layer to obtain a deep significant feature set; inputting the deep significant feature set into the first global average pooling layer and the first fully connected layer to map the high-level abstract features to the final output space, and obtain a predicted sample label vector.
[0054] Preferably, the Softmax classifier output layer is used to classify and predict the discriminable feature set extracted by the convolutional neural network model from the mixed sample feature set of generated data and real data to obtain a prediction label set, specifically including: inputting the augmented data set into the convolutional neural network model, using the discriminable feature set extracted by the shallow feature extraction module and the deep feature extraction module as the input feature data of the Softmax classifier output layer, calculating the output prediction obtained by the Softmax classifier output layer for each training sample feature in the batch training feature set, and composing the output predictions corresponding to all training sample features in the batch training feature set into the augmented data set prediction label set.
[0055] Preferably, the noise prediction model weight parameter set is adjusted using the noise distribution parameter matrix predicted by the noise prediction model and the actual noise added to the image feature matrix at each time step determined by the initially set noise factor, time step and signal-to-noise ratio to obtain a trained Diffusion data augmentation model. In order to ensure that the model does not increase the uncertainty of whether the model is effective due to the local optimal solution that appears during the gradient descent calculation of the total loss value, multiple rounds of training will be used to obtain the optimal strategy to obtain a trained Diffusion data augmentation model.
[0056] Preferably, the trained convolutional neural network model is used to classify the polarization SAR image to be classified to obtain the classification and identification results of the ground objects of the polarization SAR image to be classified, which specifically includes: performing the same data processing as constructing a training set on the complex-valued feature matrix block of the polarization SAR image to be classified, converting it into a high-dimensional real-valued feature matrix and inputting it into the input layer of the trained convolutional neural network model; using a shallow feature extraction module to extract discriminable real-valued features from the high-dimensional real-valued feature matrix block of the polarization SAR image to be classified to obtain discriminable shallow features, superimposing the shallow features with the sample input in terms of dimension to achieve feature fusion of the shallow feature matrix and the sample input feature matrix; inputting the fused features into a deep feature extraction module to obtain the deep feature representation of the training sample; and using the output layer of the Softmax classifier to classify, identify and predict the discriminable features to obtain the classification and identification results of the ground objects of the polarization SAR image to be classified.
[0057] The present invention will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.
[0058] Reference Figure 1 The present invention proposes a PolSAR image classification method based on Diffusion data augmentation, comprising: obtaining polarimetric SAR data; wherein the polarimetric SAR data includes full polarimetric SAR image data and its corresponding ground object real marking map; according to the polarimetric SAR data, constructing a training set to be augmented of a training data augmentation model through a data selection algorithm;
[0059] Construct a Diffusion data augmentation model and use the augmented training set for training; the noise prediction model used to learn the distribution parameters of the noise added in the diffusion process and realize the inverse diffusion process includes an input layer, a downsampling module, a deep feature conversion module, an upsampling module and an output layer. The output of the input layer is cascaded with the input of the downsampling module, the output of the downsampling module is cascaded with the input of the deep feature conversion module, the output of the deep feature conversion module is cascaded with the input of the upsampling module, and finally the output layer is cascaded to the output of the upsampling module;
[0060] Use the trained Diffusion data augmentation model to generate pseudo data, and reconstruct the original training set containing real data and the generated data of the augmentation model into an augmented data set for training the classification model;
[0061] Construct a classic convolutional neural network model; the CNN network model used to implement classification includes an input layer, a feature extraction module, and a Softmax classifier output layer; the output end of the input layer is cascaded with the input end of the feature extraction module, and the output end of the feature extraction module is cascaded with the output layer of the Softmax classifier;
[0062] The convolutional neural network model is trained using the augmented data set to obtain a trained convolutional neural network model; the trained convolutional neural network model is used to classify the PolSAR images to be classified to obtain multi-class ground object classification and recognition results of the PolSAR images to be classified.
[0063] In this embodiment, a data augmentation model training set is constructed according to polarimetric SAR data through a data selection algorithm, specifically including: preprocessing the polarimetric SAR image; constructing a complex-valued feature matrix of the polarimetric SAR image according to the preprocessed polarimetric SAR image, selecting its upper triangular matrix elements, separating the imaginary part and the real part thereof, and finally obtaining a high-dimensional real feature matrix corresponding to each ground object marking coordinate; performing corresponding transformations on all the corresponding vectors of the marked data coordinates in the complex-valued feature matrix block according to the selected ground object sample blocks of each type, and obtaining a training sample set initially composed of the preselected real feature matrix blocks.
[0064] In a further embodiment, a complex-valued feature matrix of a polarimetric SAR image is constructed according to the preprocessed polarimetric SAR image, specifically comprising: calculating a polarimetric complex-valued coherence matrix of each pixel point in the preprocessed polarimetric SAR image, and normalizing the polarimetric complex-valued coherence matrix to obtain a normalized polarimetric complex-valued coherence matrix of the polarimetric SAR image; extracting a complex-valued feature vector of each pixel point from the normalized polarimetric complex-valued coherence matrix of the polarimetric SAR image, and constructing a complex-valued feature matrix of the polarimetric SAR image according to a set of complex-valued feature vectors of all pixel points, selecting an upper triangular matrix element, and separating the imaginary part and the real part thereof, and finally obtaining a high-dimensional real feature matrix corresponding to each ground object marker coordinate.
[0065] In a further embodiment, physical calculation is performed on the polarimetric SAR image source data to obtain the polarimetric coherence matrix of each pixel in the preprocessed polarimetric SAR image, and the polarimetric coherence matrix is normalized by the average value and variance value in the polarimetric coherence matrix to obtain the polarimetric coherence matrix of the normalized polarimetric SAR image, which is specifically implemented as follows:
[0066] The polarization coherence matrix of a single pixel of a polarimetric SAR image can be obtained by the physical derivation method studied by Huynen et al., specifically: Among them, A0, B0, B, C, D, E, F, G and H are collectively referred to as "Huynen parameters"; therefore, the feature matrix of each pixel in the preprocessed polarimetric SAR image can be represented by a 3×3 polarimetric coherence matrix; among them, Where, T (ij) represents the polarization coherence matrix corresponding to the pixel point in the i-th row and j-th column in the polarization SAR image, i = 1, 2, ..., a s ,j=1,2,...,b s , the length and width of the polarimetric SAR image are represented by a s and b s express, represents the element in the uth row and vth column of the polarization coherence matrix, u,v∈{1,2,3} and except for the diagonal elements, the rest of the matrix elements are complex values;
[0067] In a further embodiment, the normalization process is specifically implemented as follows: according to the polarization coherence matrix of each pixel point of the polarization SAR image obtained after preprocessing, the polarization coherence matrix T corresponding to each pixel point is respectively calculated. (ij) Calculate the mean and variance of each element in; where, In the formula, · represents the product operation, Represents the average value of each element in the polarization coherence matrix of each pixel of the polarization SAR image; where, In the formula, represents the conjugate operation, The variance value of each element in the polarization complex-valued coherence matrix of each pixel point of the polarization SAR image is obtained for the entire complex-valued matrix; then, according to the polarization coherence matrix T corresponding to each pixel point of the polarization SAR image (ij) The polarization coherence matrix T corresponding to each pixel point of the polarimetric SAR image is calculated by taking each element in and the mean and variance value of each element. (ij) The normalized value of each element in ; the implementation formula is as follows, In the formula, Represents the polarization coherence matrix T corresponding to each pixel of the polarization SAR image (ij) The normalized value corresponding to each element in ; Finally, according to the polarization coherence matrix T corresponding to each pixel point of the polarization SAR image (ij) The normalized value of each element in The normalized polarization coherence matrix corresponding to each pixel is obtained, which can be expressed as In the formula, Represents the normalized polarization coherence matrix corresponding to the pixel point in the i-th row and j-th column of the polarization SAR image; By calculating the polarization coherence matrix T of each pixel point in the polarization SAR image (ij) The same normalization process is performed to obtain the normalized polarization coherence matrix of the entire polarization SAR image.
[0068] In a further embodiment, it is necessary to extract the complex-valued feature vector of each pixel from the polarization coherence matrix of the polarization SAR image after normalization, and construct a high-dimensional real feature matrix of the polarization SAR image according to the set of complex-valued feature vectors of all pixels in each type of ground object sample block (16 pixels * 16 pixels), which is specifically implemented as follows:
[0069] Since all elements except the diagonal elements in the normalized polarization coherence matrix corresponding to each pixel in the polarimetric SAR image are complex values and have the conjugate transpose identity property, in order to facilitate network processing and reduce the complexity of network feature calculations, this example selects the 6 elements of the upper triangle to separate the real part and the imaginary part to form a 9-dimensional real-valued feature vector of the pixel; among them, In the formula, I (ij) Represents the 9-dimensional real-valued feature vector of each pixel of the polarimetric SAR image, i = 1, 2, ..., a s ,j=1,2,...,b s ; According to the 9-dimensional real-valued feature vector of each pixel point of the polarimetric SAR image, a high-dimensional real-valued feature matrix of the polarimetric SAR image is constructed; wherein, Where F represents the high-dimensional real-valued feature matrix of the polarimetric SAR image.
[0070] In a further embodiment, in order to ensure that the generated data is least affected by the quality of the training samples, a simple analysis is performed on the proportion of different land objects contained in the surface truth matrix block corresponding to the pre-selected real feature matrix block, and a data augmentation model training set is constructed through a data selection algorithm, specifically including: dividing the surface truth matrix g of the labeled data into blocks, and the matrix block size is 16 pixels * 16 pixels. The divided surface truth matrix is divided by different land object category label values (such as 1, 2, 3...n), and a matrix group G = (g1, g2, g3..., g n ), replace all numbers that are not integer 1 with 0, and get the matrix group Sum and average all elements in each matrix group to get the category proportion factor η=(η1,η2,η3...,η n ), when η i When >0.7, it proves that more than 70% of the pixels in this sample block are single-category ground object pixels. According to the numerical value of the proportion factor of all categories corresponding to the sample block matrix, the ground object category with the largest proportion is used as the label information of the training sample, and the samples with the main component ground object category proportion less than 70% are discarded as easily confused samples. Finally, the same number of training samples of each category are selected to form the training set to be augmented.
[0071] In a further embodiment, in order to accurately predict the diffusion process and add noise distribution to avoid the different noise distribution removed by reverse diffusion, resulting in too low quality of generated samples and affecting the training results of the classification model, in a further embodiment, the noise prediction model includes an input layer, a downsampling module, a deep feature conversion module and an upsampling module, wherein the downsampling module in the noise prediction model includes four cascaded downsampling sub-blocks; wherein the first downsampling sub-block includes a first TimeEmbedding block, a first residual block, a first attention block, a second residual block, a second attention block and a first feature compression block cascaded in sequence; the second downsampling sub-block includes a second TimeEmbedding block, a third residual block, a third attention block, a fourth residual block, a fourth attention block and a second feature compression block cascaded in sequence; the third downsampling sub-block includes a third TimeEmbedding block, a fifth residual block, a fifth attention block, a sixth residual block, a sixth attention block and a third feature compression block cascaded in sequence; the fourth downsampling sub-block includes a fourth TimeEmbedding block, a seventh residual block, a seventh attention block, an eighth residual block and an eighth attention block cascaded in sequence. The deep feature conversion module in the noise prediction model contains the fifth TimeEmbedding block, the ninth residual block, the ninth attention block and the tenth residual block, which are cascaded sequentially. The upsampling module in the noise prediction model includes four cascaded upsampling sub-blocks; wherein the first upsampling sub-block includes the sixth TimeEmbedding block, the eleventh residual block, the tenth attention block, the twelfth residual block, the eleventh attention block, the thirteenth residual block, the twelfth attention block and the first feature restoration block in sequence; the second upsampling sub-block includes the seventh TimeEmbedding block, the fourteenth residual block, the thirteenth attention block, the fifteenth residual block, the fourteenth attention block, the sixteenth residual block, the fifteenth attention block and the second feature restoration block in sequence; the third upsampling sub-block includes the eighth TimeEmbedding block, the seventeenth residual block, the sixteenth attention block, the eighteenth residual block, the seventeenth attention block, the nineteenth residual block, the eighteenth attention block and the third feature restoration block in sequence; the fourth upsampling sub-block includes the ninth TimeEmbedding block, the twentieth residual block, the nineteenth attention block, the twenty-first residual block, the twentieth attention block, the twenty-second residual block, the twenty-first attention block and the fourth convolutional layer in sequence. The specific structure of the TimeEmbedding block includes a first linear layer and a second linear layer cascaded in sequence.The specific structure of the residual block includes the first group normalization layer (GroupNorm), the first SiLU activation layer, and the first convolutional layer in cascade sequence; the above parts are connected in parallel to the second SiLU activation layer and the first fully connected layer in cascade sequence; the above parts are cascaded to the second group normalization layer, the third SiLU activation layer, the first Dropout layer, the second convolutional layer, the second group normalization layer, the fourth SiLU activation layer, the third convolutional layer, the third group normalization layer, the fifth SiLU activation layer, the fourth convolutional layer, the first LayerNorm layer, the first linear connection layer, the second linear connection layer, the third linear connection layer, and the second LayerNorm layer. The specific structure of the attention block includes the first group normalization layer, the first convolutional layer, and the second convolutional layer in cascade sequence. The specific structure of the feature compression block includes a convolutional layer; the specific structure of the feature restoration block includes a deconvolutional layer.
[0072] In a further embodiment, the input convolution layer of the noise prediction model, i.e., the first convolution layer, has 9 feature mapping channels for input sample feature data, 8 feature mapping channels for output feature data, a convolution filter size of 3×3, a padding of 1, and a moving stride of 1;
[0073] In a further embodiment, the parameters of each downsampling sub-block of the downsampling module are set as follows:
[0074] The first downsampling sub-block includes a first TimeEmbedding block cascaded in sequence, and the number of feature mapping channels of its output feature data is 8; the number of feature mapping channels of the output feature data of the first residual block, the first attention block, the second residual block, the second attention block, and the first feature compression block are all 8;
[0075] The second downsampling sub-block includes a second TimeEmbedding block cascaded in sequence, and the number of feature mapping channels of its output feature data is 8; the number of feature mapping channels of the output feature data of the third residual block, the third attention block, the fourth residual block, the fourth attention block, and the second feature compression block are all 16;
[0076] The third downsampling sub-block includes a third TimeEmbedding block cascaded in sequence, and the number of feature mapping channels of the output feature data of the fifth residual block, the fifth attention block, the sixth residual block, the sixth attention block and the third feature compression block are all 32;
[0077] The fourth downsampling sub-block includes a fourth TimeEmbedding block cascaded in sequence, and the number of feature mapping channels of its output feature data is 32; the number of feature mapping channels of the output feature data of the seventh residual block, the seventh attention block, the eighth residual block and the eighth attention block are all 64.
[0078] In a further embodiment, the parameters of the deep feature conversion module are set as follows:
[0079] The deep feature conversion module in the noise prediction model includes the fifth TimeEmbedding block, the ninth residual block, the ninth attention block and the tenth residual block, which are cascaded in sequence, and the number of feature mapping channels of their output feature data is 64.
[0080] In a further embodiment, the parameters of each upsampling sub-block of the upsampling module are set as follows:
[0081] The first upsampling sub-block includes the sixth TimeEmbedding block cascaded in sequence, and the number of feature mapping channels of its input feature data is 64. The eleventh residual block, the number of feature mapping channels of its input feature data is 128, and the number of feature mapping channels of its output feature data is 64; the tenth attention block, the number of feature mapping channels of its input feature data is 64, and the number of feature mapping channels of its output feature data is 64; the twelfth residual block, the number of feature mapping channels of its input feature data is 128, and the number of feature mapping channels of its output feature data is 64; the eleventh attention block, the number of feature mapping channels of its input feature data is 64, and the number of feature mapping channels of its output feature data is 64; the thirteenth residual block, the number of feature mapping channels of its input feature data is 72, and the number of feature mapping channels of its output feature data is 32; the twelfth attention block and the first feature restoration block, the number of feature mapping channels of their input feature data is 32, and the number of feature mapping channels of their output feature data is 32;
[0082] The second upsampling sub-block includes the seventh TimeEmbedding block cascaded in sequence, the number of feature mapping channels of its input feature data is 32, and the number of feature mapping channels of its output feature data is 32; the fourteenth residual block, the number of feature mapping channels of its input feature data is 64, and the number of feature mapping channels of its output feature data is 32; the thirteenth attention block, the number of feature mapping channels of its input feature data is 32, and the number of feature mapping channels of its output feature data is 32; the fifteenth residual block, the number of feature mapping channels of its input feature data is 64, and the number of feature mapping channels of its output feature data is 32; the fourteenth attention block, the number of feature mapping channels of its input feature data is 32, and the number of feature mapping channels of its output feature data is 32; the sixteenth residual block, the number of feature mapping channels of its input feature data is 48, and the number of feature mapping channels of its output feature data is 16; the fifteenth attention block and the second feature restoration block, the number of feature mapping channels of its input feature data is 16, and the number of feature mapping channels of its output feature data is 16;
[0083] The third upsampling sub-block includes the eighth TimeEmbedding block cascaded in sequence, the number of feature mapping channels of its input feature data is 16, and the number of feature mapping channels of its output feature data is 16; the seventeenth residual block, the number of feature mapping channels of its input feature data is 32, and the number of feature mapping channels of its output feature data is 16; the sixteenth attention block, the number of feature mapping channels of its input feature data is 16, and the number of feature mapping channels of its output feature data is 16; the eighteenth residual block, the number of feature mapping channels of its input feature data is 32, and the number of feature mapping channels of its output feature data is 16; the seventeenth attention block, the number of feature mapping channels of its input feature data is 16, and the number of feature mapping channels of its output feature data is 16; the nineteenth residual block, the number of feature mapping channels of its input feature data is 24, and the number of feature mapping channels of its output feature data is 8; the eighteenth attention block and the third feature restoration block, the number of feature mapping channels of their input feature data is 8, and the number of feature mapping channels of their output feature data is 8;
[0084] The fourth upsampling sub-block includes a ninth TimeEmbedding block cascaded in sequence, the number of feature mapping channels of its input feature data is 8, and the number of feature mapping channels of its output feature data is 8; the twentieth residual block, the number of feature mapping channels of its input feature data is 16, and the number of feature mapping channels of its output feature data is 8; the nineteenth attention block, the number of feature mapping channels of its input feature data is 8, and the number of feature mapping channels of its output feature data is 8; the twenty-first residual block, the number of feature mapping channels of its input feature data is 16, and the number of feature mapping channels of its output feature data is 8; the twentieth attention block, the number of feature mapping channels of its input feature data is 8, and the number of feature mapping channels of its output feature data is 8; the twenty-second residual block, the number of feature mapping channels of its input feature data is 16, and the number of feature mapping channels of its output feature data is 8; the twenty-first attention block, the number of feature mapping channels of its input feature data is 8, and the number of feature mapping channels of its output feature data is 8.
[0085] In a further embodiment, the output convolution layer of the noise prediction network model, i.e., the last convolution layer, has a feature mapping channel number of 8 for input sample feature data, a feature mapping channel number of 9 for output feature data, a convolution filter size of 3×3, a padding of 1, and a moving stride of 1;
[0086] In a further embodiment, the specific structure of each TimeEmbedding block includes a first linear layer and a second linear layer cascaded in sequence. The specific structure of each residual block includes a first group normalization layer (GroupNorm), a first SiLU activation layer, and a first convolutional layer cascaded in sequence; the above parts are connected in parallel to the second SiLU activation layer and the first fully connected layer cascaded in sequence; the above parts are cascaded to the second group normalization layer, the third SiLU activation layer, the first Dropout layer, the second convolutional layer, the second group normalization layer, the fourth SiLU activation layer, the third convolutional layer, the third group normalization layer, the fifth SiLU activation layer, the fourth convolutional layer, the first LayerNorm layer, the first linear connection layer, the second linear connection layer, the third linear connection layer, and the second LayerNorm layer. The specific structure of each attention block includes a first group normalization layer, a first convolutional layer, and a second convolutional layer cascaded in sequence. The number of feature mapping input and output channels of the feature data between specific layers within each part must be connected without conflict, and the number of feature mapping channels of the first layer of input feature data must be the same as the number of feature mapping channels of the input feature data of the module in the above structure, and the number of feature mapping channels of the last layer of output feature data must be the same as the number of feature mapping channels of the output feature data of the module in the above structure.
[0087] In this embodiment, a small amount of training set samples of each type of ground objects are used to train the Diffusion data augmentation model to obtain a trained Diffusion data augmentation model, which specifically includes:
[0088] Initialize the time steps (Timesteps), signal-to-noise ratio (SNR), and predefined noise factor (beta) required in the forward diffusion and reverse diffusion processes; randomly select K groups of training sample features from the training set to be augmented with replacement, where the K groups of training sample features are Where k = 1, 2, ..., K; a category generation model is trained separately for each type of ground feature sample to ensure that the generated samples have clear label attributes;
[0089] The batch training feature set is used to gradually add noise to the image using the preset time step and noise factor, and then the original input feature matrix of each single sample and the noisy image of each time step are combined into an image feature matrix sequence as the input feature data of the noise prediction model input layer; the time embedding information and the noisy image feature matrix sequence of adjacent time steps are combined as the input of the first downsampling sub-block, and deep feature extraction is continuously performed through the first residual block, the first attention block, the second residual block and the second attention block in sequence, and finally the first compressed feature set is output by the convolution layer in the first feature compression block in the first downsampling sub-block; the first compressed feature set output by the first downsampling sub-block The second down-sampling sub-block is combined with the time embedding information as the input of the second down-sampling sub-block, and is sequentially passed through the third residual block, the third attention block, the fourth residual block, and the fourth attention block for continuous deep feature extraction. Finally, the convolution layer in the second feature compression block in the second down-sampling sub-block outputs a second compressed feature set; the second compressed feature set output by the second down-sampling sub-block is combined with the time embedding information as the input of the third down-sampling sub-block, and is sequentially passed through the fifth residual block, the fifth attention block, the sixth residual block, and the sixth attention block for continuous deep feature extraction. Finally, the convolution layer in the third feature compression block in the third down-sampling sub-block outputs a third compressed feature set; the third down-sampling sub-block The output of the third compression feature set is combined with the time embedding information as the input of the fourth downsampling sub-block, and is successively passed through the seventh residual block, the seventh attention block, the eighth residual block and the eighth attention block for continuous deep feature extraction, and finally a fully compressed data feature set is output; the fully compressed data feature set is combined with the time embedding information as the input of the deep feature conversion module, and is passed through the ninth residual block, the ninth attention block and the tenth residual block to output a deep transformation feature set; the deep transformation feature set output by the deep feature conversion module is combined with the time embedding information as the input of the first upsampling sub-block, and is successively passed through the eleventh residual block, the tenth attention block, the twelfth residual block, the tenth The first attention block, the thirteenth residual block, the twelfth attention block and the block features of the fourth down-sampling sub-block are combined, and finally the first restored feature set is output by the deconvolution layer in the first feature restoration block in the first up-sampling sub-block; the first restored feature set output by the first up-sampling sub-block is combined with the time embedding information as the input of the second up-sampling sub-block, and sequentially passes through the fourteenth residual block, the thirteenth attention block, the fifteenth residual block, the fourteenth attention block, the sixteenth residual block, the fifteenth attention block and the block features of the third down-sampling sub-block, and finally the second restored feature set is output by the deconvolution layer in the second feature restoration block in the second up-sampling sub-block;The second restored feature set output by the second upsampling sub-block is combined with the time embedding information as the input of the third upsampling sub-block, and passes through the seventeenth residual block, the sixteenth attention block, the eighteenth residual block, the seventeenth attention block, the nineteenth residual block, the eighteenth attention block, and the nineteenth residual block. The block is combined with the features of each block of the second downsampling sub-block, and finally the third restored feature set is output by the deconvolution layer in the third feature restoration block in the third upsampling sub-block; the third restored feature set output by the third upsampling sub-block is combined with the time embedding information as the input of the fourth upsampling sub-block, and passes through the twentieth residual block, the nineteenth attention block, the twenty-first residual block, the twentieth attention block, the twenty-second residual block, the twenty-first attention block, and the twenty-first attention block, and the block features of each downsampling sub-block are combined, and finally the final predicted noise distribution feature set with the same dimension as the input feature set is output by the last convolution layer in the upsampling module. ;
[0090] In a further embodiment, for the Diffusion data augmentation model, the number of steps T of the noise addition process is determined according to the initially set time step. For the input batch sample feature matrix, the single sample feature and its probability distribution can be expressed as x0~q(x0), and the noise intensity β required to be added per t step is determined according to the predefined noise factor β. t , the input training sample features are denoised, and the sample denoising process at each time step can be expressed as The auxiliary parameter α t =1-β t ;x t is the noised sample at time step t; is the Gaussian noise sampling value, and N is the Gaussian distribution function. Based on this, the corresponding probability distribution change of each time step sample can be used It can be seen that the entire forward process is a posterior estimation, where q(x t |x t-1 ) represents the posterior probability; Represents x t Subject to the mean and variance given by x t-1 and β t The Gaussian distribution determined by I is the noise term that follows the standard normal distribution. The inverse diffusion process requires the posterior probability q(x t |x t-1 ), the inverse conditional probability q(x t-1 |x t ), and then continue to add noise sample features x t The initial sample feature x0 is restored, and finally the Diffusion model, i.e. the neural network, continuously fits the conditional probability q(x t-1 |x t) distribution, and obtain the corresponding characteristic change process of each time step sample. The specific mathematical derivation will not be repeated. Finally, the change in sample characteristics reflected in this probability distribution inversion process can be mathematically deduced to be expressed as The noise parameter σ t 2 =β t ;x t is the denoised sample of the corresponding time step in the inverse diffusion process; θ (x t ,t) is the learnable function expressed by the noise prediction model, that is, the noise predicted by the model; when time step t>1, is the Gaussian noise sampling value (when t≤1, z=0). The above single sample forward process is extended to the entire input training sample feature set, and the training sample feature matrix sequence X={x 1t ,x 2t ,x 3t ...x kt ,}, and then input it into the noise prediction model to predict the noise distribution added to each time step sample. The noise distribution predicted by the model is expressed as θ (x t ,t), then by formula It can realize the step-by-step reverse diffusion process, and further realize the gradual restoration of realistic samples X from noise. t-1 ={x 1t-1 ,x 2t-1 ,x 3t-1 ...x kt-1 ,}.
[0091] In a further embodiment, according to the training label set corresponding to the batch training feature set of the data set to be augmented, each type of ground object is trained with the corresponding training feature set for multiple Diffusion data augmentation models. Each model will form an image feature matrix sequence based on the original input feature matrix of each type of single sample and the noisy image at each time step, and input it into the noise prediction model. The noise prediction model predicts the noise distribution parameters added at each step according to the image feature matrix sequence. The weight parameter set of the noise prediction model is adjusted according to the predicted noise distribution parameter matrix and the actual noise added to the image feature matrix at each time step determined by the initially set noise factor, time step and signal-to-noise ratio to obtain a trained Diffusion data augmentation model, which specifically includes:
[0092] According to the predicted noise matrix and the actual added noise, the mean square error loss is calculated using the average of the sum of squares of the errors of the two. In order to make the predicted noise as close as possible to the actual added noise, the noise distribution matching loss is calculated using the exact feature distribution matching (EFDM) according to the predicted noise matrix and the actual added noise. The mean square error loss value and the noise distribution matching loss value are added to obtain the total loss value. The gradient descent change of the total loss value is used to determine whether the noise prediction network converges. If so, stop training; otherwise, adjust the weight parameter set and conduct the next training until the total loss value no longer decreases or the number of trainings reaches the preset training number threshold.
[0093] In a further embodiment, the exact feature distribution matching (EFDM) calculation specifically includes:
[0094] The predicted noise x:τ=(τ1 τ2 τ3 … τ n ) and the actual added noise y:κ=(κ1 κ2 κ3 … κ n ) is sorted by value. After the vector sequence is sorted, the corresponding elements of x and y are represented by the subscripts predicted noise row vector τ and actual added noise row vector κ. The subscript n above represents the corresponding row vector number. According to the formula The predicted noise x is matched with the actual added noise y in one dimension by an exact feature distribution, where and It is the result of arranging the row vectors of x and y in ascending order according to their values; <·> indicates that the gradient stops operating; Represents the value of the row vector element after matching, and finally passes The distribution matching loss between the predicted noise at adjacent time steps and the actual added noise is calculated, and the loss function of the final noise prediction model is expressed as Where λ is the initial distribution matching loss weight.
[0095] In a further embodiment, adjusting the noise prediction model weight parameter set specifically includes:
[0096] Obtain the partial derivative of the total loss value with respect to each layer of weight parameters in the noise prediction model weight parameter set; update the noise prediction model weight parameters by back propagation according to the gradient descent method and the partial derivative values to obtain updated noise prediction model weight parameters; establish an updated noise prediction model weight parameter set based on all updated noise prediction model weight parameters.
[0097] In order to extract discriminable feature information from a mixed data sample feature set of polarimetric SAR image generated data and real data, the convolutional neural network model uses the output of a shallow feature extraction module to fuse features with the input data, and then uses a deep feature extraction module to extract accurate classification information. In a further embodiment, the feature extraction module in the convolutional neural network model for classification includes a shallow feature extraction block and a deep feature extraction block, wherein the shallow feature extraction block includes a first convolutional layer, a first ReLU activation layer, a second convolutional layer, a second ReLU activation layer, a third convolutional layer, a first BN batch normalization layer and a third ReLU activation layer that are cascaded in sequence; wherein the deep feature extraction block includes a fourth convolutional layer, a second BN batch normalization layer, a fourth ReLU activation layer, a fifth convolutional layer, a third BN batch normalization layer, a fifth ReLU activation layer, a first maximum pooling layer, a first global average pooling layer and a first fully connected layer that are cascaded in sequence.
[0098] In a further embodiment, the parameters of the shallow feature extraction module are set as follows: the first convolution layer, the number of feature mapping channels of the input mixed sample feature data is 9, the number of feature mapping channels of the output feature data is 32, the size of the convolution filter is 3×3, the padding is 1, and the moving stride is 1; the first ReLU activation layer, the number of feature mapping channels of the output data is 32; the second convolution layer, the number of feature mapping channels of the output feature data is 32, the size of the convolution filter is 3×3, the padding is 1, and the moving stride is 1; the second ReLU activation layer, the number of feature mapping channels of the output data is 32; the third convolution layer, the number of feature mapping channels of the output feature data is 32, the size of the convolution filter is 3×3, the padding is 1, and the moving stride is 1; the first BN batch normalization layer and the third ReLU activation layer, the number of feature mapping channels of the output data is 3 2; wherein, the deep feature extraction block includes a fourth convolutional layer cascaded in sequence, the number of feature mapping channels of its input fusion feature data is 41, the number of feature mapping channels of its output feature data is 32, the size of the convolution filter is 3×3, the padding is 1, and the moving stride is 1; the second BN batch normalization layer and the fourth ReLU activation layer, the number of feature mapping channels of its output data is 32; the fifth convolutional layer, the number of feature mapping channels of its output feature data is 64, the size of the convolution filter is 3×3, the padding is 1, and the moving stride is 1; the third BN batch normalization layer and the fifth ReLU activation layer, the number of feature mapping channels of its output data is 64; the first maximum pooling layer, the size of its pooling kernel is 2×2, and the moving stride is 1; the first global average pooling layer, the size of its output feature map is 1×1; the first fully connected layer, the number of feature map maps of its output feature data is 5.
[0099] In a further embodiment, the number of feature maps of the input layer output feature data is 9.
[0100] In a further embodiment, the number of feature maps of the feature data output by the output layer of the Softmax classifier is 5, the number of classification categories.
[0101] In this embodiment, the trained convolutional neural network model is used to classify the polarimetric SAR image to be classified to obtain the classification and recognition result of the ground object of the polarimetric SAR image to be classified, which specifically includes: converting the complex-valued feature matrix block of the polarimetric SAR image to be classified into a 9-dimensional real feature matrix and inputting it into the input layer of the trained convolutional neural network model; using a shallow feature extraction module to extract discriminable real-valued features from the real-valued feature matrix block of the polarimetric SAR image to be classified to obtain discriminable shallow features, superimposing the shallow features with the sample input in terms of dimension to achieve feature fusion of the shallow feature matrix and the sample input feature matrix; inputting the fused features into a deep feature extraction module to obtain the deep feature representation of the training sample; and using the output layer of the Softmax classifier to classify, identify and predict the discriminable features to obtain the classification and recognition result of the ground object of the polarimetric SAR image to be classified.
[0102] Specifically, the complex-valued feature matrix block of the polarimetric SAR image to be classified is the same as the complex-valued feature matrix block of the polarimetric SAR image used to make the initial data set to be augmented, and the construction method is the same as the construction method of the feature matrix block of the training set samples.
[0103] In a further embodiment, the mixed data sample discriminable feature set is classified and predicted using the Softmax classifier output layer to obtain a predicted label set, specifically including: using the deep feature representation of the training sample obtained by the deep feature extraction module as the discriminable feature set as the input feature data of the Softmax classifier output layer, calculating the predicted label obtained by the Softmax classifier output layer for each training sample feature in the batch training feature set, and forming the predicted label set with the predicted outputs corresponding to all the training sample features in the batch training sample feature set; wherein, In the formula, p k represents the output prediction of the Softmax classifier output layer of the k-th training sample feature, and Softmax(·) is the Softmax function.
[0104] The effect of the present invention can be further illustrated by the following simulation.
[0105] Simulation Method
[0106] (1) Using a data set consisting of pure real sample data to train the classification model and finally classify the polarimetric SAR image objects; (2) Using the method described in the present invention, that is, the PolSAR image classification method based on Diffusion data augmentation, using augmented data sets of different proportions reconstructed from generated data samples and a small amount of real data samples to train the classification model and finally classify the polarimetric SAR image objects;
[0107] Simulation content and simulation results
[0108] The polarimetric SAR image selected in the simulation experiment is a polarimetric SAR image with a real ground feature marker map attached, such as Figure 2 As shown in the figure, it is a composite image of polarimetric SAR data of the San Francisco Bay Area acquired by China's satellite-borne C-band GF-3 system in 2008. The polarimetric SAR image mainly includes five types of land cover: forest, water, high-density urban area, low-density urban area and developing urban area. The types of land cover are represented by {1, 2, 3, 4, 5} respectively. Figure 2 The real feature marking map is as follows Figure 3 As shown, the size of the real object mark map is the same as that of the polarimetric SAR image. In the real object mark map, the value of the pixel point with the determined object category is the object category number, and such pixel point is called a marked pixel point, and the value of the pixel point with the uncertain object category is 0.
[0109] In simulation experiment 1, 550 real sample data of each category are used to train the convolutional neural network model to achieve polarimetric SAR image object classification. The classification results are as follows: Figure 4 Among them, the ground object classification accuracy and overall classification accuracy are shown in Table 1.
[0110] Simulation experiment 2, using the method of the present invention from Figure 2 The data set uses 275 samples per class to train the data augmentation model. The augmented data set is reconstructed into 550 mixed samples per class (mixing ratio is 1:1) using the augmented model to classify the residual polarization SAR images. The classification results are shown in Figure 5 Among them, the ground object classification accuracy and overall classification accuracy are shown in Table 1.
[0111] Simulation experiment 3, using the method of the present invention from Figure 2 The data set uses 50 samples per class to train the data augmentation model. The augmented data set is reconstructed into 550 mixed samples per class (mixing ratio is 10:1) by using the augmented model to classify the residual polarization SAR images. The classification results are shown in Figure 6 Among them, the ground object classification accuracy and overall classification accuracy are shown in Table 1.
[0112] Table 1
[0113]
[0114]
[0115] As can be seen from Table 1, in the scenario of training the classification model with the same number of training samples, when the number of generated samples in the augmented dataset generated by the present invention is 1:1 with the number of real samples, the overall classification accuracy of the model trained by using the augmented dataset compared with the real sample dataset is only reduced by about 3%, but in A 5 The classification accuracy of developing urban areas increased by about 3.5%; the number of real samples used in the augmented dataset was further reduced. When the ratio of the number of real samples to the number of generated samples in the generated augmented dataset reached 1:10, the overall classification accuracy of the model trained by using the augmented dataset compared with the real sample dataset decreased by about 7%, and A 2 The classification accuracy of water category can still be maintained at a similar level; based on the experimental results in Table 1, the method of the present invention successfully applies the generative data augmentation method to the classification of polarimetric SAR images, and provides an effective solution to the problem of deep learning methods relying on massive samples in the application of fine classification and recognition of polarimetric SAR images.
[0116] The above are only preferred specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A polarimetric SAR image classification method based on a Diffusion model, characterized in that: include: Acquiring polarimetric SAR data, wherein the polarimetric SAR data includes polarimetric SAR images and corresponding ground object real marking maps; Based on polarimetric SAR data, the data set to be augmented is obtained through data selection algorithm; Constructing a Diffusion data augmentation model, wherein the Diffusion data augmentation model is trained by using a training set to be augmented, and pseudo data is generated by using the trained Diffusion data augmentation model; Reconstructing and generating an augmented data set based on the data set to be augmented and the pseudo data; Constructing a convolutional neural network, training the convolutional neural network by augmenting the data set, and generating a trained convolutional neural network; The feature data corresponding to the polarimetric SAR image to be classified is classified through the trained convolutional neural network to generate the ground object category prediction classification result of the polarimetric SAR image to be classified; The process of obtaining the data set to be augmented includes: Acquire a complex-valued feature matrix of the polarization SAR image according to the polarization SAR image, wherein the complex-valued feature matrix includes a complex-valued feature vector of each pixel; Generate labeled data based on the real labeled map of the ground objects, construct the initial ground truth matrix, classify and annotate the initial ground truth matrix at the pixel level based on the labeled data, and generate the ground truth matrix; According to the coordinate values of the annotated pixels in the surface truth matrix, the complex-valued eigenvector at the corresponding coordinate value in the complex-valued feature matrix is obtained as the first complex-valued eigenvector, and the first complex-valued eigenvector is used as the center point, and several complex-valued eigenvectors are selected around as the second complex-valued eigenvectors, and the first complex-valued eigenvector and the second complex-valued eigenvector are combined into a complex-valued feature matrix block, and the upper triangular elements in the complex-valued eigenvector in the complex-valued feature matrix block are separated by real and imaginary parts to form a real-valued eigenvector, and a high-dimensional real-valued feature matrix is generated based on the real-valued eigenvector, and the surface truth matrix is divided into blocks according to the pixel coordinates in the high-dimensional real-valued feature matrix, and the ground object category with the largest proportion of the high-dimensional real-valued feature matrix is obtained from the divided surface truth matrix as label information, and easily confused samples are screened for removal, and the label information and the high-dimensional real-valued feature matrix block are correspondingly combined to generate a training set to be augmented; The process of acquiring the complex-valued characteristic matrix of the polarimetric SAR image includes: The polarization coherence matrix of each pixel of the polarization SAR image is obtained, the mean and variance of each element in the polarization coherence matrix of each pixel are calculated, and each element in the polarization coherence matrix of each pixel is normalized according to the mean and variance to generate a complex-valued eigenvector of each pixel, and further generate a complex-valued eigenmatrix of the polarization SAR image.
2. The method according to claim 1, characterized in that: The process of generating pseudo data through the trained Diffusion data augmentation model includes: a forward diffusion process and a reverse diffusion process; wherein the forward diffusion process includes: initializing the time step, the signal-to-noise ratio and the noise factor, and performing step-by-step noise processing on the training sample features according to the time step, the signal-to-noise ratio and the noise factor to generate a training sample feature matrix sequence at each time step; the reverse diffusion process includes: performing noise prediction on the training sample feature matrix sequence through a noise prediction model, and performing step-by-step denoising processing on the training sample feature matrix sequence according to the noise prediction result to generate pseudo samples.
3. The method according to claim 2, characterized in that: The noise prediction model comprises a downsampling module, a deep feature transformation module and an upsampling module connected in sequence; The downsampling module includes four sequentially connected downsampling sub-blocks, wherein the downsampling sub-block includes a sequentially connected TimeEmbedding block, a residual block, an attention block, a residual block, a second attention block and a feature compression block; The deep feature transformation module includes a TimeEmbedding block, a residual block, an attention block and a residual block cascaded in sequence; The upsampling module includes four sequentially connected upsampling sub-blocks, wherein the upsampling sub-blocks include a TimeEmbedding block, a residual block, an attention block, a residual block, an attention block, a residual block, an attention block, and a feature restoration block that are sequentially connected; The TimeEmbedding block includes a first linear layer and a second linear layer; The residual block includes a first structure, the first structure includes a group normalization layer, a SiLU activation layer and a convolution layer connected in sequence, wherein two ends of the first structure are connected in parallel with a SiLU activation layer and a fully connected layer connected in sequence, and the parallel structure is subsequently connected with a group normalization layer, a SiLU activation layer, a Dropout layer, a convolution layer, a group normalization layer, a SiLU activation layer, a convolution layer, a group normalization layer, a SiLU activation layer, a convolution layer, a LayerNorm layer, a linear connection layer, a linear connection layer, a linear connection layer and a LayerNorm layer connected in sequence; The attention block includes a group normalization layer, a convolution layer and a convolution layer connected in sequence; the feature compression block includes a convolution layer; the specific structure of the feature restoration block includes a deconvolution layer.
4. The method according to claim 1, characterized in that: A Diffusion data augmentation model is trained for each land object category to generate pseudo data for the individual land object category.
5. The method according to claim 3, characterized in that: The noise prediction module adopts a total loss function group of a weighted sum of a mean square error loss value and a noise distribution matching loss value as a loss function, wherein the loss function is calculated according to the noise prediction result and the actual noise during the training process, and the weight of the noise prediction model is updated according to the loss function until the loss function converges or the number of training times reaches a threshold, and the training of the noise prediction module is completed, wherein the noise distribution matching loss value is calculated using an accurate feature distribution matching method.
6. The method according to claim 1, characterized in that: The convolutional neural network includes an input layer, a feature extraction module and a Softmax classifier output layer connected in sequence; wherein the feature extraction module includes a shallow feature extraction block and a deep feature extraction block, the shallow feature extraction block includes a convolutional layer, a ReLU activation layer, a convolutional layer, a ReLU activation layer, a convolutional layer, a BN batch normalization layer and a ReLU activation layer connected in sequence; the deep feature extraction block includes a convolutional layer, a BN batch normalization layer, a ReLU activation layer, a convolutional layer, a BN batch normalization layer, a ReLU activation layer, a maximum pooling layer, a global average pooling layer and a fully connected layer connected in sequence.
7. The method according to claim 1, characterized in that: The feature data corresponding to the polarization SAR image to be classified adopts the corresponding high-dimensional real-valued feature matrix.
Citation Information
Patent Citations
Polarized SAR image classification method based on deep complex value full convolutional neural network
CN110728324A
SAR (Synthetic Aperture Radar) recognition database sample attitude expansion method based on depth condition diffusion network
CN116258874A
Image classification method and device
WO2018010434A1
