Depth Jitter: Seeing through the Depth

Md Sazidur Rahman, David Cabecinhas, Ricard MarxerarXiv 2025 · DOI

Abstract

Underwater computer vision is significantly hindered by the complex optical properties of water, where light absorption and scattering create depth-dependent visual degradations. This paper presents Depth Jitter, a physics-aware data augmentation technique that incorporates the 3D structure of underwater scenes into the training process. By estimating scene depth and re-rendering images under simulated variations in distance and turbidity, the method enhances the robustness of multi-label classification models. Evaluations on the UTDAC2020 and FathomNet datasets demonstrate significant improvements in mean Average Precision (mAP) and model stability compared to traditional augmentation methods.

Introduction

Training robust AI models for marine environments is a significant challenge. Unlike terrestrial photography, the ocean acts as a selective filter; light is absorbed and scattered at rates that depend heavily on wavelength and the distance traveled through the medium. This phenomenon causes objects to change appearance drastically based on their depth and proximity to the camera.

Standard data augmentation techniques, such as ColorJitter or CLAHE, operate on 2D pixel grids and ignore the underlying 3D geometry. While these methods can adjust global brightness or contrast, they fail to capture the spatially varying degradation characteristic of underwater scenes. Consequently, models trained with "flat" augmentations often struggle to generalize to new environments with different depths or water clarity. Depth Jitter addresses this by integrating the physics of underwater light into the augmentation pipeline.

Methodology

The Depth Jitter algorithm follows a three-stage process to create physically plausible variations of training images:

  1. Monocular Depth Estimation: For each image in the training set, a depth map is generated using a pre-trained model such as Depth-Anything. This provides the necessary 3D context for the scene.
  2. Underwater Image Formation Model (UIFM): The method utilizes a physical model to describe light interaction. This model incorporates parameters for "veiling light" (the background haze) and specific coefficients for absorption and backscatter.
  3. Adaptive Depth Offsetting: During training, a random depth offset is applied to the estimated depth map. A negative offset simulates the object being closer to the camera (increasing contrast and color saturation), while a positive offset simulates deeper or murkier water (increasing attenuation and haze).
A monocular depth map estimated from an underwater scene, providing the structural basis for Depth Jitter.

To maintain efficiency, depth maps and imaging parameters are pre-calculated, allowing the re-rendering to occur on-the-fly during training with minimal computational overhead. Furthermore, an adaptive strategy is employed for complex datasets like UTDAC2020, where jitter is prioritized for images with high depth variance to ensure the model learns from meaningful spatial information.

The Depth Jitter pipeline: applying various depth offsets to simulate different distances and water conditions based on the Underwater Image Formation Model.

Experimental Results

The researchers evaluated Depth Jitter using the Query2Label (Q2L) framework with a ResNeSt-101 backbone on two major benchmarks:

  • UTDAC2020: In this complex dataset with high depth variation, Depth Jitter achieved a mean Average Precision (mAP) of 0.97, significantly outperforming the baseline (0.95) and standard ColorJitter (0.93). The model also reached a near-perfect ROC AUC of 0.99.
  • FathomNet: On this large-scale ecological dataset, the method improved the mAP@20 to 0.87 (up from a 0.85 baseline) and achieved the lowest validation loss (0.16) among all tested strategies.

Beyond performance metrics, Depth Jitter was found to enhance model stability and generalization in depth-sensitive environments, making it a more reliable choice for deployment on Autonomous Underwater Vehicles (AUVs).

Conclusion

Depth Jitter represents a shift from simple pixel manipulation to physics-aware simulation in underwater computer vision. By preserving structural integrity and simulating the actual causes of visual degradation, it provides a more reliable training signal for deep learning models.

Future work will address current limitations, such as the dependency on the quality of monocular depth estimation and the assumption of uniform water properties. The authors suggest that implementing a learnable offset generator and expanding the technique to other domains like medical imaging or aerial photography through haze could further demonstrate the versatility of depth-aware augmentation.

Summary updated

BibTeX
@misc{rahman2025depth,
  author = {Md Sazidur Rahman and David Cabecinhas and Ricard Marxer},
  title = {{Depth Jitter: Seeing through the Depth}},
  year = {2025},
  eprint = {2508.06227},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.06227},
}
Figure