An underwater robot anti-visual degradation target perception method, program, device and storage medium
The detection framework, which combines frequency decoupling and multi-directional selective state space modeling, resolves the contradiction between long-range modeling and computational efficiency at the edge of underwater robots in underwater target detection algorithms. This enables accurate target localization in complex occlusion scenarios and supports the precision operation of underwater robotic arms.
Patent Information
- Application Number
- CN202611253782.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-18
- Publication Date
- 2026-11-27
AI Technical Summary
Underwater target detection algorithms face a trade-off between long-range modeling capability and computational efficiency at the edge of underwater robots. Limited local receptive fields, huge computational overhead, and state-space model adaptability bottlenecks lead to inaccurate target localization and noise aliasing, making it difficult to meet the needs of refined operations.
A detection framework employing frequency decoupling and multi-directional selective state space modeling is used. Noise is intercepted through a frequency adaptive module, and long-range semantic modeling is performed using a two-dimensional selective state space model. Furthermore, multi-directional differential detail branches and edge injectors are introduced to explicitly extract physical edges and inject them into the global semantic flow.
It effectively blocks the propagation of environmental disturbances, ensuring the output of compact and stable bounding boxes in complex occlusion scenarios, supporting precise servo control of underwater robotic arms, and improving the accuracy and efficiency of target perception.
Smart Images

Figure CN123182002A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of intelligent ship technology and relates to a digital image processing and machine vision method, specifically to an underwater robot's anti-visual degradation target perception method, program, device and storage medium. Background Technology
[0002] Underwater target detection is a core foundation for applications such as marine resource exploration and autonomous underwater robotic operations. However, due to the unique optical properties of water, underwater visual perception faces severe physical degradation challenges: Optical scattering and reduced contrast: Water absorption of light and forward scattering by suspended particles result in imaging results with generally low contrast, severe color cast, and blurred physical boundaries. Environmental mimicry interference: In near-bottom precision operations, benthic organisms often exhibit high environmental mimicry characteristics, with textures highly consistent with seabed sediments. This strong background interference, combined with optical degradation, significantly weakens the target's structural and textural clues. High-frequency noise aliasing: High-frequency noise generated by underwater forward scattering highly overlaps with the target's remaining weak geometric edges. While traditional smoothing strategies can suppress noise, they often simultaneously smooth out the geometric details of small targets, making it difficult to meet the edge positioning accuracy requirements for precision operations such as collision avoidance servo control of robotic arms.
[0003] Current mainstream target detection algorithms, when applied to the edge detection of underwater robots, face the following trade-off between long-range modeling capability and computational efficiency:
[0004] (1) Limited local receptive field: Detectors based on convolutional neural networks rely on local operators and lack the ability to model long-range dependencies. In low-contrast or camouflaged scenes, local features are insufficient to form a globally consistent semantic response, which leads to incomplete boundary responses and false detections in large-scale blurred targets or occluded scenes.
[0005] (2) Huge computational overhead: Although the Transformer-based architecture has the potential for global modeling, the computational complexity of its self-attention mechanism increases exponentially with feature resolution. On the limited side-end computing nodes of underwater robots, it is difficult to meet the real-time inference requirements under high-resolution input.
[0006] (3) Adaptability bottleneck of state-space model: Although the emerging state-space model has a global receptive field while maintaining linear complexity, when directly transferred to underwater scenarios, its inherent sequential scanning mechanism is prone to high-frequency noise propagating globally. At the same time, its state compression mechanism further smooths fine-grained geometric cues, resulting in a decrease in the localization accuracy of small targets, which limits its engineering transformation potential in real physical environments. Summary of the Invention
[0007] This invention addresses the degradation issues in underwater optical imaging caused by significant light absorption and scattering from suspended particles, often resulting in low contrast, color shift, and blurred physical boundaries. To overcome the problem of inaccurate positioning during precise underwater operations by underwater robots, this invention provides an underwater detection framework that integrates frequency decoupling and multi-directional selective state space modeling. The framework constructs a progressive perception paradigm of frequency separation, global modeling, and local compensation: First, a frequency adaptive module (FAM) is used to intercept and remove unstable noise at the feature extraction source, extracting a clean low-frequency structural skeleton; then, a two-dimensional selective state space module (SS2D) performs efficient long-range semantic modeling on the skeleton; finally, multi-directional differential detail branch (MGAB) and edge injector (GSI) are introduced to explicitly extract anisotropic physical edges and accurately inject them back into the global semantic flow, completely solving the problem of losing fine-grained features of small targets.
[0008] This invention provides a method for underwater robots to resist visual degradation target perception, comprising the following steps:
[0009] Underwater optical images are acquired, and feature extraction networks are used to extract features to obtain initial multi-scale image features.
[0010] Based on the channel attention gating mechanism, the structured skeleton features containing the main body contour in the initial multi-scale image features are adaptively enhanced, and high-frequency feature components are suppressed; the semantic main branch is derived based on the structured skeleton features.
[0011] Two-dimensional features are converted into multiple one-dimensional sequences through a cross-scanning mechanism, and spatial dependency modeling is completed with the help of a selective state space model to generate globally enhanced semantic features.
[0012] The semantic main branch is input into the geometric auxiliary branch; based on the multi-directional difference response, a learnable center suppression parameter is introduced to construct the generalized center difference form; and then the detailed features are weighted and filtered by directional weights to obtain the high-frequency detailed dynamics.
[0013] High-frequency details are dynamically injected into global semantic features through an edge injector using gated modulation; the fused features are then calibrated a second time using a residual gate unit and fed into the detection head for prediction.
[0014] Furthermore, the derived semantic main branch specifically refers to:
[0015] Apply a learnable low-pass filter To obtain low-frequency components And it utilizes large kernel convolution to mine structured skeleton features in low-frequency components. ;
[0016] By analyzing low-frequency components Global feature aggregation and nonlinear transformation are performed to generate weight features for modulating channel attention. ;
[0017] Based on original input features As a foundation, a gating mechanism weight is introduced. Adaptive Enhanced Structured Skeleton At the same time, suppress high-frequency characteristic components The dynamically reconstructed features are then fed into a feedforward neural network with residual connections to generate semantic main branches. .
[0018] Furthermore, the selective state-space model specifically includes:
[0019] The semantic main branches after hierarchical normalization Flattened along four orthogonal directions, it becomes four independent sequences;
[0020]
[0021] in, Indicates a specific scan path Spatial serialization operator;
[0022] A selective state-space model is used to perform context modeling on a one-dimensional sequence. Then, through an inverse mapping reconstruction operation, the processed independent sequences are folded back into two-dimensional features. Finally, the two-dimensional features corresponding to each scan path are summed element-wise to generate the final global enhanced features. .
[0023] Furthermore, a learnable center suppression parameter is introduced. The multi-directional difference response is replicated in the directional dimension to construct a generalized central difference form;
[0024]
[0025] in, This represents the generalized central difference response after central suppression; Indicates the differential direction number; express The Middle Differential response feature groups corresponding to each direction; Represents the learning center inhibition parameter The One directional component; Indicates local The feature value of the center pixel in the neighborhood.
[0026] Furthermore, the generalized central difference response is used to generate an orientation weight vector through global average pooling and a small multilayer perceptron; the orientation weights are then used to weight and aggregate the differential responses in each orientation to obtain anisotropic detail features. ;
[0027]
[0028] in, For the first Weight vectors in each direction.
[0029] Furthermore, a gated modulation mask is calculated based on the globally enhanced semantic features. for:
[0030]
[0031] in, Represents pixel-wise convolution operation; GN represents group normalization; This represents the sigmoid activation function.
[0032] Furthermore, the secondary calibration is as follows:
[0033] .
[0034] The present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the underwater robot anti-visual degradation target perception method described above.
[0035] The present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the underwater robot's anti-visual degradation target perception method as described in any of the preceding claims.
[0036] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the underwater robot's anti-visual degradation target perception method as described in any of the preceding claims.
[0037] The beneficial effects of this invention are as follows:
[0038] This invention addresses the challenge of target perception in precise underwater robot operations by proposing an efficient detection framework that integrates frequency decoupling and multi-directional selective state-space modeling. This framework achieves frequency domain decoupling between structural components and degradation noise at the feature extraction front end by constructing a frequency adaptive module, effectively blocking the propagation of environmental disturbances into deeper layers of the model. To overcome the bottleneck of fine-grained geometric edge diffusion in global modeling, this paper innovatively introduces multi-directional differential detail branches and edge injectors, explicitly modeling and injecting anisotropic geometric priors. This ensures that the model can still output compact and stable bounding boxes in scenarios with high-density benthic aggregation and complex occlusion, thus laying a reliable perception foundation for the precise servo control of underwater robotic arms. Attached Figure Description
[0039] Figure 1 This is a flowchart of the underwater robot's anti-visual degradation target perception method of the present invention;
[0040] Figure 2 This is a flowchart of the frequency adaptive module of the present invention;
[0041] Figure 3 This is a flowchart illustrating the geometric auxiliary branching process of the present invention.
[0042] Figure 4 This is a flowchart of the edge injector operation of the present invention. Detailed Implementation
[0043] The present invention will be further described below with reference to the accompanying drawings. The embodiments are only used to explain the present invention and are not intended to limit the scope of protection of the present invention.
[0044] This invention discloses a method for underwater robots to resist visual degradation target perception, such as... Figure 1 As shown, the specific steps include:
[0045] Step S1: Acquire underwater optical images, and use a feature extraction network to extract features from the input images to obtain multi-scale image features;
[0046] Step S2: Use the frequency adaptive module to smooth and map multi-scale image features, suppress unstable high-frequency noise caused by scattering, extract and retain the structured skeleton related to the target shape as low-frequency components; derive semantic main branches based on the structured skeleton;
[0047] Step S3: Introduce SS2D and use the cross-scanning mechanism to convert two-dimensional features into multiple one-dimensional sequences. Reuse the one-dimensional selective state space model to realize two-dimensional spatial context modeling and establish long-range spatial dependencies to form macroscopic semantic representations.
[0048] Step S4: Input the fused features output by the frequency adaptive module into the geometric auxiliary branch; the geometric auxiliary branch extracts edge and texture details through multi-directional differential convolution, and filters key geometric details through directional weights to obtain detailed features;
[0049] Step S5: Using an edge injector, the high-frequency details extracted from the geometric auxiliary branch are dynamically injected into the global semantic flow of the semantic main branch in a gated modulation manner, forming cross-branch adaptive collaborative features;
[0050] Step S6: Use the residual gating unit to perform secondary calibration on the fused features to obtain the final enhanced features and send them to the detection head for prediction.
[0051] In step S2 above, given the input multi-scale image features First, a learnable low-pass filter is applied. To obtain low-frequency components ;
[0052]
[0053] in, For learnable For depthwise separable convolution kernels, the corresponding high-frequency residual components containing abundant abrupt transition edges are defined as:
[0054]
[0055] To further enhance our structural modeling capabilities, we adopted... Large kernel convolutions mine spatial context in low-frequency components:
[0056]
[0057] Considering the varying degrees of dependence on structural information across different channels, we introduce a channel attention gating mechanism to modulate the structural enhancement branch:
[0058]
[0059] in, For global average pooling; It is a multilayer perceptron;
[0060] Subsequently, the FAM module selectively suppresses noise in the high-frequency domain by injecting enhanced structural information and utilizing two learnable parameters. and Dynamically reconstruct features:
[0061]
[0062] in, and These are channel-level learnable scaling factors initialized to 0.5 and 0, respectively.
[0063] The fused features After processing by a feedforward neural network with residual connections, the final output is generated:
[0064]
[0065] in, The FAM module outputs the final features; LayerNorm represents layer normalization, used to stabilize the feature distribution; FFN is only used to further refine the fused features.
[0066] In step S3 above, the specific implementation steps of semantic principal branch modeling based on two-dimensional selective state space are as follows:
[0067] The core Mamba architecture is based on a linear time-invariant system, which uses hidden states. Input sequence Mapping to output sequence Its evolution process is described by the following differential equation:
[0068]
[0069]
[0070] in, Here is the state transition matrix. and These are the projection matrices. To integrate them into deep learning frameworks, we use the Zero-Order Preservation (ZOH) rule for discretization, and the discretized version is defined as follows:
[0071]
[0072] in, , It is a discrete matrix; It is a step size that is dynamically generated through input features, which gives the model the ability to selectively perceive context; It is an identity matrix and .
[0073] To extend the aforementioned one-dimensional selective scanning to two-dimensional space, the SS2D module is introduced; SS2D employs a cross-scanning mechanism. Obtained by LayerNorm , as input features for two-dimensional selective state-space modeling:
[0074]
[0075] feature map Flattened along four orthogonal directions, it becomes four independent sequences:
[0076]
[0077] in, Indicates a specific scan path The spatial serialization operator extracts all pixels from the feature map point by point in a predefined scanning order and concatenates them into a one-dimensional sequence of length H×W. That is, it uses four predefined scanning paths—from top left to bottom right, from bottom right to top left, from top right to bottom left, and from bottom left to top right. That is, scanning path numbers. By using the above multi-directional expansion method, the state-space model can maintain linear computational complexity while more fully modeling long-range dependencies.
[0078] Through the inverse mapping function — An inverse mapping operator that folds the sequence back into two-dimensional feature maps, summing the four feature maps element-wise to generate the final global augmented features. :
[0079]
[0080] in, That is, Mamba's selective scan operator S6 is a selective state space operation module, which dynamically generates state space parameters based on the input sequence and performs state recursion along the scan sequence to obtain sequence features containing long-range context information. This represents the output characteristics of a two-dimensional selective state-space module (SS2D), i.e., for The globally enhanced semantic features obtained by performing state space operations and folding aggregation along the four scanning paths are used in the subsequent edge injector.
[0081] In step S4, combined Figure 3 The specific implementation steps for the geometry-assisted branch are as follows:
[0082] Given input features Multidirectional differential response Defined as:
[0083]
[0084] Where GroupConv represents group convolution operation; groups = C represents group convolution by channel; Indicates four Directional Differential Kernel The composite convolution kernels, stacked along the output channel dimension, correspond to the four initial principal directions of 0°, 45°, 90°, and 135°, respectively; B, C, H, and W represent the batch size, number of channels, height, and width, respectively; ℝ represents the set of real numbers.
[0085] Furthermore, we introduce a learnable center suppression parameter. By replicating the input features along the directional dimension, a generalized central difference form is constructed:
[0086]
[0087] in, This represents the generalized central difference response after central suppression; Indicates the differential direction number. =1,2,3,4 correspond to the four preset directions of 0°, 45°, 90° and 135° respectively; express The Middle Differential response feature groups corresponding to each direction; Learning center suppression parameter The One directional component is used to dynamically adjust the differential strength; Representing a part The feature value of the center pixel in the neighborhood.
[0088] Furthermore, directional attention gating is introduced. It generates a directional weight vector through global information pooling and a small multilayer perceptron. :
[0089]
[0090] By using directional weights to weight and aggregate the differential responses in each direction, anisotropy details can be obtained:
[0091]
[0092] In step S5 above, combined with Figure 4 The specific implementation steps of the edge injector module are as follows:
[0093] Semantic information stream obtained by spatial mask modulation, spatial modulation mask Only those with a global, macroscopic perspective generate:
[0094]
[0095] in It is the sigmoid activation function. This represents a pixel-by-pixel convolution operation;
[0096] In step S6 above, the fused features are calibrated a second time using a residual gating unit, so that the obtained image tends to be stable and the artifacts that may be introduced by cross-branch fusion are eliminated by using local self-attention constraints, so as to obtain the final enhanced features and send them to the detection head for prediction.
[0097]
[0098] Example 1
[0099] This embodiment uses the YOLO11 model as a basis to acquire underwater optical images. The Conv convolutional unit of the YOLO11 model is used to complete image preprocessing and downsampling. The C3k2 module is used to achieve efficient depth feature extraction and obtain multi-scale texture and semantic features.
[0100] Multi-scale texture and semantic features are used as given input features and input to the frequency adaptive module of this application. The fused features are then passed through the geometric auxiliary branch and the edge injector in sequence. After secondary calibration of the fused features, the enhanced features are sent to the detection head for prediction.
[0101] Its loss function is designed by the YOLO model itself.
[0102] The experimental configuration for this embodiment is as follows: An NVIDIA RTX A6000 (48GB VRAM) GPU is used for training. The network input image resolution is uniformly set to 640×640, and the batch size is set to 16. During training, the initial learning rate is set to 0.01, and the stochastic gradient descent (SGD) optimizer is used for 500 epochs, with a weight decay of 0.001.
[0103] This embodiment is compared with other YOLO series models and advanced algorithms for underwater environment optimization in recent years. The specific results are shown in Table 1.
[0104] Table 1. Comparison results with other models on the RUOD dataset.
[0105]
[0106] On the RUOD dataset, this embodiment outperforms eight comparison methods, including GEE-UOD, DyFish-DETR, LUW-DETR, AGS-YOLO, and YOLOv8s / YOLO26s / YOLOv11s, with an mAP50 of 87.3% and a mAP50-95 of 66.3%, achieving the best accuracy in all metrics. At the same time, its computational cost (18.6 GFLOPs) and parameter count (8.8 M) are lower than most mainstream models, making it the best overall in terms of accuracy-efficiency trade-off and suitable for deployment on underwater platforms with limited computing resources.
[0107] In particular, in some preferred embodiments of the present invention, a computer device is also provided, including a memory and a processor and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the underwater robot anti-visual degradation target perception method described in any of the above embodiments.
[0108] In some other preferred embodiments of the present invention, a computer-readable storage medium is also provided, on which a computer program is stored, which, when executed by a processor, implements the steps of the underwater robot's anti-visual degradation target perception method described in any of the above embodiments.
[0109] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the above embodiments of the underwater robot's anti-visual degradation target perception method, which will not be repeated here.
[0110] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0111] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0112] The above embodiments are preferred embodiments of the present invention, but the embodiments of the present invention are not limited to the above embodiments. Any changes, modifications, substitutions, combinations, or simplifications made without departing from the spirit and principle of the present invention shall be considered equivalent substitutions and shall be included within the protection scope of the present invention.
Claims
1. A method for anti-visual degradation target perception in underwater robots, characterized in that, Includes the following steps: Underwater optical images are acquired, and feature extraction networks are used to extract features to obtain initial multi-scale image features. Based on the channel attention gating mechanism, the structured skeleton features containing the main body contour in the initial multi-scale image features are adaptively enhanced, and high-frequency feature components are suppressed; the semantic main branch is derived based on the structured skeleton features. Two-dimensional features are converted into multiple one-dimensional sequences through a cross-scanning mechanism, and spatial dependency modeling is completed with the help of a selective state space model to generate globally enhanced semantic features. Input the semantic main branch into the geometric auxiliary branch; Based on the multi-directional difference response, a learnable center suppression parameter is introduced to construct a generalized center difference form; then, the high-frequency detail dynamics are obtained by weighting and filtering the detail features with directional weights. High-frequency details are dynamically injected into global semantic features through an edge injector using gated modulation; the fused features are then calibrated a second time using a residual gate unit and fed into the detection head for prediction.
2. The underwater robot's anti-visual degradation target perception method according to claim 1, characterized in that, The derived semantic main branch is specifically: Apply a learnable low-pass filter To obtain low-frequency components And it utilizes large kernel convolution to mine structured skeleton features in low-frequency components. ; By analyzing low-frequency components Global feature aggregation and nonlinear transformation are performed to generate weight features for modulating channel attention. ; Based on original input features As a foundation, a gating mechanism weight is introduced. Adaptive Enhanced Structured Skeleton At the same time, suppress high-frequency characteristic components The dynamically reconstructed features are then fed into a feedforward neural network with residual connections to generate semantic main branches. .
3. The underwater robot's anti-visual degradation target perception method according to claim 1, characterized in that, The selective state-space model specifically includes: The semantic main branches after hierarchical normalization Flattened along four orthogonal directions, it becomes four independent sequences; in, Indicates a specific scan path Spatial serialization operator; A selective state-space model is used to perform context modeling on a one-dimensional sequence. Then, through an inverse mapping reconstruction operation, the processed independent sequences are folded back into two-dimensional features. Finally, the two-dimensional features corresponding to each scan path are summed element-wise to generate the final global enhanced features. .
4. The underwater robot's anti-visual degradation target perception method according to claim 1, characterized in that, Introducing a learnable center inhibition parameter The multi-directional difference response is replicated in the directional dimension to construct a generalized central difference form; in, This represents the generalized central difference response after central suppression; Indicates the differential direction number; express The Middle Differential response feature groups corresponding to each direction; Represents the learning center inhibition parameter The One directional component; Indicates local The feature value of the center pixel in the neighborhood.
5. The underwater robot's anti-visual degradation target perception method according to claim 1, characterized in that, The generalized central difference response is used to generate an orientation weight vector through global average pooling and a small multilayer perceptron; the orientation weights are then used to weight and aggregate the differential responses of each orientation to obtain anisotropic detail features. ; in, For the first Weight vectors in each direction.
6. The underwater robot's anti-visual degradation target perception method according to claim 1, characterized in that, Calculate the gated modulation mask based on global enhanced semantic features. for: in, Represents pixel-wise convolution operation; GN represents group normalization; This represents the sigmoid activation function.
7. The underwater robot's anti-visual degradation target perception method according to claim 1, characterized in that, The secondary calibration is as follows: 。 8. A computer device, comprising a memory, a processor, and a computer program stored in the memory, characterized in that, The processor executes the computer program to implement the steps of the method as described in any one of claims 1 to 7.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 7.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 7.
