Abstract
The Caltech Fish Counting Dataset (CFC) is a large-scale benchmark for detecting, tracking, and counting fish in sonar videos. It features over 500,000 annotations to advance multiple-object tracking (MOT) and counting in the wild. A full instructional guide is provided at https://github.com/visipedia/caltech-fish-counting.
Introduction
Most computer vision progress in tracking and counting has occurred in urban settings with high-quality RGB data. In these environments, targets have distinct colors and textures, allowing models to use re-identification (re-ID) to maintain track of individuals. However, ecologists monitoring fish populations rely on imaging sonar, which works in murky water and at night but produces noisy, grayscale, low-resolution output.
In the sonar domain, appearance is often unhelpful as fish look nearly identical. Furthermore, domain shift is significant; a model trained on one river often fails on another due to differences in riverbed texture, sediment levels, and acoustic shadows. This makes traditional visual re-ID ineffective, requiring a focus on motion and temporal consistency.
The Caltech Fish Counting Dataset (CFC)
To bridge the gap between "clean" computer vision and the "messy" reality of conservation engineering, the authors introduce the CFC dataset. It includes 1,567 video sequences, 8,254 individual fish tracks, and 515,933 bounding boxes. The data is sourced from seven different sonar cameras across five locations in Alaska and Washington.
The benchmark is specifically designed to measure domain generalization. Models are typically trained on one location (e.g., Kenai Left Bank) and tested on entirely different rivers. This setup evaluates how well algorithms can adapt to new environments without site-specific retraining.
Methods
The researchers established a "tracking-by-detection" pipeline using YOLOv5 as the detector and SORT (Simple Online and Realtime Tracking) as the tracker. To improve generalization, they proposed an innovation called "Baseline++," which appends two extra channels to the raw sonar frame:
- Background Subtraction: Highlights moving objects by subtracting the average of all frames in a clip.
- Frame Differencing: Captures motion by taking the difference between the current and previous frames.
This approach forces the model to ignore static riverbed features—which vary by location—and focus on the universal signature of a moving fish.
Key Insights and Results
Experiments showed that standard re-ID networks fail in the sonar domain, achieving only 19.2% mAP compared to ~80% on human datasets. This confirms that sonar tracking must rely on motion rather than appearance. Furthermore, "upper bound" experiments revealed that the primary bottleneck is the detector's inability to see fish against unfamiliar backgrounds, rather than the tracking logic itself.
The Baseline++ method significantly improved performance. On the difficult Kenai Channel test site, the standard baseline had a 53% counting error, which Baseline++ reduced to 12.8%. At the Elwha test site, Average Precision (AP50) jumped from 39.9% to 74.7% with the addition of motion channels.
Conclusion
The CFC dataset provides a robust benchmark for moving beyond urban-centric computer vision. While current methods excel at tracking moving fish, future work is needed to handle stationary fish and perform fine-grained species identification. The authors suggest that self-supervised learning could further enhance robustness to new environments without requiring additional manual labels.
Summary updated