Aerial remote sensing image cross-domain target detection method

By using domain-specific block channel attention and dynamic prototype alignment mechanisms in remote sensing images, the problem of feature distribution differences and pseudo-label noise in cross-domain target detection in remote sensing images is solved, and good detection performance and alignment in different fields are achieved. The effect is to reduce the need for truth labels.

CN118570666APending Publication Date: 2024-08-30CHINESE PEOPLES LIBERATION ARMY UNIT 93114

Patent Information

Application Number
CN202311436125.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-01
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing cross-domain target detection methods in remote sensing images are difficult to effectively eliminate the feature distribution differences of images in different fields when dealing with complex backgrounds, and are greatly affected by pseudo-label noise, resulting in poor detection results.

Method used

A convolutional neural network is used to extract multi-scale features, and through domain-specific block channel attention and dynamic prototype alignment mechanisms, the feature channel attention of the source domain and the target domain are calculated respectively, reducing feature distribution differences, and dynamically adjusting the prototype alignment loss weight value to achieve cross-domain target detection.

Benefits of technology

In aerial remote sensing images from different fields, it improves the cross-domain detection performance of the target detection model, reduces the impact of incorrect prediction frames in the early stages of training, reduces the need for true value labels in the target domain, and enhances the feature alignment effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570666A
    Figure CN118570666A
Patent Text Reader

Abstract

The invention discloses an aerial remote sensing image cross-domain target detection method. The method comprises the following steps: S1, selecting a source domain remote sensing image and a target domain remote sensing image with distribution difference; s2, adopting a plurality of scale features of the convolutional neural network image; s3, respectively calculating domain specific block channel attention; the shallow layer features of the two domains are enhanced; s5, calculating domain identification loss; s6, calculating target detection loss on the source domain by using a truth value label; s7, calculating a candidate frame feature average value as a local prototype of the category; s8, calculating prototype alignment loss of the two domains; s9, adjusting the weight of prototype alignment loss; and S10, updating parameters of the target detection model and the domain discriminator model to obtain a cross-domain target detection model. The target detection model trained on the source domain can also have good detection performance on the target domain.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a cross-domain target detection method for an aerial remote sensing image, and belongs to the technical field of remote sensing image processing. Background Art

[0002] Remote sensing technology is an effective means of monitoring large-scale objects. Remote sensing images have the characteristics of diverse backgrounds, small object sizes, and obvious regional differences. Different imaging conditions and sensor types make the distribution of remote sensing images in different fields very different. This makes it difficult for a neural network target detection model trained in one field to achieve good results in other fields, and it is time-consuming and laborious to mark true value labels for training in other fields. Therefore, cross-domain target detection algorithms for remote sensing images are of great significance.

[0003] The main methods for cross-domain object detection are based on image translation, domain randomization, feature alignment, and pseudo-label self-training. The first two methods manipulate the style of the image at the pixel level, generally require the introduction of additional models, and are loosely coupled with the object detection model, making the training process and model performance tuning more complicated. The latter two methods can be end-to-end and can be easily added to the training of the main object detection task.

[0004] Traditional feature alignment methods often use fully parameter-sharing models in the source and target domains, forcing the model to reduce feature alignment loss or adversarially optimize feature distribution differences. However, the background complexity of remote sensing images makes it difficult to fully eliminate distribution feature differences in images from different fields in the same model. In terms of instance feature alignment, traditional methods are greatly affected by the noise of pseudo-labels, and it is often difficult to achieve satisfactory results by forcibly aligning instance features. Summary of the invention

[0005] The purpose of the present invention is to provide a cross-domain target detection method for aerial remote sensing images, so that the target detection model trained in the source domain can also have good detection performance in the target domain.

[0006] To achieve the above object, the technical solution adopted by the present invention is: a cross-domain target detection method for aerial remote sensing images, which is used for remote sensing images acquired by aerial optical remote sensing cameras, comprising the following steps:

[0007] S1, selecting source domain remote sensing images and target domain remote sensing images with distribution differences;

[0008] S2, using convolutional neural network to extract multiple scale features of source domain remote sensing images and target domain remote sensing images respectively;

[0009] S3, pool the shallow features of the two domains obtained in S2 into blocks and input them into the domain-specific network, and calculate the domain-specific block channel attention respectively;

[0010] S4, upsample the domain-specific block channel attention obtained in S3 so that the attention and shallow features have the same spatial size, and then enhance the shallow features of the two domains;

[0011] S5, after the shallow features of the two domains obtained in S4 and the deep features obtained in S2 are subjected to the gradient flipping layer, the domain discriminator is used to respectively identify the domains to which the shallow features and the deep features belong, and the domain discrimination loss is calculated;

[0012] S6. Use the object detection head to predict the object detection results of the two domains respectively, and use the true value label on the source domain to calculate the object detection loss;

[0013] S7, in the target domain, according to the target detection result obtained by the prediction in S6, classify the candidate box features with a confidence value greater than a threshold into the corresponding category, and calculate the average value of the candidate box features as the local prototype of the category;

[0014] S8, using the exponential moving average method to update the global prototype according to the local prototype obtained in S7, and calculate the prototype alignment loss of the two domains;

[0015] S9, using the dynamic prototype alignment mechanism to dynamically adjust the weight of the prototype alignment loss during training;

[0016] S10. The domain identification loss obtained in S5, the prototype alignment loss obtained in S8, and the target detection loss obtained in S6 are summed as the overall loss, and the target detection model and domain discriminator model parameters are updated using the gradient descent method to obtain a cross-domain target detection model.

[0017] The further improved scheme in the above technical scheme is as follows:

[0018] 1. In the above scheme, the source domain remote sensing images and target domain remote sensing images with distribution differences in S1 include: remote sensing images under different lighting conditions, different imaging weather conditions, and different sensor types.

[0019] 2. In the above scheme, the domain-specific block channel attention in S3 is calculated on the shallow features after block pooling.

[0020] 3. In the above scheme, the domain-specific block channel attention is implemented in the source domain and the target domain using neural network layers with independent parameters and the same structure.

[0021] 4. In the above scheme, a domain discriminator is used in S5 to discriminate shallow features after domain-specific block channel attention enhancement.

[0022] 5. In the above scheme, S7 filters the candidate box features whose confidence is greater than the threshold and calculates the local prototype of each category.

[0023] 6. In the above scheme, the weight of the prototype alignment loss described in S9 is calculated by the training progress and dynamically adjusted during the training process.

[0024] Due to the application of the above technical solution, the present invention has the following advantages compared with the prior art:

[0025] The invention discloses a cross-domain target detection method for aerial remote sensing images. For aerial remote sensing images of different fields, domain-specific block channel attention is used to respectively extract feature channel dependencies of source domain and target domain, and a dynamic prototype alignment mechanism is used to reduce the feature differences of target instances in the two domains, so as to realize cross-domain target detection of aerial remote sensing images. The features of the two domains can be enhanced and the feature distribution differences can be reduced. The influence of erroneous prediction box features on the target domain aerial remote sensing images in the early stage of training can also be effectively suppressed. The obtained cross-domain target detection model is used for target detection of target domain aerial remote sensing images without true value labels, so as to reduce the demand of target domain target detection model training data for true value labels. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Attached Figure 1 It is a schematic diagram of the process of the present invention;

[0027] Attached Figure 2 The source domain aerial remote sensing image and the target domain aerial remote sensing image selected by the present invention;

[0028] Attached Figure 3 A schematic diagram of the overall framework of the model of the present invention;

[0029] Attached Figure 4 A schematic diagram of the structure of the domain-specific block channel attention selected by the present invention;

[0030] Attached Figure 5 This is the weight change curve of the dynamically adjusted prototype alignment loss calculated by the present invention. DETAILED DESCRIPTION

[0031] Embodiment: A cross-domain target detection method for aerial remote sensing images can be used for cross-domain target detection of aerial remote sensing images. For source domain remote sensing images with sufficient true value labels and target domain remote sensing images without labels, the channel attention of shallow features is calculated respectively, and the feature distribution of the two domains is aligned by using domain-specific block channel attention and dynamic prototype alignment method, so that the target detection model trained in the source domain can also have good detection performance in the target domain;

[0032] To address the problem that traditional cross-domain target detection methods use a neural network with completely shared parameters to extract features from the two domains, but cannot fully align the differences in feature distribution, the present invention uses neural network layers with the same structure but different parameters to extract the block channel attention of the two domains from the source domain and the target domain respectively and enhances the features, so as to more accurately align the shallow features of the two domains.

[0033] The present invention utilizes a convolutional neural network to extract multi-scale features of remote sensing images in the source domain and the target domain respectively; performs average pooling of shallow features in blocks to obtain local window channel information of the features; adopts a domain-specific channel attention layer to calculate the channel attention of the source domain and the target domain respectively, and performs feature enhancement on the block-pooled features of the source domain and the target domain; adopts a domain discriminator method to adversarially reduce the cross-domain feature distribution difference of the enhanced features; utilizes a detection head in the source domain to calculate the target detection prediction value of the target domain image, and uses the prediction value with a confidence greater than a threshold as a pseudo-label, and classifies the candidate area feature map according to the pseudo-label; calculates the average value of the candidate area feature map of the source domain and the target domain of each category as the local prototype, and then uses the exponential sliding average method to update the global prototype; calculates the mean square error of the prototypes of the two domains, and dynamically adjusts the prototype alignment loss according to the number of training iterations, so as to obtain a cross-domain target detection model that performs well in the target domain.

[0034] Specifically:

[0035] 1. Select source and target domain aerial remote sensing images

[0036] Select the source domain remote sensing image and the target domain remote sensing image, respectively. Figure 2 As shown in (a) and (b);

[0037] On the source domain remote sensing image, the true value labels of target detection are organized into PASCAL VOC format, and the image domain label files correspond one to one. The label files contain image information, target category, bounding box coordinates and other data.

[0038] 2. Convolutional neural network feature extraction

[0039] like Figure 3 As shown in the figure, in order to obtain multiple scale features of the image, the image is first input into the ResNet-101 model pre-trained on ImageNet, and features are extracted using each stage layer of ResNet-101;

[0040] The features processed by stage1 are called shallow features F1(x), and the features processed by stage2 and stage3 are called deep features.

[0041] 3. Domain-specific block-wise channel attention

[0042] like Figure 4 As shown, firstly, the shallow features of the source domain and the target domain are average pooled in blocks;

[0043] The number of blocks in the row and column directions is set to N respectively. p , then the feature map is divided into N p 2 piece;

[0044] Average pooling is used on each block to compress the spatial size of shallow features to 1×1. The calculation formula is as follows:

[0045]

[0046] Among them, AP represents average pooling, H s and W s Indicates the height and width of each block feature.

[0047] Then, a domain-specific channel attention network is used to calculate the channel attention value on each block;

[0048] The compression layer of the domain-specific channel attention network consists of two convolutional layers with a convolution kernel of 1×1, the activation layer is a ReLU layer, and the excitation layer is a convolutional layer with a convolution kernel of 1×1;

[0049] The shallow features of the source domain and the target domain use their own compression layers respectively, so the features of the two domains can be extracted more fully;

[0050] The calculation formula is as follows:

[0051]

[0052] Among them, Conv S and Conv T are the compression layers of the source domain and the target domain, respectively.

[0053] The attention on the block is then restored to the same spatial size as the shallow feature through upsampling of the bilinear difference, and the attention is multiplied by the shallow feature to obtain the enhanced feature. The calculation formula is as follows:

[0054]

[0055] Finally, the enhanced features are input into the next stage of convolutional neural network and domain discriminator network respectively.

[0056] 4. Compute domain discrimination loss

[0057] The domain discriminator is divided into local feature domain discriminator D l and the global feature domain discriminator D g ;

[0058] The local feature domain discriminator consists of three convolutional layers with a convolution kernel of 1×1, the activation layer is a ReLU layer, and the output layer is a Sigmoid layer;

[0059] The global feature domain discriminator consists of three convolutional layers with a convolution kernel of 3×3, a global pooling layer, and a fully connected layer. The activation layer is a ReLU layer, and the output layer is a fully connected layer.

[0060] The formula for local feature discrimination loss is as follows:

[0061]

[0062] Among them, H and W are the height and width of the shallow feature map, n s ,n t The training batch size is for the source domain and the target domain respectively;

[0063] The formula for global feature discrimination loss is as follows:

[0064]

[0065] Among them, r1 is the hyperparameter of the focus loss.

[0066] 5. Calculate the local and global prototypes of the category

[0067] In the source domain, the category of the suggestion box is calculated based on the true value label. In the target domain, the category of the suggestion box is estimated based on the prediction result of the target detection model, and the confidence threshold is set to filter the suggestion boxes with low confidence.

[0068] For each category, the average value of the feature of the suggestion box of the category is used as the local prototype of the category. The calculation formula is as follows:

[0069]

[0070] Among them, k represents the category number;

[0071] Then, the global prototype is updated using the exponential moving average method as follows:

[0072]

[0073] Among them, β is the smoothing coefficient, i represents the i-th iteration in the training process;

[0074] After exponential sliding averaging, the global prototype is more robust to noisy predictions, allowing the model parameter update to move in the right direction.

[0075] 6. Calculate the weight of prototype alignment loss based on training progress

[0076] Since the target detection model has poor prediction performance on the target domain in the early stage of training, but can gradually make accurate predictions in the later stage of training, the training progress p is calculated according to the number of training iterations and the total number of training times, and then the weight of the prototype alignment loss is calculated as follows:

[0077]

[0078] Among them, γ2 is a hyperparameter;

[0079] The weight change curve is as follows Figure 5 As shown in Figure 1, the weight is small in the early stage and gradually increases to 1 as the training progresses.

[0080] The prototype alignment loss with dynamically adjusted weights is calculated as follows:

[0081]

[0082] 7. Calculate the target detection loss in the source domain

[0083] The foreground target and background binary classification loss and the suggestion box regression loss are calculated on the RPN network. The target classification loss and suggestion box regression loss are calculated on the Fast RCNN network. The target detection loss calculation formula in the source domain is as follows:

[0084]

[0085] 8. Calculate the overall loss and optimize the model as follows:

[0086]

[0087] Among them, the negative sign represents the loss term after the gradient flipping layer, and the discriminator and the basic convolutional neural network optimize the model parameters in an adversarial manner.

[0088] When the above-mentioned cross-domain target detection method of aerial remote sensing images based on domain-specific block channel attention and dynamic prototype alignment is adopted, it can extract channel dependencies based on the source domain and target domain aerial remote sensing images respectively, enhance the features of the two domains, and reduce the difference in feature distribution. It can also obtain the weight of the prototype alignment loss, which can effectively suppress the influence of erroneous prediction box features on the target domain aerial remote sensing images in the early stage of training. The obtained cross-domain target detection model can be used for target detection in target domain aerial remote sensing images without true value labels, reducing the demand for true value labels for the training data of the target domain target detection model.

[0089] The above embodiments are only for illustrating the technical concept and features of the present invention, and their purpose is to enable people familiar with the technology to understand the content of the present invention and implement it accordingly, and they cannot be used to limit the protection scope of the present invention. Any equivalent changes or modifications made according to the spirit of the present invention should be included in the protection scope of the present invention.

Claims

1. A cross-domain target detection method for aerial remote sensing images, used for remote sensing images acquired by aerial optical remote sensing cameras, characterized in that: The following steps are involved: S1, selecting source domain remote sensing images and target domain remote sensing images with distribution differences; S2, using convolutional neural network to extract multiple scale features of source domain remote sensing images and target domain remote sensing images respectively; S3, pool the shallow features of the two domains obtained in S2 into blocks and input them into the domain-specific network, and calculate the domain-specific block channel attention respectively; S4, upsample the domain-specific block channel attention obtained in S3 so that the attention and shallow features have the same spatial size, and then enhance the shallow features of the two domains; S5, after the shallow features of the two domains obtained in S4 and the deep features obtained in S2 are subjected to the gradient flipping layer, the domain discriminator is used to respectively identify the domains to which the shallow features and the deep features belong, and the domain discrimination loss is calculated; S6. Use the object detection head to predict the object detection results of the two domains respectively, and use the true value label on the source domain to calculate the object detection loss; S7, in the target domain, according to the target detection result obtained by the prediction in S6, classify the candidate box features with a confidence value greater than a threshold into the corresponding category, and calculate the average value of the candidate box features as the local prototype of the category; S8, using the exponential moving average method to update the global prototype according to the local prototype obtained in S7, and calculate the prototype alignment loss of the two domains; S9, using the dynamic prototype alignment mechanism to dynamically adjust the weight of the prototype alignment loss during training; S10. The domain identification loss obtained in S5, the prototype alignment loss obtained in S8, and the target detection loss obtained in S6 are summed as the overall loss, and the target detection model and domain discriminator model parameters are updated using the gradient descent method to obtain a cross-domain target detection model.

2. The method for cross-domain target detection in aerial remote sensing images according to claim 1, characterized in that: The source domain remote sensing images and target domain remote sensing images with distribution differences in S1 include remote sensing images under different lighting conditions, different imaging weather conditions, and different sensor types.

3. The method for cross-domain target detection in aerial remote sensing images according to claim 1, characterized in that: The domain-specific block-wise channel attention in S3 is calculated on the shallow features after block pooling.

4. The method for cross-domain target detection in aerial remote sensing images according to claim 1, characterized in that: The domain-specific block-wise channel attention is implemented in the source and target domains using neural network layers with the same structure and independent parameters.

5. The method for cross-domain target detection in aerial remote sensing images according to claim 1, characterized in that: In S5, a domain discriminator is used to discriminate shallow features after domain-specific block channel attention enhancement.

6. The method for cross-domain target detection in aerial remote sensing images according to claim 1, characterized in that: In S7, candidate box features with confidence greater than a threshold are screened and the local prototype of each category is calculated.

7. The method for cross-domain target detection in aerial remote sensing images according to claim 1, characterized in that: The weight of the prototype alignment loss described in S9 is calculated by the training progress and is dynamically adjusted during the training process.

Citation Information

Patent Citations

  • Remote sensing image directed target detection method based on weak supervised learning

    CN116758421A

  • Situation awareness method using image segmentation

    KR102005559B1

  • Image processing method and apparatus, and computer readable storage medium

    WO2022218396A1

Cited By

  • Building cross-domain identification method coupling global context and geometric information

    CN119723338A

  • A cross-domain building recognition method coupling global context and geometric information

    CN119723338B

  • Multi-layer feature adaptive alignment cross-domain unmanned aerial vehicle target detection method and system

    CN120014241A