Automatic counting and positioning of slaughter pigs within the pen using a convolutional neural network and video images

被引:14
作者
Jensen, Dan Borge [1 ]
Pedersen, Lene Juul [2 ]
机构
[1] Univ Copenhagen, Fac Hlth & Med Sci, Dept Vet & Anim Sci, Gronnegardsvej 2, DK-1870 Frederiksberg C, Denmark
[2] Aarhus Univ, Fac Sci & Technol, Dept Anim Sci, Blichers Alle 20, DK-8830 Tjele, Denmark
关键词
Convolutional neural network; Growing pigs; Machine vision; Pen fouling; Positioning behaviour; TEMPERATURE;
D O I
10.1016/j.compag.2021.106296
中图分类号
S [农业科学];
学科分类号
09 ;
摘要
Pen fouling is an undesired behaviour of slaughter pigs, which increases labour costs for the farmer, worsens the hygiene and welfare of the pigs, and has negative environmental consequences. Previous research suggests that monitoring the positioning behaviour of grower/finisher pigs within their pen has the potential to be used in early warning systems that can alert the farmer to an impending pen fouling event 1-3 days in advance. For such a warning system to be feasible, monitoring of the pigs' positioning behaviour must be automated. To this end, we present a novel yet relatively simple method, namely a convolutional neural network (CNN) with a single linear regression output node. The proposed CNN takes partial images of a pen, corresponding to the different areas of the pen, and outputs an estimated count of the number of pigs in the partial image. By inputting three partial images corresponding to the three areas of the pen, the model can estimate the number of pigs in each area. The trained CNN generally performs well when applied to data from unseen test pens, with mean absolute errors of less than 1 pig and coefficients of determination between observed and estimated counts above 0.9. In cases where the trained model underperforms on the test pens, fine-tuning by transfer learning can be applied; we show that an initially underperforming model can be fine-tuned on one day's worth of test set data (26 labelled images), after which it will produce near-perfect estimates on all subsequent days in the same test set.
引用
收藏
页数:13
相关论文
共 33 条
  • [1] Temperature and body weight affect fouling of pig pens
    Aarnink, A. J. A.
    Schrama, J. W.
    Heetkamp, M. J. W.
    Stefanowska, J.
    Huynh, T. T. T.
    [J]. JOURNAL OF ANIMAL SCIENCE, 2006, 84 (08) : 2224 - 2231
  • [2] Effect of type of slatted floor and degree of fouling of solid floor on ammonia emission rates from fattening piggeries
    Aarnink, AJA
    Swierstra, D
    vandenBerg, AJ
    Speelman, L
    [J]. JOURNAL OF AGRICULTURAL ENGINEERING RESEARCH, 1997, 66 (02): : 93 - 102
  • [3] [Anonymous], 2008, COUNCIL EUROPEAN UNI, V47, P5
  • [4] Bertelsen M., 2017, CAN FOULING SL UNPUB
  • [5] Bourgin D.D., 2019, COGNITIVE MODEL PRIO
  • [6] Chen G., 2020, EFFICIENT PIG COUNTI
  • [7] High Prevalence of Assisted Injection Among Street-Involved Youth in a Canadian Setting
    Cheng, Tessa
    Kerr, Thomas
    Small, Will
    Dong, Huiru
    Montaner, Julio
    Wood, Evan
    DeBeck, Kora
    [J]. AIDS AND BEHAVIOR, 2016, 20 (02) : 377 - 384
  • [8] Spatial modeling of pigs' drinking patterns as an alarm reducing method II. Application of a multivariate dynamic linear model
    Dominiak, K. N.
    Hindsborg, J.
    Pedersen, L. J.
    Kristensen, A. R.
    [J]. COMPUTERS AND ELECTRONICS IN AGRICULTURE, 2019, 161 : 92 - 103
  • [9] Learning patterns from time-series data to discriminate predictions of tail-biting, fouling and diarrhoea in pigs
    Domun, Yuvraj
    Pedersen, Lene Juul
    White, David
    Adeyemi, Olutobi
    Norton, Tomas
    [J]. COMPUTERS AND ELECTRONICS IN AGRICULTURE, 2019, 163
  • [10] Fisher R.A., 1921, Metron, V1, P3