Camouflage object detection method with edge information enhancement and different-level feature fusion
By employing edge information enhancement and multi-level feature fusion to detect camouflaged objects, and utilizing a pyramid visual converter and a CA attention edge extraction module, the accuracy and lightweight design of camouflaged target detection are addressed, resulting in more efficient camouflaged target recognition.
Patent Information
- Application Number
- CN202411076963.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-07
- Publication Date
- 2024-11-22
AI Technical Summary
Existing deep learning-based methods for detecting camouflaged targets are not accurate enough when dealing with highly similar camouflaged targets, and the increased complexity of the network structure leads to high computational complexity, making it difficult to achieve lightweight operation.
We employ a multi-level feature fusion network (MENet) with enhanced edge information. This network extracts multi-level features through a pyramid visual converter and combines an edge extraction module and a feature fusion module based on CA attention to enhance edge information and fuse features from different levels, thereby reducing the number of model parameters and inference costs.
It improves the accuracy of camouflaged target detection, reduces model complexity and computational cost, and outperforms existing methods, especially showing significant improvements on the CAMO, COD10K and NC4K datasets.
Smart Images

Figure CN119006907A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of camouflaged object detection, and in particular relates to a camouflaged object detection method by enhancing edge information and fusing features at different levels. Background Art
[0002] Camouflaged object detection (COD), the task of identifying objects that are “seamlessly” embedded in their surroundings, has attracted increasing research interest in the computer vision community. It holds great promise in driving a variety of applications with great potential value in multiple fields.
[0003] To solve such problems, people began to use hand-crafted low-level features (such as texture and contrast, 3D convexity, and motion boundaries) early on, but the ability of these features to distinguish objects from similar surrounding environments has always been limited.
[0004] With the rapid development of artificial intelligence, people have begun to use deep learning methods to detect disguised targets and have achieved good results, but there are still some problems that have not been well solved. Existing methods are often limited by the difficulty that the detection object cannot be effectively, completely and accurately identified after being disguised with high similarity, thus providing unsatisfactory detection results. The specific problems are as follows:
[0005] 1) Camouflaged targets usually have highly similar colors, textures, and shapes to their background environments. This similarity makes it difficult for image processing methods to effectively distinguish targets from backgrounds. Camouflaged targets imitate the color and texture features of the background, making it difficult for methods based on color histograms and texture analysis to work. In addition, camouflaged targets may also adjust their shapes to be similar to objects in the environment, making shape analysis-based methods also face challenges. These highly similar features make it extremely difficult to detect camouflaged targets, and more complex and intelligent algorithms are needed to improve the accuracy and reliability of detection.
[0006] 2) Camouflaged targets may have different scales and shapes. Existing algorithms may not work well when dealing with multi-scale targets. Additional mechanisms (such as pyramid network structures) are needed to improve multi-scale detection performance, but these mechanisms will increase computational complexity and it is difficult to achieve lightweight.
[0007] To solve such problems, more deep learning-based methods have been proposed for camouflaged target detection, and they show great potential. These methods can be roughly divided into the following types. One type is to design targeted network modules or architectures to effectively explore the camouflaged object characteristics of COD; another type is to design networks by imitating the behavior of predators in nature; and another type is inspired by the fact that when people observe objects, their attention will unconsciously focus on the boundary information of objects during the period of foreground and background transfer. This type imitates human visual psychological patterns to enhance the feature representation of COD, such as distinguishing foreground and background based on edge guidance, and imitating the human eye to zoom in and out when observing objects.
[0008] This paper proposes a camouflaged object detection method that enhances edge information and fuses features at different levels, using a multi-level feature fusion network (MENet) with edge information enhancement. It improves the camouflaged target detection performance by accurately locating the boundary of the object and fusing features across levels and layers, while reducing the number of parameters and inference consumption required by the model. Summary of the invention
[0009] The purpose of the present invention is to provide a camouflaged object detection method with edge information enhancement and fusion of features at different levels, so as to solve the problems in the prior art that deep learning-based detection methods have difficulty in detecting camouflaged targets and that the network structure easily increases the computational complexity and is difficult to achieve lightweight.
[0010] To achieve the above purpose, the technical solution adopted by the present invention is:
[0011] The first aspect of the present invention proposes a multi-level feature fusion network model for edge information enhancement, comprising:
[0012] The feature search module uses the pyramid visual transformer as the backbone network and extracts different levels of features of the detected object based on attention-based feature search;
[0013] The boundary guidance module includes four boundary guidance modules and a CA attention-based edge extraction module, which integrates different level features with the edge features collected by the CA attention-based edge extraction module;
[0014] The feature fusion module includes a loop module composed of three feature fusion modules and a feature fusion module with KAN convolution, which is used to enhance the semantic relevance between the integrated features of different levels.
[0015] The second aspect of the present invention proposes a camouflaged object detection method using the above model to enhance edge information and fuse features at different levels, comprising the following steps:
[0016] S1, feature search: extracting different levels of features of the detected object based on the feature search module;
[0017] S2, boundary guidance: integrating different levels of features of the detection object with the edge features of the detection object based on the boundary guidance module;
[0018] S3, feature fusion: based on the feature fusion module to enhance the semantic correlation between the integrated features of different levels.
[0019] Preferably, the S1 is as follows:
[0020] First, by inputting the image I∈R W×H×3 To generate small pieces The flattened patch is then input into the linear projection to obtain The embedded patch is then passed through a Transformer encoder with an L1 layer along with the position embedding, and the output is reshaped into The multi-level features of t i (i=1,2,3,4).
[0021] Preferably, the multi-level feature t output by the feature search module in S2 i (i=1,2,3,4), edge features are collected using the edge extraction module based on CA attention, as follows:
[0022] Use CA attention to convert low-level features t1 and high-level features t4 into attention maps t1′ and t4′4 with position information, then pass t1′ and t4′ through 1×1 convolutional layers to get results t1″ and t4″, and then upsample t4″ to get t4″ u , and then t4″ u Combined with t1″ by a series operation; finally, through two 3×3 convolutional layers and one 1×1 convolutional layer, the edge feature t is obtained through the final Sigmoid function e .
[0023] Preferably, in S2, four boundary guidance modules are used to respectively transform the multi-level features t i (i=1,2,3,4) and edge feature t e Perform integration to obtain the integrated features
[0024]
[0025] Further, the integration process is as follows:
[0026] For the edge feature t e With multi-level features t i (i=1,2,3,4), the downsampled te With t i After element-wise multiplication, add it to the original multi-level feature t i Add them together and then go through a 3×3 convolution to get the low-level fusion features It is expressed as follows:
[0027]
[0028] Among them, Tconv3 is 3×3 convolution, D is downsampling, is element-wise multiplication, It is element-wise addition;
[0029] For low-level fusion features Further feature enhancement is performed; The corresponding channel attention is obtained by global average pooling, one-dimensional convolution and Sigmoid activation function in turn. After element-wise multiplication, the final output is obtained through a 1×1 convolutional layer. It is expressed as follows:
[0030]
[0031] Among them, GAP represents global average pooling, T 1D is a one-dimensional convolution, σ represents the Sigmoid activation function, T conv1 Represents a 1×1 convolution.
[0032] Preferably, in S3, feature fusion is performed by using a feature fusion module with KAN convolution, specifically as follows:
[0033] First, input the two The features are concatenated together and then passed through a 1×1 convolutional layer to obtain the low-level fusion feature t m ; Then t m Divided into four feature maps of the same shape in the channel dimension The divided feature maps are then fused according to the proximity principle, and the fused feature maps are then subjected to a dilated convolution operation to enhance the correlation between adjacent features, which can be expressed as:
[0034]
[0035] in, represents a 3×3 dilated convolution, It is element-wise addition;
[0036] The multi-scale correlation features Perform a series operation, after a 1×1 convolutional layer and low-level aggregation feature t mPerform residual connection, and then pass the result of residual connection through a layer of KAN convolution to finally obtain cross-scale fusion features It is expressed as follows:
[0037]
[0038] Among them, [*] is a concatenation operation.
[0039] Preferably, the loop module is used to perform feature fusion in S3, as follows:
[0040] The structure of the feature fusion module is similar to that of the feature fusion module with KAN convolution. The KAN convolution in the feature fusion module with KAN convolution is replaced by 3×3 convolution, which is the feature fusion module. The fusion process of the feature fusion module is expressed as follows:
[0041]
[0042] After upsampling the input features of the feature fusion module, the three feature fusion modules are connected in sequence as a cyclic module.
[0043] Preferably, it also includes:
[0044] The preliminary prediction result is obtained from the cyclic module composed of three feature fusion modules, and then the final prediction result of the camouflaged object target is obtained through two-dimensional convolution and upsampling.
[0045] Compared with the prior art, the present invention has the following beneficial effects:
[0046] (1) The CA attention-based edge extraction module (CAEM) and the feature fusion module (KFFM) with KAN convolution in the camouflaged target detection method of the present invention are the key technologies of the present invention. The designed CAEM can obtain accurate edge information, which enables the model to better solve the boundary blur and misjudgment problems caused by the high similarity of the surrounding environment of the object, thereby improving the accuracy of camouflaged target prediction. The experimental results of the present invention show that the proposed method performs better than most of the current state-of-the-art methods on three public benchmark datasets: CAMO, COD10K and NC4K.
[0047] (2) In order to better utilize edge information and enhance the correlation between features, the present invention designs KFFM to better process high-level features and edge information. The experimental results show that the model with KFFM creates better performance than the model without KFFM. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 It is a structural block diagram of the multi-level feature fusion network model with edge information enhancement in the present invention;
[0049] Figure 2 It is a structural block diagram of the edge extraction module based on CA attention in the present invention;
[0050] Figure 3 This is a structural block diagram of the feature fusion module adding KAN convolution in the present invention;
[0051] Figure 4 The figure is a comparison diagram of the detection effect of the disguised object detection method in the present invention compared with other disguised object detection methods in the prior art. DETAILED DESCRIPTION
[0052] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0053] Embodiment 1:
[0054] The camouflaged object detection method with edge information enhancement and different-level feature fusion adopts the edge information enhanced multi-level feature fusion network model (MENet), which is divided into three parts: feature search, boundary guidance and feature fusion. The pyramid visual converter is used as the backbone network to search for different levels of features of the detection object as the feature search part. The boundary guidance part uses precise edge information as a constraint to better integrate multi-level features. As for the feature fusion part, it is used to enhance the correlation between features. The overall network architecture is as follows: Figure 1 shown.
[0055] The camouflaged object detection method by edge information enhancement and different-level feature fusion includes the following steps:
[0056] Step 1: Feature search:
[0057] The present invention selects the Pyramid Visual Transformer (PVT) as the backbone (PVT-V2-B3) to extract multi-level features, which acts as an attention-based feature search to produce high-resolution feature maps with low memory cost.
[0058] The working principle of the pyramid visual transmitter is to first input the input image I∈R W×H×3 To generate small pieces Then, the flattened patch is input into the linear projection to obtain Afterwards, the embedded patch along with the position embedding is passed through a Transformer encoder with an L1 layer and the output is reshaped into The multi-level features of t i (i=1,2,3,4). The object boundary guidance part and the feature fusion part proposed in the present invention are both feature searches based on attention.
[0059] Step 2: Boundary Guidance:
[0060] The boundary guidance part consists of four boundary guidance (BGM) modules and a CA attention-based edge extraction (CAEM) module. This part integrates the features of different fineness across layers with the edge features collected by CAEM, greatly reducing the impact of misjudgment of target boundaries and positions caused by inaccurate edge information. The structure of CAEM is as follows Figure 2 shown.
[0061] In CAEM, CA attention is first used to convert low-level features t1 and high-level features t4 into attention maps t1′ and t4′4 with position information, and then t1′ and t4′ are passed through a 1×1 convolutional layer to obtain results t1″ and t4″. Then t4″ is upsampled to obtain t4″ u , and then t4″ u Combined with t1″ by a concatenation operation. Finally, through two 3×3 convolution layers and one 1×1 convolution layer, the edge feature t is obtained through the final Sigmoid function. e The experiments show that CAEM is a concise and efficient edge extraction module that can accurately locate the semantics of object edges.
[0062] In BGM, the edge feature t e With multi-level features t i (i=1,2,3,4), for the downsampled t e With t i After element-wise multiplication, add it to the original multi-level feature t i Add them together and then go through a 3×3 convolution to get the low-level fusion features It is expressed as follows:
[0063]
[0064] In the above formula, Tconv3 is a 3×3 convolution and D is downsampling. is element-wise multiplication, It is element-wise addition.
[0065] Then the obtained low-level fusion features Further feature enhancement is performed. The corresponding channel attention is obtained by global average pooling (GAP), one-dimensional convolution and Sigmoid activation function. After element-wise multiplication, the final output is obtained through a 1×1 convolutional layer. It is expressed as follows:
[0066]
[0067] Among them, T conv1 represents 1×1 convolution, T 1D It is a one-dimensional convolution, and σ represents the Sigmoid activation function. This allows accurate boundary clues to be better combined with multi-level features of different fineness.
[0068] Step 3: Feature Fusion:
[0069] This part includes a recurrent module consisting of three feature fusion (FFM) modules and a feature fusion (KFFM) module with KAN convolution. The design fully considers the semantic correlation between features of different fineness.
[0070] Processed with KFFM For example, first input the two The features are concatenated together and then passed through a 1×1 convolutional layer to obtain the low-level fusion feature t m Then, t m Divided into four feature maps of the same shape in the channel dimension The divided feature branches are then fused according to the proximity principle, and the fused feature maps are passed through a series of dilated convolutions to enhance the correlation between adjacent features. Figure 3 As shown. It can be expressed as:
[0071]
[0072] in, Represents a 3×3 dilated convolution. In the experiment, the dilation rates of the dilated convolution are set to {1, 2, 3, 4} respectively.
[0073] Then the multi-scale correlation features Perform a series operation, after a 1×1 convolutional layer and low-level aggregation feature t m Perform residual connection, and then pass the result of residual connection through a layer of KAN convolution (such as Figure 3 As shown). Finally, we can get the fusion features with cross-scale It is expressed as follows:
[0074]
[0075] Among them, [*] is a concatenation operation, is the output of KFFM.
[0076] The structure of FFM is similar to KFFM. It only needs to replace the KAN convolution with a normal 3×3 convolution. The output expression of FFM is as follows:
[0077]
[0078] However, it should be noted that the high-level features of the FFM input must be upsampled before they can be connected for subsequent operations.
[0079] Finally, the preliminary prediction result is obtained from the cyclic module composed of three FFM modules, and then the final prediction result of the camouflaged target can be obtained through two-dimensional convolution and upsampling.
[0080] Experimental verification:
[0081] The present invention conducts all experiments and evaluations on three public benchmark datasets: CAMO, COD10K and NC4K.
[0082] The CAMO dataset contains two subsets: CAMO and MS-COCO. Each subset contains 1250 images, 1000 of which are used for training and the remaining 250 are used for testing.
[0083] COD10K dataset: This dataset is the largest camouflaged target dataset currently, containing 10,000 camouflaged images, divided into 5 superclasses and 69 subclasses, of which 6,000 images are used for training and 4,000 for testing. The camouflaged target categories of this dataset cover naturally camouflaged organisms, including land, marine, flying, and amphibian organisms. The target dimensions include large, medium, and small dimensions, which can be used for model training and verification.
[0084] NC4K dataset: It is the largest camouflaged target test set at present. It contains 4121 camouflaged images downloaded from the Internet. The camouflaged target categories mainly include natural camouflage and a small amount of artificial camouflage.
[0085] The present invention uses the training sets of CAMO and COD10K for the training of the model of the present invention, and uses the test sets thereof and NC4K as the test sets of the present invention. The present invention adopts the commonly used evaluation index S for camouflage target detection a , MAE.
[0086] The proposed method is compared with the most advanced camouflaged object detection methods. Table 1 shows the quantitative results of the proposed method compared with 15 advanced methods on three datasets.
[0087] Table 1
[0088]
[0089] As shown in Table 1, it is obvious that the proposed method achieves the best performance on the three datasets. Specifically, compared with the second best SARNet, the proposed method averagely reduces (S a ) increased by 1.10%, The performance is the same. The average improvement is 1.60%. Compared with ZoomNet, the method in the present invention increases (S a ) increased by 4.60%, Increased by 2.67%, The average increase is 7.67%.
[0090] Table 2 shows that the model of the present invention has the advantage of significantly reducing the number of model parameters and FLOP cost while improving accuracy.
[0091] Table 2
[0092]
[0093] As shown in Table 2, the data analysis results show that compared with BGNet, the method in this invention is superior to BGNet in three benchmark tests. The index was improved by 7.87% on average, while the number of parameters and FLOP cost were reduced by 35.22% and 22.40% respectively. In addition, the model of the present invention is superior to SARNet in many evaluation indicators, and the number of model parameters and FLOP cost are at the same level as the latter. These advantages are attributed to the efficient and streamlined design strategy of the network of the present invention.
[0094] Figure 4 The qualitative evaluation of the method in the present invention compared with other COD methods is shown, and the test objects include four major categories: aquatic, terrestrial, flying and amphibian. Through these visual results, it can be intuitively seen that the method in the present invention accurately predicts each camouflaged object. For detection objects with complex structures and high similarity to the environment, the model in the present invention can better locate edge information, thereby obtaining a more refined object structure.
[0095] The above description is only used to help understand the method of the present invention and its core essence, but the protection scope of the present invention is not limited thereto. For those skilled in the art in the art, equivalent replacement or change according to the technical solution and inventive concept of the present invention within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. The multi-level feature fusion network model with edge information enhancement is characterized by: include: The feature search module uses the pyramid visual transformer as the backbone network and extracts different levels of features of the detected object based on attention-based feature search; The boundary guidance module includes four boundary guidance modules and a CA attention-based edge extraction module, which integrates different level features with the edge features collected by the CA attention-based edge extraction module; The feature fusion module includes a loop module composed of three feature fusion modules and a feature fusion module with KAN convolution, which is used to enhance the semantic relevance between the integrated features of different levels.
2. A camouflaged object detection method using the model of claim 1 to enhance edge information and fuse features at different levels, characterized in that: The following steps are involved: S1, feature search; Extract different levels of features of the detected object based on the feature search module; S2, boundary guidance: integrating different levels of features of the detection object with the edge features of the detection object based on the boundary guidance module; S3, feature fusion; The semantic correlation between the integrated features at different levels is enhanced based on the feature fusion module.
3. The camouflaged object detection method of edge information enhancement and different-level feature fusion according to claim 2 is characterized in that: The S1 is specifically as follows: First, by inputting the image I∈R W×H×3 To generate small pieces The flattened patch is then input into the linear projection to obtain The embedded patch is then passed through a Transformer encoder with an L1 layer along with the position embedding, and the output is reshaped into The multi-level features of t i (i=1,2,3,4).
4. The camouflaged object detection method of edge information enhancement and different-level feature fusion according to claim 2 is characterized in that: The multi-level features t output by the feature search module in S2 i (i=1,2,3,4), edge features are collected using the edge extraction module based on CA attention, as follows: Use CA attention to convert low-level features t1 and high-level features t4 into attention maps t1′ and t4′4 with position information, then pass t1′ and t4′ through 1×1 convolutional layers to get results t1″ and t4″, and then upsample t4″ to get t4″ u , and then t4″ u Combined with t1″ by a series operation; finally, through two 3×3 convolutional layers and one 1×1 convolutional layer, the edge feature t is obtained through the final Sigmoid function e .
5. The camouflaged object detection method of edge information enhancement and different-level feature fusion according to claim 4 is characterized in that: In S2, four boundary guidance modules are used to respectively transform the multi-level features t i (i=1,2,3,4) and edge feature t e Perform integration to obtain the integrated features 6. The camouflaged object detection method of edge information enhancement and different-level feature fusion according to claim 5 is characterized in that: The integration process is as follows: For the edge feature t e With multi-level features t i (i=1,2,3,4), the downsampled t e With t i After element-wise multiplication, add it to the original multi-level feature t i Add them together and then go through a 3×3 convolution to get the low-level fusion features It is expressed as follows: Among them, Tconv3 is 3×3 convolution, D is downsampling, is element-wise multiplication, It is element-wise addition; For low-level fusion features Further feature enhancement is performed; The corresponding channel attention is obtained by global average pooling, one-dimensional convolution and Sigmoid activation function in turn. After element-wise multiplication, the final output is obtained through a 1×1 convolutional layer. It is expressed as follows: Among them, GAP represents global average pooling, T 1D is a one-dimensional convolution, σ represents the Sigmoid activation function, T conv1 Represents a 1×1 convolution.
7. The camouflaged object detection method of edge information enhancement and different-level feature fusion according to claim 5 or 6, characterized in that: In S3, feature fusion is performed by using a feature fusion module with KAN convolution, as follows: First, input the two The features are concatenated together and then passed through a 1×1 convolutional layer to obtain the low-level fusion feature t m ; Then t m Divided into four feature maps of the same shape in the channel dimension The divided feature maps are then fused according to the proximity principle, and the fused feature maps are then subjected to a dilated convolution operation to enhance the correlation between adjacent features, which can be expressed as: in, represents a 3×3 dilated convolution, It is element-wise addition; The multi-scale correlation features Perform a series operation, after a 1×1 convolutional layer and low-level aggregation feature t m Perform residual connection, and then pass the result of residual connection through a layer of KAN convolution to finally obtain cross-scale fusion features It is expressed as follows: Among them, [*] is a concatenation operation.
8. The camouflaged object detection method of edge information enhancement and different-level feature fusion according to claim 7, characterized in that: In S3, a loop module is used to perform feature fusion, as follows: The KAN convolution in the feature fusion module with KAN convolution is replaced by 3×3 convolution, which is the feature fusion module. The fusion process of the feature fusion module is expressed as follows: After upsampling the input features of the feature fusion module, the three feature fusion modules are connected in sequence as a cyclic module.
9. The camouflaged object detection method of edge information enhancement and different-level feature fusion according to claim 8, characterized in that: Also includes: The preliminary prediction result is obtained from the cyclic module composed of three feature fusion modules, and then the final prediction result of the camouflaged object target is obtained through two-dimensional convolution and upsampling.
Citation Information
Cited By
Camouflage animal detection method based on frequency domain decoupling and edge information fusion
CN120564232A
A camouflage animal detection method based on frequency domain decoupling and edge information fusion
CN120564232B
