Cross-domain few-shot remote sensing target classification method based on relation-aware metric

By proposing a relationship-aware metric method in remote sensing target classification, a feature space that is compact within classes and dispersed between classes is formed, and by aligning relationship-aware metrics with pseudo-new domains, the feature applicability and generalization in cross-domain small-sample remote sensing target classification are solved. This problem improves the recognition accuracy and model generalization.

CN118570562BActive Publication Date: 2024-09-24DALIAN UNIV OF TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411045601.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-01
Publication Date
2024-09-24
Estimated Expiration
2044-08-01

AI Technical Summary

Technical Problem

Under cross-domain few-sample conditions, in remote sensing target classification tasks, existing technologies cannot universally apply features in different domains and categories, resulting in reduced model generalization and classification accuracy, and obtaining annotated data sets is expensive and time-consuming.

Method used

This paper proposes a relationship-aware measurement method that forms a compact within-class and dispersed feature space between classes in the source domain feature processing branch, and aligns the relationship-aware metric through the pseudo-new domain feature processing branch to form a domain-invariant feature space, which improves Model generalization and classification accuracy.

Benefits of technology

It achieves universal applicability of features in any domain and category, improves the recognition accuracy and model generalization of cross-domain small-sample remote sensing target classification, and avoids the impact of domain migration on the feature space.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570562B
    Figure CN118570562B
Patent Text Reader

Abstract

The present invention belongs to the technical field of image information processing, and discloses a cross-domain few-sample remote sensing target classification method based on relationship-aware metrics. First, a source domain training data set #imgabs0# is divided into a pseudo support set #imgabs1# and a pseudo query set #imgabs2#. The features of the pseudo support set samples and the pseudo query samples are concatenated to construct relationship-aware feature pairs, and the model is optimized in the source domain feature processing branch to form a feature space that is compact within the class and dispersed between classes. The relationship-aware metrics are aligned between the source domain feature processing branch and the pseudo-new domain feature processing branch to obtain a domain-invariant feature space, so that the cross-domain few-sample remote sensing target classification performance is improved. The present invention proposes a relationship-aware metric to compare intra-class and inter-class relationships. The present invention proposes a universal semantic similarity benchmark to assign pseudo labels to optimize the relationship-aware metric, which overcomes the shortcomings of previous methods that the performance of the method decreases under different new domains.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of image information processing and relates to a cross-domain few-sample remote sensing target classification method based on relationship-aware measurement. Background Art

[0002] At present, the technologies related to the present invention include three aspects: the first is the few-sample learning algorithm; the second is the cross-domain few-sample target classification algorithm; and the third is the deep metric learning algorithm.

[0003] The few-shot learning algorithms based on deep learning can be mainly divided into three categories: one type of optimization-based methods use meta-learning to optimize the network to obtain a set of parameters that can be quickly generalized to the target domain. Finn et al. proposed a method to learn universal initial parameters in the paper "Model-agnostic meta-learning for fast adaptation of deep networks", which can adapt to new tasks with only a small amount of adjustment. Rusu et al. proposed a method for optimizing low-dimensional latent embedding space in the paper "Meta-learning with latent embedding optimization", which solved the challenge of MAML learning high-dimensional parameters with a limited number of samples. Baik et al. introduced a powerful auxiliary loss function in the paper "Meta-learning with task-adaptive loss function for few-shot learning" to facilitate inner and outer loop optimization learning. A type of metric-based methods uses a self-designed distance function to compare the similarity between samples. Snell et al. proposed a prototype network in the paper "Prototypical networks for few-shot learning", which completes classification by measuring the distance between the query sample embedding and the category prototype. Garcia et al. proposed a graph neural network in the paper "Few-shot learning with graph neural networks", which measures the similarity between different samples by the weights of the edges in the feature graph. Another type of transfer-based method transfers the prior knowledge learned in the source domain to the target domain. Among them, Shen et al. proposed selectively transferring the knowledge of specific layers of the model in the paper "Partialisbetter than all: revisiting fine-tuning strategy for few-shot learning". Zhang et al. used strong prior knowledge from a large visual language model in the paper "Tip-adapter: Training-freeadaption of clip for few-shot classification" and generalized it to the target domain through fine-tuning.

[0004] There have also been many studies on cross-domain few-shot target classification algorithms based on deep learning in recent years. On the one hand, the simulation multi-source domain training method enriches data at different levels to simulate multi-source domain training. Specifically, Tseng et al. in the paper "Cross-domain few-shot classification via learned feature-wise transformation" enhances features by incorporating feature-level affine transformation layers into feature extractors. Liang et al. in the paper "Boosting the generalization capability in cross-domain few-shot learning via noise-enhanced supervised auto-encoder" use noise autoencoders to enhance image-level input data. On the other hand, feature constraints or alignment are used to achieve domain-invariant feature learning. Among them, deep learning-based metric algorithms are mainly divided into two categories. On the one hand, pair-based methods consider the pairwise similarity between two features or images. Hoffer et al. in the paper "Deep metric learning using triplet network" force the distance between positive pair distance and negative pair distance to be less than a given threshold. Sohn et al. in the paper "Improved deep metric learning with multi-class n-pairloss objective" introduces multi-pair loss to compare positive pairs with several negative pairs. The proxy-based method assigns corresponding class proxies to samples to achieve similarity measurement. Movshovitz-Attias et al. proposed a training process based on neighborhood component analysis and introduced the concept of proxy in the paper "No fuss distance metric learning using proxies". Zhu et al. added more proxies to each class in the paper "Fewer is more: A deep graph metriclearning perspective using fewer proxies" to fully represent the features.

[0005] In practical applications, it is often expensive, time-consuming and labor-intensive to obtain remote sensing datasets with a large number of annotations to supervise network training. At the same time, due to factors such as imaging equipment and lighting conditions, there are domain differences between the training dataset and the test dataset. To address this problem, a common solution is to solve it through feature domain alignment under data enhancement. However, the domain differences between remote sensing images under different distributions are large, and the same features are difficult to be universally applicable in any domain and category. Therefore, the features under alignment enhancement are unreasonable. On the contrary, the relationship-aware metric we proposed is ubiquitous and applicable in any domain and category. Specifically, our method is divided into two stages. In the first stage, the source domain training dataset is Relation-aware metric learning is performed in the source domain feature processing branch to form a feature space that is compact within a class and dispersed between classes. In the second stage, we ensure the domain invariance of the feature space by aligning the relationship-aware metric between the source domain feature processing branch and the pseudo-new domain feature processing branch. Therefore, such a feature space can improve the generalization and classification accuracy of the model, thereby improving the recognition accuracy of the cross-domain few-shot remote sensing target classification task. Summary of the invention

[0006] Aiming at the problem of remote sensing target classification under cross-domain few-sample conditions, this paper proposes a method to constrain the intra-class and inter-class relationships through a universally applicable relationship-aware metric and implement soft label assignment through the proposed semantic feature similarity benchmark. Divided into pseudo support sets With pseudo queryset , using the feature concatenation of pseudo support set samples and pseudo query samples, we construct relation-aware feature pairs, and optimize the model in the source domain feature processing branch to form a feature space that is compact within a class and dispersed between classes. Subsequently, we align the relation-aware metrics between the source domain feature processing branch and the pseudo new domain feature processing branch to obtain a domain-invariant feature space, which improves the cross-domain few-sample remote sensing target classification performance.

[0007] The technical solution of the present invention:

[0008] A cross-domain few-shot remote sensing target classification method based on relationship-aware metrics, the steps are as follows:

[0009] During the training process, a single source domain training dataset is used The purpose is to form a model with good generalization. The model performs well in classification under multiple test data sets of the target domain during the test. The entire training process is mainly divided into the feature relationship boundary division training stage and the domain invariant feature space formation training stage. In the feature relationship boundary division training stage, the model is trained on a single source domain training data set. In the training phase of forming the domain-invariant feature space, the proposed relation-aware metric is learned in the source domain feature processing branch to form a feature space that is compact within a class and dispersed between classes. In the training phase of forming the domain-invariant feature space, the classical adversarial attack method is used to simulate domain migration in the pseudo-new domain feature processing branch, and then the relation-aware metric is aligned between the source domain feature processing branch and the pseudo-new domain feature processing branch to form a domain-invariant feature space.

[0010] Step 1: Feature relationship boundary division training phase

[0011] The structure of the relation-aware metric method includes a source domain feature processing branch and a pseudo-new domain feature processing branch. Each branch includes a feature extraction network and a classification head model. The feature extraction network includes a set of convolution, Maximum pooling and backbone structure; the backbone structure consists of four layers of residual blocks, each of which contains four groups Convolution and a residual connection Convolution; The classification head model mainly consists of two convolution blocks and two fully connected layers, where each convolution block contains two sets of convolution-pooling-nonlinear activation operations, and each set of convolution uses The size of the convolution kernel is , and the input dimension of the fully connected layer is the dimension of the output features of the convolution block, and the output dimension is the number of categories.

[0012] Process the dataset and train the dataset from the source domain Sampling includes Pseudo support set of images , then along Sample a column in the dimension to get Pseudo query set of images ,forms a dataset that can be used to construct relational metrics in a low-overhead manner;

[0013] First, in the source domain feature processing branch, a feature extraction network is used to obtain the pseudo support set output features. and pseudo queryset output features ; Then output features for the pseudo support set along the second dimension of The samples are weighted averagely to obtain a set of feature average representations corresponding to each class. :

[0014] (1)

[0015] in, for Along the second dimension slice tensor;

[0016] Next, we output the features by using the pseudo query set Each sample is respectively The average representation of the features Splicing to obtain the corresponding relationship-aware metric features ; Specifically as follows: In the second dimension, copy Second, copy times, then exchange Then, the transformed and , thus forming the relation-aware metric feature , this process is shown in the following formula:

[0017] (2)

[0018] in, represents the feature concatenation operation, Indicates the first Dimensions copied Second-rate, Indicates swapping the features in brackets. Dimension and Dimension;

[0019] After sampling, we can get ,Thus, we can get the pseudo query set output features: Each sample is respectively The average representation of the features is concatenated in the channel dimension, thus generating three relational concatenation pairs through relation-aware metrics, namely, relation-aware metrics; for the pseudo query set Each sample in is generated by feature concatenation A pair of relationships. When When one of the average representations of the features is the same, there is a relationship pair obtained by splicing the features of the same sample; When , the pseudo query set outputs features and One of the K samples of the same category contained in one of the feature representations of the feature average representations is the same, thus forming a relationship pair with extremely high semantic similarity. The present invention regards these two relationship pairs as semantic feature similarity benchmarks, that is, relationship pairs formed by splicing the same instances; at the same time, it also forms There are relationship pairs consisting of samples of the same category but not the same instance. Such relationship pairs are composed of samples with high semantic similarity. In addition, there are The relation pairs are composed of samples of different categories, and such relation pairs are composed of samples with basically unrelated semantics. Thus, this method constructs the relation-aware metric in a clever and low-cost way, and learns the feature space that is compact within a class and scattered between classes through intra-class and inter-class relation constraints. In order to use the relation-aware metric to train the source domain feature processing branch, this method assigns soft labels to the relation-aware metric based on the semantic feature similarity benchmark of the relation pairs formed by splicing the same instance; specifically, the relation pairs of the same instance are assigned as , the relationship pairs of the same category but different instances are assigned , different categories of relationship pairs are assigned ; Then for each pseudo query set The sample distribution relation-aware soft labels in are obtained ; Then, the relation-aware metric features Send it to the classification head model to get the relationship-aware metric prediction score , thereby utilizing The guiding relation-aware metric learns the intra-class and inter-class relations. The constraints of , produce a feature space with compact intra-class and inter-class separation boundaries:

[0020] (3)

[0021] in, express Along the first dimension The index and the second dimension The value corresponding to the index;

[0022] Step 2: Domain-invariant feature space formation training phase

[0023] After the feature relationship boundary division training phase, the network can obtain a feature space with clear class relationship boundaries under the condition of few samples, thanks to the feature space formed by the relationship-aware metric under the source domain feature processing branch, which is compact within the class and separated between classes. However, such a feature space will still be distorted in the new domain faced during testing, resulting in a decrease in generalization ability. Therefore, such training is insufficient. In order to solve this problem, the features of the first layer output of the feature extraction network backbone structure under the source domain feature processing branch ( and ) performs style adversarial attack with adaptive instance normalization (AdaIN). The details are as follows: Since the feature mean and variance reflect the domain distribution, changing the feature mean and variance can generate a pseudo new domain. First, the pseudo support set and pseudo queryset The feature extraction network and the classification head model are fed to obtain a set of mean and variance attack factors that increase the classification loss. Then, the mean and variance attack factors are used to change the mean and variance of the first layer output features of the source domain feature processing branch, thereby generating a set of mean and variance of pseudo-new domain features. Then, in the pseudo-new domain feature processing branch, AdaIN is used to modify the shallow features of the source domain ( and ) based on the pseudo-new domain shallow features ( and ), then perform relation-aware metric in the pseudo-new domain feature processing branch and align the relation-aware metric prediction scores between the source domain and pseudo-new domain feature processing branches. and Continue forward transmission to obtain the features of the final output of the feature extraction network and In the same way as the first training stage, and Performing copy, swap and concatenation operations constitutes the relation-aware metric features under the pseudo-new domain feature processing branch. Next, we will Sent into the classification head, we get the relation-aware metric prediction score under the pseudo-new domain To improve model generalization, we form a domain-invariant feature space by keeping the relationship-aware metric prediction scores of the source domain and pseudo-new domain feature processing branches consistent. This process is influenced by Loss Constraint:

[0024] (4)

[0025] Beneficial effects of the present invention: First, compared with previous methods that only learn inter-class relations for classification, the present invention proposes a relation-aware metric to compare intra-class and inter-class relations. In addition, the present invention proposes a universal semantic similarity benchmark to assign pseudo-labels to optimize the relation-aware metric, overcoming the shortcomings of previous methods that have performance degradation under different new domains. Finally, in order to avoid the impact of domain migration on the feature space, the present invention uses style adversarial attacks to generate pseudo-new domains, and aligns the relation-aware metric prediction scores between the source domain and the pseudo-new domain to form a domain-invariant feature space. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 This is the overall training flow chart of the network.

[0027] Figure 2 Schematic diagram of feature relationship boundary division.

[0028] Figure 3 Schematic diagram of the style adversarial attack structure.

[0029] Figure 4 Schematic diagram for forming a domain-invariant feature space. DETAILED DESCRIPTION

[0030] The specific implementation of the present invention is further described below in conjunction with the accompanying drawings and technical solutions.

[0031] This method can be used for cross-domain few-shot remote sensing target recognition. First, the few-shot remote sensing training dataset DIOR is divided into a pseudo support set and a pseudo query set. Then, the pseudo query set and the pseudo support set are fed into the feature extraction network of the source domain feature processing branch to obtain the feature concatenation pairs of the pseudo support set and the pseudo query set, forming three relationship pairs, namely, relationship-aware metrics. Through the proposed semantic feature similarity benchmark, we assign pseudo labels to the relationship-aware metrics, and optimize the source domain feature processing branch through relationship-aware metric learning to form a feature space that is compact within the class and dispersed between classes. Then, a set of feature mean and variance attack factors are generated through the classic style adversarial attack, and then AdaIN is used to convert the shallow features output by the first layer of the backbone structure in the feature extraction network into the pseudo-new domain shallow features in the source domain feature processing branch. In the pseudo-new domain feature processing branch, the pseudo-new domain shallow features are passed through the remaining layers of the backbone structure to obtain the pseudo-new domain perceptual relationship metrics. By aligning the relationship-aware metric prediction scores between the source domain and pseudo-new domain feature processing branches, a domain-invariant feature space is formed. In the test phase, four test data sets, DOTA, HRRSD, NWPU VHR-10 and xView, were selected in the specific implementation process. They do not overlap with the training data set DIOR category and have domain differences. The above test data set first passes through the feature extraction network, and then each query set sample is concatenated with the average representation of the support set features of all categories, and the category with the maximum value of the classification head model output score is taken as the recognition result. The classification accuracy analysis under two test cases (N=5, K=1, i.e., 5-way 1-shot with one labeled sample in five categories and N=5, K=5, i.e., 5-way 5-shot task with five labeled samples in five categories) is shown in the following table. The present invention improves the generalization and recognition accuracy of the model by forming a domain-invariant feature space that is compact within the class and separated between classes.

[0032] Table 1 Recognition accuracy of the present invention trained on the DIOR dataset under four different test datasets

[0033]

Claims

1. A cross-domain few-shot remote sensing target classification method based on relationship-aware metrics, It is characterized in that Here are the steps: During the training process of this cross-domain few-sample remote sensing target classification method, a single source domain training dataset is used. To form a model with good generalization performance, the model performs well in classification under multiple test datasets of the target domain during testing; The entire training process is divided into the feature relationship boundary division training phase and the domain invariant feature space formation training phase; During the feature relationship boundary division training phase, the model is trained on a single source domain dataset In the training phase of domain-invariant feature space formation, the proposed relation-aware metric is learned in the source domain feature processing branch to form a feature space that is compact within a class and dispersed between classes. In the training phase of domain-invariant feature space formation, the adversarial attack method is used to simulate domain migration in the pseudo-new domain feature processing branch, and then the relation-aware metric is aligned between the source domain feature processing branch and the pseudo-new domain feature processing branch to form a domain-invariant feature space. Step 1: Feature relationship boundary division training phase: The structure of the relation-aware metric method includes a source domain feature processing branch and a pseudo-new domain feature processing branch. Each branch includes a feature extraction network and a classification head model. The feature extraction network includes a set of convolution, Maximum pooling and backbone structure; the backbone structure consists of four layers of residual blocks, each of which contains four groups Convolution and a residual connection Convolution; The classification head model mainly consists of two convolution blocks and two fully connected layers, where each convolution block contains two sets of convolution-pooling-nonlinear activation operations, and each set of convolution uses The input dimension of the fully connected layer is the dimension of the output feature of the convolution block, and the output dimension is the number of categories. Dataset processing: training dataset from a single source domain Sampling includes Pseudo support set of images , then along Sample a column in the dimension to get Pseudo query set of images ,form the dataset for building relational metrics in a low-overhead way; First, in the source domain feature processing branch, a feature extraction network is used to obtain the pseudo support set output features. and pseudo queryset output features ; Then output features for the pseudo support set along the second dimension of The samples are weighted averagely to obtain a set of feature average representations corresponding to each class. : in, for Along the second dimension slice tensor; Next, we output the features by using the pseudo query set Each sample is respectively The average representation of the features Splicing to obtain the corresponding relationship-aware metric features ; Specifically as follows: In the second dimension, copy Second, copy times, then exchange Then, the transformed and , thus forming the relationship-aware metric feature , this process is shown in the following formula: in, represents the feature concatenation operation, Indicates the first Dimensions copied Second-rate, Indicates swapping the features in brackets. Dimension and Dimension; After sampling, we get , thus obtaining the pseudo query set output features Each sample is respectively The average representation of the features is concatenated in the channel dimension, thereby generating three relational concatenation pairs through relation-aware metrics, namely, relation-aware metrics; for the pseudo query set Each sample in is generated by feature concatenation A pair of relationships; among them, when When , the characteristics of the pseudo query set output are the same as When one of the average representations of the features is the same, there is a relationship pair obtained by splicing the features of the same sample; When , the characteristics of the pseudo query set output are the same as One of the K samples of the same category contained in the feature average representation is the same, thus forming a relationship pair with extremely high semantic similarity. These two relationship pairs are regarded as the semantic feature similarity benchmark, that is, the relationship pair formed by splicing the same instance; at the same time, There are relationship pairs consisting of samples of the same category but not the same instance. Such relationship pairs are composed of samples with high semantic similarity. Relation pairs composed of samples of different categories, such relationship pairs are composed of semantically unrelated samples; so far, a relationship-aware metric is constructed, and the feature space that is compact within a class and dispersed between classes is learned through intra-class and inter-class relationship constraints; in order to use the relationship-aware metric to train the source domain feature processing branch, the semantic feature similarity benchmark of the relationship pairs formed by splicing the same instance is used to assign soft labels to the relationship-aware metric; specifically, the relationship pairs of the same instance are assigned as , the relationship pairs of the same category but different instances are assigned , different categories of relationship pairs are assigned ; Then for each pseudo query set The sample distribution relation-aware soft labels in are obtained ; Then, the relation-aware metric features Send it to the classification head model to get the relationship-aware metric prediction score , use Guided relation-aware metrics to learn intra-class and inter-class relations; therefore, in the source domain feature processing The constraints of , generate a feature space that is compact within the learning class and dispersed between classes: in, Representation Along the first dimension The index and the second dimension The value corresponding to the index; Step 2: Domain-invariant feature space formation training phase: After the feature relationship boundary division training phase, the features of the first layer output of the backbone structure of the feature extraction network under the source domain feature processing branch are and Perform style adversarial attack and adaptive instance normalization as follows: First, the pseudo support set and pseudo queryset The feature extraction network and the classification head model are sent to obtain a set of mean and variance attack factors that increase the classification loss. Then, the mean and variance attack factors are used to change the mean and variance of the first layer output features of the source domain feature processing branch to generate a set of mean and variance of pseudo-new domain features. Then, in the pseudo-new domain feature processing branch, AdaIN is used to modify the feature and Generate pseudo-new domain shallow features based on with , then perform the relation-aware metric in the pseudo-new domain feature processing branch and align the relation-aware metric prediction scores between the source domain feature processing branch and the pseudo-new domain feature processing branch, as follows: First, and Continue forward transmission to obtain the features of the final output of the feature extraction network and ; In the same way as the feature relationship boundary division training phase, and Perform copy, swap and concatenate operations to form the relation-aware metric features under the pseudo-new domain feature processing branch ; Next, Send it to the classification head model to obtain the relationship-aware metric prediction score under the pseudo-new domain ; In order to improve the generalization of the model, a domain-invariant feature space is formed by maintaining the consistency of the relation-aware metric prediction scores of the source domain feature processing branch and the pseudo-new domain feature processing branch. This process is affected by Loss Constraint: 。

Citation Information

Patent Citations

  • Domain generalization pedestrian re-identification method and system based on element-graph perception

    CN116386079A

  • Semi-supervised few-sample image classification method based on multi-scale features

    CN117456232A

  • Utilizing a warped digital image with a reposing model to synthesize a modified digital image

    US20240135513A1

  • Three-dimensional lidar point cloud semantic segmentation method and apparatus based on deep learning

    WO2024130776A1