Underwater robotics and marine biology rely heavily on computer vision, but the ocean is a notoriously difficult environment for data collection. Beyond the physical challenges of underwater imaging—such as haze and color distortion—datasets often suffer from significant "class imbalance." In typical marine datasets, certain species are ubiquitous while others are rarely observed, leading to biased machine learning models.
In this work, researchers Long Chen, Junyu Dong, and Huiyu Zhou introduce Class-Wise Style Augmentation (CWSA). This method leverages generative AI to address class imbalance by synthesizing diverse environmental contexts for rare underwater species.
Addressing the Bottlenecks of Underwater Vision
Deep Neural Networks (DNNs) require vast amounts of high-quality, annotated data to generalize effectively. In underwater domains, two major bottlenecks hinder performance:
- Visual Degradation: Images are subject to varying degrees of light scattering and color absorption, often resulting in heavy green or blue tints. Models trained on one specific water type often fail to generalize to others.
- Class Imbalance: Public datasets like URPC2018 exhibit a "long tail" distribution. For example, sea urchins may have thousands of samples, while scallops or sea cucumbers have very few. Standard models become biased toward dominant classes, achieving high precision on common objects but failing on minority ones.
Traditional augmentation techniques, such as flipping or cropping, do not introduce the visual variety necessary for a model to understand rare species across different environmental conditions.
Methodology: Class-Wise Style Augmentation (CWSA)
The core innovation of this research is the CWSA pipeline, which uses style transfer to change an object's environmental context while preserving its semantic identity.
The Two-Stage Pipeline
- Stage I (Selection): The system identifies images containing minority categories (e.g., scallops) and isolates them from the majority classes.
- Stage II (Augmentation): Underwater environments are categorized into four distinct styles: Green, Blue, Deepblue, and White. Using a CycleGAN framework, the minority class images are translated into these different styles.
CycleGAN allows for unsupervised style transfer, meaning the model learns to translate images from one domain (e.g., "clear water") to another (e.g., "hazy green water") without requiring perfectly paired image examples. Because style transfer primarily modifies low-level features like color and contrast, the high-level geometry—the "scallop-ness" of the object—remains intact.
Key Results and the Balance18 Dataset
The primary output of this research is Balance18, a class-balanced version of the URPC2018 (Underwater Robot Picking Contest) dataset. By applying CWSA to the minority classes, the researchers successfully equalized the sample counts across all categories.
As shown in the data distribution charts, the scallop category—previously a tiny fraction of the data—was boosted to match the majority classes like sea urchins. The resulting images exhibit diverse color distortions and haze effects that mimic real-world underwater conditions, providing the model with the variety needed for robust generalization.
Insights and Future Directions
This study demonstrates that for specialized domains like underwater detection, the diversity of synthetic images is often more critical for model performance than perfect realism. By using style transfer rather than generating images from scratch, the authors ensure that labels remain accurate and avoid the "hallucinations" common in some generative models.
While the current pipeline requires some manual filtering to remove images with GAN-generated artifacts, future work could involve more robust automated quality discriminators. Additionally, expanding the available styles beyond the current four categories could further improve model resilience across varying depths and seabed types.
Summary updated