Skip to main content
Log in

Detection and tracking of chickens in low-light images using YOLO network and Kalman filter

  • Original Article
  • Published:
Neural Computing and Applications Aims and scope Submit manuscript

Abstract

Continuous monitoring of chickens’ movement on-farm is a challenge. The present study aimed to associate the modified YOLO v4 model with a bird tracking algorithm based on a Kalman filter to identify a chicken’s movement using low-resolution video. The videos were captured in grayscale using a top-view camera with a low resolution of 702 × 480 pixels, preventing the application of usual image processing techniques. We used YOLO to extract the characteristics of the image and classification automatically. A dataset with images of tagged chickens was used to detect chickens, being 1000 frames tagged in different videos. The generated model was applied in a video that returned the bounding box of the location of the chicken in the frame. With the limits of the box, the centroid was calculated and exported in a CSV file for tracking processing. The Kalman filter was implemented to track chickens in low light intensity. Results indicated that YOLO presented a 99.9% accuracy in detecting chickens in low-quality videos. Using the Kalman filter, the algorithm tracks the chickens and gives them a particular identification number until they leave the compartment. Furthermore, each moving chicken is located in different colors along with the maps below the image, making chicken detection more convenient. The tracking results of chickens show that the proposed method can correctly handle the new entry and exit moving targets in crowded conditions.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10

Similar content being viewed by others

References

  1. Branco T, Moura DJ, Nääs IA, Oliveira SRM (2020) Detection of broiler heat stress by using the generalised sequential pattern algorithm. Biosys Eng 199:121–126. https://doi.org/10.1016/j.biosystemseng.2019.10.012

    Article  Google Scholar 

  2. Fernandes AM, Sartori DL, Morais FJO, Salgado DD, Pereira DF (2021) Analysis of cluster and unrest behaviors of laying hens housed under different thermal conditions and light wave length. Animals 11(7):2017. https://doi.org/10.3390/ani11072017

    Article  Google Scholar 

  3. Aydin A, Cangar O, Ozcan SE, Bahr C, Berckmans D (2010) Application of a fully automatic analysis tool to assess the activity of broiler chickens with different gait scores. Comput Electron Agric 73(2):194–199. https://doi.org/10.1016/j.compag.2010.05.004

    Article  Google Scholar 

  4. Dawkins MS, Roberts SJ, Cain RJ, Nickson T, Donnelly CA (2017) Early warning of footpad dermatitis and hockburn in broiler chicken flocks using optical flow, bodyweight and water consumption. VetRecord 180(20):499. https://doi.org/10.1136/vr.104066

    Article  Google Scholar 

  5. Van Hertem T, Norton T, Berckmans D, Vranken E (2018) Predicting broiler gait scores from activity monitoring and flock data. Biosyst Eng 173:93–102. https://doi.org/10.1016/j.biosystemseng.2018.07.002

    Article  Google Scholar 

  6. Maria GA, Escos J, Alados CL (2004) Complexity of behavioural sequence and their relation to stress conditions in chicken (gallus gallus domesticus): A non-invasive technique to evaluate animal welfare. Appl Anim Behav Sci 89:93–104. https://doi.org/10.1016/j.applanim.2003.11.012

    Article  Google Scholar 

  7. Farias MRS, Leite SCB, Vasconcelos AM, Silva TAG, Leitão AMF, Sena TL, Pacheco DB, Abreu CG, Silveira RMF (2020) Thermoregulatory, behavioral and productive responses of laying hens supplemented with different types and dosages of phytases raised in a hot environment: an integrative approach. J Therm Biol 94:102773. https://doi.org/10.1016/j.jtherbio.2020.102773

    Article  Google Scholar 

  8. Li G, Zhao Y, Purshell JL, Du Q, Chesser GD Jr, Lowe JW (2020) Analysis of feeding and drinking behaviors of group-reared broilers via image processing. Comput Electron Agric 175:105596. https://doi.org/10.1016/j.compag.2020.105596

    Article  Google Scholar 

  9. van der Sluis M, Haas Y, Klerk B, Rodenburg TB, Ellen ED (2020) Assessing the activity of individual group-housed broilers throughout life using a passive radio frequency identification system: a validation study. Sensors 20(13):3612. https://doi.org/10.3390/s20133612

    Article  Google Scholar 

  10. Fernández AP, Norton T, Tullo E, Hertem TV, Youssef A, Exadaktylos V, Vandren E, Guarino M, Berckmans D (2018) Real-time monitoring of broiler flock’s welfare status using camera-based technology. Biosyst Eng 173:103–114. https://doi.org/10.1016/j.biosystemseng.2018.05.008

    Article  Google Scholar 

  11. Kashiha M, Pluk A, Bahr C, Vranken E, Berckmans D (2013) Development of an early warning system for a broiler house using computer vision. Biosyst Eng 116(1):36–45. https://doi.org/10.1016/j.biosystemseng.2013.06.004

    Article  Google Scholar 

  12. Li N, Ren Z, Li D, Zeng L (2020) Review, Automated techniques for monitoring the behaviour and welfare of broilers and laying hens, Towards the goal of precision livestock farming. Animal 14(13):617–625. https://doi.org/10.1017/S1751731119002155

    Article  Google Scholar 

  13. Okinda C, Lu M, Liu L, Nyalala I, Muneri C, Wang J, Zhang H, Shen M (2019) A machine vision system for early detection and prediction of sick birds: a broiler chicken model. Biosyst Eng 188:229–242. https://doi.org/10.1016/j.biosystemseng.2019.09.015

    Article  Google Scholar 

  14. Siegford JM, Berezowski J, Biswas SK, Daigle CL, Gebhardt-Henrich SG, Hernandez CE, Thurner S, Toscano MJ (2016) Assessing activity and location of individual laying hens in large groups using modern technology. Animals 6(10):1–20. https://doi.org/10.3390/ani6020010

    Article  Google Scholar 

  15. Sergeant D, Boyle R, Forbes M (1998) Computer visual tracking of poultry. Comput Electron Agric 21(1):1–18. https://doi.org/10.1016/S0168-1699(98)00025-8

    Article  Google Scholar 

  16. Ellen ED, van der Sluis M, Siegford J, Guzhva O, Toscano MJ, Bennewitz J, van der Zande LE, van der Eijk JAJ, Haas EN, Norton T, Piette D, Tetens J, Klerk B, Visser B, Rodenburg TB (2019) Review of sensor technologies in animal breeding: phenotyping behaviors of laying hens to select against feather pecking. Animals 9(3):108. https://doi.org/10.3390/ani9030108

    Article  Google Scholar 

  17. Fujiyoshi H, Hirakawa T, Yamashita T (2019) Deep learning-based image recognition for autonomous driving. IATSS Res 43:244–252. https://doi.org/10.1016/j.iatssr.2019.11.008

    Article  Google Scholar 

  18. Guo Y, Chai L, Aggrey SE, Oladeinde A, Johnson J, Zock G (2020) A machine vision-based method for monitoring broiler chicken floor distribution. Sensors 20:3179. https://doi.org/10.3390/s20113179

    Article  Google Scholar 

  19. Hamuda E, Mc Ginley B, Glavin M, Jones E (2017) Automatic crop detection under field conditions using the HSV colour space and morphological operations. Comput Electron Agric 133:97–107. https://doi.org/10.1016/j.compag.2016.11.021

    Article  Google Scholar 

  20. Ireri D, Belal E, Okinda C, Makange N, Ji C (2019) A computer vision system for defect discrimination and grading in tomatoes using machine learning and image processing. Artif Intell Agric 2:28–37. https://doi.org/10.1016/j.aiia.2019.06.001

    Article  Google Scholar 

  21. Pereira DF, Miyamoto BCB, Maia GDN, Sales GT, Magalhães MM, Gates RS (2013) Machine vision to identify broiler breeder behavior. Comput Electron Agric 99:194–199. https://doi.org/10.1016/j.compag.2013.09.012

    Article  Google Scholar 

  22. Zhuang X, Bi M, Guo J, Wu J, Zhang T (2018) Development of an early warning algorithm to detect sick broilers. Comput Electron Agric 144:102–113. https://doi.org/10.1016/j.compag.2017.11.032

    Article  Google Scholar 

  23. Kamilaris A, Prenafeta-Boldú FX (2018) Deep learning in agriculture: a survey. Comput Electron Agric 147:70–90. https://doi.org/10.1016/j.compag.2018.02.016

    Article  Google Scholar 

  24. Pan SJ, Yang Q (2010) A survey on transfer learning. IEEE Trans Knowl Data Eng 22(10):1345–1359. https://doi.org/10.1109/TKDE.2009.191

    Article  Google Scholar 

  25. Sehgal G, Gupta B, Paneri K, Singh K, Sharma G, Shroff G (2017) Crop planning using stochastic visual optimization In: 2017 IEEE visualization in data science (VDS), pp 47–51. https://doi.org/10.1109/VDS.2017.8573443

  26. Lin CY, Hsiek KW, Tsai YC, Kuo YF (2018) Monitoring chicken heat stress using deep convolutional neural networks. In: ASABE annual international meeting, American Society of Agricultural and Biological Engineers. pp 1–28. https://doi.org/10.13031/aim.201800314

  27. Put H, Lian J, Fan M (2018) Automatic recognition of flock behavior of chickens with convolutional neural network and kinect sensor. Int J Pattern Recognit Artif Intell 32:1850023. https://doi.org/10.1142/S0218001418500234

    Article  Google Scholar 

  28. Wang J, Wang N, Li L, Ren Z (2020) Real-time behavior detection and judgment of egg breeders based on YOLO v3. Neural Comput Appl 32:5471–5481. https://doi.org/10.1007/s00521-019-04645-4

    Article  Google Scholar 

  29. Zhang H, Chen C (2020) Design of sick chicken automatic detection system based on improved residual network. In: IEEE 4th information technology, networking, electronic and automation control conference (ITNEC), pp 2480–2485. https://doi.org/10.1007/978-3-319-50835-1_14

  30. Li K, Wan G, Cheng G, Meng L, Han J (2020) Object detection in optical remote sensing images: a survey and a new benchmark. ISPRS J Photogramm Remote Sens 159:296–307. https://doi.org/10.1016/j.isprsjprs.2019.11.023

    Article  Google Scholar 

  31. Redmon J, Divvala S, Girshick R, Farhadi A (2015) You only look once: unified, real-time object detection. https://arxiv.org/abs/1506.02640

  32. Kumar A, Kalia A, Kalia A (2022) ETL-YOLO v4: a face mask detection algorithm in era of COVID-19 pandemic. Optik 259:169051. https://doi.org/10.1016/j.ijleo.2022.169051

    Article  Google Scholar 

  33. Li X, Wang K, Wang W, Li Y (2010) A multiple object tracking method using Kalman filter. In: The 2010 IEEE international conference on information and automation. Pp 1862–1866. https://doi.org/10.1109/ICINFA.2010.5512258

  34. Hamuda E, Mc Ginley B, Glavin M, Jones E (2018) Improved image processing-based crop detection using Kalman filtering and the Hungarian algorithm. Comput Electron Agric 148:37–44. https://doi.org/10.1016/j.compag.2018.02.027

    Article  Google Scholar 

  35. Fu Z, Han Y (2012) Centroid weighted Kalman filter for visual object tracking. Measurement 45(4):650–655. https://doi.org/10.1016/j.measurement.2012.01.004

    Article  Google Scholar 

  36. Aydin A, Pluk, A, Leroy T, Berckmans D, Bahr C (2013) Automatic identification of activity and spatial use of broiler chickens with different gait scores. Trans ASABE (American Society of Agricultural and Biological Engineers), 56: 1123–1132. https://doi.org/10.13031/trans.56.9987

  37. Fang C, Huang J, Cuan K, Zhuang X, Zhang T (2020) Comparative study on poultry target tracking algorithms based on a deep regression network. Biosyst Eng 190:176–183. https://doi.org/10.1016/j.biosystemseng.2019.12.002

    Article  Google Scholar 

  38. Geffen O, Yitzhaky Y, Barchilon N, Druyan S, Halachmi I (2020) A machine vision system to detect and count laying hens in battery cages. Animal 14:2628–2634. https://doi.org/10.1017/S1751731120001676

    Article  Google Scholar 

  39. Zhuang X, Zhang T (2019) Detection of sick broilers by digital image processing and deep learning. Biosyst Eng 179:106–116. https://doi.org/10.1016/j.biosystemseng.2019.01.003

    Article  Google Scholar 

  40. Lewis NJ, Hurnik JF (1990) Locomotion of broiler chickens in floor pens. Poult Sci 69:1087–1093. https://doi.org/10.3382/ps.0691087

    Article  Google Scholar 

  41. van der Sluis M, De Klerk B, Ellen ED, De Haas Y, Hijink T, Rodenburg TB (2019) Validation of an ultra-wideband tracking system for recording individual levels of activity in broilers. Animals 9:580. https://doi.org/10.3390/ani9080580

    Article  Google Scholar 

  42. Feiyang Z, Yueming H, Liancheng C, Lihong G, Wenjie D, Lu W (2016) Monitoring behavior of poultry based on RFID radio frequency network. Int J Agric Biol Eng 9(6):139–147. https://doi.org/10.3965/j.ijabe.20160906.1568

    Article  Google Scholar 

  43. Mollah MBR, Hasan MA, Salam MA, Ali MA (2010) Digital image analysis to estimate the live weight of broiler. Comput Electron Agric 72(1):48–52. https://doi.org/10.1016/j.compag.2010.02.002

    Article  Google Scholar 

Download references

Acknowledgements

Funding was provided by National Council for Scientific and Technological Development - CNPq (Grant # 304085/2021-9 and # 308177/2021-7).

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Danilo Florentino Pereira.

Ethics declarations

Conflict of interest

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Supplementary Information

Below is the link to the electronic supplementary material.

Supplementary file1 (MP4 7580 kb)

Rights and permissions

Springer Nature or its licensor holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Siriani, A.L.R., Kodaira, V., Mehdizadeh, S.A. et al. Detection and tracking of chickens in low-light images using YOLO network and Kalman filter. Neural Comput & Applic 34, 21987–21997 (2022). https://doi.org/10.1007/s00521-022-07664-w

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00521-022-07664-w

Keywords

Navigation