Cross-domain remote sensing image object detection method based on style and content decoupling
Through style content decoupling and adaptive instance normalization technology, the problem of poor generalization in cross-domain remote sensing image target detection is solved, efficient target detection in different domains is achieved, and detection performance is improved.
Patent Information
- Application Number
- CN202110911051.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-10
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2041-08-10
AI Technical Summary
Existing cross-domain remote sensing image target detection methods have poor generalization in different domains, resulting in poor target detection performance. In particular, style and content differences caused by domain differences are difficult to effectively handle.
Using a method based on style and content decoupling, remote sensing images in different domains are decoupled and reorganized through adaptive instance normalization, and the Focal Loss loss function is used to balance the loss values of positive and negative samples, combined with a generative adversarial network. and pre-trained VGG network, design an end-to-end cross-domain target detection network, and use adaptive instance normalization and decoders for feature extraction and target detection.
It improves the generalization of the remote sensing image target detection model, enables it to obtain better prediction results in different domains, and improves the accuracy and speed of target detection.
Smart Images

Figure CN113657232B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of image information processing, and in particular relates to a method for cross-domain remote sensing image target detection. Background Art
[0002] At present, the methods related to this patent include two aspects: the first is a remote sensing image target detection algorithm based on deep learning; the second is a deep learning algorithm for style and content decoupling.
[0003] Object detection methods based on deep learning are mainly divided into two categories: one-stage object detection and two-stage object detection. The one-stage object detection algorithm is fast but has relatively low accuracy, while the two-stage object detection algorithm is slow but has relatively high accuracy. Most of these methods design specific network structures to extract areas that may be targets. The network proposed by Ren et al. in the paper "Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks" designs an RPN network for extracting areas that may be targets, and then classifies these areas. With specific areas for assistance, the accuracy is high, but there is also the problem of slow detection speed; the one-stage object detection network does not have a network structure for extracting auxiliary areas. In order to improve the accuracy of the network, a large number of scholars have conducted numerous studies. Redmon et al. in the paper "You Only Look Once: Unified, Real-Time Object Detection" adopts the method of dividing the image into blocks to divide the task of target detection into image blocks. Lin et al. in "Focal Loss for Dense Object Detection" solves the problem of sample imbalance in the one-stage network and improves the detection accuracy of the network. Since the first-stage network abandons the calculation process of extracting auxiliary areas, it has a faster target detection speed than the two-stage network. However, abandoning the extraction of areas of interest inevitably leads to a decrease in target detection accuracy.
[0004] Junyan Zhu et al. proposed a deep learning algorithm for decoupling style from content in the paper "Unpaired Image-to-Image Translation using Cycle-Consistent Adversarial Networks". By using a generative adversarial network, style transfer can be achieved without establishing a one-to-one mapping between training data between the source domain and the target domain. Xun Huang et al. proposed adaptive instance normalization in the paper "Arbitrary Style Transfer in Real-time with Adaptive InstanceNormalization". In the feature space, the normalized mean and variance of each channel input of the content map are aligned and matched to the mean and variance of each channel input of the style map. Here, the values of each channel input of the content map and the style map are in the feature space, and the feature map obtained by the pre-trained VGG network is used as the input.
[0005] For cross-domain remote sensing image target detection, a common method to solve this problem is to first perform domain classification and then transfer learning. Remote sensing images from different domains are first classified, and then the target detection model is trained on one category before transfer learning is performed on the model on the target domain. This requires sufficient multi-domain images and the use of transfer learning to improve the generalization of the model; the model obtained by this method has poor generalization and poor target detection performance for remote sensing images from different domains. Summary of the invention
[0006] In order to improve the generalization of the remote sensing image target detection algorithm model and make it have good enough performance on remote sensing images in different domains, a remote sensing image target detection method based on style content decoupling is proposed to solve the domain difference problem between cross-domain remote sensing images. This method decouples the style content of remote sensing images in different domains through adaptive instance normalization, and re-divides them to obtain remote sensing images in multiple domains, and further performs target detection. This method can be applied to remote sensing images in different domains and can obtain good prediction results.
[0007] The technical solution of the present invention:
[0008] A cross-domain remote sensing image target detection method based on style content decoupling, the steps are as follows:
[0009] Based on the designed encoder, the decoder in the YOLO target detection framework is used to detect targets in remote sensing images. In the network training stage, since there are only a few targets in an image, directly using cross entropy to calculate the loss function of each position will cause the loss value of the positive sample to be "swamped" by the loss value of the negative sample, affecting the network's learning of the positive sample features. Therefore, we use the Focal Loss loss function to balance the loss function values corresponding to the positive and negative samples:
[0010]
[0011] Among them, N1 is the number of targets in a training batch, Y xyc is the true value of the image, The network prediction value α and β are two hyperparameters of the network used to determine the balance between positive and negative samples in the anchor box classification process. The anchor box regression branch actually predicts the position and size difference between the artificial anchor box and the true value; the true value anchor box is now assumed to be (x, y, h, w), and the four values represent the horizontal coordinate, vertical coordinate, height and width of the anchor box position; the artificial anchor box is The network needs to predict:
[0012]
[0013]
[0014] The following loss function is used to supervise the network:
[0015]
[0016]
[0017]
[0018] Where N2 is the number of predicted boxes whose overlap (IOU) with the jth true value box is greater than the threshold; is the network's prediction value for the i-th anchor box that meets the requirements (the overlap (IOU) with the j-th true value box is greater than the threshold), t mj is the corresponding true value, (x j ,y j ,h j ,w j ) is the parameter of the jth true value anchor box, The parameters of the anchor box are manually specified for the i-th person who meets the requirements. The total loss function L for target detection in the network detect for:
[0019] L detect =L class +L loc (7)
[0020] Among them, L class and L loc is the loss function specified in the formula.
[0021] We propose a method for multi-domain remote sensing image object detection based on style and content decoupling. We obtain multi-domain images by decoupling and recombining the style and content of images from different domains, and use the image content encoding obtained by decoupling to perform remote sensing image object detection. Therefore, we only use two images from different domains to decouple and interchange style and content, and supervise the convergence of the encoder on this basis, so that we can obtain a feature extractor with excellent feature extraction capabilities and the corresponding feature space, and perform remote sensing object detection on this basis.
[0022] By using Adaptive Instance Normalization (AIN), the style and content of an image can be decoupled to obtain a feature vector corresponding to the style and content of an image. The corresponding feature vector is then called with the feature vector corresponding to the style and content of images from different domains to obtain multi-domain remote sensing images. The corresponding losses are used to constrain the generation of multi-domain remote sensing images. The content feature encoding of the original remote sensing image decoupled from the style is then sent to the target detection network for supervised target detection. Finally, a remote sensing image target detection model with excellent generalization is obtained through training and learning.
[0023] The input content image is normalized at the instance level, and the style of the style image is obtained by using the mean and variance parameters of the style image for the normalized content image.
[0024]
[0025] Where x represents the input content image, y represents the input style image, μ(x) and μ(y) represent the means of the input x and y, respectively, and σ(x) and σ(y) represent the variances of the input x and y, respectively. The input of the normalized content image is scaled and translated by the style-related parameters. In this paper, the input x and y are the feature maps obtained by the pre-trained VGG deep neural network of the content image and style image, respectively.
[0026] After obtaining the style-converted feature map, a decoder with the opposite structure to the corresponding encoder VGG network is used to output the style-converted image. For the style-converted image, its content must not change, and its style must be similar to the input style image. The discriminator in the pre-trained generative adversarial network can be used to ensure that the generated image is consistent with the style image in style. In addition, two losses are designed to ensure the unchanged content and style conversion.
[0027] By using the trained discriminator to discriminate the generated style conversion image, the image generated by the network can make the discriminator "think" that it belongs to the category of the input style image.
[0028] L adv =L CE (D(g(t)),1) (9)
[0029] Among them, t represents the feature map obtained after the generated style conversion, L CE represents the cross entropy loss function.
[0030] In addition, there is a loss to supervise the content of the generated style transfer image so that it keeps the content unchanged.
[0031]
[0032] Where t represents the generated style transfer feature map, g(t) represents the output image obtained after the feature map t passes through the decoder g, and f represents the encoder. Through the content-invariant loss, the image g(t) obtained after the output feature map is decoded by the encoder and then fed into the encoder to obtain the feature map f(g(t)), which is the same as the original feature map t.
[0033] In addition, the style of the generated style conversion image is supervised to obtain the style loss of the style image.
[0034]
[0035] Among them, φ i represents the activation function layer in the encoder VGG, and a total of L activation function layers are selected; μ and σ represent the mean and variance of the input respectively. s represents the style image. By comparing the activation function values of different layers of the generated image g(t) and the original style image s after passing through the encoder, the generated image can obtain the same style as the input style image.
[0036] The total loss L for adaptive instance normalization for style transfer style for:
[0037] L style =L adv +L c +L s (12)
[0038] The final end-to-end trained cross-domain remote sensing image target detection network loss function L is:
[0039] L=L detect +L style (13).
[0040] Beneficial effects of the present invention: The cross-domain remote sensing image target detection method of the present invention uses an adaptive instance normalization method to obtain multi-domain images, and further decouples the obtained content feature encoding and sends it to the target detection network for target detection. The method has good generalization for remote sensing images of different domains and can obtain ideal target detection results. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 Shown is the flow chart of the designed end-to-end trained cross-domain remote sensing image target detection method.
[0042] Figure 2 Shown is a schematic diagram of the network structure of the designed end-to-end trained cross-domain remote sensing image target detection method. DETAILED DESCRIPTION
[0043] The specific implementation of the present invention is further described below in conjunction with the accompanying drawings and technical solutions.
[0044] First, the decoupling and reorganization of content and style between images in different domains is obtained through the method of adaptive instance normalization. The process of decoupling and reorganizing content and style needs to be supervised by formula (12). After that, an image with content and style interchangeable can be obtained. This method can be used to obtain a feature extractor with ideal expression ability and the corresponding content feature encoding. After that, the content feature encoding is sent to the decoder part of the YOLO network for target detection. This process needs to be supervised by formula (7).
[0045] In general, this method designs a multi-domain remote sensing image target detection method based on content-style decoupling, which can effectively perform target detection on multi-domain remote sensing images.
Claims
1. A cross-domain remote sensing image target detection method based on style content decoupling, characterized in that: Here are the steps: Based on the designed encoder, the decoder in the YOLO target detection framework is used to detect the target of remote sensing images. In the network training stage, the Focal Loss loss function is used to balance the loss function values corresponding to positive and negative samples: Among them, N1 is the number of targets in a training batch, Y xyc is the true value of the image, is the network prediction value α and β are two hyperparameters of the network used to specify the balance between positive and negative samples in the anchor box classification process; the anchor box regression branch actually predicts the position and size difference between the artificially specified anchor box and the true value; the true value anchor box is now assumed to be (x, y, h, w), and the four values represent the horizontal coordinate, vertical coordinate, height and width of the anchor box position respectively; the artificially specified anchor box is The network needs to predict: The following loss function is used to supervise the network: Among them, N2 is the number of predicted boxes whose overlap with the jth true value box is greater than the threshold; is the network's prediction value for the i-th anchor box that meets the requirements, and the overlap with the j-th true value box is greater than the threshold; t mj is the corresponding true value, (x j ,y j ,h j ,w j ) is the parameter of the jth true value anchor box; The parameters of the anchor box are manually specified for the i-th person who meets the requirements; the total loss function L for target detection in the network detect for: L detect =L class +L loc (7) Among them, L class and L loc is the loss function specified in the formula; A method for multi-domain remote sensing image target detection task based on style and content decoupling is proposed. Multi-domain images are obtained by decoupling and recombining the style and content of images from different domains, and the image content encoding obtained by decoupling is used for remote sensing image target detection. Therefore, only two images from different domains are used to decouple and exchange the style and content, and the convergence of the encoder is supervised on this basis, so that a feature extractor with excellent feature extraction ability and the corresponding feature space can be obtained, and remote sensing target detection can be performed on this basis. By using adaptive instance normalization, the style and content of an image are decoupled to obtain a feature vector corresponding to the style and content of an image, and then the corresponding feature vector is called with the feature vector corresponding to the style and content of images from different domains, so that a multi-domain remote sensing image can be obtained; the corresponding loss is used to constrain the generation of multi-domain remote sensing images; then the content feature encoding of the original remote sensing image decoupled from the style is sent to the target detection network for supervised target detection, and finally a remote sensing image target detection model with excellent generalization is obtained through training and learning; By performing instance-level normalization on the input content image, and correspondingly obtaining the style of the style image by using the mean and variance parameters of the style image for the normalized content image; Where x represents the input content image, y represents the input style image, μ(x) and μ(y) represent the means of the input x and y respectively, and σ(x) and σ(y) represent the variances of the input x and y respectively. The input of the normalized content image is scaled and translated by the relevant parameters of the style. The input x and y are the feature maps obtained by the pre-trained VGG deep neural network of the content image and style image respectively. After obtaining the style-converted feature map, use a decoder with the opposite structure to the corresponding encoder VGG network to output the style-converted image; for the style-converted image, it is necessary to ensure that its content does not change, and its style is similar to the input style image. The discriminator in the pre-trained generative adversarial network is used to ensure that the generated image is consistent with the style image in style. In addition, two losses are designed to ensure the unchanged content and the conversion of style; By using the trained discriminator to discriminate the generated style conversion image, the image generated by the network is "considered" by the discriminator to belong to the input style image category; L adv =L CE (D(g(t)),1) (9) Among them, t represents the feature map obtained after the generated style conversion, L CE represents the cross entropy loss function; In addition, there is a loss to supervise the content of the generated style transfer image so that it keeps the content unchanged. Where t represents the generated style transfer feature map, g(t) represents the output image obtained after the feature map t passes through the decoder g, and f represents the encoder. Through the content-invariant loss, the image g(t) obtained after the output feature map is decoded by the encoder and then fed into the encoder to obtain the feature map f(g(t)), which is the same as the original feature map t. In addition, the style of the generated style conversion image is supervised to obtain the style loss of the style image. Among them, φ i represents the activation function layer in the encoder VGG, and a total of L activation function layers are selected; μ and σ represent the mean and variance of the input respectively; s represents the style image; by comparing the activation function values of different layers of the generated image g(t) and the original style image s after passing through the encoder, the generated image can obtain the same style as the input style image; The total loss L for adaptive instance normalization for style transfer style for: L style =L adv +L c +L s (12) The final end-to-end trained cross-domain remote sensing image target detection network loss function L is: L=L detect +L style (13)
