An Application of Shape-Based Level Sets to Fish Detection in Underwater Images

Mehdi Ravanbakhsh, Mark Shortis, Faisal Shaifat, Ajmal S. Mian, Euan Harvey, James SeagerGSR 2014

Abstract

Automated monitoring of fish populations in aquaculture and marine biology is often hindered by the poor quality of underwater imagery. This paper presents a robust pipeline for fish segmentation that integrates Haar-like classifiers for initial pose detection with a PCA-based shape-constrained level set method. By incorporating high-level prior knowledge of fish morphology, the system achieves sub-pixel accuracy (0.7–0.9 pixels RMS error) even in low-contrast, cluttered environments. This approach facilitates automated biomass estimation and species recognition, reducing the reliance on manual human intervention.

Introduction

Accurate counting and measurement of fish are vital for sustainable aquaculture management and marine research. While stereo-video systems are commonly used for non-destructive monitoring, data extraction remains a significant bottleneck. Currently, human operators must manually identify key landmarks, such as the snout and tail, to estimate fish length and biomass.

Automating this task is challenging due to the inherent properties of underwater environments. Light attenuation, turbidity, and complex backgrounds—including nets and overlapping fish—often render traditional edge-detection algorithms ineffective. This paper addresses these challenges by proposing a segmentation method that utilizes shape priors to delineate fish boundaries accurately in uncontrolled settings.

Methodology

The proposed pipeline consists of three primary stages: identification, shape prior generation, and segmentation.

  1. Identification: Initial detection is performed using background subtraction to isolate moving objects. Subsequently, a Haar-like classifier, trained on fish snouts and tails, determines the initial pose (position, scale, and rotation) of the fish.
  2. Shape Prior Generation: To provide the algorithm with "knowledge" of what a fish looks like, 20 fish silhouettes were digitized and aligned. Principal Component Analysis (PCA) was applied to these shapes to create a statistical model of the mean fish shape and its primary modes of variation (eigenshapes).
  3. Shape-Based Level Sets: The core segmentation uses a region-based level set method. Unlike edge-based methods, this approach evolves a contour to maximize the homogeneity of the regions it separates. Crucially, the evolution is constrained by the PCA shape model, ensuring the resulting contour remains "fish-like" and does not bleed into the background or snag on occlusions.
The level set function ϕ(x) is defined to be negative inside the contour and positive outside. Subplot (a) shows the 2D zero level set (red circle), while (b) illustrates the corresponding 3D surface.

Experimental Setup and Datasets

The Haar-like detectors were trained on 200 manually cropped images of tuna snouts and tails. The PCA shape model was built from 20 digitized binary images. For evaluation, the authors used 35 challenging images from video sequences of Southern Bluefin Tuna (SBT) transfers between aquaculture cages. These images represent typical real-world difficulties, such as varying illumination and partial occlusions.

Sample stereo-video frames showing Southern Bluefin Tuna in an aquaculture cage. The low contrast and murky conditions highlight the difficulty of automated segmentation.

Results and Discussion

The system's performance was measured against manually annotated ground truth using a "buffer method." The results demonstrate high precision:

  • Geometric Accuracy: The system achieved a Root Mean Square (RMS) error of 0.7 to 0.9 pixels, which is well within the 1-pixel tolerance required for practical biomass estimation.
  • Reliability: Using a strict 3-pixel buffer, the algorithm reached 89.6% correctness. When the buffer was expanded to 8 pixels, both correctness and completeness reached 100%.

A key insight from the study is that shape priors are essential for handling "bad" images. By restricting the possible outputs to valid fish shapes, the algorithm successfully ignores misleading features like net meshes or shadows. Furthermore, the PCA analysis highlighted that while the main body is rigid, fins and tails are highly variable, suggesting these features could be leveraged for future species identification.

Conclusion

The integration of Haar-like pose initialization with shape-constrained level sets provides a robust solution for underwater fish segmentation. While the current model is optimized for 2D-like movement within cages, future work will focus on 3D orientation modeling to handle wild habitats. Additionally, the authors plan to incorporate color information and expand the system to support multi-species detection, further advancing the automation of marine biological surveys.

Summary updated

BibTeX
@inproceedings{ravanbakhsh2014application,
  author = {Mehdi Ravanbakhsh and Mark Shortis and Faisal Shaifat and Ajmal S. Mian and Euan Harvey and James Seager},
  title = {{An Application of Shape-Based Level Sets to Fish Detection in Underwater Images}},
  booktitle = {GSR},
  year = {2014},
}
Figure