Remote sensing image land utilization classification method based on residual network

Through the residual network structure and transfer learning strategy based on ResNet50, combined with the polarized multi-scale feature self-attention module and the scene-aware attention module, the problem of low efficiency and high cost of traditional land use classification methods is solved, and the remote sensing image is realized. Rapid and accurate classification improves the timeliness and reliability of land use change monitoring.

CN118537653AInactive Publication Date: 2024-08-23NORTH CHINA INST OF AEROSPACE ENG +1
View PDF 0 Cites 9 Cited by

Patent Information

Application Number
CN202410749885.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-08-23
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional land use classification methods are inefficient, costly and inaccurate. Deep learning models require large data sets and long training times in remote sensing image processing, and manual labeling of sample labels is time-consuming and laborious.

Method used

Using the ResNet50-based residual network structure, combined with the polarized multi-scale feature self-attention module and the scene-aware attention module, the model is trained through the transfer learning strategy, and the model performance is evaluated using MIoU, overall accuracy, Kappa coefficient and F1 score indicators to reduce Manually label workload and improve classification efficiency.

Benefits of technology

It improves the accuracy and efficiency of land use classification, reduces labor costs and time costs, realizes rapid and accurate classification of remote sensing images, obtains land use change information timely and accurately, and contributes to scientific land use planning and sustainable management. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537653A
    Figure CN118537653A
Patent Text Reader

Abstract

The invention discloses a remote sensing image land utilization classification method based on a residual network, and belongs to the technical field of remote sensing image processing. Remote sensing image processing is carried out by using a deep neural network, and the method comprises the following steps: S100, remote sensing image data is preprocessed, and the preprocessing comprises radiometric calibration, atmospheric correction, ortho-rectification and image fusion; s200, manually drawing a label making data set; s300, building a network model, performing feature extraction by taking a ResNet50 model as a backbone network model, adding a polarized multi-scale feature self-attention module to enhance feature extraction, and introducing scene perception attention to enhance scene perception; s400, using a transfer learning strategy to train the network model and adjusting and optimizing the network model; s500, evaluating the performance of the model by calculating the MIOU, the overall precision, the Kappa coefficient and the F1 score index; and S600, obtaining a final land utilization classification result by using the evaluated model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of remote sensing image processing, and in particular to a remote sensing image land use classification method based on a residual network. Background Art

[0002] Land use change is a hot topic in global change research. Land use change is crucial for investigating land use patterns and helping to predict future sustainable land management. Through land use classification, we can not only understand the basic properties of various land use types, but also understand the regional structure and distribution characteristics of land use. With the rapid development of social economy and the accelerating urbanization process, the land use situation in my country is constantly changing. Mastering real-time and reliable land use change information is of great practical significance for scientific land use planning. Land use and land use change are closely related to the reporting of land use and land use change in urban planning, municipal management, natural disaster monitoring, natural resource utilization and management, public safety and national defense.

[0003] Traditional land use classification through manual visual interpretation is not only inefficient, costly, and easily leads to inaccurate results without unified standards, but also requires certain experience and knowledge of the classifier. Deep learning is developing rapidly with its powerful feature extraction capabilities. In the field of remote sensing image processing, remote sensing image land use classification has become a popular research direction. In the face of different classification tasks, it is only necessary to fine-tune the deep neural network model to adapt to specific task requirements. ResNet50 was proposed by He Kaiming et al. in 2015, and its feature extraction capabilities have been proven to be well received in many computer vision tasks. As one of the most popular convolutional neural network architectures, its core idea is to introduce "residual connections" to solve the problem that the extraction effect of convolutional neural networks deteriorates after reaching a certain number of layers, and to achieve jump connections in the network by skipping one or more layers. These jump connections allow the model to directly transmit the original signal, reduce the problem of gradient disappearance in deep networks, and enable the training of deeper and more complex neural networks. ResNet has achieved significant performance improvements in the ImageNet image classification task and has led the design ideas of subsequent deep neural networks.

[0004] In addition, deep neural networks require a large amount of data sets to train models to improve recognition accuracy and generalization, but the acquisition cost of remote sensing image data is high and easily affected by weather, and manual labeling of sample labels is time-consuming and laborious. At the same time, training deep learning models not only requires equipment, but also takes a long time to train. Introducing transfer learning strategies to train deep learning models for land use classification not only obtains accurate classification results but also improves efficiency. Summary of the invention

[0005] The purpose of the present invention is to provide a remote sensing image land use classification method based on residual network to solve the problems raised in the above background technology.

[0006] In order to solve the above technical problems, the present invention provides the following technical solutions:

[0007] A remote sensing image land use classification method based on residual network, the steps are as follows:

[0008] S100, preprocessing the remote sensing image data, wherein the preprocessing includes radiation calibration, atmospheric correction, orthorectification and image fusion;

[0009] S200, manually drawn labels to create a dataset;

[0010] S300, build a network model, use the ResNet50 model as the backbone network model for feature extraction, add a polarized multi-scale feature self-attention module to enhance feature extraction, and introduce scene perception attention to enhance scene perception;

[0011] S400, use transfer learning strategy to train and optimize the network model;

[0012] S500, evaluate the performance of the model by calculating MIoU, overall accuracy, Kappa coefficient and F1 score indicators;

[0013] S600: Use the evaluated model to obtain the final land use classification result.

[0014] According to step S200, the sample is manually labeled using Lableme software to obtain sample labels, wherein the sample labels include: paddy field, dry land, grassland, woodland, water area, construction land, road and other unused land. The image is cropped to a size of 512×512 using sliding cropping. The data set is scaled, rotated, horizontally flipped and horizontally rotated using data enhancement to expand the data set quantity, and the training set, test set and validation set are divided into a ratio of 7:2:1.

[0015] According to step S300, the mainstream structure of the semantic segmentation model is an encoder-decoder structure, the encoder uses the ResNet50 model as the backbone network, removes the fully connected layer and retains all other structures, and adds a polarized multi-scale feature self-attention module after the last residual block; the ResNet50 input layer of the backbone network inputs a remote sensing image of size 512×512, and the convolution layer applies a 7×7×64 convolution kernel with a step size of 2 to perform a convolution operation on the input image to extract the features of the image; the batch normalization layer standardizes the convolution layer output after each residual block to prevent the gradient from disappearing or exploding and promote the convergence of the network; the maximum pooling layer is used to perform a maximum pooling operation on the activated feature map to reduce the dimension of the feature map;

[0016] The bottleneck structure BottleNeck, which is composed of stacked residual blocks, is used to realize feature extraction and learning in a deeper network layer. The bottleneck structure BottleNeck is connected in sequence. The number of residual blocks stacked in each bottleneck structure BottleNeck is G. 1 , G 2 , G 3 , G 4 , each residual block contains L convolutional layers, and the entire network has t convolutional layers, where G, G 1 , G 2 , G 3 , G 4 , L, t are positive integers, t=1+(G 1 +G 2 +G 3 +G 4 )×L; the global average pooling layer is used to obtain a one-dimensional feature vector by average pooling the output feature map.

[0017] According to step S300, an activation function is used to establish a nonlinear mapping between the input and output of the network, and a Hardswish activation function is used to replace the Relu activation function for nonlinear transformation. The Hardswish activation function can reduce memory access time and improve training accuracy. The formula of the Hardwish activation function is:

[0018]

[0019] Here, x is a real value input to the Hardwish activation function.

[0020] A large number of related studies have proven that CNN performs well in encoding local dependency problems. In contrast, the self-attention mechanism of Transformer is good at capturing long-term dependencies by considering the global interactions of the entire input sequence. Therefore, by leveraging the local feature extraction capabilities of CNN and the global context perception capabilities of Transformer, it can better serve various semantic segmentation tasks. Based on the ResNet50 model, a polarized multi-scale feature self-attention module is introduced after the last residual block of the original structure as an improvement to more efficiently learn the high-level features of the image and adjust the features extracted by the backbone network.

[0021] According to step S300, the polarized multi-scale feature self-attention module is inspired by the "polarized filtering" technology and is proposed to solve the limitations of the traditional self-attention mechanism; the polarized multi-scale feature self-attention module optimizes the computational complexity of the attention score matrix and replaces the standard convolution layer with a depthwise separable convolution to achieve the lightweight of the model. The polarized multi-scale feature self-attention module consists of three parts in order:

[0022] The adaptive multi-branch feature fusion layer unifies the feature maps of different stages to the same channel and resolution; the polarized channel self-attention module uses feature information to expand the number of attention points to capture global contextual features and multi-scale channel dependencies, and enhance the features of the channel dimension; the polarized spatial self-attention module combines branches and spaces to expand the number of attention points, aiming to capture more subtle multi-scale spatial dependencies.

[0023] The network structure of the backbone network includes four stages. The resolution and number of channels of the features extracted at different stages are different. Before feature enhancement, the adaptive multi-branch feature fusion layer standardizes the features of multiple branches and different stages to a uniform size by setting the channel, pooling convolution kernel size and the number of branches of multi-branch features. l Corresponding stage l , first use the maximum pooling to transform X l Downsample to X 4 After the same size, the convolution block is used to rescale the features and unify the channels of different branch features, where The formula for rescaling features using convolutional blocks is as follows:

[0024]

[0025] Among them, R represents the set of real numbers, C l Indicates the number of channels of feature maps at different stages, H l Represents the height of feature maps at different stages, W l Indicates the width of feature maps at different stages, K l represents the pooling kernel, l represents different stages, A represents the feature map after feature fusion, M 1 It represents the feature map after pooling and convolution in the first stage, M 2 represents the feature map after pooling and convolution in the second stage, M 3 It represents the feature map after pooling and convolution in the third stage, M 4 It represents the feature map after pooling and convolution in the fourth stage. Conv refers to the convolution operation using a 3×3×3 convolution block.

[0026] In the polarized multi-scale feature self-attention module, the use of deep separable convolution blocks can further reduce the computational complexity; the channels of the input feature map are connected by four branches of different scales, and the number of attention points is expanded by combining branches and channels; the input feature map is connected by the first weight matrix W q , perform convolution transformation to generate query vector Q, and reshape Q, input feature map through the second weight matrix W k Perform convolution operation, apply softmax function, generate key vector K; input feature map through the third weight matrix W v Perform convolution operation conversion to generate value vector V; apply self-attention mechanism to convert the query vector containing all attention points into matrix Q ch and the matrix K containing all key vectors ch Multiply them to get the attention score; apply the softmax function to get the normalized attention weight and form the multi-scale channel attention score matrix Z ch , the feature map is transformed by adding a new dimension of size 1 to the tensor through the Unsqeeze operation, and the spatial dimension of the feature map is reduced by using point-by-point 1×1 convolution and LayerNormalization, and the training process of the feature map is standardized to improve the model performance; the operation formula is as follows:

[0027] Q ch =σ q (Conv(A))

[0028] K ch =F SM (σk(Conv(A)))

[0029] V ch =Conv(A)

[0030] Among them, σ q represents the reshape operation for Q, F SM represents the softmax normalized exponential function, σ k Represents the reshape operation for K;

[0031] The input of the polarization channel self-attention module is the feature map A obtained by the adaptive multi-branch feature fusion layer in the previous step, A∈R C×H×W , C represents the number of channels, H represents the height, W represents the width, and the multi-scale channel attention score matrix Z ch Defined as:

[0032] Z ch =F SC (F LN (Conv(Q ch ×Kch )))

[0033] Among them, Z ch ∈R C×1×1 , F SG represents the sigmoid activation function, F LN Indicates LayerNormalization layer normalization;

[0034] The output of the polarized channel self-attention module passes through the multi-scale channel attention score matrix Z ch and the matrix V containing all the value vectors ch By multiplying the elements one by one, the weight of each feature channel is applied to each spatial position corresponding to the channel, emphasizing the strength of the representation on the entire feature map and enhancing the multi-scale channel features. The formula is as follows:

[0035] A ch =V ch ⊙Z ch

[0036] Among them, ⊙ represents the element-wise product operation;

[0037] In the polarized space self-attention module, the query vector Q, key vector K, and value vector V of each focus point are calculated through convolution operations according to the weight matrix, and Q and K are reshaped and arranged; the matrix K composed of all key vectors is sp and the matrix Q consisting of the query vectors of all the points of interest sp Multiply them together to get the multi-scale spatial attention score matrix Z sp ; Z sp The matrix V consisting of the sum value vector sp Element-wise multiplication to enhance the multi-scale spatial features and extract bottleneck features from the enhanced multi-scale features;

[0038] The input of the polarization space self-attention module is the feature map after multi-scale channel enhancement, and the multi-scale spatial attention score matrix Z sp ∈R 1×H×W , the formula is as follows:

[0039] Q sp =σ q (p q (Conv(A ch )))

[0040]

[0041] V sp =p v (σ v (Conv(A ch )))

[0042] Z sp =F SG (σ z (K sp ×Q sp ))

[0043] Among them, Q sp represents the matrix composed of query vectors, p q represents the permute dimension conversion operation for Q, p k represents the permute dimension conversion operation for K, p v Represents the permute dimension conversion operation for V, Represents the first reshape operation for K. represents the second reshape operation for K, F GM represents the global mean operation, σ v Represents the reshape operation for V, σ z For Z sp The reshape reshaping operation;

[0044] The output of the polarization space self-attention module is multi-scale spatially enhanced C 4 ×H×W corresponds to the feature map X output by Stage4 4 The resolution of A sp The formula is as follows:

[0045] A sp =Conv(σ out (p out (V sp ⊙Z sp )))

[0046] Among them, σ out Indicates for V sp and Z sp Reshape the result of the element-wise multiplication, p out Indicates for V sp and Z sp Permute dimension transformation operation on the result of element-wise multiplication.

[0047] The extracted features output by the encoder are used as the input of the decoder. The decoder part is used to convert the feature map extracted by the encoder into a semantic segmentation result. The decoder consists of a scene-aware attention module. The encoder output feature map is upsampled to the same resolution as the input image using transposed convolution, and then the receptive field is expanded using dilated convolution to capture local information. The scene-aware attention module aims to enhance the model's ability to recognize the relationship between pixels in remote sensing images and the scenes in which they are located, and analyze the relationship between different categories. The high-resolution features in the encoder are fused with the corresponding upsampled features in the decoder through jump connections to maintain key spatial information, and a 1x1 convolution layer is used to convert the comprehensive feature map into the final segmentation output result.

[0048] The scene perception attention module includes two parts: incorporating position prior information and incorporating context information. The extracted rough features are cut along the spatial dimension to obtain local blocks, and the position prior information is obtained by incorporating the position prior. The context information is incorporated to construct a context diagonal matrix for the local block to contextualize the local block; the affinity matrix is ​​obtained by adding the position prior information element by element; the rough features are aggregated according to the affinity matrix to obtain an enhanced feature representation after embedding pixel scene perception.

[0049] The incorporation of position prior information enables pixels to perceive the intrinsic distribution pattern of objects in remote sensing images in space. It is necessary to construct relative position codes between pixels and embed rough feature representations in local blocks to improve the sensitivity of attention to spatial distribution. By constructing relative position codes between pixels and integrating them into rough feature representations, the model's perception of spatial layout is enhanced.

[0050] Perform 1×1 convolution on the extracted enhanced rough features, calculate the query vector Q, key vector K, and value vector V of each focus point, reshape and arrange them, and obtain the matrix Q composed of Q, K, and V sh , K sh 、V sh Three matrices, Q sh The process of incorporating position prior information is as follows: Calculate the relative position offset of pixels in the horizontal and vertical directions, and use the relative position offset to select a specific training vector in the predefined coding library as the relative position code r, where the dimension of r is [hw×hw×C], where the i-th hw×C matrix represents the relative position code of the i-th pixel and other pixels; Associate the i-th row in the Q matrix with the relative position code r corresponding to the i-th pixel i The transpose of the matrix multiplication is performed to obtain the position prior information p of the i-th pixel i, splicing the position prior of each pixel along the vertical direction to obtain the global position prior information p of the local block; combining the relative position encoding with the coarse features of the input to obtain an enhanced feature representation with prior knowledge of the spatial distribution;

[0051] In order to incorporate context information and form an attention mechanism that can be adjusted according to the context, the two branches perform parallel global average pooling and maximum pooling on the rough feature local blocks of the input, and the pooling results of the two branches are normalized and convolved using the softmax function to obtain the context vector, where the feature maps used by the two branches share the same weights; the context vectors obtained by the two branches are added element by element, output through the sigmoid function and converted into a context diagonal matrix c, the dimension of c is [C×C]; after using c to contextualize Q, aggregate K sh Get the similarity matrix S sh , the affinity matrix in the scene perception module is: U sh =softmax(S sh +p), taking into account the relative position of pixels and the similarity between pixel features; finally, according to U sh Polymerization V sh Obtain feature representation after incorporating pixel scene perception.

[0052] According to step S400, the model training adopts a transfer learning strategy, and the model parameters of the backbone network ResNet50 learned in the classification task on the large natural image ImageNet dataset are transferred and applied to the land use classification task; a part of the weight parameters frozen and saved in the pre-training are used as the initial parameters of the improved network model, and iterative training is continued on the remote sensing dataset;

[0053] In the first stage of transfer learning, the backbone network model ResNet50 is pre-trained on the ImageNet dataset to extract features from the input image, obtain the common underlying features of the image and obtain the pre-trained weights; the feature extraction layer is fixed, ImageNet is input to train ResNet50, the parameters of different convolutional layers are frozen, and each change of the parameter value is saved by default;

[0054] In the second stage of transfer learning, the entire improved network model is trained, the weights of the bottom convolutional layer of the original ResNet50 network are retained, the training set data of the remote sensing dataset is used as the initial input of the improved model, and the pre-trained weight parameters of the ResNet50 network model pre-trained on ImageNet are used; the Adam optimizer is used to accelerate the convergence of the model during the training process, and the cosine annealing strategy is used to update the learning rate; the combination of the binary cross entropy loss function and the Dice loss function is used during the training process to measure the difference between the output results of the improved network model and the corresponding labels, and the model parameters are adjusted through the optimization algorithm to make the model gradually converge to obtain the improved network model after training; through training, the parameters of the improved network model are further adjusted to adapt to the land use classification task, and the tuned model is obtained;

[0055] Finally, the test set is used to verify the tuned model and output the land use classification results.

[0056] According to step S500, the trained network model is evaluated using the validation set data, the performance of the model is evaluated by calculating the MIoU, overall accuracy, Kappa coefficient and F1 score indicators, and the parameters of the improved network model are adjusted according to the evaluation results;

[0057] MIoU calculates the ratio of the intersection and union between the true value and the predicted value in two sets. The ratio of the intersection and union of each type of predicted label result and the true label in the image is calculated, and the sum is taken as the average. The formula is as follows:

[0058]

[0059] Among them, k ii represents the number of pixels correctly predicted as category i; k ij represents the number of pixels that are incorrectly predicted to be of category j but are actually of category i; k ji represents the number of pixels that are incorrectly predicted to be of category i but are actually of category j; n is the total number of samples;

[0060] The overall accuracy is calculated based on the confusion matrix. The overall accuracy is a classifier performance indicator that indicates the ratio of the number of correctly classified pixels in each category to the total number of samples. The calculation formula for the overall accuracy of the multi-classification task is as follows:

[0061]

[0062] Among them, OA is the overall accuracy, C is the number of sample categories, and a ii is the number of samples correctly classified in the i-th category;

[0063] The Kappa coefficient is an indicator that measures the degree of agreement between the model classification results and the actual observed values. It represents the proportion of errors reduced by using the classifier compared to completely random classification. The Kappa calculation result is between -1 and 1.

[0064] The F1 score is a measure of the classification problem, with a value range of [0, 1]. The F1 score is the harmonic mean of precision and recall. The precision represents the producer precision in remote sensing classification, and the recall represents the user precision in remote sensing classification. The formula is as follows:

[0065]

[0066] Among them, PA represents precision and UA represents recall.

[0067] Precision PA refers to the ratio of the number of samples correctly identified as positive examples by the model: true positive examples TP, to the total number of samples predicted as positive examples by the model TP + FP. FP refers to false positive examples.

[0068]

[0069] The recall rate UA refers to the ratio of the number of samples correctly identified as positive examples by the model to the total number of samples that are actually positive examples, TP + FN. FN refers to the number of positive examples that the model incorrectly predicts as negative examples, that is, the number of positive examples that are missed.

[0070]

[0071] Compared with the prior art, the beneficial effects achieved by the present invention are:

[0072] The present invention introduces a deep learning model, especially a residual network structure based on ResNet50, which can effectively extract high-level features from remote sensing images, thereby improving the accuracy of land use classification. Compared with traditional manual visual interpretation, the deep learning model has higher classification accuracy and faster classification speed.

[0073] Compared with manual visual interpretation, using deep learning models for land use classification can greatly reduce labor costs and time costs. In the process of preparing data sets, manual labeling requires a lot of manpower and time, while deep learning models can be trained using existing data sets through transfer learning, reducing the workload of manual labeling.

[0074] Deep learning models can quickly and accurately classify remote sensing images, thereby improving the timeliness and reliability of land use change monitoring. Timely and accurate acquisition of land use change information is conducive to scientific land use planning and sustainable land management. BRIEF DESCRIPTION OF THE DRAWINGS

[0075] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0076] Figure 1 It is a schematic diagram of the steps of a remote sensing image land use classification method based on residual network of the present invention;

[0077] Figure 2 It is a residual block structure diagram of a remote sensing image land use classification method based on a residual network of the present invention;

[0078] Figure 3 This is a structure diagram of a polarized multi-scale feature self-attention module of a remote sensing image land use classification method based on a residual network in the present invention. DETAILED DESCRIPTION

[0079] 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.

[0080] See also Figure 1-Figure 3 , the present invention provides a technical solution:

[0081] According to one embodiment of the present invention, Figure 1 A method for land use classification based on a remote sensing image based on a residual network is shown in the following steps:

[0082] S100, preprocessing the remote sensing image data, wherein the preprocessing includes radiation calibration, atmospheric correction, orthorectification and image fusion;

[0083] S200, manually drawn labels to create a dataset;

[0084] S300, build a network model, use the ResNet50 model as the backbone network model for feature extraction, add a polarized multi-scale feature self-attention module to enhance feature extraction, and introduce scene perception attention to enhance scene perception;

[0085] S400, use transfer learning strategy to train and optimize the network model;

[0086] S500, evaluate the performance of the model by calculating MIoU, overall accuracy, Kappa coefficient and F1 score indicators;

[0087] S600: Use the evaluated model to obtain the final land use classification result.

[0088] According to step S200, the sample is manually labeled using Lableme software to obtain sample labels, wherein the sample labels include: paddy field, dry land, grassland, woodland, water area, construction land, road and other unused land. The image is cropped to a size of 512×512 using sliding cropping. The data set is scaled, rotated, horizontally flipped and horizontally rotated using data enhancement to expand the data set quantity, and the training set, test set and validation set are divided into a ratio of 7:2:1.

[0089] like Figure 2 As shown in the residual block structure diagram of a remote sensing image land use classification method based on a residual network, according to step S300, the mainstream structure of the semantic segmentation model is an encoder-decoder structure, the encoder uses the ResNet50 model as the backbone network, removes the fully connected layer and retains all other structures, and adds a polarization multi-scale feature self-attention module after the last residual block; the ResNet50 input layer of the backbone network inputs a remote sensing image of size 512×512, and the convolution layer applies a 7×7×64 convolution kernel with a step size of 2 to perform a convolution operation on the input image to extract the features of the image; the batch normalization layer standardizes the convolution layer output after each residual block to prevent the gradient from disappearing or exploding and promote the convergence of the network; the maximum pooling layer is used to perform a maximum pooling operation on the activated feature map to reduce the dimension of the feature map;

[0090] The bottleneck structure BottleNeck, which is composed of stacked residual blocks, is used to realize feature extraction and learning in deeper network layers. There are 4 bottleneck structures BottleNeck connected in sequence. The number of stacked residual blocks contained in each bottleneck structure BottleNeck is 3, 4, 6, and 3 respectively. Each residual block contains 3 convolutional layers. The whole network has t convolutional layers, where t=1+(3+4+6+3)×3=49; the global average pooling layer is used to obtain a one-dimensional feature vector by average pooling the output feature map.

[0091] According to step S300, an activation function is used to establish a nonlinear mapping between the input and output of the network, and a Hardswish activation function is used to replace the Relu activation function for nonlinear transformation. The Hardswish activation function can reduce memory access time and improve training accuracy. The formula of the Hardwish activation function is:

[0092]

[0093] Here, x is a real value input to the Hardwish activation function.

[0094] The extracted features output by the encoder are used as the input of the decoder. The decoder part is used to convert the feature map extracted by the encoder into a semantic segmentation result. The decoder consists of a scene-aware attention module. The encoder output feature map is upsampled to the same resolution as the input image using transposed convolution, and then the receptive field is expanded using dilated convolution to capture local information. The scene-aware attention module aims to enhance the model's ability to recognize the relationship between pixels in remote sensing images and the scenes in which they are located, and analyze the relationship between different categories. The high-resolution features in the encoder are fused with the corresponding upsampled features in the decoder through jump connections to maintain key spatial information, and a 1x1 convolution layer is used to convert the comprehensive feature map into the final segmentation output result.

[0095] The scene perception attention module includes two parts: incorporating position prior information and incorporating context information. The extracted rough features are cut along the spatial dimension to obtain local blocks, and the position prior information is obtained by incorporating the position prior. The context information is incorporated to construct a context diagonal matrix for the local block to contextualize the local block; the affinity matrix is ​​obtained by adding the position prior information element by element; the rough features are aggregated according to the affinity matrix to obtain an enhanced feature representation after embedding pixel scene perception.

[0096] The incorporation of position prior information enables pixels to perceive the intrinsic distribution pattern of objects in remote sensing images in space. It is necessary to construct relative position codes between pixels and embed rough feature representations in local blocks to improve the sensitivity of attention to spatial distribution. By constructing relative position codes between pixels and integrating them into rough feature representations, the model's perception of spatial layout is enhanced.

[0097] Perform 1×1 convolution on the extracted enhanced rough features, calculate the query vector Q, key vector K, and value vector V of each focus point, reshape and arrange them, and obtain the matrix Q composed of Q, K, and V sh , K sh 、V sh Three matrices, Q sh The process of incorporating position prior information is as follows: Calculate the relative position offset of pixels in the horizontal and vertical directions, and use the relative position offset to select a specific training vector in the predefined coding library as the relative position code r, where the dimension of r is [hw×hw×C], where the i-th hw×C matrix represents the relative position code of the i-th pixel and other pixels; Associate the i-th row in the Q matrix with the relative position code r corresponding to the i-th pixel i The transpose of the matrix multiplication is performed to obtain the position prior information p of the i-th pixel i, splicing the position prior of each pixel along the vertical direction to obtain the global position prior information p of the local block; combining the relative position encoding with the coarse features of the input to obtain an enhanced feature representation with prior knowledge of the spatial distribution;

[0098] In order to incorporate context information and form an attention mechanism that can be adjusted according to the context, the two branches perform parallel global average pooling and maximum pooling on the rough feature local blocks of the input, and the pooling results of the two branches are normalized and convolved using the softmax function to obtain the context vector, where the feature maps used by the two branches share the same weights; the context vectors obtained by the two branches are added element by element, output through the sigmoid function and converted into a context diagonal matrix c, the dimension of c is [C×C]; after using c to contextualize Q, aggregate K sh Get the similarity matrix S sh , the affinity matrix in the scene perception module is: U sh =softmax(S sh +p), taking into account the relative position of pixels and the similarity between pixel features; finally, according to U sh Polymerization V sh Obtain feature representation after incorporating pixel scene perception.

[0099] According to step S400, the model training adopts a transfer learning strategy, and the model parameters of the backbone network ResNet50 learned in the classification task on the large natural image ImageNet dataset are transferred and applied to the land use classification task; a part of the weight parameters frozen and saved in the pre-training are used as the initial parameters of the improved network model, and iterative training is continued on the remote sensing dataset;

[0100] In the first stage of transfer learning, the backbone network model ResNet50 is pre-trained on the ImageNet dataset to extract features from the input image, obtain the common underlying features of the image and obtain the pre-trained weights; the feature extraction layer is fixed, ImageNet is input to train ResNet50, the parameters of different convolutional layers are frozen, and each change of the parameter value is saved by default;

[0101] In the second stage of transfer learning, the entire improved network model is trained, the weights of the bottom convolutional layer of the original ResNet50 network are retained, the training set data of the remote sensing dataset is used as the initial input of the improved model, and the pre-trained weight parameters of the ResNet50 network model pre-trained on ImageNet are used; the Adam optimizer is used to accelerate the convergence of the model during the training process, and the cosine annealing strategy is used to update the learning rate; the combination of the binary cross entropy loss function and the Dice loss function is used during the training process to measure the difference between the output results of the improved network model and the corresponding labels, and the model parameters are adjusted through the optimization algorithm to make the model gradually converge to obtain the improved network model after training; through training, the parameters of the improved network model are further adjusted to adapt to the land use classification task, and the tuned model is obtained;

[0102] Finally, the test set is used to verify the tuned model and output the land use classification results.

[0103] According to step S500, the trained network model is evaluated using the validation set data, the performance of the model is evaluated by calculating the MIoU, overall accuracy, Kappa coefficient and F1 score indicators, and the parameters of the improved network model are adjusted according to the evaluation results;

[0104] MIoU calculates the ratio of the intersection and union between the true value and the predicted value in two sets. The ratio of the intersection and union of each type of predicted label result and the true label in the image is calculated, and the sum is taken as the average. The formula is as follows:

[0105]

[0106] Among them, k ii represents the number of pixels correctly predicted as category i; k ij represents the number of pixels that are incorrectly predicted to be of category j but are actually of category i; k ji represents the number of pixels that are incorrectly predicted to be of category i but are actually of category j; n is the total number of samples;

[0107] The overall accuracy is calculated based on the confusion matrix. The overall accuracy is a classifier performance indicator that indicates the ratio of the number of correctly classified pixels in each category to the total number of samples. The calculation formula for the overall accuracy of the multi-classification task is as follows:

[0108]

[0109] Among them, OA is the overall accuracy, C is the number of sample categories, and a ii is the number of samples correctly classified in the i-th category;

[0110] The Kappa coefficient is an indicator that measures the degree of agreement between the model classification results and the actual observed values. It represents the proportion of errors reduced by using the classifier compared to completely random classification. The Kappa calculation result is between -1 and 1.

[0111] The F1 score is a measure of the classification problem, with a value range of [0, 1]. The F1 score is the harmonic mean of precision and recall. The precision represents the producer precision in remote sensing classification, and the recall represents the user precision in remote sensing classification. The formula is as follows:

[0112]

[0113] Among them, PA represents precision and UA represents recall.

[0114] According to another embodiment of the present invention, Figure 3 As shown in the structure diagram of the polarization multi-scale feature self-attention module of a remote sensing image land use classification method based on residual network, according to step S300, the polarization multi-scale feature self-attention module PMFS is inspired by the "polarization filtering" technology and is proposed to solve the limitations of the traditional self-attention mechanism; the polarization multi-scale feature self-attention module optimizes the computational complexity of the attention score matrix and replaces the standard convolution layer with a depth-separable convolution to achieve the lightweight of the model. The polarization multi-scale feature self-attention module consists of three parts in order:

[0115] The adaptive multi-branch feature fusion layer, namely the AMFF layer, unifies the feature maps of different stages to the same channel and resolution; the polarized channel self-attention module, namely the PMCS module, uses feature information to expand the number of attention points to capture global contextual features and multi-scale channel dependencies, and enhances the features of the channel dimension; the polarized spatial self-attention module, namely the PMSS module, combines branches and spaces to expand the number of attention points, aiming to capture more subtle multi-scale spatial dependencies.

[0116] The network structure of the backbone network includes four stages. The resolution and number of channels of the features extracted at different stages are different. Before feature enhancement, the adaptive multi-branch feature fusion layer standardizes the features of multiple branches and different stages to a uniform size by setting the channel, pooling convolution kernel size and the number of branches of multi-branch features. l Corresponding stage l , first use the maximum pooling to transform X l Downsample to X 4 After the same size, the convolution block is used to rescale the features and unify the channels of different branch features, where The formula for rescaling features using convolutional blocks is as follows:

[0117]

[0118] Among them, R represents the set of real numbers, C l Indicates the number of channels of feature maps at different stages, H l Represents the height of feature maps at different stages, W l Indicates the width of feature maps at different stages, K l represents the pooling kernel, l represents different stages, A represents the feature map after feature fusion, M 1 It represents the feature map after pooling and convolution in the first stage, M 2 represents the feature map after pooling and convolution in the second stage, M 3 It represents the feature map after pooling and convolution in the third stage, M 4 It represents the feature map after pooling and convolution in the fourth stage. Conv refers to the convolution operation using a 3×3×3 convolution block.

[0119] In the polarized multi-scale feature self-attention module, the use of deep separable convolution blocks can further reduce the computational complexity; the channels of the input feature map are connected by four branches of different scales, and the number of attention points is expanded by combining branches and channels; the input feature map is connected by the first weight matrix W q , perform convolution transformation to generate query vector Q, and reshape Q, input feature map through the second weight matrix W k Perform convolution operation, apply softmax function, generate key vector K; input feature map through the third weight matrix W v Perform convolution operation conversion to generate value vector V; apply self-attention mechanism to convert the query vector containing all attention points into matrix Q ch and the matrix K containing all key vectors ch Multiply them to get the attention score; apply the softmax function to get the normalized attention weight and form the multi-scale channel attention score matrix Z ch , the feature map is transformed by adding a new dimension of size 1 to the tensor through the Unsqeeze operation, and the spatial dimension of the feature map is reduced by using point-by-point 1×1 convolution and LayerNormalization, and the training process of the feature map is standardized to improve the model performance; the operation formula is as follows:

[0120] Q ch =σ q (Conv(A))

[0121] K ch =F SM (σ k (Conv(A)))

[0122] V ch =Conv(A)

[0123] Among them, σ q represents the reshape operation for Q, F SM represents the softmax normalized exponential function, σ k Represents the reshape operation for K;

[0124] The input of the polarization channel self-attention module is the feature map A obtained by the adaptive multi-branch feature fusion layer in the previous step, A∈R C×H×W , C represents the number of channels, H represents the height, W represents the width, and the multi-scale channel attention score matrix Z ch Defined as:

[0125] Z ch =F SG (F LN (Conv(Q ch ×K ch )))

[0126] Among them, Z ch ∈R C×1×1 , F SG represents the sigmoid activation function, F LN Indicates Layer Normalization layer standardization;

[0127] The output of the polarized channel self-attention module passes through the multi-scale channel attention score matrix Z ch and the matrix V containing all the value vectors ch By multiplying the elements one by one, the weight of each feature channel is applied to each spatial position corresponding to the channel, emphasizing the strength of the representation on the entire feature map and enhancing the multi-scale channel features. The formula is as follows:

[0128] A ch =V ch ⊙Z ch

[0129] Among them, ⊙ represents the element-wise product operation;

[0130] In the polarized space self-attention module, the query vector Q, key vector K, and value vector V of each focus point are calculated through convolution operations according to the weight matrix, and Q and K are reshaped and arranged; the matrix K composed of all key vectors is sp and the matrix Q consisting of the query vectors of all the points of interest sp Multiply them together to get the multi-scale spatial attention score matrix Z sp ; Z sp The matrix V consisting of the sum value vectorsp Element-wise multiplication to enhance the multi-scale spatial features and extract bottleneck features from the enhanced multi-scale features;

[0131] The input of the polarization space self-attention module is the feature map after multi-scale channel enhancement, and the multi-scale spatial attention score matrix Z sp ∈R 1×H×W , the formula is as follows:

[0132] Q sp =σ q (p q (Conv(A ch )))

[0133]

[0134] V sp =p v (σ v (Conv(A ch )))

[0135] Z sp =F SG (σ z (K sp ×Q sp ))

[0136] Among them, Q sp represents the matrix composed of query vectors, p q represents the permute dimension conversion operation for Q, p k represents the permute dimension conversion operation for K, p v Represents the permute dimension conversion operation for V, Represents the first reshape operation for K. represents the second reshape operation for K, F GM represents the global mean operation, σ v Represents the reshape operation for V, σ z For Z sp The reshape reshaping operation;

[0137] The output of the polarization space self-attention module is multi-scale spatially enhanced C 4 ×H×W corresponds to the feature map X output by Stage4 4 The resolution of A sp The formula is as follows:

[0138] A sp =Conv(σ out (pout (V sp ⊙Z sp )))

[0139] Among them, σ out Indicates for V sp and Z sp Reshape the result of the element-wise multiplication, p out Indicates for V sp and Z sp Permute dimension transformation operation on the result of element-wise multiplication.

[0140] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0141] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A remote sensing image land use classification method based on residual network, characterized by: Here are the steps: S100, preprocessing the remote sensing image data, wherein the preprocessing includes radiation calibration, atmospheric correction, orthorectification and image fusion; S200, manually drawn labels to create a dataset; S300, build a network model, use the ResNet50 model as the backbone network model for feature extraction, add a polarized multi-scale feature self-attention module to enhance feature extraction, and introduce scene perception attention to enhance scene perception; S400, use transfer learning strategy to train and optimize the network model; S500, evaluate the performance of the model by calculating MIoU, overall accuracy, Kappa coefficient and F1 score indicators; S600: Use the evaluated model to obtain the final land use classification result.

2. The method for land use classification based on remote sensing images based on residual network according to claim 1, characterized in that: According to step S200, Lableme software is used to manually annotate samples to obtain sample labels, wherein the sample labels include: paddy fields, dry land, grassland, woodland, water area, construction land, roads and other unused land, and the images are cropped using sliding cropping; data enhancement is used to scale, rotate, horizontally flip and horizontally rotate the data set to expand the number of data sets, and the training set, test set and validation set are divided proportionally.

3. The method for land use classification based on remote sensing images based on residual network according to claim 1, characterized in that: According to step S300, the encoder uses the ResNet50 model as the backbone network, removes the fully connected layer and retains all other structures, and adds a polarization multi-scale feature self-attention module after the last residual block; the input layer of the backbone network inputs the remote sensing image, and the convolution layer applies a convolution kernel to perform a convolution operation on the input image to extract the features of the image; the batch normalization layer standardizes the convolution layer output after each residual block to prevent the gradient from disappearing or exploding and promote the convergence of the network; the maximum pooling layer is used to perform a maximum pooling operation on the activated feature map to reduce the dimension of the feature map; The bottleneck structure BottleNeck composed of stacked residual blocks is used to realize feature extraction and learning in deeper network layers. There are G bottleneck structures BottleNeck connected in sequence. The number of stacked residual blocks contained in each bottleneck structure BottleNeck is G1, G2, G3, and G4 respectively. Each residual block contains L convolutional layers. The entire network has t convolutional layers, where G, G1, G2, G3, G4, L, and t are positive integers, and t=1+(G1+G2+G3+G4)×L; the global average pooling layer is used to obtain a one-dimensional feature vector by average pooling the output feature map.

4. The method for land use classification based on remote sensing images based on residual network according to claim 1, characterized in that: According to step S300, an activation function is used to establish a nonlinear mapping between the input and output of the network, and a Hardwish activation function is used to replace the Relu activation function for nonlinear transformation. The formula of the Hardwish activation function is: Here, x is a real value input to the Hardwish activation function.

5. The method for land use classification based on remote sensing images based on residual network according to claim 1, characterized in that: According to step S300, the polarized multi-scale feature self-attention module optimizes the computational complexity of the attention score matrix and replaces the standard convolution layer with a depthwise separable convolution. The polarized multi-scale feature self-attention module consists of three parts in order: The adaptive multi-branch feature fusion layer unifies the feature maps of different stages to the same channel and resolution; the polarized channel self-attention module uses feature information to expand the number of attention points to capture global contextual features and multi-scale channel dependencies, and enhance the features of the channel dimension; the polarized spatial self-attention module combines branches and spaces to expand the number of attention points.

6. The method for land use classification based on remote sensing images based on residual network according to claim 5, characterized in that: The network structure of the backbone network includes four stages. The resolution and number of channels of the features extracted at different stages are different. Before feature enhancement, the adaptive multi-branch feature fusion layer standardizes the features of multiple branches and different stages to a uniform size by setting the channel, pooling convolution kernel size and the number of branches of multi-branch features. l Corresponding stage l , first use the maximum pooling to transform X l After downsampling to the same size as X4, the features are rescaled using convolutional blocks to unify the channels of features from different branches, where l∈{1,2,3,4}; The formula for rescaling the features using convolutional blocks is as follows: Among them, R represents the set of real numbers, C l Indicates the number of channels of feature maps at different stages, H l Represents the height of feature maps at different stages, W l Indicates the width of feature maps at different stages, K l Represents the pooling kernel, l represents different stages, A represents the feature map after feature fusion, M1 represents the feature map after pooling and convolution in the first stage, M2 represents the feature map after pooling and convolution in the second stage, M3 represents the feature map after pooling and convolution in the third stage, M4 represents the feature map after pooling and convolution in the fourth stage, and Conv refers to the convolution operation using a 3×3×3 convolution block; In the polarized multi-scale feature self-attention module, the use of deep separable convolution blocks can further reduce the computational complexity; the channels of the input feature map are connected by four branches of different scales, and the number of attention points is expanded by combining branches and channels; the input feature map is connected by the first weight matrix W q , perform convolution transformation to generate query vector Q, and reshape Q, input feature map through the second weight matrix W k Perform convolution operation, apply softmax function, generate key vector K; input feature map through the third weight matrix W v Perform convolution operation conversion to generate value vector V; apply self-attention mechanism to convert the query vector containing all attention points into matrix Q ch and the matrix K containing all key vectors ch Multiply them to get the attention score; apply the softmax function to get the normalized attention weight and form the multi-scale channel attention score matrix Z ch , the feature map is transformed by adding a new dimension of size 1 to the tensor through the Unsqeeze operation, and the spatial dimension of the feature map is reduced by using point-by-point 1×1 convolution and LayerNormalization, and the training process of the feature map is standardized to improve the model performance; the operation formula is as follows: Q ch =σ q (Conv(A)) K ch =F SM (σ k (Conv(A))) V ch =Conv(A) Among them, σ q represents the reshape operation for Q, F SM represents the softmax normalized exponential function, σ k Represents the reshape operation for K; The input of the polarization channel self-attention module is the feature map A obtained by the adaptive multi-branch feature fusion layer in the previous step, A∈R C×H×W , C represents the number of channels, H represents the height, W represents the width, and the multi-scale channel attention score matrix Z ch Defined as: Z ch =F SG (F LN (Conv(Q ch ×K ch ))) Among them, Z ch ∈R C×1×1 , F SG represents the sigmoid activation function, F LN Indicates Layer Normalization layer standardization; The output of the polarized channel self-attention module passes through the multi-scale channel attention score matrix Z ch and the matrix V containing all the value vectors ch By multiplying the elements one by one, the weight of each feature channel is applied to each spatial position corresponding to the channel, emphasizing the strength of the representation on the entire feature map and enhancing the multi-scale channel features. The following formula is obtained: And ch =V ch ⊙Z ch Among them, ⊙ represents the element-wise product operation; In the polarized space self-attention module, the query vector Q, key vector K, and value vector V of each focus point are calculated through convolution operations according to the weight matrix, and Q and K are reshaped and arranged; the matrix K composed of all key vectors is sp and the matrix Q consisting of the query vectors of all the points of interest sp Multiply them together to get the multi-scale spatial attention score matrix Z sp ; Z sp The matrix V consisting of the sum value vector sp Element-wise multiplication to enhance the multi-scale spatial features and extract bottleneck features from the enhanced multi-scale features; The input of the polarization space self-attention module is the feature map after multi-scale channel enhancement, and the multi-scale spatial attention score matrix Z sp ∈R 1×H×W , the formula is as follows: Q sp =σ q (p q (Conv(A ch ))) V sp =p v (σ v (Conv(A ch ))) WITH sp =F sG (σ z (K sp ×Q sp )) Among them, Q sp represents the matrix composed of query vectors, p q represents the permute dimension conversion operation for Q, p k represents the permute dimension conversion operation for K, p v Represents the permute dimension conversion operation for V, Represents the first reshape operation for K. represents the second reshape operation for K, F GM represents the global mean operation, σ v Represents the reshape operation for V, σ z Indicates that for Z sp The reshape reshaping operation; The output of the polarization space self-attention module is multi-scale spatially enhanced C4×H×W corresponds to the resolution of the feature map output by Stage4, X4. sp The formula is as follows: A sp =Conv(σ out (p out (V sp ⊙Z sp ))) Among them, σ out Indicates for V sp and Z sp Reshape the result of the element-wise multiplication, p out Indicates for V sp and Z sp Permute dimension transformation operation on the result of element-wise multiplication.

7. The method for land use classification based on remote sensing images based on residual network according to claim 5, characterized in that: The extracted features output by the encoder are used as the input of the decoder. The decoder part is used to convert the feature map extracted by the encoder into a semantic segmentation result. The decoder consists of a scene-aware attention module. The encoder output feature map is upsampled to the same resolution as the input image using transposed convolution, and then the receptive field is expanded using dilated convolution to capture local information. The scene-aware attention module aims to enhance the model's ability to recognize the relationship between pixels in remote sensing images and the scenes in which they are located, and analyze the relationship between different categories. The high-resolution features in the encoder are fused with the corresponding upsampled features in the decoder through jump connections to maintain key spatial information, and a 1x1 convolution layer is used to convert the comprehensive feature map into the final segmentation output result. The scene perception attention module includes two parts: incorporating position prior information and incorporating context information. The local blocks are obtained by cutting the extracted rough features along the spatial dimension, incorporating the position prior information to obtain the position prior information, and constructing a context diagonal matrix for the local blocks by incorporating the context information to contextualize the local blocks; element by element is added to the position prior information to obtain an affinity matrix; The coarse features are aggregated according to the affinity matrix to obtain the enhanced feature representation after embedding pixel scene perception.

8. The method for land use classification based on remote sensing images based on residual network according to claim 7, characterized in that: The incorporation of position prior information enables pixels to perceive the intrinsic distribution pattern of objects in remote sensing images in space. It is necessary to construct relative position codes between pixels and embed rough feature representations in local blocks to improve the sensitivity of attention to spatial distribution. By constructing relative position codes between pixels and integrating them into rough feature representations, the model's perception of spatial layout is enhanced. Perform 1×1 convolution on the extracted enhanced rough features, calculate the query vector Q, key vector K, and value vector V of each focus point, reshape and arrange them, and obtain the matrix Q composed of Q, K, and V sh , K sh 、V sh Three matrices, Q sh The process of incorporating position prior information is as follows: Calculate the relative position offset of pixels in the horizontal and vertical directions, and use the relative position offset to select a specific training vector in the predefined coding library as the relative position code r, where the dimension of r is [hw×hw×C], where the i-th hw×C matrix represents the relative position code of the i-th pixel and other pixels; Associate the i-th row in the Q matrix with the relative position code r corresponding to the i-th pixel i The transpose of the matrix multiplication is performed to obtain the position prior information p of the i-th pixel i , splicing the position prior of each pixel along the vertical direction to obtain the global position prior information p of the local block; combining the relative position encoding with the coarse features of the input to obtain an enhanced feature representation with prior knowledge of the spatial distribution; In order to incorporate context information and form an attention mechanism that can be adjusted according to the context, the two branches perform parallel global average pooling and maximum pooling on the rough feature local blocks of the input, and the pooling results of the two branches are normalized and convolved using the softmax function to obtain the context vector, where the feature maps used by the two branches share the same weights; the context vectors obtained by the two branches are added element by element, output through the sigmoid function and converted into a context diagonal matrix c, the dimension of c is [C×C]; after using c to contextualize Q, aggregate K sh Get the similarity matrix S sh , the affinity matrix in the scene perception module is: U sh =softmax(S sh +p), taking into account the relative position of pixels and the similarity between pixel features; finally, according to U sh Polymerization V sh Obtain feature representation after incorporating pixel scene perception.

9. The method for land use classification based on remote sensing images based on residual network according to claim 1, characterized in that: According to step S400, the model training adopts a transfer learning strategy to transfer the model parameters of the backbone network ResNet50 learned on the large-scale natural image ImageNet dataset for classification tasks to the land use classification task; Use a part of the weight parameters frozen and saved in pre-training as the initial parameters of the improved network model, and continue iterative training on the remote sensing dataset; In the first stage of transfer learning, the backbone network model ResNet50 is pre-trained on the ImageNet dataset to extract features from the input image, obtain the common underlying features of the image, and obtain pre-trained weights; Fixed the feature extraction layer, input ImageNet to train ResNet50, freeze the parameters of different convolutional layers, and save every change of parameter values ​​by default; In the second stage of transfer learning, the entire improved network model is trained, the weights of the underlying convolutional layer of the original ResNet50 network are retained, the training set data of the remote sensing dataset is used as the initial input of the improved model, and the pre-trained weight parameters of the ResNet50 network model pre-trained on ImageNet are used; During the training process, the Adam optimizer is used to accelerate the convergence of the model, and the cosine annealing strategy is used to update the learning rate; During the training process, a combination of binary cross entropy loss function and Dice loss function is used to measure the difference between the output results of the improved network model and the corresponding labels, and the model parameters are adjusted through the optimization algorithm to make the model gradually converge to obtain the improved network model after training; through training, the parameters of the improved network model are further adjusted to adapt to the land use classification task, and the tuned model is obtained; Finally, the test set is used to verify the tuned model and output the land use classification results.

10. The method for land use classification based on remote sensing images based on residual network according to claim 1, characterized in that: According to step S500, the trained network model is evaluated using the validation set data, the performance of the model is evaluated by calculating the MIoU, overall accuracy, Kappa coefficient and F1 score indicators, and the parameters of the improved network model are adjusted according to the evaluation results; MIoU calculates the ratio of the intersection and union between the true value and the predicted value in two sets. The ratio of the intersection and union of each type of predicted label result and the true label in the image is calculated, and the sum is taken as the average. The formula is as follows: Among them, k ii represents the number of pixels correctly predicted as category i; k ij represents the number of pixels that are incorrectly predicted to be of category j but are actually of category i; k ji represents the number of pixels that are incorrectly predicted to be of category i but are actually of category j; n is the total number of samples; The overall accuracy is calculated based on the confusion matrix. The overall accuracy is a classifier performance indicator that indicates the ratio of the number of correctly classified pixels in each category to the total number of samples. The calculation formula for the overall accuracy of the multi-classification task is as follows: Among them, OA is the overall accuracy, C is the number of sample categories, and a ii is the number of samples correctly classified in the i-th category; The Kappa coefficient is an indicator that measures the degree of agreement between the model classification results and the actual observed values. It represents the proportion of errors reduced by using the classifier compared to completely random classification. The Kappa calculation result is between -1 and 1. The F1 score is a measure of the classification problem, with a value range of [0, 1]. The F1 score is the harmonic mean of precision and recall. The precision represents the producer precision in remote sensing classification, and the recall represents the user precision in remote sensing classification. The formula is as follows: Among them, PA represents precision and UA represents recall.

Citation Information

Cited By

  • Image semantic segmentation method based on TransDeep model

    CN119360028A

  • Target detection method based on improved feature fusion

    CN119360173A

  • Illumination condition adaptive soil humidity estimation method based on multi-modal data fusion

    CN119513523A

  • Privacy image detection method based on multi-scale features and cross-modal residual attention

    CN119625424A

  • Private image detection method based on multi-scale features and cross-modal residual attention

    CN119625424B