Académique Documents
Professionnel Documents
Culture Documents
Danilo F. Pereira
a,
, Bruno C.B. Miyamoto
a,1
, Guilherme D.N. Maia
b,2
, G. Tatiana Sales
b
,
Marcelo M. Magalhes
a,1
, Richard S. Gates
b,3
a
School of Business, Univ. Estadual Paulista UNESP at Tup, 780 Domingos da Costa Lopes Av., 17602-496, Tup, SP, Brazil
b
Department of Agricultural and Biological Engineering, University of Illinois at Urbana-Champaign, 1304 W. Pennsylvania Avenue, Urbana, IL 61801, USA
a r t i c l e i n f o
Article history:
Received 15 February 2013
Received in revised form 23 August 2013
Accepted 18 September 2013
Keywords:
Image analysis
Poultry
Data mining
Precision agriculture in animal production
a b s t r a c t
Animal behavioral parameters can be used to assess welfare status in commercial broiler breeders.
Behavioral parameters can be monitored with a variety of sensing devices, for instance, the use of video
cameras allows comprehensive assessment of animal behavioral expressions. Nevertheless, the develop-
ment of efcient methods and algorithms to continuously identify and differentiate animal behavior pat-
terns is needed. The objective this study was to provide a methodology to identify hen white broiler
breeder behavior using combined techniques of image processing and computer vision. These techniques
were applied to differentiate body shapes from a sequence of frames as the birds expressed their behav-
iors. The method was comprised of four stages: (1) identication of body positions and their relationship
with typical behaviors. For this stage, the number of frames required to identify each behavior was
determined; (2) collection of image samples, with the isolation of the birds that expressed a behavior
of interest; (3) image processing and analysis using a lter developed to separate white birds from the
dark background; and nally (4) construction and validation of a behavioral classication tree, using
the software tool Weka (model J48). The constructed tree was structured in 8 levels and 27 leaves,
and it was validated using two modes: the set training mode with an overall rate of success of
96.7%, and the cross validation mode with an overall rate of success of 70.3%. The results presented here
conrmed the feasibility of the method developed to identify white broiler breeder behavior for a partic-
ular group of study. Nevertheless, more improvements in the method can be made in order to increase
the validation overall rate of success.
2013 Elsevier B.V. All rights reserved.
1. Introduction
Animal behavior is a parameter commonly used to assess ani-
mal welfare. Behavior was rst strictly dened as movements per-
formed by a living organism. However, other living expressions can
be interpreted as behavior signals and are not characterized by
movements. Vocalization and sounds, color changes, odors, and
production are examples of more complex living expressions
incorporated into the denition of behavior (Costa, 2003).
Animal behavior is a potential tool to identify welfare status of
broiler breeders in commercial production systems (Prayitno et al.,
1997; Archer et al., 2009; Shields et al., 2005; Salgado et al., 2007).
Several types of sensing devices have been applied to monitor ani-
mal behavior. For example, electronic identication transponders
(EIDs) (Curto et al., 2007) and video cameras (Pereira et al.,
2001). In particular, video cameras are advantageous because they
allow thorough assessment of animal behavioral expressions
(Pereira, 2005; Mara et al., 2004; Sevegnani et al., 2005). Further,
video cameras can potentially generate more reliable data owing to
its non-invasive nature during data collection.
An alternative to improve behavioral analysis relies on the
development of a computer vision system to automatically recog-
nize body shapes assumed by the birds when expressing different
behaviors from recorded videos (Sergeant et al., 1998). Computer
vision has been widely used in various processes of different ani-
mal production systems. It includes the automation of milking sys-
tems for dairy (Rossing and Hogewerf, 1997), robotic systems for
beef cattle management (Frost et al., 2000), and to estimate body
mass of pigs (Minagawa and Iechikawa, 1992). Broiler breeder
0168-1699/$ - see front matter 2013 Elsevier B.V. All rights reserved.
http://dx.doi.org/10.1016/j.compag.2013.09.012
1 b
2
1
The deduction of the inverse of r and b in the previous relation-
ship allows the subtraction of shapes such as bedding (which al-
ready shows saturation higher than intensity) from high values.
It also allows the subtraction of low values from lighter regions
(which show low saturation and high intensity). Therefore, apply-
ing Eq. (1)yields positive values for lighter regions (possible chick-
ens) and negative values for the remainder regions.
Fourth step: A binary-like image was obtained with positive pix-
els (possible chickens) converted to 1, and the remainder negative
pixels converted to 0.
Fifth step: The last step was characterized by purging the
lighter regions that did not represent chickens and that had small
area, by using the erosion-dilation technique (Predirni and Sch-
wartz, 2008). During the erosion-dilation process, a structuring
element was dened and acted on the contours of regions with
pixels equal to 1. First, the contour was eroded by the size of the
structuring element. Then, the same contour was dilated to the size
of the structuring element. This technique is efcient to eliminate
contour imperfections and regions that are not of interest (smaller
than the structuring element).
2.3.2. Image analysis
Image analysis is a process that falls between image processing
and computer vision, aiding the identication of the shapes of the
objects in study. Once images were processed as described previ-
ously, the following measurements of the regions corresponding
to chickens were extracted: Area (A) calculated by summing pixels
within a contour which constitutes a chicken; Perimeter (P)
calculated by summing pixels that were different from 1 which
constitute the contour; and, the Maximum (Dmax) and the Mini-
mum (Dmin) are the distances between the center of mass and
the perimeter. Fig. 1 shows the position of each of the measure-
ments extracted from lighter regions (chickens).
The shape coefcients were then calculated by entering the
parameters extracted from the images into Eqs. (2)(4). The ap-
proach is somehow different than the usual approach since it uses
the maximum and minimum distance from the center of mass to
the image perimeter.
CC
P
2
4 p A
2
CCm ax
p Dm
ax
2
A
3
CCmin
p Dmin
2
A
4
From the variables recorded in each frame, we computed the
rates of variation of individual and combined variables, including
distance and velocity variables used to describe movements. Once
measurements were extracted from image samples, shape coef-
cients were calculated and measurements related to the analysis
of sequence of frames were obtained (Table 2).
2.4. Constructing and validating a behavioral classication tree
The parameters obtained with image analysis comprised a
supervised dataset, where each set of measurements was associ-
ated to a class (behavior). The dataset was generated from the vi-
deo analysis described in the introduction of Section 2. Each
registry was formed with the values of the variables described in
Table 1. These values were calculated for each sequence of frames
determined for each behavior. Trends in the data were investigated
by means of data mining techniques in order to create a classica-
tion tree. For that, the model J48 of supervised classication was
used in Software Weka