A salient object detection and segmentation method based on image frequency decomposition

By using the dual-branch parallel decoder and multi-scale frequency feature enhancement module of the TFGNet model, the accuracy and robustness issues of salient object detection and segmentation in complex scenes are solved, achieving efficient salient object detection and segmentation results.

CN117475141BActive Publication Date: 2026-11-27DALIAN UNIV OF TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311546618.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-20
Publication Date
2026-11-27
Estimated Expiration
2043-11-20

AI Technical Summary

Technical Problem

Existing technologies still face challenges in terms of the accuracy and robustness of salient object detection and segmentation in complex and chaotic natural or social scenarios, especially when dealing with mixed high- and low-frequency image information, where the accuracy of target region boundary and localization prediction is insufficient.

Method used

A salient object detection and segmentation method based on image frequency decomposition is designed. The TFGNet model with Transformer architecture is adopted. A dual-branch parallel decoder is used to learn high-frequency boundary details and low-frequency interior region features respectively. The features are optimized by a multi-scale frequency feature enhancement module, and the model accuracy is improved by combining a novel loss function.

Benefits of technology

It achieves accurate detection and clear boundary segmentation of salient targets in complex backgrounds, and has strong versatility and robustness, demonstrating superior performance compared to existing models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117475141B_ABST
    Figure CN117475141B_ABST
Patent Text Reader

Abstract

The present application belongs to the field of artificial intelligence and computer vision, and relates to a salient object detection and segmentation method based on image frequency decomposition. The method adopts a backbone network to preliminarily encode an image; then in the decoding part, the frequency decomposition and synthesis mechanism of the image is strictly followed, a double-branch feature parallel learning structure is adopted, and the high-frequency boundary details and low-frequency internal region features of the salient object can be simultaneously learned and optimized. In the core part of each branch, a multi-scale frequency feature enhancement module is designed to optimize the frequency features. In addition, a new loss function based on pixel gray scale statistical similarity measurement is proposed, which combines the BCE and IoU loss functions to further improve the overall accuracy and performance of the model. The present application can well handle the problems of inaccurate salient object positioning and unclear boundary caused by the mixing of high-frequency and low-frequency image information in complex background environment, and has strong universality and robustness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the fields of artificial intelligence and computer vision, and relates to a salient target detection and segmentation method based on image frequency decomposition. Background Technology

[0002] The goal of Salient Object Detection (SOD) is to locate and segment salient regions in an image that conform to human visual and psychological cognition. This task is considered a fundamental step in advanced visual processing and understanding, and its main challenge lies in balancing two distinct objectives: extracting global information and preserving local detail. Extracting global information is particularly crucial for identifying salient regions when the salient region contains multiple objects that may have different appearances or complex geometries. On the other hand, features that effectively represent the boundary details of the salient region are also needed. These features are key to distinguishing the salient region from the background and are essential for accurate segmentation of the salient region. Deep learning techniques have greatly advanced the field of SOD. In particular, the U-Net-based encoder-decoder architecture has been used to solve the problem of simultaneously learning global and local salient features and has become the basic architecture of SOD models. Based on this architecture, existing work has introduced various optimization strategies to further improve the accuracy and performance of SOD models. Some models compute comprehensive salient detail features through multi-scale image information, while others utilize auxiliary edge or boundary information to improve segmentation quality. However, accurately detecting salient objects and segmenting their boundaries in complex natural and social scenes remains a challenging task.

[0003] According to the human visual spatial frequency model, an image can be decomposed into high spatial frequency ("high frequency") components and low spatial frequency ("low frequency") components, and the original image can be recovered from both. High frequency information refers to regions in the image where pixel values ​​change drastically, commonly found in the texture and edges of objects, while low frequency information refers to regions in the image where changes are relatively slow, describing the overall shape and structure. Therefore, this invention proposes a saliency detection and segmentation method based on image frequency decomposition. This method follows the U-Net framework to construct a new Transformer-based SOD model, named TFGNet. TFGNet employs a parallel dual-branch high- and low-frequency parallel decoder, and in each branch, a feature enhancement module is used to optimize and aggregate multi-scale feature images. Finally, the full-band saliency prediction result is constructed by fusing the optimized high-frequency and low-frequency features.

[0004] Unlike existing SOD models based on edge-aware / dual-branch decoding structures, the network model structure designed in this invention strictly adheres to the concept of high- and low-frequency decomposition and synthesis of images. It learns high-frequency (boundary details) and low-frequency (internal body regions) saliency features separately, rather than learning high-frequency (edge) and overall region saliency features as in other dual-branch SOD models. In this method, no information exchange between high- and low-frequency features is involved during the high-frequency and low-frequency saliency feature learning process. This design minimizes the potential inaccuracies in target region boundary and localization predictions caused by erroneous high-frequency and low-frequency information communication. Compared to the patent "A Saliency Detection Method Based on Boundary Enhancement," the backbone network (encoder), feature optimization (decoder) module, and loss function of the feature learning model in this invention are all different. The model in this invention employs a dual-branch decoder structure and defines the boundary as high-frequency information. During the decoding stage, feature optimization is performed not only on high-frequency information but also on low-frequency information in another branch. While the MENet model proposed in the paper "Pixels, regions, and objects: Multiple enhancement for salient object detection" (CVPR 2023) also employs a dual-branch structure, the decoder module in each branch of this invention uses a multi-scale frequency feature enhancement strategy combining pixel-level feature aggregation and a Transformer decoder, whereas the paper only uses a pixel-level multi-scale feature optimization strategy. This invention also eliminates the need for multi-stage iterative enhancement training of features and intermediate-level information exchange between high-frequency and low-frequency features as described in the paper. Furthermore, the backbone of the network model in this invention uses a Transformer network, while the paper uses a ResNet network. Experiments on public databases demonstrate that the algorithm in this invention (TFGNet) is more accurate than MENet. Summary of the Invention

[0005] Accurate and robust salient object detection and segmentation remain a significant challenge in complex and chaotic natural or social scenarios. To address this, this invention proposes a salient object detection and segmentation method based on image frequency decomposition (EFD). This method primarily employs a Transformer-based SOD model (TFGNet). TFGNet uses a backbone network for initial image encoding. Then, in the decoding part, it strictly follows the image frequency decomposition and synthesis mechanism, employing a dual-branch feature parallel learning structure to simultaneously learn and optimize high-frequency boundary details and low-frequency internal region features of salient objects. At the core of each branch, a multi-scale frequency feature enhancement module is designed to optimize frequency features. Furthermore, a novel loss function based on pixel grayscale statistical similarity is proposed, which, combined with BCE and IoU loss functions, further improves the overall accuracy and performance of the model. Evaluations on five widely used SOD datasets show that this method achieves state-of-the-art performance compared to existing methods.

[0006] The technical solution adopted in this invention is as follows:

[0007] A salient target detection and segmentation method based on image frequency decomposition includes the following steps:

[0008] Step 1: Multi-scale feature representation of images pre-trained based on backbone network (encoder).

[0009] The original image dataset is: I = {I} i ∈R W×H×C ,i=1,…,N}, where W, H and C are the width, height and number of channels of the image, and N is the number of training samples.

[0010] The backbone network transforms image data samples into M multi-scale feature maps: Among them W j H j and C j These are feature maps B. j Width, height, and number of channels.

[0011] Step 2: Ground-Truth Map (GT map) Frequency Decomposition. Since the ground-truth map is usually a binary image or a grayscale image (represented by Y, where Y∈R),... W×H×1 The high-frequency components of the foreground represent the boundaries of the salient region. Therefore, the high-frequency information in Y can be extracted using the edge detection operator. The low-frequency information represents the foreground interior region excluding the boundaries in the ground truth image. Thus, we have:

[0012] Y = Y H +Y L (1)

[0013] Where Y HY represents the high-frequency components in the truth graph. L This represents the portion of the truth map Y after removing high-frequency components.

[0014] Step 3: The decoder simultaneously optimizes the multi-scale feature map B obtained in Step 1 using both the high-frequency and low-frequency branches. Each branch has a consistent basic structure, optimized by a multi-scale frequency feature enhancement module. In the high-frequency branch, the multi-scale frequency feature enhancement module is optimized using the high-frequency ground truth map Y decomposed in Step 2. H Supervised learning is used to enhance edge features. However, the multi-scale frequency feature enhancement module for low-frequency branches employs unsupervised adaptive learning.

[0015] The multi-scale frequency feature enhancement module consists of a pixel-level feature aggregation enhancement module and a Transformer decoder. The calculation process of the multi-scale frequency feature enhancement module in the high-frequency and low-frequency branches is given below.

[0016] (1) High-frequency branches:

[0017] Pixel-level feature aggregation and enhancement module: First, the number of channels of all features is compressed to a uniform value C' through [1×1] and [3×3] convolutions. Then, the feature map B at the j=Mth feature map is processed. M Starting from the j=1th feature map B1, the aggregated feature map is obtained through upsampling, attention mechanism, and convolution operation.

[0018]

[0019] in

[0020]

[0021] In the formula: UP() is the upsampling operation, Atten() is the attention module, Conv1() is the [1×1] convolution operation, and Conv3() is the [3×3] convolution operation. The middle pixel value is set to 0, symbol and ∑ represents the pixel multiplication and addition operations at the corresponding positions in the image, where ∑ represents the pixel addition operation.

[0022] Transformer decoder: Input is feature map First, the number of channels of the input features is compressed to C' using [1×1] and [3×3] convolutions. Then, the output features are produced using a traditional Transformer decoder.

[0023] Finally, optimized high-frequency saliency feature maps are obtained through pixel multiplication operations.

[0024]

[0025] (2) Low-frequency branch:

[0026] Pixel-level feature aggregation and enhancement module: First, it compresses the number of channels of all features to a uniform value: C′ through [1×1] and [3×3] convolutions, and then starts from the j=Mth feature map B. M Starting from the j=1th feature map B1, the aggregation of low-frequency feature maps is obtained through upsampling, attention mechanism, convolution and pixel multiplication operations.

[0027]

[0028] in

[0029]

[0030] In the formula Set the middle pixel value to 0.

[0031] Transformer decoder: Input is The smallest mesoscale feature map. First, the number of channels of the input feature is compressed to C' using [1×1] and [3×3] convolutions; then, a traditional Transformer decoder is used to compute the feature map, and the output is the smallest mesoscale feature map.

[0032] Finally, an optimized low-frequency saliency feature map is obtained through pixel multiplication.

[0033]

[0034] Step 4: Combine the high- and low-frequency salient features into full-band salient features, and perform a linear transformation (Linear()) to output the prediction graph S∈R. W×H×1 , as in formula (8).

[0035] S = Linear(F) H F L (8)

[0036] Step 5: Calculate the loss function.

[0037] Histogram dissimilarity terms are introduced into the loss function to learn the global pixel intensity frequency distribution of salient objects. A histogram is a first-order data statistic representing the global signal intensity distribution. The histogram loss function L... Hist The definition is as follows:

[0038]

[0039] Among them, H s (g) represents the number of pixels at each gray level in the histogram of the prediction image S, H Y (g) represents the number of pixels at each gray level in the histogram of the true image Y, N. bin This represents the total number of gray levels.

[0040] Since histograms do not contain information about the spatial relationships between pixels in the capped image, when the predicted and labeled images have different shapes, their histograms may be the same, resulting in zero histogram loss and erroneous results. In this case, it is necessary to compensate by combining the precise pixel correspondence information and structural information provided by loss functions such as BCE and IoU. Therefore, this method uses a hybrid loss function L (as shown in formula (10)) to provide a comprehensive measure for the model.

[0041]

[0042] Where, α i (i = 1, ..., 4) are the weighting coefficients. It is the BCE loss function, which measures the high-frequency prediction graph F. H With the high-frequency component Y of the truth map H The similarity between them These are the BCE loss function, IoU loss function, and histogram loss function, which respectively measure the similarity of pixel gray values, pixel structure similarity, and pixel gray value statistical similarity between corresponding positions in the full-band predicted image S and the ground truth image Y.

[0043] The beneficial effects of this invention are as follows: Based on image frequency decomposition and synthesis mechanisms, this invention designs a deep learning-based saliency detection and segmentation network model. This invention can effectively handle problems such as inaccurate salient target localization and unclear boundaries caused by the mixing of high and low frequency image information in complex background environments, and has strong versatility and robustness. Attached Figure Description

[0044] Figure 1 This is a flowchart illustrating the present invention.

[0045] Figure 2 This is a schematic diagram comparing the average of five metrics of this invention with those of other models across five datasets.

[0046] Figure 3 This is a comparison chart of the visualization detection results of this invention and other models in various scenarios. Detailed Implementation

[0047] The specific implementation of the present invention will be further described below with reference to the accompanying drawings and technical solutions.

[0048] like Figure 1As shown in the figure, the specific steps of the salient target detection and segmentation method based on image frequency decomposition in this embodiment are as follows:

[0049] Step 1: SOD models based on deep learning neural networks typically utilize general, massive datasets for pre-training, followed by fine-tuning on domain-specific datasets. This example uses the ImageNet dataset for pre-training and then the DUTS-TR dataset for fine-tuning. During training, data augmentation is achieved through horizontal flipping and random cropping.

[0050] The model defined in this method is TFGNet, and in this embodiment, the Transformer-based SwinV2 network is used as the backbone. SwinV2 has three configurations: Large384, Base384, and Base256. Correspondingly, this method sets up three network models: TFGNet-L384, TFGNet-B384, and TFGNet-B256, based on these three configurations. TFGNet-L384 processes input image sizes I∈R. 384×384×3 TFGNet-B384 processes input image sizes I∈R 384×384×3 TFGNet-B256 processes input image sizes I∈R 256×256×3 .

[0051] The model was trained using stochastic gradient descent (SGD), with the maximum learning rate of the backbone network set to 0.0001 and the others to 0.001. Momentum decay was set to 0.9, weight decay to 0.0001, and the batch size to 12.

[0052] Step 2: Train the backbone network to obtain M=4 feature maps: B1, B2, B3, B4, and perform high-frequency and low-frequency feature learning. Let C'=256. The high-frequency component Y of the ground truth map... H The Robert edge detection operator is used for calculation. Y is used in the high-frequency branch. H Supervised prediction (i.e., the high-frequency prediction feature map F in formula (10)) H With Y H loss Low-frequency branches, without supervision, employ adaptive learning. The resulting high-frequency saliency feature map F... H And low-frequency saliency features into the F graph L Line fusion yields a full-band saliency feature map, which is then linearly transformed in the integrator to obtain the image I∈R. W×H×C Prediction maps S∈R of the same size and with 1 channel W×H×1 (As shown in Equation (8)). The difference between the predicted map S and the ground truth map Y is given by Equation (10). and The weights of each loss function in formula (10) are set as follows: α1 = 0.5, α2 = 0.3, α3 = 0.1, α4 = 0.1.

[0053] Step 3: Testing.

[0054] Test databases: Five SOD benchmark datasets were used for evaluation: DUTS-TE, DUT-OMRON, HKU-IS, Pascal-S, and ECSSD.

[0055] Evaluation metrics: MAE and max F-measure were used. The mean F-measure (mF), E-measure (Em), and S-measure (Sm) are some commonly used evaluation metrics. Among them, a lower MAE value is better, while higher values ​​for the other four metrics are better.

[0056] Test results: see Figure 2 and Figure 3 .

[0057] Figure 2This paper presents a comparison between the accuracy of the TFGNet (TFGNet-L384, TFGNet-B384, TFGNet-B256) model in this method and the average of the five metrics of the six SOD models on five datasets. The comparison algorithms include: the ICON-S and ICON-P models in the paper "Salient object detection via integrity learning" (TPAMI 2023); the SelfReformer model in the paper "Self-Refined Network with Transformer for Salient Object Detection" (arXiv preprint 2022); the EBMG model in the paper "Learning generative vision transformer with energy-based latent space for saliency prediction" (Advances in Neural Information Processing Systems 2021); the MENet model in the paper "Pixels, Regions, and Objects: Multiple Enhancement for Salient Object Detection" (CVPR 2023); and the AADFNet model in the paper "Aggregating attentional dilated features for salient object detection" (TCSVT 2020).

[0058] from Figure 2 The comparison results show that TFGNet-L384, TFGNet-B384, and TFGNet-B256 perform well on multiple datasets, with TFGNet-L384 being the best in all metrics.

[0059] Figure 3 The invention demonstrates the models FGNet (TFGNet-L384, TFGNet-B384, TFGNet-B256) and... Figure 2 Visual comparison of detection results of other models in various scenarios.

[0060] from Figure 3As can be seen, the TFGNet model of this invention is more accurate in detecting salient objects and more detailed in edge segmentation than other models in a variety of complex backgrounds, and it is also more robust. In particular, TFGNet-L384 can robustly achieve the best detection results.

Claims

1. A salient target detection and segmentation method based on image frequency decomposition, characterized in that, Includes the following steps: Step 1: Multi-scale feature representation of images pre-trained on the backbone network; The original image dataset is: I = {I} i ∈R W×H×C ,i=1,…,N}, where W, H and C are the width, height and number of channels of the image, and N is the number of training samples; The backbone network transforms image data samples into M multi-scale feature maps: Among them W j H j and C j These are feature maps B. j Width, height, and number of channels; Step 2: Frequency decomposition of the truth graph; the truth graph is represented by Y, and Y∈R W×H×1 The high-frequency components of the foreground represent the boundaries of the salient region. Therefore, the edge detection operator is used to extract the high-frequency information from Y. The low-frequency information represents the foreground interior region excluding the boundaries in the ground truth image. Thus, we have: Y / Y H +And L (1) Where Y H Y represents the high-frequency components in the truth graph. L This is the portion of the truth map Y after removing high-frequency components. Step 3: The decoder simultaneously optimizes the multi-scale feature map B obtained in Step 1 using two high-frequency branches and a low-frequency branch; each branch is optimized by a multi-scale frequency feature enhancement module; the multi-scale frequency feature enhancement module in the high-frequency branch is optimized using the high-frequency ground truth map Y decomposed in Step 2. H Supervised learning is used to enhance edge features; however, the multi-scale frequency feature enhancement module for low-frequency branches adopts an unsupervised adaptive learning approach. The multi-scale frequency feature enhancement module consists of a pixel-level feature aggregation enhancement module and a Transformer decoder; the calculation process of the multi-scale frequency feature enhancement module in the high-frequency branch and the low-frequency branch is as follows: (1) High-frequency branches: Pixel-level feature aggregation and enhancement module: First, the number of channels of all features is compressed to a uniform value C' through [1×1] and [3×3] convolutions. Then, the feature map B at the j=Mth feature map is processed. M Starting from the j=1th feature map B1, the aggregated feature map is obtained through upsampling, attention mechanism, and convolution operation. in In the formula: UP() is the upsampling operation, Atten() is the attention module, Conv1() is the [1×1] convolution operation, and Conv3() is the [3×3] convolution operation. The middle pixel value is set to 0, symbol and For pixel multiplication and addition operations at corresponding positions in the image, ∑ represents pixel addition operations; Transformer decoder: Input is feature map First, the number of channels of the input features is compressed to C' using [1×1] and [3×3] convolutions. Then, the output features are produced using a traditional Transformer decoder. Finally, optimized high-frequency saliency feature maps are obtained through pixel multiplication operations. (2) Low-frequency branch: Pixel-level feature aggregation and enhancement module: First, the number of channels of all features is compressed to a uniform value: C' through [1×1] and [3×3] convolutions. Then, from the j=Mth feature map B... M Starting from the j=1th feature map B1, the aggregation of low-frequency feature maps is obtained through upsampling, attention mechanism, convolution and pixel multiplication operations. in In the formula Set the middle pixel value to 0; Transformer decoder: Input is The smallest mesoscale feature map is obtained; firstly, the number of channels of the input feature is compressed to C' using [1×1] and [3×3] convolutions; then, a traditional Transformer decoder is used to compute the feature map, and the output is the feature map. Finally, an optimized low-frequency saliency feature map is obtained through pixel multiplication. Step 4: Combine the high- and low-frequency salient features into full-band salient features, and perform a linear transformation (Linear()) to output the prediction graph S∈R. W×H×1 , as in formula (8); S=Linear(F H ,F L ) (8) Step 5: Calculate the loss function; Histogram dissimilarity terms are introduced into the loss function to learn the global pixel intensity frequency distribution of salient objects; the histogram is a first-order data statistic representing the global signal intensity distribution; the histogram loss function L... Hist The definition is as follows: Among them, H s (g) represents the number of pixels at each gray level in the histogram of the prediction image S, H Y (g) represents the number of pixels at each gray level in the histogram of the true image Y, N. bin This represents the total number of gray levels. Since histograms do not contain information about the spatial relationships between pixels in the capped image, when the predicted image and the labeled image have different shapes, a hybrid loss function L is used to provide a comprehensive measure for the model, as shown in formula (10). Where, α i (i = 1, ..., 4) are the weighting coefficients; It is the BCE loss function, which measures the high-frequency prediction graph F. H With the high-frequency component Y of the truth map H The similarity between them These are the BCE loss function, IoU loss function, and histogram loss function, which respectively measure the similarity of pixel gray values, pixel structure similarity, and pixel gray value statistical similarity between corresponding positions in the full-band predicted image S and the ground truth image Y.

Citation Information

Patent Citations

  • High-resolution remote sensing image saliency target detection method combining frequency and edge learning

    CN114529829A

  • Image saliency region extraction method and device, equipment and storage medium

    CN114821116A