Surgical triplets segmentation method and system with cross-scale feature enhancement and semantic decoupling

By employing wavelet domain cross-scale feature fusion and semantic decoupling, the problems of spectral aliasing and noise amplification in triplet identification during laparoscopic surgery were solved, the external context of the instruments was restored, the long-tail distribution was alleviated, and the accuracy of instrument mask boundaries and triplet classification was improved.

CN123181844APending Publication Date: 2026-11-27JIANGNAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611714694.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-11-02
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies for triplet recognition in laparoscopic surgery suffer from several problems, including cross-scale feature fusion leading to spectral aliasing and high-frequency noise amplification, unidirectional transmission of frequency information, mask cross-attention discarding of external instrument context, long-tail distribution, and lack of constraints on combination legality. These issues result in blurred instrument mask boundaries, inaccurate action and target point discrimination, and a tendency to output illegal combinations.

Method used

A surgical triplet segmentation method with cross-scale feature enhancement and semantic decoupling is adopted. Through wavelet domain cross-scale feature fusion, orthogonal wavelet decomposition, low-frequency semantic injection, noise gating, bidirectional gating modulation, semantic decoupling bi-branch query, and triplet soft adjacency graph convolution, the external context of the instrument is restored and the long-tail distribution is alleviated, and illegal combinations are suppressed.

Benefits of technology

It improved the quality of the instrument mask boundary, enhanced the accuracy of action and target discrimination, suppressed illegal combinations, and improved the accuracy and consistency of triplet classification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181844A_ABST
    Figure CN123181844A_ABST
Patent Text Reader

Abstract

The application discloses a surgery triplets segmentation method and system of cross-scale feature enhancement and semantic decoupling, and relates to the technical field of medical image processing. The method comprises the following steps: acquiring a surgery image to be processed, and extracting multi-scale features through a backbone network; performing orthogonal wavelet decomposition on shallow and deep features, and obtaining enhanced fusion features through low-frequency semantic injection, high-frequency noise gating, bidirectional gate modulation and wavelet domain upsampling; projecting the output after encoding and decoding into spatial path query and relationship path query, generating mask prediction and instrument category prediction through the spatial path, and enhancing the relationship path by using inverse mask external context and inverse attention shielding; obtaining triplets category prediction through soft adjacency graph convolution, instrument action target point auxiliary classification and combination legality constraint, and outputting instrument mask and corresponding triplets category. The application can improve mask boundary quality and classification accuracy, and relieve long-tail distribution and inhibit illegal combination.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of medical image processing technology, and in particular to a surgical triplet segmentation method and system that combines cross-scale feature enhancement and semantic decoupling. Background Technology

[0002] Automatic identification of "instrument-action-target" triples in laparoscopic surgery is fundamental for surgical workflow analysis, intraoperative navigation, and skill assessment. Existing techniques typically split triple identification into two sequential stages: instrument detection and action / target classification. These methods only output instrument bounding boxes, failing to provide pixel-level masks, and errors from the previous stage propagate to subsequent classification stages. Query-based instance segmentation frameworks, such as Mask2Former, treat each triple as an independent category, outputting both the instrument mask and triple category in a single forward pass, achieving higher accuracy than the aforementioned two-stage methods.

[0003] However, existing query-based instance segmentation frameworks still have the following shortcomings when applied to endoscopic surgical images: First, cross-scale feature fusion often employs bilinear interpolation or deconvolution upsampling, which is equivalent to non-ideal low-pass filtering in the frequency domain, easily producing high-frequency detail aliasing and artifacts, resulting in blurred boundaries of slender instrument structures; Second, existing methods indiscriminately enhance high-frequency components, while smoke, reflections, and motion blur in surgical images are also concentrated in the high frequencies, and direct enhancement amplifies noise, causing holes and burrs in the mask; Third, frequency fusion is mostly a unidirectional transfer from deep semantics to shallow details, lacking... The reverse pathway from shallow structure to deep semantics makes it difficult for classification branches to utilize boundary priors; fourth, the masked cross-attention mechanism forces queries to focus only on the interior of their own mask, shielding the interaction information between the device and surrounding tissues, while action and target discrimination often depend on this interaction information; fifth, the triplet categories exhibit an extremely long-tailed distribution, with few samples in the tail categories, and the long-tailed classification head leads to sparse tail gradients, making the model prone to degenerating into predicting only head combinations; sixth, the classification head scores each category independently, without modeling the feasibility of combinations of "device-action" and "action-target", easily outputting illegal combinations.

[0004] Therefore, there is an urgent need for a surgical triplet segmentation method and system that balances mask boundary quality and triplet classification accuracy, while mitigating long-tail distribution and suppressing illegal combinations. Summary of the Invention

[0005] To address these issues, this invention provides a surgical triplet segmentation method and system that combines cross-scale feature enhancement and semantic decoupling. This method solves the problems in existing technologies, such as the ease with which cross-scale feature fusion generates spectral aliasing and high-frequency noise amplification, unidirectional transmission of frequency information, mask cross-attention discarding of the instrument's external context, and the lack of constraints on the long-tail distribution of triplet categories and the legality of combinations. These problems lead to blurred instrument mask boundaries, inaccurate action and target point discrimination, and the easy output of illegal combinations.

[0006] To address the aforementioned technical problems, this invention provides a surgical triplet segmentation method that combines cross-scale feature enhancement and semantic decoupling. The surgical triplet includes instruments, actions, and target points, and comprises the following steps: S1. Acquire the surgical image to be processed; S2. The surgical image to be processed is subjected to feature extraction via a backbone network to obtain multi-layer, multi-scale features; S3. Perform wavelet domain cross-scale feature enhancement and fusion on the shallow and deep features in the multi-layer, multi-scale features: Perform orthogonal wavelet decomposition on the shallow and deep features respectively to obtain low-frequency sub-bands and directional high-frequency sub-bands, wherein the directional high-frequency sub-bands include horizontal high-frequency sub-bands, vertical high-frequency sub-bands, and diagonal high-frequency sub-bands; perform low-frequency semantic injection on the deep low-frequency sub-bands and shallow low-frequency sub-bands to obtain enhanced low-frequency sub-bands; based on the enhanced low-frequency sub-bands, and at least one of the horizontal high-frequency sub-bands and the vertical high-frequency sub-bands... The method involves noise gating of the diagonal high-frequency subband, which is the highest frequency subband; bidirectional gating modulation of the enhanced low-frequency subband with the horizontal and vertical high-frequency subbands; inverse wavelet transform of the shallow low-frequency subband, horizontal high-frequency subband, vertical high-frequency subband after low-frequency semantic injection and bidirectional gating modulation, and the diagonal high-frequency subband after noise gating, to obtain shallow reconstruction features; and fusing the deep features with the shallow reconstruction features after wavelet domain upsampling to obtain enhanced fusion features. S4. Encode and decode the enhanced fusion features to obtain mask features, memory features, and the decoded output of the query; S5. Project the decoded output into a spatial path query and a relational path query. The spatial path query is used to generate a mask prediction and a device category prediction. The relational path query is enhanced using at least one of the anti-mask external context and anti-attention masking determined based on the mask prediction to obtain a relational enhancement query. S6. In each layer of multi-layer decoding, a soft adjacency relationship between queries is constructed based on the relationship enhancement query of the current layer and the prediction result of the previous layer, and graph convolution propagation is performed. When there is no prediction result of the previous layer in the first layer, the soft adjacency relationship is constructed based on the query similarity. Combined with the auxiliary classification of instruments, actions, and targets and the combined legality constraints, the triplet category prediction is obtained. S7. Predict and output the device mask based on the mask, and predict and output the triplet category corresponding to the device mask based on the triplet category.

[0007] Preferably, in step S3, the orthogonal wavelet decomposition includes: Using a parameter-free two-dimensional wavelet transform with strictly orthogonal transformation matrices, the input 2×2 pixel block is decomposed into low-frequency sub-bands, horizontal high-frequency sub-bands, vertical high-frequency sub-bands, and diagonal high-frequency sub-bands, and perfect reconstruction is achieved through inverse wavelet transform; The low-frequency semantic injection includes: upsampling the deep low-frequency subband and splicing it with the shallow low-frequency subband along the channel, generating a gate value and an injection value through convolution, multiplying the activated injection value with the gate value element by element, and superimposing the residual onto the shallow low-frequency subband to obtain the enhanced low-frequency subband.

[0008] Preferably, in step S3, the noise gating includes at least one of the following: generating a gating by channel excitation of the enhanced low-frequency subband to perform weighted suppression on the diagonal high-frequency subband; generating a gating by the contents of the horizontal high-frequency subband and the vertical high-frequency subband to distinguish the structure and noise in the diagonal high-frequency subband and selectively retain them; The bidirectional gating modulation includes: generating a first gating by channel excitation of the enhanced low-frequency subband, modulating the horizontal high-frequency subband and the vertical high-frequency subband using the first gating to enhance the boundary of the segmentation branch; generating a spatial gating by depthwise convolution and pointwise convolution of the horizontal high-frequency subband and the vertical high-frequency subband, and modulating the low-frequency subband using the spatial gating to enhance the structural prior of the classification branch; The wavelet domain upsampling includes: in low-frequency dominant wavelet domain upsampling, deep features are used as low-frequency subbands, directional subbands are generated by learnable convolution and the diagonal high-frequency subbands are set to zero, and double upsampling is achieved through inverse wavelet transform; in high-frequency dominant wavelet domain upsampling, the horizontal and vertical high-frequency subbands modulated by the bidirectional gated modulation are used to guide the synthesis of directional subbands, and deformable spatial alignment guided by local similarity is superimposed to compensate for spatial misalignment between cross-scale features.

[0009] Preferably, in step S3, the wavelet domain cross-scale feature enhancement and fusion is configured at multiple cross-scale connection positions, including a first connection position, a second connection position, and a third connection position; the first connection position connects the deepest feature and the second deepest feature and adopts a low-frequency dominant configuration, and its output is sent to the classification branch; the second connection position and the third connection position adopt a high-frequency dominant configuration, and their output is sent to the segmentation branch; the output of each connection position is the sum of the shallow reconstructed feature and the deep wavelet domain upsampled feature.

[0010] Preferably, in step S4, the encoding and decoding of the enhanced fusion features to obtain the mask features, memory features, and the decoded output of the query includes: The enhanced fusion feature overlay position encoding and hierarchical embedding are encoded by a multi-scale deformable attention encoder; The encoded output is restored to multi-layer features and fused through a feature pyramid to obtain the mask features and multi-scale memory features; The learnable query is iteratively updated by the mask cross-attention Transformer decoder. The mask cross-attention region with a probability lower than a preset threshold in the previous mask is used as the masking region. The multi-scale memory features are used as keys in a layer-by-layer cyclical manner to output the decoding output of each layer. The decoding output of each layer is projected into the spatial path query and the relational path query, respectively.

[0011] Preferably, in step S5, projecting the decoded output into a spatial path query and a relational path query, wherein the spatial path query is used to generate mask prediction and device category prediction, includes: During the training phase, the decoded output is subjected to two linear projections to obtain the spatial path query and the relational path query. The weights of the two linear projections are initialized to identity matrices and the bias is zero. The spatial path query is processed by a mask-embedded multilayer perceptron and then tensor shrinkage operation is performed on the mask features to obtain the mask prediction, which is then processed by a device classification head to obtain the device category prediction.

[0012] Preferably, in step S5, the anti-mask weight is obtained by subtracting the Sigmoid probability predicted by the mask from 1. The mask features are then spatially weighted and pooled using the anti-mask weight to obtain the anti-mask external context. The residual of the anti-mask external context is injected into the relational path query after linear projection. The mask prediction is upsampled and binarized to obtain the anti-attention mask. On the low-resolution memory features in the multi-scale memory features, the relational path query is subjected to multi-head cross-attention with the anti-attention mask as a constraint. The fine-grained external context is obtained after residual and layer normalization. The spatial path query is used to generate a cross-path gate through a zero-initialization gated linear layer. The relational path query is then modulated channel by channel using the cross-path gate.

[0013] Preferably, in step S6, in each layer of multi-layer decoding, a soft adjacency relationship between queries is constructed based on the relationship enhancement query of the current layer and the prediction result of the previous layer, and graph convolutional propagation is performed. When there is no prediction result of the previous layer in the first layer, the soft adjacency relationship is constructed based on query similarity. Combining device, action, and target-assisted classification with combined legality constraints, the triplet category prediction is obtained, including: Calculate the device affinity matrix, action affinity matrix, and target affinity matrix based on the device prediction probability, action prediction probability, and target prediction probability from the previous layer prediction results, respectively. Calculate feature similarity based on query cosine similarity; The soft adjacency matrix is ​​obtained by multiplying the feature similarity with the sum of the device affinity matrix, the action affinity matrix, and the target affinity matrix element by element, dividing by the temperature coefficient, and then normalizing by row-wise Softmax. The soft adjacency matrix is ​​used to perform multi-layer graph convolutional propagation on relational path queries; An action classification head and a target classification head are set on the relational path query after graph convolution, which together with the device classification head form a short-tailed auxiliary classification branch; The spatial path query and the relational path query after graph convolution are concatenated and then subjected to fusion projection dimensionality reduction to obtain a fusion query. The triplet category score is obtained from the fusion query through a classification head.

[0014] Preferably, during the training phase, the combined legality constraints include: Based on the triplet category name, the instrument index, action index, and target index are parsed. The corresponding items are taken from the instrument-action legality matrix and the action-target legality matrix respectively and added together to obtain the combined legality bias. The combined legality bias is then superimposed on the triplet category score. The device-action legality matrix and the action-target legality matrix are initialized to zero and L2 regularization is applied. The total loss during training includes instance segmentation loss, device action target-assisted classification loss, bipath orthogonal loss, and regularization terms of the validity matrix; A hierarchical learning rate is set for the backbone network, decoder, and newly added network parameters. The newly added network parameters include those in the wavelet domain cross-scale feature enhancement fusion and semantic decoupling classification head. The newly added network parameters adopt a rate greater than the baseline learning rate in the early stage of training and dynamically decay to the baseline rate with each iteration step.

[0015] This invention also provides a surgical triple segmentation system with cross-scale feature enhancement and semantic decoupling, comprising: The feature extraction module is used to acquire the surgical image to be processed and extract multi-layer, multi-scale features through the backbone network; The wavelet domain cross-scale feature enhancement and fusion module is used to perform orthogonal wavelet decomposition on the shallow and deep features in the multi-layer multi-scale features to obtain low-frequency subbands and directional high-frequency subbands. The directional high-frequency subbands include horizontal high-frequency subbands, vertical high-frequency subbands, and diagonal high-frequency subbands. Low-frequency semantic injection is performed on the deep low-frequency subbands and shallow low-frequency subbands to obtain enhanced low-frequency subbands. Based on the enhanced low-frequency subbands and at least one of the horizontal and vertical high-frequency subbands, the highest frequency semantics are selected. The diagonal high-frequency subband of the frequency subband is noise-gated; the enhanced low-frequency subband, the horizontal high-frequency subband, and the vertical high-frequency subband are subjected to bidirectional gated modulation; the shallow low-frequency subband, the horizontal high-frequency subband, the vertical high-frequency subband after low-frequency semantic injection and bidirectional gated modulation, and the diagonal high-frequency subband after noise gating are subjected to inverse wavelet transform to obtain shallow reconstruction features; the deep features are upsampled in the wavelet domain and fused with the shallow reconstruction features to obtain enhanced fusion features; The decoding module is used to encode and decode the enhanced fusion features to obtain mask features, memory features, and the decoded output of the query. A semantic decoupling module is used to project the decoded output into a spatial path query and a relational path query, generate a mask prediction and a device category prediction from the spatial path query, and enhance the relational path query using at least one of the anti-mask external context and anti-attention masking determined based on the mask prediction to obtain a relation-enhanced query. The graph construction and legality constraint module is used to construct soft adjacency relationships between queries based on the relationship enhancement query of the current layer and the prediction result of the previous layer in each layer of multi-layer decoding and to perform graph convolution propagation. When there is no prediction result of the previous layer in the first layer, the soft adjacency relationship is constructed based on the query similarity. Combined with the auxiliary classification of instruments, actions, and targets and the combined legality constraints, the triplet category prediction is obtained. The output module is used to predict the output device mask based on the mask, and to predict the output triplet category corresponding to the device mask based on the triplet category.

[0016] As can be seen from the above technical solutions, the present invention has the following beneficial effects: (1) Replace interpolation-based upsampling with parametric Haar wavelet decomposition reconstruction with strictly orthogonal and perfectly reconstructed method to eliminate spectral aliasing in cross-scale fusion and improve the boundary quality of slender instruments.

[0017] (2) By using the highest frequency subband noise gating, the structure and noise in the high frequency response are distinguished by low frequency semantics and directional subband content, and noise is selectively suppressed to avoid amplifying smoke, reflection and motion blur.

[0018] (3) By using bidirectional modulation across subbands, semantic guidance is achieved at the same time as semantic guidance of the boundary, thus overcoming the defect of unidirectional transmission of frequency fusion.

[0019] (4) Decouple the mask and device prediction from the action and target prediction into two paths, and improve the accuracy of action and target discrimination by recovering the discarded external interaction context through anti-mask pooling and anti-mask cross-attention.

[0020] (5) By using triple soft adjacency graph convolution and learnable device-action and action-target legality matrices, illegal combinations are suppressed in a data-driven manner while improving classification consistency.

[0021] (6) The 100 types of long-tail supervision are transformed into 7, 10 and 15 types of dense supervision by three short-tail auxiliary heads: instrument, action and target, which alleviates the sparse gradient at the tail. The number of parameters in the new module is small and the inference format is consistent with Mask2Former. Attached Figure Description

[0022] To make the content of this invention easier to understand, the invention will be further described in detail below with reference to specific embodiments and accompanying drawings.

[0023] Figure 1 This is a flowchart of a surgical triplet segmentation method for cross-scale feature enhancement and semantic decoupling provided in an embodiment of the present invention; Figure 2 This is a network architecture diagram of the method of the present invention, wherein (a) is the overall network structure diagram, (b) is the wavelet domain cross-scale feature enhancement and fusion structure diagram, and (c) is the semantic decoupling dual-branch triplet graph classification head structure diagram; Figure 3 This is a block diagram of a surgical triplet segmentation system with cross-scale feature enhancement and semantic decoupling provided in an embodiment of the present invention. Detailed Implementation

[0024] The present invention will be further described below with reference to the accompanying drawings and specific embodiments, so that those skilled in the art can better understand and implement the present invention. However, the embodiments described are not intended to limit the present invention.

[0025] Example 1: To address the problems in existing technologies, such as spectral aliasing and high-frequency noise amplification, unidirectional transmission of frequency information, discarding of the instrument's external context due to mask cross-attention, and lack of constraints on the long-tail distribution of triplet categories and the legality of combinations, leading to blurred instrument mask boundaries, inaccurate action and target point discrimination, and easy output of illegal combinations, this invention proposes a surgical triplet segmentation method that combines cross-scale feature enhancement and semantic decoupling. For example... Figure 1 As shown, the method includes the following steps: S1. Acquire the surgical image to be processed; S2. The surgical image to be processed is subjected to feature extraction via a backbone network to obtain multi-layer, multi-scale features; S3. Perform wavelet domain cross-scale feature enhancement and fusion on the shallow and deep features in the multi-layer multi-scale features to obtain enhanced fused features; S4. Encode and decode the enhanced fusion features to obtain mask features, memory features, and the decoded output of the query; S5. Project the decoded output into a spatial path query and a relational path query. The spatial path query is used to generate a mask prediction and a device category prediction. The relational path query is enhanced using at least one of the anti-mask external context and anti-attention masking determined based on the mask prediction to obtain a relational enhancement query. S6. In each layer of multi-layer decoding, a soft adjacency relationship between queries is constructed based on the relationship enhancement query of the current layer and the prediction result of the previous layer, and graph convolution propagation is performed. When there is no prediction result of the previous layer in the first layer, the soft adjacency relationship is constructed based on the query similarity. Combined with the auxiliary classification of instruments, actions, and targets and the combined legality constraints, the triplet category prediction is obtained. S7. Predict and output the device mask based on the mask, and predict and output the triplet category corresponding to the device mask based on the triplet category.

[0026] As can be seen from the above technical solution, the present invention proposes a surgical triplet segmentation method with cross-scale feature enhancement and semantic decoupling. It suppresses spectral aliasing and high-frequency noise by wavelet domain cross-scale feature enhancement fusion, restores the external context of the instrument by semantic decoupling bi-branch query representation, and alleviates long-tail distribution and suppresses illegal combinations by triplet soft adjacency graph convolution and combination legality constraints, thereby improving the quality of instrument mask boundaries and triplet classification accuracy.

[0027] Further, in step S1, the surgical image to be processed can be a single frame or continuous video frames from a laparoscopic surgery video. In one specific implementation, a triplet instance segmentation dataset can be constructed first: the instrument mask of each frame of the surgical video is combined with the instrument, action, and target label to form a "instrument, action, target" triplet category, converted to COCO format annotation, with a total of 100 categories, and divided into training set, validation set, and test set. During the training phase, random horizontal flipping with a probability of 0.5, random scaling with a ratio of 0.1 to 2.0 while maintaining the aspect ratio, and random cropping of 1024×1024 can be applied sequentially, and invalid labels are filtered according to the mask area; during the testing phase, only scaling processing is performed. The preprocessed image is input into the backbone network as the surgical image to be processed. The surgical triplet includes instrument, action, and target. This invention is used to segment the instrument region in surgical images and classify the instrument-action-target combination, and does not involve disease diagnosis.

[0028] Furthermore, in step S2, the backbone network can adopt a visual state space model as its backbone network. In a specific implementation, the four-stage depths of the backbone network are 2, 2, 8, and 2 respectively, with a basic channel count of 96, resulting in four layers of multi-scale features. , of which Layer features satisfy Number of channels The values ​​are 96, 192, 384, and 768 respectively, with downsampling step sizes of 4, 8, 16, and 32 respectively; the features of the last three layers are applied... Convolutional projection onto 256 channels yields multi-layer, multi-scale features. High-resolution details are preserved for subsequent cross-scale fusion with deep features; It provides semantic features at different scales.

[0029] like Figure 2 As shown in (a), the multi-layer, multi-scale features output by the backbone network are denoted as follows: The last three layers are projected and then enter the wavelet domain for cross-scale feature enhancement and fusion. The fusion result is used by the pixel decoder to generate mask features and multi-scale memory features, and then sent to the Transformer decoder and semantically decoupled dual-branch triplet mapping classification head.

[0030] Further, in step S3, wavelet domain cross-scale feature enhancement and fusion are performed on the shallow and deep features in the multi-layer, multi-scale feature set. Let the shallow high-resolution feature be... Deep low-resolution features are .like Figure 2 As shown in (b), the wavelet domain cross-scale feature enhancement fusion includes orthogonal wavelet decomposition and reconstruction, low-frequency semantic injection, high-frequency subband enhancement and noise gating, cross-subband bidirectional modulation, and wavelet domain upsampling.

[0031] (1) Parametric-free orthogonal wavelet decomposition and reconstruction. For and Perform two-dimensional Haar wavelet transforms respectively. Let the input be... The four-neighbor area of ​​the pixel block is The transformation, with 1 / 2 normalization, strictly orthogonal transformation matrices, and no learnable parameters, decomposes pixel blocks into low-frequency subbands. With three high-frequency sub-bands , , : , , , , in, For horizontal high-frequency sub-band, This is a high-frequency sub-band in the vertical direction. This is the high-frequency subband in the diagonal direction and is also the highest-frequency subband. The reconstruction is the inverse transform of the above transformation and satisfies perfect reconstruction: , , , .

[0032] Since decomposition and reconstruction are strictly orthogonal and parameterless, the module initialization is approximately an identity mapping, thus avoiding spectral aliasing caused by interpolation upsampling from the decomposition stage.

[0033] (2) Cross-scale low-frequency semantic injection. This involves injecting deep low-frequency subbands... Bilinear upsampling to shallow low-frequency subband stitching of trailing channels with the same resolution, after Convolution generates gate values ​​respectively With injected value : , , in Indicates Sigmoid activation. Indicates nonlinear activation. This represents channel splicing. The injected value is activated by a Sigmoid function and then multiplied element-wise with the gate value. The residuals are then superimposed onto the shallow low-frequency subband. , Enhanced low-frequency subband The injection intensity can be controlled by hyperparameters, for example, the injection intensity at the first connection position is 0.5, and the injection intensity at the second and third connection positions is 0.1.

[0034] (3) High-frequency subband enhancement and noise gating. Low-frequency dominant branch to enhance low-frequency subband. Gating is generated by the channel excitation module for the highest frequency sub-band. Weighted noise suppression: .

[0035] The high-frequency dominant branch is first formed by the directional sub-band. , Content generation gating, discrimination The structure and noise in the data are selectively preserved: ; Again , Apply self-reinforcing gating: , .

[0036] (4) Cross-subband bidirectional modulation. Direction 1, to enhance the low-frequency subband. Gating generated by channel excitation Acting on directional sub-bands: , This enhances the boundary of the split branches. Direction two, with... , through Depth convolution and Pointwise convolution generates spatial gating: , And it acts on the low-frequency subband: , This allows the classification branches to acquire structural priors. This enables bidirectional modulation of semantic-guided boundaries and boundary-guided semantics.

[0037] (5) Wavelet domain upsampling. In low-frequency-dominated wavelet domain upsampling, deep features Directly used as the low-frequency subband, its directional subband is generated by learnable convolution: , The highest frequency subband is set to zero to suppress upsampling noise: Then, a double upsampling is achieved through inverse wavelet transform: .

[0038] In high-frequency-dominated wavelet domain upsampling, the directional subbands are synthesized under the guidance of shallow horizontal and vertical high-frequency subbands modulated by bidirectional gating, and deformable spatial alignment guided by local similarity is superimposed to compensate for motion misalignment between cross-scale features: .

[0039] The output at each connection point is the sum of the shallow reconstructed features and the deep upsampled features: , Enhanced fusion features are obtained.

[0040] (6) Three-position task-oriented configuration. Wavelet domain cross-scale feature enhancement fusion is configured at multiple cross-scale connection positions, including the first connection position, the second connection position, and the third connection position. The first connection position connects the deepest and second-deepest features, adopts a low-frequency dominant configuration with an injection intensity of 0.5, and its output is sent to the classification branch; the second and third connection positions adopt a high-frequency dominant configuration with an injection intensity of 0.1, and their outputs are sent to the segmentation branch. In a specific implementation, the first connection position fuses the deepest and second-deepest features with low-frequency dominant fusion, the second connection position fuses the second-deepest and third-deepest features with high-frequency dominant fusion, and the third connection position fuses the encoder's highest resolution output and the first-deepest features with high-frequency dominant fusion in subsequent memory reconstruction. The output of each position is the sum of the shallow reconstruction features and the deep wavelet domain upsampled features.

[0041] Further, in step S4, the enhanced fusion features are encoded and decoded. Sine position encoding and hierarchical embedding are superimposed on the three fused feature layers respectively. After flattening and stitching, the layers are fed into a 6-layer multi-scale deformable attention encoder, with each layer having 8 heads, 3 scales, and 4 sampling points, for multi-scale deformable attention encoding. The encoder output is restored to the three-layer features. At the third connection position, the highest resolution output of the fusion encoder is configured with high frequency dominance and combined with the first-layer features, and then... Output convolution; highest resolution feature transfer Convolution yields mask features, and the first three layers are used to obtain multi-scale memory features with strides of 32, 16, and 8. 100 learnable queries are iteratively updated using a 9-layer mask-cross-attention Transformer decoder. Each layer performs self-attention, mask-cross-attention, and a feedforward network. The mask-cross-attention uses regions with a probability less than 0.5 from the previous mask layer as masked areas. The three layers of memory features are used as keys in a cyclical manner, and the decoded output of each layer is output. The decoded output of each layer is projected into spatial path queries and relational path queries, respectively, for use in step S5.

[0042] Further, in step S5, a semantically decoupled dual-branch query representation is performed. For example... Figure 2 As shown in (c), the decoder will be... Layer output Spatial path query obtained through two linear projections Relationship path query : , in , These correspond to the linear projection matrices. During the training phase, both projection matrices are initialized to identity matrices with zero bias, so that at the start of training... and Both are related to the decoding output Consistent, convergence is no worse than the baseline.

[0043] Spatial path query The mask embedding is obtained through a multilayer perceptron with mask embedding, and then combined with mask features. Tensor contraction yields mask prediction : ; Simultaneously, the device category prediction is obtained through the device classification head. : .

[0044] Context recovery: Obtain the demasking weights by subtracting the Sigmoid probability predicted by the mask from 1. : ; Spatial weighted pooling of the mask features is performed using this weight to obtain the external context of the device. : ; in For flattened spatial location index; for residual injection relation path lookup after linear projection: .

[0045] Relational Re-attention: Upsample the mask prediction and binarize it with a threshold of 0.5 to obtain anti-attention masking with the instrument region as the masking position. : ; Low-resolution memory features Above, using this shield as a constraint, a multi-head cross-attention operation is performed on the relational path query, and a fine-grained external context is obtained through residual and layer normalization: ; The shield is removed when all shield bits are true.

[0046] Cross-path gating: Gating vectors are generated from spatial path queries using a zero-initialized linear layer and a Sigmoid function. , Then modulate the relational path query channel by channel: , The prior knowledge of "the instrument determines the available actions and accessible targets" is injected into the relational path. The initial gating value can be 0.5. This results in a relational enhancement query.

[0047] Further, in step S6, triplet graph construction and combination validity constraints are performed. At each layer of multi-layer decoding, soft adjacency relationships between queries are constructed based on the current layer's relation enhancement query and the prediction results of the previous layer. Specifically, the predicted probabilities of the device, action, and target point in the previous layer are used... , , Calculate the affinity matrices for the three types of classes respectively, and truncate the gradients: ; in , , These are the instrument affinity matrix, motion affinity matrix, and target affinity matrix, respectively.

[0048] Using query cosine similarity as the feature similarity : ; The soft adjacency matrix is ​​obtained by multiplying the feature similarity by the sum of the three types of affinity element by element, dividing by the temperature coefficient, and then normalizing by row-wise Softmax. : , Temperature When there is no prediction result from the previous layer in the first layer, the adjacency matrix degenerates into feature similarity, that is, the soft adjacency relationship is constructed based on query similarity.

[0049] With soft adjacency matrix Perform multi-level graph convolution on relational path queries, the first... Layer updated to : , Each layer consists of a feedforward network and layer normalized residual connections, such as performing two-layer graph convolutions to enhance queries with similar feature spaces and semantic compatibility.

[0050] Relational path lookup after graph convolution Set action category header With target classification head : , Together with the instrument classification head, it forms a short-tailed auxiliary classification branch of "7 categories of instruments, 10 categories of actions, and 15 categories of targets", which increases the sample size of a single category and provides a dense gradient for the tail categories.

[0051] Two-branch fusion and triplet classification: Dimensionality reduction is achieved by concatenating two path queries and then performing fusion projection. , The projection weights are initialized as "identity matrix concatenated with zero matrix", so that only spatial paths are used in the early stage of training, and relational path contributions are gradually introduced thereafter; then the triplet class score is obtained through the classification head. : , in Including classes without a target.

[0052] Combinatorial legality constraints: Parse the instrument, action, and target indexes for each triple by category name. Extract the "device-action" item from the two learnable legality matrices respectively. With the "Action-Target" item Adding them together yields the combinational legality bias. : ; Add it to the triplet score : .

[0053] Two validity matrices are initialized to zero and L2 regularization is applied. This yields the triplet class prediction.

[0054] Further, in step S7, the device mask is predicted and output based on the mask, and the triplet category corresponding to the device mask is predicted and output based on the triplet category. During the inference phase, the classification score and mask prediction from the last layer of decoding are taken, and the triplet probability for each query is obtained through Softmax. The "no target" class is removed, and then filtered according to a preset threshold. The remaining query masks are upsampled to the original resolution and binarized to output the device mask and its corresponding triplet category. In a specific implementation, the mask prediction can be taken as a Sigmoid probability and binarized with a 0.5 threshold before output.

[0055] During the training phase, total losses It consists of four parts: .

[0056] One is the original loss of Mask2Former. The first is the classification cross-entropy, mask binary cross-entropy, and Dice loss calculated layer by layer after Hungarian matching. The matching cost can be classification 2.0, mask cross-entropy 5.0, and Dice 5.0, with the weight of the "no target" class being 0.1. The second is the triplet subclass auxiliary loss. : , in That is, greedily assign the highest-scoring, unclaimed query to each target according to the truth value category, and calculate the cross-entropy for the predicted equipment, action, and target point of the matching query. The third is the bi-branch orthogonal loss. : , in This refers to the mean of the squared inner products of the two path queries after normalization. Fourthly, it represents the L2 regularization term of the validity matrix. : , in .

[0057] Parameter updates can employ a hierarchical learning rate and dynamic decay strategy: parameters are divided into three groups—backbone network, decoder, and newly added network parameters—and learning rate multipliers are set accordingly. The newly added network parameters are updated using the baseline learning rate. Multiply by the iteration step The ratio of change Update: ; Initially, new network parameters will be introduced using a learning rate 10 times the baseline. ( ), and then linearly decayed to 1x within 5000 iterations: ( ), and thereafter maintain the benchmark leverage: ( The backbone network uses a slow adaptation with a learning rate of 0.1x. Layer normalization and embedding class parameters are not subject to weight decay, and norm clipping is applied to the gradient. The total number of iterations can be 300,000. The newly added network parameters include those added in the wavelet domain cross-scale feature enhancement fusion and semantic decoupling classification heads.

[0058] To verify the effectiveness of this invention, experiments were conducted on the CholecT45 dataset using the data construction and preprocessing methods described above. The evaluation metric was MAP. I seg MAP V seg MAP T seg MAP IVseg MAP IT seg MAP IVT seg Table 1 shows the experimental results of the main comparison algorithms.

[0059] Table 1. Experimental results of the main comparative algorithms

[0060] As shown in Table 1, the method of the present invention outperforms the comparative methods on multiple MAP metrics, indicating that the wavelet domain cross-scale feature enhancement fusion and semantic decoupling dual-branch triplet mapping classification head can improve the quality of the instrument mask boundary and enhance the accuracy of triplet classification.

[0061] Example 2: This invention provides a surgical triplet segmentation system with cross-scale feature enhancement and semantic decoupling. This system is used to implement the surgical triplet segmentation method with cross-scale feature enhancement and semantic decoupling described in Embodiment 1 above. Figure 3 As shown, it specifically includes: Feature extraction module 100 is used to acquire the surgical image to be processed and extract multi-layer, multi-scale features through a backbone network; The wavelet domain cross-scale feature enhancement and fusion module 200 is used to perform orthogonal wavelet decomposition on the shallow and deep features in the multi-layer multi-scale features to obtain low-frequency subbands and directional high-frequency subbands. The directional high-frequency subbands include horizontal high-frequency subbands, vertical high-frequency subbands, and diagonal high-frequency subbands. Low-frequency semantic injection is performed on the deep low-frequency subbands and shallow low-frequency subbands to obtain enhanced low-frequency subbands. Based on the enhanced low-frequency subbands and at least one of the horizontal and vertical high-frequency subbands, the most... The high-frequency subband in the diagonal direction is noise-gated; the enhanced low-frequency subband is bidirectionally gated and modulated with the horizontal and vertical high-frequency subbands; the shallow low-frequency subband, horizontal high-frequency subband, vertical high-frequency subband after low-frequency semantic injection and bidirectional gated modulation, and the diagonal high-frequency subband after noise gating are subjected to inverse wavelet transform to obtain shallow reconstruction features; the deep features are upsampled in the wavelet domain and fused with the shallow reconstruction features to obtain enhanced fusion features; The decoding module 300 is used to encode and decode the enhanced fusion features to obtain mask features, memory features, and the decoded output of the query. The semantic decoupling module 400 is used to project the decoding output into a spatial path query and a relational path query, generate a mask prediction and a device category prediction from the spatial path query, and enhance the relational path query using at least one of the anti-mask external context and anti-attention masking determined based on the mask prediction to obtain a relation-enhanced query. The graph construction and legality constraint module 500 is used to construct soft adjacency relationships between queries based on the relationship enhancement query of the current layer and the prediction result of the previous layer in each layer of multi-layer decoding and to perform graph convolution propagation. When there is no prediction result of the previous layer in the first layer, the soft adjacency relationship is constructed based on the query similarity. Combined with the auxiliary classification of equipment, action, and target and the combined legality constraint, the triplet category prediction is obtained. The output module 600 is used to predict and output an instrument mask based on the mask, and to predict and output a triplet category corresponding to the instrument mask based on the triplet category.

[0062] This embodiment presents a surgical triplet segmentation system with cross-scale feature enhancement and semantic decoupling, used to implement the aforementioned surgical triplet segmentation method with cross-scale feature enhancement and semantic decoupling. Therefore, the specific implementation of this system can be found in the previous embodiment section of the method, and will not be repeated here to avoid redundancy.

[0063] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0064] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0065] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The functions specified in one or more boxes. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable apparatus for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0066] Obviously, the above embodiments are merely illustrative examples for clear explanation and are not intended to limit the implementation. Those skilled in the art will recognize that other variations or modifications can be made based on the above description. It is neither necessary nor possible to exhaustively list all possible implementations here. However, obvious variations or modifications derived therefrom are still within the scope of protection of this invention.

Claims

1. A surgical triple segmentation method with cross-scale feature enhancement and semantic decoupling, wherein the surgical triple includes instruments, actions, and targets, characterized in that, Includes the following steps: S1. Acquire the surgical image to be processed; S2. The surgical image to be processed is subjected to feature extraction via a backbone network to obtain multi-layer, multi-scale features; S3. Perform wavelet domain cross-scale feature enhancement and fusion on the shallow and deep features in the multi-layer, multi-scale features: Perform orthogonal wavelet decomposition on the shallow and deep features respectively to obtain low-frequency sub-bands and directional high-frequency sub-bands. The directional high-frequency sub-bands include horizontal high-frequency sub-bands, vertical high-frequency sub-bands, and diagonal high-frequency sub-bands. Perform low-frequency semantic injection on the deep and shallow low-frequency sub-bands to obtain enhanced low-frequency sub-bands. Based on the enhanced low-frequency sub-bands and at least one of the horizontal and vertical high-frequency sub-bands, perform noise gating on the diagonal high-frequency sub-band, which is the highest frequency sub-band. Perform bidirectional gated modulation on the enhanced low-frequency sub-bands, the horizontal high-frequency sub-bands, and the vertical high-frequency sub-bands. Perform inverse wavelet transform on the shallow low-frequency sub-bands, horizontal high-frequency sub-bands, vertical high-frequency sub-bands after low-frequency semantic injection and bidirectional gated modulation, and the diagonal high-frequency sub-band after noise gating to obtain shallow reconstructed features. The deep features are upsampled in the wavelet domain and then fused with the shallow reconstructed features to obtain enhanced fused features. S4. Encode and decode the enhanced fusion features to obtain mask features, memory features, and the decoded output of the query; S5. Project the decoded output into a spatial path query and a relational path query, wherein the spatial path query is used to generate mask prediction and device category prediction; The relation path query is enhanced using at least one of the anti-mask external context and anti-attention masking determined based on the mask prediction, resulting in a relation-enhanced query. S6. In each layer of multi-layer decoding, a soft adjacency relationship between queries is constructed based on the relationship enhancement query of the current layer and the prediction result of the previous layer, and graph convolution propagation is performed. When there is no prediction result of the previous layer in the first layer, the soft adjacency relationship is constructed based on the query similarity. Combined with the auxiliary classification of instruments, actions, and targets and the combined legality constraints, the triplet category prediction is obtained. S7. Predict and output the device mask based on the mask, and predict and output the triplet category corresponding to the device mask based on the triplet category.

2. The surgical triplet segmentation method with cross-scale feature enhancement and semantic decoupling according to claim 1, characterized in that, In step S3, the orthogonal wavelet decomposition includes: Using a parameter-free two-dimensional wavelet transform with strictly orthogonal transformation matrices, the input 2×2 pixel block is decomposed into low-frequency sub-bands, horizontal high-frequency sub-bands, vertical high-frequency sub-bands, and diagonal high-frequency sub-bands, and perfect reconstruction is achieved through inverse wavelet transform; The low-frequency semantic injection includes: upsampling the deep low-frequency subband and splicing it with the shallow low-frequency subband along the channel, generating a gate value and an injection value through convolution, multiplying the activated injection value with the gate value element by element, and superimposing the residual onto the shallow low-frequency subband to obtain the enhanced low-frequency subband.

3. The surgical triplet segmentation method with cross-scale feature enhancement and semantic decoupling according to claim 1, characterized in that, In step S3, the noise gating includes at least one of the following: generating a gating by channel excitation of the enhanced low-frequency subband to perform weighted suppression of the diagonal high-frequency subband; generating a gating by the contents of the horizontal high-frequency subband and the vertical high-frequency subband to distinguish the structure and noise in the diagonal high-frequency subband and selectively retain them; The bidirectional gating modulation includes: generating a first gating by channel excitation of the enhanced low-frequency subband, modulating the horizontal high-frequency subband and the vertical high-frequency subband using the first gating to enhance the boundary of the segmentation branch; generating a spatial gating by depthwise convolution and pointwise convolution of the horizontal high-frequency subband and the vertical high-frequency subband, and modulating the low-frequency subband using the spatial gating to enhance the structural prior of the classification branch; The wavelet domain upsampling includes: in low-frequency dominant wavelet domain upsampling, deep features are used as low-frequency subbands, directional subbands are generated by learnable convolution and the diagonal high-frequency subbands are set to zero, and double upsampling is achieved through inverse wavelet transform; in high-frequency dominant wavelet domain upsampling, the horizontal and vertical high-frequency subbands modulated by the bidirectional gated modulation are used to guide the synthesis of directional subbands, and deformable spatial alignment guided by local similarity is superimposed to compensate for spatial misalignment between cross-scale features.

4. The surgical triplet segmentation method with cross-scale feature enhancement and semantic decoupling according to claim 1, characterized in that, In step S3, the wavelet domain cross-scale feature enhancement and fusion is configured at multiple cross-scale connection positions, including a first connection position, a second connection position, and a third connection position; the first connection position connects the deepest feature and the second deepest feature and adopts a low-frequency dominant configuration, and its output is sent to the classification branch; The second and third connection positions adopt a high-frequency dominant configuration, and their outputs are sent to the segmentation branch; the output of each connection position is the sum of shallow reconstruction features and deep wavelet domain upsampling features.

5. The surgical triplet segmentation method with cross-scale feature enhancement and semantic decoupling according to claim 1, characterized in that, In step S4, the encoding and decoding of the enhanced fusion features to obtain the mask features, memory features, and the decoded output of the query includes: The enhanced fusion feature overlay position encoding and hierarchical embedding are encoded by a multi-scale deformable attention encoder; The encoded output is restored to multi-layer features and fused through a feature pyramid to obtain the mask features and multi-scale memory features; The learnable query is iteratively updated by the mask cross-attention Transformer decoder. The mask cross-attention region with a probability lower than a preset threshold in the previous mask is used as the masking region. The multi-scale memory features are used as keys in a layer-by-layer cyclical manner to output the decoding output of each layer. The decoding output of each layer is projected into the spatial path query and the relational path query, respectively.

6. The surgical triplet segmentation method with cross-scale feature enhancement and semantic decoupling according to claim 1, characterized in that, In step S5, projecting the decoded output into a spatial path query and a relational path query, wherein the spatial path query is used to generate mask prediction and device category prediction, includes: During the training phase, the decoded output is subjected to two linear projections to obtain the spatial path query and the relational path query. The weights of the two linear projections are initialized to identity matrices and the bias is zero. The spatial path query is processed by a mask-embedded multilayer perceptron and then tensor shrinkage operation is performed on the mask features to obtain the mask prediction, which is then processed by a device classification head to obtain the device category prediction.

7. The surgical triplet segmentation method with cross-scale feature enhancement and semantic decoupling according to claim 6, characterized in that, In step S5, the anti-mask weight is obtained by subtracting the Sigmoid probability predicted by the mask from 1. The mask features are then spatially weighted and pooled using the anti-mask weight to obtain the anti-mask external context. The residual of the anti-mask external context is injected into the relational path query after linear projection. The mask prediction is upsampled and binarized to obtain the anti-attention mask. On the low-resolution memory features in the multi-scale memory features, the relational path query is subjected to multi-head cross-attention with the anti-attention mask as a constraint. The fine-grained external context is obtained after residual and layer normalization. The spatial path query is used to generate a cross-path gate through a zero-initialization gated linear layer, and the cross-path gate is used to perform channel-by-channel modulation on the relational path query.

8. The surgical triplet segmentation method with cross-scale feature enhancement and semantic decoupling according to claim 6, characterized in that, In step S6, at each layer of multi-layer decoding, a soft adjacency relationship between queries is constructed based on the relationship enhancement query of the current layer and the prediction result of the previous layer, and graph convolution propagation is performed. When there is no prediction result of the previous layer in the first layer, the soft adjacency relationship is constructed based on the query similarity. Combining device, action, and target-assisted classification with combined legality constraints, the predicted triplet categories include: Calculate the device affinity matrix, action affinity matrix, and target affinity matrix based on the device prediction probability, action prediction probability, and target prediction probability from the previous layer prediction results, respectively. Calculate feature similarity based on query cosine similarity; The soft adjacency matrix is ​​obtained by multiplying the feature similarity with the sum of the device affinity matrix, the action affinity matrix, and the target affinity matrix element by element, dividing by the temperature coefficient, and then normalizing by row-wise Softmax. The soft adjacency matrix is ​​used to perform multi-layer graph convolutional propagation on relational path queries; An action classification head and a target classification head are set on the relational path query after graph convolution, which together with the device classification head form a short-tailed auxiliary classification branch; The spatial path query and the relational path query after graph convolution are concatenated and then subjected to fusion projection dimensionality reduction to obtain a fusion query. The triplet category score is obtained from the fusion query through a classification head.

9. The surgical triplet segmentation method with cross-scale feature enhancement and semantic decoupling according to claim 8, characterized in that, During the training phase, the combined legality constraints include: Based on the triplet category name, the instrument index, action index, and target index are parsed. The corresponding items are taken from the instrument-action legality matrix and the action-target legality matrix respectively and added together to obtain the combined legality bias. The combined legality bias is then superimposed on the triplet category score. The device-action legality matrix and the action-target legality matrix are initialized to zero and L2 regularization is applied. The total loss during training includes instance segmentation loss, device action target-assisted classification loss, bipath orthogonal loss, and regularization terms of the validity matrix; A hierarchical learning rate is set for the backbone network, decoder, and newly added network parameters. The newly added network parameters include those in the wavelet domain cross-scale feature enhancement fusion and semantic decoupling classification head. The newly added network parameters adopt a rate greater than the baseline learning rate in the early stage of training and dynamically decay to the baseline rate with each iteration step.

10. A surgical triplet segmentation system with cross-scale feature enhancement and semantic decoupling, characterized in that, include: The feature extraction module is used to acquire the surgical image to be processed and extract multi-layer, multi-scale features through the backbone network; The wavelet domain cross-scale feature enhancement and fusion module is used to perform orthogonal wavelet decomposition on the shallow and deep features in the multi-layer multi-scale features to obtain low-frequency subbands and directional high-frequency subbands. The directional high-frequency subbands include horizontal high-frequency subbands, vertical high-frequency subbands, and diagonal high-frequency subbands. Low-frequency semantic injection is performed on the deep low-frequency subbands and shallow low-frequency subbands to obtain enhanced low-frequency subbands. Based on the enhanced low-frequency subbands and at least one of the horizontal and vertical high-frequency subbands, the highest frequency semantics are selected. The diagonal high-frequency subband of the frequency subband is noise-gated; the enhanced low-frequency subband, the horizontal high-frequency subband, and the vertical high-frequency subband are subjected to bidirectional gated modulation; the shallow low-frequency subband, the horizontal high-frequency subband, the vertical high-frequency subband after low-frequency semantic injection and bidirectional gated modulation, and the diagonal high-frequency subband after noise gating are subjected to inverse wavelet transform to obtain shallow reconstruction features; the deep features are upsampled in the wavelet domain and fused with the shallow reconstruction features to obtain enhanced fusion features; The decoding module is used to encode and decode the enhanced fusion features to obtain mask features, memory features, and the decoded output of the query. A semantic decoupling module is used to project the decoded output into a spatial path query and a relational path query, generate a mask prediction and a device category prediction from the spatial path query, and enhance the relational path query using at least one of the anti-mask external context and anti-attention masking determined based on the mask prediction to obtain a relation-enhanced query. The graph construction and legality constraint module is used to construct soft adjacency relationships between queries based on the relationship enhancement query of the current layer and the prediction result of the previous layer in each layer of multi-layer decoding and to perform graph convolution propagation. When there is no prediction result of the previous layer in the first layer, the soft adjacency relationship is constructed based on the query similarity. Combined with the auxiliary classification of equipment, action, and target and the combined legality constraint, the triplet category prediction is obtained. The output module is used to predict the output device mask based on the mask, and to predict the output triplet category corresponding to the device mask based on the triplet category.