Remote sensing monitoring method for river and lake management violations based on Laplace and similarity
By using Laplacian pyramid and similarity attention in river and lake remote sensing image processing, high-frequency components and salient features are extracted, which solves the problem of insufficient detection accuracy of small-sized objects in the existing technology and achieves more efficient and accurate detection. Monitoring of irregularities in rivers and lakes.
Patent Information
- Application Number
- CN202410666206.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-05-28
AI Technical Summary
Existing technology is difficult to quickly and accurately detect violations of small-sized ground objects in river and lake remote sensing image processing, and feature extraction is not robust to lighting, noise, and seasonal factors, affecting detection accuracy.
The method of feature enhancement and similarity attention based on Laplacian pyramid is used to extract pixel-level salient features through high-frequency components in the Laplacian pyramid, and similarity attention is used to highlight the violation area to achieve multi-scale feature fusion and Precise segmentation.
It improves the accuracy and robustness of detection of violations in rivers and lakes, enhances the model's ability to identify violation areas, and improves detection efficiency and identification accuracy.
Smart Images

Figure CN118262245B
Abstract
Description
Technical Field
[0001] The present invention relates to a remote sensing monitoring method for river and lake management violations based on Laplace and similarity, which implements segmentation of ground objects around rivers and lakes through Laplace pyramid feature enhancement and similarity attention, thereby achieving rapid and accurate detection of violations, and belongs to the technical fields of deep learning, remote sensing image processing and river and lake supervision and monitoring. Background Art
[0002] River and lake resources play a vital role in maintaining ecological balance, protecting the water environment, and promoting sustainable development. Traditional river and lake management relies on manual inspections and routine surveys, which are not only labor-intensive, but also inefficient and have limited coverage. In order to improve the efficiency and accuracy of river and lake management, remote sensing technology provides an effective solution. This technology captures information about the ground, atmosphere, and water bodies through sensors installed on satellites, aircraft, or drone platforms, thereby obtaining high-resolution and wide-coverage image data. Using these remote sensing images, we can understand the situation of river and lake resources in detail, such as water body boundaries, water quality conditions, and shoreline changes. In addition, combined with geographic information systems (GIS) and global positioning systems (GPS), accurate positioning and real-time monitoring of river and lake resources can be achieved. Although remote sensing images have high resolution and large amounts of information, their processing usually relies on time-consuming manual interpretation. Therefore, how to quickly and automatically monitor river and lake violations when processing a large number of river and lake remote sensing images remains a major challenge.
[0003] At present, many remote sensing segmentation methods use deep learning techniques to extract deep semantic features from river and lake images. However, deep learning models tend to reduce the size of feature maps when extracting features. Considering that river and lake images usually have high resolution and rich details, river and lake violations often involve small-sized ground objects. The reduction in the size of feature maps may lead to the loss of features of these small-sized objects, which in turn affects the accuracy of river and lake violation detection. Secondly, although existing methods have powerful feature extraction capabilities, they have encountered difficulties in effectively using these extracted features to accurately identify the semantics of target objects and filter out irrelevant information. The extracted features often lack robustness to geometric dislocations and spectral differences caused by factors such as lighting, noise, and seasons from remote sensing images. Therefore, it is necessary to use more effective techniques to enhance features with discriminative information for accurate identification of violation areas. River and lake resources play a vital role in maintaining ecological balance, protecting the water environment, and promoting sustainable development. However, there are violations such as illegal construction, illegal occupation, illegal mining, and illegal dumping in river and lake management, which have seriously damaged the river and lake ecosystems, leading to over-exploitation of water resources, increased water pollution, and deterioration of the ecological environment. Therefore, it is urgent to address violations in rivers and lakes, which is related to environmental protection and sustainable development. Summary of the invention
[0004] The purpose of the present invention is to overcome the shortcomings of the prior art and provide a remote sensing monitoring method for river and lake management violations based on Laplace and similarity, which can enhance the significant features at the pixel level and highlight the violation areas through similarity to achieve accurate segmentation results.
[0005] The technical solution adopted by the present invention is:
[0006] The remote sensing monitoring method for river and lake management violations based on Laplace and similarity includes the following steps:
[0007] S1. Obtain remote sensing images around rivers and lakes, divide the data sets and preprocess them;
[0008] S2. In the encoder stage, the preprocessed remote sensing image is sent to the feature extraction network to extract multi-layer features. The preprocessed remote sensing image is used to construct the Laplacian pyramid LP to obtain a series of low-frequency and high-frequency components. The high-frequency components in the LP with the same size as the feature maps extracted at each layer are selected to enhance the features extracted at each layer.
[0009] S3. In the decoder stage, similarity attention is applied to the enhanced features of different scales. The features extracted by the high-level (later extraction layer) are enhanced and then passed through the similarity attention module and upsampled. They are then element-wise added with the enhanced features extracted by the secondary layer (previous extraction layer). They are then used as the input of the corresponding similarity attention module of the secondary layer, and skip connections are used to achieve multi-scale feature fusion.
[0010] S4. At the end of the decoder stage, the features decoded by the similarity attention modules of each layer are uniformly compressed and upsampled to the same size, and then concatenated to obtain the final feature map, which is used to obtain the prediction mask and complete the result prediction;
[0011] S5. Use the training set to iteratively update to obtain the trained model, and send the test set images to the trained model to complete the prediction.
[0012] In the above method, the preprocessing described in step S1 includes image cropping, labeling, scaling, data enhancement and standardization.
[0013] The feature extraction network used in step S2 is ResNet-18, preferably ResNet-18 has a total of four layers.
[0014] The feature enhancement process described in step S2 is: the high-frequency components of each level of LP are first compressed to 1 through 1×1 convolution, then multiplied with a learnable parameter, and finally the obtained high-frequency components are element-wise added with the extracted feature map of the same size.
[0015] The similarity attention module described in step S3, the input feature F First, spatial attention is used to initially highlight the illegal areas and suppress the normal areas to obtain initial enhanced features. F’ , for the initial enhanced features F’ The global maximum pooling and global average pooling operations are performed respectively. This step extracts the salient features of the illegal area, and then the cosine similarity is used to calculate the salient features of the two operations and F’ The similarity of the two similarity results is normalized by the softmax function respectively, and the two are fused according to the parameter ratio of λ and 1-λ to obtain a weighted similarity weight map. The weight map is consistent with the initial enhanced feature F’ Perform dot product operation and add residual branch to make the features after dot product consistent with F’ Then add the elements together to get the output.
[0016] The spatial attention described in step S3 is to obtain two sets of channel descriptions by performing average pooling and maximum pooling operations on the initial features at the channel level, and then concatenate the two and activate them through convolution and sigmoid to obtain a spatial attention weight map. The weight map is used to weight the initial features to obtain preliminary enhanced features. F’ .
[0017] The specific calculation formula of the similarity described in step S3 is as follows:
[0018] ,
[0019] in, S i,j represents the similarity result at coordinate (i, j), x represents the significant features extracted by global maximum pooling or global average pooling, F’ i,j express F’ The eigenvector at coordinate (i, j), Represents the L2 distance.
[0020] Another object of the present invention is to provide a remote sensing monitoring system for river and lake management violations based on Laplace and similarity, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the remote sensing monitoring method for river and lake management violations based on Laplace and similarity as described above is implemented.
[0021] The beneficial effects of the present invention are:
[0022] The present invention utilizes the high-frequency components with rich content details in the Laplace pyramid. The high-frequency components contain pixel-level significant features, which can be used to supplement the detail information lost in the feature extraction stage, thereby improving the detection accuracy of the illegal areas; the similarity attention can focus the model, highlight the illegal areas through the calculation of cosine similarity, suppress the normal areas, and increase the difference between the two, thereby improving the robustness and prediction accuracy of the model in monitoring violations in river and lake management.
[0023] The present invention applies Laplacian pyramid and cosine similarity to the field of remote sensing segmentation for monitoring river and lake management violations, thereby improving the detection efficiency and recognition accuracy of the model. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 is a flow chart of the method of the present invention;
[0025] Figure 2 A schematic diagram of the network structure of the method of the present invention;
[0026] Figure 3 Schematic diagram of the structure of the similarity attention module in the method of the present invention. DETAILED DESCRIPTION
[0027] The following is further described in conjunction with specific embodiments.
[0028] Embodiment 1: A remote sensing monitoring method for river and lake management violations based on Laplace and similarity, comprising the steps (such as Figure 1 )as follows:
[0029] S1. Obtain remote sensing images around rivers and lakes, divide the data set and preprocess:
[0030] Images around rivers and lakes were cropped from existing remote sensing images, and a part of the cropped river and lake remote sensing images were visually interpreted to form label data; the data set was divided, and the cropped river and lake remote sensing images and their labels were scaled to obtain 1024×1024 tiles; a random number of images were selected for random horizontal and vertical flipping and random 90-degree rotation data augmentation operations; the mean and standard deviation of the three RGB channels were calculated, and the tiles were standardized.
[0031] S2. In the encoder stage, the preprocessed remote sensing image is sent to the feature extraction network to extract multi-layer features. The preprocessed remote sensing image is used to construct the Laplacian pyramid LP to obtain a series of low-frequency and high-frequency components. The high-frequency components in the LP with the same size as the feature maps extracted at each layer are selected to enhance the features extracted at each layer:
[0032] In order to reduce the complexity of the model, the feature extraction network used in the present invention is ResNet-18, which introduces a residual module to construct a residual function of input and output, making it easier to optimize parameters and avoiding overfitting while increasing the network depth. ResNet-18 has a total of four layers, each of which contains 2, 2, 2, and 2 residual blocks, respectively, and the embedding dimensions of each layer are 64, 128, 256, and 512, respectively. Taking the input image dimension of 3×1024×1024 as an example, the feature map shapes obtained after the image passes through each layer of ResNet-18 are: (64, 256, 256), (128, 128, 128), (256, 64, 64), and (512, 32, 32).
[0033] Laplacian Pyramid (LP) is a mature technology in the field of image processing. The core concept of LP method is to linearly decompose the image into a series of high-frequency and low-frequency bands, so that the original image can be accurately reconstructed. Assume that the input image size is 1024×1024 I 0 , LP is initialized by calculating a low-pass prediction I 1 , whose size is 512×512. In this calculation, each pixel represents the weighted average of its neighboring pixels, and these weights are determined by a fixed kernel. In order to achieve reversible reconstruction, LP records the high-frequency residual ,in Is I 1 To further reduce the sampling rate and image resolution, LP iteratively applies these operations to I 1 A series of low-frequency and high-frequency components are obtained.
[0034] Generally speaking, the brightness and color information of an image is reflected in the low-frequency components, while the content details are related to the high-frequency components. In the monitoring of river and lake management violations, the violation is more closely related to the image content details, while the brightness and color contain less information and have limited impact on detection. Therefore, we select the high-frequency components in LP with the same size as the feature maps extracted in each layer as the feature enhancement weights, such as Figure 2As shown. In the Laplacian pyramid, only the last layer of components that do not undergo residual operations are low-frequency components, and the remaining layers record high-frequency components. In the feature extraction stage, the feature size of the last layer is (512, 32, 32), so we choose to build a 7-layer Laplacian pyramid with component sizes ranging from (3, 1024, 1024) to (3, 16, 16). We select high-frequency components corresponding to the four feature extraction stages from these 7 layers, namely, high-frequency components with sizes of (3, 256, 256), (3, 128, 128), (3, 64, 64), and (3, 32, 32).
[0035] The high-frequency components of LP have pixel-level salient features, so they can make up for the details lost in feature extraction and make detection more accurate. After selecting the high-frequency components, the components are used to enhance the extracted features. Since the high-frequency components are still RGB channels, the components at each level are first compressed to 1 by 1×1 convolution, and then multiplied by a learnable parameter to adjust the fusion ratio of high-frequency components and features. Finally, the components are element-wise added to feature maps of the same size. Feature extraction is carried out from top to bottom. The feature sizes extracted at each stage are (64, 256, 256), (128, 128, 128), (256, 64, 64) and (512, 32, 32). The high-frequency component sizes we selected correspond to the feature maps. After the feature extraction is completed at each stage, the components are element-wise added to the feature maps to achieve feature enhancement.
[0036] S3. In the decoder stage, similarity attention is applied to the enhanced features of different scales. The features extracted from the high-level layer are enhanced and then passed through the similarity attention module and upsampled. They are then element-wise added with the enhanced features extracted from the secondary layer (previous extraction layer) and then used as the input of the corresponding similarity attention module of the secondary layer. Skip connections are used to achieve multi-scale feature fusion:
[0037] In the decoder stage, skip connections are used to achieve multi-scale feature fusion. The features extracted from the high-level layers are enhanced and then passed through the similarity attention module. They are then upsampled and element-wise added to the enhanced features extracted from the secondary layer, and then used as the input of the similarity attention module corresponding to the secondary layer.
[0038] Figure 3 The specific structure of the similarity attention module is shown. Input features FFirst, spatial attention is used to initially highlight the illegal areas and suppress the normal areas. The spatial attention processing process is as follows: First, the initial features are obtained through channel-level average pooling and maximum pooling operations to obtain two sets of channel descriptions. The two are concatenated and activated through convolution and sigmoid to obtain a spatial attention weight map. Finally, the weight map is used to weight the initial features to obtain preliminary enhanced features. F’ .
[0039] Next, we will perform preliminary enhancement F’ The global maximum pooling and global average pooling operations are performed respectively. This step extracts the salient features of the illegal area. Then the cosine similarity is used to calculate the salient features of the two operations. F’
[0040] The specific calculation formula is as follows:
[0041] ,
[0042] in, S i,j represents the similarity result at coordinate (i, j), x represents the significant features extracted by global maximum pooling or global average pooling, F’ i,j express F’ The eigenvector at coordinate (i, j), Represents the L2 distance.
[0043] Subsequently, the two similarity results are normalized by the softmax function respectively, and the two are fused according to the parameter ratio of λ and 1-λ to obtain a weighted similarity weight map, which can significantly enhance the illegal area and suppress the normal area. Finally, the weight map is combined with the preliminary enhanced features. F’ Perform dot product operation and add residual branch to make the features after dot product consistent with F’ Then add the elements together to avoid the gradient vanishing problem.
[0044] The features coming out of the similarity attention module have two branches. One branch is upsampled to the size of the secondary layer features, and then fused and sent to the similarity attention module corresponding to the secondary layer. The other branch is the output features of the similarity attention modules at different layers are uniformly compressed and upsampled to the size of the output features of the last similarity attention module, and then uniformly spliced to obtain the final feature map. The second branch is described in the following steps.
[0045] S4. At the end of the decoder stage, the features decoded by the similarity attention modules of each layer are uniformly compressed and upsampled to the same size, and then concatenated to obtain the final feature map, which is used to obtain the prediction mask and complete the result prediction:
[0046] At the end of the decoder stage, the features decoded by the similarity attention modules of each layer are uniformly compressed and upsampled to the same size (the size of the output features of the last layer of similarity attention modules), and then the four layers of features are concatenated to obtain the final feature map, which is further upsampled to the original image size and the sigmoid function is used to obtain the final prediction mask to complete the result prediction.
[0047] S5. Use the training set to iteratively update the network to obtain a trained model, and send the test set images to the trained model to complete the prediction:
[0048] After obtaining the trained weights, the test set is sent to the model. At this time, the model will load the weights for image segmentation and finally obtain a detection map of river and lake management violations.
[0049] Example 2: A remote sensing monitoring system for river and lake management violations based on Laplace and similarity, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the remote sensing monitoring method for river and lake management violations based on Laplace and similarity as described in Example 1 above is implemented.
[0050] The above is a further description of the technical solution of the present invention in combination with the embodiments, and the protection scope of the present invention is not limited thereto.
Claims
1. A remote sensing monitoring method for river and lake management violations based on Laplace and similarity, characterized by: The steps include: S1. Obtain remote sensing images around rivers and lakes, divide the data sets and preprocess them; S2. In the encoder stage, the preprocessed remote sensing image is sent to the feature extraction network to extract multi-layer features. The preprocessed remote sensing image is used to construct the Laplacian pyramid LP to obtain a series of low-frequency and high-frequency components. The high-frequency components in the LP with the same size as the feature maps extracted at each layer are selected to enhance the features extracted at each layer. The feature enhancement process is as follows: the high-frequency components of each level of LP are first compressed to 1 through 1×1 convolution, then multiplied by a learnable parameter, and finally the obtained high-frequency components are element-wise added to the extracted feature map of the same size; S3. In the decoder stage, similarity attention is applied to the enhanced features of different scales. The features extracted from the high-level layer are enhanced and then passed through the similarity attention module and upsampled. They are then element-wise added with the enhanced features extracted from the secondary layer, and then used as the input of the corresponding similarity attention module of the secondary layer. Skip connections are used to achieve multi-scale feature fusion. In the similarity attention module, the input feature F First, spatial attention is used to initially highlight the illegal areas and suppress the normal areas to obtain initial enhanced features. F’ , for the initial enhanced features F’ The global maximum pooling and global average pooling operations are performed respectively. This step extracts the salient features of the illegal area, and then the cosine similarity is used to calculate the salient features of the two operations and F’ The similarity of the two similarity results is normalized by the softmax function respectively, and the two are fused according to the parameter ratio of λ and 1-λ to obtain a weighted similarity weight map. The weight map is consistent with the initial enhanced feature F’ Perform dot product operation and add residual branch to make the features after dot product consistent with F’ Then add the elements to get the output; S4. At the end of the decoder stage, the features decoded by the similarity attention modules of each layer are uniformly compressed and upsampled to the same size, and then concatenated to obtain the final feature map, which is used to obtain the prediction mask and complete the result prediction; S5. Use the training set to iteratively update to obtain the trained model, and send the test set images to the trained model to complete the prediction.
2. The remote sensing monitoring method for river and lake management violations based on Laplace and similarity according to claim 1 is characterized in that: The preprocessing described in step S1 includes image cropping, labeling, scaling, data augmentation and normalization.
3. The remote sensing monitoring method for river and lake management violations based on Laplace and similarity according to claim 1 is characterized in that: The feature extraction network used in step S2 is ResNet-18.
4. The remote sensing monitoring method for river and lake management violations based on Laplace and similarity according to claim 1 is characterized in that: The spatial attention described in step S3 is to obtain two sets of channel descriptions by performing average pooling and maximum pooling operations on the initial features at the channel level, and then concatenate the two and activate them through convolution and sigmoid to obtain a spatial attention weight map. The weight map is used to weight the initial features to obtain preliminary enhanced features. F’ .
5. The remote sensing monitoring method for river and lake management violations based on Laplace and similarity according to claim 1 is characterized in that: The specific calculation formula of the similarity described in step S3 is as follows: , in, S i,j represents the similarity result at coordinate (i, j), x represents the significant features extracted by global maximum pooling or global average pooling, F’ i,j express F’ The eigenvector at coordinate (i, j), Represents the L2 distance.
6. A remote sensing monitoring system for river and lake management violations based on Laplace and similarity, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the remote sensing monitoring method for river and lake management violations based on Laplace and similarity as described in any one of claims 1 to 5 is implemented.
