A comparative evaluation of deep learning architectures, loss functions, and ensemble strategies for underwater fish species classification
Prithvi Shenoy, Ramyashree, S. Raghavendra, Anoop B.N.
Nitte University · Manipal Academy of Higher Education
Key points
From the paper's conclusion- The study provides a benchmark for future research on underwater fish-species classification, ensemble learning, and real-world deployment.
Abstract
Abstract The accurate classification of underwater fish species is important for biodiver-sity monitoring, sustainable fisheries management, and aquaculture. However, underwater fish classification remains challenging due to class imbalance, varying imaging conditions, and high visual similarity among species. This study presents a comprehensive evaluation of deep learning architectures, loss functions, and ensemble strategies for underwater fish species classification. Using the Mark Daniel Lampa Kaggle Fish Dataset comprising 13,304 images across 31 species, duplicate images were removed using a combination of MD5 hashing and perceptual hashing, resulting in a cleaned dataset for model training and evaluation. EfficientNet-B0, EfficientNetV2-S, Swin-Tiny Transformer, and ConvNeXt-Tiny were trained using both class-weighted cross-entropy loss and focal loss. The experimental results indicate that class-weighted cross-entropy loss consistently provided stronger performance for individual models, whereas focal loss produced a marginal improvement when used with the soft-voting ensemble. Among the individual models, EfficientNet-B0 achieved the highest accuracy of 94.81%. Ensemble learning further improved performance, with the four-model soft-voting ensemble achieving a test accuracy of 97.21% and a macro-F1 score of 0.9678 on the cleaned Kaggle dataset. An external dataset of 310 internet-sourced fish images was additionally used to assess model generalization under domain-shift conditions, where the ensemble achieved an accuracy of 76.39% and a macro-F1 score of 0.7335. While performance decreased substantially under domain shift, the results highlight the challenges of generalizing fish-species classification models beyond the training distribution. Fish species classification represents an important component of future end-to-end underwater monitoring systems incorporating fish detection and localization modules. The study provides a benchmark for future research on underwater fish-species classification, ensemble learning, and real-world deployment. The source code is openly available on GitHub and permanently archived on Zenodo (DOI: https://doi.org/10.5281/zenodo.19315919 ).
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- A deep learning-based fusion framework for robust fine-grained classification of sea turtles in support of marine biodiversityPLoS ONE · 2026
- SEAF-Net: A Sustainable and Lightweight Attention-Enhanced Detection Network for Underwater Fish Species RecognitionJournal of Marine Science and Engineering · 2026
- YOLO-Starfish: fish object detection learning complex underwater featuresScientific Reports · 2026
- An Ultra-Lightweight Fish Detection Model for Real-Time Aquatic Animal Monitoring on Embedded Platforms.Animals : an open access journal from MDPI · 2026
- DF-MobileNetV4: A dual-scale adaptive attention and fused ConvBlock enhanced MobileNetV4 for underwater fish feeding behavior recognitionInformation Processing in Agriculture · 2026
- PlanktonFlow : hands-on deep-learning classification of plankton images for biologistsbioRxiv · 2026