Quantification of Opercular Pigmentation Changes in Farmed Atlantic Salmon: A Novel Application for Computer Vision in Fish Welfare Assessment
Abstract
1. Introduction
- A computer vision-based methodology is applied to quantify melanin-based skin spots on the operculum of Atlantic salmon (Salmo salar).
- A semi-automated methodological pipeline is proposed for operculum detection, spot segmentation, and grayscale-based quantification of temporal changes in spot appearance.
- An imaging and annotation workflow is described for supporting future studies of opercular pigmentation dynamics in salmon.
2. Related Works
2.1. Fish Disease Detection
2.2. Fish Detection and Monitoring
2.3. Fish Re-Identification
3. Materials and Methods
3.1. Experimental Setup and Dataset
3.2. Image Annotations and Augmentations
3.2.1. Geometric Transformations
- Reflection: Clockwise, counterclockwise, and upside-down reflections were generated with their respective transformation matrices using the following equation:
- Rotation: Images were randomly rotated using angles (ϴ) randomly sampled from a given range = [−15°, 15°] using the following transformation equation:
- Shear: Shearing was applied in both horizontal and vertical directions using angles (ϴ) randomly sampled from a given range= [−10°, 10°].
- Crops: Crops were generated with a randomly sampled zoom factor percentage (zf_perc) within a given range= [0, 10%] using the following transformation:
3.2.2. Pixel Intensity Transformations
- Exposure: Image exposure in both directions was randomly adjusted by randomly sampling a threshold from a given range = [−2%, 2%] using the following transformation equations:
- Brightness: Brightness adjustment was the same as exposure adjustment, except instead of utilizing the LAB color space, the RGB images were converted to HSV color space [73], and the value channels of the converted images were adjusted.
3.3. Detection and Segmentation of the Operculum Region and Spots
YOLOv8 and SAM2.1 Training
3.4. Inference
3.4.1. Operculum Regions Registration
3.4.2. Operculum Regions Normalization
3.4.3. Operculum Region Spots Segmentation
3.4.4. Features Extraction
3.4.5. Statistical Analysis (Grayscale Intensity)
3.4.6. Cortisol Assay
Statistical Analysis (Plasma Cortisol)
4. Results
4.1. Effect of Treatment on the Spot Pixel Intensities
4.2. Grayscale Intensities of Treated and Control Groups
4.3. Neighborhood-Based Grayscale Intensity Analysis
4.4. Manual Scoring of Spots on a Grayscale by Observers
5. Discussion and Future Research
6. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Sommerset, I.; Wiik-Nielsen, J.; Moldal, T.; Oliveira, V.H.S.; Svendsen, J.C.; Haukaas, A.; Brun, E. Fish Health Report 2023; Norwegian Veterinary Institute: Ås, Norway, 2024; Available online: https://www.vetinst.no/rapporter-og-publikasjoner/rapporter/2024/fishhealthreport-2023 (accessed on 7 April 2026).
- Tvete, I.F.; Aldrin, M.; Jensen, B.B. Towards better survival: Modeling drivers for daily mortality in Norwegian Atlantic salmon farming. Prev. Vet. Med. 2023, 210, 105798. [Google Scholar] [CrossRef]
- Overton, K.; Dempster, T.; Oppedal, F.; Kristiansen, T.S.; Gismervik, K.; Stien, L.H. Salmon lice treatments and salmon mortality in Norwegian aquaculture: A review. Rev. Aquac. 2019, 11, 1398–1417. [Google Scholar] [CrossRef]
- Rey, S.O.N.I.A.; Little, D.A.V.I.D.; Ellis, M.A. Farmed Fish Welfare Practices: Salmon Farming as a Case Study; GAA Publications: Dublin, Ireland, 2019; Volume 2, p. 5. Available online: https://www.globalseafood.org/wp-content/uploads/2020/05/FarmedFishWelfarePractices_26_May_2020.pdf (accessed on 7 April 2026).
- Stien, L.H.; Tørud, B.; Gismervik, K.; Lien, M.E.; Medaas, C.; Osmundsen, T.; Kristiansen, T.S.; Størkersen, K.V. Governing the welfare of Norwegian farmed salmon: Three conflict cases. Mar. Policy 2020, 117, 103969. [Google Scholar] [CrossRef]
- Keihani, R.; Gomes, A.S.; Balseiro, P.; Handeland, S.O.; Gorissen, M.; Arukwe, A. Evaluation of stress in farmed Atlantic salmon (Salmo salar) using different biological matrices. Comp. Biochem. Physiol. Part A Mol. Integr. Physiol. 2024, 298, 111743. [Google Scholar] [CrossRef] [PubMed]
- Adams, C.E.; Turnbull, J.F.; Bell, A.; Bron, J.E.; Huntingford, F.A. Multiple determinants of welfare in farmed fish: Stocking density, disturbance, and aggression in Atlantic salmon (Salmo salar). Can. J. Fish. Aquat. Sci. 2007, 64, 336–344. [Google Scholar] [CrossRef]
- Volpato, G.L.; Gonçalves-de-Freitas, E.; Fernandes-de-Castilho, M. Insights into the concept of fish welfare. Dis. Aquat. Org. 2007, 75, 165–171. [Google Scholar] [CrossRef] [PubMed]
- Cao, Y.; Tveten, A.K.; Stene, A. Establishment of a non-invasive method for stress evaluation in farmed salmon based on direct fecal corticoid metabolites measurement. Fish Shellfish Immunol. 2017, 66, 317–324. [Google Scholar] [CrossRef]
- Bagnara, J.T.; Matsumoto, J. Comparative anatomy and physiology of pigment cells in nonmammalian tissues. In The Pigmentary System: Physiology and Pathophysiology; Blackwell Publishing Ltd.: Oxford, UK, 2006; pp. 11–59. [Google Scholar]
- Leclercq, E.; Taylor, J.F.; Migaud, H. Morphological skin colour changes in teleosts. Fish Fish. 2010, 11, 159–193. [Google Scholar] [CrossRef]
- Cesarini, J.P. Melanins and their possible roles through biological evolution. Adv. Space Res. 1996, 18, 35–40. [Google Scholar] [CrossRef]
- Riley, P.A. Melanin. Int. J. Biochem. Cell Biol. 1997, 29, 1235–1239. [Google Scholar] [CrossRef]
- Mackintosh, J.A. The antimicrobial properties of melanocytes, melanosomes and melanin and the evolution of black skin. J. Theor. Biol. 2001, 211, 101–113. [Google Scholar] [CrossRef] [PubMed]
- Roulin, A. The evolution, maintenance and adaptive function of genetic colour polymorphism in birds. Biol. Rev. 2004, 79, 815–848. [Google Scholar] [CrossRef]
- Hoekstra, H.E. Genetics, development and evolution of adaptive pigmentation in vertebrates. Heredity 2006, 97, 222–234. [Google Scholar] [CrossRef]
- Kittilsen, S.; Schjolden, J.; Beitnes-Johansen, I.; Shaw, J.C.; Pottinger, T.G.; Sørensen, C.; Braastad, B.; Bakken, M.; Øverli, Ø. Melanin-based skin spots reflect stress responsiveness in salmonid fish. Horm. Behav. 2009, 56, 292–298. [Google Scholar] [CrossRef]
- Kittilsen, S.; Johansen, I.B.; Braastad, B.O.; Øverli, Ø. Pigments, parasites and personalitiy: Towards a unifying role for steroid hormones? PLoS ONE 2012, 7, e34281. [Google Scholar] [CrossRef]
- Khan, U.W.; Øverli, Ø.; Hinkle, P.M.; Pasha, F.A.; Johansen, I.B.; Berget, I.; Silva, P.I.M.; Kittilsen, S.; Höglund, E.; Omholt, S.W.; et al. A novel role for pigment genes in the stress response in rainbow trout (Oncorhynchus mykiss). Sci. Rep. 2016, 6, 28969. [Google Scholar] [CrossRef] [PubMed]
- Höglund, E.; Balm, P.H.; Winberg, S. Skin darkening, a potential social signal in subordinate arctic charr (Salvelinus alpinus): The regulatory role of brain monoamines and pro-opiomelanocortin-derived peptides. J. Exp. Biol. 2000, 203, 1711–1721. [Google Scholar] [CrossRef] [PubMed]
- Maan, M.E.; Seehausen, O.; Söderberg, L.; Johnson, L.; Ripmeester, E.A.; Mrosso, H.D.; Taylor, M.I.; van Dooren, T.J.M.; van Alphen, J.J.M. Intraspecific sexual selection on a speciation trait, male coloration, in the Lake Victoria cichlid Pundamilia nyererei. Proc. R. Soc. Lond. Ser. B Biol. Sci. 2004, 271, 2445–2452. [Google Scholar] [CrossRef]
- Yasir, I.; Qin, J.G. Impact of background on color performance of false clownfish, Amphiprion ocellaris, Cuvier. J. World Aquac. Soc. 2009, 40, 724–734. [Google Scholar] [CrossRef]
- Logan, D.W.; Burn, S.F.; Jackson, I.J. Regulation of pigmentation in zebrafish melanophores. Pigment Cell Res. 2006, 19, 206–213. [Google Scholar] [CrossRef]
- Mills, M.G.; Patterson, L.B. Not just black and white: Pigment pattern development and evolution in vertebrates. In Seminars in cell & Developmental Biology; Academic Press: Cambridge, MA, USA, 2009; Volume 20, No. 1, pp. 72–81. [Google Scholar] [CrossRef]
- Yi, M.; Lu, H.; Du, Y.; Sun, G.; Shi, C.; Li, X.; Tian, H.; Liu, Y. The color change and stress response of Atlantic salmon (Salmo salar L.) infected with Aeromonas salmonicida. Aquac. Rep. 2021, 20, 100664. [Google Scholar] [CrossRef]
- Voulodimos, A.; Doulamis, N.; Doulamis, A.; Protopapadakis, E. Deep learning for computer vision: A brief review. Comput. Intell. Neurosci. 2018, 2018, 7068349. [Google Scholar] [CrossRef]
- Ahmed, M.S.; Aurpa, T.T.; Azad, M.A.K. Fish disease detection using image based machine learning technique in aquaculture. J. King Saud Univ.-Comput. Inf. Sci. 2022, 34, 5170–5182. [Google Scholar] [CrossRef]
- Zhang, C.; Bracke, M.; da Silva Torres, R.; Gansel, L.C. Rapid detection of salmon louse larvae in seawater based on machine learning. Aquaculture 2024, 592, 741252. [Google Scholar] [CrossRef]
- Gupta, A.; Bringsdal, E.; Knausgård, K.M.; Goodwin, M. Accurate wound and lice detection in Atlantic salmon fish using a convolutional neural network. Fishes 2022, 7, 345. [Google Scholar] [CrossRef]
- Banno, K.; Kaland, H.; Crescitelli, A.M.; Tuene, S.A.; Aas, G.H.; Gansel, L.C. A novel approach for wild fish monitoring at aquaculture sites: Wild fish presence analysis using computer vision. Aquac. Environ. Interact. 2022, 14, 97–112. [Google Scholar] [CrossRef]
- Cisar, P.; Bekkozhayeva, D.; Movchan, O.; Saberioon, M.; Schraml, R. Computer vision based individual fish identification using skin dot pattern. Sci. Rep. 2021, 11, 16904. [Google Scholar] [CrossRef]
- Chaki, J.; Dey, N. A Beginner’s Guide to Image Preprocessing Techniques; CRC Press: Boca Raton, FL, USA, 2018. [Google Scholar]
- Mohanaiah, P.; Sathyanarayana, P.; GuruKumar, L. Image texture feature extraction using GLCM approach. Int. J. Sci. Res. Publ. 2013, 3, 1–5. [Google Scholar]
- Sindhu Meena, K.; Suriya, S. A survey on supervised and unsupervised learning techniques. In Proceedings of the International Conference on Artificial Intelligence, Smart Grid and Smart City Applications; Springer International Publishing: Cham, Switzerland, 2019; pp. 627–644. [Google Scholar]
- Shetty, A.K.; Saha, I.; Sanghvi, R.M.; Save, S.A.; Patel, Y.J. A review: Object detection models. In Proceedings of the 2021 6th International Conference for Convergence in Technology (I2CT); IEEE: Piscataway, NJ, USA, 2021; pp. 1–8. [Google Scholar] [CrossRef]
- Wu, J. Introduction to Convolutional Neural Networks; National Key Lab for NovelSoftware Technology, Nanjing University: Nanjing, China, 2017; Volume 5, p. 495. [Google Scholar]
- Simonyan, K.; Zisserman, A. Very deep convolutional networks for large-scale image recognition. arXiv 2014, arXiv:1409.1556. [Google Scholar] [CrossRef]
- Huang, Y.P.; Khabusi, S.P. A CNN-OSELM multi-layer fusion network with attentionmechanism for fish disease recognition in aquaculture. IEEE Access 2023, 11, 58729–58744. [Google Scholar] [CrossRef]
- Liang, X.; Hu, P.; Zhang, L.; Sun, J.; Yin, G. MCFNet: Multi-layer concatenation fusion network for medical images fusion. IEEE Sens. J. 2019, 19, 7107–7119. [Google Scholar] [CrossRef]
- Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, Ł.; Polosukhin, I. Attention is all you need. Adv. Neural Inf. Process. Syst. 2017, 30. [Google Scholar] [CrossRef]
- Huang, G.B.; Liang, N.Y.; Rong, H.J.; Saratchandran, P.; Sundararajan, N. On-line sequential extreme learning machine. Comput. Intell. 2005, 2005, 232–237. [Google Scholar]
- Bochkovskiy, A.; Wang, C.Y.; Liao, H.Y.M. Yolov4: Optimal speed and accuracy of object detection. arXiv 2020, arXiv:2004.10934. [Google Scholar] [CrossRef]
- Mogdans, J.; Bleckmann, H. Coping with flow: Behavior, neurophysiology and modeling of the fish lateral line system. Biol. Cybern. 2012, 106, 627–642. [Google Scholar] [CrossRef]
- Yu, H.; Wang, Z.; Qin, H.; Chen, Y. An automatic detection and counting method for fish lateral line scales of underwater fish based on improved YOLOv5. IEEE Access 2023, 11, 143616–143627. [Google Scholar] [CrossRef]
- Jocher, G.; Stoken, A.; Borovec, J.; NanoCode012; ChristopherSTAN; Liu, C.; Laughing; Tkianai; Hogan, A.; Lorenzomammana; et al. Ultralytics/Yolov5: V3.0; Zenodo: Geneva, Switzerland, 2020. [Google Scholar]
- Khanam, R.; Hussain, M. What is YOLOv5: A deep look into the internal features of the popular object detector. arXiv 2024, arXiv:2407.20892. [Google Scholar] [CrossRef]
- Ellis, T.; Berrill, I.; Lines, J.; Turnbull, J.F.; Knowles, T.G. Mortality and fish welfare. Fish Physiol. Biochem. 2012, 38, 189–199. [Google Scholar] [CrossRef] [PubMed]
- Ranjan, R.; Tsukuda, S.; Good, C. MortCam: An Artificial Intelligence-aided fish mortality detection and alert system for recirculating aquaculture. Aquac. Eng. 2023, 102, 102341. [Google Scholar] [CrossRef]
- Cao, K.; Liu, Y.; Meng, G.; Sun, Q. An overview on edge computing research. IEEE Access 2020, 8, 85714–85728. [Google Scholar] [CrossRef]
- Li, S.; Xu, L.D.; Zhao, S. The internet of things: A survey. Inf. Syst. Front. 2015, 17, 243–259. [Google Scholar] [CrossRef]
- Wang, C.Y.; Bochkovskiy, A.; Liao, H.Y.M. YOLOv7: Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Vancouver, BC, Canada, 17–24 June 2023; pp. 7464–7475. [Google Scholar] [CrossRef]
- Al Duhayyim, M.; Alshahrani, H.M.; Al-Wesabi, F.N.; Alamgeer, M.; Hilal, A.M.; Hamza, M.A. Intelligent deep learning based automated fish detection model for UWSN. CMC-Comput. Mater. Contin. 2022, 70, 5871–5887. [Google Scholar] [CrossRef]
- Farnoosh, R.; Zarpak, B. Image segmentation using Gaussian mixture model. IUST Int. J. Eng. Sci. 2008, 19, 29–32. [Google Scholar]
- He, K.; Gkioxari, G.; Dollár, P.; Girshick, R. Mask r-cnn. In Proceedings of the IEEE International Conference on Computer Vision; IEEE: Piscataway, NJ, USA, 2017; pp. 2961–2969. [Google Scholar] [CrossRef]
- Ding, S.; Zhang, J.; Xu, X.; Zhang, Y. A wavelet extreme learning machine. Neural Comput. Appl. 2016, 27, 1033–1040. [Google Scholar] [CrossRef]
- O’shea, K.; Nash, R. An introduction to convolutional neural networks. arXiv 2015, arXiv:1511.08458. [Google Scholar] [CrossRef]
- Levy, A.; Shalom, B.R.; Chalamish, M. A guide to similarity measures. arXiv 2024, arXiv:2408.07706. [Google Scholar] [CrossRef]
- Lowe, D.G. Distinctive image features from scale-invariant keypoints. Int. J. Comput. Vis. 2004, 60, 91–110. [Google Scholar] [CrossRef]
- Bekkozhayeva, D.; Cisar, P. Image-based automatic individual identification of fish without obvious patterns on the body (scale pattern). Appl. Sci. 2022, 12, 5401. [Google Scholar] [CrossRef]
- Zhou, Z.; Hitt, N.P.; Letcher, B.H.; Shi, W.; Li, S. Pigmentation-based visual learning for salvelinus fontinalis individual re-identification. In Proceedings of the 2022 IEEE International Conference on Big Data (Big Data); IEEE: Piscataway, NJ, USA, 2022; pp. 6850–6852. [Google Scholar] [CrossRef]
- Ren, S.; He, K.; Girshick, R.; Sun, J. Faster r-cnn: Towards real-time object detection with region proposal networks. Adv. Neural Inf. Process. Syst. 2015, 28. [Google Scholar] [CrossRef]
- He, K.; Zhang, X.; Ren, S.; Sun, J. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; IEEE: Piscataway, NJ, USA, 2016; pp. 770–778. [Google Scholar]
- Lin, T.Y.; Maire, M.; Belongie, S.; Hays, J.; Perona, P.; Ramanan, D.; Dollár, P.; Zitnick, C.L. Microsoft coco: Common objects in context. In Proceedings of the European Conference on Computer Vision; Springer International Publishing: Cham, Switzerland, 2014; pp. 740–755. [Google Scholar]
- Kuznetsova, A.; Rom, H.; Alldrin, N.; Uijlings, J.; Krasin, I.; Pont-Tuset, J.; Kamali, S.; Popov, S.; Malloci, M.; Kolesnikov, A.; et al. The open images dataset v4: Unified image classification, object detection, and visual relationship detection at scale. Int. J. Comput. Vis. 2020, 128, 1956–1981. [Google Scholar] [CrossRef]
- Shi, W.; Zhou, Z.; Letcher, B.H.; Hitt, N.; Kanno, Y.; Futamura, R.; Kishida, O.; Morita, K.; Li, S. Aging contrast: A contrastive learning framework for fish re-identification across seasons and years. In Proceedings of the Australasian Joint Conference on Artificial Intelligence; Springer Nature: Singapore, 2023; pp. 252–264. [Google Scholar]
- Chen, T.; Kornblith, S.; Norouzi, M.; Hinton, G. A simple framework for contrastive learning of visual representations. In Proceedings of the International Conference on Machine Learning; PmLR: Cambridge, MA, USA, 2020; pp. 1597–1607. [Google Scholar]
- Gehring, J.; Auli, M.; Grangier, D.; Dauphin, Y.N. A convolutional encoder model for neural machine translation. arXiv 2016, arXiv:1611.02344. [Google Scholar] [CrossRef]
- Dwyer, B.; Nelson, J.; Hansen, T. Roboflow (Version 1.0) [Software]. Computer Vision. 2025. Available online: https://blog.roboflow.com/inference-1-0/ (accessed on 7 April 2026).
- Hafiz, A.M.; Bhat, G.M. A survey on instance segmentation: State of the art. Int. J. Multimed. Inf. Retr. 2020, 9, 171–189. [Google Scholar] [CrossRef]
- Kirillov, A.; Mintun, E.; Ravi, N.; Mao, H.; Rolland, C.; Gustafson, L.; Xiao, T.; Whitehead, S.; Berg, A.C.; Lo, W.-Y.; et al. Segment anything. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Paris, France, 1–6 October 2023; pp. 4015–4026. [Google Scholar] [CrossRef]
- Xu, M.; Yoon, S.; Fuentes, A.; Park, D.S. A comprehensive survey of image augmentation techniques for deep learning. Pattern Recognit. 2023, 137, 109347. [Google Scholar] [CrossRef]
- Bradski, G. The OpenCV Library. 2000. Available online: https://opencv.org/.
- Busin, L.; Vandenbroucke, N.; Macaire, L. Color spaces and image segmentation. Adv. Imaging Electron Phys. 2008, 151, 1. [Google Scholar]
- Nelson, J. The Importance of Blur as an Image Augmentation Technique. Roboflow Blog. 2020. Available online: https://blog.roboflow.com/using-blur-in-computer-vision-preprocessing/ (accessed on 7 April 2026).
- Azzeh, J.; Zahran, B.; Alqadi, Z. Salt and pepper noise: Effects and removal. JOIV Int. J. Inform. Vis. 2018, 2, 252–256. [Google Scholar] [CrossRef]
- Goodfellow, I.J.; Shlens, J.; Szegedy, C. Explaining and harnessing adversarial examples. arXiv 2014, arXiv:1412.6572. [Google Scholar] [CrossRef]
- Sohan, M.; Sai Ram, T.; Rami Reddy, C.V. A review on yolov8 and its advancements. In Proceedings of the International Conference on Data Intelligence and Cognitive Informatics; Springer: Singapore, 2024; pp. 529–545. [Google Scholar]
- Ravi, N.; Gabeur, V.; Hu, Y.T.; Hu, R.; Ryali, C.; Ma, T.; Khedr, H.; Rädle, R.; Rolland, C.; Gustafson, L.; et al. Sam 2: Segment anything in images and videos. arXiv 2024, arXiv:2408.00714. [Google Scholar] [CrossRef]
- Ioffe, S.; Szegedy, C. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In Proceedings of the International Conference on Machine Learning; Pmlr: Cambridge, MA, USA, 2015; pp. 448–456. [Google Scholar]
- Yoon, K.; Lim, C. LayerAct: Advanced Activation Mechanism for Robust Inference of CNNs. AAAI Conf. Artif. Intell. 2025, 39, 22200–22207. [Google Scholar] [CrossRef]
- He, K.; Zhang, X.; Ren, S.; Sun, J. Spatial pyramid pooling in deep convolutional networks for visual recognition. IEEE Trans. Pattern Anal. Mach. Intell. 2015, 37, 1904–1916. [Google Scholar] [CrossRef]
- Zeiler, M.D.; Krishnan, D.; Taylor, G.W.; Fergus, R. Deconvolutional networks. In Proceedings of the 2010 IEEE Computer Society Conference on Computer Vision and Pattern Recognition; IEEE: Piscataway, NJ, USA, 2010; pp. 2528–2535. [Google Scholar] [CrossRef]
- Ren, J.; Bi, Z.; Niu, Q.; Liu, J.; Peng, B.; Zhang, S.; Peng, B.; Zhang, S.; Pan, X.; Wang, J.; et al. Deep Learning and Machine Learning--Object Detection and Semantic Segmentation: From Theory to Applications. arXiv 2024, arXiv:2410.15584. [Google Scholar] [CrossRef]
- Ryali, C.; Hu, Y.T.; Bolya, D.; Wei, C.; Fan, H.; Huang, P.Y.; Aggarwal, V.; Chowdhury, A.; Poursaeed, O.; Hoffman, J.; et al. Hiera: A hierarchical vision transformer without the bells-and-whistles. In Proceedings of the International Conference on Machine Learning; PMLR: Cambridge, MA, USA, 2023; pp. 29441–29454. [Google Scholar]
- Dosovitskiy, A.; Beyer, L.; Kolesnikov, A.; Weissenborn, D.; Zhai, X.; Unterthiner, T.; Dehghani, M.; Minderer, M.; Heigold, G.; Gelly, S.; et al. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv 2020, arXiv:2010.11929. [Google Scholar] [CrossRef]
- Lin, T.Y.; Dollár, P.; Girshick, R.; He, K.; Hariharan, B.; Belongie, S. Feature pyramid networks for object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; IEEE: Piscataway, NJ, USA, 2017; pp. 2117–2125. [Google Scholar] [CrossRef]
- Turner, R.E. An introduction to transformers. arXiv 2023, arXiv:2304.10557. [Google Scholar] [CrossRef]
- Shaw, P.; Uszkoreit, J.; Vaswani, A. Self-attention with relative position representations. arXiv 2018, arXiv:1803.02155. [Google Scholar] [CrossRef]
- Gheini, M.; Ren, X.; May, J. Cross-attention is all you need: Adapting pretrained transformers for machine translation. arXiv 2021, arXiv:2104.08771. [Google Scholar] [CrossRef]
- Li, Q.; Yan, M.; Xu, J. Optimizing convolutional neural network performance by mitigating underfitting and overfitting. In 2021 IEEE/ACIS 19th International Conference on Computer and Information Science (ICIS); IEEE: Piscataway, NJ, USA, 2021; pp. 126–131. [Google Scholar] [CrossRef]
- Kingma, D.P.; Ba, J. Adam: A method for stochastic optimization. arXiv 2014, arXiv:1412.6980. [Google Scholar] [CrossRef]
- Buslaev, A.; Iglovikov, V.I.; Khvedchenya, E.; Parinov, A.; Druzhinin, M.; Kalinin, A.A. Albumentations: Fast and flexible image augmentations. Information 2020, 11, 125. [Google Scholar] [CrossRef]
- Padilla, R.; Passos, W.L.; Dias, T.L.; Netto, S.L.; Da Silva, E.A. A comparative analysis of object detection metrics with a companion open-source toolkit. Electronics 2021, 10, 279. [Google Scholar] [CrossRef]
- Muja, M.; Lowe, D.G. Fast approximate nearest neighbors with automatic algorithm configuration. VISAPP 2009, 2, 331–340. [Google Scholar]
- Fischler, M.A.; Bolles, R.C. Random sample consensus: A paradigm for model fitting with applications to image analysis and automated cartography. Commun. ACM 1981, 24, 381–395. [Google Scholar] [CrossRef]
- Dubrofsky, E. Homography Estimation. Bachelor’s Thesis, Univerzita Britské Kolumbie, Vancouver, BC, Canada, 2009; p. 5. [Google Scholar]
- Ramanath, R.; Drew, M.S. White balance. In Computer Vision; Springer: Boston, MA, USA, 2014; pp. 885–888. [Google Scholar]
- Larsen, S. Objective Analysis of Melanin Spots as Welfare Signals in Atlantic Salmon Using AI-Based Computer Vision. Master’s Thesis, Norwegian University of Science and Technology (NTNU), Trondheim, Norway, 2024. Available online: https://hdl.handle.net/11250/3154352 (accessed on 7 April 2026).
- Eades, P.; Xuemin, L. How to draw a directed graph. In Proceedings of the 1989 IEEE Workshop on Visual Languages; IEEE: Piscataway, NJ, USA, 1989; pp. 13–17. [Google Scholar] [CrossRef]
- Vindas, M.A.; Johansen, I.B.; Folkedal, O.; Höglund, E.; Gorissen, M.; Flik, G.; Kristiansen, T.S.; Øverli, Ø. Brain serotonergic activation in growth-stunted farmed salmon: Adaption versus pathology. R. Soc. Open Sci. 2016, 3, 160030. [Google Scholar] [CrossRef]
- Wendelaar Bonga, S.E. The stress response in fish. Physiol. Rev. 1997, 77, 591–625. [Google Scholar] [CrossRef] [PubMed]



















| Augmentation Type | Upper Limit Value |
|---|---|
| Translate: Translates the image horizontally and vertically by a fraction of the image size [0.0–1.0] | 0.015 |
| Scaling: Scales the image by a gain factor [0–1] | 0.15 |
| BGR Channels Alteration: Flips the image channels from RGB to BGR with the specified probability [0.0–1.0] | 0.1 |
| Image Mosaic: Combines four training images into one with the specified probability [0.0–1.0] | 0.3 |
| Flip Up and Down: Flips the image upside-down with the specified probability [0.0–1.0] | 0.5 |
| Flip Right and Left: Flips the image left to right with the specified probability [0.0–1.0] | 0.5 |
| Cutmix: Combines portions of two images with probability [0.0–1.0] | 0.015 |
| Copy_paste: Copies and pastes objects across images to increase object instances with probability [0.0–1.0] | 0.0 |
| Shearing: Shearing image randomly between [0°–180°] | 3° |
| Degrees: Rotating image randomly between [0°–180°] | 5° |
| Hue: Hue of the image randomly between [0.0–1.0] | 0.01 |
| Saturation: Saturation of the image randomly between [0.0–1.0] | 0.5 |
| Value: Brightness of the image randomly between [0.0–1.0] | 0.4 |
| Model | Precision (Bbox) | Recall (Bbox) | Precision (Mask) | Recall (Mask) | mAP50 (Mask) | mAP50-95 (Mask) |
|---|---|---|---|---|---|---|
| Training | 0.95 | 0.97 | 0.95 | 0.97 | 0.995 | 0.796 |
| Validation | 0.998 | 1.00 | 0.998 | 1.00 | 0.99 | 0.76 |
| Mode | BCE Loss | IoU Loss | Mask Loss |
|---|---|---|---|
| Training | 0.008 | 0.1665 | 0.0025 |
| Fish Sample | Change Left (%) | Change Right (%) |
|---|---|---|
| 10 | 16.01 | 135.41 |
| 11 | 33.11 | 67.19 |
| 12 | 20 | 20.87 |
| 13 | 48.98 | 5.19 |
| 14 | 53.33 | 38.88 |
| 15 | −8.07 | −0.8 |
| 16 | 15.41 | 24.56 |
| 17 | 34.70 | 6.6 |
| 18 | 83.16 | 60.33 |
| 19 | 111.18 | −11.52 |
| 20 | 85.51 | 0.76 |
| 21 | 76.57 | 25.90 |
| 22 | 63.79 | 133.33 |
| 23 | 45.07 | 64.98 |
| 24 | 59.48 | 18.70 |
| 25 | 86.50 | 173.17 |
| 26 | 57.14 | −7.69 |
| 27 | 76.53 | 85.89 |
| 28 | 13.88 | −3.14 |
| 29 | 67.92 | 128.64 |
| 30 | 103.54 | 8.37 |
| Average | 54.46 | 46.46 |
| Fish Sample | Observer (E) | Observer (H) | ||
|---|---|---|---|---|
| Change Left (%) | Change Right (%) | Change Left (%) | Change Right (%) | |
| 10 | 4.5 | 156.07 | 13.44 | 125.44 |
| 11 | 45.14 | 96.34 | 16.80 | 59.44 |
| 12 | 23.12 | 32.25 | −5.66 | 31.19 |
| 13 | 36.5 | 3.41 | 65.47 | −8.90 |
| 14 | 86.5 | 41.95 | 32.01 | 37.03 |
| 15 | 11.37 | 5.22 | 41.66 | 0.87 |
| 16 | 12.8 | 43.08 | 18.32 | 4.26 |
| 17 | 59.5 | 51.11 | 76 | 67.64 |
| 18 | 118.7 | 132.83 | 75 | 104.71 |
| 19 | 76.9 | 0 | 127.27 | 0 |
| 20 | 66.36 | 14.47 | 37.85 | 0 |
| 21 | 65.16 | 91.30 | 133.54 | 128.08 |
| 22 | 41.24 | 164.72 | 23.32 | 97.76 |
| 23 | N/A | N/A | N/A | N/A |
| 24 | 57.47 | 61.29 | 25.31 | 94.66 |
| 25 | N/A | N/A | N/A | N/A |
| 26 | 40.84 | 96.55 | 65.76 | 72 |
| 27 | 86.82 | 235.08 | 56.52 | 110 |
| 28 | 36.58 | −4.54 | 36.60 | 63.20 |
| 29 | 59.01 | 0 | 28.04 | 0 |
| 30 | 113 | 16.66 | 133.91 | 9.68 |
| Average | 54.83 | 65.15 | 52.69 | 52.52 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Laique, T.; Gunnes, M.; Folkedal, O.; Nilsson, J.; Green, E.A.L.; Gundersen, H.N.; Øverli, Ø.; Ullah, H. Quantification of Opercular Pigmentation Changes in Farmed Atlantic Salmon: A Novel Application for Computer Vision in Fish Welfare Assessment. Fishes 2026, 11, 271. https://doi.org/10.3390/fishes11050271
Laique T, Gunnes M, Folkedal O, Nilsson J, Green EAL, Gundersen HN, Øverli Ø, Ullah H. Quantification of Opercular Pigmentation Changes in Farmed Atlantic Salmon: A Novel Application for Computer Vision in Fish Welfare Assessment. Fishes. 2026; 11(5):271. https://doi.org/10.3390/fishes11050271
Chicago/Turabian StyleLaique, Talha, Mikkel Gunnes, Ole Folkedal, Jonatan Nilsson, Evelina A. L. Green, Hannah Normann Gundersen, Øyvind Øverli, and Habib Ullah. 2026. "Quantification of Opercular Pigmentation Changes in Farmed Atlantic Salmon: A Novel Application for Computer Vision in Fish Welfare Assessment" Fishes 11, no. 5: 271. https://doi.org/10.3390/fishes11050271
APA StyleLaique, T., Gunnes, M., Folkedal, O., Nilsson, J., Green, E. A. L., Gundersen, H. N., Øverli, Ø., & Ullah, H. (2026). Quantification of Opercular Pigmentation Changes in Farmed Atlantic Salmon: A Novel Application for Computer Vision in Fish Welfare Assessment. Fishes, 11(5), 271. https://doi.org/10.3390/fishes11050271

