Semi-supervised remote sensing image semantic segmentation method, device, equipment, medium and product

By using the structurally symmetric student model and teacher model in the semi-supervised remote sensing image semantic segmentation method, combined with feature consistency enhancement and weak orthogonal constraints, the problem of learning bias and poor slight perturbation effects is solved, and the robustness of the model is improved. and segmentation performance.

CN118710901APending Publication Date: 2024-09-27WUHAN UNIV
View PDF 0 Cites 5 Cited by

Patent Information

Application Number
CN202410828040.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

Existing semi-supervised remote sensing image semantic segmentation methods are prone to learning bias and cognitive bias during the training process, and the effect of slight perturbations is poor, causing the model to easily fall into a local optimal solution.

Method used

Using structurally symmetrical student models and teacher models, through feature consistency enhancement processing and weak orthogonal constraints, the dual guidance of label information and teacher models is introduced to reduce dependence on annotated data, and weakly coupled with multi-decoder structures and weights. Orthogonal technology enhances the feature perturbation effect.

Benefits of technology

It improves the robustness and generalization ability of the model, alleviates learning bias and cognitive bias, improves semantic segmentation performance, and solves the problem of poor slight perturbation effects and easy training to fall into local optimality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118710901A
    Figure CN118710901A
Patent Text Reader

Abstract

The invention relates to the technical field of optical remote sensing images, in particular to a semi-supervised remote sensing image semantic segmentation method and device, equipment, a medium and a product, and the method comprises the steps: obtaining a labeled data set and a label-free data set of an optical remote sensing image; a loss function is constructed, a semi-supervised semantic segmentation network is trained through the labeled data set, the label-free data set and the loss function, the semi-supervised semantic segmentation network comprises a student model and a teacher model, the teacher model extracts the features of the label-free image, and the student model extracts the features of the label-free image and the labeled image; performing consistency enhancement processing on the extracted features of the unlabeled image, performing weak orthogonal constraint on multiple decoders of the student model, and symmetrically transmitting learned knowledge to the teacher model; and outputting a semantic segmentation result by using the trained semi-supervised semantic segmentation network. Therefore, the problems of network learning deviation, cognitive deviation, poor slight disturbance effect, easy local optimum of training and the like in the prior art are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of optical remote sensing image technology, and in particular to a semi-supervised remote sensing image semantic segmentation method, device, equipment, medium and product. Background Art

[0002] Semi-supervised semantic segmentation methods have attracted widespread attention in the field of remote sensing image semantic segmentation due to their ability to efficiently utilize limited labeled data and abundant unlabeled data. However, these methods are usually based on a core assumption - the clustering assumption, which assumes that there is a natural clustering structure in unlabeled data, so that similar samples are close to each other in the feature space. Although this assumption is valid, over-reliance on high-quality feature representation may cause learning bias and cognitive bias in the network during training.

[0003] First, when labeled data is scarce, the model tends to focus too much on this limited data and thus fails to fully capture the inherent structure of all data. This clustering-based assumption may lead to incorrect classification decisions in this case, resulting in learning bias. Second, when two categories show a high degree of similarity in the feature space, the clustering algorithm may have difficulty accurately distinguishing them, resulting in confusion of data points, which weakens the model's ability to distinguish these categories and produces cognitive bias. Among them, once the model generates incorrect pseudo-labels for data points of similar categories, these labels will further reinforce the model's misperceptions and aggravate the bias.

[0004] To address the above issues, consistency-based semi-supervised semantic segmentation methods have emerged. This method changes the feature representation of data points by applying different perturbations to unlabeled data, thereby destroying the original clustering structure and prompting the model to learn more robust and generalized features. However, in order to maintain the original distribution characteristics of the data, existing methods usually only use weak perturbations, such as adding tiny noise or performing slight transformations.

[0005] However, when processing remote sensing images, such slight perturbations are not always effective. This is mainly due to the complexity of remote sensing images, including their unique texture features, spectral features, and rich semantic information, which makes it difficult for slight perturbations to change their inherent feature representations. In addition, as training progresses, the network parameters gradually stabilize and converge to a local optimal solution, causing the model to become less sensitive to slight changes in the data. Summary of the invention

[0006] The present application provides a semi-supervised remote sensing image semantic segmentation method, device, equipment, medium and product to solve the problems of network learning bias, cognitive bias, poor effect of slight perturbation, and training easily falling into local optimality in the prior art.

[0007] The first aspect of the present application provides a semi-supervised remote sensing image semantic segmentation method, comprising the following steps: obtaining a labeled data set and an unlabeled data set of optical remote sensing images, wherein the labeled data set includes multiple labeled images, and the unlabeled data set includes multiple unlabeled images; constructing a loss function of a semi-supervised semantic segmentation network, and training the semi-supervised semantic segmentation network using the labeled data set, the unlabeled data set and the loss function, wherein the semi-supervised semantic segmentation network includes a student model and a teacher model with symmetrical structures, the teacher model extracts features of unlabeled images, and the student model extracts features of unlabeled images and labeled images at the same time; during the training process, consistency enhancement processing is performed on the features of the unlabeled images extracted by the teacher model and the student model respectively, weak orthogonal constraints are performed on the multi-decoders of the student model, and the knowledge learned by the student model is symmetrically transferred to the teacher model; and the trained semi-supervised semantic segmentation network is used to output the semantic segmentation result of the optical remote sensing image.

[0008] Optionally, the semi-supervised semantic segmentation network downsamples the optical remote sensing image multiple times and randomly initializes the encoders of the teacher model and the student model.

[0009] Optionally, the consistency enhancement processing is performed on the features of the unlabeled images extracted by the teacher model and the student model, including: flattening the features of the unlabeled images extracted by the teacher model and the student model into one-dimensional vectors, and calculating the Euclidean distance between the two one-dimensional vectors; and taking the average value of all Euclidean distances as the consistency constraint loss.

[0010] Optionally, the weak orthogonal constraints are applied to the multiple decoders of the student model, including: expanding the weight of each decoder of the student model; applying weak orthogonal constraints to the weights of every two decoders; utilizing each decoder to perform feature decoding, performing segmentation through a classifier, and integrating all segmentation results to obtain a final segmentation result.

[0011] Optionally, the loss function of the semi-supervised semantic segmentation network is:

[0012]

[0013] in, To monitor losses, is the consistency loss function, d(F S ,F T ) is the feature enhancement loss and weak orthogonal loss in Section B, orth is the feature enhancement loss and weak orthogonal loss in Section C, β is the loss weight, and γ is the corresponding loss weight in Section B.

[0014] Optionally, before using the labeled dataset, the unlabeled dataset and the loss function to train the semi-supervised semantic segmentation network, it also includes: performing data preprocessing on the unlabeled images of the unlabeled dataset, wherein the data preprocessing includes at least one processing method of cropping, rotation and color transformation.

[0015] The second aspect of the present application provides a semi-supervised remote sensing image semantic segmentation device, including: an acquisition module, used to acquire a labeled data set and an unlabeled data set of optical remote sensing images, wherein the labeled data set includes multiple labeled images, and the unlabeled data set includes multiple unlabeled images; an extraction module, used to construct a loss function of a semi-supervised semantic segmentation network, and train the semi-supervised semantic segmentation network using the labeled data set, the unlabeled data set and the loss function, wherein the semi-supervised semantic segmentation network includes a student model and a teacher model with symmetrical structures, the teacher model extracts features of unlabeled images, and the student model extracts features of unlabeled images and labeled images at the same time; a processing module, used to perform consistency enhancement processing on the features of unlabeled images extracted by the teacher model and the student model respectively during the training process, perform weak orthogonal constraints on the multi-decoders of the student model, and symmetrically transfer the knowledge learned by the student model to the teacher model; an output module, used to output the semantic segmentation result of the optical remote sensing image using the trained semi-supervised semantic segmentation network.

[0016] The third aspect of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the semi-supervised remote sensing image semantic segmentation method as described above.

[0017] The fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, which is executed by a processor to implement the semi-supervised remote sensing image semantic segmentation method as described above.

[0018] The fifth aspect of the present application provides a computer program product, including a computer program or instructions, which, when executed, are used to implement the semi-supervised remote sensing image semantic segmentation method as described above.

[0019] Therefore, this application has at least the following beneficial effects:

[0020] The embodiment of the present application introduces dual guidance of label information and teacher model through the feature consistency enhancement module, which reduces the dependence on labeled data and alleviates learning bias. In order to maximize the feature difference, a multi-decoder structure and a pairwise weak orthogonal technology of weights are adopted to enhance the perturbation effect of the feature, so that the model can learn from multiple angles. At the same time, by applying the same multi-decoder structure in a symmetrical teacher model structure, the confidence of the pseudo-label and the effect of consistency learning are improved, thereby improving the performance of the overall model. Thus, the technical problems of network learning bias, cognitive bias, poor effect of slight perturbation, and easy falling into local optimality in the prior art are solved.

[0021] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0023] Figure 1 A flowchart of a semi-supervised remote sensing image semantic segmentation method provided according to an embodiment of the present application;

[0024] Figure 2 A network structure diagram of semi-supervised remote sensing image semantic segmentation provided according to an embodiment of the present application;

[0025] Figure 3 A schematic diagram of weak orthogonal constraints of multiple decoders provided according to an embodiment of the present application;

[0026] Figure 4 This is an example diagram of a semi-supervised remote sensing image semantic segmentation device provided according to an embodiment of the present application;

[0027] Figure 5 It is a schematic diagram of the structure of an electronic device provided according to an embodiment of the present application. DETAILED DESCRIPTION

[0028] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0029] The following describes the semi-supervised remote sensing image semantic segmentation method, device, equipment, medium and product of the embodiment of the present application with reference to the accompanying drawings. In view of the problem that the learning bias and cognitive bias of the network mentioned in the above background technology seriously interfere with the training of the remote sensing image semi-supervised semantic segmentation network, the present application provides a semi-supervised remote sensing image semantic segmentation method, in which the dual guidance of label information and teacher model is introduced through the feature consistency enhancement module, which reduces the dependence on labeled data and alleviates the learning bias. In order to maximize the feature difference, a multi-decoder structure and a pairwise weak orthogonal technology of weights are adopted to enhance the perturbation effect of the feature so that the model can learn from multiple angles. At the same time, by applying the same multi-decoder structure in a symmetrical teacher model structure, the confidence of the pseudo-label and the effect of consistency learning are improved, thereby improving the performance of the overall model. As a result, the problems of network learning bias, cognitive bias, poor effect of slight perturbation, and easy falling into local optimality in the prior art are solved.

[0030] Specifically, Figure 1 A flowchart of a semi-supervised remote sensing image semantic segmentation method provided in an embodiment of the present application.

[0031] like Figure 1 As shown, the semi-supervised remote sensing image semantic segmentation method includes the following steps:

[0032] In step S101 , a labeled data set and an unlabeled data set of optical remote sensing images are obtained.

[0033] The labeled data set may include multiple labeled images, and the unlabeled data set may include multiple unlabeled images.

[0034] It is understandable that the embodiment of the present application provides strong support for the processing of remote sensing images by obtaining labeled data sets and unlabeled data sets of optical remote sensing images. Among them, the labeled data set contains remote sensing images that have been accurately labeled, which provides a clear learning goal for the model and helps to train more accurate algorithms such as remote sensing image classification, target detection or image segmentation. The unlabeled data set contains a large number of unlabeled remote sensing images, which provides a rich and diverse data resource for the model, supports unsupervised learning and self-supervised learning, and helps the model learn the intrinsic structure and characteristics of remote sensing images.

[0035] Specifically, we collect existing publicly available optical remote sensing image datasets and divide them into labeled datasets according to the ratio of 1:7 and 1:15. and unlabeled datasets Before inputting the model, strong and weak enhancements are performed on the unlabeled data. The enhanced unlabeled data and the original labeled data are input into the network as training data.

[0036] In step S102, a loss function of a semi-supervised semantic segmentation network is constructed, and the semi-supervised semantic segmentation network is trained using a labeled data set, an unlabeled data set, and a loss function, wherein the semi-supervised semantic segmentation network includes a student model and a teacher model with symmetrical structures, the teacher model extracts features of unlabeled images, and the student model simultaneously extracts features of unlabeled images and labeled images.

[0037] Among them, semi-supervised semantic segmentation network is a machine learning technology between supervised learning and unsupervised learning.

[0038] It can be understood that the embodiment of the present application constructs a loss function of a semi-supervised semantic segmentation network and combines labeled and unlabeled data sets for training. By introducing structurally symmetrical student models and teacher models, it can significantly improve the generalization ability and segmentation accuracy of the model, while reducing the data annotation cost and enhancing the robustness of the model, making it adaptable to scenarios with different degrees of annotation.

[0039] In an embodiment of the present application, a semi-supervised semantic segmentation network downsamples the optical remote sensing image multiple times and randomly initializes the encoders of the teacher model and the student model.

[0040] Among them, downsampling can be the process of reducing the amount of computation and storage requirements by reducing the resolution or size of the image in image processing, and random initialization can be the process of randomly assigning values ​​to the parameters of the model before the model training begins.

[0041] It can be understood that the semi-supervised semantic segmentation network in the embodiment of the present application not only improves the generalization ability and segmentation accuracy of the model through multiple downsampling and random initialization of the encoder, but also accelerates the training process and enhances the robustness of the model.

[0042] Specifically, Resnet50 is used as the backbone network, and the image is downsampled three times to fully extract semantic information; the teacher feature encoder and the student feature encoder are randomly initialized to ensure that they are different.

[0043] In this embodiment of the present application, the loss function of the semi-supervised semantic segmentation network is:

[0044]

[0045] in, To monitor losses, is the consistency loss function, d(F S ,F T ) is the feature enhancement loss and weak orthogonal loss in Section B, orth is the feature enhancement loss and weak orthogonal loss in Section C, β is the loss weight, and γ is the corresponding loss weight in Section B.

[0046] Specifically, during the training phase, the loss function is:

[0047]

[0048] in, To monitor losses, is the consistency loss function, d(F S ,F T ) is the feature enhancement loss and weak orthogonal loss in Section B, orth is the feature enhancement loss and weak orthogonal loss in Section C, β is the loss weight, and γ is the corresponding loss weight in Section B.

[0049] is calculated by multi-class cross entropy loss, which is defined as follows:

[0050]

[0051] Where M represents the number of observed samples; n represents the number of categories; p ic represents the probability that the observed sample i belongs to category c; y ic represents the true probability that sample i belongs to category c.

[0052] The basic idea of ​​consistency loss is that the output of the model for the same unlabeled input data under different perturbations should be consistent. This consistency constraint can reduce the overfitting of the model and improve the efficiency of the use of unlabeled data. The specific loss function form is as follows:

[0053]

[0054] Where ω represents the pixel address of the segmentation map output grid Ω, y%(ω)∈{0,1} Y is the segmentation prediction from the teacher model at ω, pθ s (x)(ω)∈[0,1] Y is the segmentation prediction from the student model at ω, c(ω)∈[0,1] represents the confidence of the segmentation prediction from the teacher model at ω, and D U is the unlabeled data, θ S are the parameters of the student model.

[0055] In an embodiment of the present application, before using a labeled data set, an unlabeled data set and a loss function to train a semi-supervised semantic segmentation network, it also includes: performing data preprocessing on the unlabeled images of the unlabeled data set.

[0056] The data preprocessing may include at least one of cropping, rotating and color conversion.

[0057] It can be understood that the embodiments of the present application perform data preprocessing on the unlabeled images of the unlabeled data set, which can improve data quality, reduce computational complexity, and provide a high-quality data foundation for subsequent semi-supervised learning model training.

[0058] Specifically, Figure 2 As shown in the figure, the image is cropped according to a 512x512 pixel window to adapt to the input size requirements of the model; two different types of enhancement operations are performed on the unlabeled image to improve the generalization ability and robustness of the model. On the one hand, weak enhancement processing is implemented, which mainly includes simple image transformation operations such as random rotation and small translation. These weak enhancement operations can simulate the slight deformation and displacement that may occur in the image in actual applications, thereby helping the model learn to be robust to these changes.

[0059] On the other hand, strong enhancement processing is performed, which usually involves more complex image transformations, such as color transformation, contrast adjustment, etc. Strong enhancement operations can significantly change the appearance of the image, but keep its semantic information unchanged. By allowing the model to learn semantic segmentation on the strongly enhanced image, the model's adaptability to complex lighting conditions, shadow occlusion and other factors can be further improved.

[0060] For example, a computer is used to train and infer the network, and the Pytorch deep learning framework is used under the Windows operating system. The specific experimental environment configuration is shown in Table 1 below.

[0061] Table 1 Experimental environment configuration table

[0062]

[0063] In order to make full use of computing resources, during the training process, the input image is randomly cropped using a 512×512 window to generate training samples. In the inference stage, the same sliding method is used to crop input image patches from the original test image and process them one by one. The mIOU, F1 score and OA evaluation indicators are used to evaluate the performance of the method.

[0064]

[0065] Among them, OA is an indicator that considers the global aspects of classification, mIOU is the average of the intersection-over-union ratio of each class in the data set, F1 is the harmonic mean of precision and recall, TP is the true positive sample, TN is the true negative sample, FP is the false positive sample, FN is the false negative sample, n is the total number of categories, precision is the accuracy, and recall is the recall rate.

[0066] In the cluster learning method, a stochastic gradient descent optimizer was used. Specifically, the basic learning rate was set to 0.01, the momentum was set to 0.9, and the weight decay was set to 0.00001. A total of 40 epochs were trained during the training process, and the initial learning rate was multiplied by The momentum decay coefficient and weight decay coefficient are set to 0.9 and 0.0001, respectively.

[0067] In step S103, during the training process, the features of the unlabeled images extracted by the teacher model and the student model are respectively subjected to consistency enhancement processing, weak orthogonal constraints are applied to the multi-decoder of the student model, and the knowledge learned by the student model is symmetrically transferred to the teacher model.

[0068] Among them, the consistency enhancement process can be a regularization technique used to encourage the model to produce similar outputs for similar inputs.

[0069] It can be understood that the embodiments of the present application enhance the robustness of the teacher model and the student model for unlabeled image feature extraction by adopting consistency enhancement processing, utilize weak orthogonal constraints to improve the feature diversity of the student model multi-decoder, and optimize the guidance ability of the teacher model through knowledge symmetric transfer, thereby significantly improving the performance and generalization ability of the semantic segmentation model, accelerating the training process, and reducing overfitting.

[0070] Specifically, the unlabeled data features F extracted by the teacher model Τ And the student model extracts unlabeled data features F S Perform feature enhancement consistency constraints. Constrain the features learned by the student model through feature consistency enhancement, forcing the features learned by the student model to be close to the teacher model.

[0071] Specifically, the structure of the teacher model is completely consistent with the student model to ensure the symmetry between the two in feature extraction and representation, and the exponential moving average method is used to update the parameters of the teacher model. In other words, the parameters of the teacher model are not updated through direct training, but indirectly updated through the parameters of the student model:

[0072] θ t =αθ t-1 +(1-α)θ s

[0073] Among them, θ t is the parameter of the teacher model at time step t, θ t-1 is the parameter of the teacher model at time step t-1, θ sis the current parameter of the student model, α is a smoothing coefficient between 0 and 1, which controls the weight ratio of the new and old parameters. It is usually set to a value close to 1 to ensure the stability of the teacher model parameter update.

[0074] In an embodiment of the present application, consistency enhancement processing is performed on the features of the unlabeled images extracted by the teacher model and the student model, including: flattening the features of the unlabeled images extracted by the teacher model and the student model into one-dimensional vectors, and calculating the Euclidean distance between the two one-dimensional vectors; and taking the average value of all Euclidean distances as the consistency constraint loss.

[0075] Among them, the Euclidean distance can be the "straight-line" distance between two points in Euclidean space.

[0076] It is understandable that the embodiment of the present application flattens the features extracted from the unlabeled images by the teacher model and the student model into a one-dimensional vector and calculates the Euclidean distance between the two. The average value of this distance is used as the consistency constraint loss, which can promote the student model to learn and imitate the feature extraction method of the teacher model, thereby improving the performance, robustness and generalization ability of the student model, while making full use of the unlabeled data and allowing quantitative evaluation of the experimental results.

[0077] Specifically, the teacher model and the student model process the unlabeled data and extract features respectively, and then flatten these features into one-dimensional vectors. The Euclidean distance between these one-dimensional vectors is calculated, and the process is repeated to obtain the Euclidean distance of all data. Finally, by calculating the average of all Euclidean distances, the feature consistency constraint loss is obtained, which is used to guide the optimization of the student model so that it can better imitate the feature extraction method of the teacher model, thereby improving the overall performance.

[0078] During the training process, the consistency between the features extracted by the student model and the features extracted by the teacher model is measured by the feature consistency enhancement loss function. To achieve this goal, the average Euclidean distance in the feature space is used as the feature loss function. Specifically, for a given sample, the features extracted by the teacher model and the student model are flattened into a one-dimensional vector, the Euclidean distance between their feature representations is calculated, and the average of the distances of all samples is taken as the value of the loss function. By minimizing this loss function, the features of the student model can gradually approach the features of the teacher model, thereby achieving feature consistency enhancement. The specific formula is as follows:

[0079]

[0080] in, represents the characteristics of the last layer of the student model in the i-th sample, represents the features of the last layer of the teacher model in the i-th sample, N is the number of features, and ||.|| represents the Euclidean distance.

[0081] In an embodiment of the present application, weak orthogonal constraints are applied to multiple decoders of the student model, including: expanding the weight of each decoder of the student model; applying weak orthogonal constraints to the weights of every two decoders; utilizing each decoder to perform feature decoding, performing segmentation through a classifier, and integrating all segmentation results to obtain the final segmentation result.

[0082] Among them, the decoder can be a component in the machine learning model, responsible for generating the target sequence based on the output of the encoder, and the classifier can be used to classify each pixel or image block.

[0083] It is understandable that the embodiment of the present application ensures that the features learned by the student model are different and complementary by expanding the weight of each decoder and applying weak orthogonal constraints to the weights of every two decoders. Subsequently, each decoder is used to perform feature decoding, and pixels or image blocks are classified by a classifier to generate preliminary segmentation results. Finally, the segmentation results of all decoders are integrated to obtain the final accurate and reliable image segmentation results, thereby improving the performance of the student model in the image segmentation task and enhancing the accuracy and consistency of the segmentation results.

[0084] Specifically, Figure 3 As shown, the weight parameters of each decoder are expanded, and then the weights of every two decoders are weakly orthogonal constrained: L ort =λ·|W T WI| 2 ;

[0085] Among them, L ort is the regularization loss; λ is a hyperparameter; W is the weight matrix formed by expanding and concatenating the weights of the two decoders; I is the unit matrix;

[0086] Each decoder decodes the features of the data, then segments it through a classifier, integrates all the segmentation results, and finally outputs a final segmentation result.

[0087] It should be noted that in the decoder stage, both the teacher model and the student model adopt a multi-decoder structure, all decoders share the same input, and padding = 1 is used during the convolution operation to ensure that the output size remains unchanged. The weights of the two decoders are flattened and concatenated together to generate the weight matrix W, and W and its transpose W T The product of is used as a constraint to make it infinitely close to the identity matrix.

[0088] In step S104, the trained semi-supervised semantic segmentation network is used to output the semantic segmentation result of the optical remote sensing image.

[0089] It can be understood that the embodiment of the present application effectively combines labeled and unlabeled optical remote sensing image data by utilizing a trained semi-supervised semantic segmentation network, and outputs high-quality semantic segmentation results. It not only improves the segmentation accuracy and reduces the dependence on labeled data, but also further enhances the generalization ability and segmentation effect of the model through technical means such as multi-scale information integration and adversarial learning.

[0090] According to the semi-supervised remote sensing image semantic segmentation method proposed in the embodiment of the present application, the dual guidance of label information and teacher model is introduced through the feature consistency enhancement module, which reduces the dependence on labeled data and alleviates learning bias. In order to maximize the feature difference, a multi-decoder structure and a pairwise weak orthogonal technology of weights are adopted to enhance the perturbation effect of the feature so that the model can learn from multiple angles. At the same time, by applying the same multi-decoder structure in a symmetrical teacher model structure, the confidence of the pseudo-label and the effect of consistency learning are improved, thereby improving the performance of the overall model. Thus, the problems of network learning bias, cognitive bias, poor effect of slight perturbation, and easy falling into local optimality in the prior art are solved.

[0091] The following is a detailed description of the semi-supervised remote sensing image semantic segmentation method.

[0092] S1. Preprocessing of semi-supervised remote sensing image semantic segmentation data. Perform weak enhancements such as cropping and rotation and strong enhancements such as color transformation on unlabeled data;

[0093] S2. Design a teacher model feature encoder and a student model feature encoder. The teacher model feature encoder is used to extract features from unlabeled data, and the student model feature encoder extracts features from both labeled and unlabeled data.

[0094] S3, the teacher model and the student model feature enhancement consistency constraint, constrains the features extracted by the teacher model feature encoder and the features extracted by the student feature encoder in S2, forcing the features learned by the student model to be close to the features extracted by the teacher model during training;

[0095] S4, multi-decoder weak orthogonal constraints, decode the features extracted in S3, and use weak orthogonal constraints to make each decoder learn different features;

[0096] S5, a multi-decoder teacher structure based on symmetric knowledge transfer, which symmetrically transfers the knowledge learned by the student model to the teacher model;

[0097] S6. Construct different loss functions and train the entire network for image semantic segmentation step by step.

[0098] Next, the semi-supervised remote sensing image semantic segmentation device proposed according to the embodiment of the present application is described with reference to the accompanying drawings.

[0099] Figure 4 It is a block diagram of a semi-supervised remote sensing image semantic segmentation device according to an embodiment of the present application.

[0100] like Figure 4 As shown, the semi-supervised remote sensing image semantic segmentation device 10 includes: an acquisition module 100, an extraction module 200, a processing module 300 and an output module 400.

[0101] Among them, the acquisition module 100 is used to obtain a labeled data set and an unlabeled data set of optical remote sensing images, wherein the labeled data set includes multiple labeled images, and the unlabeled data set includes multiple unlabeled images; the extraction module 200 is used to construct a loss function of a semi-supervised semantic segmentation network, and train the semi-supervised semantic segmentation network using the labeled data set, the unlabeled data set and the loss function, wherein the semi-supervised semantic segmentation network includes a student model and a teacher model with symmetrical structures, the teacher model extracts the features of the unlabeled images, and the student model extracts the features of the unlabeled images and the labeled images at the same time; the processing module 300 is used to perform consistency enhancement processing on the features of the unlabeled images extracted by the teacher model and the student model respectively during the training process, perform weak orthogonal constraints on the multi-decoders of the student model, and symmetrically transfer the knowledge learned by the student model to the teacher model; the output module 400 is used to output the semantic segmentation results of the optical remote sensing image using the trained semi-supervised semantic segmentation network.

[0102] It should be noted that the aforementioned explanation of the embodiment of the semi-supervised remote sensing image semantic segmentation method is also applicable to the semi-supervised remote sensing image semantic segmentation device of this embodiment, and will not be repeated here.

[0103] According to the semi-supervised remote sensing image semantic segmentation device proposed in the embodiment of the present application, the dual guidance of label information and teacher model is introduced through the feature consistency enhancement module, which reduces the dependence on labeled data and alleviates learning bias. In order to maximize the feature difference, a multi-decoder structure and a pairwise weak orthogonal technology of weights are adopted to enhance the perturbation effect of the features so that the model can learn from multiple angles. At the same time, by applying the same multi-decoder structure in a symmetrical teacher model structure, the confidence of the pseudo-label and the effect of consistency learning are improved, thereby improving the performance of the overall model. As a result, the problems of network learning bias, cognitive bias, poor effect of slight perturbation, and easy falling into local optimality in the prior art are solved.

[0104] Figure 5A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may include:

[0105] A memory 501 , a processor 502 , and a computer program stored in the memory 501 and executable on the processor 502 .

[0106] When the processor 502 executes the program, the semi-supervised remote sensing image semantic segmentation method provided in the above embodiment is implemented.

[0107] Furthermore, the electronic device further comprises:

[0108] The communication interface 503 is used for communication between the memory 501 and the processor 502 .

[0109] The memory 501 is used to store computer programs that can be executed on the processor 502 .

[0110] The memory 501 may include a high-speed RAM (Random Access Memory) memory, and may also include a non-volatile memory, such as at least one disk memory.

[0111] If the memory 501, the processor 502 and the communication interface 503 are implemented independently, the communication interface 503, the memory 501 and the processor 502 can be connected to each other through a bus and communicate with each other. The bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0112] Optionally, in a specific implementation, if the memory 501, the processor 502 and the communication interface 503 are integrated on a chip, the memory 501, the processor 502 and the communication interface 503 can communicate with each other through an internal interface.

[0113] The processor 502 may be a CPU (Central Processing Unit), or an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application.

[0114] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-mentioned semi-supervised remote sensing image semantic segmentation method.

[0115] An embodiment of the present application also provides a computer program product, including a computer program or instructions, which, when executed, implements the above-mentioned semi-supervised remote sensing image semantic segmentation method.

[0116] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. 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 application. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0117] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0118] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0119] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, the N 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 their combination: 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, a field programmable gate array, etc.

[0120] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

Claims

1. A semi-supervised remote sensing image semantic segmentation method, It is characterized in that The following steps are involved: Acquire a labeled data set and an unlabeled data set of optical remote sensing images, wherein the labeled data set includes a plurality of labeled images, and the unlabeled data set includes a plurality of unlabeled images; Constructing a loss function of a semi-supervised semantic segmentation network, and training the semi-supervised semantic segmentation network using the labeled data set, the unlabeled data set, and the loss function, wherein the semi-supervised semantic segmentation network includes a student model and a teacher model with symmetrical structures, the teacher model extracts features of unlabeled images, and the student model simultaneously extracts features of unlabeled images and labeled images; During the training process, the features of the unlabeled images extracted by the teacher model and the student model are respectively subjected to consistency enhancement processing, weak orthogonal constraints are imposed on the multi-decoders of the student model, and the knowledge learned by the student model is symmetrically transferred to the teacher model; The trained semi-supervised semantic segmentation network is used to output the semantic segmentation results of optical remote sensing images.

2. The semi-supervised remote sensing image semantic segmentation method according to claim 1, It is characterized in that The semi-supervised semantic segmentation network downsamples the optical remote sensing image multiple times and randomly initializes the encoders of the teacher model and the student model.

3. The semi-supervised remote sensing image semantic segmentation method according to claim 1, It is characterized in that The performing consistency enhancement processing on the features of the unlabeled images extracted by the teacher model and the student model respectively includes: Flatten the features of the unlabeled image extracted by the teacher model and the student model into one-dimensional vectors, and calculate the Euclidean distance between the two one-dimensional vectors; The average of all Euclidean distances is used as the consistency constraint loss.

4. The semi-supervised remote sensing image semantic segmentation method according to claim 1, It is characterized in that The weak orthogonal constraints are imposed on the multiple decoders of the student model, including: Expand the weights of each decoder of the student model; Apply weak orthogonality constraints to the weights of every two decoders; Each decoder is used to decode features, the classifier is used to perform segmentation, and all segmentation results are integrated to obtain the final segmentation result.

5. The semi-supervised remote sensing image semantic segmentation method according to claim 1, It is characterized in that The loss function of the semi-supervised semantic segmentation network is: in, To monitor losses, is the consistency loss function, d(F S ,F T ) is the feature enhancement loss and weak orthogonal loss in Section B, orth is the feature enhancement loss and weak orthogonal loss in Section C, β is the loss weight, and γ is the corresponding loss weight in Section B.

6. The semi-supervised remote sensing image semantic segmentation method according to claim 1, It is characterized in that Before training the semi-supervised semantic segmentation network using the labeled data set, the unlabeled data set and the loss function, the method further includes: Data preprocessing is performed on the unlabeled images of the unlabeled data set, wherein the data preprocessing includes at least one processing method of cropping, rotation and color transformation.

7. A semi-supervised remote sensing image semantic segmentation device, It is characterized in that include: An acquisition module, used to acquire a labeled data set and an unlabeled data set of optical remote sensing images, wherein the labeled data set includes a plurality of labeled images, and the unlabeled data set includes a plurality of unlabeled images; An extraction module is used to construct a loss function of a semi-supervised semantic segmentation network, and train the semi-supervised semantic segmentation network using the labeled data set, the unlabeled data set, and the loss function, wherein the semi-supervised semantic segmentation network includes a student model and a teacher model with symmetrical structures, the teacher model extracts features of unlabeled images, and the student model extracts features of unlabeled images and labeled images at the same time; A processing module, used for, during the training process, performing consistency enhancement processing on the features of the unlabeled images extracted by the teacher model and the student model, performing weak orthogonal constraints on the multi-decoders of the student model, and symmetrically transferring the knowledge learned by the student model to the teacher model; The output module is used to output the semantic segmentation results of the optical remote sensing image using the trained semi-supervised semantic segmentation network.

8. An electronic device, It is characterized in that include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the semi-supervised remote sensing image semantic segmentation method as described in any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that The program is executed by a processor to implement the semi-supervised remote sensing image semantic segmentation method as described in any one of claims 1 to 6.

10. A computer program product comprising a computer program or instructions, It is characterized in that When the computer program or instruction is executed, the semi-supervised remote sensing image semantic segmentation method described in any one of claims 1 to 6 is implemented.

Citation Information

Cited By

  • Semi-supervised efficient video SAR shadow tracking method based on small samples

    CN119904771A

  • A Semi-Supervised Efficient Video SAR Shadow Tracking Method Based on Small Samples

    CN119904771B

  • Semi-supervised remote sensing image semantic segmentation system and method

    CN121564356A

  • Semi-supervised remote sensing image semantic segmentation system and method

    CN121564356B

  • Visual perception method of humanoid robot and related equipment

    CN121962722A