Farmland segmentation method based on Laplacian pyramid upsampling
By using the dual-path network and sub-pixel convolutional layer method based on Laplacian pyramid in remote sensing image segmentation, the problem of inter-class differences and intra-class variance in farmland area segmentation in remote sensing images is solved, and an efficient and accurate method is achieved. Farmland area division.
Patent Information
- Application Number
- CN202410673640.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-08-30
AI Technical Summary
When segmenting farmland areas from high-resolution remote sensing images, the existing technology ignores small inter-class differences, large intra-class variances, and the overlap between foreground and background. It lacks effective image foreground feature extraction methods, resulting in inaccurate segmentation.
A dual-path network based on the Laplacian pyramid is used to extract multi-scale foreground feature maps through the encoder and use the decoder to reconstruct high-resolution segmentation feature maps layer by layer, combined with sub-pixel convolution layers for upsampling to improve segmentation accuracy. Optimize the network using a robust joint loss function.
It achieves accurate segmentation of farmland areas in satellite remote sensing images, improves segmentation speed and accuracy, reduces the loss of upsampling reconstruction accuracy, and enhances foreground feature extraction capabilities.
Smart Images

Figure CN118570230A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent farmland management, and in particular to a farmland segmentation method based on Laplace pyramid upsampling. Background Art
[0002] Image segmentation is an important task in remote sensing understanding, which provides semantic and location information clues for objects of interest. It is regarded as a special semantic segmentation task, which aims to assign a semantic category to each image pixel. At the same time, it mainly divides the image into foreground objects and background regions, and further assigns a unified semantic label to each pixel in the foreground object region.
[0003] When insurance companies underwrite crop insurance, farmers often make mistakes in reporting the insured area. However, due to the vast area of insured farmland, it is difficult for insurance companies to check it. Therefore, by segmenting the area of farmland in satellite images and estimating the crop area based on the segmented area, the estimated area is compared with the insured area reported by farmers, and the insurance policies with large differences are processed to improve the accuracy of the insured area. Therefore, how to accurately and quickly segment the area of farmland in satellite images has become an important part of insurance companies underwriting crop insurance. However, segmenting geospatial objects from high-resolution remote sensing images is more challenging than segmenting from natural scenes. Recently, the most advanced general semantic segmentation methods focus on scale perception and multi-scale aspects to improve model performance. However, for most HSR remote sensing images, traditional semantic segmentation methods ignore small inter-class differences, large intra-class variance, and overlap of foreground and background. The main reason for these limitations is the lack of effective means to extract image foreground features. Summary of the invention
[0004] In order to solve the technical problems existing in the above background technology, a farmland segmentation method based on Laplacian pyramid upsampling includes: Obtain satellite remote sensing image data containing the farmland area to be segmented and construct an original data set; For each remote sensing image, the farmland area is annotated to form an annotated image, and an annotated segmented foreground dataset is constructed; The encoder uses a dual-path network based on a Laplacian pyramid downsampling framework to extract low-redundancy reusable features from the labeled segmented foreground dataset, while maintaining densely connected paths to learn new features, thereby obtaining a multi-scale foreground feature map; The decoder receives the multi-scale foreground feature map and reconstructs the high-resolution segmentation feature map layer by layer using an upsampling module based on a Laplacian pyramid.
[0005] As a further illustration of the present invention, one branch of the dual-path network is a residual path, which is used to avoid the disappearance or explosion of gradients; the other branch is a densely connected path, which is used to learn new features in a cascade manner; a Laplacian pyramid convolution structure is designed for each scale feature map to extract high-frequency information.
[0006] As a further illustration of the present invention, the decoder receives the multi-scale foreground feature map and reconstructs the high-resolution segmentation feature map layer by layer using an upsampling module based on a Laplacian pyramid, specifically comprising: The decoder regards the received multi-scale foreground feature map with coarse resolution as input, which is used to progressively predict the residual, further upsample it to a finer level using a sub-pixel convolution layer combined with the residual, and optimizes the generated result by optimizing the channel weights during the training phase. The residual of the output feature map and the feature map of the feature enhancer are then clustered and fused to obtain a saliency probability high-resolution segmentation feature map.
[0007] As a further illustration of the present invention, the method further includes: calculating the loss value of the high-resolution segmentation feature map at each scale and fusing all loss values.
[0008] As a further explanation of the present invention, obtaining the loss value of the high-resolution segmentation feature map at each scale specifically includes: When calculating the loss value, the loss values of each scale of the high-resolution segmentation feature map are fused, the annotated image is downsampled at each scale, and the segmentation result generated by each scale feature is compared with the annotated images of different scales to obtain the loss values at different scales and fuse all the loss values.
[0009] Compared with the prior art, the present invention has the following beneficial technical effects: The present invention proposes a dual-path network based on Laplacian pyramid upsampling to enhance foreground features, so as to achieve accurate segmentation of satellite remote sensing images and obtain pixel points where farmland areas in remote sensing images are located. The dual-path network based on Laplacian pyramid upsampling proposed in the present invention is a novel and effective module for propagating specific feature points between adjacent features. It is an encoder-decoder network that improves the problems of small inter-class variance and large intra-class variance by constructing foreground high-frequency information. Specifically, the encoder network applies a traditional dual-path network to sample sub-pixels between feature pyramids, aiming to improve the quality of foreground features, and uses a Laplacian step-by-step upsampling mechanism to fill in the gaps in high-frequency sequences. The present invention directly extracts features from high-resolution feature maps, and jointly optimizes the upsampling filter with the deep convolution filter to predict the segmented feature map. A more robust joint loss function is used to optimize the deep network, reducing the loss of upsampling reconstruction accuracy.
[0010] In addition, the general upsampling algorithm used to fill adjacent pixels mainly considers the spatial factor and ignores the channel factor, resulting in obvious traces of artificial modification in the upsampled feature map. Therefore, the present invention introduces a sub-pixel convolution method to improve the resolution because it realizes the mapping between small rectangles and large rectangles. In limited computing resources, sub-pixel convolution can provide more convolutions for image segmentation, thereby realizing a wider and more flexible application scenario. Due to its design of enhancing foreground feature extraction, the present invention achieves the best speed and accuracy in the industry.
[0011] Other features and advantages of the technical solution will be described in the subsequent description, and partly become apparent from the description, or understood by implementing the technical solution. The purpose and other advantages of the technical solution can be achieved and obtained through the structures specifically pointed out in the written description and the drawings.
[0012] The technical solution of the present technical solution is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] The accompanying drawings are used to provide a further understanding of the technical solution and constitute a part of the specification. Together with the embodiments of the technical solution, they are used to explain the technical solution and do not constitute a limitation of the technical solution. In the accompanying drawings: Figure 1 This is a diagram of the convolutional encoder-decoder architecture for satellite remote sensing image segmentation according to the present invention.
[0014] Figure 2 It is the core architecture of the encoder network of the present invention.
[0015] Figure 3 It is the core architecture of the decoder network of the present invention.
[0016] Figure 4 This is the network segmentation effect of the farmland segmentation method based on Laplacian pyramid upsampling of the present invention. DETAILED DESCRIPTION
[0017] The preferred embodiments of the present technical solution are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present technical solution, and are not used to limit the present technical solution.
[0018] The present invention provides a farmland segmentation method based on Laplacian pyramid upsampling, comprising: The satellite remote sensing image data containing the farmland area to be segmented is obtained to construct an original data set; the farmland area is annotated for each remote sensing image to form an annotated image, and an annotated segmentation foreground data set is constructed.
[0019] Specifically, the segmented foreground in satellite remote sensing images includes five types: farmland, woodland, road, building, and water area; the marked images are represented by green, yellow, gray, red, and blue pixels to distinguish the five types.
[0020] The encoder uses a dual-path network based on a Laplacian pyramid downsampling framework to extract low-redundancy reusable features from annotated segmented foreground datasets, while maintaining densely connected paths to learn new features to obtain multi-scale foreground feature maps.
[0021] Specifically, one branch of the dual-path network is the residual path, which is used to avoid the disappearance or explosion of the gradient; the other branch is the densely connected path, which is used to learn new features in a cascade manner; for each scale feature map, a Laplacian pyramid convolution structure is designed to extract high-frequency information to avoid the loss of foreground detail information.
[0022] The decoder receives multi-scale foreground feature maps and uses a Laplacian pyramid-based upsampling module to reconstruct high-resolution segmentation feature maps layer by layer.
[0023] Specifically, the decoder takes the received multi-scale foreground feature map with coarse resolution as input, which is used to gradually predict the residual, and further upsamples it to a finer level using a sub-pixel convolution layer combined with the residual, and optimizes the generated results by optimizing the channel weights during the training phase, and then clusters and fuses the residual of the output feature map and the feature map of the feature enhancer to obtain a saliency probability high-resolution segmentation feature map. Compared with the existing feature extraction network, the low-level feature representation and high-level sharing can increase the nonlinearity of the network, facilitate the learning of complex mappings, and reduce the computational complexity.
[0024] The method also includes: calculating the loss value of the high-resolution segmentation feature map at each scale and fusing all loss values.
[0025] Specifically, when calculating the loss value, the loss values of each scale of the high-resolution segmentation feature map are fused, the annotated image is downsampled at each scale, and the segmentation result generated by each scale feature is compared with the annotated images of different scales to obtain the loss values at different scales and fuse all the loss values. This method can improve the accuracy of the feature map and thus improve the final result of remote sensing image segmentation.
[0026] The specific encoder-decoder network architecture used in the farmland segmentation method provided by the present invention is described below: Figure 1 This is a diagram of the convolutional encoder-decoder architecture for satellite remote sensing image segmentation in the present invention, which consists of an encoder network and a corresponding decoder network, followed by a pixel-by-pixel classification layer.
[0027] like Figure 1 As shown in Figure 1, the encoder network consists of 23 convolutional layers, the first 21 convolutional layers are selected from DPN (dual path network) and designed for feature extraction. {En_i|i=1,2,3,4,5} represents the set of feature maps extracted from DPN, where the feature map E i+1 Relative to the input feature E i Has a ratio of 1 / 2.
[0028] Finally, the output of the decoder is sent to the softmax classifier for generating class probabilities for each pixel. The top-down lateral connection is used to generate high-frequency characteristic maps {Lp_j|j=1, 2, 3, 4} with the same channel D. The decoder consists of two modules: LUM and MLM. The top-down LUM path cascades the high-frequency characteristic maps to generate pyramid characteristic maps {De_i|i=1, 2, 3, 4, 5}. And the pyramid characteristic map satisfies the following formula: (1) Where L represents the lateral connection implemented by the Laplacian pyramid layer, and D represents sub-pixel upsampling. This network structure can obtain semantic features and high-frequency detail features at the same level of the decoder, which helps to restore object details and multi-scale context information. For simplicity, En_5 uses sub-pixel upsampling to obtain semantic features from deep layers. Each level De_i classifies pixels to generate segmentation results Spm_i, where Spm_5 is the final segmentation result. is the sum of the losses at each stage of the pyramid to improve the segmentation performance.
[0029] Specifically, for encoders, such as Figure 1 As shown, in the present invention, a DPN structure is introduced to modify and extend DPN to produce more accurate segmentation results. The present invention constructs a more elegant architecture, called a pyramid dual-path encoder. Figure 2 It represents the core architecture of the encoder network, which aims to obtain multi-scale feature maps through pyramid encoding. The present invention designs the structure of each microblock with bottleneck style (Encoder{En_i|i=2,3,4,5}). The residual is added to the input x (or x output of the previous block) to avoid the vanishing or exploding gradient. To avoid the above problems, the channels are merged into Densenet (densely connected convolutional network). At the same time, the merging of features is accompanied by an increase in the number of features. Figure 2In the figure, the Dp_i module in the DPN network starts with a 1×1 convolution layer, followed by a 3×3 convolution layer, and finally a 1×1 convolution layer. The output of the last 1×1 convolution layer is divided into three parts: the first part is element-wisely added to the residual path, the second part is cascaded with the densely connected path, and the third part (Branch_i) follows the convolution layer. Cr_i is a Laplacian pyramid module for extracting high-frequency features. En_1 uses 3×3 convolution to extract image features, and En_2, En_3, En_4, and En_5 are divided into two parts: DP_i and Branch_i.
[0030] Specifically, for the decoder, LUM is an upsampling module based on the Laplacian pyramid to gradually reconstruct the high-resolution segmentation feature map. It takes the feature map with coarse resolution as input, which is used to gradually predict the residual and further upsample it to a finer level using a sub-pixel convolution layer combined with the residual. Then, it is combined with the high-frequency features of the next level to reconstruct the HR (high-resolution) segmentation feature map. Figure 3 As shown, the present invention convolves the feature map in DPN to generate a dense feature map. In this way, the present invention copies the downsampled feature map to the upsampled part and calculates the residual of the feature map to avoid losing detail information. Sub-pixel convolution converts the feature image from low resolution to a feature image in a high-resolution space, and continuously optimizes the generated results by optimizing channel weights during the training phase, aiming to solve some artificial track problems in interpolation and convolution. Then, the residual of the output feature map and the feature map of the feature enhancer are clustered and fused to optimize upsampling. Compared with existing feature extraction networks, low-level feature representation and high-level sharing can increase the nonlinearity of the network, promote the learning of complex mappings, and reduce computational complexity. As Figure 3 As shown in the figure, De_4 samples the feature map to 256*256 on the sub-pixel convolution layer, and then uses the bilinear interpolation method to generate a high-resolution output feature map, which is consistent with the size of the input image, and then generates the final saliency probability map through a 1x1 convolution layer and a sigmoid function. By gradually reconstructing the segmentation prediction map, LUM generates multi-scale predictions through a feed-forward process to improve resource utilization.
[0031] For the calculation of loss value, the specific loss function used is as follows:
[0032] Where y represents the GT image, y' represents the features of the upsampled segmentation image, R represents the difference between the upsampled and downsampled features, and the original feature θ is the predicted segmentation image. L represents the response level, that is, the image size level of the scale (1:16 x16, 2:32 x 32, 3:64 x 64, 4:128 x 128, 5:256 x 256). N is the number of images per batch, and ρ represents the cross entropy loss, which calculates the loss value. ρ calculates the cross entropy loss between the input and the label. It combines the operations of logsoft max and nlloss. The mathematical calculation formula of the loss function is:
[0033] The present invention proposes a dual-path network based on Laplacian pyramid upsampling to enhance foreground features, so as to achieve accurate segmentation of satellite remote sensing images and obtain pixel points where farmland areas in remote sensing images are located. The dual-path network based on Laplacian pyramid upsampling proposed in the present invention is a novel and effective module for propagating specific feature points between adjacent features. It is an encoder-decoder network that improves the problems of small inter-class variance and large intra-class variance by constructing foreground high-frequency information. Specifically, the encoder network applies a traditional dual-path network to sample sub-pixels between feature pyramids, aiming to improve the quality of foreground features, and uses a Laplacian step-by-step upsampling mechanism to fill in the gaps in high-frequency sequences. The present invention directly extracts features from high-resolution feature maps, and jointly optimizes the upsampling filter with the deep convolution filter to predict the segmented feature map. A more robust joint loss function is used to optimize the deep network, reducing the loss of upsampling reconstruction accuracy.
[0034] In addition, the general upsampling algorithm used to fill adjacent pixels mainly considers the spatial factor and ignores the channel factor, resulting in obvious traces of artificial modification in the upsampled feature map. Therefore, the present invention introduces a sub-pixel convolution method to improve the resolution because it realizes the mapping between small rectangles and large rectangles. In limited computing resources, sub-pixel convolution can provide more convolutions for image segmentation, thereby realizing a wider and more flexible application scenario. Due to its design of enhancing foreground feature extraction, the present invention achieves the best speed and accuracy in the industry.
[0035] Obviously, those skilled in the art can make various changes and modifications to the technical solution without departing from the spirit and scope of the technical solution. Thus, if these modifications and variations of the technical solution fall within the scope of the claims of the technical solution and their equivalents, the technical solution is also intended to include these modifications and variations.
Claims
1. A farmland segmentation method based on Laplacian pyramid upsampling, characterized in that: include: Obtain satellite remote sensing image data containing the farmland area to be segmented and construct an original data set; For each remote sensing image, the farmland area is annotated to form an annotated image, and an annotated segmented foreground dataset is constructed; The encoder uses a dual-path network based on a Laplacian pyramid downsampling framework to extract low-redundancy reusable features from the labeled segmented foreground dataset, while maintaining densely connected paths to learn new features, thereby obtaining a multi-scale foreground feature map; The decoder receives the multi-scale foreground feature map and reconstructs the high-resolution segmentation feature map layer by layer using an upsampling module based on a Laplacian pyramid.
2. The farmland segmentation method based on Laplacian pyramid upsampling according to claim 1, characterized in that: One branch of the dual-path network is a residual path, which is used to avoid the disappearance or explosion of gradients; the other branch is a densely connected path, which is used to learn new features in a cascade manner; a Laplacian pyramid convolution structure is designed for each scale feature map to extract high-frequency information.
3. The farmland segmentation method based on Laplacian pyramid upsampling according to claim 1, characterized in that: The decoder receives the multi-scale foreground feature map and reconstructs the high-resolution segmentation feature map layer by layer using an upsampling module based on a Laplacian pyramid, specifically including: The decoder regards the received multi-scale foreground feature map with coarse resolution as input, which is used to progressively predict the residual, further upsample it to a finer level using a sub-pixel convolution layer combined with the residual, and optimizes the generated result by optimizing the channel weights during the training phase. The residual of the output feature map and the feature map of the feature enhancer are then clustered and fused to obtain a saliency probability high-resolution segmentation feature map.
4. The farmland segmentation method based on Laplacian pyramid upsampling according to claim 1, characterized in that: The method also includes: calculating the loss value of the high-resolution segmentation feature map at each scale and fusing all loss values.
5. The farmland segmentation method based on Laplacian pyramid upsampling according to claim 4, characterized in that: The step of obtaining the loss value of the high-resolution segmentation feature map at each scale specifically includes: When calculating the loss value, the loss values of each scale of the high-resolution segmentation feature map are fused, the annotated image is downsampled at each scale, and the segmentation result generated by each scale feature is compared with the annotated images of different scales to obtain the loss values at different scales and fuse all the loss values.
Citation Information
Cited By
Up-sampling re-optimization method for mean pooling down-sampling image
CN119444579A
Automatic segmentation and identification method for liver cancer image fused with multi-modal image
CN121033079A
