Looking Into the Water by Unsupervised Learning of the Surface Shape

Ori Lifschitz, Tali Treibitz, Dan Rosenbaum

Introduction

If you’ve ever tried to look at an object at the bottom of a swimming pool, you know the visual challenge: the water's surface acts like a moving, liquid lens. Due to refraction (Snell’s Law), light rays bend at the air-water interface, causing the underlying scene to appear distorted, shifted, and blurred.

This paper introduces a novel unsupervised method to "de-wobble" images of underwater scenes viewed through a wavy surface. By modeling both the static scene and the dynamic water surface as neural fields, the researchers can reconstruct the original image and estimate the water's 3D shape simultaneously—all without needing a single frame of ground-truth data.

The Challenge of Seeing Through Water

In computer vision, looking through water is a classic problem. Supervised learning—the standard approach of showing an AI the "correct" answer—is incredibly difficult here. It is nearly impossible to capture real-world datasets that include both the distorted video and the perfectly "clean" ground-truth image, let alone the exact 3D shape of the waves at every millisecond.

While previous unsupervised methods exist, they often require massive amounts of data (hundreds of frames) or rely on complex, unstable training pipelines.

A Physics-Informed Neural Architecture

To tackle this, the authors propose an elegant architecture consisting of two continuous "neural fields":

  1. The Surface Height Model ($H_\theta$): A Sinusoidal Representation Network (SIREN) that takes a 2D position and a timestamp $(x, y, t)$ to predict the height of the water at that exact moment.
  2. The Image Model ($I_\phi$): A second SIREN that takes a 2D position $(x, y)$ and predicts the "clean," undistorted color of the scene at that spot.

The Secret Sauce: Physics-Based Differentiable Rendering Instead of just guessing what the clean image looks like, the model uses the laws of physics to connect the two networks. According to a first-order approximation of Snell’s Law, image distortion is directly proportional to the gradient (the slope) of the water surface.

Because the researchers use SIRENs—which employ periodic sine waves as activation functions—the network is exceptionally good at modeling both a signal and its mathematical derivatives. The system takes the predicted surface height, calculates its gradient, uses that to "warp" the predicted clean image, and compares the result to the actual distorted video frame. The difference between the two (the reconstruction loss) is used to train the entire system end-to-end.

Comparison of the proposed method against the distorted frame, NDIR baseline, and ground truth, alongside the estimated surface height.

Key Insights and Results

The researchers evaluated their method on a mix of real-world and simulated data, including the James Real1 dataset (challenging real-world sequences with motion blur), high-speed TianSet data, synthetic wave simulations, and a Coral Tank test to evaluate complex 3D objects.

  • Superior Restoration: The method consistently outperformed the previous unsupervised leader (NDIR) across almost all metrics, including PSNR, SSIM, and LPIPS. Visually, this translates to much sharper edges and straighter lines in the reconstructed images.
  • Simplicity and Stability: While previous state-of-the-art unsupervised methods required three different complex loss terms to stay stable, this method achieves better results using a simple L1 reconstruction loss, largely thanks to the spatio-temporal continuity learned by the SIREN networks.
  • Bonus Surface Mapping: As a byproduct of the restoration process, the model produces a plausible 3D reconstruction of the water surface. In synthetic tests, these estimated "wave maps" closely matched the ground truth.

Limitations and Future Directions

The authors acknowledge a few key constraints. Primarily, the current model assumes the underwater scene is a flat plane. While it works surprisingly well on 3D corals, high-relief environments might still cause issues. Additionally, some very fine details can be lost due to the limited capacity of the neural networks used.

Looking forward, the authors suggest this technique could serve as a vital pre-processing step for autonomous underwater vehicles (AUVs) performing Simultaneous Localization and Mapping (SLAM) or environmental surveys, where "seeing clearly" is a strict prerequisite for safe navigation.

Summary updated

BibTeX
@inproceedings{lifschitz2025looking,
  author = {Ori Lifschitz and Tali Treibitz and Dan Rosenbaum},
  title = {{Looking Into the Water by Unsupervised Learning of the Surface Shape}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=4MKIaHbmGO},
}
Figure