Semantic segmentation method of remote sensing images based on hierarchical contour cost function

Through the Inception-v3 U-Net network and hierarchical contour cost function, the problems of unclear contour edges and large parameter quantities in remote sensing image segmentation are solved, achieving more efficient remote sensing image segmentation and improving the accuracy of contour classification and segmentation results. accuracy.

CN114972759BActive Publication Date: 2024-10-29XIDIAN UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210675935.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-15
Publication Date
2024-10-29
Estimated Expiration
2042-06-15

AI Technical Summary

Technical Problem

When existing remote sensing image segmentation technology handles complex scenes, the contour edges are not clear enough, which affects the accuracy of the interpretation results. The large number of parameters and low computational efficiency make it difficult to effectively distinguish boundaries and internal textures, leading to errors in contour determination.

Method used

The Inception-v3 U-Net network is combined with the hierarchical contour cost function, and the contour determination range is refined through convolution kernel expansion and erosion. Complementary hyperparameters are used to implement adversarial learning and improve the accuracy of contour classification.

Benefits of technology

It improves the foreground segmentation accuracy and boundary processing accuracy of remote sensing image segmentation, reduces the amount of calculation and parameters, and enhances the accuracy of contour classification and the accuracy of segmentation results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114972759B_ABST
    Figure CN114972759B_ABST
Patent Text Reader

Abstract

The present invention discloses a remote sensing image semantic segmentation method based on a hierarchical contour cost function, which is used for segmenting high-resolution remote sensing images. The implementation steps are: 1. Generate a training set; 2. Construct an Inception‑v3U‑Net segmentation network; 3. Train the Inception‑v3U‑Net network; 4. Predict a remote sensing image. The present invention constructs a training network Inception‑v3U‑Net to reduce the amount of calculation and the amount of parameters and improve the training efficiency. The present invention constructs a hierarchical contour cost function to supervise the network loss, enhances the model's ability to segment foreground contours, and refines the contour judgment range by a method of sequentially dilating the convolution kernel and then subtracting corrosion, thereby improving the accuracy of contour classification. At the same time, the present invention assigns two-to-two corresponding and complementary hyperparameters to the contour levels in the background and foreground directions with the same relative contour distance, so as to achieve accurate contour segmentation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of image processing technology, and further relates to a remote sensing image semantic segmentation method based on a hierarchical contour cost function in the field of image segmentation technology. The present invention can be used to segment remote sensing images, thereby realizing the remote sensing image interpretation task in automated production and construction projects. Background Art

[0002] With the rapid development of remote sensing technology, a large number of image data interpretation and processing requirements have been brought about. Remote sensing image interpretation requires segmenting objects and regions of different categories and assigning the same label to the same category to represent the identification of the region or object. At present, deep neural network learning technologies such as U-Net are more commonly used in engineering practice for remote sensing image segmentation. Neural networks are used to extract remote sensing image features, and the network is trained to predict the category of each pixel, so as to finally obtain a segmentation map with category labels. However, the existing methods can only effectively complete relatively simple tasks. Since the contour edges obtained by segmentation are not clear and smooth enough, the accuracy of subsequent interpretation results is affected. Therefore, in complex scenarios, the interpretation results still need to be further judged and corrected by relevant personnel. In addition, in practice, the cost function mainly used by the current semantic segmentation network cannot well improve the accuracy of the model in segmenting the target contour.

[0003] Shandong Fengshi Information Technology Co., Ltd. disclosed a remote sensing image segmentation method based on edge auxiliary information in its patent document "A remote sensing image segmentation method and system based on edge auxiliary information" (patent application number: 202111094364.7, application publication number: CN113920311A). The implementation steps of this method are: first, the remote sensing image is preprocessed to obtain multiple local images; then, a remote sensing image segmentation model with cross entropy as the segmentation and auxiliary cost function and Resnet as the backbone network is used to predict the local image, and the prediction results of each pixel belonging to each category are obtained; finally, the edge feature map and the main feature map are obtained by upsampling, splicing and difference operation, and the final feature map is obtained by fusion, thereby improving the accuracy of remote sensing segmentation. However, the method still has the disadvantage that cross entropy is directly used as the cost function during segmentation, which makes the model pay more attention to the accuracy of background segmentation, while ignoring the foreground, and cannot effectively distinguish between boundaries and internal textures, resulting in rough edge processing. At the same time, since this method uses Resnet as the backbone network, the amount of training parameters increases and the calculation efficiency is low.

[0004] Chen Z, Zhou H, Lai J et al. proposed an image segmentation method using contour cost function in their paper "Contour Loss: Boundary-Aware Learning for Salient Object Segmentation" (IEEE Transactions on Image Processing, 2021, 30: 431-443). During training, this method first uses a pre-trained VGG-16 network for image classification to obtain a multi-layer feature map, which is then sent to a decoder composed of residual blocks. A weight matrix that increases the proportion of pixels within the contour range is used as a contour cost function to help learn the boundary distinction between salient objects and backgrounds. The disadvantage of this method is that the contour judgment used for the contour cost function is rough, and there will be problems with incorrect judgment of contours of different categories. At the same time, the weight matrices obtained for different categories are the same, and different directions of the contour cannot be accurately distinguished. The judgment of different directions of the contour lacks specificity, resulting in a loss of contour accuracy. Summary of the invention

[0005] The purpose of the present invention is to address the defects of the above-mentioned prior art and propose a remote sensing image semantic segmentation method based on a hierarchical contour cost function to solve the problems of ignoring the foreground when segmenting edges, failing to effectively distinguish boundaries and internal textures, huge number of parameters and calculations, incorrect judgment of contours of different categories, and inaccurate contours of segmented objects during remote sensing image semantic segmentation.

[0006] The idea of ​​achieving the purpose of the present invention is that the present invention constructs a U-Net segmentation network with Inception-v3 as the main trunk, that is, the Inception-v3 U-Net network segments the remote sensing image, and decomposes the large convolution into small convolutions to reduce the network parameters. The present invention constructs a hierarchical contour cost function to supervise the network loss, pays more attention to the accuracy of boundary processing during training, and enhances the model's ability to segment foreground contours. The present invention refines the contour judgment range by a method of successively expanding the convolution kernel and then subtracting corrosion, so that pixels in different positions and under different labels can have different weight parameters, thereby improving the accuracy of contour classification. The present invention assigns two-to-two corresponding and complementary hyperparameters to the contour levels in the background and foreground directions with the same relative contour distance, so that the complementary weights form adversarial learning during the training process to achieve accurate segmentation of the contour. The network is trained using a data set consisting of high-resolution remote sensing images as a sample to obtain a final remote sensing image semantic segmentation model.

[0007] The specific steps of the present invention include the following:

[0008] Step 1: Generate training set:

[0009] Step 1.1, randomly select at least 20 high-resolution remote sensing images with a balanced ratio of foreground to background and their corresponding label images; crop each high-resolution image and the corresponding label image to a size of 224×224 pixels;

[0010] Step 1.2, select the label images whose foreground pixels account for more than 10% in the cropped label images, and the remote sensing images corresponding to the label images to form a training set;

[0011] Step 2: Build the Inception-v3 U-Net segmentation network:

[0012] Step 2.1, build a convolution module:

[0013] Build a convolutional module consisting of the first convolutional layer and the second convolutional layer in series;

[0014] The convolution kernel size of the first and second convolutional layers is set to 1×1, the stride is set to 1, and the edge padding is set to 1;

[0015] Step 2.2, build the upsampling subnetwork:

[0016] Build an upsampling subnetwork consisting of the first upsampling module, the second upsampling module, the third upsampling module, and the CBR module in series as a decoder; the structures of the first to third upsampling modules are the same, and the structure of each upsampling module is: the first convolutional layer, the second convolutional layer, the third convolutional layer, the BatchNorm layer, the activation layer, and the upsampling layer;

[0017] The convolution kernel size of the first to third convolutional layers is set to 3×3, the step size is set to 1, the edge padding is set to 1, the slope of the negative part of the activation layer is set to 0.2, the activation layer is implemented using the LeakyReLU function, and the upsampling layer uses the double nearest neighbor upsampling method;

[0018] The structure of the CBR module is: convolution layer, BatchNorm layer, activation layer. The convolution kernel size of the convolution layer is set to 3×3, the step size is set to 1, the edge padding is set to 1, the slope of the negative part of the activation layer is set to 0.2, and the activation layer is implemented using the LeakyReLU function.

[0019] Step 2.3: In a concatenate manner, the inputs of the three upsampling modules in the upsampling subnetwork are connected to the outputs of the three Inception modules in the Inception-v3 network, and the outputs of the input modules are connected to the inputs of the CBR modules to form an Inception-v3 network with a skip connection structure.

[0020] Step 2.4, connect the Inception-v3 network with skip connection structure, convolution module, and upsampling sub-network in series to form an Inception-v3 U-Net network;

[0021] Step 3, train the Inception-v3 U-Net network:

[0022] Input the training set into the Inception-v3 U-Net network, use the gradient descent method to iteratively update the parameters of each layer in the Inception-v3 U-Net network until the total cost function converges, and obtain the trained Inception-v3 U-Net network;

[0023] Step 4, predict remote sensing images:

[0024] Step 4.1, crop all the remote sensing images to be predicted into 224×224 size in sequence, and mark the cropped remote sensing images to be predicted with serial numbers;

[0025] Step 4.2, input the labeled images into the trained Inception-v3 U-Net network in sequence to obtain the cropped remote sensing image segmentation results;

[0026] Step 4.3, the segmentation results of the cropped remote sensing image are stitched in sequence according to the serial number to obtain the final segmentation result.

[0027] Compared with the prior art, the present invention has the following advantages:

[0028] First, the present invention utilizes a hierarchical contour cost function to supervise the loss of the segmentation network during training, thereby overcoming the problem that the prior art ignores the foreground and reduces the accuracy of foreground segmentation during semantic segmentation of remote sensing images. This enables the present invention to ensure correct foreground segmentation and effectively distinguish between boundaries and internal textures.

[0029] Second, the present invention constructs a training network Inception-v3 U-Net and uses the Inception-v3 model structure as the backbone network of the encoder part, which overcomes the problems of large parameters and more difficult model training in the prior art. The present invention greatly reduces the amount of calculation and parameters, has higher efficiency in training time, and has the advantage of being easy to promote and apply.

[0030] Third, the present invention adopts a method of sequentially expanding and corroding a 2×2 convolution kernel to refine the contour judgment range of the hierarchical contour cost function, overcomes the problem of rough judgment in the prior art during contour judgment leading to incorrect judgment of contours of different categories, and refines the processing of contour information, so that the present invention improves the accuracy of contour classification results.

[0031] Fourthly, in the hierarchical contour cost function, the hyperparameters assigned to the contour levels in the background and foreground directions with the same relative contour distance correspond to each other and are complementary, thus overcoming the problem that the prior art has no targeted processing of contours in different directions, and the segmentation result obtained by the present invention has a more accurate contour. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 is a flow chart of the present invention;

[0033] Figure 2 It is a schematic diagram of the structure of the Inception-v3 U-Net network of the present invention;

[0034] Figure 3 This is a simulation diagram of the segmentation of remote sensing images of Massachusetts buildings according to the present invention. DETAILED DESCRIPTION

[0035] The following is combined with Figure 1 The present invention is further described in detail with reference to the accompanying drawings and embodiments.

[0036] See attached Figure 1 The implementation steps of the present invention are further described in detail in the following embodiments.

[0037] Step 1: Generate a training set.

[0038] Step 1.1, the embodiment of the present invention randomly selects label images corresponding to 20 high-resolution remote sensing images with a balanced foreground and background ratio from the Massachusetts building dataset, and the resolution of each image is 1500×1500 pixels. Each high-resolution image and the corresponding label image are cropped to a size of 224×224 pixels one by one.

[0039] Step 1.2, select the label images whose foreground pixels account for more than 10% in the cropped label images, and the remote sensing images corresponding to the label images to form a training set.

[0040] Step 2: Build the Inception-v3 U-Net network.

[0041] Reference Figure 2 , the Inception-v3 U-Net network constructed by the present invention is further described in detail.

[0042] Step 2.1, build the Inception-v3 network.

[0043] The encoder of the present invention adopts the Inception-v3 network of the prior art. The structure of the Inception-v3 network is composed of one input module and three Inception modules with the same structure connected in series. The structure of the input module is: the first convolutional layer, the first pooling layer, the first LocalRespNorm layer, the second convolutional layer, the third convolutional layer, the second LocalRespNorm layer, and the second pooling layer.

[0044] The convolution kernel size of the first convolution layer is set to 7×7, the convolution kernel of the second convolution layer is set to 1×1, the convolution kernel of the third convolution layer is set to 3×3, the stride of the first convolution layer is set to 2, the stride of the second and third convolution layers is set to 1, and the edge padding is set to "same". The first and second pooling layers are implemented using maximum pooling, the pooling window size is set to 3×3, and the stride is set to 2.

[0045] Step 2.2, build a convolution module.

[0046] Build a convolutional module consisting of the first convolutional layer and the second convolutional layer connected in series.

[0047] The convolution kernel size of the first and second convolutional layers is set to 1×1, the stride is set to 1, and the edge padding is set to 1.

[0048] Step 2.3, build the upsampling sub-network.

[0049] An upsampling subnetwork consisting of the first upsampling module, the second upsampling module, the third upsampling module, and the CBR module connected in series is built as a decoder; the structures of the first to third upsampling modules are the same, and the structure of each upsampling module is: the first convolutional layer, the second convolutional layer, the third convolutional layer, the BatchNorm layer, the activation layer, and the upsampling layer.

[0050] The convolution kernel size of the first to third convolutional layers is set to 3×3, the step size is set to 1, and the edge padding is set to 1. The slope of the negative part of the activation layer is set to 0.2. The activation layer is implemented using the LeakyReLU function. The upsampling layer uses the double nearest neighbor upsampling method.

[0051] The structure of the CBR module is: convolution layer, BatchNorm layer, activation layer. The convolution kernel size of the convolution layer is set to 3×3, the step size is set to 1, and the edge padding is set to 1. The slope of the negative part of the activation layer is set to 0.2. The activation layer is implemented using the LeakyReLU function.

[0052] In step 2.4, the inputs of the three upsampling modules in the upsampling subnetwork are connected to the outputs of the three Inception modules in the Inception-v3 network respectively, and the output of the input module is connected to the input of the CBR module to form an Inception-v3 network with a skip connection structure.

[0053] In step 2.5, the Inception-v3 network with skip connection structure, the convolution module, and the upsampling sub-network are connected in series to form the Inception-v3 U-Net network.

[0054] Step 3: Train the Inception-v3 U-Net network.

[0055] The training set is input into the Inception-v3 U-Net network, and the parameters of each layer in the Inception-v3 U-Net network are iteratively updated using the gradient descent method until the total cost function converges to obtain the trained Inception-v3 U-Net network.

[0056] The total cost function L is as follows:

[0057]

[0058] Wherein, L represents the total cost function, N represents the total number of samples in the training set, and in the embodiment of the present invention, N is set to 20, ∑(·) represents the summation operation, j represents the sequence number of the sample in the training set, and L GCL (j) represents the hierarchical contour cost function of the jth sample in the training set.

[0059] The hierarchical contour cost function L GCL (j) are as follows:

[0060]

[0061] Among them, M gc Represents the hierarchical profile weight matrix M of the jth sample in the training set gc The weight of the i-th pixel in , y i and They represent the true value and predicted value of the ith pixel in the jth sample in the training set, respectively, and log(·) represents the logarithmic operation with base 2.

[0062] The hierarchical profile weight matrix M gc as follows:

[0063]

[0064] Where G represents the inward grading level of the contour matrix, the inside of the target area is taken as the positive direction of the contour matrix, and the outside of the target area is taken as the negative direction of the contour matrix. g represents the sequence number of the level in the contour matrix. Gauss(·) represents the Gaussian convolution function, K g represents the g-th level contour range hyperparameter, in the present invention K represents a hyperparameter controlling the weight of the entire contour, K≥1. Γ represents the division result of each level of contour, and δ represents the determination result of the contour range. In the embodiment of the present invention, G=3, the convolution kernel of the Gaussian convolution is set to 2×2, the variance=1.5, and K=4.

[0065] The division result Γ of each level of contour is obtained by the following formula:

[0066]

[0067] Where Y represents the label image in the training set, S represents the convolution kernel used when dilating or corroding the label image, (Y; S) α It represents the expansion or erosion operation on the label image. When α is a positive number, it represents the expansion operation on the label image. When α is a negative number, it represents the erosion operation on the label image. In the present invention, α is set to g+1, g, +1, -1, and g-1 respectively.

[0068] The determination result δ of the contour range is obtained by the following formula:

[0069] δ=255·One-((Y;S) +1 )-(Y;S) -1 ))

[0070] Here, One represents a matrix whose element values ​​are all 1, and in the embodiment of the present invention, the matrix size is set to 224×224.

[0071] Step 4: Predict remote sensing images.

[0072] Step 4.1: crop all the remote sensing images to be predicted into a size of 224×224 in sequence, and label the cropped remote sensing images to be predicted with serial numbers.

[0073] In step 4.2, the labeled images are sequentially input into the trained Inception-v3 U-Net network to obtain the cropped remote sensing image segmentation results.

[0074] Step 4.3, the segmentation results of the cropped remote sensing image are stitched in sequence according to the serial number to obtain the final segmentation result.

[0075] The effect of the present invention can be further illustrated by the following simulation experiment.

[0076] 1. Simulation experiment conditions:

[0077] The hardware platform of the simulation experiment of the present invention is: the processor is Intel i7-6850K, the main frequency is 3.60GHz, the memory is 64G, the graphics card is NVIDIA TITAN Xp, and the video memory is 12GB.

[0078] The software platform of the simulation experiment of the present invention is: Ubuntu operating system and python 3.6.

[0079] The data used in the simulation experiment of the present invention are 20 sets of data randomly selected from the remote sensing building data set Massachusetts, which consists of 151 aerial images of the Boston area, each image has a size of 1500×1500, and the foreground of the data set is a building, including various buildings.

[0080] 2. Simulation experiment content and result analysis:

[0081] The simulation experiment of the present invention adopts the method of the present invention and the ablation experiment method of the prior art, and the simulation experiment is carried out according to the following steps respectively.

[0082] The ablation experiment method uses binary cross entropy and contour cost function as cost functions to train the Inception-v3U-Net network.

[0083] In step A, the data in the Massachusetts dataset is cropped to a size of 224×224 as the standard image size for this experiment.

[0084] Step B: Select 4464 remote sensing images corresponding to the label images with foreground pixels accounting for more than 10% in the cropped label images as samples to form the overall data set of this experiment.

[0085] Step C: randomly shuffle the samples in the entire data set, where 3960 samples are divided into a training set, 144 samples are divided into a validation set, and 360 samples are divided into a test set.

[0086] In step D, the training set data is input into the Inception-v3 U-Net network for training, and a total of 30 epochs are trained. During training, the performance of the current model is evaluated using evaluation indicators on the validation set every 5 epochs.

[0087] Step E: After training, the performance of the model that achieves the best validation result is evaluated on the test set.

[0088] Combine the following Figure 3 The simulation diagram of the present invention is further described.

[0089] Figure 3 (a) is the remote sensing image in the test set. Figure 3 (b) is the test set with Figure 3 (a) Corresponding label map. Figure 3 (c) is the result of segmenting the remote sensing image using binary cross entropy as the cost function. Figure 3 (d) is the result of segmenting the remote sensing image using the contour cost function as the cost function. Figure 3 (e) is a diagram showing the result of segmenting a remote sensing image using the method of the present invention.

[0090] Depend on Figure 3 It can be seen from (c), 3(d), and 3(e) that the segmentation results of the present invention are clearer in segmentation of the foreground contour and have more precise contours than the segmentation results of the two ablation experimental methods.

[0091] In order to verify that the segmentation effect of the present invention is better than the two ablation experimental methods, the following formula is used to calculate the recall rate Recall, precision rate Acc and intersection over union ratio IoU to evaluate the segmentation results, and all the calculation results are plotted in Table 1:

[0092] The formula for recall is as follows:

[0093]

[0094] Among them, TP is the number of samples that are actually positive samples and the predicted results are also positive samples, and FN is the number of samples that are actually positive samples and the predicted results are negative samples.

[0095] The formula for accuracy Acc is as follows:

[0096]

[0097] Among them, FP is the number of samples that are actually negative samples and predicted as positive samples, and TN is the number of samples that are actually negative samples and predicted as negative samples. The formula for the intersection over union (IoU) is as follows:

[0098]

[0099] Table 1. Quantitative analysis of the segmentation results of the method of the present invention and the ablation experiment method in the simulation experiment

[0100]

[0101] The larger the values ​​of Recall, Acc, and IoU in Table 1, the more accurate the segmentation result. From Table 1, it can be seen that the recall rate Recall of the present invention is 67.81%, the accuracy rate Acc is 89.68%, and the intersection over union ratio IoU is 57.00%. These three indicators are higher than the two ablation experimental methods, which proves the effectiveness of the hierarchical contour cost function proposed in the present invention and can effectively improve the accuracy of remote sensing image segmentation.

Claims

1. A remote sensing image semantic segmentation method based on hierarchical contour cost function, characterized in that: Construct the Inception-v3U-Net segmentation network and use the hierarchical contour cost function to supervise the loss of the segmentation network; the specific steps of this segmentation method are as follows: Step 1: Generate training set: Step 1.1, randomly select at least 20 high-resolution remote sensing images with a balanced ratio of foreground to background and their corresponding label images; crop each high-resolution image and the corresponding label image to a size of 224×224 pixels; Step 1.2, select the label images whose foreground pixels account for more than 10% in the cropped label images, and the remote sensing images corresponding to the label images to form a training set; Step 2: Build the Inception-v3 U-Net segmentation network: Step 2.1, build a convolution module: Build a convolutional module consisting of the first convolutional layer and the second convolutional layer in series; The convolution kernel size of the first and second convolutional layers is set to 1×1, the stride is set to 1, and the edge padding is set to 1; Step 2.2, build the upsampling subnetwork: Build an upsampling subnetwork consisting of the first upsampling module, the second upsampling module, the third upsampling module, and the CBR module in series as a decoder; the structures of the first to third upsampling modules are the same, and the structure of each upsampling module is: the first convolutional layer, the second convolutional layer, the third convolutional layer, the BatchNorm layer, the activation layer, and the upsampling layer; The convolution kernel size of the first to third convolutional layers is set to 3×3, the step size is set to 1, the edge padding is set to 1, the slope of the negative part of the activation layer is set to 0.2, the activation layer is implemented using the LeakyReLU function, and the upsampling layer uses the double nearest neighbor upsampling method; The structure of the CBR module is: convolution layer, BatchNorm layer, activation layer. The convolution kernel size of the convolution layer is set to 3×3, the step size is set to 1, the edge padding is set to 1, the slope of the negative part of the activation layer is set to 0.2, and the activation layer is implemented using the LeakyReLU function. Step 2.3: In a concatenate manner, the inputs of the three upsampling modules in the upsampling subnetwork are connected to the outputs of the three Inception modules in the Inception-v3 network, and the outputs of the input modules are connected to the inputs of the CBR modules to form an Inception-v3 network with a skip connection structure. Step 2.4, connect the Inception-v3 network with skip connection structure, convolution module, and upsampling sub-network in series to form an Inception-v3 U-Net network; Step 3, train the Inception-v3 U-Net network: Input the training set into the Inception-v3 U-Net network, use the gradient descent method to iteratively update the parameters of each layer in the Inception-v3U-Net network until the total cost function converges, and obtain the trained Inception-v3 U-Net network; The hierarchical contour cost function is as follows: Among them, L GCL (j) represents the hierarchical contour cost function of the jth sample in the training set, M gc Represents the hierarchical profile weight matrix M of the jth sample in the training set gc The weight of the i-th pixel in , y i and They represent the true value and predicted value of the ith pixel in the jth sample in the training set, respectively, and log(·) represents the logarithmic operation with base 2; The hierarchical profile weight matrix M gc as follows: Where G represents the inward grading level of the contour matrix, the inside of the target area is taken as the positive direction of the contour matrix, and the outside of the target area is taken as the negative direction of the contour matrix, g represents the sequence number of the level in the contour matrix, Gauss(·) represents the Gaussian convolution function, and K g represents the hyperparameter of the g-th level contour range, Γ represents the division result of each level contour, and δ represents the determination result of the contour range; Step 4, predict remote sensing images: Step 4.1, crop all the remote sensing images to be predicted into 224×224 size in sequence, and mark the cropped remote sensing images to be predicted with serial numbers; Step 4.2, input the labeled images into the trained Inception-v3 U-Net network in sequence to obtain the cropped remote sensing image segmentation results; Step 4.3, the segmentation results of the cropped remote sensing image are stitched in sequence according to the serial number to obtain the final segmentation result.

2. The remote sensing image semantic segmentation method based on hierarchical contour cost function according to claim 1, characterized in that: The total cost function described in step 3 is as follows: Where L represents the total cost function, N represents the total number of samples in the training set, ∑(·) represents the summation operation, j represents the sequence number of the sample in the training set, and L GCL (j) represents the hierarchical contour cost function of the jth sample in the training set; The division result Γ of each level of contour is obtained by the following formula: Where Y represents the label image in the training set, S represents the convolution kernel used when dilating or corroding the label image, (Y; S) α Indicates the expansion or erosion operation on the label image. When α is a positive number, it indicates that the label image is expanded, and when α is a negative number, it indicates that the label image is eroded. The determination result δ of the contour range is obtained by the following formula: δ=255·One-((Y;S) +1 )-(Y;S) -1 )) Among them, One represents a matrix whose element values ​​are all 1.

Citation Information

Patent Citations

  • Remote sensing image segmentation method and system based on edge auxiliary information

    CN113920311A

  • A remote sensing image segmentation method and system based on edge auxiliary information

    CN113920311B