A deep learning-based method for co-saliency detection

Through deep learning technology, combined with group attention and consensus modules, multiple image data are processed to generate clear collaborative saliency maps, which solves the problems of difficult object distinction and high noise in the existing technology, and achieves consistency detection effects between images. promote.

CN114998615BActive Publication Date: 2024-08-23NANJING UNIV OF INFORMATION SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210469320.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-28
Publication Date
2024-08-23
Estimated Expiration
2042-04-28

AI Technical Summary

Technical Problem

Existing collaborative saliency detection methods are difficult to effectively distinguish real public objects and noise objects when processing multiple images, and the effect of salient target detection is not clear enough and there are many background noises.

Method used

A collaborative saliency detection method based on deep learning is used to extract image features through a pre-trained feature extraction network, combined with the grouped attention module and consensus module, to perform top-down iterative processing to generate a collaborative saliency map, using the attention mechanism and Convolutional layers improve the clarity and consistency of target features.

Benefits of technology

The collaborative saliency map in the image group is effectively extracted. The outline of the salient target is clear and the background noise is less, which improves the consistency detection effect between images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure BDA0003621334590000041
    Figure BDA0003621334590000041
  • Figure BDA0003621334590000044
    Figure BDA0003621334590000044
  • Figure BDA0003621334590000063
    Figure BDA0003621334590000063
Patent Text Reader

Abstract

The present invention discloses a method for detecting co-saliency based on deep learning, which belongs to the field of computer vision. The method comprises the following steps: 1. Given a group of related images; 2. Using a feature extraction network to extract target features of a group of images; 3. Improving target features through a grouping attention module; 4. Generating a consensus of common saliency target features of a group of images through a consensus module; 5. Generating a co-saliency map through a top-down decoder. The method provided by the present invention can effectively extract a co-saliency map from a group of images, and the saliency target outline is clear and the background noise is small.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a collaborative saliency detection method based on deep learning, and belongs to the technical field of computer vision. Background Art

[0002] The era of big data and the ubiquitous use of the Internet have led to an explosion in information media and challenged us to process a large number of images rather than a single one when facing a specific task. Co-saliency detection is such a task, which simulates the human visual attention mechanism and aims to detect common salient objects with the same attributes given a group of related images. It originates from saliency detection, which targets salient objects that stand out in a single image. In recent years, as an emerging and rapidly developing research field in the field of computer vision, co-saliency detection has been widely used in the preprocessing steps of various computer vision tasks, such as image retrieval, image quality assessment, image monitoring, video analysis, etc. Different from salient object detection, which only focuses on attractive regions in a single image, co-saliency detection also needs to exploit the similar attributes shared by objects in an image group to distinguish real common objects in the presence of noisy objects.

[0003] Traditional methods explore inter-image correlations between a set of related images by using constraints or heuristic features such as manifold sorting and clustering. Li et al. proposed a two-stage detection framework based on manifold sorting, first determining its label through the saliency map, and then obtaining the co-saliency map through manifold sorting. Fu et al. proposed a clustering-based method that combines contrast cues, spatial position cues, and distribution consistency cues between images to construct a co-saliency map. Recently, deep learning-based models have simultaneously explored intra-image and inter-image consistency in a supervised manner through different methods, such as the end-to-end deep learning scheme of Wei et al. and the metric learning scheme of Han et al. Summary of the invention

[0004] The purpose of the present invention is to provide a collaborative saliency detection method based on deep learning to solve the problems raised in the above background technology.

[0005] To achieve the above object, the present invention provides the following technical solution: a collaborative saliency detection method based on deep learning, comprising the following steps:

[0006] Step 1: Given an image group containing N images The overall features of the N images are similar;

[0007] Step 2: Extract image groups through pre-trained feature extraction network The target features are obtained by taking a set of image feature maps F∈R N×C×H×W ;

[0008] Step 3: Transform a set of image feature maps F∈R N×C×H×W Input into the group attention module to obtain the improved feature map f∈R N×C×H×W ;

[0009] Step 4: Transform the feature map f∈R N×C×H×W Input into the consensus module to obtain the common salient target feature consensus E∈R of a group of images 1×C×1×1 ;

[0010] Step 5: Based on the feature map f and consensus E, a common salient target feature map is obtained, which is iterated top-down with feature maps of different scales in the feature extraction network to obtain a co-saliency map.

[0011] Preferably, in step three, the following steps are included:

[0012] The feature map F∈R of a set of images N×C×H×W Divided into 4 mutually exclusive groups [F'1, F'2, F'3, F'4], we define For one of the mutually exclusive group features, follow the steps below to improve the attention feature:

[0013] A n =softmax(PW 1 (maxpool 3×3,1 (DW 1×1 (F' n )))) (1)

[0014]

[0015] f=concat([f1,f2,f3,f4]) (3)

[0016] In formula (1), maxpool 3×3,1 is a 3×3 maximum pooling kernel with padding=1, DW 1×1 It is a 1×1 DW convolution, PW 1 It is a 1×1 convolution with only one filter, normalized by the softmax function, A n is a set of intermediate feature maps F n Inferred attention map;

[0017] Each set of attention maps is distributed through the feature distribution in formula (2) to obtain a refined feature map set f n ,in Element-wise multiplication is element addition;

[0018] The output f of the group attention module is obtained by concatenating the feature map set of each group through formula (3).

[0019] Preferably, in step three, the following steps are included:

[0020] First, the input feature map f∈R N×C×H×W Use the inner product to perform pixel-by-pixel inner product to obtain the affinity graph S f ∈R NHW×NHW , as shown in formula (4):

[0021] S=θ(f) T φ(f) (4)

[0022] Among them, θ and φ are linear embedding functions;

[0023] Then, calculate the affinity graph S f The maximum value of each image in M f ∈R NHW×N , and average the maximum value of N images to generate the global attention affinity graph A f ∈R NHW×1 ;

[0024] Use a softmax function to normalize A f And change its form to generate attention map A s ∈R N×(1×H×W) ;

[0025] Then focus on map A s Multiply it with the original feature map f to get the attention feature map f a ∈R N×C×H×W ;

[0026] Finally, by focusing on the feature map f a ∈R N×C×H×W Average pooling along the batch and spatial dimensions generates a consensus E∈R for a group of images. 1×C×1×1 .

[0027] Preferably, in step five, the following steps are included:

[0028] The feature map f∈R of the image group N×C×H×W Its consensus E∈R 1×C×1×1 Multiply to get the common salient target feature map of the image group Then use two convolutional layers to reduce the number of channels to 64.

[0029] In step (2), VGG-16 pre-trained on ImageNet is used to extract features from the input image group. The features extracted by its branches VGG-16_1, VGG-16_2, VGG-16_3, and VGG-16_4 are F n ,n∈(1,2,3,4);

[0030] Then follow the steps below to decode from top to bottom:

[0031]

[0032] Among them, (·)↑ is upsampling, Upsample to F n size;

[0033] L(·) is two convolutional layers, and F n The number of channels is reduced to 64. Addition for elements;

[0034] E(·) is two 64-core convolutional layers;

[0035] D(·) is used for deep supervision, outputting predictions through two convolutional layers and a sigmoid layer;

[0036] Finally, S1 is the co-saliency map of the image group.

[0037] The loss function during training is as follows:

[0038]

[0039] Where S n is the saliency map prediction, G n It is the ground truth.

[0040] The technical effects and advantages of the present invention are as follows: the method provided by the present invention can effectively extract a collaborative saliency map from a group of images, and the contours of the salient targets are clear and the background noise is small. DETAILED DESCRIPTION

[0041] The following will be combined with 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 ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0042] The present invention proposes a collaborative saliency detection method based on deep learning, aiming to achieve a clear outline of the detected salient target and less background noise.

[0043] In order to achieve the above technical objectives, the technical solution of the present invention is:

[0044] Step 1: Given an image set containing N images The overall features of the N images are similar;

[0045] Step 2: Use the VGG-16 feature extraction network pre-trained on ImageNet to extract features from the input image group and obtain a feature map F∈R of a group of images N×C×H×W .

[0046] Step 3: Transform a set of image feature maps F∈R N×C×H×W Divided into 4 mutually exclusive groups [F'1, F'2, F'3, F'4], we define For one of the mutually exclusive group features, follow the steps below to improve the attention feature:

[0047] A n =softmax(PW 1 (maxpool 3×3,1 (DW 1×1 (F' n )))) (1)

[0048]

[0049] f=concat([f1,f2,f3,f4]) (3)

[0050] In formula (1), maxpool 3×3,1 is a 3×3 maximum pooling kernel with padding=1, DW 1×1 It is a 1×1 DW convolution, PW 1 is a 1×1 convolution with only one filter and normalized using the softmax function. n is a set of intermediate feature maps F n Inferred attention maps. Each set of attention maps is distributed through the features in formula (2) to obtain a refined feature map set f n ,in Element-wise multiplication is Element-wise addition. The output of the grouped attention module f∈R N ×C×H×W It is obtained by connecting the feature mapping set of each group through formula (3).

[0051] Step 4: First, input feature map f∈R N×C×H×W Use the inner product to perform pixel-by-pixel inner product to obtain the affinity graph S f ∈R NHW×NHW, as shown in formula (4):

[0052] S=θ(f) T φ(f) (4)

[0053] Among them, θ and φ are linear embedding functions.

[0054] Then, calculate the affinity graph S f The maximum value of each image in M f ∈R NHW×N , and average the maximum value of N images to generate the global attention affinity graph A f ∈R NHW×1 . Secondly, a softmax function is used to normalize A f And change its form to generate attention map A s ∈R N×(1×H×W) Then focus on map A s Multiply it with the original feature map f to get the attention feature map f a ∈R N ×C×H×W Finally, by focusing on the feature map f a ∈R N×C×H×W Average pooling along the batch and spatial dimensions generates a consensus E∈R for a group of images. 1×C×1×1 .

[0055] Step 5: Transform the feature map f∈R of the image group N×C×H×W Its consensus E∈R 1×C×1×1 Multiply to get the common salient target feature map of the image group Then use two convolutional layers to reduce the number of channels to 64. In step (2), VGG-16 pre-trained on ImageNet is used to extract features from the input image group. The features extracted by its branches VGG-16_1, VGG-16_2, VGG-16_3, and VGG-16_4 are F n ,n∈(1,2,3,4). Then follow the following steps to perform top-down decoding:

[0056]

[0057] Among them, (·)↑ is upsampling, Upsample to F n size. L(·) is 2 convolution layers, and F n The number of channels is reduced to 64. is element-wise addition. E(·) is two 64-core convolutional layers. D(·) is used for deep supervision and outputs predictions through two convolutional layers and a sigmoid layer. Finally, S1 is the co-saliency map of the image group.

[0058] The loss function during training is as follows:

[0059]

[0060] Where S n is the saliency map prediction, G n It is the ground truth.

[0061] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A collaborative saliency detection method based on deep learning, characterized in that: The following steps are involved: Step 1: Given an image group containing N images The overall features of the N images are similar; Step 2: Extract image groups through pre-trained feature extraction network The target features are obtained by taking a set of image feature maps F∈R N×C×H×W ; Step 3: Transform a set of image feature maps F∈R N×C×H×W Input into the group attention module to obtain the improved feature map f∈R N×C×H×W ; Step 4: Transform the feature map f∈R N×C×H×W Input into the consensus module to obtain the common salient target feature consensus E∈R of a group of images 1×C×1×1 ; Step 5: Based on the feature map f and consensus E, a common salient target feature map is obtained, which is iterated from top to bottom with the feature maps of different scales in the feature extraction network to obtain a co-saliency map; In step three, the following steps are included: The feature map F∈R of a set of images N×C×H×W Divide into 4 mutually exclusive groups [F'1, F'2, F'3, F'4] in sequence, and then define For one of the mutually exclusive group features, follow the steps below to improve the attention feature: A n =softmax(PW 1 (maxpool 3×3,1’ (DW 1×1 (F n )))) (1) f=concat([f1,f2,f3,f4]) (3) In formula (1), maxpool 3×3,1 is a 3×3 maximum pooling kernel with padding=1, DW 1×1 It is a 1×1 DW convolution, PW 1 It is a 1×1 convolution with only one filter, normalized by the softmax function, A n is a set of intermediate feature maps F' n Inferred attention map; Each set of attention maps is distributed through the feature distribution in formula (2) to obtain a refined feature map set f n ,in Element-wise multiplication is element addition; The output f of the group attention module is obtained by concatenating the feature map set of each group through formula (3); In step 4, the following steps are included: First, the input feature map f∈R N×C×H×W Use the inner product to perform pixel-by-pixel inner product to obtain the affinity graph S f ∈R NHW ×NHW , as shown in formula (4): S=θ(f) T φ(f) (4) Among them, θ and φ are linear embedding functions; Then, calculate the affinity graph S f The maximum value of each image in M f ∈R NHW×N , and average the maximum value of N images to generate the global attention affinity graph A f ∈R NHW×1 ; Use a softmax function to normalize A f And change its form to generate attention map A s ∈R N×(1×H×W) ; Then focus on map A s Multiply it with the original feature map f to get the attention feature map f a ∈R N×C×H×W ; Finally, by focusing on the feature map f a ∈R N×C×H×W Average pooling along the batch and spatial dimensions generates a consensus E∈R for a group of images. 1×C×1×1 ; In step five, the following steps are included: The feature map f∈R of the image group N×C×H×W Its consensus E∈R 1×C×1×1 Multiply to get the common salient target feature map of the image group Then use two convolutional layers to reduce the number of channels to 64. In step (2), VGG-16 pre-trained on ImageNet is used to extract features from the input image group. The features extracted by its branches VGG-16_1, VGG-16_2, VGG-16_3, and VGG-16_4 are F n ,n∈(1,2,3,4); Then follow the steps below to decode from top to bottom: Among them, (·)↑ is upsampling, Upsample to F n size; L(·) is two convolutional layers, and F n The number of channels is reduced to 64. Addition for elements; E(·) is two 64-core convolutional layers; D(·) is used for deep supervision and outputs predictions through two convolutional layers and a sigmoid layer; finally S1 is the co-saliency map of the image group; The loss function during training is as follows: Where S n is the saliency map prediction, G n It is the ground truth.