LIGHTWEIGHT FISH SPECIES RECOGNITION THROUGH TRANSFER LEARNING: AN ACCURACY–EFFICIENCY STUDY FOR OFFLINE DEPLOYMENT
Keywords:
Fish Species Classification; Transfer Learning; Convolutional Neural Networks; MobileNetV3; Fine-Grained Image Classification; Offline Inference.Abstract
Automated identification of fish species from a single photograph can support fisheries monitoring, aquaculture, and education. However, many existing tools rely on remote services or models that are too large for resource-constrained hardware. This paper presents a lightweight, offline-first pipeline for fine-grained fish species classification, covering data preparation, model training, checkpointing, and deployment through a local web interface. The system fine-tunes ImageNet-pretrained convolutional neural networks, including MobileNetV3-Small, MobileNetV3-Large, and ResNet18, using a two-layer classification head, AdamW optimisation, label smoothing, and cosine annealing with warm restarts. After removing 212 near-duplicate images from an initial dataset of 4,650 images, we retained 4,438 images spanning 31 species and divided them into stratified training, validation, and test sets in a 70:15:15 ratio. On the held-out test set, MobileNetV3-Small achieves a top-1 accuracy of 87.4%, a top-5 accuracy of 97.8%, and a macro-F1 score of 0.865. Its checkpoint size is 11.2 MB, with a reported inference latency of 6.4 ms per image on an NVIDIA GeForce RTX 3060 and 27.6 ms on an Intel Core i7-12700K. An ablation study shows that removing data augmentation reduces top-1 accuracy by 4.3 percentage points. The system does not currently reject non-fish inputs, which limits its reliability on images outside the training distribution. The implementation is released under the MIT license.


