Next Article in Journal
A Police and Insurance Joint Management System Based on High Precision BDS/GPS Positioning
Next Article in Special Issue
Measuring Device for Air Speed in Macroporous Media and Its Application Inside Apple Storage Bins
Previous Article in Journal
A Regression Model for Predicting Shape Deformation after Breast Conserving Surgery
Previous Article in Special Issue
Synergy Effect of Combining Fluorescence and Mid Infrared Fiber Spectroscopy for Kidney Tumor Diagnostics
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Using Acceleration Data to Automatically Detect the Onset of Farrowing in Sows

1
Livestock Systems Group, Department of Animal Science, Georg-August University, Albrecht-Thaer Weg 3, 37075 Göttingen, Germany
2
Institute of Animal Breeding and Husbandry, Christian-Albrechts-University, Olshausenstr, 40, 24098 Kiel, Germany
3
MKW Electronics GmbH, Jutogasse 3, 4675 Weibern, Austria
4
Chamber of Agriculture Schleswig-Holstein, 24327 Blekendorf, Germany
*
Author to whom correspondence should be addressed.
Sensors 2018, 18(1), 170; https://doi.org/10.3390/s18010170
Submission received: 30 November 2017 / Revised: 4 January 2018 / Accepted: 8 January 2018 / Published: 10 January 2018
(This article belongs to the Special Issue State-of-the-Art Sensors Technology in Germany)

Abstract

:
The aim of the present study was to automatically predict the onset of farrowing in crate-confined sows. (1) Background: Automatic tools are appropriate to support animal surveillance under practical farming conditions. (2) Methods: In three batches, sows in one farrowing compartment of the Futterkamp research farm were equipped with an ear sensor to sample acceleration. As a reference video, recordings of the sows were used. A classical CUSUM chart using different acceleration indices of various distribution characteristics with several scenarios were compared. (3) Results: The increase of activity mainly due to nest building behavior before the onset of farrowing could be detected with the sow individual CUSUM chart. The best performance required a statistical distribution characteristic that represented fluctuations in the signal (for example, 1st variation) combined with a transformation of this parameter by cumulating differences in the signal within certain time periods from one day to another. With this transformed signal, farrowing sows could reliably be detected. For 100% or 85% of the sows, an alarm was given within 48 or 12 h before the onset of farrowing. (4) Conclusions: Acceleration measurements in the ear of a sow are suitable for detecting the onset of farrowing in individually housed sows in commercial farrowing crates.

1. Introduction

The course of parturition sets the basis for an optimal start into the suckling period, both for the sow and their piglets. Problems during parturition often result in health disorders or fertility problems and consequently economic losses for the farmer [1]. Continuous animal surveillance before and during farrowing allows rapid and early human attendance to the sow and their piglets if necessary. Under practical farming conditions continuous animal surveillance is unrealistic and not feasible as it requires high personal effort and is too costly. Automatic monitoring systems are a beneficial management tool to address this issue. Associated alarm systems to predict the onset of farrowing enable targeted work assignments for human resources. Monitoring systems are mainly based on changes in social as well as activity behavior of animals before the onset of farrowing. In several studies an obvious increase in sows’ activity during the last 24 h before farrowing is demonstrated (for example, [2,3,4,5]). Increased activity is mainly due to nest building behavior [6,7]. The means of predicting the onset of farrowing activity was examined in several studies using photocell systems [2,4,8], force sensors [2], or acceleration sensors combined with different analysis algorithms such as dynamic generalized linear models, CUSUM charts, and hidden Markov models [5,9]. In the preceding literature, the specific task of determining the onset of farrowing from acceleration data was formulated in the framework of hidden state space models. This was done either through specifying a hidden Markov model or a dynamic linear model (DLM) [9,10]. Generally, the DLM aims to produce a smoothed approximation of the observables, that is, the observed data. This is implemented by having a stochastic process of unobservable, latent variables or hidden states drive the output of a linear filter so as to produce the smoothed observable process as prescribed by the Kalman equations [11]. The fit is successively calculated using a transition matrix to guide the evolution of the hidden process itself and a design matrix to draw the next predicted value of the smoothed data. The design matrix enables a representation of the smoothed data as a superposition of components. In Manteuffel et al. [12], a seasonal and a trend component were specified, while Pastell et al. [11] used a split into seasonal, slope and trend components. The trend components were then further used to produce a farrowing alarm under the application of CUSUM charts.
The aim of the present study was to predict the onset of farrowing measuring sows’ activity using acceleration measurements from ear sensors. A simple and yet possibly more robust approach is presented. The method uses a cancellation approach on discretized feature sequences, where 24 h offset differences were cumulated to produce a CUSUM-tractable trend without having to rely on a parametric fitting procedure.

2. Materials and Methods

The onset of farrowing was to be predicted by monitoring sows’ activity behavior using acceleration measurements. As references, video recordings were used to determine the onset of farrowing. To implement an early warning system for the onset of farrowing, a classical CUSUM chart using different parameters based on the sensors’ acceleration measurements was set up.

2.1. Animals and Housing

Data was acquired in three batches in one compartment of the farrowing unit at the Futterkamp research farm of the Chamber of Agriculture in Schleswig-Holstein, Germany, from December 2013 to March 2014. Sows were housed in commercial farrowing pens (2 m × 2.6 m) with farrowing crates. Sows received a commercial lactating meal (13.4 MJ of ME per kg feed). Seven days before the expected date of farrowing, sows were washed and moved into the farrowing pen. Animal surveillance was conducted regularly between 5 a.m. and 9 p.m. One day before the expected date of farrowing, piglet resting areas were heated with a heat lamp and floor heating. Farrowing was induced starting at Gestation Day 115. All sows were videotaped with color cameras (Santec, VTC-249/IRP/W or VTC-279IRPWD) 24 h a day from being housed until two days after farrowing. For analysis purposes, data of 20 cross-bred sows with parities ranging between 1 and 11 with an average of 4.4 were available.

2.2. Sensor Systems

The sensor system, provided by MKW Electronics GmbH based in Weibern (Austria), consisted of the ear tags, wall mountable receivers, and computing infrastructure for synchronizing and integrating the received data. An ear tag (Figure 1a,b) had a weight of about 35 g and incorporated a 3-D accelerometer measuring or sampling acceleration values along the three internal axes (x, y, and z). The ear tags sent each of the three measurements (that is, xt, yt, zt) at time t, actively, autonomously, and unidirectionally to any of the four installed receivers. The predefined sampling rate of 1 Hz for the present data set resulted from limitations in battery life. Higher sampling rates (5 or 10 Hz) reduced battery life enormously, while sampling rates lower than 1 Hz reduced analysis accuracy. Further information on the sensor system can be found in [13].

2.3. Acceleration Transformation Procedure

On average, 74,619 of 86,400 possible acceleration measurements per day and sow were stored. The time-series s of total acceleration was calculated from the xt, yt, and zt triples of acceleration at time t as follows:
s t = x t 2 + y t 2 + z t 2 .
Various distributions (properties/features) of the acceleration were determined for windows w of length 60, 30, and 10 min as observed through the measurements: mean, standard deviation, variance, skewness, kurtosis, median, 25th percentile, 75th percentile, and p-variation. The variation was calculated for the 1st, 2nd, and 3rd order (p):
v a r i a t i o n p ( s ( w t ) ) = i = 1 # o b s p w r | s i + 1 s i | p
where p = 1 , 2 , 3 , and #obspwr is the number of observations in window w t around time t.
An example of the variance of the acceleration signal for one sow can be found in Figure 2d. The circadian rhythm and the increase before the onset of farrowing (Hour 0), which is still higher than the maximum of the days before, are clearly visible. The same can be seen for the distribution characteristics standard deviation, and the 1st, 2nd, and 3rd variation (for example, Figure 2e,f). All other characteristics showed no regular pattern over time (examples of mean and maximum are given in Figure 2a,b) and were excluded from further analysis.
A smooth series with a clearly defined expectation, with low noise and random variation, is beneficial for obtaining good results of a control chart. Two further transform steps were applied to the distribution sequences. To smooth the signal, multiple acceleration indices were calculated for each of the distribution characteristics variation, standard deviation, and 1st, 2nd, and 3rd variation. To avoid false positive alarms indicating the circadian rhythm, the difference and quotient of the average acceleration characteristic within one time period between consecutive days were calculated:
Diff: the difference between the average of the acceleration characteristic of a specific time interval t at day d and the moving average of the same time interval t the day before d − 1, where the moving average was calculated for ±1, 3, and 5 time intervals for the 60 min period, ±1, 3, 5, and 9 time intervals for the 30 min periods, and ±1, 5, 9, 13, 19, and 25 time intervals for the 10 min periods; for example, a 60 min period difference between the acceleration characteristic of the period from 6 to 8 a.m. and (a) ±1: the average of the period from 5 to 7 a.m., (b) ±3: the average of the period from 3 to 10 a.m., and (c) ±5: the average of the period from 1 to 12 a.m.
Quot: the quotient of the average of the acceleration characteristic of a specific time interval t at day d and the moving average of the same time interval t the day before d − 1, where the moving average was calculated for ±1, 3, and 5 time intervals for the 60 min periods, ±1, 3, 5, and 9 time intervals for the 30 min periods, and ±1, 5, 9, 13, 19, and 25 time intervals for the 10 min periods.
Over: an extension of Quot (time intervals chosen analogously) with consideration of time overlaps between hours to take shifts of activity within short time intervals into account, calculated as a quotient of the average of the acceleration characteristic of a specific time interval t at day d with a certain time overlap and the moving average of the same time interval t with overlap the day before d − 1, where the moving average was calculated for the intervals described above with a 10 min overlap for the time period of 60 min, a 5 min overlap for the time period of 30 min, and a 2 min overlap for the time period of 10 min; for example, a 60 min period ratio between the acceleration characteristic of the time period from 6 to 7 a.m. was calculated between the time period from 5:50 to 6:10 a.m. and (a) ±1: the average of the period from 4:50 to 8:10 a.m., (b) ±3: the average of the period from 2:50 to 10:10 a.m., and (c) ±5: the average of the period from 0:50 a.m. to 12:10 p.m.
An example for each of the indices is shown in Figure 3a–c. The index Diff is centered on zero and corrects for the individual activity level of the sow. The ratio Quot is a much smoother index and has only positive values. In Over, the high peaks are eliminated but the increase before the onset of farrowing stands out.
However, the resulting acceleration indices still showed substantial variation. The indices series should obey a cancellation property whenever days are similar to each other (as would be the case when a sow exhibits a similar behavior at about the same time on each day). Cumulative sums were tested for a further smoothing of the acceleration signal:
CumDi: for time interval t at Day d calculated as the cumulative sum of Diff up to time interval t at day d.
CumQ: quotient of the average of the acceleration characteristic of a specific time interval t at day d and the moving average of the cumulative sum up to the same time interval t the day before d − 1.
CumAv: for time interval t at day d calculated as cumulative sum of difference between the average of the acceleration characteristic of a specific time interval t at Day d and the average over the last 24, 48, or 144 time intervals depending on the time period of 60, 30, or 10 min.
Figure 3d–f shows examples for the cumulative sum acceleration indices. The index CumDi still shows much variation. For this exemplarily sow, particularly at the days after being housed, high variation can be found. The signal of the index CumQ is much smoother. The index increases over time, and it increases enormously just before the onset of farrowing. In the last index presented (CumAv), the circadian rhythm is not eliminated. However, the index ranges on a much smaller level than it did before the onset of farrowing.
In Figure 4, the different time periods (10, 30, and 60 min) are compared using the original values and the acceleration index CumDi of the distribution characteristic 1st p-variation. The longer the time period the smaller the changes of the original values are (Figure 4a–c). However, maximum peaks and the increase before farrowing can be found for all time periods. The acceleration index CumDi (Figure 4d–f) shows a similar course for the 10 and 30 min periods, although the 10 min period has some smaller changes. For the acceleration index for 60 min, the day-to-day variation is higher and the increase before the onset of farrowing starts later.
In Figure 5, the influence of the different ranges of the moving average in the acceleration indices are shown exemplarily for the indices Diff and CumDi of the distribution characteristic variance for the 60 min period. Increasing the range of the moving average from the ±1 time interval to ±5 time intervals resulted in more fluctuations in the course of both indices.

2.4. CUSUM Control Charts

General Aspects: To predict the onset of farrowing, defined as the birth of the first piglet, a CUSUM (CUmulative SUM) control chart [14] was applied. In general, control charts deliver an alarm if a monitored process or trait deviates from a predefined target value, that is, the process is out of control. In CUSUM control charts, positive and negative deviations are summed up (cumulative sum) separately. In the present study, the acceleration indices per time interval are monitored using a one-sided CUSUM chart only for positive deviations. The cumulative sum (C+) for the acceleration index (X) at time point i is calculated according to the following formula:
C i + = max [ 0 ,   X i ( μ 0 + k ) + C i 1 + ] .
With μ 0 indicating the sow individual average acceleration, k the allowance value, and C i 1 + the cumulative sum at the preceding time point. If the cumulative sum exceeds the control limit (CL), an alarm is given. The control limit is calculated as the product of the sow individual standard deviation of the acceleration index and a smoothing value (h).
Parameterization: For the control chart, data of 24 sows could be used. The time period from housing-in into the farrowing pen to the calculated day of farrowing is divided into a parameterization period and a prediction period. Days −5 and −4 before the calculated farrowing date were defined as the parameterization period. Acceleration measurements within this period were used to parameterize the control chart in three different scenarios: data from (1) Day −4, (2) Days −4 and −5, (3) Days −5. Within the prediction period (Days −3 until Day 0), alarms for the onset of farrowing are expected.
Evaluation: For evaluation purposes of the CUSUM control chart, the point in time of an alarm was measured relative to the real onset of farrowing for each sow (date and time in hours and minutes) and was defined by birth of the first piglet. The point in time of the birth of the first piglet was determined manually using video recordings. Note that the calculated day was not taken into account for the evaluation. The first exceedance of the upper control limit by the CUSUM chart was considered as an alarm. Different values for the parameter k and h were compared: allowance value k: 0.1, 0.25, 0.5, 1, 1.5, …, 12.5, 15, 20, 25, 30, and smoothing value h: 4, …, 10.
In summary, the following influence factors on the performance of the CUSUM chart were evaluated:
  • Distribution characteristic: standard deviation, variance, and variation of 1st, 2nd, and 3rd order.
  • Acceleration index: Orig, Diff, Quot, Over, CumDi, CumQ, CumAv.
  • Time period: 10, 30, 60 min.
  • Interval of moving average, depending on time period (10 min: 1, 5, 9, 13, 19, and 25; 30 min: 1, 3, 5, and 9; 60 min: 1, 3, and 5).
  • Allowance value k: 0.1, 0.25, 0.5, 1, 1.5, … 12.5, 15, 20, 25, and 30.
  • Smoothing value h: 4, …, 10.
  • Parameterization period (Day −4, Day −5, and Days −4 and −5).

3. Results

In general, the time and the parameterization period, different ranges of the moving average interval, and the distribution characteristic revealed only small changes in the performance of the CUSUM chart. The detection rate of the onset of farrowing depended mostly on k and h values as well as the type of acceleration index.
Table 1 shows the maximal detection rate for the onset of farrowing within 12 or 48 h before the onset of farrowing per distribution characteristic, acceleration index, and time period. Summarizing all scenarios, 45–84.2% of the sows could be detected within 12 h before the onset of farrowing and 68.4% up to 100% within 48 h. Best results, both for the detection rate 12 and 48 h before the onset of farrowing, were found for the acceleration characteristic CumDi of the distribution characteristic 1st variation and the time period of 60 min, where 84.2% or 100% of the sows were detected. Comparing all indices and distribution parameters, most sows were detected with the time window of 60 min. The lowest detection rates were observed for the original signal, while the indices including a cumulative sum performed better. In detail, the acceleration index Diff led to better results than Quot, and CumDi led to better results than CumQ. Differences between Over and Quot were small, and no obvious trend could be found.
The influence of the different ranges of the moving average interval in calculating the acceleration indices and of the parametrization period on the maximal detection rate is shown in Table 2.
The distribution characteristic 1st variation and the 10 min period was chosen, as for this time period the largest number of ranges for the moving average (1, 5, 9, 13, 19, and 25) were present. Increasing the range of the moving average (from 1 to 25) increased the detection rate by 5.6–26.4%, except for CumDi for which the detection rate for the parametrization period of Days −4 or −5 was almost constant (0–5.5%) and for Days −4 and −5 even decreases (−5.6%). However, as mentioned before the acceleration index, CumDi showed the best performance, with a detection rate of almost 80%. Differences between parametrization periods were only small, but if differences were present, the highest detection rates were found for the CUSUM chart parametrized with data of Day −4.
Figure 6 shows the cumulative detection rate for the acceleration characteristic CumDi of the distribution characteristic 1st variation and the time period of 10 and 60 min depending on different k values. Choosing a k value of 1 could detect all sows up to the onset of farrowing, but only 10.5% of them within 12 h before the onset of farrowing. With an increase in the k value, the percentage of sows found within 12 h before the onset of farrowing increased. However, at the same time, the total number of sows detected decreased. For example, using the 10 min time period, with a k value of 30, all alarms were given within the 12 h window, but only 47.4% of the sows were detected. In this example, if a k value of 15 was used, 84.2% of the sows were detected, only one of which was outside the 12 h window before the onset of farrowing.
Variability between CUSUM charts of different sows is shown in Figure 7. Exemplarily for two sows, CUSUM charts with h = 4 and different k values for the distribution characteristic 1st variation of the acceleration index CumDi with the time interval of 60 min were plotted. Different h values are not shown, as results were very similar. For both sows, findings of Figure 6 could be confirmed. If the k value increased, the control limit of the alarm was given later (exceeding upper control limit), that is, closer to the onset of farrowing. However, Figure 6 shows a large difference between the sows in the exact time points. Choosing a k value of 5 resulted in an alarm six or three hours before the onset of farrowing for Sow A and B, respectively. Sow behavior was individual.

4. Discussion

Best performance of the algorithms required a statistical distribution characteristic that represented fluctuations in the signal (for example, 1st variation) combined with a transformation of this parameter by cumulating differences in the signal within certain time periods from one day to another. Results indicated that this transformation procedure mainly improved the detection rate of the CUSUM chart. The length of the time period (10, 30, and 60 min) was of minor importance. Smaller periods reflected more details in the signal, but this was not beneficial for the detection algorithm. To reduce the calculation effort for practical implementations, a 60 min period could be recommended. Calculating a difference between days was superior to a quotient, that is, the level of the activity had a smaller influence on the result than the absolute difference. Of great importance was the accumulation element in the transformation algorithm. If differences between days increased, the cumulative sum of the differences increased even more and a single difference reduced the cumulative sum only slightly. The enormous increase in activity of a sow before the onset of farrowing led to a fast increase of the acceleration index CumDi, as large differences to the day before could be measured with the acceleration data. The increase in activity was mainly a result of performing nest-building behavior [6,7]. Compared to loose-housed sows, crate-confined sows perform activities considered as ‘re-directed’ nest building behavior, such as pawing, rooting, or mouthing the crate fixtures [15,16,17]. In the literature, different points in time are described for the beginning of nest-building behavior, but mainly the last 24 h before farrowing are named [2,3,4,5]. This variation in individual behavior can be confirmed with the present data. However, with an optimally calibrated CUSUM chart, the corresponding alarm could be shifted closer to the onset of farrowing.
Data of Days −4 and −5 before the calculated day of farrowing were used for parametrization of the CUSUM chart, as the prediction period started from Day −3. This relatively long prediction period was necessary as 10 sows started farrowing before the calculated date, one even exactly on Day −3. However, the CUSUM chart was able to give an alarm for this sow. The different scenarios for the parametrization period (Day −4, Day −5, or an average of Day −4 and −5) had little influence on the detection rate. In consequence, for practical implementations, a lag of one day before the prediction period would be sufficient. Longer periods are not necessary. Nevertheless, if data from Day −4 are missing, data from Day −5 could be used and would deliver acceptable results as well.
Calibration parameters for the CUSUM charts were the k and h values. The different scenarios clearly showed that all sows could be detected within 48 h before the onset of farrowing. With a fine tuning of the k and h values, the point in time of the alarm could be influenced within a certain range. The closer the first alarm was shifted to the onset of farrowing, the fewer sows were detected in total. Fine adjustments also showed sow individual differences in the optimal k value if the alarm should be given to a certain point in time. Nevertheless, the overall detection rate was not affected.
As farrowing was induced for all sows, the data set was suitable as a proof of concept for the presented algorithm. For the evaluation of sensitivity and specificity, a larger data set, probably without inducing farrowing, should be used. For practical purposes on the present farm, the time period within 6–12 h before the onset of farrowing was most interesting. An alarm within that time window offered the opportunity for targeted attendance to the sow by stockpersons. Surveillance intervals could be shortened, and the pen could be prepared for an optimal start of the birthing (for example, activating a heating source). A useful alarm should be given within 12 h before the onset of farrowing. However, the alarm time window can be adjusted to farmer’s purposes. A warning system with two alarms was also possible: a first relatively early alarm (six to eight hours before the onset) so that stockpersons could be prepared, and a second alarm very close to the beginning (one to two hours before the onset).

5. Conclusions

In conclusion, acceleration measurements at the sows’ ears need to be transformed before being processed in a CUSUM control chart. With the transformed signal, sows could be reliably detected, and fine tuning the alarm could be adjusted for stockpersons’ purposes. However, future studies should focus more on individual differences between sows, as the relatively small number of sows in the present study was not sufficient to determine a systematic influence.

Acknowledgments

We gratefully aknowledge funding by the Deutsche Forschungsgemeinschaft (DFG: KR 2024/7-1).

Author Contributions

Joachim Krieter and Onno Burfeind conceived and designed the experiments; Imke Traulsen performed the experiments; Imke Traulsen and Christoph Scheel analyzed the data; Wolfgang Auer contributed materials and analysis tools; Imke Traulsen and Christoph Scheel wrote the paper.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Oliviero, C.; Kothe, S.; Heinonen, M.; Valros, A.; Peltoniemi, O. Prolonged duration of farrowing is associated with subsequent decreased fertility in sows. Theriogenology 2013, 79, 1095–1099. [Google Scholar] [CrossRef] [PubMed]
  2. Oliviero, C.; Pastell, M.; Heinonen, M.; Heikkonen, J.; Valros, A.; Ahokas, J.; Vainio, O.; Peltoniemi, O.A.T. Using movement sensors to detect the onset of farrowing. Biosyst. Eng. 2008, 100, 281–285. [Google Scholar] [CrossRef]
  3. Cornou, C.; Lundbye-Christensen, S.; Kristensen, A.R. Modelling and monitoring sows’ activity types in farrowing house using acceleration data. Comput. Electron. Agric. 2011, 76, 316–324. [Google Scholar] [CrossRef]
  4. Erez, B.; Hartsock, T.G. A microcomputer-photocell system to monitor periparturient activity of sows and transfer data to a remote location. J. Anim. Sci. 1990, 68, 88–94. [Google Scholar] [CrossRef] [PubMed]
  5. Pastell, M.; Hietaoja, J.; Tiusanen, J.; Yunm, J.; Valros, A. A model to detect farrowing based on sow activity. In Proceedings of the International Conference of Agricultural Engineering (AgEng 2014), Zurich, Switland, 6–10 July 2014. [Google Scholar] [CrossRef]
  6. Haskell, M.J.; Hutson, G.D. The pre-farrowing behaviour of sows with access to straw and space for locomotion. Appl. Anim. Behav. Sci. 1996, 49, 375–387. [Google Scholar] [CrossRef]
  7. Illmann, G.; Chaloupková, H.; Neuhauserová, K. Effect of pre- and post-partum sow activity on maternal behaviour and piglet weight gain 24 h after birth. Appl. Anim. Behav. Sci. 2015, 163, 80–88. [Google Scholar] [CrossRef]
  8. Mainau, E.; Dalmau, A.; Ruiz-de-la-Torre, J.L.; Manteca, X. Validation of an automatic system to detect position changes in puerperal sows. Appl. Anim. Behav. Sci. 2009, 121, 96–102. [Google Scholar] [CrossRef]
  9. Cornou, C.; Lundbye-Christensen, S. Modeling of sows diurnal activity pattern and detection of parturition using acceleration measurements. Comput. Electron. Agric. 2012, 80, 97–104. [Google Scholar] [CrossRef]
  10. Aparna, U.; Juul Pedersen, L.; Jørgensen, E. Hidden phase-type Markov model for the prediction of onset of farrowing for loose-housed sows. Comput. Electron. Agric. 2014, 108, 135–147. [Google Scholar] [CrossRef]
  11. Pastell, M.; Hietaoja, J.; Yun, J.; Tiusanen, J.; Valros, A. Predicting farrowing of sows housed in crates and pens using accelerometers and cusum charts. Comput. Electron. Agric. 2016, 127, 197–203. [Google Scholar] [CrossRef]
  12. Manteuffel, C.; Hartung, E.; Schmidt, M.; Hoffmann, G.; Schön, P.C. Towards qualitative and quantitative precidtion and detection of parturition onset in sows using light barriers. Comput. Electron. Agric. 2015, 116, 201–210. [Google Scholar] [CrossRef]
  13. Pichler, M.; Rudic, B.; Breitenberger, S.; Auer, W. Robust positioning of livestock in harsh agricultural environments. In Proceedings of the 14th Mechatronics Forum International Conference (Mechatronics 2014), Karlstad, Sweden, 16–18 June 2014; De Vin, L.J., Ed.; Curran: Red Hook, NY, USA, 2014; pp. 527–534. [Google Scholar]
  14. Montgomery, D.C. Statistical Process Control: A Modern Introduction; John Wiley & Sons, Inc.: Hoboken, NJ, USA, 2009. [Google Scholar]
  15. Hartsock, T.G.; Barczewski, R.A. Prepartum behavior in swine: Effects of pen size. J. Anim. Sci. 1997, 75, 2899–2904. [Google Scholar] [CrossRef] [PubMed]
  16. Rushen, J.; Robert, S.; Farmer, C. Evidence of a limited role for prolactin in the preparturient activity of confined gilts. Appl. Anim. Behav. Sci. 2001, 72, 309–319. [Google Scholar] [CrossRef]
  17. Harris, M.J.; Gonyou, H.W. Increasing available space in a farrowing crate does not facilitate postural changes or maternal responses in gilts. Appl. Anim. Behav. Sci. 1998, 59, 285–296. [Google Scholar] [CrossRef]
Figure 1. Sows were equipped with an ear tag (a,b) including an accelerometer. The tag actively sent their information to the receivers (c).
Figure 1. Sows were equipped with an ear tag (a,b) including an accelerometer. The tag actively sent their information to the receivers (c).
Sensors 18 00170 g001
Figure 2. Exemplary distribution characteristics for one sow from Day −4 until onset of farrowing at 2:11 p.m. on Day 0 (corresponds to Hour 0 in the figures) for one sow.
Figure 2. Exemplary distribution characteristics for one sow from Day −4 until onset of farrowing at 2:11 p.m. on Day 0 (corresponds to Hour 0 in the figures) for one sow.
Sensors 18 00170 g002aSensors 18 00170 g002b
Figure 3. Exemplary acceleration indices of one sow based on the distribution characteristic variance for a time period of 60 min and a range of the moving average of 1 for one sow.
Figure 3. Exemplary acceleration indices of one sow based on the distribution characteristic variance for a time period of 60 min and a range of the moving average of 1 for one sow.
Sensors 18 00170 g003aSensors 18 00170 g003b
Figure 4. Time intervals 10, 30, and 60 min exemplary for the original values (Orig: a,b,c) and the acceleration index CumDi (d,e,f) for the distribution parameter 1st variation with a range of the moving average of 1 for one sow.
Figure 4. Time intervals 10, 30, and 60 min exemplary for the original values (Orig: a,b,c) and the acceleration index CumDi (d,e,f) for the distribution parameter 1st variation with a range of the moving average of 1 for one sow.
Sensors 18 00170 g004aSensors 18 00170 g004b
Figure 5. The range (1, 3, 5) for the moving average in acceleration indices Diff (a,b,c) and CumDi for 60 min period (d,e,f) of the distribution characteristic variance for one sow. Note that 0 indicates the onset of farrowing.
Figure 5. The range (1, 3, 5) for the moving average in acceleration indices Diff (a,b,c) and CumDi for 60 min period (d,e,f) of the distribution characteristic variance for one sow. Note that 0 indicates the onset of farrowing.
Sensors 18 00170 g005
Figure 6. Cumulative sum of the number of sows detected within the whole prediction period exemplarily for the 10 and 60 min period. Time window from Hour −6 to Hour −12 is marked.
Figure 6. Cumulative sum of the number of sows detected within the whole prediction period exemplarily for the 10 and 60 min period. Time window from Hour −6 to Hour −12 is marked.
Sensors 18 00170 g006
Figure 7. Influence of the k value on the alarm time (Chart exceeds control limit (CL)) of the CUSUM chart (h = 4) exemplarily for two sows and the acceleration index 1st variation and the distribution characteristic CumDi with the time interval of 60 min and a range of the moving average of 1. Note that, for a better presentation, the CUSUM statistic is transformed on a log scale.
Figure 7. Influence of the k value on the alarm time (Chart exceeds control limit (CL)) of the CUSUM chart (h = 4) exemplarily for two sows and the acceleration index 1st variation and the distribution characteristic CumDi with the time interval of 60 min and a range of the moving average of 1. Note that, for a better presentation, the CUSUM statistic is transformed on a log scale.
Sensors 18 00170 g007
Table 1. Maximal frequency of sows detected (%) for the onset of farrowing within 12 or 48 h before the onset of farrowing (first alarm for each sow) per type of acceleration index (Orig, … CumAv), distribution characteristic (Std, …3rd variation), and time period (10, 30, 60 min) for parameterization period of Day −4 independent of the interval length of the moving average and the k and h values. Bold font indicates the best performance.
Table 1. Maximal frequency of sows detected (%) for the onset of farrowing within 12 or 48 h before the onset of farrowing (first alarm for each sow) per type of acceleration index (Orig, … CumAv), distribution characteristic (Std, …3rd variation), and time period (10, 30, 60 min) for parameterization period of Day −4 independent of the interval length of the moving average and the k and h values. Bold font indicates the best performance.
Index Time PeriodOrigDiffQuotOverCumDiCumQCumAv
N to find20191919191919
Time period12 h48 h12 h48 h12 h48 h12 h48 h12 h48 h12 h48 h12 h48 h
Std6070.090.078.994.763.289.563.289.578.9100.068.494.773.794.7
3065.085.073.789.557.984.257.984.273.7100.063.289.573.794.7
1050.080.063.284.252.678.947.478.973.7100.063.284.273.794.7
Var6070.090.078.994.752.694.757.989.578.9100.073.794.778.9100.0
3060.085.073.789.542.178.952.678.978.9100.063.289.578.994.7
1050.080.057.984.242.178.942.173.778.9100.052.678.978.994.7
1st-var6060.090.078.994.773.794.773.794.784.2100.073.794.773.794.7
3050.085.073.789.568.489.568.489.578.9100.068.489.573.794.7
1045.075.057.984.257.989.557.994.778.9100.063.289.573.794.7
2nd-var6065.090.078.994.757.994.763.294.778.9100.068.494.773.794.7
3055.085.068.489.547.484.247.484.278.9100.052.689.573.794.7
1050.080.057.984.236.878.942.178.978.9100.052.678.973.794.7
3rd-var6060.090.068.494.741.184.236.873.778.994.752.689.578.994.7
3055.085.063.289.526.368.431.678.973.794.747.478.973.794.7
1045.085.057.984.231.668.426.368.473.794.742.173.773.794.7
Table 2. Maximal detection rate (%) for the onset of farrowing within 12 h before the onset of farrowing (first alarm for each sow) per type of acceleration index (Diff, …, CumQ), parameterization period (m4: Day −4, m5: Day −5, m45 = Days −4 and −5), and interval length of the moving average (Intx, x = ±1,5,9,13,19,25) for the distribution characteristic 1st variation and 10 min period independent of the k and h values.
Table 2. Maximal detection rate (%) for the onset of farrowing within 12 h before the onset of farrowing (first alarm for each sow) per type of acceleration index (Diff, …, CumQ), parameterization period (m4: Day −4, m5: Day −5, m45 = Days −4 and −5), and interval length of the moving average (Intx, x = ±1,5,9,13,19,25) for the distribution characteristic 1st variation and 10 min period independent of the k and h values.
Int1Int5Int9Int13Int19Int25
Diffm442.147.452.657.957.957.9
m544.444.455.655.655.655.6
m4544.444.455.655.655.655.6
Quotm436.836.847.457.952.657.9
m538.944.438.944.450.050.0
m4544.444.444.450.050.050.0
Overm431.636.852.652.652.657.9
m544.444.444.444.444.450.0
m4538.944.438.950.050.050.0
CumDim478.978.978.978.978.978.9
m555.655.655.655.661.161.1
m4572.272.272.266.666.666.6
CumQm436.836.842.152.663.263.2
m544.438.944.455.650.055.6
m4538.938.944.450.050.055.6

Share and Cite

MDPI and ACS Style

Traulsen, I.; Scheel, C.; Auer, W.; Burfeind, O.; Krieter, J. Using Acceleration Data to Automatically Detect the Onset of Farrowing in Sows. Sensors 2018, 18, 170. https://doi.org/10.3390/s18010170

AMA Style

Traulsen I, Scheel C, Auer W, Burfeind O, Krieter J. Using Acceleration Data to Automatically Detect the Onset of Farrowing in Sows. Sensors. 2018; 18(1):170. https://doi.org/10.3390/s18010170

Chicago/Turabian Style

Traulsen, Imke, Christoph Scheel, Wolfgang Auer, Onno Burfeind, and Joachim Krieter. 2018. "Using Acceleration Data to Automatically Detect the Onset of Farrowing in Sows" Sensors 18, no. 1: 170. https://doi.org/10.3390/s18010170

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop