Abstract
A wide range of applications in marine ecology extensively uses underwater cameras. Still, to efficiently process the vast amount of data generated, we need to develop tools that can automatically detect and recognize species captured on film. Classifying fish species from videos and images in natural environments can be challenging because of noise and variation in illumination and the surrounding habitat. In this paper, we propose a two-step deep learning approach for the detection and classification of temperate fishes without pre-filtering. The first step is to detect each single fish in an image, independent of species and sex. For this purpose, we employ the You Only Look Once (YOLO) object detection technique. In the second step, we adopt a Convolutional Neural Network (CNN) with the Squeeze-and-Excitation (SE) architecture for classifying each fish in the image without pre-filtering. We apply transfer learning to overcome the limited training samples of temperate fishes and to improve the accuracy of the classification. Our solution achieves the state-of-the-art accuracy of 99.27% on the pre-training. The percentage values for accuracy on the post-training are 83.68% and 87.74% with and without image augmentation, respectively, indicating that the solution is viable with a more extensive dataset.
Introduction
Marine ecologists are increasingly relying on underwater video monitoring to assess ecosystem health. However, the sheer volume of data generated is overwhelming. Manually identifying fish species in thousands of hours of footage is labor-intensive, expensive, and prone to human error. While computer vision offers a potential solution, the underwater environment presents unique challenges: variable lighting, turbidity, and complex backgrounds make it difficult to distinguish biological life from rocks or vegetation. Furthermore, most existing high-performing models are optimized for tropical species, leaving a significant gap in automated tools for temperate fish species, such as those found in the North Sea.
Methodology
This research proposes a decoupled, two-step architecture that separates the tasks of localization and identification. This approach allows the system to focus on finding objects in noisy environments before attempting the more nuanced task of species classification.
Detection and Classification Pipeline
- Detection (YOLOv3): The system utilizes the "You Only Look Once" (YOLOv3) algorithm to identify and draw bounding boxes around every fish in a frame. By treating detection as a species-agnostic task, the model effectively ignores background noise and focuses solely on biological targets.
- Classification (CNN-SENet): Detected fish are cropped and passed to a Convolutional Neural Network enhanced with Squeeze-and-Excitation (SE) blocks. These blocks allow the network to perform dynamic channel-wise feature recalibration, essentially learning to prioritize the most informative features (e.g., specific fin shapes or color patterns) while suppressing irrelevant background information.
Transfer Learning Strategy
To address the scarcity of annotated temperate fish data, a three-stage transfer learning process was employed. The model was first initialized with ImageNet weights, then pre-trained on the large Fish4Knowledge dataset (27,230 images of 23 tropical species) to establish a general understanding of fish morphology. Finally, the model was fine-tuned on a custom Temperate Fish Dataset collected via GoPro cameras in Southern Norway, featuring species like Corkwing wrasse, Pollack, and Coalfish.
Results and Discussion
The decoupled architecture proved highly effective in unconstrained underwater environments. The YOLOv3 detection model achieved a mean Average Precision (mAP) of 86.96%, demonstrating its ability to reliably locate fish even in dark or murky conditions.
In terms of classification, the CNN-SENet reached a state-of-the-art accuracy of 99.27% on the tropical pre-training set. On the more challenging temperate dataset, the model achieved 83.68% accuracy, which improved to 87.74% with the use of image augmentation. Beyond accuracy, the SENet architecture demonstrated significant computational efficiency, processing epochs nearly four times faster than deeper models like Inception-V3. This efficiency makes the pipeline a strong candidate for real-time deployment on edge devices for field research.
Conclusion
This study validates that features learned from tropical fish datasets can successfully generalize to temperate species through transfer learning. While the current model is limited by the number of temperate classes, the results indicate that the two-step YOLO-SENet pipeline is a robust foundation for automated marine monitoring. Future work will focus on expanding the temperate dataset and incorporating temporal video tracking to better distinguish moving fish from swaying aquatic vegetation.
Summary updated