NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Semi-supervised Object Detection Algorithm for Underwater Imagery

Suraj Bijjahalli, Oscar Pizarro, Stefan B. WilliamsarXiv 2023

Here is a blog-style summary of the research paper.

Finding Needles in the Seafloor: A Semi-supervised Approach to Underwater Object Detection

TL;DR

This paper introduces a semi-supervised anomaly detection framework using Variational Autoencoders (VAEs) to identify artificial objects in massive, unlabelled underwater image datasets. By combining density-based clustering in a reduced latent space with a novel Region of Interest (ROI) reconstruction metric, the system filters out complex natural backgrounds to achieve an average precision of 0.64.

What Problem Does This Paper Address?

Autonomous Underwater Vehicles (AUVs) generate vast amounts of seafloor imagery during marine surveys. Hidden within these thousands of images might be a few critical artificial objects—like marine debris, lost equipment, or specific targets. Manually inspecting these massive datasets is a tedious, error-prone task for human operators.

Standard computer vision approaches rely on supervised deep learning, which requires massive, hand-labelled, and well-balanced datasets. Underwater data, however, is highly imbalanced: natural features (sand, kelp, rocks) make up the vast majority of the data, while artificial objects are exceedingly rare. Furthermore, standard anomaly detection methods that rely on global reconstruction error (L2 loss) fail in these environments because the complex, highly variable natural background blunts and overwhelms the anomaly score of a relatively small object.

Methods

To tackle these challenges, the authors propose a two-pronged semi-supervised framework centered around a Variational Autoencoder (VAE) trained exclusively on "inlier" (purely natural) imagery.

Fig. 1: System overview - Images captured by an AUV are passed as inputs to a trained VAE. Low density regions of the latent space are extracted and further queried using an anomaly map obtained from the VAE reconstruction error.

When a new dataset is processed, the system passes images through the trained VAE and executes two parallel pipelines:

  1. Latent Space Clustering: The encoder compresses the input image into a low-dimensional latent vector ($z$). The dimensions are further reduced using t-SNE to a 2D representation. Because the VAE was only trained on natural scenes, anomalous images naturally map to low-density regions. The authors use Kernel Density Estimation (KDE) to isolate these sparse regions, significantly narrowing down the search space.
  2. ROI-based Anomaly Scoring: Instead of looking at the global reconstruction error of the entire image, the system generates a pixel-wise squared-difference heatmap. It applies median blurring and morphological filters to extract distinct Regions of Interest (ROIs). Crucially, using known camera calibration parameters and vehicle altitude, the system translates physical size constraints (e.g., a 30cm object) into pixel area bounds, discarding any ROIs that are too large or too small. The final anomaly score is calculated as the mean reconstruction error solely within the valid contour boundaries.

Datasets

The framework was evaluated using real-world seafloor imagery gathered by the Nimbus AUV at Jervis Bay, Australia, in April 2021.

Nimbus AUV and sample images
  • Training & Validation: 14,616 inlier images showing only natural features, split into a 70% training and 30% validation set.
  • Testing: A separate dataset consisting of 614 inlier images from a different dive, appended with 14 outlier images containing an artificial target (a 30cm x 30cm panel with a USBL acoustic transponder), yielding an outlier proportion of 2.2%.

Key Insights and Ideas

  • Global L2 Loss Fails on Complex Backgrounds: The authors demonstrate that standard global reconstruction loss cannot reliably separate inliers from outliers. Complex backgrounds like kelp or rocky reefs generate high reconstruction errors that completely mask the signal of a small artificial object.
  • Anomalies Cluster in Low-Density Latent Space: By mapping the high-dimensional latent space down to a 2D embedding, the authors confirmed that anomalous images consistently gather in low-density peripheral regions, making them prime targets for density-based clustering algorithms like KDE or DBSCAN.
  • Physical Priors are Powerful Filters: Incorporating simple metadata—like altitude and camera field-of-view—allows the system to use geometric constraints to instantly eliminate false positives caused by large patches of unusual natural terrain or tiny image artifacts.

Key Results

Using the standalone global L2 loss yielded poor separation between natural scenes and targets. However, the proposed joint method drastically reduced the false alarm rate.

ROI anomaly score distribution

Applying the clustering method jointly with the ROI scoring mechanism achieved a precision of 0.434 and a recall of 0.714. By optimizing the thresholds (specifically using a 95th-percentile threshold on the ROI score), the system achieved an average precision of 0.64 on unlabelled datasets, providing human operators with a highly refined, manageable subset of candidate images.

Limitations and Future Work

While effective, the proposed method has a few limitations:

  • Hyperparameter Sensitivity: The clustering performance is highly sensitive to the choice of the latent vector dimensionality ($d$), requiring careful tuning.
  • Lack of Temporal Context: The framework treats every image independently. It does not exploit the temporal dependencies or sequential overlap between consecutive frames captured during an AUV flight path.
  • Static Thresholds: The reconstruction error thresholds are static and may not adapt well if the AUV transitions between drastically different marine environments during a single mission.

Future work will focus on leveraging pre-trained models as feature extractors within the VAE encoder, incorporating temporal sequence data to support online (real-time) anomaly detection, and developing adaptive thresholding techniques.

Summary updated

BibTeX
@misc{bijjahalli2023semi,
  author = {Suraj Bijjahalli and Oscar Pizarro and Stefan B. Williams},
  title = {{A Semi-supervised Object Detection Algorithm for Underwater Imagery}},
  year = {2023},
  eprint = {2306.04834},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.04834},
}
Figure