Small-sample urban remote sensing image information extraction method based on meta-learning and attention
By using meta-learning and attention synergy mechanisms in small-sample urban remote sensing image information extraction, combined with the 'spatio-temporal spectrum angle' attention model, the problem of low accuracy of small-sample area information extraction in the existing technology is solved, and high-precision urban Remote sensing information extraction.
Patent Information
- Application Number
- CN202111654351.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-30
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2041-12-30
AI Technical Summary
Existing small-sample urban remote sensing image information extraction technology has the problem of weak generalization ability, making it difficult to obtain accurate urban remote sensing information. Especially in high-resolution remote sensing images, deep learning algorithms require a large number of parameters and a large-scale image knowledge base, which limits its application in small sample areas.
A small-sample urban high-resolution remote sensing image information extraction method based on meta-learning and attention collaboration mechanisms is adopted. By constructing a small-sample urban remote sensing information pre-training model and a 'spatial-temporal spectrum angle' attention model, combined with meta-learning and attention mechanisms, Realize full mining of small sample information and feature optimization.
It improves the accuracy of extracting typical urban feature information from small samples, overcomes the problem of weak generalization ability, and can obtain high-precision urban remote sensing information under small sample conditions.
Smart Images

Figure CN114283345B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of remote sensing image information extraction, and designs a small sample city remote sensing image information extraction method based on meta-learning and attention coordination mechanism. Background Art
[0002] As an important place for human survival, activities and production, cities are facing the rapid development of urbanization. Ecological function degradation, environmental pollution, frequent extreme weather events and other "urban diseases" seriously threaten the sustainable development of cities. With the rapid development of remote sensing technology, especially domestic remote sensing satellite technology, China has the data conditions to independently obtain high-resolution urban geographic information around the world. However, due to the level of intelligent interpretation of remote sensing images and the complex scenes of cities, the extraction of urban features from high-resolution remote sensing images still faces huge challenges.
[0003] Deep learning networks have powerful nonlinear representation capabilities and high image recognition capabilities, and have obvious advantages in extracting high-resolution image information. However, deep learning algorithms usually require a large number of parameters and a large-scale image knowledge base. Restricted by factors such as geographical location and weather, it is difficult to label large-scale and large-volume training samples and the labor cost is high. For some urban areas with small samples, deep learning algorithms are prone to weak generalization capabilities, which is not conducive to obtaining accurate urban remote sensing information. Summary of the invention
[0004] In view of the shortcomings of the existing small sample city remote sensing image information extraction technology, the present invention aims to provide a new small sample city high-resolution remote sensing image information extraction model, and realize a small sample city high-resolution remote sensing image information extraction method based on meta-learning and attention coordination mechanism.
[0005] The technical solution of the present invention provides a method for extracting information from small sample urban remote sensing images based on meta-learning and attention, comprising the following steps:
[0006] Step 1: construct a pre-training model for small sample urban remote sensing information. In the pre-training stage, the feature information of the existing samples is fully learned by pre-training the network on the small sample set to obtain the initial feature parameters of the small sample set and the deep convolutional network backbone;
[0007] Step 2: construct a "space-time spectral angle" attention model to enable the network to focus on important "space-time spectral angle" information during training, suppress noise and redundant information, and improve the classification performance of the model;
[0008] Step 3: Establish a meta-learning and attention coordination mechanism and realize small sample urban remote sensing information extraction, including parallel associative learning of the feature parameters obtained by the “space-time spectral angle” attention model and the initial feature parameters, and introduce a regularizer to minimize the cross entropy and structural risk, so as to fully mine small sample information.
[0009] Moreover, in step 1, the small sample urban remote sensing information pre-training model is a network structure composed of a convolutional layer, a pooling layer and a fully connected layer. There are 5 segments of convolutional networks, each segment has 2 or 3 convolutional layers, and a maximum pooling layer is connected to the end of each segment to reduce the image size; the number of convolution kernels in each segment is the same, and the closer to the fully connected layer, the more convolution kernels there are.
[0010] Moreover, the convolutional network in the small sample urban remote sensing information pre-training model is implemented as follows:
[0011] The first convolutional network consists of two convolutional layers and one maximum pooling layer, with 64 output channels and an output size of 112×112×64;
[0012] The second convolutional network consists of two convolutional layers and one maximum pooling layer, with 128 output channels and an output size of 56×56×128;
[0013] The third convolutional network consists of three convolutional layers and one maximum pooling layer, with 256 output channels and an output size of 28×28×256;
[0014] The fourth convolutional network consists of three convolutional layers and one maximum pooling layer, with 512 output channels and an output size of 14×14×512;
[0015] The fifth convolutional network consists of three convolutional layers and one maximum pooling layer, with 512 output channels and an output size of 7×7×512;
[0016] The output result of the fifth convolutional network is flattened into a one-dimensional vector, and then input into the first fully connected layer and the corresponding Dropout layer, and then into the second fully connected layer and the corresponding Dropout layer; finally, it is input into the third fully connected layer, and the output node of the third fully connected layer is 1000. The softmax function is used to obtain the classification output probability and the classification result.
[0017] Moreover, in the “space-time spectral angle” attention model, for the three-dimensional input X, firstly, the maximum pooling and average pooling along the channel dimension are used to obtain two global feature descriptions after feature compression; then, the weights X of the temporal feature, spatial feature, spectral feature and angle feature are obtained through the hard-sigmoid gate mechanism. SS∈(0,1); Finally, the original input X is combined with the weight X SS multiply;
[0018] Through continuous learning during the training process, the network has a corresponding weight close to 1 for important “space-time spectral angle” information, and a corresponding weight close to 0 for unimportant or negatively impacted noise and redundant information.
[0019] Moreover, the “space-time spectrum angle” eigenvector is calculated according to the following formula,
[0020]
[0021]
[0022]
[0023]
[0024] In the formula, k′ i represents the final feature center of the i-th category, k i represents the category feature center of the i-th category at the initial time, represents the gradient, represents the class feature center of the i-th class after gradient optimization, j is the number of unlabeled samples, l is the number of labeled samples, e j,l are the features corresponding to labeled samples and unlabeled samples, sum() represents the sum of the values in brackets, v i is the characteristic center of the probability distribution of the i-th class, v i,j The probability distribution feature center of the i-th class is updated by the class probability vector of j i-th class samples, n represents the total number of samples, C is the number of classes in the data set, e is the initial feature vector, p is the "space-time spectrum angle" feature vector, P j,l is the predicted probability corresponding to the lth class of labeled samples and the jth class of unlabeled samples, η represents the update coefficient, and 1[y=i] represents the indicator function.
[0025] The present invention overcomes the problem of poor generalization ability of existing remote sensing image information extraction methods, and obtains more accurate information extraction effect by establishing a meta-learning and attention coordination mechanism.
[0026] Compared with the existing methods, the advantages and positive effects of the present invention are as follows: the existing remote sensing image information methods based on convolutional neural networks require a large number of sample supports. When the number of samples is insufficient, the generalization ability is weak and it is difficult to meet the needs of intelligent extraction of urban feature information with small samples. The advantage of the present invention is that by establishing a meta-learning and attention coordination mechanism, the accuracy of extracting typical urban feature information with small samples is higher. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 This is a structural diagram of high-resolution remote sensing image information extraction for a small sample city according to an embodiment of the present invention.
[0028] Figure 2 A schematic diagram of the network structure of an embodiment of the present invention is Figure 1 A local enlarged view of the corresponding part. DETAILED DESCRIPTION
[0029] In order to facilitate ordinary technicians in the field to understand and implement the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the implementation examples described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0030] To address this problem, the present invention provides a method for extracting information from high-resolution remote sensing images of small sample cities based on meta-learning and attention coordination mechanism. The feature parameters obtained by the "space-time spectral angle" attention model and the initial feature parameters are associated with each other to obtain optimized feature parameters, thereby fully mining the small sample information and obtaining the typical urban element information in the high-resolution remote sensing images of small sample cities.
[0031] The environment used in the embodiment of the present invention is as follows: the server's CPU is Intel Xeon E5-2665, the GPU is NVIDIAGTX108Ti, the operating system is Ubuntu 16.04, and the compilation environment is PyTorch 1.1.0, Python 3.5, CUDA9.0, and CUDNN7.1.
[0032] The embodiment of the present invention is remote sensing image information extraction, and the specific process is shown in the attached Figure 1 The embodiment of the present invention provides a method for extracting information from a small sample city high-resolution remote sensing image based on meta-learning and attention coordination mechanism, which specifically includes the following steps:
[0033] Step 1: Build a small sample urban remote sensing information pre-training model
[0034] Small sample learning is proposed in response to the objective fact that there are only a small number of samples in some cities around the world. A small number of samples are used to pre-train the model of the potential problems to be solved. Therefore, the design of the pre-training model and how to train the model are particularly critical. Most models are randomly initialized at the beginning of training, which requires the model to train a large number of parameters at the same time to obtain better results. However, a large part of the parameters in the small sample extraction model belong to the feature extraction part. By pre-training a classifier model, the weight parameters of the model feature extraction part are obtained, and then these parameters are applied to the subsequent meta-learning model. In this way, during training, parameter learning can be performed for small sample information extraction without considering the learning of the feature extraction part.
[0035] Figure 2 A network structure composed of a convolutional layer, a pooling layer, and a fully connected layer is designed for the embodiment of the present invention. There are 5 convolutional networks, each of which has 2 or 3 convolutional layers. A maximum pooling layer is connected at the end of each segment to reduce the image size. The number of convolutional kernels in each segment is the same, and the closer to the fully connected layer, the more convolutional kernels there are. The preferred method for specific implementation is as follows:
[0036] The first convolution network consists of two convolution layers and a maximum pooling layer. The size of the convolution kernels of these two convolution layers is 3×3, the number of convolution kernels is 64, the stride is 1×1, and the full pixel scan is performed (these two 3×3 convolution layers in series are equivalent to one 5×5 convolution layer, but 5×5 is not used directly instead of two 3×3 because two 3×3 convolution layers have more nonlinear operations than one 5×5 convolution layer and have stronger learning ability for images); the pooling size of the maximum pooling layer is 2×2, the stride is 2×2, the number of output channels is 64, and the output size is 112×112×64.
[0037] The second convolutional network is similar to the first convolutional network, consisting of two convolutional layers and one maximum pooling layer. The difference is that the number of output channels is 128 and the output size is 56×56×128.
[0038] The third convolutional network consists of three convolutional layers and one maximum pooling layer. The three convolutional layers and the pooling layer are implemented in a similar way to the convolutional layers and pooling layers in the first and second sections, except that the number of output channels is 256 and the output size is 28×28×256.
[0039] The fourth convolutional network is similar to the third one, consisting of three convolutional layers and one maximum pooling layer. The only difference is that the number of output channels is 512 and the output size is 14×14×512.
[0040] The fifth convolutional network is exactly the same as the fourth convolutional network, consisting of three convolutional layers and one maximum pooling layer. The fifth segment has 512 output channels and an output size of 7×7×512.
[0041] The output result of the fifth convolutional network is flattened, that is, 7×7×512 is represented as a one-dimensional vector of 25088 (7×7×512=25088); then the first fully connected layer is input, the output node is 4096, the activation function is ReLu, and a Dropout layer is created. The node retention rate is 0.5 during training and 1 during prediction; then the second fully connected layer is input, and the second fully connected layer is exactly the same as the first fully connected layer, and is also followed by a Dropout layer; finally, the third fully connected layer is input, the output node of the third fully connected layer is 1000, and the softmax function is used to obtain the classification output probability and the classification result.
[0042] The advantage of this network structure is that it can fully mine the feature information of small samples and avoid over-reliance on large numbers of samples. Each convolution of this network structure has a clear task. After combining with meta-learning, the model will gain useful experience every time it performs a task. If a new task appears, with the help of accumulated experience, the model continues to learn a very small number of samples of the new task, and can quickly adapt to and master the new task, thereby realizing the intelligent extraction of typical urban feature information with the participation of a small number of samples.
[0043] First, the model parameters are initialized. The parameters of the feature extraction part are defined as Θ, which represents the parameters of the convolution layer; the parameters of the classifier part are defined as θ, which represents the parameters of the fully connected layer. Then, all the data in the training set D are used to train the classifier model, and the parameters are optimized using the gradient descent method. The calculation formula is:
[0044]
[0045] Among them, [Θ; θ] represent feature extraction parameters and classifier parameters respectively, represents the gradient, η represents the learning rate, and f([Θ;θ]) represents the convex function.
[0046] After optimization, the model learns the feature extraction parameter θ in this part, which will be saved and used in the meta-learning process in the next part. The parameter θ used for classification will be discarded.
[0047] In the pre-training stage, by pre-training the network on a small sample set, the feature information of the existing samples is fully learned to obtain the initial feature parameters of the small sample set and the backbone of the deep convolutional network.
[0048] Step 2: Build a “space-time spectral angle” attention model
[0049] Inspired by the attention mechanism in computer vision, the present invention constructs a "space-time spectral angle" attention model, which enables the network to focus on important "space-time spectral angle" information during training, suppress noise and redundant information, and improve the classification performance of the model. In the "space-time spectral angle" attention model, for the three-dimensional input X, firstly, two global feature descriptions after feature compression are obtained through maximum pooling and average pooling along the channel dimension; then, the weights X of the temporal features, spatial features, spectral features, and angular features are obtained through a hard-sigmoid gate mechanism. SS ∈(0,1). Through the continuous learning of the network during the training process, for important "space-time spectrum angle" information, the corresponding weight is close to 1; for unimportant or negatively affecting noise and redundant information, the corresponding weight is close to 0. Finally, the original input X is compared with the weight X SS Multiply. The process formula is as follows:
[0050] Y SS =F scale (σ(f 3×3×3 [F max , F avg ],X)) (2)
[0051] In the formula, F max and F avg are the maximum pooling and average pooling along the channel dimension respectively; f 3×3×3 () is a normal 3×3×3 convolution, F scale () represents the element-by-element multiplication of the original input and the weight, σ() is the hard-sigmoid activation function, which has the advantage of high computational efficiency compared to the sigmoid function. Its calculation form is as follows:
[0052]
[0053] Among them, x represents the stimulation received by the input neuron of the neural network, min() represents the output value is the minimum value in the brackets, and max() represents the output value is the maximum value in the brackets.
[0054] Step 3: Establish a meta-learning and attention coordination mechanism and realize small sample urban remote sensing information extraction
[0055] Based on the idea of meta-learning, the present invention performs parallel associative learning on the feature parameters obtained by the "space-time spectral angle" attention model and the initial feature parameters to obtain optimized feature parameters, thereby fully mining small sample information.
[0056] The present invention obtains the “space-time spectrum angle” feature vector W based on the attention mechanism b .W b The characteristic parameters are calculated according to the following formula:
[0057]
[0058]
[0059]
[0060]
[0061] In the formula, k′ i represents the final feature center of the i-th category, k i Represents the category feature center of the i-th category at the initial time, represents the gradient, represents the class feature center of the i-th class after gradient optimization, j is the number of unlabeled samples, l is the number of labeled samples, e j,l are the features corresponding to labeled samples and unlabeled samples, sum() represents the sum of the values in brackets, v i is the characteristic center of the probability distribution of the i-th class, v i,j The probability distribution feature center of the i-th class is updated by the class probability vector of j i-th class samples, n represents the total number of samples, C is the number of classes in the data set, e is the initial feature vector, p is the "space-time spectrum angle" feature vector, P j,l is the predicted probability corresponding to the lth class of labeled samples and the jth class of unlabeled samples, η represents the update coefficient, and 1[y=i] represents the indicator function. In order to treat all categories fairly and not introduce any category prior, k i Initialized to 0, v i Initialized to 1 / C.
[0062] Among them, formula (5) represents the category feature center of the i-th category finally obtained based on the "space-time spectrum angle" attention model; formula (6) represents the process of optimizing the category feature center of the i-th category according to gradient optimization; formula (7) represents the calculation process of the probability feature center of the i-th category, from which the category features are selected; formula (8) represents the statistical process of the sample "space-time spectrum angle" feature vector, from which i probability feature vectors are selected.
[0063] Furthermore, the present invention introduces a regularizer to optimize the characteristic parameter of "space-time spectrum angle". Figure 1In , the regularizer refers to a general term for methods that introduce additional information into the original model in order to prevent overfitting problems caused by insufficient training data or overly complex network structures. Information entropy is used to represent the expectation of all information, which is the sum of the probability of each possible result in the experiment multiplied by its result. Structural risk refers to constructing a function set into a sequence of function subsets, arranging each subset according to size, finding the minimum empirical risk in each subset, and considering the empirical risk and confidence range between subsets. The minimized cross entropy and structural risk are calculated by the regularizer, thereby minimizing the expected learning loss to obtain the characteristic parameters W of the optimized network. bi .
[0064] In the stage of extracting remote sensing information of small sample cities, the feature parameters W obtained by pre-training are ai and the optimized “space-time spectrum angle” characteristic parameter W bi The characteristic parameters used as the classifier in parallel can make the classifier retain the characteristics of the initial network and not forget the knowledge learned by the optimized network, so that the urban remote sensing information extraction model designed by the present invention can fully adapt to the information characteristics of a small number of samples.
[0065] The classifier uses the above-mentioned feature parameters to learn the rules of information extraction, and then extracts urban feature information from unknown data. The Cross Entropy Loss function (also known as log-likelihood loss) is usually used in classification tasks. In multi-classification tasks, the soft max activation function is often combined with the cross entropy loss function. The cross entropy represents the distance between the actual output and the expected output. The smaller the cross entropy, the closer the probability distribution of the two. Assume that probability distribution p is the expected output, probability distribution q is the actual output, H(p,q) is the cross entropy, and the calculation formula is:
[0066]
[0067] Where T is the number of categories, p(x) is the true probability of an event, q(x) is the predicted probability of an event, and j is the number of events.
[0068] In the present invention, the accuracy rate will be reduced due to the small and uneven samples. It is preferred to use the Focal Loss loss function instead of the Cross Entropy Loss cross entropy loss function.
[0069] FL(p)=-a t [1-p(x)] γ log p(x) (10)
[0070] In the formula, a t It is used to balance the number of samples, and γ is equivalent to a penalty term, which is used to control the mining of difficult samples.
[0071] In specific implementation, the method proposed in the technical solution of the present invention can be implemented by technical personnel in this field using computer software technology to realize automatic operation process. System devices for implementing the method, such as computer-readable storage media storing the corresponding computer program of the technical solution of the present invention and computer equipment running the corresponding computer program, should also be within the scope of protection of the present invention.
[0072] In some possible embodiments, a small sample urban remote sensing image information extraction system based on meta-learning and attention is provided, including a processor and a memory, the memory is used to store program instructions, and the processor is used to call the stored instructions in the memory to execute the small sample urban remote sensing image information extraction method based on meta-learning and attention as described above.
[0073] In some possible embodiments, a small sample city remote sensing image information extraction system based on meta-learning and attention is provided, including a readable storage medium, on which a computer program is stored. When the computer program is executed, a small sample city remote sensing image information extraction method based on meta-learning and attention is implemented as described above.
[0074] The specific embodiments described herein are merely examples of the spirit of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in similar ways, but they will not deviate from the spirit of the present invention or exceed the scope defined by the appended claims.
Claims
1. A method for extracting information from small sample urban remote sensing images based on meta-learning and attention, characterized by: The following steps are included: Step 1: construct a pre-training model for small sample urban remote sensing information. In the pre-training stage, the feature information of the existing samples is fully learned by pre-training the network on the small sample set to obtain the initial feature parameters of the small sample set and the deep convolutional network backbone; Step 2: construct a "space-time spectral angle" attention model to enable the network to focus on important "space-time spectral angle" information during training, suppress noise and redundant information, and improve the classification performance of the model; Step 3: Establish a meta-learning and attention coordination mechanism and realize the extraction of small sample urban remote sensing information, including parallel association learning of the feature parameters obtained by the "space-time spectrum angle" attention model and the initial feature parameters, and introduce a regularizer to minimize the cross entropy and structural risk, so as to fully mine the small sample information; In the "space-time-spectrum-angle" attention model, for the three-dimensional input X, firstly, two global feature descriptions after feature compression are obtained through maximum pooling and average pooling along the channel dimension; then, the weights X of the temporal feature, spatial feature, spectral feature and angle feature are obtained through the hard-sigmoid gate mechanism. SS ∈(0,1); Finally, the original input X is combined with the weight X SS multiply; Through the continuous learning of the network during the training process, the corresponding weight of important "space-time spectrum angle" information is close to 1; for unimportant or negatively impacted noise and redundant information, the corresponding weight is close to 0; The "space-time spectrum angle" eigenvector is calculated according to the following formula, In the formula, k i ' represents the final feature center of the i-th category, k i Represents the category feature center of the i-th category at the initial time, represents the gradient, represents the category feature center of the i-th category after gradient optimization, j is the number of unlabeled samples, l is the number of labeled samples, ej,l is the feature corresponding to the labeled sample and the unlabeled sample, sum() represents the sum of the values in the brackets, v i is the characteristic center of the probability distribution of the i-th class, v i,j The probability distribution feature center of the i-th class is updated by the class probability vector of j i-th class samples, n represents the total number of samples, C is the number of classes in the data set, e is the initial feature vector, p is the "space-time spectrum angle" feature vector, P j,l is the predicted probability corresponding to the lth class of labeled samples and the jth class of unlabeled samples, η represents the update coefficient, and 1[y=i] represents the indicator function.
2. According to claim 1, the method for extracting information from small sample urban remote sensing images based on meta-learning and attention is characterized in that: In step 1, the small sample urban remote sensing information pre-training model is a network structure composed of a convolutional layer, a pooling layer and a fully connected layer. There are 5 segments of convolutional networks, each segment has 2 or 3 convolutional layers, and a maximum pooling layer is connected to the end of each segment to reduce the image size; the number of convolution kernels in each segment is the same, and the closer to the fully connected layer, the more convolution kernels there are.
3. According to claim 2, the method for extracting information from small sample urban remote sensing images based on meta-learning and attention is characterized in that: The convolutional network in the small sample urban remote sensing information pre-training model is implemented as follows: The first convolutional network consists of two convolutional layers and one maximum pooling layer, with 64 output channels and an output size of 112×112×64; The second convolutional network consists of two convolutional layers and one maximum pooling layer, with 128 output channels and an output size of 56×56×128; The third convolutional network consists of three convolutional layers and one maximum pooling layer, with 256 output channels and an output size of 28×28×256; The fourth convolutional network consists of three convolutional layers and one maximum pooling layer, with 512 output channels and an output size of 14×14×512; The fifth convolutional network consists of three convolutional layers and one maximum pooling layer, with 512 output channels and an output size of 7×7×512; The output result of the fifth convolutional network is flattened into a one-dimensional vector, and then input into the first fully connected layer and the corresponding Dropout layer, and then into the second fully connected layer and the corresponding Dropout layer; finally, it is input into the third fully connected layer, and the output node of the third fully connected layer is 1000. The softmax function is used to obtain the classification output probability and the classification result.
