An underwater image enhancement method based on a double-branch architecture and guided by physical priors

By employing a physical prior-guided method with a dual-branch architecture, combined with multi-scale subspace restoration and variance-suppressed attention modules, the problems of easily invalidated prior assumptions and noise amplification in underwater image enhancement are solved. This achieves efficient noise reduction and detail preservation in complex environments, thereby improving the visual quality of underwater images.

CN123142014APending Publication Date: 2026-11-20DALIAN MARITIME UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611455620.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-18
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing underwater image enhancement methods are prone to failure of prior assumptions under uneven lighting and variable water environment, resulting in deviations in the estimation of transmittance and backscattering parameters and color distortion in the restored results; pure data-driven methods lack explicit physical constraints and are prone to artifacts; conventional attention mechanisms are prone to misinterpreting high-frequency interference caused by suspended particles as image structure information, amplifying snowflake noise.

Method used

A physical prior guidance method based on a dual-branch architecture is adopted. Physical parameters are estimated through an illumination encoder and a medium transmission encoder. Noise is suppressed by combining a multi-scale subspace restoration module and a variance suppression attention module. The spatial adaptive feature modulation module is used for refinement. A multi-component customized loss function is constructed for end-to-end optimization.

Benefits of technology

It effectively suppresses scattering noise, avoids color cast and artifacts while preserving physical interpretability, and improves the visual quality and robustness of underwater images. It can achieve efficient noise reduction and detail preservation in complex underwater environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123142014A_ABST
    Figure CN123142014A_ABST
Patent Text Reader

Abstract

The application discloses a kind of based on double branch architecture, from physical priori guided subspace restoration underwater image enhancement method, including two stages: first stage, degraded image is input parallel illumination encoder and medium transmission encoder;The former embeds multi-scale subspace restoration module at each level, imposes low-rank constraint through bottleneck mapping, and suppresses high-variance noise channel by means of variance suppression attention, and the latter predicts channel-by-channel transmission map and backscattering term;Subsequently, signal is decomposed into low-frequency and high-frequency components, respectively Different lower bound constraint is applied to complete band constraint reconstruction and normalization, and then color space fusion is carried out to obtain coarse enhancement result.The second stage is to form a double branch with the coarse enhancement result and the structure guide map, adjust the restoration strength according to the degradation degree through spatial adaptive feature modulation, and output the restored image.The application has physical interpretability while suppressing noise amplification, and can be used in fields such as ocean exploration, underwater navigation and biological monitoring.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of underwater image processing technology, and more particularly to an underwater image enhancement method based on a dual-branch architecture and guided by physical priors for subspace restoration. Background Technology

[0002] Underwater imaging plays an irreplaceable role in numerous scientific and industrial applications, including ocean exploration, autonomous underwater vehicles, and biological monitoring. However, due to the inherent optical properties of water, images acquired underwater often suffer from severe image quality degradation. The propagation of light underwater is primarily governed by two fundamental physical mechanisms: wavelength-dependent absorption and light scattering. Because water molecules and dissolved substances exhibit significant differences in their absorption coefficients for different wavelengths of light, red light (600-700 nanometers) attenuates rapidly over a propagation distance of several meters, resulting in a predominantly bluish-green tint in underwater images. Simultaneously, suspended minerals and organic particles in the water induce forward and backward scattering. Forward scattering blurs target details and reduces resolution, while backward scattering superimposes additional scattered light along the imaging path, compressing the image's dynamic range, reducing contrast, and producing a large amount of hazy, stray light. To characterize the aforementioned degradation process, the Jaffe-McGlamery underwater imaging model is commonly used in the field to mathematically describe the degradation process, representing the observed image as a linear superposition of the attenuated component of the target reflected light and the backscattered component, thereby providing an analytical physical basis for underwater image restoration.

[0003] Currently, underwater image enhancement technology can be broadly divided into two research directions. The first is physical model-based image restoration methods: these methods treat the underwater imaging process as reversible, estimating the scene's transmittance and backscattering parameters, and then performing inverse operations on the underwater image imaging model to reconstruct a clear original image. Since each intermediate quantity has a clear physical meaning, these methods possess good physical interpretability. To alleviate the ill-conditioned nature of parameter estimation, existing techniques typically introduce artificially designed prior conditions, such as underwater dark channel prior algorithms, to constrain the solution space for transmittance. The second is data-driven learning methods: especially algorithms built upon convolutional neural networks and generative adversarial networks, driven by large-scale degraded-clear image pairing data, directly learning the mapping relationship between degraded underwater images and enhanced clear images. This eliminates the need for explicit estimation of physical parameters, resulting in high inference efficiency and significant visual improvement effects across various scenarios. In recent years, hybrid paradigms combining these two approaches have emerged, attempting to introduce physical constraints into deep learning frameworks to improve the model's generalization ability and the interpretability of the results.

[0004] However, the aforementioned existing technologies still have significant shortcomings. First, physical model-based restoration methods heavily rely on artificially designed prior conditions. Underwater environments are complex and variable; in scenarios with uneven lighting, significant differences in water turbidity, or interference from artificial light sources, prior assumptions such as dark channels are easily invalidated, leading to deviations in transmittance and backscattering parameter estimations. This results in color distortion, local over-enhancement, or residual fog in the restoration results, making it difficult to guarantee the algorithm's robustness. Second, purely data-driven learning methods lack explicit physical constraints, resulting in poor model interpretability. Their outputs are difficult to interpret and verify using physical quantities from the imaging process. Furthermore, when the training data distribution does not match the actual measured water area, the processed image is prone to artifacts and color shifts. Third, the conventional attention mechanisms widely used in existing methods typically use feature response intensity as the weighting criterion. This can easily misjudge high-frequency interference caused by suspended particulate matter as crucial image structural information, amplifying noise similar to snowflakes during feature enhancement and further degrading the visual quality of the image. Therefore, how to achieve efficient noise reduction while possessing physical interpretability, so that the enhancement results not only conform to the laws of underwater optical propagation, but also effectively suppress scattering noise, is a technical problem that urgently needs to be solved in this field. Summary of the Invention

[0005] To address the technical challenges of existing underwater image enhancement methods, such as physical model-based restoration methods that heavily rely on manually designed priors and are prone to failure under uneven lighting and variable aquatic environments, purely data-driven learning methods that lack explicit physical constraints, have poor interpretability, and are prone to artifacts, and conventional attention mechanisms that easily misinterpret high-frequency interference caused by suspended particles as image structure information and amplify snowflake noise, making it difficult to achieve efficient noise reduction while maintaining physical interpretability, this paper proposes a subspace restoration underwater image enhancement method based on a dual-branch architecture and guided by physical priors.

[0006] The technical means employed in this invention are as follows: A subspace restoration underwater image enhancement method based on a dual-branch architecture and guided by physical priors includes: S1. Obtain degraded underwater RGB observation images and construct a Physically Guided Subspace Restoration Network (PhySR-Net), including a Physical Information Coarse Estimation Module (PICE) and a Dual Condition Refinement Module (DCRM). S2. In the physical information coarse estimation module, the underwater RGB observation images are input into the parallel-set illumination encoder (SIE) and medium transmission encoder (MTE) respectively. Based on the underwater imaging model, the coarse-grained restoration results with physical constraints are solved, and the structure guidance map and coarse enhancement results are output. S3. In the dual-condition refinement module, the coarse enhancement result is used as the initial input of the RGB feature branch, and the structure guidance map is copied and expanded into a three-channel tensor as the initial input of the structure guidance feature branch. The spatial adaptive feature modulation module (SAFM) fuses the information of the two branches at each network layer, and the final restored image is output after encoding and decoding by the U-shaped network structure. S4. Construct a multi-component customized loss function and perform end-to-end joint optimization on the physical information coarse estimation module and the dual-condition refinement module to obtain the trained PhySR-Net. Input the underwater image to be enhanced into the trained PhySR-Net and output the enhanced underwater image.

[0007] Further, step S1 includes: S11. Acquire degraded underwater RGB observation images and normalized to pixel values The interval is used to obtain the network input tensor. ,in and These are the height and width of the image, respectively; S12. Construct a physical information coarse estimation module (PICE). The physical information coarse estimation module (PICE) includes a light encoder (SIE), a medium transmission encoder (MTE) set in parallel, and a fusion unit based on a physical model. The light encoder (SIE) is used to restore the image structural details and light components, and the medium transmission encoder (MTE) is used to model the properties of the underwater environment medium. S13. Construct a dual-condition refinement module (DCRM). The dual-condition refinement module (DCRM) includes a 6-layer encoding stage and a 5-layer decoding stage. Each stage embeds a residual block and a spatial adaptive feature modulation module (SAFM), and the overall architecture follows a U-shaped network design. S14. Establish an underwater imaging model as the physical constraint for the Physics-Guided Subspace Restoration Network (PhySR-Net). The underwater imaging model is as follows:

[0008] in, For the clear image to be restored, This is a spatially variable channel-by-channel transmittance map. It is backscattered light. This indicates element-wise multiplication.

[0009] Further, step S2 includes: S21. Transfer the underwater RGB observation image The illumination encoder (SIE) and the medium transmission encoder (MTE) are set in parallel respectively. The illumination encoder (SIE) extracts the illumination features, and the medium transmission encoder (MTE) extracts the perceived degradation features and completes the physical parameter solution. S22. In each stage of the illumination encoder (SIE), hierarchical features are extracted sequentially through the residual block and the multi-scale subspace restoration module (MSRB). The illumination encoder (SIE) consists of six sequentially connected stages, with the feature channel dimensions of the six stages being as follows: This allows for the gradual integration of subspace projection operations across multiple resolution levels, forming a hierarchical subspace restoration strategy (HSR). S23, in the medium transmission encoder (MTE) according to The perceptually degraded hierarchical features are extracted level by level, and physical parameters are output at the end of the medium transmission encoder (MTE) via two parallel prediction heads:

[0010]

[0011] in, For the Sigmoid activation function, This is the output feature map of the last stage of the Medium Transmission Encoder (MTE) branch. This is a channel-by-channel transmission diagram. This is the global backscattering term; S24. Based on the hierarchical features output by the illumination encoder (SIE) After passing through a near-symmetric decoder and Convolutional, Sigmoid activation output single-channel structure guide diagram :

[0012] S25. Physical parameters output by the two parallel prediction heads. and Perform frequency domain decoupling physical inversion to obtain coarse-grained restoration results under physical constraints. And the coarse-grained restoration results Perform minimum normalization and maximum normalization to obtain the normalized result. ; S26, in Color space guides single-channel structure diagram With normalization results Fusion yields coarse enhancement results. :

[0013] That is, using a single-channel structure to guide the diagram As a brightness channel normalized results chromaticity components as Channels and aisle.

[0014] Further, in step S22, the multi-scale subspace restoration module (MSRB) extracts hierarchical features including: S221. Input features ,through Convolution with unified channel dimension and instance normalization and The activation mapping is applied to a unified feature space, and the calculation formula is as follows:

[0015] in, Input the number of channels. The number of channels after transformation. and These represent the input feature map and the transformed feature map, respectively. for Convolutional layers are used to convert the channel dimension from... Convert to ; Representative instance normalization, It is a Gaussian error linear unit; S222, By compression ratio The two sets of reduced-rank bottleneck networks generate two sets of hidden representations, as follows:

[0016]

[0017] in, , ; S223. Flatten the spatial dimension of the features into a single dimension, and perform matrix transpose to construct the matrix:

[0018]

[0019] S224. Obtain the low-rank feature map through matrix multiplication, and restore the dimension to the original spatial dimension:

[0020] Through the bottleneck layer channel dimension The effective rank of implicit constraint features avoids performing explicit matrix factorization operations during the inference phase; S225. Introduce a variance suppression attention module (VSA) to the low-rank features:

[0021] To explicitly suppress noisy channels that lack structural information and have high variance before multi-scale feature fusion; S226, to Set of convolution kernel sizes for parallel execution Depth-separable convolution operations, concatenated along the channel dimension and then... Convolutional fusion:

[0022] in, Represents the splicing of channel dimensions; ; S227, Output the low-rank branch With multi-scale branch output splicing along the passage, via Convolution compression to The channels are added to the shallow feature residuals, and the output is the feature result of fusing the two branches through adaptive residual scaling:

[0023] in, for Convolution, used to... 3D feature compression to aisle; This is a learnable scalar parameter, with an initial value of 0.1.

[0024] Further, in step S225, the processing of the variance suppression attention module (VSA) includes: S2251, Input Features Average pooling and max pooling are performed separately, and then mapped using a shared multilayer perceptron (MLP) to obtain the first-order statistics. and ; S2252, Regarding the input feature... aisle Variance pooling is performed to capture second-order statistics; the variance is calculated using the following formula:

[0025] in, coordinates Feature activation values ​​at the location, This is the spatial mean of the channel; S2253, Variance Suppression Attention Module (VSA) generates weight mappings channel by channel:

[0026] in, This indicates a mapping process of first pooling and then connecting to a shared multilayer perceptron (MLP). For the Sigmoid activation function, the term A negative feedback mechanism is introduced to explicitly suppress channels with excessive variance and unstable characteristics. For hyperparameters, ; S2254, Map the weights The input features are multiplied element-wise to produce the output features with reduced variance, which reduces the weights of noise channels with high variance caused by local particulate scattering.

[0027] Further, in step S25, the physical parameters output by the two parallel prediction heads... and Performing frequency domain decoupling physical inversion includes: S251, from the underwater imaging model The transformation yields the direct physical inversion formula:

[0028] S252. The transmittance-related signal is decomposed into a low-frequency fundamental component and a high-frequency detail component, as follows:

[0029] in, For low-frequency fundamental components, ; This refers to components that contain high-frequency structural details. ; S253, Take the low-frequency fundamental component To ensure effective color correction, a more stringent threshold is set for the high-frequency detail components. ,in To suppress high-frequency noise amplification; S254. Using the channel-by-channel prediction values ​​output by the media transmission encoder (MTE), perform inversion calculations for each channel to obtain coarse-grained restoration results under physical constraints:

[0030] S255. Normalize a single image to correct pixel value out-of-bounds errors caused by parameter estimation errors and improve model training stability, obtaining the normalized result. :

[0031] in, It is a very small constant. To prevent the denominator from being zero, the normalized value range is... .

[0032] Further, step S3 includes: S31, the coarse enhancement result As the initial input of the RGB feature branch The structure guide diagram Copy and expand into a three-channel tensor As the initial input of the structure-guided feature branch This makes the two branch passages dimensionally symmetrical; S32. In the l-th layer encoding stage, the features of the two branches are extracted through the residual blocks as follows:

[0033]

[0034] As the number of network layers increases, features The grayscale image is gradually transformed into a high-dimensional structured feature representation. S33. The information from the two branches is fused layer by layer using the Spatial Adaptive Feature Modulation (SAFM) module to obtain the fused features:

[0035] in, Representing the Layer RGB feature branches, Representative structural guide characteristic branches; S34, the unmodulated original features and After downsampling, the data is passed to the first... Layered encoding modules preserve the independent feature representation spaces of the two branches and fuse the features. As an information bridge between two branches, it is passed to the corresponding decoding layer via a jump connection; S35. After five layers of decoding, the image is upsampled and fused with skip connection features, and the final restored image is output at the end of the decoder. This process removes residual high-frequency particle noise from the coarse enhancement results and restores texture details.

[0036] Further, in step S33, the step of fusing the information from the two branches layer by layer through the Spatial Adaptive Feature Modulation (SAFM) module includes: S331, with coarse-grained RGB features With deep structure guidance features As input, two sets of complementary modulation parameters are extracted from the structure-guided branch through a three-layer network with instance normalization, as follows:

[0037]

[0038] Among them, the first Convolution maps input features to hidden dimensions. ; Convolution is used to capture local spatial context information; at the end Convolution maps features to the output dimension; and Both types of output feature dimensions are 1. The sigmoid activation function constrains the scaling factor to... The interval is used to avoid over-amplification of features; the Tanh activation function limits the offset to a certain range. To achieve bounded characteristic perturbations; S332, Guiding features of the structure Perform average pooling and max pooling along the channel dimension and then concatenate the results. Convolution and Sigmoid are used to generate spatial attention maps to locate structurally significant or quality-degraded regions in an image. The spatial attention map is shown below:

[0039] S333. Apply spatial attention weighting to the modulation parameters, allowing them to focus on key regions of the image structure:

[0040]

[0041] S334, Guiding features of the structure After performing global average pooling, Convolution and Sigmoid activation generate channel-wise global gating ,as follows:

[0042] in, Represents global average pooling; S335, combining spatial transformation and channel-by-channel gating mechanism, calculates the modulation output:

[0043] in, The learnable residual weights are initialized to 0.

[0044] Further, step S4 includes: S41. Construct a multi-component customized loss function, including coarse augmentation results. Coarse-grained reconstruction loss between the real, sharp image and the final restored image Between and real clear images Reconstruction loss and perception loss, channel-by-channel transmission map With global backscattering term The loss due to the applied physical consistency constraint, and based on Color a priori color constraint loss; S42. The loss components are weighted and summed according to preset weights to obtain the total loss. The network parameters of the Physical Information Coarse Estimation Module (PICE) and the Dual Condition Refinement Module (DCRM) are jointly optimized in an end-to-end manner until the total loss converges, thus obtaining the trained Physical Guided Subspace Restoration Network (PhySR-Net). S43. During the inference phase, the underwater image to be enhanced is input into the trained PhySR-Net (PhyGuided Subspace Restoration Network). The Physical Information Coarse Estimation Module (PICE) outputs a coarse enhancement result that conforms to physical laws and has undergone color correction. Then, the Dual Conditional Refinement Module (DCRM) adaptively adjusts the restoration intensity based on the degree of degradation in local image regions, and outputs the final restored image. Furthermore, the subspace restoration underwater image enhancement method is implemented for real-time inference on a graphics processor.

[0045] Compared with the prior art, the present invention has the following advantages: 1. This invention provides a subspace restoration underwater image enhancement method based on a dual-branch architecture and guided by physical priors. By constructing a Physical Information Coarse Estimation (PICE) module, it replaces manually designed prior conditions with parallel illumination encoders (SIE) and medium transmission encoders (MTE). The network directly estimates scene structure, illumination information, channel-by-channel transmission maps, and global backscattering terms. This achieves the goal of preserving the physical interpretability of the Jaffee-McGranley underwater imaging model while overcoming the limitations of priors such as underwater dark channels that are prone to failure in scenarios with uneven illumination and variable water turbidity. The solution of physical parameters can adaptively adapt to the spatial non-uniformity and channel correlation naturally existing in different water areas, thus improving the robustness of the algorithm in complex underwater environments.

[0046] 2. This invention provides an underwater image enhancement method based on a dual-branch architecture and guided by physical priors, which embeds multi-scale subspace restoration modules at various levels of the illumination encoder (SIE). It implicitly applies low-rank constraints using a learnable bottleneck mapping with a compression ratio of 2 to complete the subspace projection of the feature manifold, and combines this with a convolutional kernel size of [missing information]. The multi-scale depth-separable convolutional branches capture noise features of different frequencies, enabling the suppression of noise within the feature manifold without increasing the overhead of explicit matrix factorization in the inference stage. It also achieves parallel removal and complementary fusion of multi-frequency noise, significantly reducing the granular scattering noise that is prevalent in underwater images.

[0047] 3. The present invention provides a subspace restoration underwater image enhancement method based on a dual-branch architecture and guided by physical priors. By introducing a variance suppression attention module with a negative feedback mechanism on low-rank features, the second-order statistic of channel spatial variance is used to explicitly measure the degree of feature fluctuation. Suppression weights are applied to noise channels with high variance due to local particle scattering. This overcomes the shortcomings of conventional attention mechanisms that rely solely on first-order response intensity weighting and are prone to misjudging high-frequency particle interference as key image structural information and amplifying it. It blocks the path of noise being amplified step by step as the network deepens from the feature selection level.

[0048] 4. This invention provides a subspace restoration underwater image enhancement method based on a dual-branch architecture and guided by physical priors. By employing a frequency domain decoupling physical inversion mechanism, the transmittance-related signal is decomposed into a low-frequency fundamental component and a high-frequency detail component, and then applied to each component separately. and By applying differential lower bound constraints before performing constrained reconstruction, we can ensure the color correction effect of low-frequency components while avoiding numerical instability and noise increase caused by dividing by the minimum value in the low transmittance region during direct physical inversion. This achieves a balance between physical rationality and numerical stability in the restoration results.

[0049] 5. This invention provides a subspace restoration underwater image enhancement method based on a dual-branch architecture and guided by physical priors, which... Color space fusion replaces the luminance channel with a color distortion-free grayscale structure map predicted by the network, while the chromaticity component follows the result of constrained physical inversion. This achieves the complete preservation of the scene's structure and texture information while correcting the color shift artifacts left by parameter estimation errors. It solves the dilemma of obvious color shift in the restoration result of pure physical model and the loss of detail in pure data-driven methods.

[0050] 6. The present invention provides a subspace restoration underwater image enhancement method based on a dual-branch architecture and guided by physical priors. By constructing a dual-conditional refinement module (DCRM), a dual-branch system is formed by coarse enhancement results and structural guidance maps. A spatial adaptive feature modulation module generates scale parameters and offset parameters based on spatial attention weighting and channel-by-channel global gating. Gating transformation is applied to RGB features, enabling the restoration intensity to be dynamically adjusted according to the degree of degradation in local image regions. This method can enhance severely degraded areas such as distant views without destroying well-lit foreground details, avoiding over-enhancement and detail loss caused by global uniform processing.

[0051] 7. This invention provides a subspace restoration underwater image enhancement method based on a dual-branch architecture and guided by physical priors. By designing a multi-component customized loss function, the two stages are jointly optimized end-to-end. Lightweight designs such as a gating structure with learnable residual weights initialized to zero and implicit low-rank mapping are adopted. This enables the network to outperform existing state-of-the-art algorithms on multiple reference and non-reference metrics, including peak signal-to-noise ratio (PSNR), structural similarity (SSIM), underwater image quality metric (UIQM), and underwater color image quality evaluation (UCIQE), on public datasets such as UIEB and EUVP. At the same time, it can achieve real-time inference on mainstream graphics processors, balancing enhanced performance and engineering deployment efficiency.

[0052] In summary, applying the technical solution of this invention, existing physical model-based restoration methods, due to their high reliance on manually designed priors, are prone to failure under uneven lighting and variable aquatic environments, leading to deviations in transmittance and backscattering parameter estimations, color distortion in the restoration results, and residual fog-like appearance. Purely data-driven learning methods, lacking explicit physical constraints, have poor interpretability and are prone to artifacts. Conventional attention mechanisms easily misjudge high-frequency interference caused by suspended particles as image structure information, amplifying snowflake noise. This invention addresses these problems by using a first-stage physical information coarse estimation module to achieve direct network estimation of transmittance and backscattering components and frequency domain decoupling inversion with dual threshold constraints, ensuring physical interpretability and avoiding noise amplification during the inversion process. A combination of a multi-scale subspace restoration module and a variance-suppressed attention module suppresses unstable channels dominated by noise at the feature level, blocking the progressive amplification of noise. A second-stage dual-condition refinement module and a spatially adaptive feature modulation module achieve refined restoration adaptively according to the degree of local degradation, balancing enhancement of severely degraded areas with detail preservation of good areas. Therefore, the technical solution of the present invention solves the problems in the prior art that it is difficult to achieve efficient noise reduction while possessing physical interpretability, the restoration results are prone to color shift and artifacts, and the noise is easily amplified by the attention mechanism. It achieves a better balance between physical rationality, detail preservation and artifact suppression.

[0053] Based on the above reasons, this invention can be widely applied in fields such as marine resource exploration and marine environmental monitoring, visual navigation and obstacle avoidance of autonomous underwater vehicles and underwater robots, underwater biological monitoring and ecological surveys, underwater engineering facility inspection and defect detection, underwater archaeology and shipwreck detection, aquaculture status monitoring, underwater search and rescue and salvage operations, and underwater film and television shooting and image evidence collection. Attached Figure Description

[0054] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0055] Figure 1 This is a diagram of the overall structure of PhySR-Net of the present invention.

[0056] Figure 2 This is a structural diagram of the light encoder (SIE) and multi-scale subspace restoration module (MSRB) of the present invention.

[0057] Figure 3 This is a structural diagram of the medium transmission encoder (MTE) and residual block of the present invention.

[0058] Figure 4 For embodiments of the present invention, different minimum transmission thresholds are provided on the UIEB verification set. The numerical distribution of peak signal-to-noise ratio (PSNR) and structural similarity (SSIM) under the given conditions.

[0059] Figure 5 This is a qualitative visualization of the estimated physical parameters on the UCCS test sample provided in this embodiment of the invention. Detailed Implementation

[0060] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0061] It should be noted that the terms "comprising" and "having" and any variations thereof in the specification, claims and accompanying drawings of this invention are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such process, method, product or device.

[0062] This invention provides a subspace restoration underwater image enhancement method based on a dual-branch architecture and guided by physical priors, comprising: S1. Obtain degraded underwater RGB observation images and construct a Physically Guided Subspace Restoration Network (PhySR-Net), including a Physical Information Coarse Estimation Module (PICE) and a Dual Condition Refinement Module (DCRM). S2. In the physical information coarse estimation module, the underwater RGB observation images are input into the parallel-set illumination encoder (SIE) and medium transmission encoder (MTE) respectively. Based on the underwater imaging model, the coarse-grained restoration results with physical constraints are solved, and the structure guidance map and coarse enhancement results are output. S3. In the dual-condition refinement module, the coarse enhancement result is used as the initial input of the RGB feature branch, and the structure guidance map is copied and expanded into a three-channel tensor as the initial input of the structure guidance feature branch. The spatial adaptive feature modulation module (SAFM) fuses the information of the two branches at each network layer, and the final restored image is output after encoding and decoding by the U-shaped network structure. S4. Construct a multi-component customized loss function and perform end-to-end joint optimization on the physical information coarse estimation module and the dual-condition refinement module to obtain the trained PhySR-Net. Input the underwater image to be enhanced into the trained PhySR-Net and output the enhanced underwater image.

[0063] In a specific implementation, as a preferred embodiment of the present invention, step S1 includes: S11. Acquire degraded underwater RGB observation images and normalized to pixel values The interval is used to obtain the network input tensor. ,in and These are the height and width of the image, respectively; S12. Construct a physical information coarse estimation module (PICE). The physical information coarse estimation module (PICE) includes a light encoder (SIE), a medium transmission encoder (MTE) set in parallel, and a fusion unit based on a physical model. The light encoder (SIE) is used to restore the image structural details and light components, and the medium transmission encoder (MTE) is used to model the properties of the underwater environment medium. S13. Construct a dual-condition refinement module (DCRM). The dual-condition refinement module (DCRM) includes a 6-layer encoding stage and a 5-layer decoding stage. Each stage embeds a residual block and a spatial adaptive feature modulation module (SAFM), and the overall architecture follows a U-shaped network design. S14. Establish an underwater imaging model as the physical constraint for the Physics-Guided Subspace Restoration Network (PhySR-Net). The underwater imaging model is as follows:

[0064] in, For the clear image to be restored, This is a spatially variable channel-by-channel transmittance map. It is backscattered light. This indicates element-wise multiplication. In this embodiment, the Physically Guided Subspace Reconstruction Network (PhySR-Net) does not rely on manually designed prior terms, but is directly predicted by the Medium Transmission Encoder (MTE). and To adapt to the natural spatial non-uniformity and channel connectivity of different aquatic environments.

[0065] In this embodiment, as Figure 2 As shown, the overall architecture of PhySR-Net is presented. This network framework consists of two stages: the first stage is the Physical Prior Coarse Estimation Module (PICE), which performs preliminary image restoration with physical constraints; the second stage is the Biconditional Refinement Module (DCRM), which is responsible for refining the restoration of detailed information. This network combines physical modeling with hierarchical neural network representation learning, achieving a better trade-off between physical plausibility and detail preservation, while also suppressing the noise amplification problem often caused by traditional attention mechanisms.

[0066] In a specific implementation, as a preferred embodiment of the present invention, step S2 includes: S21. Transfer the underwater RGB observation image The illumination encoder (SIE) and the medium transmission encoder (MTE) are set in parallel respectively. The illumination encoder (SIE) extracts the illumination features, and the medium transmission encoder (MTE) extracts the perceived degradation features and completes the physical parameter solution. S22. In each stage of the illumination encoder (SIE), hierarchical features are extracted sequentially through the residual block and the multi-scale subspace restoration module (MSRB). The illumination encoder (SIE) consists of six sequentially connected stages, with the feature channel dimensions of the six stages being as follows: This allows for the gradual integration of subspace projection operations across multiple resolution levels, forming a hierarchical subspace restoration strategy (HSR). S23, in the medium transmission encoder (MTE) according to The perceptually degraded hierarchical features are extracted level by level, and physical parameters are output at the end of the medium transmission encoder (MTE) via two parallel prediction heads:

[0067]

[0068] in, For the Sigmoid activation function, This is the output feature map of the last stage of the Medium Transmission Encoder (MTE) branch. This is a channel-by-channel transmission diagram. This is the global backscattering term; S24. Based on the hierarchical features output by the illumination encoder (SIE) After passing through a near-symmetric decoder and Convolutional, Sigmoid activation output single-channel structure guide diagram :

[0069] S25. Physical parameters output by the two parallel prediction heads. and Perform frequency domain decoupling physical inversion to obtain coarse-grained restoration results under physical constraints. And the coarse-grained restoration results Perform minimum normalization and maximum normalization to obtain the normalized result. ; S26, in Color space guides single-channel structure diagram With normalization results Fusion yields coarse enhancement results. :

[0070] That is, using a single-channel structure to guide the diagram As a brightness channel normalized results chromaticity components as Channels and aisle.

[0071] In this embodiment, as Figure 2 As shown, the structural diagrams of the illumination encoder (SIE) and the multi-scale subspace restoration module (MSRB) are presented, as follows. Figure 3 As shown, the architecture of the Medium Transmission Encoder (MTE) and the residual block is presented. Figure 2 The upper sub-figure shows the illumination encoder (SIE), which consists of six stages connected in series, each equipped with a residual block and a multi-scale subspace restoration module (MSRB). Figure 2 The subfigure below illustrates the internal architecture of the Multi-Scale Subspace Reconstruction Module (MSRB), which consists of two parts: a variance suppression attention branch and a multi-scale depthwise separable convolution branch. Specifically: The illumination encoder (SIE) is primarily used to restore the structural details and illumination components of an image. To address the inherent non-uniform noise problem in underwater scenes, this paper embeds a multi-scale subspace restoration module (MSRB) into each stage of the encoder network:

[0072] This approach integrates subspace projection operations at multiple resolution levels, forming a hierarchical subspace restoration (HSR) strategy that enables stable feature extraction in complex scattering environments.

[0073] Although existing research has used subspace projection for low-light image enhancement, the multi-scale subspace restoration module (MSRB) designed in this invention differs fundamentally in three aspects: I. Hierarchical Application: MSRB does not only operate at the input image level, but also at six different feature scales (channel dimensions in order of importance). Perform the operations on each of the following.

[0074] II. Low-rank decomposition: Unlike explicit decomposition methods (such as projection algorithms based on singular value decomposition), this paper implicitly applies low-rank constraints through learnable bottleneck mappings to avoid performing costly matrix decomposition operations during the inference phase.

[0075] III. Multi-scale denoising fusion: Multiple parallel denoising branches are set up, each branch using a different receptive field (set of convolutional kernel sizes). This allows us to capture noise characteristics at different frequencies.

[0076] In a specific implementation, as a preferred embodiment of the present invention, step S22, in which the multi-scale subspace restoration module (MSRB) extracts hierarchical features, includes: S221. Input features ,through Convolution with unified channel dimension and instance normalization and The activation mapping is applied to a unified feature space, and the calculation formula is as follows:

[0077] in, Input the number of channels. The number of channels after transformation. and These represent the input feature map and the transformed feature map, respectively. for Convolutional layers are used to convert the channel dimension from... Convert to ; Representative instance normalization, It is a Gaussian error linear unit; in this embodiment, the function of this layer is to unify the channel dimension and complete the preliminary denoising process before subspace decomposition.

[0078] S222, By compression ratio The two sets of reduced-rank bottleneck networks generate two sets of hidden representations, as follows:

[0079]

[0080] in, , ; S223. Flatten the spatial dimension of the features into a single dimension, and perform matrix transpose to construct the matrix:

[0081]

[0082] S224. Obtain the low-rank feature map through matrix multiplication, and restore the dimension to the original spatial dimension:

[0083] Through the bottleneck layer channel dimension The effective rank of implicit constraint features avoids performing explicit matrix factorization operations during the inference phase; S225. Introduce a variance suppression attention module (VSA) to the low-rank features:

[0084] To explicitly suppress noisy channels that lack structural information and have high variance before multi-scale feature fusion; S226, to Set of convolution kernel sizes for parallel execution Depth-separable convolution operations, concatenated along the channel dimension and then... Convolutional fusion:

[0085] in, Represents the splicing of channel dimensions; ; S227, Output the low-rank branch With multi-scale branch output splicing along the passage, via Convolution compression to The channels are added to the shallow feature residuals, and the output is the feature result of fusing the two branches through adaptive residual scaling:

[0086] in, for Convolution, used to... 3D feature compression to aisle; This is a learnable scalar parameter, with an initial value of 0.1.

[0087] In a specific implementation, as a preferred embodiment of the present invention, step S225 includes the following processing by the variance suppression attention module (VSA): S2251, Input Features Average pooling and max pooling are performed separately, and then mapped using a shared multilayer perceptron (MLP) to obtain the first-order statistics. and ; S2252, Regarding the input feature... aisle Variance pooling is performed to capture second-order statistics; the variance is calculated using the following formula:

[0088] in, coordinates Feature activation values ​​at the location, This is the spatial mean of the channel; S2253, Variance Suppression Attention Module (VSA) generates weight mappings channel by channel:

[0089] in, This indicates a mapping process of first pooling and then connecting to a shared multilayer perceptron (MLP). For the Sigmoid activation function, the term A negative feedback mechanism is introduced to explicitly suppress channels with excessive variance and unstable characteristics. For hyperparameters, ; S2254, Map the weights The input features are multiplied element-wise to produce the output features with reduced variance, which reduces the weights of noise channels with high variance caused by local particulate scattering.

[0090] In a specific implementation, as a preferred embodiment of the present invention, in step S25, the physical parameters output by the two parallel prediction heads are... and Performing frequency domain decoupling physical inversion includes: S251, from the underwater imaging model The transformation yields the direct physical inversion formula:

[0091] In this embodiment, the calculation is prone to numerical instability in the region of low transmittance, which usually causes noise to be amplified significantly. Therefore, this direct inversion formula is not used as the final solution. S252. The transmittance-related signal is decomposed into a low-frequency fundamental component and a high-frequency detail component, as follows:

[0092] in, For low-frequency fundamental components, ; This refers to components that contain high-frequency structural details. ; S253, Take the low-frequency fundamental component To ensure effective color correction, a more stringent threshold is set for the high-frequency detail components. ,in To suppress high-frequency noise amplification; S254. Using the channel-by-channel prediction values ​​output by the media transmission encoder (MTE), perform inversion calculations for each channel to obtain coarse-grained restoration results under physical constraints:

[0093] S255. Normalize a single image to correct pixel value out-of-bounds errors caused by parameter estimation errors and improve model training stability, obtaining the normalized result. :

[0094] in, It is a very small constant. To prevent the denominator from being zero, the normalized value range is... .

[0095] In a specific implementation, as a preferred embodiment of the present invention, step S3 includes: S31, the coarse enhancement result As the initial input of the RGB feature branch The structure guide diagram Copy and expand into a three-channel tensor As the initial input of the structure-guided feature branch This makes the two branch passages dimensionally symmetrical; S32. In the l-th layer encoding stage, the features of the two branches are extracted through the residual blocks as follows:

[0096]

[0097] As the number of network layers increases, features The grayscale image is gradually transformed into a high-dimensional structured feature representation. S33. The information from the two branches is fused layer by layer using the Spatial Adaptive Feature Modulation (SAFM) module to obtain the fused features:

[0098] in, Representing the Layer RGB feature branches, Representative structural guide characteristic branches; S34, the unmodulated original features and After downsampling, the data is passed to the first... Layered encoding modules preserve the independent feature representation spaces of the two branches and fuse the features. As an information bridge between two branches, it is passed to the corresponding decoding layer via a jump connection; S35. After five layers of decoding, the image is upsampled and fused with skip connection features, and the final restored image is output at the end of the decoder. This process removes residual high-frequency particle noise from the coarse enhancement results and restores texture details.

[0099] In a specific implementation, as a preferred embodiment of the present invention, step S33, which involves performing layer-by-layer fusion of the information from the two branches using a spatial adaptive feature modulation module (SAFM), includes: S331, with coarse-grained RGB features With deep structure guidance features As input, two sets of complementary modulation parameters are extracted from the structure-guided branch through a three-layer network with instance normalization, as follows:

[0100]

[0101] Among them, the first Convolution maps input features to hidden dimensions. ; Convolution is used to capture local spatial context information; at the end Convolution maps features to the output dimension; and Both types of output feature dimensions are 1. The sigmoid activation function constrains the scaling factor to... The interval is used to avoid over-amplification of features; the Tanh activation function limits the offset to a certain range. To achieve bounded characteristic perturbations; S332, Guiding features of the structure Perform average pooling and max pooling along the channel dimension and then concatenate the results. Convolution and Sigmoid are used to generate spatial attention maps to locate structurally significant or quality-degraded regions in an image. The spatial attention map is shown below:

[0102] S333. Apply spatial attention weighting to the modulation parameters, allowing them to focus on key regions of the image structure:

[0103]

[0104] S334, Guiding features of the structure After performing global average pooling, Convolution and Sigmoid activation generate channel-wise global gating ,as follows:

[0105] in, Represents global average pooling; S335, combining spatial transformation and channel-by-channel gating mechanism, calculates the modulation output:

[0106] in, The learnable residual weights are initialized to 0. In this embodiment, the gated SFT module can specifically enhance severely degraded areas without destroying well-lit foreground details, efficiently combining physical prior constraints with color optimization effects.

[0107] In a specific implementation, as a preferred embodiment of the present invention, step S4 includes: S41. Construct a multi-component customized loss function, including coarse augmentation results. Coarse-grained reconstruction loss between the real, sharp image and the final restored image Between and real clear images Reconstruction loss and perception loss, channel-by-channel transmission map With global backscattering term The loss due to the applied physical consistency constraint, and based on Color a priori color constraint loss; S42. The loss components are weighted and summed according to preset weights to obtain the total loss. The network parameters of the Physical Information Coarse Estimation Module (PICE) and the Dual Condition Refinement Module (DCRM) are jointly optimized in an end-to-end manner until the total loss converges, thus obtaining the trained Physical Guided Subspace Restoration Network (PhySR-Net). S43. During the inference phase, the underwater image to be enhanced is input into the trained PhySR-Net (PhyGuided Subspace Restoration Network). The Physical Information Coarse Estimation Module (PICE) outputs a coarse enhancement result that conforms to physical laws and has undergone color correction. Then, the Dual Conditional Refinement Module (DCRM) adaptively adjusts the restoration intensity based on the degree of degradation in local image regions, and outputs the final restored image. Furthermore, the subspace restoration underwater image enhancement method is implemented for real-time inference on a graphics processor.

[0108] Example To rigorously evaluate the quantization performance of the PhySR-Net network, this embodiment employs seven industry-recognized evaluation metrics, categorized into two types: reference-based metrics and non-reference (blind) metrics. Reference evaluation indicators: For datasets containing real benchmark reference images (such as the UIEB dataset), this paper uses three metrics: Peak Signal-to-Noise Ratio (PSNR), Structural Similarity Index (SSIM), and Mean Squared Error (MSE). PSNR quantifies pixel-level image reconstruction accuracy; a higher value indicates less image noise. SSIM measures the degree of image structure restoration from the dimensions of brightness, contrast, and texture; a value closer to 1 indicates better structure preservation. MSE calculates the squared average of the differences between the reconstructed image and the reference image pixels, serving as a supplementary evaluation criterion for the first two metrics.

[0109] No reference (blind) evaluation indicators: In scenarios where no real-world benchmark images are available (such as the UCCS and U-45 datasets), and to uniformly measure the visual quality of images across all test benchmarks, this paper selects four no-reference evaluation metrics: Underwater Image Quality Metric (UIQM), Underwater Color Image Quality Evaluation Metric (UCIQE), and Natural Image Quality Evaluator (NIQE). The Underwater Image Quality Metric integrates color richness, sharpness, and contrast to comprehensively characterize the overall visual effect of underwater images; the Underwater Color Image Quality Evaluation Metric specifically scores the image's chroma, saturation, and brightness balance; and the Natural Image Quality Evaluator can score and evaluate the naturalness and human visual experience of enhanced images without prior knowledge of image distortion information.

[0110] To comprehensively evaluate the performance of PhySR-Net, this embodiment selects 13 state-of-the-art (SOTA) benchmark methods for comparative analysis. These benchmark methods cover the four major categories in the field of underwater image enhancement (UIE): (1) Traditional enhancement methods: GC, ICM; (2) Physical model-based restoration methods: UCM, DCP, IBLA, UDCP; (3) Deep learning-based methods: UWCNN, Phaseformer, NU2-Net; (4) Hybrid paradigm approach that integrates physical priors: DICAM, FIVE_A+, CDF-UIE, ULAP.

[0111] To ensure fairness in the comparison, all experiments were conducted under identical conditions. This evaluation was conducted from both quantitative and qualitative perspectives, employing mainstream reference-based and non-reference-based evaluation metrics to measure image reconstruction fidelity, color restoration effectiveness, and structural information preservation capabilities, respectively. Below are performance comparison tables and ablation experiment charts for the models on different datasets: Table 1. Quantitative comparison experiments conducted on the UCCS and U_45 datasets.

[0112] The best result is highlighted in red, and the second-best result is highlighted in blue.

[0113] Table 2 provides a comprehensive quantitative comparison of data on the UIEB dataset, using both reference metrics and non-reference metrics.

[0114] The best result is highlighted in red, and the second-best result is highlighted in blue.

[0115] Table 3 Ablation experiments were conducted on the UIEB test set (90 images in total).

[0116] Each row represents a new module added sequentially to the baseline model.

[0117] Table 4. Ablation experiments on the MSRB structure on the UIEB test set.

[0118] “LR” represents low-rank decomposition, and “MS” represents multi-scale convolution.

[0119] like Figure 4 As shown, the numerical distribution of (a) peak signal-to-noise ratio (PSNR) and (b) structural similarity (SSIM) is presented on the UIEB validation set under different minimum transmission thresholds (tmin).

[0120] Table 5 Comparison of computational efficiency based on 256×256 resolution images (RTX 4060 graphics card)

[0121] like Figure 5 As shown, this is a qualitative visualization of the estimated physical parameters on the UCCS test sample. From left to right: the input degraded image, the estimated transmittance map (showing red, green, and blue single channels respectively), the estimated backscattering map, and the final restored output image. The transmittance map exhibits wavelength-related attenuation characteristics (lower values ​​in the red channel), while also possessing a spatially smooth structure that matches the depth information.

[0122] The experimental conditions and setup instructions are as follows: Dataset: To verify the effectiveness and robustness of the PhySR-Net model, this embodiment conducts comprehensive testing on three sets of underwater image benchmark datasets: the UIEB dataset, the UCCS dataset, and the U-45 dataset.

[0123] The dataset covers various underwater scenes and image degradation issues, including color shifts caused by changes in light wavelength, image blurring caused by water turbidity, and light attenuation.

[0124] The UIEB dataset serves as a core benchmark dataset for model training and quantitative evaluation. Composed of real-world underwater images and high-resolution reference paired images, it provides pixel-level supervision information. Following general experimental guidelines, 890 image pairs were selected for model training and optimization, while the remaining 90 image pairs were used as a test set to evaluate the basic image restoration performance. To further validate the model's generalization ability under different aquatic environments, the UCCS and U-45 datasets were used as cross-validation benchmark datasets.

[0125] The UCCS dataset, synthesized based on the Jaffee-McGrahamery optical imaging model, allows for testing the model's ability to estimate physical parameters for different Jeroff water body types under controlled experimental conditions. The U-45 dataset contains 45 real-world underwater images of varying scenes, enabling the evaluation of the model's performance on images with severe color distortion and low contrast, both without reference quantitative indicators and at the subjective visual level. During the experiments, training and testing sets were rigorously separated to ensure the reliability of the results and the fairness of the evaluation.

[0126] Experimental implementation details: PhySR-Net is built on the PyTorch 1.12 framework and trained using a single NVIDIA RTX 4060 graphics card. The optimizer used is AdamW, and the initial learning rate is set to... The weight decay coefficient is A cosine annealing strategy is used to decay the learning rate, and a maximum iteration period is set. The learning rate is halved every 50 training epochs. The model undergoes a total of 300 training epochs, with a batch size of 16.

[0127] The input image is randomly cropped to Image patches of pixels were used, and data augmentation was performed using two methods: random horizontal flipping (probability 0.5) and random rotation of ±90 degrees (probability 0.5). To ensure the reproducibility of experimental results, various random seeds were fixed: PyTorch seed 42, NumPy seed 42, and Python basic environment seed 42, and deterministic algorithms were enabled within feasible limits. For the UIEB dataset, a conventional partitioning scheme was adopted: 800 samples for training and 90 samples for testing. 10% of the training data was reserved as a validation set. Training on the UIEB dataset took approximately 18 hours. For the loss function hyperparameters, we set the weights based on the grid search validation results: grayscale loss weights... Set the weight to 1.0 (baseline value) for transmission loss. Set to 0.5, backscattering loss weight A weight of 0.3 is assigned (weights are allocated proportionally to the estimated difficulty, because transmission maps require finer spatial details compared to backscattering terms); used for the DCRM refinement module. Loss weights Set to 1.0, structural similarity loss weight Set to 0.5. Perceived loss weights Set to 0.1 to balance pixel-level precision with visual perception. Variance suppression coefficient. Sensitivity analysis on the validation set determined the value to be 0.5, with an optimal range of 0.3–0.7 (see supplementary materials for details). Residual scaling factor within the multi-scale residual block (MSRB). Initialize it to 0.1 to avoid amplifying noise in the early stages of training. This parameter will be adaptively learned and updated during the training process.

[0128] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A subspace restoration underwater image enhancement method based on a dual-branch architecture and guided by physical priors, characterized in that, include: S1. Obtain degraded underwater RGB observation images and construct a physical-guided subspace restoration network, including a physical information coarse estimation module and a dual-condition refinement module; S2. In the physical information coarse estimation module, the underwater RGB observation images are input into the parallel-set illumination encoder and medium transmission encoder respectively. Based on the underwater imaging model, the coarse-grained restoration results with physical constraints are solved, and the structure guidance map and coarse enhancement results are output. S3. In the dual-condition refinement module, the coarse enhancement result is used as the initial input of the RGB feature branch, and the structure guidance map is copied and expanded into a three-channel tensor as the initial input of the structure guidance feature branch. The spatial adaptive feature modulation module fuses the information of the two branches at each network layer, and the final restored image is output after encoding and decoding by the U-shaped network structure. S4. Construct a multi-component customized loss function and perform end-to-end joint optimization on the physical information coarse estimation module and the dual-condition refinement module to obtain the trained physical guidance subspace restoration network. Input the underwater image to be enhanced into the trained physical guidance subspace restoration network and output the enhanced underwater image.

2. The underwater image enhancement method for subspace restoration based on a dual-branch architecture and guided by physical priors, as described in claim 1, is characterized in that... Step S1 includes: S11. Acquire degraded underwater RGB observation images and normalized to pixel values The interval is used to obtain the network input tensor. ,in and These are the height and width of the image, respectively; S12. Construct a physical information coarse estimation module. The physical information coarse estimation module includes a light encoder, a medium transmission encoder and a fusion unit based on a physical model, which are set in parallel. The light encoder is used to restore the image structural details and light components, and the medium transmission encoder is used to model the underwater environment medium properties. S13. Construct a dual-condition refinement module, which includes a 6-layer encoding stage and a 5-layer decoding stage. Each stage embeds a residual block and a spatial adaptive feature modulation module, and the overall architecture follows a U-shaped network design. S14. Establish an underwater imaging model as the physical constraint for the physical guidance subspace restoration network. The underwater imaging model is as follows: in, For the clear image to be restored, This is a spatially variable channel-by-channel transmittance map. It is backscattered light. This indicates element-wise multiplication.

3. The underwater image enhancement method for subspace restoration based on a dual-branch architecture and guided by physical priors, as described in claim 1, is characterized in that... Step S2 includes: S21. Transfer the underwater RGB observation image The light encoder and the medium transmission encoder, which are set in parallel, are input respectively. The light encoder extracts the light features, and the medium transmission encoder extracts the perceived degradation features and completes the physical parameter solution. S22. In each stage of the illumination encoder, hierarchical features are extracted sequentially through the residual block and the multi-scale subspace restoration module. The illumination encoder consists of six stages connected in series, with the feature channel dimensions of the six stages being as follows: This allows for the gradual integration of subspace projection operations across multiple resolution levels, forming a hierarchical subspace restoration strategy. S23, in the medium transmission encoder, according to The perceptually degraded hierarchical features are extracted step by step, and physical parameters are output at the end of the medium transmission encoder via two parallel prediction heads: in, For the Sigmoid activation function, This is the output feature map of the last stage of the medium transmission encoder branch. This is a channel-by-channel transmission diagram. This is the global backscattering term; S24. Based on the hierarchical features output by the illumination encoder. After passing through a near-symmetric decoder and Convolutional, Sigmoid activation output single-channel structure guide diagram : S25. Physical parameters output by the two parallel prediction heads. and Perform frequency domain decoupling physical inversion to obtain coarse-grained restoration results under physical constraints. And the coarse-grained restoration results Perform minimum normalization and maximum normalization to obtain the normalized result. ; S26, in Color space guides single-channel structure diagram With normalization results Fusion yields coarse enhancement results. : That is, using a single-channel structure to guide the diagram As a brightness channel normalized results chromaticity components as Channels and aisle.

4. The underwater image enhancement method for subspace restoration based on a dual-branch architecture and guided by physical priors, as described in claim 3, is characterized in that... In step S22, the multi-scale subspace restoration module extracts hierarchical features including: S221. Input features ,through Convolution with unified channel dimension and instance normalization and The activation mapping is applied to a unified feature space, and the calculation formula is as follows: in, Input the number of channels. The number of channels after transformation. and These represent the input feature map and the transformed feature map, respectively. for Convolutional layers are used to convert the channel dimension from... Convert to ; Representative instance normalization, It is a Gaussian error linear unit; S222, By compression ratio The two sets of reduced-rank bottleneck networks generate two sets of hidden representations, as follows: in, , ; S223. Flatten the spatial dimension of the features into a single dimension, and perform matrix transpose to construct the matrix: S224. Obtain the low-rank feature map through matrix multiplication, and restore the dimension to the original spatial dimension: Through the bottleneck layer channel dimension The effective rank of implicit constraint features avoids performing explicit matrix factorization operations during the inference phase; S225. Introduce a variance suppression attention module to the low-rank features: To explicitly suppress noisy channels that lack structural information and have high variance before multi-scale feature fusion; S226, to Set of convolution kernel sizes for parallel execution Depth-separable convolution operations, concatenated along the channel dimension and then... Convolutional fusion: in, Represents the splicing of channel dimensions; ; S227, Output the low-rank branch With multi-scale branch output splicing along the passage, via Convolution compression to The channels are added to the shallow feature residuals, and the output is the feature result of fusing the two branches through adaptive residual scaling: in, for Convolution, used to... 3D feature compression to aisle; This is a learnable scalar parameter, with an initial value of 0.

1.

5. The underwater image enhancement method for subspace restoration based on a dual-branch architecture and guided by physical priors, as described in claim 4, is characterized in that... In step S225, the processing of the variance suppression attention module includes: S2251, Input Features Average pooling and max pooling are performed separately, and then mapped using a shared multilayer perceptron (MLP) to obtain the first-order statistics. and ; S2252, Regarding the input feature... aisle Variance pooling is performed to capture second-order statistics; the variance is calculated using the following formula: in, coordinates Feature activation values ​​at the location, This is the spatial mean of the channel; S2253, Variance Suppression Attention Module generates weight mappings channel-by-channel: in, This indicates the mapping process of first pooling and then connecting to the shared multilayer perceptron. For the Sigmoid activation function, the term A negative feedback mechanism is introduced to explicitly suppress channels with excessive variance and unstable characteristics. For hyperparameters; S2254, Map the weights The input features are multiplied element-wise to produce the output features with reduced variance, which reduces the weights of noise channels with high variance caused by local particulate scattering.

6. The underwater image enhancement method for subspace restoration based on a dual-branch architecture and guided by physical priors, as described in claim 3, is characterized in that... In step S25, the physical parameters output by the two parallel prediction heads are... and Performing frequency domain decoupling physical inversion includes: S251, from the underwater imaging model The transformation yields the direct physical inversion formula: S252. The transmittance-related signal is decomposed into a low-frequency fundamental component and a high-frequency detail component, as follows: in, For low-frequency fundamental components, ; This refers to components that contain high-frequency structural details. ; S253, Take the low-frequency fundamental component To ensure effective color correction, a more stringent threshold is set for the high-frequency detail components. ,in To suppress high-frequency noise amplification; S254. Using the channel-by-channel prediction values ​​output by the medium transmission encoder, perform inversion calculations for each channel to obtain coarse-grained restoration results under physical constraints: S255. Normalize a single image to correct pixel value out-of-bounds errors caused by parameter estimation errors and improve model training stability, obtaining the normalized result. : in, It is a very small constant. To prevent the denominator from being zero, the normalized value range is... .

7. The underwater image enhancement method for subspace restoration based on a dual-branch architecture and guided by physical priors, as described in claim 1, is characterized in that... Step S3 includes: S31, the coarse enhancement result As the initial input of the RGB feature branch The structure guide diagram Copy and expand into a three-channel tensor As the initial input of the structure-guided feature branch This makes the two branch passages dimensionally symmetrical; S32. In the l-th layer encoding stage, the features of the two branches are extracted through the residual blocks as follows: As the number of network layers increases, features The grayscale image is gradually transformed into a high-dimensional structured feature representation. S33. The information from the two branches is fused layer by layer through the spatial adaptive feature modulation module to obtain the fused features: in, Representing the Layer RGB feature branches, Representative structural guide characteristic branches; S34, the unmodulated original features and After downsampling, the data is passed to the first... Layered encoding modules preserve the independent feature representation spaces of the two branches and fuse the features. As an information bridge between two branches, it is passed to the corresponding decoding layer via a jump connection; S35. After five layers of decoding, the image is upsampled and fused with skip connection features, and the final restored image is output at the end of the decoder. This process removes residual high-frequency particle noise from the coarse enhancement results and restores texture details.

8. The underwater image enhancement method for subspace restoration based on a dual-branch architecture and guided by physical priors, as described in claim 7, is characterized in that... In step S33, the step of fusing the information from the two branches layer by layer through the spatial adaptive feature modulation module includes: S331, with coarse-grained RGB features With deep structure guidance features As input, two sets of complementary modulation parameters are extracted from the structure-guided branch through a three-layer network with instance normalization, as follows: Among them, the first Convolution maps input features to hidden dimensions. ; Convolution is used to capture local spatial context information; at the end Convolution maps features to the output dimension; and Both types of output feature dimensions are 1. The sigmoid activation function constrains the scaling factor to... The interval is used to avoid over-amplification of features; the Tanh activation function limits the offset to a certain range. To achieve bounded characteristic perturbations; S332, Guiding features of the structure Perform average pooling and max pooling along the channel dimension and then concatenate the results. Convolution and Sigmoid are used to generate spatial attention maps to locate structurally significant or quality-degraded regions in an image. The spatial attention map is shown below: S333. Apply spatial attention weighting to the modulation parameters, allowing them to focus on key regions of the image structure: S334, Guiding features of the structure After performing global average pooling, Convolution and Sigmoid activation generate channel-wise global gating ,as follows: in, Represents global average pooling; S335, combining spatial transformation and channel-by-channel gating mechanism, calculates the modulation output: in, The learnable residual weights are initialized to 0.

9. The underwater image enhancement method for subspace restoration based on a dual-branch architecture and guided by physical priors, as described in claim 1, is characterized in that... Step S4 includes: S41. Construct a multi-component customized loss function, including coarse augmentation results. Coarse-grained reconstruction loss between the real, sharp image and the final restored image Between and real clear images Reconstruction loss and perception loss, channel-by-channel transmission map With global backscattering term The loss due to the applied physical consistency constraint, and based on Color a priori color constraint loss; S42. The loss components are weighted and summed according to preset weights to obtain the total loss. The network parameters of the physical information coarse estimation module and the dual-condition refinement module are jointly optimized by backpropagation in an end-to-end manner until the total loss converges, and the trained physical guidance subspace restoration network is obtained. S43. During the inference phase, the underwater image to be enhanced is input into the trained physical-guided subspace restoration network. The physical information coarse estimation module outputs a coarse enhancement result that conforms to physical laws and has undergone color correction. Then, the dual-conditional thinning module adaptively adjusts the restoration intensity based on the degree of degradation in local image regions, and outputs the final restored image. Furthermore, the subspace restoration underwater image enhancement method is implemented for real-time inference on a graphics processor.