High-resolution land cover remote sensing classification method and system based on collaborative network
By designing local and global feature encoding modules for collaborative networks and combining them with multi-scale weighted loss function optimization, the problem of missing global and local feature information in land cover classification was solved, improving the classification accuracy of high-resolution remote sensing image data, especially the ability to identify minority and difficult land cover types.
Patent Information
- Application Number
- CN202411196532.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-29
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-08-29
AI Technical Summary
Existing technologies struggle to simultaneously consider both global and local features in land cover classification and monitoring, resulting in insufficient classification accuracy for high-resolution remote sensing image data, particularly in identifying minority and difficult land cover types.
Design a collaborative network including a local feature encoding module and a global feature encoding module. By enhancing the acquisition of local and global feature information and combining it with a feature decoding module to optimize the multi-scale weighted loss function, the accuracy of classification prediction can be improved.
It significantly improves the accuracy of land cover classification monitoring, especially the ability to identify minority and difficult types of land cover, and achieves higher classification prediction accuracy.
Smart Images

Figure CN118691914B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of image recognition processing, and in particular designs a high-resolution land cover remote sensing classification method and system based on a collaborative network. Background Art
[0002] With the rapid development of environmental resource planning and management, surface cover classification monitoring, as an important monitoring method for climate change and environmental resource changes, has gradually become an important part that cannot be ignored. In particular, the earth observation and remote sensing technology are now in a stage of rapid progress, which has brought a large amount of high-resolution remote sensing image data to the surface cover classification monitoring work, and thus put forward higher requirements for the accuracy of surface cover classification monitoring.
[0003] In the prior art, a semantic segmentation framework based on a deep convolutional neural network (CNN) is usually used in land cover classification monitoring. Currently, most classification methods based on a deep convolutional neural network (CNN) architecture usually adopt an encoder-decoder structure, in which the encoder relies on stacked convolutions for multi-scale feature representation learning, while the decoder is used to generate a classification map with predicted pixel-by-pixel category scores, and has achieved relatively excellent land cover classification results. However, the local connection and weight sharing properties of the convolution operator determine the inductive bias of the CNN structure, namely locality and translation invariance. Although these two properties can effectively reduce the number of parameters, they also limit the receptive field of the convolution operation to a local area, making it difficult to classify distant regions that are crucial in dense prediction tasks. The visual Transformer (ViT) in the image domain based on the Transformer deep network architecture can be used as an important direction for applying the non-convolutional structure to the land cover classification task. Although the land cover classification methods based on ViT have shown outstanding capabilities in global information modeling, they usually have low generalization capabilities and large computational requirements, so the results achieved on small-scale specific land cover classification datasets are not very satisfactory. In addition, the lack of inductive bias in the Transformer may bring difficulties to the representation of local semantic information, especially for high-resolution remote sensing image data with rich details and high class imbalance.
[0004] Therefore, when facing the needs of large-scale, high-precision surface cover classification monitoring, how to simultaneously consider global and local feature information to improve the accuracy of surface cover classification monitoring is an urgent problem to be solved. Summary of the invention
[0005] Based on this, the purpose of the present invention is to provide a high-resolution surface cover remote sensing classification method and system based on a collaborative network. By designing a collaborative network, local cover features and global cover features are enhanced according to local feature encoding modules and global feature encoding modules to obtain more local feature information and global feature information, thereby improving the accuracy of classification prediction, and then designing a feature decoding module to perform surface cover classification prediction at multiple spatial scales, and by designing a multi-scale weighted loss function, a multi-weighted loss function is established according to the median frequency and contrast factor of the cover type and applied to the surface cover classification prediction of different scales to enhance the recognition ability of minority and difficult cover types, thereby improving the accuracy of the overall classification prediction, and finally performing accuracy verification to output the final surface cover classification prediction result. The present invention greatly improves the accuracy of surface cover classification monitoring.
[0006] The present invention proposes a high-resolution land cover remote sensing classification method based on a collaborative network, comprising:
[0007] Acquire remote sensing image data and preprocess them to produce surface cover sample data;
[0008] Inputting the surface cover sample data into a collaborative network, wherein the collaborative network includes a local feature encoding module, a global feature encoding module and a feature decoding module;
[0009] The local feature encoding module obtains the local enhanced coverage features of the surface coverage sample data;
[0010] The global feature encoding module obtains the global enhanced coverage features of the surface coverage sample data;
[0011] The feature decoding module obtains the surface cover classification prediction according to the local enhanced cover feature and the global enhanced cover feature;
[0012] After iterative optimization according to the multi-scale weighted loss function, accuracy verification is performed to output the final surface cover classification prediction results.
[0013] In summary, according to the above-mentioned high-resolution surface cover remote sensing classification method based on collaborative network, by designing a collaborative network, local cover features and global cover features are enhanced according to local feature encoding modules and global feature encoding modules to obtain more local feature information and global feature information, thereby improving the accuracy of classification prediction, and then designing a feature decoding module to perform surface cover classification prediction at multiple spatial scales, and by designing a multi-scale weighted loss function, a multiple weighted loss function is established according to the median frequency and contrast factor of the cover type and applied to the surface cover classification prediction of different scales to enhance the recognition ability of minority and difficult cover types, thereby improving the accuracy of the overall classification prediction, and finally performing accuracy verification to output the final surface cover classification prediction result. The present invention greatly improves the accuracy of surface cover classification monitoring. Specifically, remote sensing image data is obtained and preprocessed to produce surface cover sample data. The preprocessing is performed to improve the data quality input into the collaborative network, thereby improving the overall classification prediction accuracy. The surface cover sample data is input into the collaborative network. The collaborative network includes a local feature encoding module, a global feature encoding module and a feature decoding module. The local feature encoding module obtains the local enhanced cover features of the surface cover sample data to obtain more local feature information. The global feature encoding module obtains the global enhanced cover features of the surface cover sample data to obtain more global feature information. The feature decoding module obtains the surface cover classification prediction according to the local enhanced cover features and the global enhanced cover features to obtain classification predictions at multiple spatial scales. After iterative optimization according to a multi-scale weighted loss function, accuracy verification is performed to output the final surface cover classification prediction result to improve the recognition ability of minority and difficult cover types. The present invention greatly improves the accuracy of surface cover classification monitoring.
[0014] Furthermore, the step of acquiring remote sensing image data and preprocessing it to produce surface cover sample data specifically includes:
[0015] Acquire remote sensing image data, and screen four bands of red, green, blue, and near infrared data in the remote sensing image data for preprocessing, wherein the preprocessing includes geometric correction, atmospheric correction, and image mosaicking;
[0016] Obtain ground truth label data according to preset cover classification rules;
[0017] Then, the preprocessed remote sensing image data and the ground truth label data are batch-cut according to the non-overlap sliding window, and the size of the non-overlap sliding window is ,in Indicates height, Indicates width;
[0018] All the data after batch clipping are divided into training sample data and testing sample data according to the preset sample data ratio to produce surface cover sample data.
[0019] Furthermore, the step of obtaining the local enhanced cover features of the surface cover sample data by the local feature encoding module specifically includes:
[0020] The surface cover sample data is input into a local feature encoding module, wherein the local feature encoding module includes a position relationship aggregation block and a channel relationship aggregation block;
[0021] The double convolutional layer of the position relationship aggregation block performs local feature encoding, the kernel size of the double convolutional layer is {3x3, 3x3}, and the feature is refined according to the residual identity mapping of the residual structure, and then the query matrix, key matrix and value matrix of the position relationship are obtained, and the shallow local enhanced coverage features of the spatial dimension context attention are obtained according to the dot product operation and the matrix addition operation;
[0022] The convolution layer of the channel relationship aggregation block performs local feature encoding, the kernel size of the convolution layer is {1x1, 3x3, 1x1}, and features are refined according to the residual identity mapping of the residual structure, and then the query matrix, key matrix and value matrix of the channel relationship are obtained according to a single 3x3 convolution, and the deep local enhanced coverage features of the channel dimension context attention are obtained according to the dot product operation and the matrix addition operation;
[0023] According to the shallow local enhanced coverage feature and the deep local enhanced coverage feature, a local enhanced coverage feature is acquired.
[0024] Furthermore, the step of obtaining the global enhanced cover features of the surface cover sample data by the global feature encoding module specifically includes:
[0025] The surface cover sample data is input into a global feature encoding module, wherein the global feature encoding module includes an image block embedding layer and a dilation and diversion ViT block;
[0026] The image block embedding layer includes a plurality of layers with different overlapping degrees to convert the surface cover sample data into a vector sequence;
[0027] The dilated shunt ViT block includes a normalization layer, a dilated shunt self-attention head and a feature feed-forward layer, wherein the dilated shunt self-attention head includes two dilated convolutional layers with dilation rates of {2, 4}, respectively, to generate a global enhanced coverage feature according to the vector sequence.
[0028] Furthermore, the feature decoding module obtains the surface cover classification prediction step according to the local enhanced cover feature and the global enhanced cover feature, specifically including:
[0029] The local enhanced cover features and the global enhanced cover features are input into the feature decoding module, and the channels are spliced according to the feature scale. Then, the dimension is reduced according to the 3x3 convolution layer and a query matrix, a key matrix and a value matrix with a simplified self-attention structure are generated. The value matrix is spliced by a single 1x1 convolution feature and four dilated convolution features with hole rates of {1, 2, 4, 6}, and then a single 3x3 convolution layer and a Softmax layer are used to generate the surface cover classification prediction.
[0030] Furthermore, the multi-scale weighted loss function specifically includes:
[0031]
[0032]
[0033]
[0034] in, represents the standard cross entropy loss function, Indicates height, Indicates width, Represents the pixel ordinal number, Indicates the number of cover types, Indicates the ordinal number of the cover type, represents the ground truth, represents the prediction score, represents the weighted loss function, represents the loss contrast parameter, represents the median function, Indicates The median frequency calculation function of the cover type, represents the multi-scale weighted loss function, Indicates the spatial scale.
[0035] Furthermore, the step of performing accuracy verification to output the final surface cover classification prediction result specifically includes:
[0036] Constructing a confusion function based on the land cover classification predictions and the ground truth labels in the land cover sample data;
[0037] Then, the producer accuracy and user accuracy are obtained according to the confusion function to verify the accuracy and output the final surface cover classification prediction result.
[0038] The present invention proposes a high-resolution land cover remote sensing classification system based on a collaborative network, comprising:
[0039] A preprocessing module is used to obtain remote sensing image data and perform preprocessing to produce surface cover sample data;
[0040] A feature extraction module, used for inputting the surface cover sample data into a collaborative network, wherein the collaborative network includes a local feature encoding module, a global feature encoding module and a feature decoding module;
[0041] The local feature encoding module obtains the local enhanced coverage features of the surface coverage sample data;
[0042] The global feature encoding module obtains the global enhanced coverage features of the surface coverage sample data;
[0043] The feature decoding module obtains the surface cover classification prediction according to the local enhanced cover feature and the global enhanced cover feature;
[0044] The optimization and verification module is used to perform accuracy verification after iterative optimization based on the multi-scale weighted loss function to output the final surface cover classification prediction result.
[0045] The present invention also provides a storage medium, wherein the storage medium stores one or more programs, and when the programs are executed by a processor, the high-resolution land cover remote sensing classification method based on collaborative network as described above is implemented.
[0046] The present invention also provides a computer device, the computer device comprising a memory and a processor, wherein:
[0047] The memory is used to store computer programs;
[0048] When the processor is used to execute the computer program stored in the memory, the high-resolution land cover remote sensing classification method based on collaborative network as described above is implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 A flowchart of a high-resolution land cover remote sensing classification method based on a collaborative network proposed in the first embodiment of the present invention;
[0050] Figure 2 A flowchart of a collaborative network-based high-resolution land cover remote sensing classification method proposed in the second embodiment of the present invention;
[0051] Figure 3 A schematic diagram of the structure of a high-resolution land cover remote sensing classification system based on a collaborative network proposed in the third embodiment of the present invention;
[0052] Figure 4 This is a structural diagram of the local feature encoding module proposed by the present invention;
[0053] Figure 5 This is a structural diagram of the global feature encoding module proposed by the present invention;
[0054] Figure 6 This is a structural diagram of the feature decoding module proposed by the present invention;
[0055] Figure 7 This is a structural diagram of the collaborative network proposed in the present invention.
[0056] The following specific implementation manner will further illustrate the present invention in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION
[0057] In order to facilitate understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. Several embodiments of the present invention are provided in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.
[0058] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only.
[0059] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.
[0060] See also Figure 1 , which is a flow chart of a high-resolution land cover remote sensing classification method based on a collaborative network according to a first embodiment of the present invention. The high-resolution land cover remote sensing classification method based on a collaborative network comprises steps S01 to S03, wherein:
[0061] Step S01: acquiring remote sensing image data and preprocessing it to produce surface cover sample data;
[0062] It should be noted that in this embodiment, remote sensing image data is obtained, and four bands of red, green, blue and near infrared in the remote sensing image data are screened for preprocessing, and the preprocessing includes geometric correction, atmospheric correction and image mosaicking;
[0063] Obtain ground truth label data according to preset cover classification rules;
[0064] The preset cover classification rules in this embodiment include the cover types of cultivated land, forest land, grassland, bare land, road, water body, and building;
[0065] Then, the preprocessed remote sensing image data and the ground truth label data are batch-cut according to the non-overlap sliding window, and the size of the non-overlap sliding window is ,in Indicates height, Indicates width;
[0066] Divide all the batch-cut data into training sample data and test sample data according to a preset sample data ratio to produce surface cover sample data;
[0067] The preset sample data ratio in this embodiment is to randomly divide the training sample data and the test sample data in a ratio of 4:1.
[0068] Step S02: inputting the surface cover sample data into the collaborative network, the collaborative network includes a local feature encoding module, a global feature encoding module and a feature decoding module, the local feature encoding module obtains the local enhanced cover features of the surface cover sample data, the global feature encoding module obtains the global enhanced cover features of the surface cover sample data, and the feature decoding module obtains the surface cover classification prediction according to the local enhanced cover features and the global enhanced cover features;
[0069] It should be noted that the local feature encoding module in this embodiment includes a position relationship aggregation block and a channel relationship aggregation block. For specific structures, please refer to Figure 4 ;
[0070] The double convolutional layer of the position relationship aggregation block performs local feature encoding, the kernel size of the double convolutional layer is {3x3, 3x3}, and the feature is refined according to the residual identity mapping of the residual structure, and then the query matrix, key matrix and value matrix of the position relationship are obtained, and the shallow local enhanced coverage features of the spatial dimension context attention are obtained according to the dot product operation and the matrix addition operation;
[0071] The convolution layer of the channel relationship aggregation block performs local feature encoding, the kernel size of the convolution layer is {1x1, 3x3, 1x1}, and features are refined according to the residual identity mapping of the residual structure, and then the query matrix, key matrix and value matrix of the channel relationship are obtained according to a single 3x3 convolution, and the deep local enhanced coverage features of the channel dimension context attention are obtained according to the dot product operation and the matrix addition operation;
[0072] According to the shallow local enhanced coverage feature and the deep local enhanced coverage feature, a local enhanced coverage feature is acquired.
[0073] It should be noted that the global feature encoding module in this embodiment includes an image block embedding layer and an expansion and diversion ViT block. For the specific structure, please refer to Figure 5 ;
[0074] The image block embedding layer includes a plurality of layers with different overlapping degrees to convert the surface cover sample data into a vector sequence;
[0075] The dilated shunt ViT block includes a normalization layer, a dilated shunt self-attention head and a feature feed-forward layer. The dilated shunt self-attention head includes two dilated convolutional layers with void rates {2, 4}, respectively, to generate a global enhanced coverage feature based on the vector sequence. The global feature encoding module in this embodiment solves the problem that the point-to-point fully connected layer cannot learn the cross-vector restriction.
[0076] It should be noted that the feature decoding module in this embodiment performs channel splicing on the local enhanced cover features and the global enhanced cover features according to the feature scale, and then performs dimension reduction according to the 3x3 convolution layer and generates a query matrix, a key matrix and a value matrix with a simplified self-attention structure. The value matrix is composed of a single 1x1 convolution feature and four dilated convolution features with hole rates of {1, 2, 4, 6}, respectively. The surface cover classification prediction is then generated according to a single 3x3 convolution layer and a Softmax layer. For the specific structure, please refer to Figure 6 .
[0077] It should be noted that the collaborative network in this embodiment needs to be pre-trained. During pre-training, the training samples are first enhanced, and the training sample images are expanded using enhancement methods such as geometric transformation and color transformation. The operation types include rotation, flipping, noise, and blur. Then the training parameters are set. The hyperparameters of the number of iterations, learning rate, and batch size are set for the collaborative network according to the volume of training data. Then the optimization method is selected. The stochastic gradient descent algorithm (SGD) and the adaptive momentum estimation algorithm (Adam) are used as the optimization methods for the local feature encoding module and the global feature encoding module of the collaborative network, respectively, and the classification model is iteratively trained. Finally, the network model is stored, and the parameter model of the collaborative network is saved after the training process is completed. For the specific structure of the collaborative network, please refer to Figure 7 .
[0078] Step S03: After iterative optimization according to the multi-scale weighted loss function, accuracy verification is performed to output the final surface cover classification prediction result;
[0079] It should be noted that the multi-scale weighted loss function in this embodiment specifically includes:
[0080]
[0081]
[0082]
[0083] in, represents the standard cross entropy loss function, Indicates height, Indicates width, Represents the pixel ordinal number, Indicates the number of cover types, Indicates the ordinal number of the cover type, represents the ground truth, represents the prediction score, represents the weighted loss function, represents the loss contrast parameter, represents the median function, Indicates The median frequency calculation function of the cover type, represents the multi-scale weighted loss function, Indicates spatial scale;
[0084] The accuracy verification in this embodiment first constructs a confusion function based on the ground truth labels in the land cover classification prediction and land cover sample data;
[0085] Then, the producer accuracy and user accuracy are obtained according to the confusion function to verify the accuracy and output the final surface cover classification prediction result.
[0086] In summary, according to the above-mentioned high-resolution surface cover remote sensing classification method based on collaborative network, by designing a collaborative network, local cover features and global cover features are enhanced according to local feature encoding modules and global feature encoding modules to obtain more local feature information and global feature information, thereby improving the accuracy of classification prediction, and then designing a feature decoding module to perform surface cover classification prediction at multiple spatial scales, and by designing a multi-scale weighted loss function, a multiple weighted loss function is established according to the median frequency and contrast factor of the cover type and applied to the surface cover classification prediction of different scales to enhance the recognition ability of minority and difficult cover types, thereby improving the accuracy of the overall classification prediction, and finally performing accuracy verification to output the final surface cover classification prediction result. The present invention greatly improves the accuracy of surface cover classification monitoring. Specifically, remote sensing image data is obtained and preprocessed to produce surface cover sample data. The preprocessing is performed to improve the data quality input into the collaborative network, thereby improving the overall classification prediction accuracy. The surface cover sample data is input into the collaborative network. The collaborative network includes a local feature encoding module, a global feature encoding module and a feature decoding module. The local feature encoding module obtains the local enhanced cover features of the surface cover sample data to obtain more local feature information. The global feature encoding module obtains the global enhanced cover features of the surface cover sample data to obtain more global feature information. The feature decoding module obtains the surface cover classification prediction according to the local enhanced cover features and the global enhanced cover features to obtain classification predictions at multiple spatial scales. After iterative optimization according to a multi-scale weighted loss function, accuracy verification is performed to output the final surface cover classification prediction result to improve the recognition ability of minority and difficult cover types. The present invention greatly improves the accuracy of surface cover classification monitoring.
[0087] See also Figure 2 , which is a flow chart of a high-resolution land cover remote sensing classification method based on a collaborative network according to a second embodiment of the present invention. The high-resolution land cover remote sensing classification method based on a collaborative network comprises steps S11 to S15, wherein:
[0088] Step S11: acquiring remote sensing image data, screening red, green, blue and near-infrared band data in the remote sensing image data to perform geometric correction, atmospheric correction and image mosaicking, acquiring ground truth label data according to preset cover classification rules, and then batch-cutting the pre-processed remote sensing image data and the ground truth label data according to a non-overlap sliding window, dividing all the batch-cut data into training sample data and test sample data according to a preset sample data ratio to produce surface cover sample data;
[0089] Step S12: the surface cover sample data is input into a local feature encoding module, which includes a position relationship aggregation block and a channel relationship aggregation block. The double convolutional layer of the position relationship aggregation block performs local feature encoding, and the convolutional layer of the channel relationship aggregation block performs local feature encoding. According to the shallow local enhanced cover feature and the deep local enhanced cover feature, the local enhanced cover feature is obtained;
[0090] Step S13: the surface cover sample data is input into a global feature encoding module, which includes an image block embedding layer and an expansion and diversion ViT block. The image block embedding layer converts the surface cover sample data into a vector sequence, and the expansion and diversion ViT block generates a global enhanced cover feature according to the vector sequence.
[0091] Step S14: the local enhanced cover features and the global enhanced cover features are input into the feature decoding module, and channel splicing is performed according to the feature scale, and then the dimension is reduced and a query matrix, a key matrix and a value matrix with a simplified self-attention structure are generated, and then the surface cover classification prediction is generated;
[0092] Step S15: After iterative optimization according to the multi-scale weighted loss function, a confusion function is constructed according to the ground truth labels in the land cover classification prediction and the land cover sample data, and then the producer accuracy and user accuracy are obtained according to the confusion function to perform accuracy verification and output the final land cover classification prediction result.
[0093] In summary, according to the above-mentioned high-resolution surface cover remote sensing classification method based on collaborative network, by designing a collaborative network, local cover features and global cover features are enhanced according to local feature encoding modules and global feature encoding modules to obtain more local feature information and global feature information, thereby improving the accuracy of classification prediction, and then designing a feature decoding module to perform surface cover classification prediction at multiple spatial scales, and by designing a multi-scale weighted loss function, a multiple weighted loss function is established according to the median frequency and contrast factor of the cover type and applied to the surface cover classification prediction of different scales to enhance the recognition ability of minority and difficult cover types, thereby improving the accuracy of the overall classification prediction, and finally performing accuracy verification to output the final surface cover classification prediction result. The present invention greatly improves the accuracy of surface cover classification monitoring. Specifically, remote sensing image data is obtained and preprocessed to produce surface cover sample data. The preprocessing is performed to improve the data quality input into the collaborative network, thereby improving the overall classification prediction accuracy. The surface cover sample data is input into the collaborative network. The collaborative network includes a local feature encoding module, a global feature encoding module and a feature decoding module. The local feature encoding module obtains the local enhanced cover features of the surface cover sample data to obtain more local feature information. The global feature encoding module obtains the global enhanced cover features of the surface cover sample data to obtain more global feature information. The feature decoding module obtains the surface cover classification prediction according to the local enhanced cover features and the global enhanced cover features to obtain classification predictions at multiple spatial scales. After iterative optimization according to a multi-scale weighted loss function, accuracy verification is performed to output the final surface cover classification prediction result to improve the recognition ability of minority and difficult cover types. The present invention greatly improves the accuracy of surface cover classification monitoring.
[0094] See also Figure 3 , which is a schematic diagram of the structure of a high-resolution land cover remote sensing classification system based on a collaborative network according to a third embodiment of the present invention, the system comprises:
[0095] The preprocessing module 10 is used to obtain remote sensing image data and perform preprocessing to produce surface cover sample data;
[0096] A feature extraction module 20, used to input the surface cover sample data into a collaborative network, wherein the collaborative network includes a local feature encoding module, a global feature encoding module and a feature decoding module;
[0097] The local feature encoding module obtains the local enhanced coverage features of the surface coverage sample data;
[0098] The global feature encoding module obtains the global enhanced coverage features of the surface coverage sample data;
[0099] The feature decoding module obtains the surface cover classification prediction according to the local enhanced cover feature and the global enhanced cover feature;
[0100] The optimization verification module 30 is used to perform accuracy verification after iterative optimization according to the multi-scale weighted loss function to output the final surface cover classification prediction result.
[0101] The present invention also proposes a computer storage medium on which one or more programs are stored. When the programs are executed by a processor, the above-mentioned high-resolution land cover remote sensing classification method based on collaborative network is implemented.
[0102] The present invention also proposes a computer device, including a memory and a processor, wherein the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory to implement the above-mentioned high-resolution surface cover remote sensing classification method based on collaborative network.
[0103] Those skilled in the art will appreciate that the logic and / or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For purposes of this specification, "computer-readable medium" may be any device that can contain storage, communication, propagation or transmission of a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.
[0104] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.
[0105] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or a combination thereof: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0106] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0107] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A high-resolution land cover remote sensing classification method based on collaborative network, characterized in that: include: Acquire remote sensing image data and preprocess them to produce surface cover sample data; Inputting the surface cover sample data into a collaborative network, wherein the collaborative network includes a local feature encoding module, a global feature encoding module and a feature decoding module; The local feature encoding module obtains the local enhanced coverage features of the surface coverage sample data; The step of the local feature encoding module acquiring the local enhanced coverage features of the surface coverage sample data specifically includes: The surface cover sample data is input into a local feature encoding module, wherein the local feature encoding module includes a position relationship aggregation block and a channel relationship aggregation block; The double convolutional layer of the position relationship aggregation block performs local feature encoding, the kernel size of the double convolutional layer is {3x3, 3x3}, and the feature is refined according to the residual identity mapping of the residual structure, and then the query matrix, key matrix and value matrix of the position relationship are obtained, and the shallow local enhanced coverage features of the spatial dimension context attention are obtained according to the dot product operation and the matrix addition operation; The convolution layer of the channel relationship aggregation block performs local feature encoding, the kernel size of the convolution layer is {1x1, 3x3, 1x1}, and features are refined according to the residual identity mapping of the residual structure, and then the query matrix, key matrix and value matrix of the channel relationship are obtained according to a single 3x3 convolution, and the deep local enhanced coverage features of the channel dimension context attention are obtained according to the dot product operation and the matrix addition operation; Acquire a local enhanced coverage feature according to the shallow local enhanced coverage feature and the deep local enhanced coverage feature; The global feature encoding module obtains the global enhanced coverage features of the surface coverage sample data; The step of the global feature encoding module acquiring the global enhanced cover feature of the surface cover sample data specifically includes: The surface cover sample data is input into a global feature encoding module, wherein the global feature encoding module includes an image block embedding layer and a dilation and diversion ViT block; The image block embedding layer includes a plurality of layers with different overlapping degrees to convert the surface cover sample data into a vector sequence; The dilated shunt ViT block includes a normalization layer, a dilated shunt self-attention head and a feature feed-forward layer, wherein the dilated shunt self-attention head includes two dilated convolutional layers with dilation rates {2, 4}, respectively, to generate a global enhanced coverage feature according to the vector sequence; The feature decoding module obtains the surface cover classification prediction according to the local enhanced cover feature and the global enhanced cover feature; The step of obtaining the surface cover classification prediction by the feature decoding module according to the local enhanced cover feature and the global enhanced cover feature specifically includes: The local enhanced cover features and the global enhanced cover features are input into the feature decoding module, and the channels are spliced according to the feature scale. Then, the dimension is reduced according to the 3x3 convolution layer and a query matrix, a key matrix and a value matrix with a simplified self-attention structure are generated. The value matrix is spliced by a single 1x1 convolution feature and four dilated convolution features with hole rates of {1, 2, 4, 6}, respectively. Then, a single 3x3 convolution layer and a Softmax layer are used to generate the surface cover classification prediction. After iterative optimization according to the multi-scale weighted loss function, accuracy verification is performed to output the final surface cover classification prediction results.
2. The high-resolution land cover remote sensing classification method based on collaborative network according to claim 1, characterized in that: The step of acquiring remote sensing image data and preprocessing it to produce surface cover sample data specifically includes: Acquire remote sensing image data, and screen four bands of red, green, blue, and near infrared data in the remote sensing image data for preprocessing, wherein the preprocessing includes geometric correction, atmospheric correction, and image mosaicking; Obtain ground truth label data according to preset cover classification rules; Then, the preprocessed remote sensing image data and the ground truth label data are batch-cut according to the non-overlap sliding window, and the size of the non-overlap sliding window is ,in Indicates height, Indicates width; All the data after batch clipping are divided into training sample data and testing sample data according to the preset sample data ratio to produce surface cover sample data.
3. The high-resolution land cover remote sensing classification method based on collaborative network according to claim 1, characterized in that: The multi-scale weighted loss function specifically includes: in, represents the standard cross entropy loss function, Indicates height, Indicates width, Represents the pixel ordinal number, Indicates the number of cover types, Indicates the ordinal number of the cover type, represents the ground truth, represents the prediction score, represents the weighted loss function, represents the loss contrast parameter, represents the median function, Indicates The median frequency calculation function of the cover type, represents the multi-scale weighted loss function, Indicates the spatial scale.
4. The high-resolution land cover remote sensing classification method based on collaborative network according to claim 1, characterized in that: The step of performing accuracy verification to output the final surface cover classification prediction result specifically includes: Constructing a confusion function based on the land cover classification predictions and the ground truth labels in the land cover sample data; Then, the producer accuracy and user accuracy are obtained according to the confusion function to verify the accuracy and output the final surface cover classification prediction result.
5. A high-resolution land cover remote sensing classification system based on collaborative network, characterized in that: include: A preprocessing module is used to obtain remote sensing image data and perform preprocessing to produce surface cover sample data; A feature extraction module, used for inputting the surface cover sample data into a collaborative network, wherein the collaborative network includes a local feature encoding module, a global feature encoding module and a feature decoding module; The local feature encoding module obtains the local enhanced coverage features of the surface coverage sample data; The step of the local feature encoding module acquiring the local enhanced coverage features of the surface coverage sample data specifically includes: The surface cover sample data is input into a local feature encoding module, wherein the local feature encoding module includes a position relationship aggregation block and a channel relationship aggregation block; The double convolutional layer of the position relationship aggregation block performs local feature encoding, the kernel size of the double convolutional layer is {3x3, 3x3}, and the feature is refined according to the residual identity mapping of the residual structure, and then the query matrix, key matrix and value matrix of the position relationship are obtained, and the shallow local enhanced coverage features of the spatial dimension context attention are obtained according to the dot product operation and the matrix addition operation; The convolution layer of the channel relationship aggregation block performs local feature encoding, the kernel size of the convolution layer is {1x1, 3x3, 1x1}, and features are refined according to the residual identity mapping of the residual structure, and then the query matrix, key matrix and value matrix of the channel relationship are obtained according to a single 3x3 convolution, and the deep local enhanced coverage features of the channel dimension context attention are obtained according to the dot product operation and the matrix addition operation; Acquire a local enhanced coverage feature according to the shallow local enhanced coverage feature and the deep local enhanced coverage feature; The global feature encoding module obtains the global enhanced coverage features of the surface coverage sample data; The step of the global feature encoding module acquiring the global enhanced cover feature of the surface cover sample data specifically includes: The surface cover sample data is input into a global feature encoding module, wherein the global feature encoding module includes an image block embedding layer and a dilation and diversion ViT block; The image block embedding layer includes a plurality of layers with different overlapping degrees to convert the surface cover sample data into a vector sequence; The dilated shunt ViT block includes a normalization layer, a dilated shunt self-attention head and a feature feed-forward layer, wherein the dilated shunt self-attention head includes two dilated convolutional layers with dilation rates {2, 4}, respectively, to generate a global enhanced coverage feature according to the vector sequence; The feature decoding module obtains the surface cover classification prediction according to the local enhanced cover feature and the global enhanced cover feature; The step of obtaining the surface cover classification prediction by the feature decoding module according to the local enhanced cover feature and the global enhanced cover feature specifically includes: The local enhanced cover features and the global enhanced cover features are input into the feature decoding module, and the channels are spliced according to the feature scale. Then, the dimension is reduced according to the 3x3 convolution layer and a query matrix, a key matrix and a value matrix with a simplified self-attention structure are generated. The value matrix is spliced by a single 1x1 convolution feature and four dilated convolution features with hole rates of {1, 2, 4, 6}, respectively. Then, a single 3x3 convolution layer and a Softmax layer are used to generate the surface cover classification prediction. The optimization and verification module is used to perform accuracy verification after iterative optimization based on the multi-scale weighted loss function to output the final surface cover classification prediction result.
6. A storage medium, characterized in that: The storage medium stores one or more programs, which, when executed by a processor, implement the high-resolution land cover remote sensing classification method based on a collaborative network as described in any one of claims 1 to 4.
7. A computer device, characterized in that: The computer device comprises a memory and a processor, wherein: The memory is used to store computer programs; When the processor is used to execute the computer program stored in the memory, it implements the high-resolution land cover remote sensing classification method based on collaborative network as described in any one of claims 1-4.
