A network training method and application method for remote sensing image classification in an open environment

By performing sample enhancement and pseudo-label optimization in remote sensing images, combined with loss functions for iterative training, the problem of poor classification effects of known and unknown classes in the open environment is solved, and the unknown class recognition ability and model generalization ability are improved.

CN118587533BActive Publication Date: 2024-10-22HUBEI LUOJIA LAB
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411073861.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-07
Publication Date
2024-10-22
Estimated Expiration
2044-08-07

AI Technical Summary

Technical Problem

The existing technology has poor classification effect on known classes and unknown classes in open environment remote sensing images, lacks the ability to identify unknown classes, and has poor model generalization capabilities.

Method used

By obtaining remote sensing image data sets for sample enhancement, source domain and target domain samples are generated, initial pseudo labels are used for iterative adaptive weighted optimization, and source domain and target domain losses and consistency losses are combined for iterative training to perform known classes and unknown classes. Class adversarial training improves the model's separation effect on known classes and unknown classes.

Benefits of technology

It effectively improves the separation effect of the model on known classes and unknown classes, improves the recognition ability of unknown classes, and enhances the generalization ability of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587533B_ABST
    Figure CN118587533B_ABST
Patent Text Reader

Abstract

The present invention provides an open environment remote sensing image classification network training method and application method, which relates to the field of image recognition technology. The method includes: classifying and predicting target domain samples to obtain the probability distribution of each target domain sample, determining the initial pseudo label according to the probability distribution, iteratively adaptively weighting and optimizing the initial pseudo label to obtain the denoised pseudo label; determining the source domain loss according to the source domain sample, determining the contrast loss of the target domain sample according to the target domain sample, determining the consistency loss of the target domain sample according to the probability distribution and the denoised pseudo label, conducting confrontation between known classes and unknown classes according to the probability distribution to determine the category confrontation loss, and iteratively training the remote sensing image classification network. The present invention improves the separation effect of the model on known classes and unknown classes through confrontation training of known classes and unknown classes, mines more robust and available discriminant information of the target domain through consistency learning and contrast learning, improves the recognition ability of unknown classes, and thus improves the generalization ability of the model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image recognition, and in particular to an open environment remote sensing image classification network training method and an application method. Background Art

[0002] In the field of remote sensing image detection, manual annotation is very tedious and time-consuming due to the huge amount of remote sensing image data. Therefore, the UDA (Unsupervised Domain Adaptation) method is a commonly used method in the field of remote sensing image detection. The UDA method can transfer knowledge to unlabeled target data by utilizing the labeled source domain data. However, existing research mainly focuses on closed-set UDA, that is, the source domain and the target domain have the same label set. However, in actual scenarios, unknown classes often appear in remote sensing images in open environments, that is, the label set of the target domain exceeds the label set of the source domain in size, which leads to the need for open-set UDA methods.

[0003] Some existing open-set UDA methods need to set some threshold hyperparameters when distinguishing known classes from unknown classes. The selection of hyperparameters depends on the prior knowledge of the target domain category. In practice, hyperparameters are difficult to select and require a lot of trial and error. They are also prone to negative transfer problems and have poor separation effects on known and unknown classes. In addition, since the known class data accounts for the majority, the model tends to predict new data as known classes, resulting in insufficient recognition of unknown classes, which in turn limits the generalization ability of the model.

[0004] Therefore, the existing technology has technical problems such as poor classification effect for known classes and unknown classes, insufficient recognition ability of unknown classes, and poor generalization ability of the model. Summary of the invention

[0005] In view of this, it is necessary to provide an open environment remote sensing image classification network training method and application method to solve the technical problems in the existing technology, that is, the classification effect of known classes and unknown classes is poor, the recognition ability of the existing technology for unknown classes is insufficient, and the generalization ability of the model is poor.

[0006] In order to solve the above technical problems, on the one hand, the present invention provides an open environment remote sensing image classification network training method, comprising:

[0007] Obtain a remote sensing image dataset, and perform sample enhancement on the remote sensing image dataset to obtain source domain samples and target domain samples;

[0008] The remote sensing image data set is input into the initial remote sensing image classification network, the target domain samples are classified and predicted to obtain the probability distribution of each target domain sample, the initial pseudo labels of the target domain samples are determined according to the probability distribution, and the initial pseudo labels are iteratively adaptively weighted optimized to obtain denoised pseudo labels;

[0009] The source domain loss is determined according to the source domain samples, the contrast loss of the target domain samples is determined according to the target domain samples, the consistency loss of the target domain samples is determined according to the probability distribution and the denoised pseudo-labels, the class adversarial loss is determined by adversarial between known and unknown classes according to the probability distribution, and the initial remote sensing image classification network is iteratively trained until the loss functions converge to obtain a fully trained remote sensing image classification network.

[0010] In a possible implementation, the target domain samples include weakly enhanced samples, perturbed samples, and strongly enhanced samples, a remote sensing image dataset is obtained, and sample enhancement is performed on the remote sensing image dataset to obtain source domain samples and target domain samples, including:

[0011] Obtain labeled remote sensing images and unlabeled remote sensing images;

[0012] Perform weak image enhancement on labeled remote sensing images to obtain source domain samples;

[0013] Perform image weak enhancement on unlabeled remote sensing images to obtain weak enhancement samples, perform feature perturbation on weak enhancement samples to obtain perturbation samples, and perform image strong enhancement on each unlabeled remote sensing image to obtain two corresponding strong enhancement samples;

[0014] Among them, weak image enhancement includes image flipping and image cropping, strong image enhancement includes image rotation, image occlusion and color jittering, and feature perturbation includes channel discarding.

[0015] In a possible implementation, the initial pseudo labels of the target domain samples are determined according to the probability distribution, and the initial pseudo labels are iteratively adaptively weighted optimized to obtain denoised pseudo labels, including:

[0016] Determine the initial pseudo-label according to the probability distribution of the weakly enhanced sample, and determine the class prototype according to the initial pseudo-label;

[0017] Extracting features of the weakly enhanced samples to obtain features of the weakly enhanced samples, and determining the distance weight between the features of the weakly enhanced samples and the class prototype according to the features of the weakly enhanced samples and the class prototype;

[0018] The class prototype is updated according to the distance weight and based on the exponential moving average strategy, and the initial pseudo-label is iteratively optimized according to the distance weight to obtain the denoised pseudo-label.

[0019] In a possible implementation, determining the source domain loss according to the source domain sample includes:

[0020] Determine the source domain loss of the remote sensing image classification network based on the source domain samples and the cross entropy loss.

[0021] In a possible implementation, determining the contrast loss of the target domain sample according to the target domain sample includes:

[0022] The target domain samples corresponding to each unlabeled remote sensing image are used as a group of learning samples;

[0023] The strongly enhanced samples in each group of learning samples are used as positive sample pairs for contrastive learning, and the learning samples in other groups are used as negative samples. The contrast loss is determined based on the information-noise contrast estimation function.

[0024] In one possible implementation, the consistency loss of the target domain sample is determined according to the probability distribution and the denoised pseudo-labels, including:

[0025] Determine the one-hot labels of target domain samples based on the denoised pseudo labels;

[0026] According to the probability distribution, the pseudo labels and one-hot labels are denoised and the consistency loss of the target domain samples is determined based on minimizing the probability distribution.

[0027] In a possible implementation, the class adversarial loss is determined by adversarial analysis of known classes and unknown classes according to the probability distribution, including:

[0028] Determine the unknown class probability of the target domain sample according to the probability distribution;

[0029] Adversarial training of known and unknown classes is performed according to the probability of unknown classes, and the class adversarial loss is determined based on entropy maximization.

[0030] On the other hand, the present invention also provides an open environment remote sensing image classification network application method, comprising:

[0031] Acquire the remote sensing image to be detected;

[0032] Input the remote sensing image to be detected into the well-trained remote sensing image classification network to obtain the remote sensing image classification detection result;

[0033] Wherein, the fully trained remote sensing image classification network is determined according to the above-mentioned open environment remote sensing image classification network training method.

[0034] On the other hand, the present invention also provides an electronic device, including a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the above-mentioned open environment remote sensing image classification network training method and / or the above-mentioned open environment remote sensing image classification network application method are implemented.

[0035] On the other hand, the present invention also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the above-mentioned open environment remote sensing image classification network training method and / or the above-mentioned open environment remote sensing image classification network application method are implemented.

[0036] The beneficial effect of adopting the above implementation method is: in the open environment remote sensing image classification network training method provided by the present invention, the known classes and the unknown classes are separated by adversarial training between the known classes and the unknown classes, which effectively improves the separation effect of the model on the known classes and the unknown classes, and through consistency learning and contrastive learning, more robust available discriminant information of the target domain is mined to improve the recognition ability of the unknown classes, thereby improving the generalization ability of the model. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0038] Figure 1 A schematic diagram of a flow chart of an embodiment of an open environment remote sensing image classification network training method provided by the present invention;

[0039] Figure 2 A schematic diagram of a process for enhancing a remote sensing image dataset sample according to an embodiment of the present invention;

[0040] Figure 3 A schematic diagram of a process of adaptive weighted optimization of denoising pseudo labels according to an embodiment of the present invention;

[0041] Figure 4 A schematic diagram of a flow chart of contrast loss calculation according to an embodiment of the present invention;

[0042] Figure 5 A schematic diagram of a flow chart of consistency loss calculation according to an embodiment of the present invention;

[0043] Figure 6 A schematic diagram of a flow chart of category-resistance loss calculation according to an embodiment of the present invention;

[0044] Figure 7 A schematic diagram of a flow chart of an embodiment of an open environment remote sensing image classification network application method provided by the present invention;

[0045] Figure 8 A schematic structural diagram of an embodiment of an electronic device provided by the present invention. DETAILED DESCRIPTION

[0046] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0047] It should be understood that the drawings of the schematic diagrams are not drawn to scale. The flowcharts used in the present invention illustrate the operations implemented according to some embodiments of the present invention. It should be understood that the operations of the flowcharts may be implemented out of order, and steps without logical contextual relationships may be reversed in order or implemented simultaneously. In addition, those skilled in the art may add one or more other operations to the flowcharts, or may remove one or more operations from the flowcharts, under the guidance of the content of the present invention.

[0048] Some of the block diagrams shown in the accompanying drawings are functional entities that do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor systems and / or microcontroller systems.

[0049] Reference to an "embodiment" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiment may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0050] Figure 1 A flow chart of an embodiment of the open environment remote sensing image classification network training method provided by the present invention is as follows: Figure 1 As shown, the open environment remote sensing image classification network training method includes:

[0051] S101, obtaining a remote sensing image dataset, and performing sample enhancement on the remote sensing image dataset to obtain source domain samples and target domain samples;

[0052] S102, inputting the remote sensing image data set into the initial remote sensing image classification network, classifying and predicting the target domain samples to obtain the probability distribution of each target domain sample, determining the initial pseudo labels of the target domain samples according to the probability distribution, and iteratively adaptively weighted optimizing the initial pseudo labels to obtain denoised pseudo labels;

[0053] S103. Determine the source domain loss based on the source domain samples, perform contrast learning on the target domain samples to determine the contrast loss, perform consistency learning on the target domain samples and determine the consistency loss of the target domain samples based on the probability distribution and the denoised pseudo-labels, determine the class adversarial loss by adversarial testing between known and unknown classes based on the probability distribution, iteratively train the initial remote sensing image classification network until each loss function converges, and obtain a fully trained remote sensing image classification network.

[0054] Compared with the prior art, in the open environment remote sensing image classification network training method provided by the present invention, known classes and unknown classes are separated through adversarial training between known classes and unknown classes, thereby effectively improving the separation effect of the model on known classes and unknown classes, and more robust available discriminant information of the target domain is mined through consistency learning and contrastive learning, thereby improving the recognition ability of unknown classes and thus improving the generalization ability of the model.

[0055] In some embodiments of the present invention, the target domain samples include weakly enhanced samples, perturbed samples and strongly enhanced samples. Figure 2 FIG. 1 is a flow chart of sample enhancement of a remote sensing image dataset according to an embodiment of the present invention. Figure 2 As shown, a remote sensing image dataset is obtained, and sample enhancement is performed on the remote sensing image dataset to obtain source domain samples and target domain samples, including:

[0056] S201, acquiring labeled remote sensing images and unlabeled remote sensing images;

[0057] S202, performing weak image enhancement on the labeled remote sensing image to obtain source domain samples;

[0058] S203, performing image weak enhancement on the unlabeled remote sensing image to obtain weak enhancement samples, performing feature perturbation on the weak enhancement samples to obtain perturbation samples, and performing image strong enhancement on each unlabeled remote sensing image to obtain two corresponding strong enhancement samples;

[0059] Among them, weak image enhancement includes image flipping and image cropping, strong image enhancement includes image rotation, image occlusion and color jittering, and feature perturbation includes channel discarding.

[0060] Specifically, the embodiment first collects labeled and unlabeled remote sensing images, and enhances remote sensing images in different fields, including weak enhancement and strong enhancement. Weak enhancement includes image flipping and random cropping, while strong enhancement combines multiple transformations of different strengths. Among them, for labeled remote sensing images, the embodiment only performs weak enhancement processing to obtain weakly enhanced source domain samples; for unlabeled remote sensing images, the embodiment performs multiple enhancement operations through weak enhancement and strong enhancement to obtain mixed enhanced target domain samples.

[0061] In the process of unlabeled remote sensing image enhancement, given B unlabeled samples, each sample is subjected to a weak enhancement to obtain a weakly enhanced sample , and on this basis, the sample is characteristically perturbed by channel discarding to obtain the perturbed sample , and then enhance them through different strong enhancement methods to obtain two strong enhancement samples and , a total of 4B corresponding target domain samples are obtained.

[0062] In some embodiments of the present invention, Figure 3 FIG. 1 is a flow chart of the denoising pseudo-label adaptive weighted optimization process according to an embodiment of the present invention. Figure 3 As shown, the initial pseudo-label of the target domain sample is determined according to the probability distribution, and the initial pseudo-label is iteratively adaptively weighted optimized to obtain the denoised pseudo-label, including:

[0063] S301, determining an initial pseudo label according to the probability distribution of the weakly enhanced sample, and determining a class prototype according to the initial pseudo label;

[0064] S302, extracting features from the weakly enhanced samples to obtain weakly enhanced sample features, and determining a distance weight between the weakly enhanced sample features and the class prototype according to the weakly enhanced sample features and the class prototype;

[0065] S303 , updating the class prototype according to the distance weight and based on the exponential moving average strategy, and iteratively optimizing the initial pseudo-label according to the distance weight to obtain the denoised pseudo-label.

[0066] Specifically, for different enhanced samples in the embodiment, the probability distributions obtained after they are output by the classifier are: , , and , and the weakly enhanced probability Converted into hard labels as initial pseudo labels The class prototype is the representative feature vector of each class, which is initially composed of the predicted pseudo labels of the target domain samples. Definition, the formula is as follows:

[0067]

[0068] Considering that the pseudo-labels inevitably introduce noise during the training process, in order to correct the noisy pseudo-labels in the target domain and further optimize the separability of the classes, a prototype constraint method is proposed to reduce the noise of the pseudo-labels. In the prototype constraint method, the pseudo-labels are gradually improved using the prototype of the feature class closest to the weakly enhanced sample, thereby dynamically reducing the impact of unreliable labels. In this process, weak samples are selected because they are closer to the real samples. The embodiment determines the distance weight between the sample features and the prototype of each class through the softmax function:

[0069]

[0070] in, For the extracted samples If it is far away from the class prototype of class c , then the feature may be an outlier, so it is necessary to reduce the possibility of it being classified as class c. Based on this premise, the embodiment dynamically adjusts the classification probability when generating pseudo labels:

[0071]

[0072] in, represents the conversion from soft prediction labels to hard labels, is the adjusted pseudo label, is the distance weight.

[0073] In addition, in order to improve the accuracy of the similarity between the sample and the class prototype, it is also necessary to optimize the representation space. For this purpose, the embodiment continuously updates the class prototype through the exponential moving average strategy during the entire training process. The formula is as follows:

[0074]

[0075] in, express The class prototype of the class, Indicates the current training Calculated within The average characteristics of the class, The coefficient is set to 0.5. In order to improve the compactness of the feature space of the same type, the embodiment sets the distance loss To minimize the Euclidean distance between the sample and the prototype:

[0076]

[0077] In some embodiments of the present invention, determining the source domain loss according to the source domain sample includes:

[0078] Determine the source domain loss of the remote sensing image classification network based on the source domain samples and the cross entropy loss.

[0079] Specifically, for labeled source domain data, the embodiment uses cross entropy loss to calculate the difference between the predicted output of the classifier and the true label, and the formula is expressed as follows:

[0080]

[0081] in, Represents source domain samples The real label, Represents its probability distribution.

[0082] In some embodiments of the present invention, Figure 4 FIG. 1 is a flow chart of contrast loss calculation according to an embodiment of the present invention. Figure 4 As shown, the contrast loss of the target domain sample is determined according to the target domain sample, including:

[0083] S401, taking the target domain samples corresponding to each unlabeled remote sensing image as a group of learning samples;

[0084] S402: using the strongly enhanced samples in each group of learning samples as positive sample pairs for contrast learning, using the learning samples in other groups as negative samples, and determining the contrast loss based on the information-noise contrast estimation function.

[0085] Specifically, considering the problem of insufficient recognition ability of unknown classes in the prior art, the embodiment constructs a discriminative learning module that combines contrastive learning and consistency learning. Through discriminative learning, more robust and available discriminative information of the target domain can be effectively mined, thereby improving the recognition ability of unknown class samples.

[0086] In contrastive learning, for an unlabeled target domain, given a weakly enhanced sample , perturbation sample And strong enhancement samples and In order to make the features more discriminative, the embodiment uses the target domain samples corresponding to each unlabeled remote sensing image after hybrid enhancement as a group of learning samples. For each group of learning samples, the enhanced samples are used. and As positive sample pairs for contrastive learning, the positive sample pairs of this group, weakly enhanced samples and the perturbation sample The other 4 (B-1) samples are regarded as negative samples. In the embodiment, a bottleneck layer composed of dense layers is used to project the features to 256 dimensions, and then pass a ReLU activation function. and The projection feature result is recorded as and , negative samples The projection feature result is recorded as In order to maximize and The similarity between them is used to learn the discriminative features of the data itself, so as to mine the unknown class information of the target domain. The embodiment adopts the improved InfoNCE (Info noise contrastive estimation) loss for enhancing discriminative learning as the contrast loss function, and the formula is as follows:

[0087]

[0088] in, is the similarity metric function (i.e., cosine similarity), is the temperature parameter. By minimizing the contrast loss function, we can maximize the similarity between two strongly enhanced samples corresponding to the same unlabeled sample and maximize the difference between different samples, so as to mine the potential information of the target domain.

[0089] In some embodiments of the present invention, Figure 5 FIG. 1 is a flow chart of consistency loss calculation according to an embodiment of the present invention. Figure 5 As shown in Figure 1, the consistency loss of the target domain samples is determined based on the probability distribution and the denoised pseudo labels, including:

[0090] S501, determining the one-hot label of the target domain sample according to the denoised pseudo label;

[0091] S502: According to the probability distribution, denoise the pseudo labels and the one-hot labels and determine the consistency loss of the target domain samples based on minimizing the probability distribution.

[0092] Specifically, the goal of consistency learning is to improve the robustness of the model by learning the invariant representation of the target domain samples under different enhancements. The learned model should ensure the output consistency between the four enhanced samples. The probability distribution of the output obtained by the classifier for different enhanced samples , , and During training, the goal of achieving consistency in the output of different augmented samples is to minimize the probability distribution and , and as well as and To achieve this, the initial consistency learning loss can be expressed as:

[0093]

[0094] in, represents the batch size, represents the cross entropy loss between two probability distributions. and image level and The perturbation flow is also important, so the weight parameter Set to 0.5.

[0095] In addition, considering that for open-set UDA tasks, the target domain samples contain known classes and unknown classes. Based on the initial consistency learning loss, the embodiment also combines consistency learning with optimized pseudo-labels to generate a more robust feature representation to form an open-set detection module. This robust feature representation is used as supervisory information to optimize the decision boundary of the classifier and effectively distinguish known classes from unknown classes. Among them, the denoised pseudo-labels are further converted into unique hot labels to facilitate the processing and representation of the category to which each sample belongs:

[0096]

[0097] in, Indicator function representing known classes, i.e., transformed one-hot labels.

[0098] Therefore, the final consistency loss is defined as:

[0099]

[0100] in, and Represents the proportion of high confidence known classes and unknown classes selected in a batch.

[0101] In some embodiments of the present invention, Figure 6 FIG. 1 is a flow chart of a class-resistance loss calculation process according to an embodiment of the present invention. Figure 6 As shown, the known class and unknown class confrontation are performed according to the probability distribution to determine the category confrontation loss, including:

[0102] S601, determining the unknown class probability of the target domain sample according to the probability distribution;

[0103] S602: Perform adversarial training of known classes and unknown classes according to the probability of unknown classes and determine the class adversarial loss based on entropy maximization.

[0104] Specifically, in the embodiment, the known class and the unknown class are confronted, and the gradient reversal layer is calculated during back propagation, and entropy maximization is used as the optimization goal to achieve effective separation of the known class and the unknown class. The confrontation loss formula is expressed as follows:

[0105]

[0106] in, Represents the probability of the unknown class, according to the probability distribution to be sure.

[0107] Finally, the embodiment repeats each training step until the set number of iterations is reached or the model converges, completing the migration training of the remote sensing image classification network.

[0108] In summary, the present invention separates known classes from unknown classes through adversarial training of known classes and unknown classes, effectively improving the separation effect of the model on known classes and unknown classes, and mines more robust available discriminant information in the target domain through consistency learning and contrastive learning, thereby improving the recognition ability of unknown classes and thus improving the generalization ability of the model.

[0109] The embodiment of the present invention also provides an open environment remote sensing image classification network application method, combined with Figure 7 Come and see, Figure 7 A flow chart of an embodiment of the open environment remote sensing image classification network application method provided by the present invention includes:

[0110] S701, obtaining a remote sensing image to be detected;

[0111] S702, inputting the remote sensing image to be detected into a well-trained remote sensing image classification network to obtain a remote sensing image classification detection result;

[0112] In an embodiment of the present invention, first, the remote sensing image to be detected is effectively acquired, and then the remote sensing image to be detected is effectively detected and classified using the above-mentioned fully trained open environment remote sensing image classification network, and the remote sensing image classification detection result can be output.

[0113] The present invention also provides an electronic device 800, such as Figure 8 As shown, Figure 8 This is a structural diagram of an electronic device according to an embodiment of the present invention. The electronic device 800 includes a processor 801, a memory 802, and a computer program stored in the memory 802 and executable on the processor 801. When the processor 801 executes the program, the above-mentioned open environment remote sensing image classification network training method and / or the above-mentioned open environment remote sensing image classification network application method are implemented.

[0114] As a preferred embodiment, the electronic device further includes a display 803 for displaying the process of the processor 801 executing the open environment remote sensing image classification network training method and / or the open environment remote sensing image classification network application method.

[0115] The processor 801 may be an integrated circuit chip with signal processing capability. The processor 801 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application specific integrated circuit (ASIC). The methods, steps and logic block diagrams disclosed in the embodiments of the present invention may be implemented or executed. The general-purpose processor may also be a microprocessor or the processor may also be any conventional processor, etc.

[0116] The memory 802 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a secure digital (SD card), a flash card, etc. The memory 802 is used to store programs, and the processor 801 executes the program after receiving the execution instruction. The process definition method disclosed in any of the embodiments of the present invention may be applied to the processor 801 or implemented by the processor 801.

[0117] The display 803 may be an LED display screen, a liquid crystal display, or a touch-sensitive display, etc. The display 803 is used to display various information of the electronic device 800 .

[0118] Understandably, Figure 8 The structure shown is only a schematic diagram of a structure of the electronic device 800. The electronic device 800 may also include Figure 8 More or fewer components as shown. Figure 8 Each component shown in the figure can be implemented by hardware, software or a combination thereof.

[0119] An embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the above-mentioned open environment remote sensing image classification network training method and / or the above-mentioned open environment remote sensing image classification network application method are implemented.

[0120] Generally speaking, the computer instructions for implementing the method of the present invention can be carried by any combination of one or more computer-readable storage media. Non-transitory computer-readable storage media can include any computer-readable media, except for the transitory propagating signal itself.

[0121] Computer-readable storage media may be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or components, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device, or device.

[0122] The above are only preferred specific implementations of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.

Claims

1. A network training method for remote sensing image classification in an open environment, It is characterized in that include: Acquire a remote sensing image dataset, and perform sample enhancement on the remote sensing image dataset to obtain source domain samples and target domain samples; The remote sensing image dataset includes labeled remote sensing images and unlabeled remote sensing images, the target domain samples include weakly enhanced samples, perturbed samples and strongly enhanced samples, and the remote sensing image dataset is subjected to sample enhancement to obtain source domain samples and target domain samples, including: acquiring labeled remote sensing images and unlabeled remote sensing images; weakly enhancing the labeled remote sensing images to obtain source domain samples; weakly enhancing the unlabeled remote sensing images to obtain weakly enhanced samples, performing feature perturbation on the weakly enhanced samples to obtain perturbed samples, and strongly enhancing the unlabeled remote sensing images to obtain strongly enhanced samples; The weak image enhancement includes image flipping and image cropping, the strong image enhancement includes image rotation, image occlusion and color jitter, and the feature perturbation includes channel discarding. Input the remote sensing image data set into an initial remote sensing image classification network, perform classification prediction on the target domain samples to obtain the probability distribution of each target domain sample, determine the initial pseudo label according to the probability distribution of the weakly enhanced sample, and determine the class prototype according to the initial pseudo label; perform feature extraction on the weakly enhanced sample to obtain the weakly enhanced sample feature, and determine the distance weight between the weakly enhanced sample feature and the class prototype according to the weakly enhanced sample feature and the class prototype; update the class prototype according to the distance weight and based on the exponential moving average strategy, and iteratively optimize the initial pseudo label according to the distance weight to obtain the denoised pseudo label; The source domain loss is determined according to the source domain samples, the contrast loss of the target domain samples is determined according to the target domain samples, the consistency loss of the target domain samples is determined according to the probability distribution and the denoised pseudo-labels, the class adversarial loss is determined by adversarial training of known classes and unknown classes according to the probability distribution, the initial remote sensing image classification network is iteratively trained until each loss function converges, and a fully trained remote sensing image classification network is obtained.

2. The open environment remote sensing image classification network training method according to claim 1, It is characterized in that The determining the source domain loss according to the source domain sample comprises: A source domain loss of the remote sensing image classification network is determined according to the source domain samples and based on a cross entropy loss.

3. The open environment remote sensing image classification network training method according to claim 1, It is characterized in that The determining the contrast loss of the target domain sample according to the target domain sample includes: Using the target domain samples corresponding to each of the unlabeled remote sensing images as a group of learning samples; The strongly enhanced samples in each group of learning samples are used as positive sample pairs for contrast learning, and the learning samples in other groups are used as negative samples, and the contrast loss is determined based on the information noise contrast estimation function.

4. The open environment remote sensing image classification network training method according to claim 1, It is characterized in that The determining the consistency loss of the target domain sample according to the probability distribution and the denoised pseudo-label comprises: Determine a one-hot label of a target domain sample according to the denoised pseudo-label; A consistency loss of the target domain sample is determined based on the probability distribution, the denoised pseudo labels and the one-hot labels and on minimizing the probability distribution.

5. The open environment remote sensing image classification network training method according to claim 1, It is characterized in that The determining the category adversarial loss by performing adversarial operations between known and unknown classes according to the probability distribution includes: Determining unknown class probabilities of target domain samples according to the probability distribution; Adversarial training of known classes and unknown classes is performed according to the unknown class probability, and class adversarial loss is determined based on entropy maximization.

6. A network application method for remote sensing image classification in an open environment, It is characterized in that include: Acquire the remote sensing image to be detected; Inputting the remote sensing image to be detected into a well-trained remote sensing image classification network to obtain a remote sensing image classification detection result; Wherein, the fully trained remote sensing image classification network is determined according to the open environment remote sensing image classification network training method according to any one of claims 1 to 5.

7. An electronic device comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the open environment remote sensing image classification network training method according to any one of claims 1 to 5 and / or the open environment remote sensing image classification network application method according to claim 6 are implemented.

8. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the open environment remote sensing image classification network training method according to any one of claims 1 to 5 and / or the open environment remote sensing image classification network application method according to claim 6 are implemented.