Development of an open-source algorithm based on inertial measurement units (IMU) of a smartphone to detect cattle grass intake and ruminating behaviors
Dairy Cattle; Grass Intake; Behaviors; Inertial Measurement Unit; Open Algorithm
Abstract :
[en] In this paper, an open algorithm was developed for the detection of cattle’s grass intake and rumination activities. This was done using the widely available inertial measurement unit (IMU) from a smartphone, which contains an accelerometer, a gyroscope, a magnetometer and location sensors signals sampled at 100 Hz. This equipment was mounted on 19 grazing cows of different breeds and daily video sequences were recorded on pasture of different forage allowances. After visually analyzing the cows’ movements on a calibration database, signal combinations were selected and thresholds were determined based on 1-s time windows, since increasing the time window did not increase the accuracy of detection. The final algorithm uses the average value and standard deviation of two signals in a two-step discrimination tree: the gravitational acceleration on x-axis (Gx) expressing the cows’ head movements and the rotation rate on the same x-axis (Rx) expressing jaw movements. Threshold values encompassing 95% of the normalized calibrated data gave the best results. Validation on an independent database resulted in an average detection accuracy of 92% with a better detection for rumination (95%) than for grass intake (91%). The detection algorithm also allows for characterization of the diurnal feeding activities of cattle at pasture. Any user can make further improvements, for data collected at the same way as the iPhone’s IMU has done, since the algorithm codes are open and provided as supplementary data.
Research Center/Unit :
Gembloux Agro-Bio Tech, Université de Liège
Disciplines :
Animal production & animal husbandry Agriculture & agronomy
Author, co-author :
Andriamandroso, Andriamasinoro ; Université de Liège > Agronomie, Bio-ingénierie et Chimie (AgroBioChem) > Ingénierie des productions animales et nutrition
Lebeau, Frédéric ; Université de Liège > Ingénierie des biosystèmes (Biose) > Biosystems Dynamics and Exchanges
Beckers, Yves ; Université de Liège > Agronomie, Bio-ingénierie et Chimie (AgroBioChem) > Ingénierie des productions animales et nutrition
Froidmont, Eric; Centre Wallon des Recherches Agronomiques (CRA-W) > Productions et secteurs > Unité Nutrition Animale et Durabilité
Dufrasne, Isabelle ; Université de Liège > Département des productions animales (DPA) > Nutrition des animaux domestiques
Heinesch, Bernard ; Université de Liège > Ingénierie des biosystèmes (Biose) > Biosystems Dynamics and Exchanges
Dumortier, Pierre ; Université de Liège > Ingénierie des biosystèmes (Biose) > Biosystems Dynamics and Exchanges
Blanchy, Guillaume; Lancaster University > Lancaster Environment Center > PhD Student, Associate Lecturer
Blaise, Yannick ; Université de Liège > Agronomie, Bio-ingénierie et Chimie (AgroBioChem) > Ingénierie des productions animales et nutrition
Bindelle, Jérôme ; Université de Liège > Agronomie, Bio-ingénierie et Chimie (AgroBioChem) > Ingénierie des productions animales et nutrition
Language :
English
Title :
Development of an open-source algorithm based on inertial measurement units (IMU) of a smartphone to detect cattle grass intake and ruminating behaviors
Ahmad, N., Ghazilla, R.A.R., Khairi, N.M., Kasi, V., Reviews on various inertial measurement unit (IMU) sensor applications. Int. J. Signal Process. Syst., 2013, 256–262, 10.12720/ijsps.1.2.256-262.
Andriamandroso, A., Bindelle, J., Mercatoris, B., Lebeau, F., A review on the use of sensors to monitor cattle jaw movements and behavior when grazing. Biotechnol. Agron. Soc. Environ. 20:2 (2016), 273–286 (SP1).
Benvenutti, M.A., Pavetti, D.R., Poppi, D.P., Gordon, I.J., Cangiano, C.A., Defoliation patterns and their implications for the management of vegetative tropical pastures to control intake and diet quality by cattle. Grass Forage Sci., 2015, 10.1111/gfs.12186.
Berckmans, D., Precision Livestock Farming technologies for welfare management in intensive livestock systems. Rev. Sci. Tech. 33:1 (2014), 189–196 (PubMed PMID: 25000791).
Bikker, J.P., van Laar, H., Rump, P., Doorenbos, J., van Meurs, K., Griffioen, G.M., Dijkstra, J., Technical note: evaluation of an ear-attached movement sensor to record cow feeding behavior and activity. J. Dairy Sci. 97 (2014), 2974–2979, 10.3168/jds.2013-7560.
Clapham, W.M., Fedders, J.M., Beeman, K., Neel, J.P.S., Acoustic monitoring system to quantify ingestive behavior of free-grazing cattle. Comput. Electron. Agric. 76 (2011), 96–104, 10.1016/j.compag.2011.01.009.
Chilibroste, P., Gibb, M.J., Soca, P., Mattiauda, D.A., Behavioural adaptation of grazing dairy cows to changes in feeding management: do they follow a predictable pattern?. Anim. Prod. Sci. 55 (2015), 328–338, 10.1071/AN14484.
De Weerd, N., van Langevelde, F., van Oeveren, H., Nolet, B.A., Kölzsch, A., Prins, H.H.T., de Boer, W.F., Deriving animal behaviour from high-frequency GPS: tracking cows in open and forested habitat. PLoS ONE, 10, 2015, e0129030, 10.1371/journal.pone.0129030.
Dutta, R., Smith, D., Rawnsley, R., Bishop-Hurley, G., Hills, J., Timms, G., Henry, D., Dynamic cattle behavioural classification using supervised ensemble classifiers. Comput. Electron. Agric. 111 (2015), 18–28, 10.1016/j.compag.2014.12.002.
Forin-Wiart, M.-A., Hubert, P., Sirguey, P., Poulle, M.-L., Performance and accuracy of lightweight and low-cost GPS data loggers according to antenna positions, fix intervals, habitats and animal movements. PLoS ONE, 10, 2015, e0129271, 10.1371/journal.pone.0129271.
Gibb, M.J., Animal grazing/intake terminology and definitions. Proceedings of Pasture Ecology and Animal Intake Workshop for Concerted Action AIR3-CT93-0947, 24–25 September 1996, Dublin, Ireland, 1996, 20–35.
Gibb, M.J., Huckle, C.A., Nuthall, R., Effect of time of day on grazing behaviour by lactating dairy cows. Grass Forage Sci. 53 (1998), 41–46, 10.1046/j.1365-2494.1998.00102.x.
Gibb, M.J., Huckle, C.A., Nuthall, R., Rook, A.J., The effect of physiological state (lactating or dry) and sward surface height on grazing behaviour and intake by dairy cows. Appl. Anim. Behav. Sci. 63 (1999), 269–287, 10.1016/S0168-1591(99)00014-3.
Godsk, T., Kjærgaard, M.B., High classification rates for continuous cow activity recognition using low-cost GPS positioning sensors and standard machine learning techniques. Perner, P., (eds.) Advances in Data Mining. Applications and Theoretical Aspects, 2011, Springer-Verlag, Berlin Heidelberg, 174–188, 10.1007/978-3-642-23184-1_14.
González, L.A., Bishop-Hurley, G.J., Handcock, R.N., Crossman, C., Behavioral classification of data from collars containing motion sensors in grazing cattle. Comput. Electron. Agric. 110 (2015), 91–102, 10.1016/j.compag.2014.10.018.
Griffiths, W.M., Hodgson, J., Arnold, G.C., The influence of sward canopy structure on foraging decisions by grazing cattle. I. Patch selection. Grass Forage Sci. 58 (2003), 112–124, 10.1046/j.1365-2494.2003.00360.x.
Hämäläinen, W., Ruuska, S., Kokkonen, T., Orkola, S., Mononen, J., Measuring behaviour accurately with instantaneous sampling: a new tool for selecting appropriate sampling intervals. Appl. Anim. Behav. Sci. 180 (2016), 166–173, 10.1016/j.applanim.2016.04.006.
Hänninen, L., Pastell, M., CowLog: open-source software for coding behaviors from digital video. Behav. Res. Methods 41 (2009), 472–476, 10.3758/BRM.41.2.472.
Kilgour, R.J., In pursuit of “normal”: a review of the behaviour of cattle at pasture. Appl. Anim. Behav. Sci. 138:1–2 (2012), 1–11, 10.1016/j.applanim.2011.12.002.
Kotsiantis, S.B., Kanellopoulos, D., Pintelas, P.E., Data preprocessing for supervised learning. Int. J. Comput. Sci. 1 (2006), 111–117.
Larson-Praplan, S., George, M.R., Buckhouse, J.C., Laca, E.A., Spatial and temporal domains of scale of grazing cattle. Anim. Prod. Sci., 55, 2015, 284, 10.1071/AN14641.
Leiber, F., Holinger, M., Zehner, N., Dorn, K., Probst, J.K., Neff, A.S., Intake estimation in dairy cows fed roughage-based diets: an approach based on chewing behaviour measurements. Appl. Anim. Behav. Sci. 185 (2016), 9–14, 10.1016/j.applanim.2016.10.010.
Mangweth, G., Schramel, J.P., Peham, C., Gasser, C., Tichy, A., Altenhofer, C., Weber, A., Kofler, J., Lameness detection in cows by accelerometric measurement of motion at walk. Berl. Munch. Tierarztl. Wochenschr. 125:9–10 (2012), 386–396 (PubMed PMID: 23045800).
Martiskainen, P., Järvinen, M., Skön, J.-P., Tiirikainen, J., Kolehmainen, M., Mononen, J., Cow behaviour pattern recognition using a three-dimensional accelerometer and support vector machines. Appl. Anim. Behav. Sci. 119 (2009), 32–38, 10.1016/j.applanim.2009.03.005.
Mayne, C.S., McGilloway, D., Cushnahan, A., Laidlaw, A.S., The effect of sward height and bulk density on herbage intake and grazing behaviour of dairy cows. Proceedings of the XVIII International Grassland Congress. Animal Intake and Grazing Systems, Winnipeg, Manitoba, Canada, 1997, Dover (ID no.1332, pp. 2.15–2.16).
Navon, S., Mizrach, A., Hetzroni, A., Ungar, E.D., Automatic recognition of jaw movements in free-ranging cattle, goats and sheep, using acoustic monitoring. Biosyst. Eng. 114 (2013), 474–483, 10.1016/j.biosystemseng.2012.08.005.
Nielsen, L.R., Pedersen, A.R., Herskin, M.S., Munksgaard, L., Quantifying walking and standing behaviour of dairy cows using a moving average based on output from an accelerometer. Appl. Anim. Behav. Sci. 127 (2010), 12–19, 10.1016/j.applanim.2010.08.004.
Nydegger, F., Gygax, L., Egli, W., Automatic measurement of rumination and feeding activity using a pressure sensor. Proceedings of International Conference on Agricultural Engineering-AgEng 2010: Towards Environmental Technologies, 6–8 September 2010, Clermont-Ferrand, France, 2010, Cemagref.
Orr, R.J., Rutter, S.M., Yarrow, N.H., Champion, R.A., Rook, A.J., Changes in ingestive behaviour of yearling dairy heifers due to changes in sward state during grazing down of rotationally stocked ryegrass or white clover pastures. Appl. Anim. Behav. Sci. 87 (2004), 205–222, 10.1016/j.applanim.2004.01.009.
Oudshoorn, F.W., Cornou, C., Hellwing, A.L.F., Hansen, H.H., Munksgaard, L., Lund, P., Kristensen, T., Estimation of grass intake on pasture for dairy cows using tightly and loosely mounted di- and tri-axial accelerometers combined with bite count. Comput. Electron. Agric. 99 (2013), 227–235, 10.1016/j.compag.2013.09.013.
Pahl, C., Hartung, E., Grothmann, A., Mahlkow-Nerge, K., Haeussermann, A., Suitability of feeding and chewing time for estimation of feed intake in dairy cows. Animal 10 (2015), 1507–1512, 10.1017/S1751731115001366.
Poursaberi, A., Bahr, C., Pluk, A., Van Nuffel, A., Berckmans, D., Real-time automatic lameness detection based on back posture extraction in dairy cattle: shape analysis of cow with image processing techniques. Comput. Electron. Agric. 74 (2010), 110–119, 10.1016/j.compag.2010.07.004.
Robert, B., White, B.J., Renter, D.G., Larson, R.L., Evaluation of three-dimensional accelerometers to monitor and classify behavior patterns in cattle. Comput. Electron. Agric. 67 (2009), 80–84, 10.1016/j.compag.2009.03.002.
Rutter, S.M., Graze: a program to analyze recordings of the jaw movements of ruminants. Behav. Res. Meth. Instrum. Comput. 32:1 (2000), 86–92, 10.3758/BF03200791.
Rutter, S.M., Champion, R.A., Penning, P.D., An automatic system to record foraging behaviour in free-ranging ruminants. Appl. Anim. Behav. Sci. 54 (1997), 185–195, 10.1016/S0168-1591(96)01191-4.
Schlecht, E., Hülsebusch, C., Mahler, F., Becker, K., The use of differentially corrected global positioning system to monitor activities of cattle at pasture. Appl. Anim. Behav. Sci. 85 (2004), 185–202, 10.1016/j.applanim.2003.11.003.
Smith, D., Rahman, A., Bishop-Hurley, G.J., Hills, J., Shahriar, S., Henry, D., Rawnsley, R., Behavior classification of cows fitted with motion collars: decomposing multi-class classification into a set of binary problems. Comput. Electron. Agric. 131 (2016), 40–50, 10.1016/j.compag.2016.10.006.
Swain, D.L., Wark, T., Bishop-Hurley, G.J., Using high fix rate GPS data to determine the relationships between fix rate, prediction errors and patch selection. Ecol. Modell. 212 (2008), 273–279, 10.1016/j.ecolmodel.2007.10.027.
Vallentine, J.F., Grazing activities/behaviors. Vallentine, J.F., (eds.) Grazing Management, second ed., 2001, Academic Press, San Diego, USA, 167–199, 10.1016/B978-012710001-2/50246-X.
Viazzi, S., Bahr, C., Schlageter-Tello, A., Van Hertem, T., Romanini, C.E.B., Pluk, A., Halachmi, I., Lokhorst, C., Berckmans, D., Analysis of individual classification of lameness using automatic measurement of back posture in dairy cattle. J. Dairy Sci. 96 (2013), 257–266, 10.3168/jds.2012-5806.