Gaze point assisted interactive object segmentation method, system, computer and storage medium based on context information control mechanism

By employing a context-aware gating modulation mechanism and a boundary recalibration module, the problems of semantic bias and error accumulation in gaze point map and bounding box segmentation are solved, achieving high-precision and robust interactive object segmentation that is suitable for complex scenarios and various bounding box interaction models.

CN122799115BActive Publication Date: 2026-11-27NANJING UNIV OF SCI & TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202611275941.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-08-21
Publication Date
2026-11-27
Estimated Expiration
2046-08-21

AI Technical Summary

Technical Problem

Existing interactive object segmentation methods suffer from semantic discrepancies and spatial misalignments between the gaze map and the user's true target intent when using gaze maps to assist bounding box segmentation. This leads to error accumulation, and existing feature fusion strategies cannot effectively isolate and suppress bias information, affecting segmentation accuracy and robustness.

Method used

By employing a context-aware gated modulation (CGM) mechanism and a boundary recalibration and refinement (BRR) module, combined with gaze map and bounding box information, cross-layer cascaded modulation and adaptive adjustment are performed to suppress noise accumulation, enhance boundary structure response, and construct a spatial consistency metric and backoff mechanism to achieve high-precision segmentation.

Benefits of technology

It significantly improves the accuracy and robustness of interactive object segmentation, effectively integrates gaze point and bounding box information in complex scenes, reduces error accumulation, and improves segmentation accuracy and stability. It is applicable to various bounding box interactive models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122799115B_ABST
    Figure CN122799115B_ABST
Patent Text Reader

Abstract

The application provides a gaze point auxiliary interactive object segmentation method and system based on a context information control mechanism, a computer and a storage medium, input image, boundary box and gaze point image, coarse segmentation and multi-scale features are obtained after preprocessing through an Initial U-Net; the similarity of the gaze point image and the coarse segmentation is calculated, and the gaze point image is globally adjusted; the image, the adjusted gaze point image and the coarse segmentation are input into an Enhancement U-Net, multi-scale features and encoder features are fused by using a gate convolution, a previous layer gate mask is used to generate a cross-layer guide signal to modulate a current layer feature, cross-layer cascade modulation is completed, boundary recalibration and enhancement are performed on the aggregated guide signal, and a fine segmentation result is output; a self-adaptive fallback mechanism is triggered based on a similarity threshold value, and coarse segmentation is used to replace external candidates. The application alleviates the coarse feature noise and gaze point semantic deviation problem, and improves the boundary precision and segmentation robustness in a complex scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of image segmentation, specifically relating to a gaze-assisted interactive object segmentation method, system, computer, and storage medium based on a context information control mechanism. Background Technology

[0002] Image segmentation, a fundamental task in computer vision, aims to classify pixels in an input image to accurately distinguish target and background regions. It is now widely used in autonomous driving, medical image analysis, intelligent image editing, and industrial visual inspection. Interactive object segmentation, an important research direction in image segmentation, guides the model to generate segmentation masks for target objects by introducing user-provided prior interactive information (such as clicks, lines, and bounding boxes). Compared to fully automatic segmentation methods, interactive object segmentation effectively combines human visual judgment with model computational capabilities, offering greater flexibility and segmentation accuracy in complex scenes. It also significantly reduces the human cost of large-scale image annotation, possessing significant theoretical and engineering application value.

[0003] Currently, existing interactive object segmentation methods mainly employ interaction methods such as click, line drawing, and bounding boxes. While click interaction is simple to operate, it provides limited spatial prior information in a single click, typically requiring multiple rounds of user interaction to gradually correct the segmentation results, resulting in low interaction efficiency. Line drawing interaction provides richer target contour information, but it demands high user precision, involves a complex drawing process, and incurs significant time costs, hindering practical application. In contrast, bounding box interaction only requires the user to define the boundary range of the target object, simultaneously providing multiple spatial prior information such as target location, scale, and regional constraints. It combines convenient interaction with rich information, and has become one of the important research directions in the field of interactive object segmentation.

[0004] On the other hand, before performing bounding box interaction operations, users typically visually browse the target image, focusing their attention on the target region to be segmented. Therefore, the user's gaze map can reflect their potential segmentation intentions to some extent and can serve as an effective auxiliary interaction signal to enhance target localization and region recognition capabilities. If the gaze map and bounding box interaction information can be synergistically fused, it is expected to further improve the accuracy and robustness of interactive object segmentation.

[0005] However, in practical applications, accurate gaze maps typically rely on dedicated eye-tracking devices for acquisition. These devices are costly and often require complex deployment and calibration for different users and environments, limiting their widespread application in large-scale real-world scenarios. To address these issues, existing technologies attempt to estimate user visual attention distribution using gaze prediction models or saliency detection models to generate alternative gaze maps.

[0006] However, most existing gaze prediction models are trained based on the saliency assumption in natural scenes and the targetless free gaze mechanism. Their prediction results mainly reflect visually salient regions in the image, rather than the user's true target intent in a specific interactive task. In interactive object segmentation tasks, users usually have a clear task orientation, and their focus target is not necessarily a salient object in the image. Therefore, there is often a large semantic deviation and spatial misalignment between the gaze map predicted by the model and the user's true target region.

[0007] When biased gaze maps are directly used to assist bounding box segmentation, additional structural noise and background interference are easily introduced. More significantly, existing segmentation networks typically employ simple channel concatenation or conventional attention mechanisms for feature fusion when processing the aforementioned multimodal inputs (images, bounding boxes, gaze points). However, such simple fusion strategies cannot effectively isolate and suppress biased information, easily leading to the propagation of erroneous activation responses deep within the network, resulting in error accumulation. Therefore, how to effectively evaluate and correct intent bias in predicted gaze points while providing explicit spatial constraints based on bounding box interactions, overcoming the error accumulation problem in the feature fusion process, and enhancing the high-frequency structural responses of target boundaries to achieve high-precision, highly robust interactive object segmentation has become a key technical problem urgently needing to be solved in this field. Summary of the Invention

[0008] The purpose of this invention is to provide a gaze-assisted interactive object segmentation method, system, computer, and storage medium based on a context information control mechanism.

[0009] The technical solution to achieve the purpose of this invention is: a gaze-assisted interactive object segmentation method based on a context information control mechanism, the steps of which are as follows:

[0010] Step 1: Obtain the target image containing the segmented objects. Extract the bounding boxes of the segmented objects and convert them into binary bounding box maps. ; Obtain the gaze map By erasing External gaze map, output preprocessed gaze map ;

[0011] Step 2, and Input the initial segmentation network Initial U-Net to obtain coarse segmentation results. Features of each layer encoder in InitialU-Net and the highest layer features of the Initial U-Net raw decoder ;in Indicates network hierarchy index, ;

[0012] Step 3, Calculation and Similarity score and utilize right Perform global adaptive adjustment and output the adjusted gaze map. ;

[0013] Step 4, , , After channel-level concatenation, the signal is input to the Enhancement U-Net, a segmentation network. Cross-layer cascaded modulation is then performed by the CGM modules at each layer. In layer 1, the following is used: Features of the first layer Initial U-Net encoder Modulation is achieved through scalar multiplication. Starting from the second layer, the cross-channel guide signal output from the previous layer is used. and Element-wise multiplication is performed for cross-channel modulation to obtain the modulated encoder features. ; then, Encoder features with Enhancement U-Net The mixture is then fused and gated convolutions are performed to obtain the gated mask. ;Will and Multiplying yields refined features. At the same time Two lightweight channel attention modules (ECAs) are fed into the signal to generate cross-channel guide signals for use by the next layer CGM. Cross-layer boot signal used by BRR After encoding, high-level semantic features are obtained by decoding layer by layer. ;

[0014] Step 5: Aggregate the cross-layer guiding signals output from each coding level. Calculate global channel priors ,use right Perform channel recalibration and fusion from Edge image extracted Dynamic spatial gating modulation and boundary enhancement are performed, and the final boundary enhancement features are output through a neighborhood attention mechanism. ;

[0015] Step 6, Fusion and The final refined segmentation result is output through the neighborhood attention mechanism. ;

[0016] Step 7: When receiving external candidate segmentation results, calculate the external candidate segmentation results and... Similarity score ;when When the value falls below a preset threshold, an adaptive backoff mechanism is triggered. The external candidate segmentation result is used as the input to the refinement segmentation network; otherwise, the external candidate segmentation result is still used as the input to the refinement segmentation network.

[0017] Furthermore, step 4 includes:

[0018] Step 4-1: For different network layers Features of the encoders at each layer of Initial U-Net Pre-modulation is performed to suppress low-confidence noise: when When, input and Similarity score Features of the first layer Initial U-Net encoder Perform scalar modulation to obtain the corresponding modulated encoder features. ;when When entering the gating mask of the previous layer... The lightweight channel attention module (ECA) outputs a one-dimensional cross-channel guide signal for use by the CGM. and cross-layer boot signals used by BRR Cross-channel guidance signal and Residual channel reweighting is performed to obtain the corresponding modulated encoder features. The calculation formula is as follows:

[0019] ;

[0020] in, represents element-wise multiplication operation, and ECA represents lightweight channel attention mechanism operation, which suppresses irrelevant activations through cross-channel adaptive reweighting;

[0021] Step 4-2: [The text appears to be incomplete and contains several grammatical errors. A more accurate translation would require the full context.] Encoder features with Enhancement U-Net After concatenating the channel dimensions, the input is gated convolution: The specific steps of gated convolution are as follows: the concatenated features are mapped to a unified channel dimension through an internal feature fusion convolution layer to obtain intermediate fused features; then, the intermediate fused features are filled with reflection and input into the gated convolution, which is normalized to the [0, 1] interval by the Sigmoid activation function, and the current layer gate mask is output. ,in These represent the height, width, and number of channels of the layer, respectively, and the calculation formulas are as follows:

[0022] ;

[0023] in, This indicates a gated convolution operation. This indicates a channel splicing operation;

[0024] Step 4-3: Using a gating mask Encoder features after ELU nonlinear activation Element-wise spatial weighting is performed to obtain optimized and refined features. The calculation formula is as follows:

[0025] ;

[0026] Subsequently, Perform downsampling to obtain the features of the next layer encoder. .

[0027] Furthermore, the internal structure and calculation process of the lightweight channel attention module ECA are as follows:

[0028] Assuming input features The shape is Where H, W, and C represent height, width, and number of channels, respectively. After entering the ECA module, it is first compressed along the spatial dimension using adaptive global average pooling, retaining only the global response intensity of each channel, resulting in a length of... A one-dimensional channel vector, then input to the convolution kernel of size . The one-dimensional convolutional layer performs weighted interactions between each channel and several of its neighboring channels, incorporating information from neighboring channels without changing the vector length, thus obtaining the interacted features. Among them, the kernel size Determined by the channel dimension, the calculation formula is as follows:

[0029] ;

[0030] ;

[0031] Where, in the formula This indicates rounding down, ensuring parity adjustment. For odd numbers, the scaling factor is The hierarchical bias parameter is The current network has 1 layer. Indicates scalar multiplication; The channel values ​​are then normalized using the Sigmoid activation function to obtain the channel attention weights that characterize the importance of each channel, thus yielding the one-dimensional cross-channel guidance signal. .

[0032] Furthermore, step 5 specifically includes:

[0033] Step 5-1: Aggregate the cross-layer guiding signals output from each coding level ,Will After concatenation along the channel dimension, the data is input into a multilayer perceptron (MLP) for nonlinear feature mapping. The data is then normalized using a sigmoid activation function, and a global channel prior is output. The calculation formula is as follows:

[0034] ;

[0035] Step 5-2: Use global channel priors Features of the highest layer of the Initial U-Net raw decoder Channel-level reweighting is performed, and by filtering irrelevant background semantic responses and enhancing boundary-related channels, recalibrated high-level features are output. The calculation formula is as follows:

[0036] ;

[0037] Step 5-3: From the coarse segmentation results Edge image extracted As an explicit spatial structure prior; With recalibration of high-level features After concatenating the channel dimensions, the input is fed into a gated convolution for dynamic feature extraction, resulting in a spatial gated mask. Spatial gating mask and Perform element-wise modulation to output initial boundary enhancement features. The calculation formula is as follows:

[0038] ;

[0039] in, Indicates the Sigmoid activation function; Step 5-4: Enhance the initial boundary features The input is fed into the neighborhood attention NATTEN module to extract fine-grained local spatial structure dependencies, achieving local structure enhancement of high-frequency boundaries; the local dependency features are then fused with... Perform residual connection combination to output the final boundary enhancement feature. The calculation formula is as follows:

[0040] ;

[0041] Here, NATTEN represents the neighborhood attention mechanism operation.

[0042] Furthermore, step 6 specifically includes:

[0043] Step 6-1: Enhance the final boundary features With high-level semantic features After concatenating the channels, the input is fed into the neighborhood attention NATTEN module, which outputs deeply refined features. The calculation formula is as follows:

[0044] ;

[0045] Step 6-2: Refine the features in depth With high-level semantic features Element-wise addition and fusion are performed, followed by convolutional operations for feature integration and channel dimensionality reduction. The input is then fed into the segmentation prediction head and subjected to a sigmoid activation function for pixel-level foreground probability mapping, outputting the final refined segmentation result. The calculation formula is as follows:

[0046] .

[0047] Furthermore, the adaptive rollback mechanism in step 7 specifically includes:

[0048] Calculate the similarity score between the external candidate segmentation results generated by the external model and the adjusted fixation map. , and preset threshold Comparison: If Then, the coarse segmentation result generated by the Initial U-Net is calculated. Similarity score between the adjusted fixation map and the fixation map ,when Discard external candidate segmentation results generated by the external model and select... The final coarse segmentation benchmark is used as input to refine the segmentation network Enhancement U-Net; otherwise, the external candidate segmentation results generated by the external model are still used as the initial segmentation benchmark input to the refinement network.

[0049] A gaze-assisted interactive object segmentation system based on a context information control mechanism includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the gaze-assisted interactive object segmentation method based on a context information control mechanism.

[0050] A computer device includes a memory and a processor, the memory being used to store a computer program; the processor being used to execute the computer program to implement the aforementioned gaze-assisted interactive object segmentation method based on a context information control mechanism.

[0051] A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, it implements the aforementioned gaze-assisted interactive object segmentation method based on a context information control mechanism.

[0052] Compared with the prior art, the significant advantages of this invention are:

[0053] 1) A context-aware gated modulation mechanism (CGM) is proposed. By hierarchically cascading gated signals, channel-space joint modulation is achieved, which significantly alleviates the semantic inconsistency between coarse features and gaze point features and suppresses noise accumulation.

[0054] 2) Proposes boundary recalibration and refinement of BRR, which explicitly enhances edge structures under the global guidance of CGM, accurately restores target boundaries, and solves the boundary blurring problem caused by gaze point guidance.

[0055] 3) Construct a spatial consistency metric and a fixed threshold backoff mechanism to automatically degrade to a stable path when the initial segmentation is seriously flawed, which greatly improves the robustness of the system.

[0056] 4) It can be used as a general post-optimization framework with plug and play, and is compatible with various segmentation models based on bounding box interaction such as SAM and IOG, which significantly improves its performance in loose boxes and complex backgrounds.

[0057] 5) Achieves a better error rate on public datasets, with significantly better boundary clarity, region integrity, and anti-interference ability than existing methods. Attached Figure Description

[0058] Figure 1 This is a flowchart of the image segmentation method of the present invention.

[0059] Figure 2 This is a schematic diagram of the interactive image segmentation model of the present invention.

[0060] Figure 3 This is a schematic diagram of the specific module structure of the interactive image segmentation model of the present invention.

[0061] Figure 4 This is an example of the effect of CIC-Net in an embodiment of the present invention.

[0062] Figure 5 This is a comparison diagram of the segmentation results of SAM and SAM+CIC-Net in the embodiments of the present invention.

[0063] Figure 6 This is a comparison diagram of the segmentation results of IOG and IOG+CIC-Net in the embodiments of the present invention. Detailed Implementation

[0064] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0065] Combination Figure 1 and Figure 2 This invention discloses a gaze-assisted interactive object segmentation method based on a context-aware control mechanism. By introducing a gaze consistency correction mechanism, a context-aware gating modulation mechanism, and a boundary recalibration and refinement module, it achieves effective collaborative fusion of bounding box information and gaze prior, thereby improving the accuracy and stability of interactive object segmentation in complex scenes. The steps are as follows:

[0066] Step 1: Obtain the target image containing the segmented objects. Extract the bounding boxes of the segmented objects and convert them into binary bounding box maps. ; Obtain the gaze map By erasing the boundary map External gaze map, output preprocessed gaze map ;

[0067] Step 1-1: Obtain the target image containing the segmented object. Extract the bounding boxes of the segmented objects and convert them into binary bounding box maps. The specific method is as follows:

[0068] As one implementation method, the bounding box takes the form of a rectangle, first in the target image. Draw a rectangle to mark the target object, and record the coordinates of the bottom left corner of the rectangle. ) and the coordinates of the upper right corner ( Then, the information from the rectangle is converted into a binary bounding box diagram. The calculation formula is as follows:

[0069]

[0070] In this case, the pixel value inside the bounding box is set to 1, and the pixel value outside the bounding box is set to 0.

[0071] Step 1-2: Obtain the fixation map Remove the boundary map External gaze points, output preprocessed gaze point map ;

[0072] The target image containing the segmented object By inputting a trained gaze prediction model, TranSalNet, into its CNN encoder, Transformer encoder, and CNN decoder, a gaze map can be obtained. ;

[0073] fixation point map By using an element-wise masking operation to remove gaze points outside the frame, a preprocessed gaze point map is obtained. The calculation formula is as follows:

[0074]

[0075] Step 2, and Input the initial segmentation network Initial U-Net to obtain coarse segmentation results. Features of each layer encoder in InitialU-Net And the highest-level features of the original decoder used by Initial U-Net to feed into the segmentation head. ;in Indicates network hierarchy index, The details are as follows:

[0076] Step 2-1: Concatenate the input along the channel dimension and Generate the input tensor of Initial U-Net (Example size is) The calculation formula is as follows:

[0077]

[0078] in, This indicates a channel splicing operation.

[0079] Step 2-2: Convert the input tensor The encoder of the Initial U-Net is input and passed through multiple layers of convolutional blocks and max pooling operations to extract the encoder output features. (Example channel numbers are 64, 128, 256, 512, and 512), the calculation formula is as follows:

[0080]

[0081] in, Indicates the encoder's first... The layers contain convolutional blocks, each block containing three... Convolutional layers and their corresponding ReLU activation layers; This indicates a max pooling operation.

[0082] Steps 2-3: Input the deepest features of the encoder into the decoder for layer-by-layer decoding to obtain the decoder features of the Initial U-Net. The process is as follows:

[0083]

[0084] in, and These represent the decoder's first... The convolutional blocks of the layer and their parameters, each convolutional block contains three... Convolutional layers and ReLU activation layers; Indicates an upsampling operation; This indicates a splicing operation along the channel dimension, which connects the first and second channels via a skip connection. Layer encoder features This is then fused with the upsampled decoded features. Finally, After a The convolutional layer reduces the number of channels to 1, and then a sigmoid operation is performed to obtain a coarse segmentation result. .

[0085] Step 3: Calculate the preprocessed gaze map Compared with coarse segmentation results Similarity score and utilize right Perform global adaptive adjustment and output the adjusted gaze map. .

[0086] Step 3-1: Calculate the preprocessed fixation map Compared with coarse segmentation results Similarity score The specific calculation formula is as follows:

[0087]

[0088] in, This represents the summation over all pixels. The expression uses... and The ratio of the intersection to the union measures the spatial consistency between the two. The larger the value, the higher the spatial overlap between the fixation point map and the coarse segmentation result.

[0089] Step 3-2: Utilize right Perform global adaptive adjustment and output the adjusted gaze map. :

[0090]

[0091] when At lower levels, Suppressed; in extreme cases, when When it is zero, The value will be set to zero, the segmentation network will depend entirely on the input box information, and the output will be an adjusted gaze map. .

[0092] Step 4, , , The input is connected to the Enhancement U-Net at the channel dimension, and cross-layer cascaded modulation is performed by the CGM modules at each layer. In the first layer, using... and Modulation is achieved through scalar multiplication; starting from layer 2, the cross-channel guide signal output from the previous layer is used. and Element-wise multiplication is performed for cross-channel modulation to obtain the modulated encoder features. Subsequently, Encoder features with Enhancement U-Net The mixture is then fused and gated convolutions are performed to obtain the gated mask. ; and Multiplying yields refined features. At the same time The signal is fed into a lightweight channel attention module (ECA) to generate a cross-channel guide signal for use by the next layer CGM. Cross-layer boot signal used by BRR After encoding, high-level semantic features are obtained by decoding layer by layer. .

[0093] As attached Figure 2 and attached Figure 3 As shown, the core of this step lies in the context-aware gated modulation (CGM) module.

[0094] Step 4-1: [The text appears to be incomplete and contains several grammatical errors. A more accurate translation would require , , The input is connected to the Enhancement U-Net at the channel dimension, and cross-layer cascade modulation is completed by the CGM modules at each layer.

[0095] Step 4-1-1: Stitching along the channel dimension , and , obtain the input tensor (Example size is) );

[0096] Step 4-1-2: Convert the tensor Channel mapping is performed on the input convolutional layers of the Enhancement U-Net segmentation network. Output the encoder features of the first layer. The specific formula is as follows:

[0097]

[0098] in, and These represent the convolutional blocks and their parameters of the encoder in the Enhancement U-Net. Each convolutional block contains three... The convolutional layers and ReLU activation layers.

[0099] Step 4-2: On layer 1, use and Modulation is achieved through scalar multiplication; starting from layer 2, the cross-channel guide signal output from the previous layer is used. and Element-wise multiplication and cross-channel modulation are used to obtain the modulated encoder features. The specific steps are as follows:

[0100] when At that time, similarity scores were used. Encoder features of the first layer Initial U-Net Perform scalar modulation to obtain modulation characteristics.

[0101]

[0102] when At that time, using the first Cross-channel boot signal output by layer CGM , for the Layer encoder features Residual channel reweighting is performed to obtain modulation features.

[0103]

[0104] in, For the first The gated mask obtained by convolutional fusion of layer CGM; It is a one-dimensional channel vector; the constant 1 in the residual term is used to preserve the original features and avoid excessive suppression of encoder features in the early stage of modulation.

[0105] The internal structure and calculation process of the ECA module are as follows:

[0106] Assuming input features The shape is Where H, W, and C represent height, width, and number of channels, respectively. After entering the ECA module, it is first compressed along the spatial dimension using adaptive global average pooling, retaining only the global response intensity of each channel, resulting in a length of... A one-dimensional channel vector, then input to the convolution kernel of size . The one-dimensional convolutional layer performs weighted interactions between each channel and several of its neighboring channels, incorporating information from neighboring channels without changing the vector length, thus obtaining the interacted features. Among them, the kernel size Determined by the channel dimension, the calculation formula is as follows:

[0107]

[0108]

[0109] In the formula, ⌊ ⌋ represents rounding down, and parity adjustment is used to ensure... For odd numbers, the scaling factor is The hierarchical bias parameter is (The preset coefficient is 1), and the current number of network layers is l. The channel values ​​are then normalized using the Sigmoid activation function to obtain the channel attention weights that characterize the importance of each channel, thus yielding the one-dimensional cross-channel guidance signal. .

[0110] Step 4-3: Modulate the encoder features With Enhancement U-Net Encoder features of the layer By concatenating along the channel dimension and inputting the gated convolution, a gated mask is obtained. The calculation formula is as follows:

[0111]

[0112] in, This indicates a splicing operation along the channel dimension; Indicates a gated convolution operation; Normalize the convolution output to obtain the element-wise gated mask. .

[0113] Step 4-4: Place the first Layer refinement encoder features After ELU activation, and the gating mask Element-wise multiplication yields the optimized refined features. At the same time, Two lightweight channel attention modules (ECAs) are fed into the signal, each with independent learnable parameters, to generate cross-channel guiding signals for use in the next layer of CGM. Cross-layer boot signal used by BRR .in The calculation formula is as follows:

[0114]

[0115] In the formula, This represents the ELU activation function.

[0116] Steps 4-5: [The text abruptly ends here, likely due to an incomplete sentence or a formatting error. and After splicing, downsampling is performed to obtain the first... Encoder features of the layer The formula is as follows:

[0117]

[0118] in, and These represent the convolutional blocks and their parameters of the encoder in the Enhancement U-Net. Each convolutional block contains three... The convolutional layers and ReLU activation layers are then used. This process is repeated to complete feature extraction and cross-layer modulation across all five coding layers.

[0119] Steps 4-6: After the encoding process is complete, the Enhancement U-Net decoder performs layer-by-layer decoding to obtain high-level semantic features. During decoding, skip connections are used to refine the features by modulating the output of the previous layer of the decoder with the output of the CGM module after upsampling. The data is spliced ​​along the channel dimension and then extracted using convolutional blocks, as follows:

[0120]

[0121] in, and These represent the enhancement U-Net decoder's... The layers are convolutional blocks used for feature extraction and their parameters; each convolutional block contains three... Convolutional layers and ReLU activation layers; Indicates the decoder's first Features of the layer output; This indicates an upsampling operation.

[0122] Step 5: Aggregate the cross-layer guiding signals output from each coding level. Calculate global channel priors .use The highest-level features of the original decoder output from the first layer decoder of the Initial U-Net (Without CGM modulation) Channel recalibration was performed, and the results were fused from the coarse segmentation. Edge image extracted Dynamic spatial gating modulation and boundary enhancement are performed, and the final boundary enhancement features are output through a neighborhood attention mechanism. ;

[0123] As attached Figure 3 As shown in the Boundary Recalibration and Refinement (BRR) module, this step is as follows:

[0124] Step 5-1: Extract the cross-layer boot signals output by CGM at all five coding levels. ,Will The concatenation is performed along the channel dimension, resulting in a total of 1664 channels. These channels are then input into a Multilayer Perceptron (MLP) for non-linear feature mapping. The MLP operation involves first passing the data through the first layer... Convolution compresses the number of channels to 416 (i.e., 1 / 4 of the original number of channels), and then performs a non-linear mapping using the ReLU activation function; subsequently, it passes through a second layer. Convolution further compresses the number of channels to 32. Finally, normalization is performed using the Sigmoid activation function, outputting the global channel prior after multi-layer sensitivity aggregation. The calculation formula is as follows:

[0125]

[0126] Step 5-2: Use channel priors right Channel-level reweighting is performed, and by filtering irrelevant background semantic responses and enhancing boundary-related channels, recalibrated high-level features are output. The calculation formula is as follows:

[0127]

[0128] Step 5-3: From the coarse segmentation results Edge image extracted As an explicit spatial structure prior, this embodiment employs morphological dilation and erosion operations on the coarse segmentation results. Morphological dilation and erosion operations are performed separately, and the difference between the dilation and erosion results is calculated to extract the target edge image. ;

[0129] Will With recalibration of high-level features Channel-dimensional concatenation is performed, and the result is fed into a gated convolution for dynamic feature extraction to obtain a spatial gated mask. Spatial gating mask and recalibrated high-rise features Perform element-wise modulation to output initial boundary enhancement features. The calculation formula is as follows:

[0130]

[0131] Step 5-4: Enhance the initial boundary features Perform dimensional rearrangement, Convert to After formatting, input the neighborhood attention module. Local attention modeling is performed. In this embodiment, the local window size of the neighborhood attention module is set to 7, the number of attention heads is set to 4, and the hole coefficient is set to 1. The attention output features are then restored to... The format is then used to perform residual fusion with the input features, followed by... Convolutional layers integrate features, ultimately enhancing the boundary features. :

[0132]

[0133] in, This indicates the neighborhood attention calculation operation.

[0134] Step 6: Fuse final boundary enhancement features and The final refined segmentation result is output through the neighborhood attention mechanism. ;

[0135] Step 6-1: Enhance the final boundary features output from Step 5. With high-level semantic features Channel-dimensional concatenation is performed, and the concatenated features are input into the NATTEN neighborhood attention module. In this embodiment, the parameters of the neighborhood attention module are set as follows: local window size is 11, number of attention heads is 8, and hole coefficient is 2. The module computationally models and captures cross-modal global semantics and local edge interactions, achieving feature alignment between regional semantics and boundary structures, and outputting deeply refined features. The calculation formula is as follows:

[0136]

[0137] Step 6-2: Refine the features in depth With high-level semantic features Element-wise addition and fusion are performed, followed by feature integration and channel dimensionality reduction through convolution. Finally, the result is input into the segmentation prediction head and subjected to pixel-level foreground probability mapping using the Sigmoid activation function, outputting the final refined segmentation result. The calculation formula is as follows:

[0138]

[0139] Step 7: Adaptive rollback mechanism.

[0140] This step is an optional plug-in reliability assessment process, enabled only when this method receives candidate segmentation results generated by an external model. When this process is enabled, the following reliability judgment is performed before inputting the external candidate segmentation results into the Enhancement U-Net. Upon receiving external candidate segmentation results generated by an external model, the external candidate segmentation results and the adjusted gaze map are first calculated. The similarity score is denoted as This is used to characterize the degree of consistency between the segmentation results and the visual attention region. Then... With preset threshold (In the example) Compare using 0.1): If Then the calculation is performed by the initial segmentation network Initial U-Net. Compared with the adjusted fixation point map Similarity score between ,when The external candidate segmentation results generated by the external model are discarded, and the coarse segmentation result is automatically selected. The generated external candidate segmentation results are used as the final coarse segmentation benchmark and input into the Enhancement U-Net for processing; otherwise, the generated external candidate segmentation results are still used as the initial segmentation benchmark and input into the refinement network.

[0141] This invention also proposes a gaze-assisted interactive object segmentation system based on a context information control mechanism, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the gaze-assisted interactive object segmentation method based on a context information control mechanism.

[0142] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the aforementioned gaze-assisted interactive object segmentation method based on a context information control mechanism.

[0143] A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, it implements the aforementioned gaze-assisted interactive object segmentation method based on a context information control mechanism.

[0144] Example

[0145] To verify the effectiveness of the present invention, the following experimental design was conducted.

[0146] 1. Experimental setup

[0147] 1.1 Dataset

[0148] This embodiment uses the enhanced Pascal VOC dataset to train the model, which contains 10,582 training images and 1,449 validation images. During data preparation, each target instance in the image is treated as an independent training sample. To comprehensively evaluate interactive segmentation performance, this embodiment conducts public testing on three internationally recognized interactive segmentation benchmark datasets. The GrabCut50 dataset contains 50 benchmark images, and the bounding boxes provided by the official GrabCut50 dataset are used as input prompts during testing. The Berkeley dataset contains 96 benchmark images, covering 100 target object mask labels. The DAVIS dataset contains 50 high-resolution video sequences, totaling 3,440 frames with pixel-level precise annotations. To ensure objectivity and fairness in the evaluation, for both the Berkeley and DAVIS datasets, the minimum bounding rectangle of the ground truth labels is extracted as the benchmark input bounding box.

[0149] 1.2 Implementation Details

[0150] During the training phase, the minimum bounding rectangle of the target's true mask is first extracted, and random perturbations are added to generate simulated bounding boxes. All input images and tensors are uniformly resized to 320×320. Both the initial segmentation network and the refinement segmentation network use a pre-trained VGG16_bn as the feature extraction backbone. First, the Initial U-Net is independently pre-trained for 50 epochs; then, the parameters of the Initial U-Net are frozen, and the Enhancement U-Net is trained for 80 epochs. The learning rate is set to... During Initial U-Net training, the batch size was set to 8; during Enhancement U-Net training, the batch size was set to 2. In all experiments, [the batch size was] used. and The Adam optimizer is used for parameter updates. Furthermore, the decision threshold τ for the adaptive backoff mechanism is set to 0.1. The algorithm implementation of this invention is based on the PyTorch deep learning framework and uses a single NVIDIA GeForce RTX 4070 GPU to complete all training and testing.

[0151] 1.3 Evaluation Indicators

[0152] This invention uses error rate As a core quantitative evaluation metric, it is used to calculate the proportion of misclassified pixels within the total area of ​​the input bounding box. The calculation formula is as follows:

[0153]

[0154] in , These represent the predicted segmentation mask and the true mask, respectively. This indicates the area of ​​the input box. This represents the number of pixels in the corresponding region. The error rate considers not only the error itself but also the size of the input box. Compared to a bounding box that is very close to the target, a loosely bounding box typically contains more background noise, significantly increasing the difficulty of the segmentation task. Therefore, with the same number of misclassified pixels, a loosely bounding box yields a lower error rate, which more objectively and reasonably reflects the segmentation quality of the model under challenging interactive conditions. On benchmark datasets, the lower the average error rate, the better the overall accuracy and robustness of the segmentation method.

[0155] 2. Ablation test

[0156] To evaluate the effectiveness of the proposed components, ablation experiments were conducted on the GrabCut50, Berkeley, and DAVIS datasets. Quantitative results are evaluated using error rates, as shown in Table 1. First, the modulation mechanism was investigated. Compared to the baseline model, introducing standard gated convolutions without context-aware guidance (CIC-Net (no ECA)) actually led to a performance degradation; for example, on the GrabCut50 dataset, the error rate increased from 4.0 to 4.2. This indicates that simple gating operations are counterproductive without hierarchical context guidance. However, when the proposed context-aware gating modulation mechanism was introduced (without the BRR module, i.e., CIC-Net (no BRR)), the error rates on all datasets decreased significantly, dropping to 3.9, 7.2, and 10.3 on GrabCut50, Berkeley, and DAVIS, respectively. This demonstrates that cross-layer propagation of gating cues can more effectively modulate coarse features and effectively alleviate the problem of progressive error accumulation. Finally, integrating the BRR module (i.e., the complete CIC-Net model) further improved the segmentation results, achieving the best overall performance. For example, on the DAVIS dataset, the error rate was further reduced from 10.3 to 9.4. This shows that the structural refinement function provided by the BRR module effectively complements the context-aware gating modulation mechanism by restoring fine structural details and generating clear boundaries. Guided by the CGM-level signal, BRR effectively suppresses structural noise from coarse prior information, achieving simultaneous optimization of fine-grained boundary characterization and overall region consistency.

[0157] Table 1: Error rates (%) of different modules on the GrabCut50, Berkeley, and DAVIS datasets

[0158]

[0159] 3. Comparative Experiment

[0160] Table 2: Error rates (%) of different segmentation methods on the GrabCut50, Berkeley, and DAVIS datasets

[0161]

[0162] Table 2 comprehensively presents the results of the proposed CIC-Net on three public benchmark datasets (GrabCut50, Berkeley, and DAVIS), as well as the results of optimizing other advanced segmentation models as a general refinement module. Qualitative results are as follows: Figure 4As shown, the first column displays the estimated gaze map for the entire image, the second column shows the ground truth segmentation results, and the third column shows the segmentation results from CIC-Net. Quantitative results demonstrate that CIC-Net improves the prediction error rate of various baseline models, particularly exhibiting error correction capabilities when cue conditions are not precise enough. For example, when CIC-Net is integrated with the SAM model (SAM+CIC-Net), the error rates on the GrabCut50, Berkeley, and DAVIS datasets significantly decrease from 5.0, 5.3, and 8.0 to 2.5, 4.3, and 7.0, respectively. For the relatively small SAM_Efficient-s model, CIC-Net reduces its error rate on the GrabCut50 dataset from 5.1 to 2.7, almost halving the error rate. Furthermore, even for traditional models like IOG, which perform strongly in interactive segmentation, CIC-Net still provides stable gains. After integrating CIC-Net (IOG+CIC-Net), the model's error rates on the three datasets were further reduced from 4.4, 5.8, and 8.1 to 3.4, 4.7, and 7.6, respectively. The comparative data consistently demonstrate that CIC-Net is a versatile and model-independent refinement module that can effectively mitigate performance degradation and significantly improve structural accuracy even under significant cue noise.

[0163] Figure 5 This demonstrates a comparison of the segmentation results between SAM and SAM+CIC-Net. Figure 6 This demonstrates a comparison of segmentation results between IOG and IOG+CIC-Net. Figure 5 In comparison to the SAM baseline model, CIC-Net demonstrates superior region completion and contextual understanding capabilities. Given bounding box cues, SAM's predictions show significant region gaps, segmenting only the arms and head while missing the torso structure. However, after integrating CIC-Net, the model, guided by gaze point priors, recovers the complete torso contour. Similarly, Figure 6 This indicates that IOG exhibits significant undersegmentation when dealing with objects like tree canopies, which have highly irregular and fine-grained structures, retaining only the trunk and a very small portion of the branches. In contrast, IOG+CIC-Net fully benefits from rich guiding information and the boundary recalibration (BRR) mechanism, restoring the highly challenging tree canopy topology and significantly improving the segmentation precision.

[0164] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0165] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these modifications and improvements all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A gaze-assisted interactive object segmentation method based on a context information control mechanism, characterized in that, The steps are as follows: Step 1: Obtain the target image containing the segmented objects. Extract the bounding boxes of the segmented objects and convert them into binary bounding box maps. ; Obtain the gaze map By erasing External gaze map, output preprocessed gaze map ; Step 2, and Input the initial segmentation network Initial U-Net to obtain coarse segmentation results. Features of each layer encoder in Initial U-Net and the highest layer features of the Initial U-Net raw decoder ;in Indicates network hierarchy index, ; Step 3, Calculation and Similarity score and utilize right Perform global adaptive adjustment and output the adjusted gaze map. ; Step 4, , , After channel-level concatenation, the signal is input to the Enhancement U-Net, a segmentation network. Cross-layer cascaded modulation is then performed by the CGM modules at each layer. In layer 1, the following is used: Features of the first layer Initial U-Net encoder Modulation is achieved through scalar multiplication. Starting from the second layer, the cross-channel guide signal output from the previous layer is used. and Element-wise multiplication is performed for cross-channel modulation to obtain the modulated encoder features. ; then, Encoder features with Enhancement U-Net The mixture is then fused and gated convolutions are performed to obtain the gated mask. ;Will and Multiplying yields refined features. At the same time Two lightweight channel attention modules (ECAs) are fed into the signal to generate cross-channel guide signals for use by the next layer CGM. Cross-layer boot signal used by BRR After encoding, high-level semantic features are obtained by decoding layer by layer. ; Step 5: Aggregate the cross-layer guiding signals output from each coding level. Calculate global channel priors ,use right Perform channel recalibration and fusion from Edge image extracted Dynamic spatial gating modulation and boundary enhancement are performed, and the final boundary enhancement features are output through a neighborhood attention mechanism. ; Step 6, Fusion and The final refined segmentation result is output through the neighborhood attention mechanism. ; Step 7: When receiving external candidate segmentation results, calculate the external candidate segmentation results and... Similarity score ;when When the value falls below a preset threshold, an adaptive backoff mechanism is triggered. The external candidate segmentation result is used as the input to the refinement segmentation network; otherwise, the external candidate segmentation result is still used as the input to the refinement segmentation network.

2. The gaze-assisted interactive object segmentation method based on context information control mechanism according to claim 1, characterized in that, Step 4 includes: Step 4-1: For different network layers Features of the encoders at each layer of Initial U-Net Pre-modulation is performed to suppress low-confidence noise: when When, input and Similarity score Features of the first layer Initial U-Net encoder Perform scalar modulation to obtain the corresponding modulated encoder features. ;when When entering the gating mask of the previous layer... The lightweight channel attention module (ECA) outputs a one-dimensional cross-channel guide signal for use by the CGM. and cross-layer boot signals used by BRR Cross-channel guidance signal and Residual channel reweighting is performed to obtain the corresponding modulated encoder features. The calculation formula is as follows: ; in, represents element-wise multiplication operation, and ECA represents lightweight channel attention mechanism operation, which suppresses irrelevant activations through cross-channel adaptive reweighting; Step 4-2: [The text appears to be incomplete and contains several grammatical errors. A more accurate translation would require the full context.] Encoder features with Enhancement U-Net After concatenating the channel dimensions, the input is gated convolution: The specific steps of gated convolution are as follows: the concatenated features are mapped to a unified channel dimension through an internal feature fusion convolution layer to obtain intermediate fused features; then, the intermediate fused features are filled with reflection and input into the gated convolution, which is normalized to the [0, 1] interval by the Sigmoid activation function, and the current layer gate mask is output. The calculation formula is as follows: ; in, This indicates a gated convolution operation. This indicates a channel splicing operation; Step 4-3: Using a gating mask Encoder features after ELU nonlinear activation Element-wise spatial weighting is performed to obtain optimized and refined features. The calculation formula is as follows: ; Subsequently, Perform downsampling to obtain the features of the next layer encoder. .

3. The gaze-assisted interactive object segmentation method based on context information control mechanism according to claim 2, characterized in that, The internal structure and calculation process of the lightweight channel attention module ECA are as follows: Assuming input features The shape is Where H, W, and C represent height, width, and number of channels, respectively. After entering the ECA module, it is first compressed along the spatial dimension using adaptive global average pooling, retaining only the global response intensity of each channel, resulting in a length of... A one-dimensional channel vector, then input to the convolution kernel of size . The one-dimensional convolutional layer performs weighted interactions between each channel and several of its neighboring channels, incorporating information from neighboring channels without changing the vector length, thus obtaining the interacted features. Among them, the kernel size Determined by the channel dimension, the calculation formula is as follows: ; ; Where, in the formula This indicates rounding down, ensuring parity adjustment. For odd numbers, the scaling factor is The hierarchical bias parameter is The current network has 1 layer. Indicates scalar multiplication; The channel values ​​are then normalized using the Sigmoid activation function to obtain the channel attention weights that characterize the importance of each channel, thus yielding the one-dimensional cross-channel guidance signal. .

4. The gaze-assisted interactive object segmentation method based on context information control mechanism according to claim 3, characterized in that, Step 5 specifically includes: Step 5-1: Aggregate the cross-layer guiding signals output from each coding level ,Will After concatenation along the channel dimension, the data is input into a multilayer perceptron (MLP) for nonlinear feature mapping. The data is then normalized using a sigmoid activation function, and a global channel prior is output. The calculation formula is as follows: ; Step 5-2: Use global channel priors Features of the highest layer of the Initial U-Net raw decoder Channel-level reweighting is performed, and by filtering irrelevant background semantic responses and enhancing boundary-related channels, recalibrated high-level features are output. The calculation formula is as follows: ; Step 5-3: From the coarse segmentation results Edge image extracted As an explicit spatial structure prior; With recalibration of high-level features After concatenating the channel dimensions, the input is fed into a gated convolution for dynamic feature extraction, resulting in a spatial gated mask. Spatial gating mask and Perform element-wise modulation to output initial boundary enhancement features. The calculation formula is as follows: ; in, This represents the Sigmoid activation function; Step 5-4: Enhance the initial boundary features The input is fed into the neighborhood attention NATTEN module to extract fine-grained local spatial structure dependencies, achieving local structure enhancement of high-frequency boundaries; the local dependency features are then fused with... Perform residual connection combination to output the final boundary enhancement feature. The calculation formula is as follows: ; Here, NATTEN represents the neighborhood attention mechanism operation.

5. The gaze-assisted interactive object segmentation method based on context information control mechanism according to claim 4, characterized in that, Step 6 specifically includes: Step 6-1: Enhance the final boundary features With high-level semantic features After concatenating the channels, the input is fed into the neighborhood attention NATTEN module, which outputs deeply refined features. The calculation formula is as follows: ; Step 6-2: Refine the features in depth With high-level semantic features Element-wise addition and fusion are performed, followed by convolutional operations for feature integration and channel dimensionality reduction. The input is then fed into the segmentation prediction head and subjected to a sigmoid activation function for pixel-level foreground probability mapping, outputting the final refined segmentation result. The calculation formula is as follows: 。 6. The gaze-assisted interactive object segmentation method based on context information control mechanism according to claim 5, characterized in that, The adaptive rollback mechanism in step 7 is specifically as follows: Calculate the similarity score between the external candidate segmentation results generated by the external model and the adjusted fixation map. , and preset threshold Comparison: If Then, the coarse segmentation result generated by the Initial U-Net is calculated. Similarity score between the adjusted fixation map and the fixation map ,when Discard external candidate segmentation results generated by the external model and select... The final coarse segmentation benchmark is used as input to refine the segmentation network Enhancement U-Net; otherwise, the external candidate segmentation results generated by the external model are still used as the initial segmentation benchmark input to the refinement network.

7. A gaze-assisted interactive object segmentation system based on a context information control mechanism, characterized in that, It includes a memory and a processor, wherein the memory is used to store a computer program; and the processor is used to execute the computer program to implement the gaze-assisted interactive object segmentation method based on a context information control mechanism as described in any one of claims 1-6.

8. A computer device, characterized in that, It includes a memory and a processor, wherein the memory is used to store a computer program; and the processor is used to execute the computer program to implement the gaze-assisted interactive object segmentation method based on a context information control mechanism as described in any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, It stores a computer program, which, when executed by a processor, implements a gaze-assisted interactive object segmentation method based on a context information control mechanism as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Interactive object segmentation method based on bounding box input and fixation point assistance

    CN119380021A

  • Systems and methods for adaptive allocation and management of processing resources in data centers using dynamic attention-based graph neural networks

    US20260023642A1