A machine vision system to detect and count laying hens in battery cages
Manually counting hens in battery cages on large commercial poultry farms is a challenging task: time-consuming and often inaccurate. Therefore, the aim of this study was to develop a machine vision system that automatically counts the number of hens in battery cages. Automatically counting hens can...
Main Authors: | , , , , |
---|---|
Format: | Article |
Language: | English |
Published: |
Elsevier
2020-01-01
|
Series: | Animal |
Subjects: | |
Online Access: | http://www.sciencedirect.com/science/article/pii/S1751731120001676 |
_version_ | 1818450667307532288 |
---|---|
author | O. Geffen Y. Yitzhaky N. Barchilon S. Druyan I. Halachmi |
author_facet | O. Geffen Y. Yitzhaky N. Barchilon S. Druyan I. Halachmi |
author_sort | O. Geffen |
collection | DOAJ |
description | Manually counting hens in battery cages on large commercial poultry farms is a challenging task: time-consuming and often inaccurate. Therefore, the aim of this study was to develop a machine vision system that automatically counts the number of hens in battery cages. Automatically counting hens can help a regulatory agency or inspecting officer to estimate the number of living birds in a cage and, thus animal density, to ensure that they conform to government regulations or quality certification requirements. The test hen house was 87 m long, containing 37 battery cages stacked in 6-story high rows on both sides of the structure. Each cage housed 18 to 30 hens, for a total of approximately 11 000 laying hens. A feeder moves along the cages. A camera was installed on an arm connected to the feeder, which was specifically developed for this purpose. A wide-angle lens was used in order to frame an entire cage in the field of view. Detection and tracking algorithms were designed to detect hens in cages; the recorded videos were first processed using a convolutional neural network (CNN) object detection algorithm called Faster R-CNN, with an input of multi-angular view shifted images. After the initial detection, the hens’ relative location along the feeder was tracked and saved using a tracking algorithm. Information was added with every additional frame, as the camera arm moved along the cages. The algorithm count was compared with that made by a human observer (the ‘gold standard’). A validation dataset of about 2000 images achieved 89.6% accuracy at cage level, with a mean absolute error of 2.5 hens per cage. These results indicate that the model developed in this study is practicable for obtaining fairly good estimates of the number of laying hens in battery cages. |
first_indexed | 2024-12-14T20:54:57Z |
format | Article |
id | doaj.art-1da0c8bd443f4f18a71226c96fb875af |
institution | Directory Open Access Journal |
issn | 1751-7311 |
language | English |
last_indexed | 2024-12-14T20:54:57Z |
publishDate | 2020-01-01 |
publisher | Elsevier |
record_format | Article |
series | Animal |
spelling | doaj.art-1da0c8bd443f4f18a71226c96fb875af2022-12-21T22:47:43ZengElsevierAnimal1751-73112020-01-01141226282634A machine vision system to detect and count laying hens in battery cagesO. Geffen0Y. Yitzhaky1N. Barchilon2S. Druyan3I. Halachmi4Precision Livestock Farming (PLF) Lab, Institute of Agricultural Engineering, Agricultural Research Organization (A.R.O.) – The Volcani Center, 68 Hamaccabim Road, P.O.B 15159 Rishon Lezion 7505101, Israel; Electro Optical Engineering Department, School of Electrical and Computer Engineering, Ben-Gurion University of the Negev, 1 Ben Gurion Avenue, P.O.B 653 Be’er Sheva 8410501, Israel; Animal Science Institute, Agricultural Research Organization (A.R.O.) – The Volcani Center, 68 Hamaccabim Road, P.O.B 7505101 Rishon Lezion 7505101, IsraelElectro Optical Engineering Department, School of Electrical and Computer Engineering, Ben-Gurion University of the Negev, 1 Ben Gurion Avenue, P.O.B 653 Be’er Sheva 8410501, IsraelPrecision Livestock Farming (PLF) Lab, Institute of Agricultural Engineering, Agricultural Research Organization (A.R.O.) – The Volcani Center, 68 Hamaccabim Road, P.O.B 15159 Rishon Lezion 7505101, Israel; Animal Science Institute, Agricultural Research Organization (A.R.O.) – The Volcani Center, 68 Hamaccabim Road, P.O.B 7505101 Rishon Lezion 7505101, IsraelAnimal Science Institute, Agricultural Research Organization (A.R.O.) – The Volcani Center, 68 Hamaccabim Road, P.O.B 7505101 Rishon Lezion 7505101, IsraelPrecision Livestock Farming (PLF) Lab, Institute of Agricultural Engineering, Agricultural Research Organization (A.R.O.) – The Volcani Center, 68 Hamaccabim Road, P.O.B 15159 Rishon Lezion 7505101, IsraelManually counting hens in battery cages on large commercial poultry farms is a challenging task: time-consuming and often inaccurate. Therefore, the aim of this study was to develop a machine vision system that automatically counts the number of hens in battery cages. Automatically counting hens can help a regulatory agency or inspecting officer to estimate the number of living birds in a cage and, thus animal density, to ensure that they conform to government regulations or quality certification requirements. The test hen house was 87 m long, containing 37 battery cages stacked in 6-story high rows on both sides of the structure. Each cage housed 18 to 30 hens, for a total of approximately 11 000 laying hens. A feeder moves along the cages. A camera was installed on an arm connected to the feeder, which was specifically developed for this purpose. A wide-angle lens was used in order to frame an entire cage in the field of view. Detection and tracking algorithms were designed to detect hens in cages; the recorded videos were first processed using a convolutional neural network (CNN) object detection algorithm called Faster R-CNN, with an input of multi-angular view shifted images. After the initial detection, the hens’ relative location along the feeder was tracked and saved using a tracking algorithm. Information was added with every additional frame, as the camera arm moved along the cages. The algorithm count was compared with that made by a human observer (the ‘gold standard’). A validation dataset of about 2000 images achieved 89.6% accuracy at cage level, with a mean absolute error of 2.5 hens per cage. These results indicate that the model developed in this study is practicable for obtaining fairly good estimates of the number of laying hens in battery cages.http://www.sciencedirect.com/science/article/pii/S1751731120001676precision livestock farmingpoultryobject trackingdeep learningFaster R-CNN |
spellingShingle | O. Geffen Y. Yitzhaky N. Barchilon S. Druyan I. Halachmi A machine vision system to detect and count laying hens in battery cages Animal precision livestock farming poultry object tracking deep learning Faster R-CNN |
title | A machine vision system to detect and count laying hens in battery cages |
title_full | A machine vision system to detect and count laying hens in battery cages |
title_fullStr | A machine vision system to detect and count laying hens in battery cages |
title_full_unstemmed | A machine vision system to detect and count laying hens in battery cages |
title_short | A machine vision system to detect and count laying hens in battery cages |
title_sort | machine vision system to detect and count laying hens in battery cages |
topic | precision livestock farming poultry object tracking deep learning Faster R-CNN |
url | http://www.sciencedirect.com/science/article/pii/S1751731120001676 |
work_keys_str_mv | AT ogeffen amachinevisionsystemtodetectandcountlayinghensinbatterycages AT yyitzhaky amachinevisionsystemtodetectandcountlayinghensinbatterycages AT nbarchilon amachinevisionsystemtodetectandcountlayinghensinbatterycages AT sdruyan amachinevisionsystemtodetectandcountlayinghensinbatterycages AT ihalachmi amachinevisionsystemtodetectandcountlayinghensinbatterycages AT ogeffen machinevisionsystemtodetectandcountlayinghensinbatterycages AT yyitzhaky machinevisionsystemtodetectandcountlayinghensinbatterycages AT nbarchilon machinevisionsystemtodetectandcountlayinghensinbatterycages AT sdruyan machinevisionsystemtodetectandcountlayinghensinbatterycages AT ihalachmi machinevisionsystemtodetectandcountlayinghensinbatterycages |