Underwater Ranker: Learn Which Is Better and How to Be Better

Chunle Guo, Ruiqi Wu, Xin Jin, Linghao Han, Weidong Zhang, Zhi Chai, Chongyi Li

Introduction

Evaluating the quality of underwater images is notoriously difficult. Standard metrics like Peak Signal-to-Noise Ratio (PSNR) or Structural Similarity Index (SSIM) require a "ground truth" reference image, which is nearly impossible to capture in real-world underwater environments. Existing non-reference metrics often rely on hand-crafted formulas that struggle with the diverse color casts and lighting conditions found in the ocean.

To address this, researchers have developed URanker, a novel Underwater Image Quality Assessment (UIQA) method. Instead of predicting an arbitrary quality score, URanker is taught to rank images based on human preference. This relative ranking approach is more intuitive and robust, allowing the model to act as a "teacher" to significantly improve image enhancement algorithms.

The URanker Architecture

URanker is built on an efficient "conv-attentional" Transformer architecture designed to handle the unique challenges of underwater photography. It introduces two key components:

  1. Histogram Prior Module (HPM): Color cast is a global degradation in underwater scenes. HPM calculates the global color histogram and converts it into a "histogram token," providing the Transformer with essential context about the overall color distribution.
  2. Dynamic Connection Parallel Block (DCPB): To manage local issues like blur and loss of detail, DCPB adaptively integrates features across different scales. It uses learnable parameters to decide how much information to pull from other scales, ensuring multi-scale context without degrading original features.
The URanker architecture utilizes a Histogram Prior Module (HPM) for global color context and Dynamic Connection Parallel Blocks (DCPB) for multi-scale feature integration.

The model is trained using a Margin Ranking Loss, which forces the network to predict scores that respect the human-provided order of quality.

Learning Which Is Better

The effectiveness of URanker stems from its training on a new benchmark called URankerSet. This dataset consists of 890 raw underwater images, each processed by nine different enhancement algorithms to create ten versions per scene. Eleven volunteers then used a "Bubble Sort" approach to manually rank these versions from best to worst, creating a robust dataset of human perceptual preferences.

The URanker training process focuses on learning relative quality rankings from human-annotated data, which provides a more stable training signal than absolute scoring.

By learning the relative order of quality, URanker becomes more robust than models attempting to fit noisy, subjective absolute scores.

Learning How to Be Better

A significant insight of this research is that a good quality assessment model can be an active teacher. By using the pre-trained URanker as a loss function, standard Underwater Image Enhancement (UIE) networks can be optimized for better visual results.

The authors also introduced a "Normalization Tail"—a simple mathematical layer at the end of enhancement networks. This layer handles pixel value "overflow" (becoming too bright or dark) by stretching the output range. This simple addition, combined with the URanker loss, allowed their simple U-shape network (NU²Net) to outperform established models like WaterNet and Ucolor.

Key Results and Insights

  • State-of-the-Art Performance: URanker achieved a Spearman Rank-order Correlation Coefficient (SRCC) of 0.8655, a 5.02% improvement over the previous best method.
  • Enhanced Enhancement: NU²Net equipped with URanker loss and the normalization tail achieved a PSNR of 22.669, demonstrating the power of UIQA-guided training.
  • Ablation Success: Removing the Histogram Prior Module (HPM) caused a drop in performance, confirming that global color information is critical for judging underwater quality.

Conclusion

URanker shifts the paradigm of underwater image evaluation from absolute scoring to relative ranking. By incorporating global color priors and multi-scale feature integration, it provides a metric that aligns closely with human perception. Furthermore, its application as a loss function demonstrates that better evaluation leads directly to better enhancement. Future work will focus on reducing computational complexity for real-time deployment on underwater drones and exploring the generalization of these ranking principles across even more diverse environments.

Summary updated

Abstract

In this paper, we present a ranking-based underwater image quality assessment (UIQA) method, abbreviated as URanker. The URanker is built on the efficient conv-attentional image Transformer. In terms of underwater images, we specially devise (1) the histogram prior that embeds the color distribution of an underwater image as histogram token to attend global degradation and (2) the dynamic cross-scale correspondence to model local degradation. The final prediction depends on the class tokens from different scales, which comprehensively considers multi-scale dependencies. With the margin ranking loss, our URanker can accurately rank the order of underwater images of the same scene enhanced by different underwater image enhancement (UIE) algorithms according to their visual quality. To achieve that, we also contribute a dataset, URankerSet, containing sufficient results enhanced by different UIE algorithms and the corresponding perceptual rankings, to train our URanker. Apart from the good performance of URanker, we found that a simple U-shape UIE network can obtain promising performance when it is coupled with our pre-trained URanker as additional supervision. In addition, we also propose a normalization tail that can significantly improve the performance of UIE networks. Extensive experiments demonstrate the state-of-the-art performance of our method. The key designs of our method are discussed. Our code and dataset are available at https://li-chongyi.github.io/URanker_files/.
BibTeX
@inproceedings{guo2023underwater,
  author = {Chunle Guo and Ruiqi Wu and Xin Jin and Linghao Han and Weidong Zhang and Zhi Chai and Chongyi Li},
  title = {{Underwater Ranker: Learn Which Is Better and How to Be Better}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i1.25147},
}
Figure