An image synthesis framework for enhanced salmon louse larvae (Lepeophtheirus Salmonis) detection in complex seawater conditions
Salmon lice ( Lepeophtheirus salmonis ) infections pose significant threats to farmed and wild salmon populations, making early detection during pre-infective and infective stages essential for sustainable management. Traditional methods, such as PCR, are costly and unsuitable for large-scale deployment, while existing machine-learning approaches are limited by the lack of annotated data from complex seawater environments and are largely restricted to simplified laboratory conditions. To address these challenges, this study presents an automated synthetic data generation method based on the Segment Anything Model (SAM), specifically designed to improve the detection of multi-stage salmon louse larvae in real-world and complex seawater environments. A total of 54 orthogonal experiments were conducted to optimize the factor configuration for synthetic data generation, resulting in a high-quality dataset comprising 120,864 images. To maximize the utility of synthetic data and enhance model performance, we evaluated YOLO series models and the transformer-based RT-DETR-L model. Our experiments revealed that pretraining on synthetic data before fine-tuning (or hybrid training) consistently improved model performance across multiple evaluation metrics. The YOLOv8n’s F1-score increased from 70.6% to 87.7%, a notable relative improvement of 24.22%. In real-world seawater tests, models trained with synthetic data improved recall by 11.0% to 87.0% compared to models trained exclusively with the original data and outperformed well-trained biologists, further validating the effectiveness and practicality of the synthetic approach. This study provides a scalable solution for monitoring salmon louse larvae in large-scale seawater environments, improving the welfare of farmed and wild salmon. The source code is publicly available at https://github.com/jay-zc/synthetic-dataset (as of July 2025). • Developed an image synthesis method for detecting salmon louse larvae in seawater based on Segment Anything Model (SAM). • Introducing more background plankton to synthetic images boosts model performance more than salmon louse larvae. • Training with hybrid real & synthetic data improved F1 by 24.22% (FinalTestSet). • In field validation, the synthetic data approach can improve recall by up to 87.0%. • Models trained with synthetic data outperformed experienced marine experts.
Authors
- Lars Christian Gansel (ORCID: https://orcid.org/0000-0003-3316-5277)
- M.B.M. Bracke (ORCID: https://orcid.org/0000-0003-0478-7771)
- Chao Zhang
- Ricardo da Silva Torres (ORCID: https://orcid.org/0000-0001-7658-0468)
Institutions
- Norwegian University of Science and Technology (NO)
- Graduate School Experimental Plant Sciences (NL)
- Centre for BioSystems Genomics (NL)
- Wageningen University & Research (NL)
Publication Details
- Journal
- Computers and Electronics in Agriculture
- Published
- 2025-09-22
- DOI
- https://doi.org/10.1016/j.compag.2025.110985
- Citations
- 1
- Primary Topic
- Identification and Quantification in Food
- Type
- article
- Field-Weighted Citation Impact
- 0.81
Funders
- Nederlandse Organisatie voor Wetenschappelijk Onderzoek
- China Scholarship Council