Transforming Poultry Farming: A Pyramid Vision Transformer Approach for Accurate Chicken Counting in Smart Farm Environments
Open Access
Abstract
Smart farm environments, equipped with cutting-edge technology, require proficient techniques for managing poultry. This research investigates automated chicken counting, an essential part of optimizing livestock conditions. By integrating artificial intelligence and computer vision, it introduces a transformer-based chicken-counting model to overcome challenges to precise counting, such as lighting changes, occlusions, cluttered backgrounds, continual chicken growth, and camera distortions. The model includes a pyramid vision transformer backbone and a multi-scale regression head to predict precise density maps of the crowded chicken enclosure. The customized loss function incorporates curriculum loss, allowing the model to learn progressively, and adapts to diverse challenges posed by varying densities, scales, and appearances. The proposed annotated dataset includes data on various lighting conditions, chicken sizes, densities, and placements. Augmentation strategies enhanced the dataset with brightness, contrast, shadow, blur, occlusion, cropping, and scaling variations. Evaluating the model on the proposed dataset indicated its robustness, with a validation mean absolute error of 27.8, a root mean squared error of 40.9, and a test average accuracy of 96.9%. A comparison with the few-shot object counting model SAFECount demonstrated the model’s superior accuracy and resilience. The transformer-based approach was 7.7% more accurate than SAFECount. It demonstrated robustness in response to different challenges that may affect counting and offered a comprehensive and effective solution for automated chicken counting in smart farm environments.Keywords
Funding Information
- Ministry of Agriculture, Food and Rural Affairs (MAFRA) (421024043HD050)
This publication has 41 references indexed in Scilit:
- Rethinking Global Context in Crowd CountingMachine Intelligence Research, 2024
- Internet of Things and smart sensors in agriculture: Scopes and challengesJournal of Agriculture and Food Research, 2023
- An interactive network based on transformer for multimodal crowd countingApplied Intelligence, 2023
- Machine Learning for Smart Agriculture and Precision Farming: Towards Making the Fields TalkArchives of Computational Methods in Engineering, 2022
- A weakly-supervised approach for flower/fruit counting in apple orchardsComputers in Industry, 2022
- Machine Learning: Algorithms, Real-World Applications and Research DirectionsSN Computer Science, 2021
- Approaches on crowd counting and density estimation: a reviewPattern Analysis and Applications, 2021
- Automated pig counting using deep learningComputers and Electronics in Agriculture, 2019
- Where Are the Blobs: Counting by Localization with Point Supervision2018
- Sustainable development perspectives of poultry productionWorld's Poultry Science Journal, 2015