{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,6,17]],"date-time":"2026-06-17T18:49:08Z","timestamp":1781722148144,"version":"3.54.5"},"reference-count":49,"publisher":"MDPI AG","issue":"10","license":[{"start":{"date-parts":[[2024,5,8]],"date-time":"2024-05-08T00:00:00Z","timestamp":1715126400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"name":"Ministry of Agriculture, Food and Rural Affairs (MAFRA)","award":["421024043HD050"],"award-info":[{"award-number":["421024043HD050"]}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Sensors"],"abstract":"<jats:p>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\u2019s 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.<\/jats:p>","DOI":"10.3390\/s24102977","type":"journal-article","created":{"date-parts":[[2024,5,8]],"date-time":"2024-05-08T09:58:56Z","timestamp":1715162336000},"page":"2977","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":10,"title":["Transforming Poultry Farming: A Pyramid Vision Transformer Approach for Accurate Chicken Counting in Smart Farm Environments"],"prefix":"10.3390","volume":"24","author":[{"given":"Ridip","family":"Khanal","sequence":"first","affiliation":[{"name":"Division of Computer Science and Engineering, Jeonbuk National University, Jeonju 54896, Republic of Korea"},{"name":"Department of Computer Science and Applications, Tribhuvan University, Mechi Multiple Campus, Bhadrapur 57200, Nepal"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Yoochan","family":"Choi","sequence":"additional","affiliation":[{"name":"Division of Computer Science and Engineering, Jeonbuk National University, Jeonju 54896, Republic of Korea"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Joonwhoan","family":"Lee","sequence":"additional","affiliation":[{"name":"Division of Computer Science and Engineering, Jeonbuk National University, Jeonju 54896, Republic of Korea"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1968","published-online":{"date-parts":[[2024,5,8]]},"reference":[{"key":"ref_1","first-page":"100776","article-title":"Internet of Things and smart sensors in agriculture: Scopes and challenges","volume":"14","author":"Rajak","year":"2023","journal-title":"J. Agric. Food Res."},{"key":"ref_2","doi-asserted-by":"crossref","unstructured":"Revanth, M., Kumar, K.S., Srinivasan, M., Stonier, A.A., and Vanaja, D.S. (2021, January 8\u20139). Design and Development of an IoT Based Smart Poultry Farm. Proceedings of the 2021 International Conference on Advancements in Electrical, Electronics, Communication, Computing and Automation (ICAECA), Coimbatore, India.","DOI":"10.1109\/ICAECA52838.2021.9675553"},{"key":"ref_3","doi-asserted-by":"crossref","first-page":"4557","DOI":"10.1007\/s11831-022-09761-4","article-title":"Machine Learning for Smart Agriculture and Precision Farming: Towards Making the Fields Talk","volume":"29","author":"Shaikh","year":"2022","journal-title":"Arch. Comput. Methods Eng."},{"key":"ref_4","doi-asserted-by":"crossref","unstructured":"Neethirajan, S. (2022). Automated Tracking Systems for the Assessment of Farmed Poultry. Animals, 12.","DOI":"10.3390\/ani12030232"},{"key":"ref_5","doi-asserted-by":"crossref","first-page":"609","DOI":"10.1017\/S0043933915002433","article-title":"Sustainable development perspectives of poultry production","volume":"71","author":"Vaarst","year":"2015","journal-title":"World\u2019s Poult. Sci. J."},{"key":"ref_6","doi-asserted-by":"crossref","first-page":"341","DOI":"10.1017\/S0962728600019114","article-title":"Effects of Lighting on the Welfare of Domestic Poultry: A Review","volume":"5","year":"1996","journal-title":"Anim. Welf."},{"key":"ref_7","doi-asserted-by":"crossref","unstructured":"Cao, L., Xiao, Z., Liao, X., Yao, Y., Wu, K., Mu, J., Li, J., and Pu, H. (2021). Automated chicken counting in surveillance camera environments based on the point supervision algorithm: Lc-densefcn. Agriculture, 11.","DOI":"10.3390\/agriculture11060493"},{"key":"ref_8","doi-asserted-by":"crossref","first-page":"2694","DOI":"10.1109\/TIP.2017.2686001","article-title":"A Precision Analysis of Camera Distortion Models","volume":"26","author":"Tang","year":"2017","journal-title":"IEEE Trans. Image Process."},{"key":"ref_9","doi-asserted-by":"crossref","first-page":"684328","DOI":"10.3389\/fpls.2021.684328","article-title":"Intelligent Fruit Yield Estimation for Orchards Using Deep Learning Based Semantic Segmentation Techniques\u2014A Review","volume":"12","author":"Maheswari","year":"2021","journal-title":"Front. Plant Sci."},{"key":"ref_10","doi-asserted-by":"crossref","first-page":"160","DOI":"10.1007\/s42979-021-00592-x","article-title":"Machine Learning: Algorithms, Real-World Applications and Research Directions","volume":"2","author":"Sarker","year":"2021","journal-title":"SN Comput. Sci."},{"key":"ref_11","doi-asserted-by":"crossref","unstructured":"Du, X., Cai, Y., Wang, S., and Zhang, L. (2016, January 11\u201313). Overview of Deep Learning. Proceedings of the 31st Youth Academic Annual Conference of Chinese Association of Automation (YAC), Wuhan, China.","DOI":"10.1109\/YAC.2016.7804882"},{"key":"ref_12","doi-asserted-by":"crossref","unstructured":"Ahmed, M., Seraj, R., and Islam, S.M.S. (2020). The k-means algorithm: A comprehensive survey and performance evaluation. Electronics, 9.","DOI":"10.3390\/electronics9081295"},{"key":"ref_13","unstructured":"Louppe, G. (2015). Understanding Random Forests: From Theory to Practice. arXiv."},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"5","DOI":"10.1023\/A:1010933404324","article-title":"Random Forests","volume":"45","author":"Breiman","year":"2001","journal-title":"Mach. Learn."},{"key":"ref_15","doi-asserted-by":"crossref","first-page":"18","DOI":"10.1109\/5254.708428","article-title":"Support vector machines","volume":"13","author":"Hearst","year":"1998","journal-title":"IEEE Intell. Syst. Appl."},{"key":"ref_16","unstructured":"Zhang, Y. (2012). Information Computing and Applications, Proceedings of the Third International Conference, ICICA 2012, Chengde, China, 14\u201316 September 2012, Springer."},{"key":"ref_17","unstructured":"Conte, D., Foggia, P., Percannella, G., Tufano, F., and Vento, M. (September, January 29). A method for counting people in crowded scenes. Proceedings of the 7th IEEE International Conference on Advanced Video and Signal Based Surveillance, Boston, MA, USA."},{"key":"ref_18","doi-asserted-by":"crossref","unstructured":"Hani, N., Roy, P., and Isler, V. (2018, January 1\u20135). Apple Counting using Convolutional Neural Networks. Proceedings of the 2018 IEEE\/RSJ International Conference on Intelligent Robots and Systems (IROS), Madrid, Spain.","DOI":"10.1109\/IROS.2018.8594304"},{"key":"ref_19","doi-asserted-by":"crossref","unstructured":"He, K., Zhang, X., Ren, S., and Sun, J. (2016, January 27\u201330). Deep Residual Learning for Image Recognition. Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA.","DOI":"10.1109\/CVPR.2016.90"},{"key":"ref_20","doi-asserted-by":"crossref","unstructured":"Dobrescu, A., Giuffrida, M.V., and Tsaftaris, S.A. (2017, January 22\u201329). Leveraging Multiple Datasets for Deep Leaf Counting. Proceedings of the 2017 IEEE International Conference on Computer Vision Workshop (ICCVW), Venice, Italy.","DOI":"10.1109\/ICCVW.2017.243"},{"key":"ref_21","doi-asserted-by":"crossref","first-page":"103635","DOI":"10.1016\/j.compind.2022.103635","article-title":"A weakly-supervised approach for flower\/fruit counting in apple orchards","volume":"138","author":"Bhattarai","year":"2022","journal-title":"Comput. Ind."},{"key":"ref_22","doi-asserted-by":"crossref","unstructured":"Moon, J., Lim, S., Lee, H., Yu, S., and Lee, K.-B. (2022). Smart Count System Based on Object Detection Using Deep Learning. Remote Sens., 14.","DOI":"10.3390\/rs14153761"},{"key":"ref_23","doi-asserted-by":"crossref","first-page":"844522","DOI":"10.3389\/fpls.2022.844522","article-title":"A Segmentation-Guided Deep Learning Framework for Leaf Counting","volume":"13","author":"Fan","year":"2022","journal-title":"Front. Plant Sci."},{"key":"ref_24","doi-asserted-by":"crossref","unstructured":"Hong, S.-J., Nam, I., Kim, S.-Y., Kim, E., Lee, C.-H., Ahn, S., Park, I.-K., and Kim, G. (2021). Automatic pest counting from pheromone trap images using deep learning object detectors for Matsucoccus thunbergianae monitoring. Insects, 12.","DOI":"10.3390\/insects12040342"},{"key":"ref_25","doi-asserted-by":"crossref","first-page":"110","DOI":"10.1038\/s41438-020-0323-3","article-title":"Deep learning image segmentation and extraction of blueberry fruit traits associated with harvestability and yield","volume":"7","author":"Ni","year":"2020","journal-title":"Hortic. Res."},{"key":"ref_26","doi-asserted-by":"crossref","unstructured":"He, K., Gkioxari, G., Doll\u00e1r, P., and Girshick, R. (2017, January 22\u201329). Mask R-CNN. Proceedings of the 2017 IEEE International Conference on Computer Vision (ICCV), Venice, Italy.","DOI":"10.1109\/ICCV.2017.322"},{"key":"ref_27","doi-asserted-by":"crossref","first-page":"853","DOI":"10.1007\/s10044-021-00959-z","article-title":"Approaches on crowd counting and density estimation: A review","volume":"24","author":"Li","year":"2021","journal-title":"Pattern Anal. Appl."},{"key":"ref_28","doi-asserted-by":"crossref","first-page":"104840","DOI":"10.1016\/j.compag.2019.05.049","article-title":"Automated pig counting using deep learning","volume":"163","author":"Tian","year":"2019","journal-title":"Comput. Electron. Agric."},{"key":"ref_29","doi-asserted-by":"crossref","first-page":"2902","DOI":"10.1109\/LRA.2021.3062586","article-title":"Deep Regression Versus Detection for Counting in Robotic Phenotyping","volume":"6","author":"Gomez","year":"2021","journal-title":"IEEE Robot. Autom. Lett."},{"key":"ref_30","unstructured":"Hobbs, J., Paull, R., Markowicz, B., and Rose, G. (2020). AI for Social Good Workshop, Harvard University."},{"key":"ref_31","doi-asserted-by":"crossref","unstructured":"Rahnemoonfar, M., Dobbs, D., Yari, M., and Starek, M.J. (2019). DisCountNet: Discriminating and counting network for real-time counting and localization of sparse objects in high-resolution UAV imagery. Remote Sens., 11.","DOI":"10.3390\/rs11091128"},{"key":"ref_32","doi-asserted-by":"crossref","first-page":"150","DOI":"10.1186\/s13007-019-0537-2","article-title":"TasselNetv2: In-field counting of wheat spikes with context-augmented local regression networks","volume":"15","author":"Xiong","year":"2019","journal-title":"Plant Methods"},{"key":"ref_33","doi-asserted-by":"crossref","unstructured":"Sun, G., Liu, Y., Probst, T., Paudel, D.P., Popovic, N., and Van Gool, L. (2023). Rethinking Global Context in Crowd Counting. arXiv.","DOI":"10.1007\/s11633-023-1475-z"},{"key":"ref_34","doi-asserted-by":"crossref","first-page":"2141","DOI":"10.1109\/TPAMI.2020.3013269","article-title":"NWPU-Crowd: A Large-Scale Benchmark for Crowd Counting and Localization","volume":"43","author":"Wang","year":"2020","journal-title":"IEEE Trans. Pattern Anal. Mach. Intell."},{"key":"ref_35","doi-asserted-by":"crossref","first-page":"22602","DOI":"10.1007\/s10489-023-04721-2","article-title":"An interactive network based on transformer for multimodal crowd counting","volume":"53","author":"Yu","year":"2023","journal-title":"Appl. Intell."},{"key":"ref_36","doi-asserted-by":"crossref","unstructured":"Ranjan, V., Sharma, U., Nguyen, T., and Hoai, M. (2021, January 19\u201325). Learning to Count Everything. Proceedings of the 2021 IEEE\/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Virtual.","DOI":"10.1109\/CVPR46437.2021.00340"},{"key":"ref_37","doi-asserted-by":"crossref","unstructured":"Bengio, Y., Louradour, J., Collobert, R., and Weston, J. (2009, January 14\u201318). Curriculum Learning. Proceedings of the 26th Annual International Conference on Machine Learning, New York, NY, USA.","DOI":"10.1145\/1553374.1553380"},{"key":"ref_38","doi-asserted-by":"crossref","unstructured":"Liu, Y., Shi, M., Zhao, Q., and Wang, X. (2019, January 16\u201320). Point in, box out: Beyond counting persons in crowds. Proceedings of the 2019 IEEE\/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA.","DOI":"10.1109\/CVPR.2019.00663"},{"key":"ref_39","unstructured":"Lyu, Y., and Tsang, I.W. (2019). Curriculum Loss: Robust Learning and Generalization Against Label Corruption. arXiv."},{"key":"ref_40","doi-asserted-by":"crossref","first-page":"15233","DOI":"10.1109\/TITS.2021.3138896","article-title":"Crowd Counting via Segmentation Guided Attention Networks and Curriculum Loss","volume":"23","author":"Wang","year":"2022","journal-title":"IEEE Trans. Intell. Transp. Syst."},{"key":"ref_41","unstructured":"Laradji, I.H., Rostamzadeh, N., Pinheiro, P.O., Vazquez, D., and Schmidt, M. (2018). Computer Vision-ECCV 2018, Proceedings of the 15th European Conference, Munich, Germany, 8\u201314 September 2018, Springer."},{"key":"ref_42","doi-asserted-by":"crossref","unstructured":"Abuaiadah, D., Switzer, A., Bosu, M., and Liu, Y. (2022, January 18\u201320). Automatic counting of chickens in confined area using the LCFCN algorithm. Proceedings of the 2022 International Conference on Intelligent Systems and Computer Vision (ISCV), Fez, Morocco.","DOI":"10.1109\/ISCV54655.2022.9806092"},{"key":"ref_43","doi-asserted-by":"crossref","unstructured":"Zhu, X., Wu, C., Yang, Y., Yao, Y., and Wu, Y. (2022, January 10\u201312). Automated Chicken Counting Using YOLO-v5x Algorithm. Proceedings of the 2022 8th International Conference on Systems and Informatics (ICSAI), Kunming, China.","DOI":"10.1109\/ICSAI57119.2022.10005522"},{"key":"ref_44","unstructured":"Horvat, M., and Gledec, G. (2022, January 21\u201323). A comparative study of YOLOv5 models performance for image localization and classification. Proceedings of the 33rd Central European Conference on Information and Intelligent Systems (CECIIS 2022), Dubrovnik, Croatia."},{"key":"ref_45","doi-asserted-by":"crossref","unstructured":"Sun, E., Xiao, Z., Yuan, F., Wang, Z., Ma, G., and Liu, J. (2023, January 24\u201326). Method of Classified Counting of Mixed Breeding Chickens Based on YOLOV5. Proceedings of the 2023 42nd Chinese Control Conference (CCC), Tianjin, China.","DOI":"10.23919\/CCC58697.2023.10240449"},{"key":"ref_46","doi-asserted-by":"crossref","unstructured":"You, Z., Yang, K., Luo, W., Lu, X., Cui, L., and Le, X. (2023, January 2\u20137). Few-shot Object Counting with Similarity-Aware Feature Enhancement. Proceedings of the IEEE\/CVF Winter Conference on Applications of Computer Vision (WACV), Waikoloa, HI, USA.","DOI":"10.1109\/WACV56688.2023.00625"},{"key":"ref_47","unstructured":"Tian, Y., Chu, X., and Wang, H. (2021). CCTrans: Simplifying and Improving Crowd Counting with Transformer. arXiv."},{"key":"ref_48","unstructured":"O\u2019shea, K., and Nash, R. (2015). An Introduction to Convolutional Neural Networks. arXiv."},{"key":"ref_49","unstructured":"Loshchilov, I., and Hutter, F. (2019, January 6\u20139). Decoupled Weight Decay Regularization. Proceedings of the 7th International Conference on Learning Representations, New Orleans, LA, USA."}],"container-title":["Sensors"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1424-8220\/24\/10\/2977\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,10]],"date-time":"2025-10-10T14:41:31Z","timestamp":1760107291000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1424-8220\/24\/10\/2977"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2024,5,8]]},"references-count":49,"journal-issue":{"issue":"10","published-online":{"date-parts":[[2024,5]]}},"alternative-id":["s24102977"],"URL":"https:\/\/doi.org\/10.3390\/s24102977","relation":{},"ISSN":["1424-8220"],"issn-type":[{"value":"1424-8220","type":"electronic"}],"subject":[],"published":{"date-parts":[[2024,5,8]]}}}