UWStereo: A Large Synthetic Dataset for Underwater Stereo Matching

Qingxuan Lv, Junyu Dong, Yuezun Li, Sheng Chen, Hui Yu, Shu Zhang, Wenhan Wang

TL;DR

This paper introduces UWStereo, the first large-scale synthetic dataset specifically designed for underwater stereo matching, featuring 29,568 high-quality image pairs with dense, accurate disparity annotations. To overcome the severe domain gaps and visual degradations characteristic of underwater environments, the authors also propose a novel training strategy combining a Cross-View Attention Enhancement (CVE) module with a paired masked image reconstruction pretraining task. This approach significantly improves the ability of stereo matching models to generalize from synthetic data to real-world underwater scenes.

What Problem Does This Paper Address?

Stereo matching—the process of estimating 3D depth from a pair of 2D images—is crucial for autonomous underwater vehicles (AUVs) and robotic submersibles navigating marine environments. However, applying standard terrestrial stereo matching models to underwater scenes fails due to two major roadblocks:

  1. Severe Visual Degradation: Underwater images suffer from light absorption, scattering, and refraction, leading to low contrast, color distortion, and poor visibility.
  2. Data Scarcity: Training deep learning models requires massive amounts of ground-truth depth data. In the ocean, it is practically impossible to obtain perfectly accurate, pixel-wise depth maps using physical sensors.

While researchers typically rely on a Simulation-to-Real (Sim2Real) paradigm—training models on synthetic datasets like SceneFlow before fine-tuning on real data—existing underwater datasets are either too small or lack accurate, dense pixel-level annotations.

Fig. 1. Illustration of the dilemma for underwater stereo matching. Left: With sufficient datasets, stereo matching models can be easily trained, evaluated, and applied on aquatic environments. Middle: The accurate depth information is hard to acquired in real underwater scenes. Right: Our UWStereo is able to provide accurate depth information for all pixels and synthesize photo-realistic underwater images.

Methods

To solve the data bottleneck, the authors used Unreal Engine 5 (UE5) to build a highly realistic data generation pipeline. They simulated four distinct underwater environments (coral, default, industry, and ship) populated with diverse 3D assets like shipwrecks, corals, and underwater robots. To mimic real-world underwater camera setups, they introduced variations in camera baselines, diverse light sources, and adjusted UE5’s volumetric fog to simulate different water turbidity and scattering conditions.

Fig. 3. Synthesizing workflow.

To improve model generalization across domains, the authors introduced two key technical components to an iterative stereo matching baseline (IGEV):

  • Cross-View Enhancement (CVE) Module: Positioned after the feature extractor, this module leverages Multi-Head Attention and LoFTR blocks to capture long-range, cross-view dependencies, helping the network better perceive the underlying geometric structure of the scene.
  • Paired Masked Image Reconstruction Pretraining: Before training on the actual stereo matching task, the model undergoes self-supervised pretraining. Random patches of the left and right images are masked out, and the network is forced to reconstruct the missing pixels. This teaches the model robust structural representations rather than allowing it to overfit to domain-specific textures or lighting conditions.

Datasets

The paper introduces and utilizes the following datasets:

  • UWStereo (New): Contains 29,568 stereo image pairs (1280×720 resolution) split into 26,612 training pairs and 2,956 testing pairs. It provides dense, accurate ground-truth disparity maps for the left view.
  • Terrestrial Baselines (for benchmarking/pretraining): SceneFlow, KITTI-2012/2015, Middlebury2014, and MPI Sintel.
  • Underwater Baselines (for comparison): HIMB, FLSea-Stereo, and VAROS.
Fig. 2. Stereo image examples from the UWStereo dataset.

Key Insights and Ideas

  • The Naive Sim2Real Trap: Interestingly, the authors found that simply training a standard model (like IGEV) on synthetic underwater data can actually degrade its performance on real-world data compared to training it on terrestrial data. The simulated underwater effects act as noise that causes the model to overfit to synthetic artifacts.
  • Masked Pretraining as a Regularizer: Forcing the network to reconstruct masked image pairs acts as an excellent geometric regularizer. By setting an optimal mask ratio ($r_1 = r_2 = 0.5$), the model is forced to look across views to find corresponding structural cues, inherently learning the physics of stereo correspondence.
  • Iterative Optimization Rules: When benchmarking nine state-of-the-art algorithms on UWStereo, iterative optimization methods (which recurrently update disparity maps, such as HSMNet and IGEV) consistently outperformed traditional cost-filter-based methods in handling complex underwater structures.

Key Results

  • UWStereo Benchmark: Iterative models like HSMNet and IGEV achieved the lowest End-Point Error (EPE) across the UWStereo dataset, with HSMNet hitting an overall EPE of 0.68.
  • Real-World Generalization: When evaluated on the real-world FLSea-Stereo (rock garden2) dataset, a standard IGEV model trained on SceneFlow yielded a Mean Error of 1.10 meters. When trained on UWStereo, its error actually worsened to 1.22 meters due to overfitting. However, the authors' proposed method (CVE + Masked Pretraining) achieved a significantly lower Mean Error of 0.87 meters, proving its superior domain adaptation capability.

Limitations and Future Work

While the proposed framework shows remarkable generalization improvements, the authors note that the interaction between self-supervised learning paradigms and stereo matching architectures remains largely unexplored. For instance, some self-supervised models like Croco-Stereo showed limited performance in their benchmarks. Additionally, due to hardware constraints, the ablation studies were conducted with smaller batch sizes, which slightly bottlenecked potential performance gains. Future work will focus on scaling up the self-supervised pretraining and exploring more advanced cross-domain matching losses.

Summary updated

BibTeX
@misc{lv2024uwstereo,
  author = {Qingxuan Lv and Junyu Dong and Yuezun Li and Sheng Chen and Hui Yu and Shu Zhang and Wenhan Wang},
  title = {{UWStereo: A Large Synthetic Dataset for Underwater Stereo Matching}},
  year = {2024},
  eprint = {2409.01782},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.01782},
}
Figure