Semi-Automatic Labeling with SAM3 and Instance Segmentation of Broiler Chickens Using YOLO26n-seg
DOI:
https://doi.org/10.33936/isrtic.v10i2.8599Keywords:
broiler chickens, instance segmentation, SAM3, YOLO26n-seg, computer visionAbstract
Instance segmentation is a relevant tool for the automated monitoring of broiler chickens in high-density overhead scenes; however, the manual generation of masks requires considerable effort. This study aimed to develop and evaluate a semi-automatic labeling workflow based on SAM3, automated cleaning, human review, and YOLO26n-seg training. A total of 1.863 images were extracted from 14 videos and distributed by video across the training, validation, and test subsets. SAM3 generated 210.762 polygon annotations, of which 134 duplicates were removed during automated cleaning. The annotations were subsequently reviewed manually and used to train YOLO26n-seg with an input resolution of 960 × 960 pixels. On the validation set, the model achieved a mask precision of 0,78845, a recall of 0,90522, a mAP@0,50 of 0,89476, and a mAP@0,50:0,95 of 0,68705; on the test set, it obtained 0,78639, 0,87559, 0,88387, and 0,67593, respectively. The results showed stable performance across both subsets and a strong ability to recover instances. Nevertheless, accurate contour delineation remained more challenging in regions characterized by high density, physical contact, and partial occlusion. The proposed workflow represents a reproducible alternative for supporting the construction of instance-segmentation datasets in real poultry-farming environments.
Downloads
References
Åkesson, J., Töger, J., & Heiberg, E. (2024). Random effects during training: Implications for deep learning-based medical image segmentation. Computers in Biology and Medicine, 180, 108944. https://doi.org/10.1016/j.compbiomed.2024.108944
Boniche, K., Cruz, E., Rangel, J. C., Hidalgo-Rodríguez, M., & Gómez-Donoso, F. (2026). PIO, A Large-Scale Dataset for Broiler Chicken Detection under Real Poultry Farming Conditions. Scientific Data, 13(1), 801. https://doi.org/10.1038/s41597-026-07114-5
Bumbálek, R., Umurungi, S. N., de Dieu Marcel Ufitikirezi, J., Zoubek, T., Kuneš, R., Stehlík, R., Lin, H.-I., & Bartoš, P. (2025). Deep learning in poultry farming: comparative analysis of Yolov8, Yolov9, Yolov10, and Yolov11 for dead chickens detection. Poultry Science, 104(9), 105440. https://doi.org/10.1016/j.psj.2025.105440
Çarklı Yavuz, B. (2026). Scale-Dependent Performance Analysis of YOLO26 and YOLOv11 for PPE Detection. Electronics, 15(6). https://doi.org/10.3390/electronics15061146
Chen, Y., Liu, H., Wang, L., Chen, C., Li, S., Zhong, B., Qiao, J., Ye, R., & Li, T. (2025). Research on Instance Segmentation Algorithm for Caged Chickens in Infrared Images Based on Improved Mask R-CNN. Sensors, 25(19). https://doi.org/10.3390/s25196237
Cheng, B., Girshick, R., Dollar, P., Berg, A. C., & Kirillov, A. (2021). Boundary IoU: Improving Object-Centric Image Segmentation Evaluation. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 15334–15342.
Doornweerd, J. E., Veerkamp, R. F., de Klerk, B., van der Sluis, M., Bouwman, A. C., Ellen, E. D., & Kootstra, G. (2024). Tracking individual broilers on video in terms of time and distance. Poultry Science, 103(1), 103185. https://doi.org/10.1016/j.psj.2023.103185
Guo, Y., Aggrey, S. E., Yang, X., Oladeinde, A., Qiao, Y., & Chai, L. (2023). Detecting broiler chickens on litter floor with the YOLOv5-CBAM deep learning model. Artificial Intelligence in Agriculture, 9, 36–45. https://doi.org/10.1016/j.aiia.2023.08.002
Jena, R., Zhornyak, L., Doiphode, N., Chaudhari, P., Buch, V., Gee, J., & Shi, J. (2023). Beyond mAP: Towards Better Evaluation of Instance Segmentation. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 11309–11318.
Jiang, P., Ergu, D., Liu, F., Cai, Y., & Ma, B. (2022). A Review of Yolo Algorithm Developments. Procedia Computer Science, 199, 1066–1073. https://doi.org/10.1016/j.procs.2022.01.135
Kirillov, A., Mintun, E., Ravi, N., Mao, H., Rolland, C., Gustafson, L., Xiao, T., Whitehead, S., Berg, A. C., Lo, W.-Y., & others. (2023). Segment anything. Proceedings of the IEEE/CVF international conference on computer vision, 4015–4026.
Lamping, C., Derks, M., Groot Koerkamp, P., & Kootstra, G. (2022). ChickenNet - an end-to-end approach for plumage condition assessment of laying hens in commercial farms using computer vision. Computers and Electronics in Agriculture, 194, 106695. https://doi.org/10.1016/j.compag.2022.106695
Li, J., Feng, Y., Guo, Y., Huang, J., Ji, W., Bi, Q., Piao, Y., Zhang, M., Zhao, X., Chen, Q., Zou, S., Lu, H., & Cheng, L. (2026). SAM3-I: Segment Anything with Instructions. En M. Liakata, V. P. Moreira, J. Zhang, & D. Jurgens (Eds.), Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) (pp. 27232–27249). Association for Computational Linguistics. https://doi.org/10.18653/v1/2026.acl-long.1255
Lilja, A., Fu, J., Stenborg, E., & Hammarstrand, L. (2024). Localization Is All You Evaluate: Data Leakage in Online Mapping Datasets and How to Fix It. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 22150–22159.
Lin, Q., Ye, G., Wang, J., & Liu, H. (2022). RoboFlow: a Data-centric Workflow Management System for Developing AI-enhanced Robots. En A. Faust, D. Hsu, & G. Neumann (Eds.), Proceedings of the 5th Conference on Robot Learning (Vol. 164, pp. 1789–1794). PMLR. https://proceedings.mlr.press/v164/lin22c.html
Paneru, B., Dhungana, A., Dahal, S., Ritz, C. W., Kim, W., Liu, T., & Chai, L. (2026). Computer vision models for precision poultry farming: A narrative review of behavioral and welfare monitoring studies. Poultry Science, 105(7), 106887. https://doi.org/10.1016/j.psj.2026.106887
Saeidifar, M., Li, G., Chai, L., Bist, R., Rasheed, K. M., Lu, J., Banakar, A., Liu, T., & Yang, X. (2024). Zero-shot image segmentation for monitoring thermal conditions of individual cage-free laying hens. Computers and Electronics in Agriculture, 226, 109436. https://doi.org/10.1016/j.compag.2024.109436
Sun, R., Wang, Q., Yu, C., Yang, Z., Wu, J., & Fan, W. (2025). A multimodal detection method for caged diseased hens integrating behavioral and thermal features via instance segmentation. Computers and Electronics in Agriculture, 239, 110926. https://doi.org/10.1016/j.compag.2025.110926
Yang, X., Dai, H., Wu, Z., Bahadur Bist, R., Subedi, S., Sun, J., Lu, G., Li, C., Liu, T., & Chai, L. (2024). An innovative segment anything model for precision poultry monitoring. Computers and Electronics in Agriculture, 222, 109045. https://doi.org/10.1016/j.compag.2024.109045
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Jonathan Aguilar-Alvarado, Karina Garcia-Galarza, John Patricio Orellana Preciado

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
Authors retain the copyright of their work. Articles are published under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License (CC BY-NC-ND 4.0): https://creativecommons.org/licenses/by-nc-nd/4.0/. Others may share the work for non-commercial purposes, without modifications, provided that the authors and the journal are credited.
https://orcid.org/0000-0003-0137-2618











