A comparative evaluation of deep learning architectures, loss functions, and ensemble strategies for underwater fish species classification

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 ).

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2026-08-05
DOI
https://doi.org/10.1038/s41598-026-65456-x
Primary Topic
Water Quality Monitoring Technologies
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

A comparative evaluation of deep learning architectures, loss functions, and ensemble strategies for underwater fish species classification

Prithvi Shenoy, Anoop B.N., Ramyashree, S. Raghavendra
Scientific Reports
Water Quality Monitoring Technologies
article

A comparative evaluation of deep learning architectures, loss functions, and ensemble strategies for underwater fish species classification

Prithvi Shenoy, Anoop B.N., Ramyashree, S. Raghavendra
article en

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 ).

Scientific Reports
Nitte University (IN), Manipal Academy of Higher Education (IN)
Openalex Percentile: Top 18%
Water Quality Monitoring Technologies
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon