# Adaptive identity-regularized generative adversarial networks with species-specific loss functions for enhanced fish classification and segmentation through data augmentation

**Authors:** Hanaa Salem Marie, Moatasem M. Draz, Waleed Abd Elkhalik, Mostafa Elbaz

PMC · DOI: 10.1038/s41598-025-21870-1 · 2025-10-27

## TL;DR

This paper introduces a new GAN method that improves fish classification and segmentation by generating realistic synthetic data tailored to specific species.

## Contribution

The novel use of adaptive identity blocks and species-specific loss functions in GANs for biologically plausible data augmentation.

## Key findings

- The method achieved 95.1% classification accuracy, a 9.7% improvement over baseline methods.
- Segmentation performance reached 89.6% mean Intersection over Union, a 12.3% improvement over baselines.
- Expert evaluation confirmed 88.7% overall quality and 87.4% biological validation score for generated data.

## Abstract

Traditional fish classification systems suffer from limited training data and imbalanced datasets, particularly for rare or morphologically complex species. This paper presents a novel Generative Adversarial Network architecture that integrates adaptive identity blocks to preserve critical species-specific features during generation, coupled with species-specific loss functions designed around distinctive characteristics of marine species. Our method introduces adaptive identity blocks that learn to maintain species-invariant features while allowing controlled morphological variations for data augmentation. The species-specific loss function incorporates morphological constraints and taxonomic relationships to ensure generated samples maintain biological plausibility while enhancing dataset diversity. Experimental evaluation on a comprehensive fish dataset containing nine species demonstrated significant performance improvements. Our proposed method achieved 95.1% ± 1.0% classification accuracy, representing a 9.7% improvement over baseline methods and 6.7% improvement over traditional augmentation approaches. While demonstrated on a dataset of 9000 images across nine fish species, these results provide a solid foundation that warrants validation on larger, more taxonomically diverse datasets to establish broader generalizability. Segmentation performance achieved 89.6% ± 1.3% mean Intersection over Union, representing a 12.3% improvement over baseline methods. Critically, our approach showed substantial improvements for morphologically complex species, with expert evaluation by marine biology specialists confirming 88.7% ± 2.0% overall quality and achieving 87.4% ± 1.6% biological validation score. Statistical significance testing confirmed all improvements at p < 0.001 with large effect sizes, and cross-validation demonstrated exceptional consistency across folds. The results validate the effectiveness of our biologically-informed approach for generating high-quality synthetic fish data that significantly improves classification and segmentation performance while maintaining biological authenticity.

## Full-text entities

- **Diseases:** dermatological lesion (MESH:D000168), GAN (MESH:D056768), basal cell carcinoma (MESH:D002280), benign nevi (MESH:D009506), squamous cell carcinoma (MESH:D002294), melanoma (MESH:D008545), seizure (MESH:D012640)
- **Chemicals:** water (MESH:D014867), GAN (-)
- **Species:** Sus scrofa (pig, species) [taxon 9823], Esox lucius (northern pike, species) [taxon 8010], Equus caballus (domestic horse, species) [taxon 9796], Lepus europaeus (European hare, species) [taxon 9983], Cyprinus carpio (carp, species) [taxon 7962], Homo sapiens (human, species) [taxon 9606], Vulpes vulpes (red fox, species) [taxon 9627], Salmo trutta (river trout, species) [taxon 8032], Argyropelecus gigas (hatchetfish, species) [taxon 473297], Actinopterygii (fishes, superclass) [taxon 7898], Perca fluviatilis (European perch, species) [taxon 8168], Tinca tinca (tench, species) [taxon 27717], Cervus elaphus (red deer, species) [taxon 9860]

## Figures

8 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12559437/full.md

---
Source: https://tomesphere.com/paper/PMC12559437