Accepted Manuscript: 10.1016/j.livsci.2018.06.008

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 23

Accepted Manuscript

Agreement between passive infrared detector measurements and


human observations of animal activity

R. Besteiro , M.R. Rodrı́guez , M.D. Fernandez , J.A. Ortega ,


R. Velo

PII: S1871-1413(18)30184-7
DOI: 10.1016/j.livsci.2018.06.008
Reference: LIVSCI 3481

To appear in: Livestock Science

Received date: 21 November 2017


Revised date: 15 June 2018
Accepted date: 16 June 2018

Please cite this article as: R. Besteiro , M.R. Rodrı́guez , M.D. Fernandez , J.A. Ortega , R. Velo ,
Agreement between passive infrared detector measurements and human observations of animal ac-
tivity, Livestock Science (2018), doi: 10.1016/j.livsci.2018.06.008

This is a PDF file of an unedited manuscript that has been accepted for publication. As a service
to our customers we are providing this early version of the manuscript. The manuscript will undergo
copyediting, typesetting, and review of the resulting proof before it is published in its final form. Please
note that during the production process errors may be discovered which could affect the content, and
all legal disclaimers that apply to the journal pertain.
ACCEPTED MANUSCRIPT

Highlights

 Passive infrared (PIR) detector has been used to measure animal activity in
piglets

 This measurements were validated by a human observation of the animals

T
Both methods agree in the level of activity detected

IP
 PIR detector slightly overestimates the activity observed by human

CR
 PIR detectors can provide an accurately estimation of the relative animal
activity

US
AN
M
ED
PT
CE
AC

1
ACCEPTED MANUSCRIPT

Agreement between passive infrared detector

measurements and human observations of animal

activity

R. Besteiroa*, M.R. Rodrígueza, M.D. Fernandeza, J.A. Ortegaa, R. Veloa

T
a
Department of Agroforestry Engineering, University of Santiago de Compostela, Campus

IP
Terra, 27002, Lugo, Spain

CR
*corresponding author: roberto.besteiro@rai.usc.es

US
AN
Abstract
M

Passive infrared (PIR) detectors are widely used to measure animal activity, which is an

increasingly relevant variable for livestock production insofar as activity is an indicator of


ED

animal welfare. This paper evaluates the agreement between two animal activity measurement
PT

methods: a PIR detector that uses the sensor’s digital signal to perform measurements and

human observations of activity in a group of 50 weaned piglets on a commercial farm. The


CE

location chosen for the sensor allowed for the recording of the main transverse movements with

respect to the orientation of the sensor, which maximized its detection capacity. Human
AC

observation revealed two types of behavioral activity, feeding (eating or drinking) and playing.

Based on the characteristics of both measurement methods, the correlations between PIR

detection and human observation of animal activity were strong, with a Spearman’s correlation

coefficient of 0.90 (p < 0.001) and a concordance correlation coefficient of 0.86. PIR detection

overestimated animal activity by 2.59% as compared to human observation, and the precision of

PIR measurements decreased with the increase in the level of activity in the pen. In addition,

2
ACCEPTED MANUSCRIPT

animal weight affected the quality of measurements, which decreased with the increase in the

ratio between kg of live weight and area covered by the sensor. The type of activity affected the

precision of PIR detectors, which better detected playing activities, which are more intense than

feeding activities. It can be concluded that PIR detector measurements of activity in groups of

animals provide a good estimation of the relative activity of the group, which is comparable to

visual estimation of relative activity.

T
IP
Keywords: Animal activity; PIR detector; validation; pig; behavior.

CR
1. Introduction
US
AN
The increasing concern of consumers over the welfare of farm animals raised for food, together

with health and legal issues, led the Council of the European Union to enact directives laying
M

minimum standards for the protection of the main farm species, such as pigs (Council Directive

2008/120/EC) or chickens kept for meat production (Council Directive 2007/43/EC). In this
ED

context, factors such as animal activity and behavior emerge as useful indicators for establishing

a level of animal welfare on livestock farms, and become particularly relevant in intensive
PT

production systems, which restrict some behaviors considered as natural by ethology.


CE

Animal activity has been used as an indicator of animal health status and, consequently, of

animal welfare by Escobar et al. (2007), who have found changes in the behavior of pigs
AC

infected with the porcine reproductive and respiratory syndrome virus (PRRSV). Kristensen and

Cornou (2011) have suggested an automatic monitoring system for the detection of irregular

activity patterns in broiler chicken flocks that may be indicative of welfare problems. In

addition, other behaviors, such as changes in water drinking patterns can reveal signs of

subclinical diseases (Madsen and Kristensen, 2005) or of increased competition in pens

(Andersen et al., 2014). Therefore, measuring animal behavior can play a key role in the early

3
ACCEPTED MANUSCRIPT

detection of illnesses or other welfare problems and, consequently, in the mitigation of

deficiencies in animal welfare and in the improvement of farm production efficiency (Matthews

et al., 2016).

Moreover, the activity level of animals is directly related to air quality inside farms buildings.

For instance, animal activity directly affects heat production (Pedersen et al., 2015), exhaled

CO2 and humidity (Zong et al., 2014), or NH3 emissions in the building (Ngwabie et al., 2011).

T
In this respect, a number of daily activity patterns are available from the literature for various

IP
species, such as pigs (Besteiro et al., 2017; Schauberger et al., 2013; Villagrá et al., 2007),

CR
rabbits (Estellés et al., 2010) or dairy cows (Dohme-Meier et al., 2014). The evidence available

for such relationships points to the need to develop climate control systems based on the

US
animals and their behavior under different building environmental conditions (Youssef et al.,

2015).
AN
Accordingly, predicting animal activity and behavior becomes a key issue in the implementation

of Smart Farming technologies. Yet, the concern for animal behavior is not new to farmers, who
M

have traditionally used animal behavior as the main indicator of the health status of livestock.
ED

Typically, farmers assessed animal activity or behavior by visual inspection of the animals, but

the increase in farm size and in the number of animals per farmer makes visual inspection
PT

economically unviable.
CE

For this reason, in the last few decades many authors have focused on finding new technologies

for measuring animal activity. Among such technologies are accelerometers, which are widely
AC

used to monitor the activity of various animal species (Alvarenga et al., 2016; Johnson and

Shade, 2017; Shahriar et al., 2016), or radio-frequency identification systems, which are used to

detect behavior patterns in livestock species (Brown-Brandl et al., 2013; Gebhardt-Henrich et

al., 2014). Actually, the validity of accelerometer measurements has been assessed by a number

of authors (Oczak et al., 2016; Robert et al., 2009). More recently, some authors have proposed

the use of machine vision systems for measuring activity in groups of animals and predicting

4
ACCEPTED MANUSCRIPT

water intake, among other variables (Kashiha et al., 2013; Matthews et al., 2016; Ott et al.,

2014).

However, the above methods are sometimes too expensive, particularly for measuring activity

in groups or on farms with a modular design, such as weaner farms. Pedersen and Pedersen

(1995) proposed a novel method that used PIR detectors with signal post-processing to measure

animal activity. The proposed method was more limited in terms of behavior detection but it

T
was cheaper for farms and could be more widely implemented. Many authors have further used

IP
this method to measure activity in different livestock species, but particularly in pigs (Besteiro

CR
et al., 2017; Bünger et al., 2015; Lin et al., 2017; Ngwabie et al., 2011; Ni et al., 2017; Nielsen

et al., 2003; Schauberger et al., 2013). Yet, the method has not been validated against other

US
reference methods under real farm conditions. Nevertheless, Pedersen and Pedersen (1995) have

validated their method with heated artificial bodies under laboratory conditions, Nielsen (2003)
AN
has compared PIR measurements of abrupt changes in activity of group housed broilers with

measurements performed using a machine vision system, and Puppe et al. (1999) has validated
M

the method in suckling piglets housed in a 5.3 m2 open field pen covered by 14 PIR detectors.
ED

Therefore, the aims of this paper are: 1) to develop a method that uses the PIR signal of a

commercial sensor and can be easily implemented on farms; 2) to validate measurements by


PT

PIR detectors against human observations of animal activity on a commercial weaner farm.
CE

2. Materials and methods


AC

Animal activity is here defined as the movements made by the animals while they are

performing active behaviors such as walking, feeding or interacting with pen mates. To evaluate

the reliability of animal activity measurements using PIR detectors, a continuous measurement

of animal activity was performed in one pen of a weaner room on a pig farm. Simultaneously,

weaner behavior was recorded by video camera in order to perform a visual assessment of the

5
ACCEPTED MANUSCRIPT

level of activity. Visual estimation was used as a reference method and the data obtained with

both measurement methods were compared to define data quality and agreement.

2.1 Animal and housing

A 3.2 x 3.2 m2 pen that housed 50 pigs weaned at 21 days of age was chosen for measurements.

The piglets, which were Large White x Landrace hybrids, entered the room on February 27,

2017 and exited the room on April 6, 2017. The pen belonged to a room of a commercial pig

T
IP
farm located in Northwest Spain, as described by Besteiro et al. (2017). The pen (Fig. 1),

composed of PVC divider panels 0.7 m in height, had fully slatted floors and a 3.2 x 0.5 m2

CR
heating plate, under a PVC roof placed at a height of 0.7 m. Piglets were fed ad-libitum in a

double humid hopper shared by two pens and water was supplied with a nipple drinker placed

close to the feeder. US


AN
2.2 Passive infrared detector measurements

Any body with a temperature above absolute zero emits infrared radiation, which is directly
M

related to body temperature. Based on this principle, PIR sensors detect body movements within
ED

a specific region based on the changes caused by moving bodies in the amount of radiation

emitted per unit area. Such changes are detected by PIR sensors, which use a sensor with
PT

pyroelectric properties connected with two electrodes and a load between the electrodes to

generate an induced charge that flows through the load like current (Kimura et al., 2012). This
CE

current is further analyzed until a signal that can be identified as motion is obtained.

2.2.1 Data acquisition


AC

Most commercial sensors provide a digital output that indicates the activity detected by the

sensor. However, Pedersen and Pedersen (1995) quantified animal activity by converting the

signal irregular waveform pulses into an analogue signal, not using the final part of the circuit in

the sensor, which yielded a digital signal. Thus, after processing the AC analogue signal by

wave rectification followed by averaging, the signal activity was stored in a conventional data

6
ACCEPTED MANUSCRIPT

logger. Currently, most authors use the analogue output of the sensor, reproducing the original

method or adding slight modifications to signal post processing and analysis (Ngwabie et al.,

2011; Ni et al., 2017; Nielsen et al., 2003).

However, this paper analyzes the time during which the digital signal of the sensor is activated

as the unit of measurement of animal activity, which simplifies the method. The simplification

proposed here considerably reduces the complexity in the use of PIR detectors and improves

T
accessibility for the interested actors.

IP
An OPTEX RX-40QZ sensor with an input voltage of 12 VDC and a normally closed (NC)

CR
relay output was used. The output was activated for 2.5 s when the alarm condition was reached,

i.e. when the sensor detected activity. The alarm condition was reached when the sensor

US
computed 4 triggers in 20 s. Therefore, the method proposed in this paper to quantify animal

activity consisted in computing the time during which the alarm was activated for a period. This
AN
activity time was totaled and stored by a data logger at 10-min intervals (Campbell Scientific

Ltd. CR-10X).
M

Because the data logger admitted an input voltage of only 5 V DC, a normally closed relay was
ED

used to adapt the power of the alarm output to the data logger requirements. The data logger

recorded the PIR detector alarm time with 0.125 s accuracy.


PT

2.2.2 Sensor location


CE

Sensor location is one of the factors that most affects the correct performance of PIR detectors.

In this study, the optimal location of the sensor for measuring the activity of the animals in the
AC

pen was previously determined based on pen size, shape, distribution and equipment, and on the

technical characteristics of the PIR detector. Based on these parameters, the optimal location for

the PIR detector was the angle opposite to the feeder (Fig. 1) at 0.8 m height and 45º orientation

with respect to pen divisions.

7
ACCEPTED MANUSCRIPT

This location was chosen for three main reasons: 1) the maximum surface detection coverage

was 12 x 12 m2 at an angle of 85º, and, therefore, a single sensor left an uncovered angle of only

2.5º at each side of the sensor, which accounted for less than 0.18 m width at the most remote

point; 2) PIR sensors better detect transverse movements with respect to their orientation, and

the main movements during the period with low levels of activity occurred between the heating

plate and the feeder, which was the optimal direction for the sensor; 3) there was a roof over the

T
heating plate that limited the position and height for sensor installation.

IP
2.3. Human observation

CR
A video camera (QVIS® Zeus Lite LX) was placed over the PIR detector for a continuous

recording of the behavior of animals during the whole cycle in such a way that the camera

US
covered the same area as the PIR detector. Human observation (HO) of the recordings was the

reference method for the determination of the level of activity. Observations were made at a rate
AN
of one frame every two minutes, 24 hours a day (Ott et al., 2014; Sommavilla et al., 2011). In

addition, to analyze the effect of animal weight on the quality of PIR detector measurements,
M

two consecutive days at the beginning of the cycle (29 and 30 days of age with an average body
ED

mass of 7.84 kg) and two consecutive days at the second half of the cycle (51 and 52 days of

age with an average body mass of 14.89 kg) were randomly chosen, and 2866 frames were
PT

analyzed (data for 26 minutes of the second day at the beginning of the cycle were lost because

of a failure in electric power supply). To complete this process and in order to reduce human
CE

interpretation errors, authors had set the main activities to register. Then, the observer

designated was trained with a bank of images to homogenize the activity classification
AC

according to the authors interpretation.

The level of activity was determined as the percentage of animals performing a behavioral

activity that could be classified as feeding (eating or drinking) (Debreceni et al., 2014; Villagrá

et al., 2007) or playing (e.g., walking, fighting, playing). The rest of the animals were

8
ACCEPTED MANUSCRIPT

considered to be inactive. Finally, the average percentage at 10-min intervals was calculated in

order to compare the measurements performed with both methods.

2.3. Statistical Analysis

Activity data was analyzed using R statistical language, Rstudio environment (R Core Team,

2016; RStudio. Team, 2016) and their respective statistical packages. For a graphical

representation and interpretation of results, data series were scaled to the [0,1] range. In

T
IP
addition, the Kolmogorov-Smirnov test was used to assess data normality.

CR
To measure the agreement between PIR detector measurements and HO measurements, we first

analyzed the correlations by using Spearman’s rho (ρ). However, measuring the agreement

US
between two variables requires the assessment of both precision and accuracy. For this purpose,

the Concordance Correlation Coefficient (CCC) proposed by Lin (1989) combines both
AN
measures into a single coefficient. The CCC has emerged as one of the best measures of

agreement between two methods of measuring the same continuous variable. The value of this
M

coefficient ranges between 0 and ±1, and perfect agreement is reached when the data fall on a

1:1 line and CCC = 1. One of the most widespread interpretations of this coefficient suggests
ED

that the limit for a sufficiently good strength of agreement is a value of 0.9 (McBride, 2005).

Yet, this value has been arbitrarily chosen and it has been used mainly for chemical analysis
PT

methods.
CE

In this paper, we used the CCC approximated by the U-Statistic method (King and Chinchilli,

2001), available in the R statistical package by Carrasco and Martinez (2015), because of its
AC

increased robustness for non-normal data as compared to the original technique. In addition, the

plot proposed by Bland and Altman (1986) was used for graphical analysis of the differences

between both methods.

3. Results

9
ACCEPTED MANUSCRIPT

A visual comparison of the results obtained by the two analyzed methods provided a general

overview of the behavior of measurements. As shown in Fig. 2, the results obtained by both

methods were very similar, but some differences were found depending on the sampling day.

The Kolmogorov-Smirnov test suggested a non-normal distribution of the measured values,

which could not be normalized using any transformation because of the strong asymmetry in the

distributions. Accordingly, non-parametric techniques were used. The differences shown in Fig.

T
2 were evidenced by the differences among the values of the Spearman’s correlation coefficient

IP
for the four analyzed days (Table 1). High correlation values were obtained for the first two

CR
days (ρ = 0.94), whereas the lowest, yet significant, correlation values (p<0.001), were obtained

for the following days. The value of correlation for the whole dataset was 0.90 (p<0.001).

US
Table 1: Statistical analysis of activity data measured by PIR detector and human observation
during postweaning.
AN
Age (days) ρ CCC
29 0.94* 0.94
30 0.96* 0.89
M

51 0.66* 0.74
52 0.82* 0.74
ED

Weight (kg)
7.84 0.94* 0.91
PT

14.89 0.74* 0.74


Total 0.90* 0.86+
CE

*p < 0.001. + (CI 95%: 0.85; 0.88)

The behavior of CCC values, which considered both the precision and the accuracy of the
AC

measurements, was similar to the behavior suggested by correlation analysis, with a higher

strength of agreement for younger weaners. However, for older weaners, CCC provided a more

similar strength of agreement (0.74) than the ρ coefficient. The CCC value for the whole dataset

was 0.86.

10
ACCEPTED MANUSCRIPT

Figure 3 shows the results of the Bland-Altman plot for the whole set of differences between

PIR detector activity levels and HO activity levels. On average, the PIR method tended to

estimate 2.59% more activity than the HO method (CI 0.95= 1.63% ─ 3.56%). In addition, the

agreement between the methods decreased with the increase in the level of activity, insofar as

differences exceeding the mean ± 2*SD limit occurred with high levels of activity. The

distribution of the differences came considerably near a normal distribution, in spite of being

T
slightly skewed to the left.

IP
The correlations between the animal activity measured with the PIR detector and the types of

CR
activities (feed and other) observed during daytime and at night allowed for the analysis of PIR

detector measurement quality based on those parameters (Table 2). For the whole cycle, the

US
correlations between the PIR detector method and the HO method for each activity showed very

similar values (0.85 and 0.88 for feeding and other activities, respectively). However, for the
AN
ages of 59 and 60 days, the correlation values were lower and the PIR detection of the feeding

activity was poorer than the detection of the playing activity. In addition, the correlations
M

between PIR detector and HO were stronger at night than during daytime (0.88 and 0.78

respectively).
ED

Table 2: Spearman’s correlation (r) between weaner activity measured with PIR detector and
human observation (HO) according to type of activity, level of activity (median HO=0.24), and
PT

daytime (08:00 to 19:00) or nighttime during postweaning.

Age (days)
CE

Activity Total
29 30 51 52
Type Feeding 0.85* 0.92* 0.92* 0.55* 0.68*
Playing 0.88* 0.91* 0.93* 0.71* 0.83*
AC

> 0.24 0.66* 0.63* 0.83* 0.52* 0.60*


Level
< 0.24 0.83* 0.86* 0.84* 0.50* 0.50*
Time Day 0.78* 0.86* 0.85* 0.65* 0.60*
Night 0.88* 0.83* 0.90* 0.54* 0.66*

*p < 0.001.

11
ACCEPTED MANUSCRIPT

The correlation between playing and feeding was strong (ρ = 0.85), but decreased with the

growth of weaners, with values of 0.90-0.86 for days 29 and 30 that decreased to values of 0.80

and 0.77 for days 51 and 52. Total activity showed strong correlations with the playing and

feeding components, with values of 0.95 and 0.94, respectively.

4. Discussion

T
Quantifying animal activity can be essential in the design of new control systems for

IP
postweaning livestock buildings. The activity patterns obtained by using a PIR detector with a

CR
digital signal or by processing the analogue signal are very similar, as suggested by the patterns

determined in previous research (Besteiro et al., 2017). In addition, the animal activity pattern

US
recorded by the digital signal of PIR detectors in groups of animals is similar to the pattern

obtained by human observations (Fig. 2). In this study, significant correlations (p < 0.001) have
AN
been found between both methods for the 4 analyzed days, which is in agreement with the

results obtained for suckling piglets by Puppe et al. (1999), who found significant correlations
M

between human observations and a PIR system. Yet, Puppe et al. (1999) used a considerably
ED

different method that measured the activity of a single animal in open field conditions with

various sensors. Likewise, Langbein et al. (1996) studied the activity of free-ranging mouflons
PT

and found significant correlations between the values obtained by a PIR-based system and the

time spent by the mouflons at a specific location.


CE

The results obtained by Ott et al. (2014) for the comparison of automated video analysis and
AC

human observations of the behavioral activities of pigs showed a correlation value of ρ = 0.92,

which was similar to the value reported in this study. Therefore, both automated video analysis

and PIR detector measurements allow for the estimation of the level of activity in groups of

animals. In this sense, Nielsen (2003) has suggested that PIR detectors are more accurate and

less time-consuming in detecting subtle movements in grouped birds. However, these two

methods should be tested using new video analysis techniques, which would be essential in

12
ACCEPTED MANUSCRIPT

order to compare the current performance and results of both techniques (Nasirahmadi et al.,

2017).

The value obtained in this study for CCC is 0.86 (Table 1), which comes near the value of 0.9

that suggests an almost perfect strength of agreement according to McBride (2005). Yet, this

value has been arbitrarily determined and it has been used mainly in chemical analysis methods

that differ substantially from animal behavior analysis. In our study, the units of measurement

T
used to quantify the same variable are totally different (% active animals against time of

IP
activity), and perfect agreement is not required. For this reason, the value of CCC obtained here

CR
has been considered sufficiently high to suggest substantial agreement between both methods.

Higher values of ρ and CCC were obtained for younger weaners, i.e. for weaners with a lower

US
kg/m2 ratio. This can be due to the larger area occupied by larger weaners, which create a

background with a higher and more homogeneous temperature. These conditions affect the
AN
detection capacity of the sensors (Ni et al., 2017) because the signal of PIR detectors is

proportional to the difference in temperature between the bodies and the background (Pedersen
M

and Pedersen, 1995). Similarly, animal size and density affect the decrease in the quality of
ED

measurements from automated video analysis because automated video analysis is also

dependent on contrast between floor and pig surface (Kashiha et al., 2014).
PT

In contrast, animal size and density did not affect intense activity, which was detected better by
CE

the PIR sensor than by human observation (Fig. 2). The activity of heavier animals was more

easily detected by PIR detectors because the intensity of the signal of PIR detectors was related
AC

to the number of active animals, to longer and more intense movements, and to movements of

larger animals (Ni et al., 2017). However, visual techniques did not consider the weight of the

animals, but only the proportion of animals. Moreover, because the minimum duration of

detected activity was 2.5 s, shorter activities could be overestimated. As a result, the PIR

detector overestimated animal activity by 2.59%, on average, as compared to human

observation (Fig. 3). Also, there are some differences between PIR and HO levels of activity

13
ACCEPTED MANUSCRIPT

when it is supposed almost no activity, according to the HO. It is probably due to the frequency

rate of HO, set in 2 minutes. Therefore, slight activities that occurred between two consecutive

observation, were no detected by HO.

All these parameters affected the measurements of the different activities. For young weaners,

the feeding behavior had the same effect on the measured activity as the playing behavior

(Table 2). At young ages, there was a strong correlation between the observed playing and

T
feeding activities and the activity measured by the PIR detector, i.e. weaners moved mainly to

IP
reach the feeder. In contrast, as weaners grew, the correlation for the playing and feeding

CR
behaviors decreased, and playing involved a more intense activity which was developed nearer

the sensor, which could hide the feeding behaviors. As a result, PIR detector measurements

US
showed a stronger correlation with playing activities. This is in agreement with automated video

analysis, which shows the same drawback when movements do not involve many changes in
AN
image pixels (Ott et al., 2014).

The lower activity levels observed at night have a beneficial effect on PIR detector
M

measurements (CIGR, 2002; Villagrá et al., 2007), insofar as the problems caused by animal
ED

overlapping disappear. In addition, temperatures inside and outside the room are usually lower

at night, such that the difference between body temperature and background temperature is
PT

higher, which involves an increase in the intensity of the signal. At night, the value for the level

of activity was < 0.24 (Table 2), although such value was at some point largely exceeded.
CE

Therefore, the correlations for the two levels of activity analyzed here are consistent with the

correlations for the activity levels recorded at day and at night.


AC

5. Conclusions

Currently, PIR detectors are widely used for quantifying the levels of animal activity, as

revealed by the current literature. In this paper, the performance of a PIR detector that used its

digital signal was assessed against human observation of a group of weaned piglets. We

14
ACCEPTED MANUSCRIPT

conclude that placing PIR detectors at an angle of the pen, transversely with respect to the main

theoretical line of animal movement (feeder – heating plate) allows for precise and accurate

measurement of activity in groups of animals.

The animal activity values obtained suggest substantial agreement between both methods, with

a Concordance Correlation Coefficient of 0.86 and a Spearman’s correlation coefficient of 0.90.

Such values are sufficiently good, considering that the analyzed measurement methods are

T
dissimilar and that the analyzed methods measured relative activity.

IP
Under the installation conditions tested in this study, the PIR detector tends to overestimate the

CR
level of activity by 2.59%, as compared to human observations, and the differences between

both methods increase with the increase in the level of activity. For this reason, night

US
measurements are more precise. Moreover, animal weight affects the measurement capacity of

PIR detectors, which perform better during the first weeks after weaning. Actually, the feeding
AN
activities, which are less intense, lose their influence on PIR detector measurements only when

the weight of weaners increases


M
ED

6. Acknowledgments
PT

The authors are grateful to the regional government Xunta de Galicia for funding this research

through the “Program of consolidation and structuring of competitive research units”


CE

(GPC2014/072).
AC

7. Bibliography

Alvarenga, F.A.P., Borges, I., Palkovič, L., Rodina, J., Oddy, V.H., Dobos, R.C., 2016. Using a

three-axis accelerometer to identify and classify sheep behavior at pasture. Appl. Anim. Behav.

Sci. 181, 91–99. doi:10.1016/j.applanim.2016.08.001

Andersen, H.M.-L., Dybkjær, L., Herskin, M.S., 2014. Growing pigs’ drinking behavior:

15
ACCEPTED MANUSCRIPT

number of visits, duration, water intake and diurnal variation. Animal 8, 1881–1888.

doi:10.1017/S175173111400192X

Besteiro, R., Arango, T., Rodríguez, M.R., Fernández, M.D., Velo, R., 2017. Estimation of

patterns in weaned piglets’ activity using spectral analysis. Biosyst. Eng.

doi:10.1016/j.biosystemseng.2017.06.014

Bland, J.M., Altman, D.G., 1986. Statistical methods for assessing agreement between two

T
IP
methods of clinical measurement. Lancet 327, 307–310. doi:10.1016/S0140-6736(86)90837-8

CR
Brown-Brandl, T.M., Rohrer, G.A., Eigenberg, R.A., 2013. Analysis of feeding behavior of

group housed growing-finishing pigs. Comput. Electron. Agric. 96, 246–252.

doi:10.1016/j.compag.2013.06.002
US
Bünger, B., Schrader, L., Schrade, H., Zacharias, B., 2015. Agonistic behavior, skin lesions and
AN
activity pattern of entire male, female and castrated male finishing pigs. Appl. Anim. Behav.

Sci. 171, 64–68. doi:10.1016/j.applanim.2015.08.024


M

Carrasco, J.L., Martinez, J.P., 2015. cccrm: Concordance Correlation Coefficient for repeated
ED

(and non-repeated) measures. R package version 1.2.1. https://CRAN.R-

project.org/package=cccrm
PT

CIGR, 2002. Heat and moisture production at animal and house levels. CIGR Section II, 4th
CE

Report of Working Group on Climatization of Animal Houses. Research Centre Bygholm,

Horsens, Denmark. www.cigr.org


AC

Debreceni, O., Lehotayová, A., Bučko, O., Petrák, J., 2014. The behavior of the pigs housed in

hot climatic conditions. J. Cent. Eur. Agric. 15, 64–75. doi:10.5513/JCEA01/15.1.1412

Dohme-Meier, F., Kaufmann, L.D., Görs, S., Junghans, P., Metges, C.C., Van Dorland, H.A.,

Bruckmaier, R.M., Münger, A., 2014. Comparison of energy expenditure, eating pattern and

physical activity of grazing and zero-grazing dairy cows at different time points during

lactation. Livest. Sci. 162, 86–96. doi:10.1016/j.livsci.2014.01.006

16
ACCEPTED MANUSCRIPT

Escobar, J., Van Alstine, W.G., Baker, D.H., Johnson, R.W., 2007. Behaviour of pigs with viral

and bacterial pneumonia. Appl. Anim. Behav. Sci. 105, 42–50.

doi:10.1016/j.applanim.2006.06.005

Estellés, F., Rodríguez-Latorre, A.R., Calvet, S., Villagrá, A., Torres, A.G., 2010. Daily carbon

dioxide emission and activity of rabbits during the fattening period. Biosyst. Eng. 106, 338–343.

doi:10.1016/j.biosystemseng.2010.02.011

T
IP
Gebhardt-Henrich, S.G., Toscano, M.J., Fröhlich, E.K.F., 2014. Use of outdoor ranges by laying

hens in different sized flocks. Appl. Anim. Behav. Sci. 155, 74–81.

CR
doi:10.1016/j.applanim.2014.03.010

US
Johnson, J.S., Shade, K.A., 2017. Characterizing body temperature and activity changes at the

onset of estrus in replacement gilts. Livest. Sci. 199, 22–24. doi:10.1016/j.livsci.2017.03.004


AN
Kashiha, M.A., Bahr, C., Ott, S., Moons, C.P.H., Niewold, T.A., Tuyttens, F., Berckmans, D.,

2014. Automatic monitoring of pig locomotion using image analysis. Livest. Sci. 159, 141–148.
M

doi:10.1016/j.livsci.2013.11.007
ED

Kashiha, M., Bahr, C., Haredasht, S.A., Ott, S., Moons, C.P.H., Niewold, T. a., Ödberg, F.O.,

Berckmans, D., 2013. The automatic monitoring of pigs water use by cameras. Comput.
PT

Electron. Agric. 90, 164–169. doi:10.1016/j.compag.2012.09.015


CE

Kimura, N., Masai, S., Nakanosai, Y., 2012. Patent No.: US 8,309,927 B2. Infrared detector.

doi:10.1016/j.(73)
AC

King, T.S., Chinchilli, V.M., 2001. A generalized concordance correlation coefficient for

continuous and categorical data. Stat. Med. 20, 2131–2147. doi:10.1002/sim.845

Kristensen, H.H., Cornou, C., 2011. Automatic detection of deviations in activity levels in

groups of broiler chickens - A pilot study. Biosyst. Eng. 109, 369–376.

doi:10.1016/j.biosystemseng.2011.05.002

17
ACCEPTED MANUSCRIPT

Langbein, J., Scheibe, K.M., Eichhorn, K., Lindner, U., Streich, W.J., 1996. An activity-data-

logger for monitoring free-ranging animals. Appl. Anim. Behav. Sci. 48, 115–124.

Lin, L.I.-K., 1989. A concordance correlation coefficient to evaluate reproducibility. Biometrics

45, 255–268. doi:http://www.jstor.org/stable/2532051

Lin, X., Zhang, R., Jiang, S., El-Mashad, H., Xin, H., 2017. Emissions of ammonia, carbon

dioxide and particulate matter from cage-free layer houses in California. Atmos. Environ. 152,

T
IP
246–255. doi:10.1016/j.atmosenv.2016.12.018

CR
Madsen, T.N., Kristensen, A.R., 2005. A model for monitoring the condition of young pigs by

their drinking behavior. Comput. Electron. Agric. 48, 138–154.

doi:10.1016/j.compag.2005.02.014
US
Matthews, S.G., Miller, A.L., Clapp, J., Plötz, T., Kyriazakis, I., 2016. Early detection of health
AN
and welfare compromises through automated detection of behavioral changes in pigs. Vet. J.

217, 43–51. doi:10.1016/j.tvjl.2016.09.005


M

McBride, G., 2005. A proposal for strength-of-agreement criteria for Lin’s Concordance
ED

Correlation Coefficient, NIWA Client Report. doi:10.2307/2532051

Nasirahmadi, A., Edwards, S.A., Sturm, B., 2017. Implementation of machine vision for
PT

detecting behavior of cattle and pigs. Livest. Sci. 202, 25–38. doi:10.1016/j.livsci.2017.05.014
CE

Ngwabie, N.M., Jeppsson, K.H., Gustafsson, G., Nimmermark, S., 2011. Effects of animal

activity and air temperature on methane and ammonia emissions from a naturally ventilated
AC

building for dairy cows. Atmos. Environ. 45, 6760–6768. doi:10.1016/j.atmosenv.2011.08.027

Ni, J.Q., Liu, S., Radcliffe, J.S., Vonderohe, C., 2017. Evaluation and characterisation of

Passive Infrared Detectors to monitor pig activities in an environmental research building.

Biosyst. Eng. 158, 86–94. doi:10.1016/j.biosystemseng.2017.03.014

Nielsen, B.L., 2003. Use of passive infrared detectors (PIDs) to monitor bursts of activity in

18
ACCEPTED MANUSCRIPT

groups of broilers. Arch. fur Geflugelkd. 67, 42–44.

Nielsen, B.L., Litherland, M., Nøddegaard, F., 2003. Effects of qualitative and quantitative feed

restriction on the activity of broiler chickens. Appl. Anim. Behav. Sci. 83, 309–323.

doi:10.1016/S0168-1591(03)00137-0

Oczak, M., Maschat, K., Berckmans, D., Vranken, E., Baumgartner, J., 2016. Can an automated

labelling method based on accelerometer data replace a human labeller? - Postural profile of

T
IP
farrowing sows. Comput. Electron. Agric. 127, 168–175. doi:10.1016/j.compag.2016.06.013

CR
Ott, S., Moons, C.P.H., Kashiha, M.A., Bahr, C., Tuyttens, F.A.M., Berckmans, D., Niewold,

T.A., 2014. Automated video analysis of pig activity at pen level highly correlates to human

US
observations of behavioral activities. Livest. Sci. 160, 132–137.

doi:10.1016/j.livsci.2013.12.011
AN
Pedersen, S., Jørgensen, H., Theil, P.K., 2015. Influence of diurnal variation in animal activity

and digestion on animal heat production. Agric. Eng. Int. CIGR J. Special is, 18–29.
M

Pedersen, S., Pedersen, C.B., 1995. Animal activity measured by infrared detectors. J. Agric.
ED

Eng. Res. 61, 239–246.

Puppe, B., Schön, P.C., Wendland, K., 1999. Monitoring of piglets’ open field activity and
PT

choice behavior during the replay of maternal vocalization: a comparison between Observer and
CE

PID technique. Lab. Anim. 33, 215–20. doi:10.1258/002367799780578110

R Core Team, 2016. R: A language and environment for statistical computing. R Foundation for
AC

Statistical Computing, Vienna, Austria. https://www.R-project.org/.

Robert, B., White, B.J., Renter, D.G., Larson, R.L., 2009. Evaluation of three-dimensional

accelerometers to monitor and classify behavior patterns in cattle. Comput. Electron. Agric. 67,

80–84. doi:10.1016/j.compag.2009.03.002

RStudio Team, 2016. RStudio: Integrated Development for R. RStudio, Inc., Boston, MA.

19
ACCEPTED MANUSCRIPT

http://www.rstudio.com/.

Schauberger, G., Lim, T.T., Ni, J.Q., Bundy, D.S., Haymore, B.L., Diehl, C.A., Duggirala,

R.K., Heber, A.J., 2013. Empirical model of odor emission from deep-pit swine finishing barns

to derive a standardized odor emission factor. Atmos. Environ. 66, 84–90.

doi:10.1016/j.atmosenv.2012.05.046

Shahriar, M.S., Smith, D., Rahman, A., Freeman, M., Hills, J., Rawnsley, R., Henry, D.,

T
IP
Bishop-Hurley, G., 2016. Detecting heat events in dairy cows using accelerometers and

unsupervised learning. Comput. Electron. Agric. 128, 20–26.

CR
doi:10.1016/j.compag.2016.08.009

US
Sommavilla, R., Hötzel, M.J., Dalla Costa, O.A., 2011. Piglets’ weaning behavioral response is

influenced by quality of human–animal interactions during suckling. Animal 5, 1426–1431.


AN
doi:10.1017/S1751731111000358

Villagrá, A., Althaus, R.L., Lainez, M., Martínez, A.B., Torres, A.G., 2007. Modelling of daily
M

rhythms of behavioral patterns in growing pigs on two commercial farms. Biol. Rhythm Res.
ED

38, 347–354. doi:10.1080/09291010600950131

Youssef, A., Exadaktylos, V., Berckmans, D.A., 2015. Towards real-time control of chicken
PT

activity in a ventilated chamber. Biosyst. Eng. 135, 31–43.

doi:10.1016/j.biosystemseng.2015.04.003
CE

Zong, C., Zhang, G., Feng, Y., Ni, J.Q., 2014. Carbon dioxide production from a fattening pig
AC

building with partial pit ventilation system. Biosyst. Eng. 126, 56–68.

doi:10.1016/j.biosystemseng.2014.07.011

20
ACCEPTED MANUSCRIPT

Figure captions

T
IP
CR
US
Fig. 1: General plan view of the room and detail of the pen where animal activity was measured.
a) PIR and Video Camera, b) feeder, c) drinker, d) cover, e) heating plate.
AN
M
ED
PT
CE
AC

Fig. 2: Animal activity quantified in weaners during postweaning at a) 29 days, b) 30 days, c)


51 days and d) 52 days of age using PIR detector (──) and human observation (– – ).

21
ACCEPTED MANUSCRIPT

T
IP
CR
US
Fig. 3: Bland-Altman plot for the differences in measurements of weaner activity between PIR
AN
detector and human observation (HO).
M
ED
PT
CE
AC

22

You might also like