A three-dimensional gaussian reconstruction method and system based on underwater medium modeling and residual guidance

By introducing learnable underwater medium representation and residual-driven Gaussian multiplication mechanism, the problems of water absorption and scattering in underwater 3D reconstruction are solved, and efficient underwater scene reconstruction and new perspective synthesis are achieved.

CN123181746APending Publication Date: 2026-11-27ZHEJIANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611688799.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-29
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing 3D Gaussian sputtering methods struggle to effectively handle water absorption, scattering, and color channel attenuation in underwater reconstruction, leading to coupling between the medium and the object's appearance, underfitting of distant areas, and unstable color rendering from new perspectives.

Method used

We introduce a learnable underwater medium representation and a residual-driven Gaussian multiplication mechanism. We predict the optical parameters of the water medium through line-of-sight encoding and scene-level medium encoding. We combine the three-dimensional Gaussian primitive depth generation to generate the scene direct light component and the medium scattering component. We construct the underwater perception residual reconstruction loss by adjusting the structure of the Gaussian set through residual weight modulation.

Benefits of technology

It significantly improves the color fidelity, geometric accuracy, and physical interpretability of underwater scene reconstruction, enhances the model's ability to express complex underwater scenes, and ensures the convergence stability of the reconstruction process in complex environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181746A_ABST
    Figure CN123181746A_ABST
Patent Text Reader

Abstract

The application discloses a three-dimensional Gaussian reconstruction method and system based on underwater medium modeling and residual guidance, and belongs to the technical field of three-dimensional reconstruction. A three-dimensional Gaussian set is initialized and differentiable rasterization rendering is performed to obtain a depth map; a line-of-sight direction code and scene-level medium code are input into an underwater medium network to predict underwater medium optical parameters, scene direct light components and medium scattering components are generated in combination with the depths of each three-dimensional Gaussian element relative to a camera, and an underwater rendering image is synthesized; pixel-level reconstruction residuals are calculated and aggregated to each three-dimensional Gaussian element to determine residual weights, residual modulation is performed on original gradient proliferation signals, and the structure of the three-dimensional Gaussian set is adjusted; underwater perception residual reconstruction loss is constructed by fusing residual weights, depth weights and channel weights, Gaussian element parameters, scene-level medium codes and network parameters are jointly optimized, and high-quality underwater new-view image rendering is realized. The application realizes high-fidelity new-view synthesis and geometric reconstruction in a complex underwater environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of three-dimensional reconstruction technology, specifically relating to a three-dimensional Gaussian reconstruction method based on underwater medium modeling and residual guidance. Background Technology

[0002] With the development of tasks such as ocean observation, underwater robot navigation, and marine ecological monitoring, it is of great significance to rapidly construct high-quality 3D scene models using multi-view underwater images. 3D Gaussian Splatting (3DGS) uses explicit 3D Gaussian primitives to represent scenes and achieves efficient training and real-time rendering through differentiable rasterization. Compared with traditional neural radiation field methods, it has advantages such as faster training speed, higher rendering efficiency, and easier optimization of explicit structures.

[0003] However, conventional 3D Gaussian sputtering methods are primarily designed for clear scenes in the air. Underwater images are affected by water absorption, scattering, backscattering, and color channel attenuation, resulting in issues such as fogging in distant areas, decreased contrast, rapid attenuation of the red channel, weak local textures, and persistently high reconstruction residuals. If conventional 3D Gaussian sputtering is directly used for underwater reconstruction, the model often incorrectly absorbs the influence of the water medium into the Gaussian color, opacity, or geometric distribution, leading to coupling between the medium and the object's appearance, underfitting in distant areas, and unstable color rendering from new perspectives.

[0004] Existing methods typically improve underwater image quality by fixing physical models, image enhancement preprocessing, or conventional photometric loss. However, these methods struggle to simultaneously address the issues of underwater medium modeling, Gaussian capacity allocation, and training-supervision mismatch. Particularly in the Gaussian multiplication process, traditional strategies often rely on statistical quantities such as gradient, scale, or screen space radius to determine Gaussian splitting and replication. However, truly difficult-to-fit regions in underwater scenes are often caused by scattering, attenuation, and local turbidity, making it difficult to adequately focus on high residual regions solely based on gradient signals.

[0005] Therefore, a 3D Gaussian sputtering reconstruction method for underwater scenes is needed. While maintaining the high efficiency of explicit Gaussian representation, a learnable underwater medium representation, a residual-driven Gaussian multiplication mechanism, and a residual reconstruction loss that conforms to the underwater imaging rules are introduced to improve the quality of underwater 3D reconstruction and new perspective synthesis. Summary of the Invention

[0006] To address the shortcomings of existing technologies, this invention provides a three-dimensional Gaussian reconstruction method and system based on underwater medium modeling and residual guidance. While maintaining the high efficiency of explicit three-dimensional Gaussian primitive representation, it introduces learnable underwater medium representation, residual-driven Gaussian multiplication mechanism, and residual reconstruction loss that conforms to the laws of underwater imaging, thereby improving the quality of underwater three-dimensional reconstruction and new perspective synthesis.

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

[0008] In a first aspect, this invention proposes a three-dimensional Gaussian reconstruction method based on underwater medium modeling and residual guidance, comprising the following steps:

[0009] S1. Obtain multi-view images and camera parameters of the underwater scene, initialize a three-dimensional Gaussian set containing multiple three-dimensional Gaussian primitives, and project it onto the image plane for differentiable rasterization rendering to obtain a rendering depth map.

[0010] S2. Input the line-of-sight direction encoding and scene-level medium encoding into the underwater medium network to predict the optical parameters of the water medium corresponding to each pixel. Combine the depth of each 3D Gaussian unit relative to the camera to generate the scene direct light component and medium scattering component attenuated by the water body. Add them together to obtain the underwater rendering image. The scene-level medium encoding is a parameter vector jointly optimized during training.

[0011] S3. Calculate the pixel-level reconstruction residual between the real underwater image and the underwater rendered image. Aggregate the pixel-level reconstruction residual to each three-dimensional Gaussian element to obtain the average residual and determine the residual weight. Use the residual weight to perform residual modulation on the original gradient multiplication signal to obtain the final multiplication score. Perform structural adjustment on the three-dimensional Gaussian set.

[0012] S4. The underwater perception residual reconstruction loss is obtained by fusing residual weights, depth weights based on the rendered depth map, and channel weights based on color channel attenuation priors, combined with a robust error function.

[0013] S5. Based on underwater perception residual reconstruction loss, jointly optimize 3D Gaussian meta-parameters, scene-level medium coding, and underwater medium network parameters, and render new perspective images after training.

[0014] Furthermore, in S3, the line-of-sight direction encoding uses multiple frequencies to construct sine and cosine features respectively and concatenates them with the original three-dimensional direction vector; the underwater medium network is a multilayer perceptron, which outputs the water medium optical parameters corresponding to each pixel, including medium color, backscattering coefficient and attenuation coefficient.

[0015] Furthermore, in S5, the total loss used to jointly optimize the 3D Gaussian meta-parameters, scene-level medium coding, and underwater medium network parameters is obtained by weighted summation of underwater perception residual reconstruction loss, pixel reconstruction loss, and structural similarity loss.

[0016] Furthermore, the training process also includes a media modeling warm-up phase:

[0017] When the number of training iterations is less than the preset number of warm-up steps, the optical parameters of the water medium are forcibly set to zero, and the underwater sensing residual reconstruction loss is not included in the total loss calculation. Only the three-dimensional Gaussian meta-parameters are optimized. When the number of training iterations reaches the preset number of warm-up steps, the underwater medium network and the underwater sensing residual reconstruction loss are enabled, and the three-dimensional Gaussian meta-parameters, medium network parameters and scene-level medium coding are jointly optimized.

[0018] Further, in S3, the step of aggregating the pixel-level reconstruction residuals to each three-dimensional Gaussian unit to obtain the average residual and determining the residual weights specifically includes:

[0019] The spatial center of each 3D Gaussian primitive is projected onto the image plane, and the pixel-level reconstruction residual values ​​at the corresponding positions are sampled and accumulated to obtain the average residual of each 3D Gaussian primitive. The average residual of each 3D Gaussian primitive is divided by the larger value between the median of the average residual of all 3D Gaussian primitives and the stable term, and the result is limited to the preset residual weight lower limit and residual weight upper limit by a limiting function to obtain the residual weight.

[0020] Furthermore, in S3, the final multiplication score is obtained by residual modulation of the original gradient multiplication signal using residual weights, and the calculation formula is as follows:

[0021] ;

[0022] in, This represents the original gradient multiplication signal of the i-th three-dimensional Gaussian element. Let be the final multiplication score of the i-th 3D Gaussian element. For residual modulation coefficients, Let be the residual weight of the i-th three-dimensional Gaussian element.

[0023] Furthermore, in S3, the structural adjustment of the three-dimensional Gaussian set specifically includes:

[0024] When the final proliferation score is greater than the preset proliferation threshold, the corresponding three-dimensional Gaussian unit is listed as a proliferation candidate; for the proliferation candidate, if its maximum size is not greater than the preset size threshold, a replication operation is performed, and if its maximum size is greater than the preset size threshold, a splitting operation is performed.

[0025] In addition, three-dimensional Gaussian units with opacity below the pruning threshold or scale anomalous are deleted, and parent Gaussians that have been replaced by split child Gaussians are also deleted.

[0026] After the structural adjustment is completed, the cumulative value used to calculate the average residual is reset.

[0027] Further, in S4, the depth weight is obtained by normalizing the depth values ​​of each pixel in the rendered depth map, multiplying them by a preset depth weight coefficient, and then adding 1; the channel weight applies attenuation to the red channel according to the normalized depth, and the red channel weight is set to a value of ,in This represents the normalized depth value of each pixel. This represents the long-distance attenuation coefficient of the red channel; the channel weights for the green and blue channels remain at a weight of 1.

[0028] Furthermore, the formula for the underwater sensing residual reconstruction loss is as follows:

[0029] ;

[0030] in, This indicates the loss in underwater sensing residual reconstruction. This represents the average of all pixel positions and RGB color channels in an image. Represents the residual weights. Indicates depth weights, This represents the channel weight of the RGB color channel c in the image. This represents the color value of the actual image in channel c. This represents the color value in channel c of the underwater rendered image. This represents the robust error function.

[0031] Secondly, this invention proposes a three-dimensional Gaussian reconstruction system based on underwater medium modeling and residual guidance, which is used to realize the above-mentioned three-dimensional Gaussian reconstruction method based on underwater medium modeling and residual guidance.

[0032] The beneficial effects of this invention are:

[0033] (1) This invention constructs an underwater medium network, combining line-of-sight encoding with scene-level medium encoding jointly optimized during training to predict the optical parameters of the water medium for each pixel, and explicitly modeling water scattering and attenuation. Based on this, the depth-generated scene direct light component and the medium scattering component are added together. This design can simultaneously compensate for the absorption and scattering effects of water during 3D Gaussian reconstruction, thereby significantly improving the color fidelity, geometric accuracy, and physical interpretability of underwater scene reconstruction.

[0034] (2) This invention calculates the pixel-level reconstruction residual between the underwater image and the rendered image, aggregates it to each three-dimensional Gaussian primitive to obtain the average residual, and then determines the residual weight. The original gradient multiplication signal is residual-modulated using this weight to obtain the final multiplication score, which is used to guide the structural adjustment. This makes the multiplication and pruning of three-dimensional Gaussian primitives no longer dependent on a fixed gradient threshold, but can be adaptively allocated according to the actual reconstruction error. Computational resources are preferentially tilted to areas with large reconstruction residuals and complex geometric details, which effectively improves the model's ability to express complex underwater scenes.

[0035] (3) This invention integrates residual weights, depth weights based on the rendered depth map, and channel weights based on color channel attenuation priors, and combines them with a robust error function to construct underwater perception residual reconstruction loss. This loss function fully considers the depth attenuation, channel difference characteristics, and reconstruction difficulty of underwater imaging, providing a more accurate and robust supervision signal for the joint optimization of 3D Gaussian primitive parameters, scene-level medium coding, and network parameters, ensuring the convergence stability and final rendering quality of the entire reconstruction process in complex underwater environments.

[0036] (4) This invention does not rely on external real depth annotation. The depth used comes from the three-dimensional Gaussian rendering process and can be applied to underwater scenes with only multi-view images and camera parameters. Attached Figure Description

[0037] Figure 1 This is a schematic diagram of the framework of a three-dimensional Gaussian reconstruction method based on underwater medium modeling and residual guidance;

[0038] Figure 2 This is a flowchart illustrating the three-dimensional Gaussian reconstruction method based on underwater medium modeling and residual guidance.

[0039] Figure 3 This is a comparison between real and rendered images of the underwater scene in Curasao.

[0040] Figure 4 This is a comparison between real and rendered images from the IUI3-RedSea underwater scene;

[0041] Figure 5 This is a schematic diagram of a three-dimensional Gaussian reconstruction system based on underwater medium modeling and residual guidance. Detailed Implementation

[0042] The present invention will be further described and illustrated below with reference to specific embodiments. The embodiments described are merely examples of the content of this disclosure and do not limit the scope of the invention. The technical features of each embodiment in the present invention can be combined accordingly, provided that there is no mutual conflict.

[0043] The accompanying drawings are merely illustrative of the invention and are not necessarily drawn to scale. Some of the block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.

[0044] The flowchart shown in the attached diagram is merely an illustrative example and does not necessarily include all steps. For example, some steps may be broken down, while others may be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.

[0045] like Figure 1 As shown, the proposed 3D Gaussian reconstruction method based on underwater medium modeling and residual guidance takes multi-view underwater images and camera parameters as input, initializes a 3D Gaussian scene representation, and performs differentiable rasterization rendering to obtain a rendered depth map. The line-of-sight direction encoding and learnable scene-level medium encoding are input into the underwater medium network to predict the optical parameters of the water medium. The direct light component and scattering component are generated by combining the depth information of each Gaussian element, and an underwater rendered image is synthesized, achieving joint modeling of water scattering, light propagation attenuation, and 3D scene representation. Based on this, the adaptive structure adjustment of the Gaussian elements is guided by calculating the residual map between the real image and the rendered image. An underwater perception residual reconstruction loss integrating multiple weights and a robust error function is constructed. Based on this loss, backpropagation is used to jointly optimize the 3D Gaussian element parameters, scene-level medium encoding, and underwater medium network parameters. After training, high-quality underwater images are generated under a given new perspective.

[0046] like Figure 2 As shown, a three-dimensional Gaussian reconstruction method based on underwater medium modeling and residual guidance mainly includes the following steps:

[0047] Step (1): Input underwater multi-view images and initialize the three-dimensional Gaussian set.

[0048] This step acquires multi-view images and camera parameters of the underwater scene, and initializes a 3D Gaussian set containing multiple 3D Gaussian primitives. Specifically, it takes multi-view RGB images of the same underwater scene as input, estimates the camera intrinsic parameters, camera extrinsic parameters, and camera pose for each image using a motion reconstruction structure, and generates a sparse point cloud. The camera parameters are used to construct the sparse point cloud and, in subsequent training and rendering, to project the 3D Gaussian onto the image plane and construct the pixel view directions.

[0049] Initialize a 3D Gaussian set based on the sparse point cloud, and represent the i-th 3D Gaussian element as four types of quantities: spatial center, covariance matrix, opacity, and view-dependent color parameters.

[0050]

[0051] in, Represents a three-dimensional Gaussian set. Represents the i-th three-dimensional Gaussian element. Denotes the spatial center of the i-th three-dimensional Gaussian element. Let i represent the covariance matrix of the i-th three-dimensional Gaussian element. Let represent the opacity parameter of the i-th 3D Gaussian element. N represents the viewpoint-dependent color parameter of the i-th 3D Gaussian element. N is numerically equal to the number of 3D points in the sparse point cloud generated by the motion recovery structure. That is, the initial cardinality is determined by the number of points in the sparse point cloud. Each sparse point corresponds to one 3D Gaussian element, so it is defined as N representing the number of 3D Gaussian elements in the 3D Gaussian set.

[0052] The initialized 3D Gaussian set is iteratively updated and optimized based on the Gaussian proliferation guided by the residual obtained in step (4) and the loss value calculated in step (6). The final optimized 3D Gaussian set is used for underwater image rendering from a new perspective. Specifically, the 3D Gaussian set is iteratively updated alternately through a parameter optimization mechanism and a structure adjustment mechanism: In step (6), the parameter optimization mechanism calculates the gradient of the total loss with respect to each 3D Gaussian parameter through backpropagation and updates the parameters of each Gaussian using a stochastic gradient descent method; In step (4), the structure adjustment mechanism performs replication or splitting operations on Gaussian units based on the proliferation score guided by the residual to increase the set density, or performs pruning operations on Gaussian units with opacity below the pruning threshold or with abnormal scale to reduce set redundancy.

[0053] Step (2): 3D Gaussian projection and basic rendering to obtain the rendering depth map.

[0054] This step projects 3D Gaussian primitives onto the image plane for differential rasterization rendering, ultimately obtaining a rendered depth map.

[0055] During training, in each iteration, a training viewpoint k is selected from the training image set. Based on the camera intrinsics and camera pose of this training viewpoint, a 3D Gaussian projection is applied to the corresponding image plane. This image plane belongs to the currently selected training camera viewpoint, not the unknown viewpoint used for new viewpoint synthesis after training. For pixels on this image plane... The visible Gaussian elements affecting pixel u are arranged from near to far in relation to their depth relative to the current camera. .depth By Gauss Center The third component of the camera coordinates, obtained after transformation of the current camera extrinsic parameters, is a known quantity during the projection process. Let... This indicates that the i-th Gaussian kernel at pixel u is composed of a two-dimensional Gaussian kernel and opacity. The projected weights formed together then have the following forward cumulative transmittance:

[0056]

[0057] For each pixel u in the image plane, the rendering depth map is calculated using differentiable Gaussian rasterization. It can be represented as:

[0058]

[0059] in, This represents the set of visible Gaussians that affect pixel u. Represents a set The i-th 3D Gaussian element in pixel Forward cumulative transmittance at the location, Represents a set The depth of the i-th 3D Gaussian element in the current viewpoint is equal to the depth of the i-th 3D Gaussian element relative to the camera. This parameter is a known quantity. To prevent division by zero and its stability, this depth map is obtained directly from the Gaussian rendering process, not from external depth annotations.

[0060] Step (3): Establish a learnable underwater medium network, predict the optical parameters of the water medium corresponding to each pixel, combine the depth of each three-dimensional Gaussian unit relative to the camera, generate the scene direct light component and the medium scattering component attenuated by the water body, and add them together to obtain the underwater rendering image.

[0061] To address underwater scattering and color attenuation, this invention introduces an underwater medium multilayer perceptron network. Based on the camera's intrinsic and extrinsic parameters from the current training viewpoint, a three-dimensional unit line-of-sight direction is constructed, passing through the pixel from the camera center. Encode the direction of the gaze and combine it with learnable scene-level medium encoding. After stitching, the data is input into an underwater medium multilayer sensor to predict the medium color, backscattering coefficient, and attenuation coefficient corresponding to each pixel.

[0062]

[0063] in, This refers to an underwater multilayer sensor. This represents the viewing direction corresponding to pixel u in the image plane. The direction encoding is represented by constructing sine and cosine features using K=2 frequencies respectively, and then compared with the original direction vector. splicing, therefore , The learnable scene-level medium encoding is a parameter vector jointly optimized during model training, used to characterize the overall water properties of the current scene. The above two items are concatenated to form a 23-dimensional effective variable input feature. The underwater medium multilayer perceptron contains two hidden layers with ReLU activation, outputting nine numerical values. , and These represent the medium color, backscattering coefficient, and attenuation coefficient, respectively, corresponding to the three RGB channels. The above medium parameters (medium color, backscattering coefficient, and attenuation coefficient) are related to the differentiable Gaussian rasterization process. Combined, the scene direct light components attenuated by water are generated separately. and medium scattering components .

[0064] Scene direct light component Represented as:

[0065]

[0066] Where M represents the number of three-dimensional Gaussian elements affecting pixel u. Represents element-wise product;

[0067] Medium scattering components Perform forward integration over adjacent Gaussian depth intervals. Let And define the backscattering increment for the i-th depth interval. for:

[0068]

[0069] Then the medium scattering component Represented as:

[0070]

[0071] The current underwater rendered image is represented as follows:

[0072]

[0073] In the early stages of training, a media modeling warm-up phase is set up to first establish the basic geometry and appearance of Gaussian elements, and then gradually introduce the media network to reduce the risk of the media network absorbing geometric errors too early.

[0074] In the initial training phase, a media modeling warm-up stage is set up with 3000 warm-up steps. When the number of training iterations is less than 3000, the media color, backscattering coefficient, and attenuation coefficient are forcibly set to zero, making the media scattering component zero and the exponential attenuation term of the scene's direct light 1. At this time, the model only performs basic Gaussian rendering and updates the spatial center, covariance matrix, opacity, and color parameters of the Gaussian based on the loss. When the number of training iterations reaches 3000, an underwater media multilayer perceptron is activated to restore the prediction of media color, backscattering coefficient, and attenuation coefficient, and jointly optimize the 3D Gaussian parameters, media network parameters, and scene-level media encoding. This phased training method is used to reduce the possibility of geometric errors being misinterpreted by the media network in the early stages of training, improve the decoupling degree between scene representation and water media representation, and enhance training stability.

[0075] Step (4): Determine the residual weights of each three-dimensional Gaussian element based on the pixel-level reconstruction residuals of the real and rendered images, and perform residual-guided Gaussian multiplication to adjust the structure of the three-dimensional Gaussian set.

[0076] During the training phase, real underwater images from the current training perspective are used. and underwater rendered images obtained from the same viewpoint Calculate the pixel-level reconstruction residual. For pixel u in the current image plane, the residual map is defined as the average of the absolute errors of the RGB three channels:

[0077]

[0078] in, This represents the value of the c-th color channel at pixel u in the real image. Indicates the rendered image The value of the c-th color channel at pixel u. Used to represent residual plots This represents the average color reconstruction error of the pixel.

[0079] A statistical period is formed between two Gaussian structure adjustments. For the i-th 3D Gaussian primitive visible from the currently selected training viewpoint in each training iteration within this period, its 3D center is projected onto the current image to obtain the pixel position. And read from the residual plot R Add this value to the total residual. At the same time, the number of times the three-dimensional Gaussian element is visible within this statistical period. Add one. This accumulation object is the center projection residual of the same 3D Gaussian element in continuously sampled training viewpoints, rather than accumulating all pixel residuals of the entire image to this Gaussian. The average residual of the i-th 3D Gaussian element within the statistical period is expressed as:

[0080]

[0081] A larger average residual indicates that the image region corresponding to that Gaussian element is more difficult to reconstruct, requiring more Gaussian representation power to be allocated to that region. To accommodate the residual range of different underwater scenes, the median of the average residual of all 3D Gaussian elements is calculated:

[0082]

[0083] Then, the average residual of each 3D Gaussian element is compared with the median to obtain the residual weights:

[0084]

[0085] in, To prevent the stable term from being divided by zero, and These represent the preset lower limit and upper limit of the residual weights, respectively. This represents the limiting function, used to restrict the residual weights to a certain value. and To avoid instability in the Gaussian multiplication process caused by abnormal residuals. In one alternative implementation, , .when When the time is right, it indicates that the reconstruction difficulty of the corresponding region of the Gaussian is higher than the overall medium level; When the time is right, it indicates that the reconstruction difficulty of the corresponding region of the Gaussian is equal to the overall medium level; When the time is right, it indicates that the corresponding area has been reconstructed relatively well.

[0086] This invention does not directly replace the original gradient multiplication signal with the residual, but instead uses residual weights to modulate the original gradient signal. The final proliferation score of each three-dimensional Gaussian unit is expressed as:

[0087]

[0088] in, This represents the original gradient multiplication signal, calculated from the current training loss, used to guide the multiplication of the i-th 3D Gaussian unit during backpropagation. This represents the residual modulation coefficient. In one optional embodiment, the number of residual multiplication preheating steps is set to 3000. proliferation threshold =0.0008, scale threshold .when When, the Gaussian is listed as a candidate for proliferation; when At that time, replication or division is not performed on it. For proliferation candidates, if their maximum size is not greater than [a certain value], [the following applies]. If its maximum size is greater than 1, then copying will be performed; If a split occurs, then splitting is performed. Pruning is independent of the above-mentioned candidate propagation criteria: during structural adjustment, Gaussians with opacity below the pruning threshold or with abnormal scale are deleted, and parent Gaussians that have been replaced by split child Gaussians are also deleted. After structural adjustment is completed, the cumulative residual for the current statistical period is cleared.

[0089] This invention proposes residual-guided Gaussian multiplication, which transforms the image reconstruction residual into a Gaussian capacity allocation signal, enabling the model to allocate more Gaussian units to underwater regions that are currently difficult to reconstruct, thereby alleviating underfitting in distant turbid regions and complex texture regions.

[0090] Step (5): Combine residual weights, depth weights based on the rendered depth map, and channel weights based on color channel attenuation priors to construct underwater perception residual reconstruction loss using a robust error function.

[0091] To further extend the residual signal from structural adjustment to backpropagable training supervision, this invention constructs an underwater sensing residual reconstruction loss. First, normalized residual weights are constructed based on the residual map from the current training perspective:

[0092]

[0093] in, This represents the pixel reconstruction residual of pixel u. This represents the average residual of the current underwater rendered image. To prevent numerical instability, a constant is used. `stopgrad` indicates that the enclosed values ​​are treated as constants during the current backpropagation. Residual weights. The loss will still change with training iterations and the residual map, but the model cannot reduce the current loss by changing the weights themselves.

[0094] Then, the rendered depth map D obtained in step (2) is reused to construct depth weights, and the depth is normalized to 0 to 1:

[0095]

[0096] Further obtain the deep correlation weights :

[0097]

[0098] in, This is the depth weight coefficient, used to enhance the model's supervision of reconstruction in distant underwater regions. Normalized depth. The closer a value is to 1, the greater the rendering distance of that pixel within the current viewpoint. In one alternative implementation, the depth weighting coefficient... ,therefore The value range is [1, 1.5], which is used to enhance the supervision of areas with large imaging distances.

[0099] Considering that red light typically attenuates faster than green and blue light in water, the supervision strength of the red channel is reduced for pixels with a larger normalization depth, while the weights of the green and blue channels remain at 1, thus constructing the channel weights. :

[0100]

[0101] in, This refers to the long-distance attenuation coefficient of the red channel. In one optional embodiment, the long-distance attenuation coefficient of the red channel... Therefore, the weight of the red channel ranges from [0.5, 1], while the weights of the green and blue channels are both 1.

[0102] The Charbonnier function is used as the robust error term:

[0103]

[0104] in, To prevent numerically unstable constants.

[0105] The final underwater sensing residual reconstruction loss is:

[0106]

[0107] in, This represents the average of all pixel positions and RGB color channels in an image. This represents the channel weight of the RGB color channel c in the image. When c=R, When c=G or B, .

[0108] Step (6): Based on the underwater perception residual reconstruction loss, jointly optimize the three-dimensional Gaussian meta-parameters, scene-level medium coding, and underwater medium network parameters, and render the new perspective image after training.

[0109] In this embodiment, the total training loss consists of pixel reconstruction loss, structural similarity loss, and underwater sensing residual reconstruction loss:

[0110]

[0111] in, Pixel reconstruction loss is used to measure the difference in pixel-by-pixel color values ​​between the rendered image and the real underwater image; For structural similarity loss, it is used to measure the similarity between the rendered image and the real underwater image in terms of local structure, brightness and contrast, and to make up for the shortcomings of pixel reconstruction loss, which only focuses on pixel-by-pixel color differences and ignores spatial structural consistency. This represents the structural similarity weight. The weights for underwater sensing residual reconstruction loss are used. In one optional implementation, the underwater residual loss warm-up steps are set to 3000. When the number of training iterations is less than the preset warm-up steps... The underwater sensing residual reconstruction loss is not included in the total loss calculation; after the number of training iterations reaches the preset warm-up steps, The Gaussian meta-parameters, scene-level media coding, and underwater media network parameters are updated via backpropagation, and residual-guided Gaussian propagation and pruning are performed periodically.

[0112] After training, an underwater new perspective image can be rendered by inputting any target camera viewpoint. Specifically, the pose parameters of any target camera viewpoint are input, and using the jointly optimized 3D Gaussian primitive set and scene-level medium coding, the 3D Gaussian primitives are projected onto the 2D image plane of the target viewpoint through differentiable rasterization technology. The rendering is then combined with the optical parameters predicted by the underwater medium network, thereby efficiently generating a high-fidelity underwater new perspective image from that viewpoint.

[0113] This embodiment uses the SeaThru-NeRF underwater multi-view dataset, selecting two scenes: Curasao and IUI3-RedSea. Each scene contains multi-view RGB images of the same underwater region. First, COLMAP is used to perform feature matching, camera calibration, and sparse reconstruction on the images to obtain the camera intrinsic and extrinsic parameters, camera pose, and sparse point cloud for each image. Three-dimensional Gaussian primitives are initialized based on the sparse point cloud, and the spatial position, covariance matrix, opacity, and color parameters of each Gaussian are set. Then, the viewpoints are divided according to the training and testing lists provided in the dataset. The model is optimized using the training viewpoints, and the synthesis results of the new viewpoints are evaluated on the testing viewpoints that were not involved in the training.

[0114] In each training iteration, a training viewpoint is randomly selected, and a 3D Gaussian projection is made onto the image plane based on the camera parameters of that viewpoint. The line-of-sight encoding and the learnable scene-level medium encoding are input into the underwater medium multilayer perceptron to predict the medium color, backscattering coefficient, and attenuation coefficient. Subsequently, during the differentiable Gaussian rasterization process, the depth of each Gaussian relative to the camera is combined to generate a scene direct light component map, a medium scattering component map, and a rendering depth map attenuated by the water body. The scene direct light component and the medium scattering component are then added to obtain the final underwater rendered image.

[0115] After reaching a preset number of warm-up steps, the pixel-level residual between the real image and the rendered image is calculated. For each visible Gaussian, the residual is sampled and accumulated based on its projected pixel position to obtain the average residual and residual weight of that Gaussian. Subsequently, the unit weight and the residual weight are linearly fused using residual modulation coefficients to form a residual gain, which is then multiplied by the original gradient multiplication signal to obtain a new Gaussian multiplication score. Gaussians with multiplication scores exceeding a preset threshold are listed as multiplication candidates, among which Gaussians that meet the scale condition are either copied or split. The pruning operation is independent of the multiplication judgment; parent Gaussians with opacity below the pruning threshold, abnormal scale, or those that have been replaced by split child Gaussians are deleted.

[0116] Regarding the loss function, this invention adds an underwater sensing residual reconstruction loss to the ordinary pixel reconstruction loss and structural similarity loss. This loss assigns higher weights to high residual regions, depth-related weights to distant regions, and moderately attenuates the distant red channel to avoid unreliable strong supervision of underwater red missing regions.

[0117] After training, the optimized 3D Gaussian ensemble and underwater medium multilayer perceptron parameters are saved. During the testing or application phase, given any target camera pose, a corresponding new underwater perspective image can be generated through the same rendering process for underwater 3D visualization, robot environment mapping, and digital reconstruction of seabed scenes.

[0118] This embodiment uses Peak Signal-to-Noise Ratio (PSNR), Structural Similarity Index Measure (SSIM), and Learned Perceptual Image Patch Similarity (LPIPS) to evaluate the rendering quality of different methods for novel viewpoints. For camera viewpoints not used in training in the test set, the underwater rendered images generated by each method are compared with the corresponding real underwater images, and the evaluation results for all test viewpoints are averaged. PSNR measures the pixel-level reconstruction error between the rendered image and the real image, measured in decibels (dB); a higher PSNR value indicates smaller pixel color errors and higher image reconstruction accuracy. SSIM measures the structural consistency between the rendered image and the real image in terms of brightness, contrast, and local structure; a SSIM value closer to 1 indicates that the image is closer to the real image in terms of structure and texture. LPIPS extracts image features through a pre-trained deep network and measures the perceptual difference between the rendered image and the real image; a lower LPIPS value indicates that the two images are more similar in terms of visual content and perceptual features. Therefore, under the same training data, test viewpoint, and training conditions, higher PSNR and SSIM, as well as lower LPIPS, indicate better rendering quality for new underwater perspectives.

[0119] To verify the underwater novel perspective rendering effect of the method of this invention, the SeaThru-NeRF method and the 3D Gaussian Splatting (3DGS) method were selected as comparison schemes. SeaThru-NeRF uses a neural radiation field to represent the 3D scene and combines it with an underwater imaging model to model the effects of medium absorption and scattering. 3DGS uses 3D Gaussian primitives to explicitly represent the scene with spatial position, covariance, opacity, and color attributes, and generates novel perspective images through differentiable Gaussian rasterization, but does not specifically model underwater medium attenuation and scattering. The method of this invention, based on the 3D Gaussian representation, introduces learnable underwater medium modeling, residual-guided Gaussian multiplication, and underwater sensing residual reconstruction loss.

[0120] Table 1 presents the rendering results of the novel perspectives using SeaThru-NeRF, 3DGS, and the method of this invention in two underwater scenes: Curasao and IUI3-RedSea. Evaluation metrics include Peak Signal-to-Noise Ratio (PSNR), Structural Similarity (SSIM), and Learned Perceptual Patch Similarity (LPIPS). Higher PSNR and SSIM values ​​indicate better rendering quality, while lower LPIPS values ​​indicate a smaller perceptual difference between the rendered image and the real image.

[0121] Table 1. Rendering Results from the New Perspective

[0122]

[0123] In the Curasao scenario, the PSNR, SSIM, and LPIPS of the method of this invention are 32.22 dB, 0.956, and 0.114, respectively, all of which are superior to SeaThru-NeRF and 3DGS. Compared with SeaThru-NeRF, the PSNR of the method of this invention is improved by 2.01 dB, SSIM is improved by 0.115, and LPIPS is reduced by 0.207; compared with 3DGS, the PSNR is improved by 3.91 dB, SSIM is improved by 0.083, and LPIPS is reduced by 0.107.

[0124] In the IUI3-RedSea scenario, the PSNR, SSIM, and LPIPS of the method of this invention are 29.65 dB, 0.899, and 0.191, respectively, achieving the best results among the three methods. Compared with SeaThru-NeRF, the method of this invention improves PSNR by 4.30 dB, SSIM by 0.150, and LPIPS by 0.164; compared with 3DGS, PSNR is improved by 6.67 dB, SSIM by 0.056, and LPIPS by 0.055.

[0125] Figure 3 This is a comparison between real and rendered images of the underwater scene in Curasao. Figure 4 This is a comparison between the real and rendered images in the IUI3-RedSea underwater scene. In the Curasao scene, the rendered image is highly consistent with the real image in terms of coral reef texture, color swatch reproduction, and water transparency, especially showing good color fidelity in close-up details. In the IUI3-RedSea scene, the rendered image successfully reproduces the layered relationship between the sandy seabed and the rock structure, and the simulation of distant fog scattering is also relatively natural, with strong overall visual coherence.

[0126] The above results demonstrate that the method of this invention achieves higher pixel reconstruction accuracy and structural consistency in both underwater scenarios, while reducing the perceptual difference between the rendered image and the real image. Compared to 3DGS, which does not specifically model the underwater medium, the method of this invention can better handle the impact of water attenuation, scattering, and color distortion on rendering from new perspectives; compared to SeaThru-NeRF, which uses implicit neural radiation field representation, the method of this invention also exhibits better reconstruction quality under the listed test scenarios and evaluation metrics.

[0127] It should also be noted that the 3D Gaussian reconstruction method based on underwater medium modeling and residual guidance in the above embodiments can essentially be executed by a computer program or module. Therefore, similarly, another preferred embodiment of the present invention also provides a 3D Gaussian reconstruction system based on underwater medium modeling and residual guidance, such as... Figure 5 As shown, it includes:

[0128] The initialization and rendering module is used to acquire multi-view images of the underwater scene and camera parameters, initialize a three-dimensional Gaussian set containing multiple three-dimensional Gaussian primitives, and project it onto the image plane for differentiable rasterization rendering to obtain a rendering depth map.

[0129] The underwater medium imaging module is used to input the line-of-sight direction encoding and scene-level medium encoding into the underwater medium network, predict the optical parameters of the water medium corresponding to each pixel, and combine the depth of each three-dimensional Gaussian unit relative to the camera to generate the scene direct light component and medium scattering component attenuated by the water body, which are then added together to obtain the underwater rendered image; the scene-level medium encoding is a parameter vector jointly optimized during training.

[0130] The residual-guided structure optimization module is used to calculate the pixel-level reconstruction residual between the real underwater image and the underwater rendered image. It aggregates the pixel-level reconstruction residual to each three-dimensional Gaussian element to obtain the average residual and determines the residual weight. It uses the residual weight to perform residual modulation on the original gradient multiplication signal to obtain the final multiplication score and performs structural adjustment on the three-dimensional Gaussian set.

[0131] The loss function construction module is used to fuse residual weights, depth weights based on the rendered depth map, and channel weights based on color channel attenuation priors, and combine them with a robust error function to obtain the underwater perception residual reconstruction loss.

[0132] The joint optimization and reconstruction module is used to jointly optimize the 3D Gaussian meta-parameters, scene-level medium coding, and underwater medium network parameters based on underwater perception residual reconstruction loss, and renders new perspective images after training.

[0133] It should also be noted that those skilled in the art will understand that, for the sake of convenience and brevity, the specific working process of the system described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here. In the embodiments provided in this application, the division of steps or modules in the system and method is merely a logical functional division, and there may be other division methods in actual implementation. For example, multiple modules or steps may be combined or integrated together, and a module or step may also be split.

[0134] The system embodiments of the present invention can be applied to any device with data processing capabilities, such as a computer or other similar device. The system embodiments can be implemented in software, hardware, or a combination of both. Taking software implementation as an example, as a logical device, it is formed by the processor of any data processing device loading the corresponding computer program instructions from non-volatile memory into memory for execution.

[0135] The embodiments described above are merely preferred embodiments of the present invention and are not intended to limit the invention. Those skilled in the art can make various changes and modifications without departing from the spirit and scope of the invention. Therefore, all technical solutions obtained through equivalent substitution or transformation fall within the protection scope of the present invention.

Claims

1. A three-dimensional Gaussian reconstruction method based on underwater medium modeling and residual-guided reconstruction, characterized in that, Includes the following steps: S1. Obtain multi-view images and camera parameters of the underwater scene, initialize a three-dimensional Gaussian set containing multiple three-dimensional Gaussian primitives, and project it onto the image plane for differentiable rasterization rendering to obtain a rendering depth map. S2. Input the line-of-sight direction encoding and scene-level medium encoding into the underwater medium network to predict the optical parameters of the water medium corresponding to each pixel. Combine the depth of each 3D Gaussian unit relative to the camera to generate the scene direct light component and medium scattering component attenuated by the water body. Add them together to obtain the underwater rendering image. The scene-level medium encoding is a parameter vector jointly optimized during training. S3. Calculate the pixel-level reconstruction residual between the real underwater image and the underwater rendered image. Aggregate the pixel-level reconstruction residual to each three-dimensional Gaussian element to obtain the average residual and determine the residual weight. Use the residual weight to perform residual modulation on the original gradient multiplication signal to obtain the final multiplication score. Perform structural adjustment on the three-dimensional Gaussian set. S4. The underwater perception residual reconstruction loss is obtained by fusing residual weights, depth weights based on the rendered depth map, and channel weights based on color channel attenuation priors, combined with a robust error function. S5. Based on underwater perception residual reconstruction loss, jointly optimize 3D Gaussian meta-parameters, scene-level medium coding, and underwater medium network parameters, and render new perspective images after training.

2. The three-dimensional Gaussian reconstruction method based on underwater medium modeling and residual guidance according to claim 1, characterized in that, In S3, the line-of-sight direction encoding uses multiple frequencies to construct sine and cosine features and concatenates them with the original three-dimensional direction vector; the underwater medium network is a multilayer perceptron, which outputs the water medium optical parameters corresponding to each pixel, including medium color, backscattering coefficient and attenuation coefficient.

3. The three-dimensional Gaussian reconstruction method based on underwater medium modeling and residual guidance according to claim 1, characterized in that, In S5, the total loss used to jointly optimize the 3D Gaussian meta-parameters, scene-level medium coding, and underwater medium network parameters is obtained by weighted summation of underwater sensing residual reconstruction loss, pixel reconstruction loss, and structural similarity loss.

4. The three-dimensional Gaussian reconstruction method based on underwater medium modeling and residual guidance according to claim 3, characterized in that, Training also includes a media modeling warm-up phase: When the number of training iterations is less than the preset number of warm-up steps, the optical parameters of the water medium are forcibly set to zero, and the underwater sensing residual reconstruction loss is not included in the total loss calculation. Only the three-dimensional Gaussian meta-parameters are optimized. When the number of training iterations reaches the preset number of warm-up steps, the underwater medium network and the underwater sensing residual reconstruction loss are enabled, and the three-dimensional Gaussian meta-parameters, medium network parameters and scene-level medium coding are jointly optimized.

5. The three-dimensional Gaussian reconstruction method based on underwater medium modeling and residual guidance according to claim 1, characterized in that, In S3, the step of aggregating pixel-level reconstruction residuals to each three-dimensional Gaussian unit to obtain average residuals and determining residual weights specifically includes: The spatial center of each 3D Gaussian primitive is projected onto the image plane, and the pixel-level reconstruction residual values ​​at the corresponding positions are sampled and accumulated to obtain the average residual of each 3D Gaussian primitive. The average residual of each 3D Gaussian primitive is divided by the larger value between the median of the average residual of all 3D Gaussian primitives and the stable term, and the result is limited to the preset residual weight lower limit and residual weight upper limit by a limiting function to obtain the residual weight.

6. The three-dimensional Gaussian reconstruction method based on underwater medium modeling and residual-guided reconstruction according to claim 1, characterized in that, In S3, the final multiplication score is obtained by using residual weights to perform residual modulation on the original gradient multiplication signal. The calculation formula is as follows: ; in, This represents the original gradient multiplication signal of the i-th three-dimensional Gaussian element. Let be the final multiplication score of the i-th 3D Gaussian element. For residual modulation coefficients, Let be the residual weight of the i-th three-dimensional Gaussian element.

7. The three-dimensional Gaussian reconstruction method based on underwater medium modeling and residual guidance according to claim 1, characterized in that, In S3, the structural adjustment of the three-dimensional Gaussian set specifically includes: When the final proliferation score is greater than the preset proliferation threshold, the corresponding three-dimensional Gaussian unit is listed as a proliferation candidate; for the proliferation candidate, if its maximum size is not greater than the preset size threshold, a replication operation is performed, and if its maximum size is greater than the preset size threshold, a splitting operation is performed. In addition, three-dimensional Gaussian units with opacity below the pruning threshold or scale anomalous are deleted, and parent Gaussians that have been replaced by split child Gaussians are also deleted. After the structural adjustment is completed, the cumulative value used to calculate the average residual is reset.

8. The three-dimensional Gaussian reconstruction method based on underwater medium modeling and residual guidance according to claim 1, characterized in that, In S4, the depth weight is obtained by normalizing the depth values ​​of each pixel in the rendered depth map, multiplying them by a preset depth weight coefficient, and then adding 1; the channel weight applies attenuation to the red channel according to the normalized depth, and the red channel weight is set to a value of ,in This represents the normalized depth value of each pixel. This represents the long-distance attenuation coefficient of the red channel; the channel weights for the green and blue channels remain at a weight of 1.

9. The three-dimensional Gaussian reconstruction method based on underwater medium modeling and residual guidance according to claim 1, characterized in that, The formula for the underwater sensing residual reconstruction loss is as follows: ; in, This indicates the loss in underwater sensing residual reconstruction. This represents the average of all pixel positions and RGB color channels in an image. Represents the residual weights. Indicates depth weights, This represents the channel weight of the RGB color channel c in the image. This represents the color value of the actual image in channel c. This represents the color value in channel c of the underwater rendered image. This represents the robust error function.

10. A three-dimensional Gaussian reconstruction system based on underwater medium modeling and residual guidance, used to implement the three-dimensional Gaussian reconstruction method based on underwater medium modeling and residual guidance as described in claim 1, characterized in that the system... include: The initialization and rendering module is used to acquire multi-view images of the underwater scene and camera parameters, initialize a three-dimensional Gaussian set containing multiple three-dimensional Gaussian primitives, and project it onto the image plane for differentiable rasterization rendering to obtain a rendering depth map. The underwater medium imaging module is used to input the line-of-sight direction encoding and scene-level medium encoding into the underwater medium network, predict the optical parameters of the water medium corresponding to each pixel, combine the depth of each three-dimensional Gaussian unit relative to the camera, generate the scene direct light component and medium scattering component attenuated by the water body, and add them together to obtain the underwater rendering image. The scene-level medium encoding is a parameter vector that is jointly optimized during training; The residual-guided structure optimization module is used to calculate the pixel-level reconstruction residual between the real underwater image and the underwater rendered image. It aggregates the pixel-level reconstruction residual to each three-dimensional Gaussian element to obtain the average residual and determines the residual weight. It uses the residual weight to perform residual modulation on the original gradient multiplication signal to obtain the final multiplication score and performs structural adjustment on the three-dimensional Gaussian set. The loss function construction module is used to fuse residual weights, depth weights based on the rendered depth map, and channel weights based on color channel attenuation priors, and combine them with a robust error function to obtain the underwater perception residual reconstruction loss. The joint optimization and reconstruction module is used to jointly optimize the 3D Gaussian meta-parameters, scene-level medium coding, and underwater medium network parameters based on underwater perception residual reconstruction loss, and renders new perspective images after training.