Abstract
While human activity has received much attention in time-series analysis research, animal activity has received much less attention. The monitoring of cattle in Precision Livestock Farming is a promising application area as it is reasonable to expect that cattle will be equipped with low-cost sensors for animal welfare reasons. In this paper, we present work on feature selection to detect disturbance in calves such as diseases or stressful events from accelerometer sensors attached to a neck-collar. While the long-term objective is to generate an alert when a disturbance is detected, the work presented here focuses on identifying the most discriminating accelerometer features to detect activity changes associated with a calf stressful event. For that purpose, we used accelerometer data from 47 calves who were dehorned at 16 days ± 10 days, a routine procedure known to be painful and stressful for calves. We calculated 7 primary features that could change after an occurrence of a disturbance, within a 24 h period before and after dehorning for each calf, falling under the areas of energy expenditure and the structure of the calf activity. These features were explored under 17 time-scales from 1 s to 24 h to find the best time-scale associated with each feature. First filtering with Mutual Information (MI) and Gini index was applied to reduce the candidate set of features for the second features selection with Random Forest Features Importance (RFFI). Performance were evaluated with Random Forest, k-Nearest Neighbor and Gaussian Naive Bayes models on test-sets to assess the relevancy of the selected features. Performance of all classifiers is improved or maintained when features from MI and Gini selection are used but decreased when further feature reduction with RFFI is applied. Therefore, based on MI and Gini selection, the most discriminating features are linked to activity peaks (maximum), amount of dynamic behaviors (standard-deviation) and activity structure (spectral entropy, Hurst exponent) with time-scales ranging from 1 s to 24 h depending on the features, which is consistent with animal welfare literature.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
Axivity Ltd.; https://axivity.com/product/ax3.
References
Rutten, C.J., Steeneveld, W., Vernooij, J.C.M., Huijps, K., Nielen, M., Hogeveen, H.: A prognostic model to predict the success of artificial insemination in dairy cows based on readily available data. J. Dairy Sci. 99(8), 6764–6779 (2016)
Herd monitoring-Medria. Online. Accessed 17 June 2022
Andonovic, I., Michie, C., Cousin, P., Janati, A., Pham, C., Diop, M.: Precision livestock farming technologies. In: 2018 Global Internet of Things Summit (GIoTS), pp. 1–6. IEEE (2018)
Cardoso, C.S., Hötzel, M.J., Weary, D.M., Robbins, J.A., von Keyserlingk, M.A.: Imagining the ideal dairy farm. J. Dairy Sci. 99(2), 1663–1671 (2016)
Shalloo, L., et al.: A review of precision technologies in pasture-based dairying systems (2021)
Saint-Dizier, M., Chastant-Maillard, S.: Towards an automated detection of oestrus in dairy cattle. Reprod. Domest. Anim. 47(6), 1056–1061 (2012)
Hulbert, L.E., Moisá, S.J.: Stress, immunity, and the management of calves. J. Dairy Sci. 99(4), 3199–3216 (2016)
Duthie, C.-A., Bowen, J.M., Bell, D.J., Miller, G.A., Mason, C., Haskell, M.J.: Feeding behaviour and activity as early indicators of disease in pre-weaned dairy calves. Animal 15(3), 100150 (2021)
Morisse, J.P., Cotte, J.P., Huonnic, D.: Effect of dehorning on behaviour and plasma cortisol responses in young calves. Appl. Anim. Behav. Sci. 43(4), 239–247 (1995)
Enríquez, D.H., Ungerfeld, R., Quintans, G., Guidoni, A.L., Hötzel, M.J.: The effects of alternative weaning methods on behaviour in beef calves. Livest. Sci. 128(1–3), 20–27 (2010)
Riaboff, L., Shalloo, L., Smeaton, A.F., Couvreur, S., Madouasse, A., Keane, M.T.: Predicting livestock behaviour using accelerometers: a systematic review of processing techniques for ruminant behaviour prediction from raw accelerometer data. Comput. Electron. Agric. 192, 106610 (2022)
Swartz, T.H., McGilliard, M.L., Petersson-Wolfe, C.S.: The use of an accelerometer for measuring step activity and lying behaviors in dairy calves. J. Dairy Sci. 99(11), 9109–9113 (2016)
Hokkanen, A.-H., Hänninen, L., Tiusanen, J., Pastell, M.: Predicting sleep and lying time of calves with a support vector machine classifier using accelerometer data. Appl. Anim. Behav. Sci. 134(1–2), 10–15 (2011)
Godfrey, A., et al.: Instrumented assessment of test battery for physical capability using an accelerometer: a feasibility study. Physiol. Meas. 36(5), N71 (2015)
Hixson, C.L., Krawczel, P.D., Caldwell, J.M., Miller-Cushon, E.K.: Behavioral changes in group-housed dairy calves infected with Mannheimia haemolytica. J. Dairy Sci. 101(11), 10351–10360 (2018)
Sylvester, S.P., Stafford, K.J., Mellor, D.J., Bruce, R.A., Ward, R.N.: Behavioural responses of calves to amputation dehorning with and without local anaesthesia. Aust. Vet. J. 82(11), 697–700 (2004)
Earley, B., McGee, M., O’Riordan, E.G., Marquette, G.: Calf disbudding and castration (2019)
Faulkner, P.M., Weary, D.M.: Reducing pain after dehorning in dairy calves. J. Dairy Sci. 83(9), 2037–2041 (2000)
Jeffrey Rushen and Anne Marie de Passillé: Automated measurement of acceleration can detect effects of age, dehorning and weaning on locomotor play of calves. Appl. Anim. Behav. Sci. 139(3–4), 169–174 (2012)
McMeekan, C., Stafford, K.J., Mellor, D.J., Bruce, R.A., Ward, R.N., Gregory, N.: Effects of a local anaesthetic and a non-steroidal anti-inflammatlory analgesic on the behavioural responses of calves to dehorning. N. Z. Vet. J. 47(3), 92–96 (1999)
Theurer, M.E., White, B.J., Coetzee, J.F., Edwards, L.N., Mosher, R.A., Cull, C.A.: Assessment of behavioral changes associated with oral meloxicam administration at time of dehorning in calves using a remote triangulation device and accelerometers. BMC Vet. Res. 8(1), 1–8 (2012)
Burgunder, J., Petrželková, K.J., Modrỳ, D., Kato, A., MacIntosh, A.J.: Fractal measures in activity patterns: do gastrointestinal parasites affect the complexity of sheep behaviour? Appl. Anim. Behav. Sci. 205, 44–53 (2018)
Johnsen, J.F., et al.: Investigating cow- calf contact in cow-driven systems: behaviour of the dairy cow and calf. J. Dairy Sci. 88(1), 52–55 (2021)
Belaid, M.A., Rodríguez-Prado, M., Rodríguez-Prado, D.V., Chevaux, E., Calsamiglia, S.: Using behavior as an early predictor of sickness in veal calves. J. Dairy Sci. 103(2), 1874–1883 (2020)
Bowen, J.M., Haskell, M.J., Miller, G.A., Mason, C.S., Bell, D.J., Duthie, C.A.: Early prediction of respiratory disease in preweaning dairy calves using feeding and activity behaviors. J. Dairy Sci. 104(11), 12009–12018 (2021)
Taylor, P.E., Almeida, G.J., Kanade, T., Hodgins, J.K.: Classifying human motion quality for knee osteoarthritis using accelerometers. In: 2010 Annual International Conference of the IEEE Engineering in Medicine and Biology, pp. 339–343. IEEE (2010)
Palmerini, L., Rocchi, L., Mellone, S., Valzania, F., Chiari, L.: Feature selection for accelerometer-based posture analysis in Parkinson’s disease. IEEE Trans. Inf Technol. Biomed. 15(3), 481–490 (2011)
Garcia-Ceja, E., Osmani, V., Mayora, O.: Automatic stress detection in working environments from smartphones’ accelerometer data: a first step. IEEE J. Biomed. Health Inform. 20(4), 1053–1060 (2015)
Cai, J., Luo, J., Wang, S., Yang, S.: Feature selection in machine learning: a new perspective. Neurocomputing 300, 70–79 (2018)
Cunningham, P., Kathirgamanathan, B., Delany, S.J.: Feature selection tutorial with python examples. arXiv preprint arXiv:2106.06437 (2021)
Chandrashekar, G., Sahin, F.: A survey on feature selection methods. Comput. Electr. Eng. 40(1), 16–28 (2014)
Menze, B.H., et al.: A comparison of random forest and its Gini importance with standard chemometric methods for the feature selection and classification of spectral data. BMC Bioinform. 10, 213 (2009). https://doi.org/10.1186/1471-2105-10-213
Vergara, J.R., Estévez, P.A.: A review of feature selection methods based on mutual information. Neural Comput. Appl. 24(1), 175–186 (2013). https://doi.org/10.1007/s00521-013-1368-0
Powell, G.E., Percival, I.C.: A spectral entropy method for distinguishing regular and irregular motion of Hamiltonian systems. J. Phys. A: Math. Gen. 12(11), 2053 (1979)
Devi, D., Sophia, S., Prabhu, S.B.: Deep learning-based cognitive state prediction analysis using brain wave signal. In: Cognitive Computing for Human-Robot Interaction, pp. 69–84. Elsevier (2021)
Qian, B., Rasheed, K.: Hurst exponent and financial market predictability. In: IASTED Conference on Financial Engineering and Applications, pp. 203–209. Proceedings of the IASTED International Conference, Cambridge, MA (2004)
Bărbulescu, A., Serban, C., Maftei, C.: Evaluation of Hurst exponent for precipitation time series. In: Proceedings of the 14th WSEAS International Conference on Computers, vol. 2, pp. 590–595 (2010)
Domino, K.: The use of the Hurst exponent to predict changes in trends on the Warsaw stock exchange. Phys. A: Stat. Mech. Appl. 390(1), 98–109 (2011)
Alvarez-Ramirez, J., Alvarez, J., Rodriguez, E., Fernandez-Anaya, G.: Time-varying Hurst exponent for US stock markets. Phys. A: Stat. Mech. Appl. 387(24), 6159–6169 (2008)
Bianchi, S.: fathon: a Python package for a fast computation of detrendend fluctuation analysis and related algorithms. J. Open Source Softw. 5(45), 1828 (2020)
Acknowledgements
This publication has emanated from research conducted with the financial support of SFI and the Department of Agriculture, Food and Marine on behalf of the Government of Ireland to the VistaMilk SFI Research Centre under Grant Number 16/RC/3835.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Dissanayake, O. et al. (2023). Identification of the Best Accelerometer Features and Time-Scale to Detect Disturbances in Calves. In: Guyet, T., Ifrim, G., Malinowski, S., Bagnall, A., Shafer, P., Lemaire, V. (eds) Advanced Analytics and Learning on Temporal Data. AALTD 2022. Lecture Notes in Computer Science(), vol 13812. Springer, Cham. https://doi.org/10.1007/978-3-031-24378-3_11
Download citation
DOI: https://doi.org/10.1007/978-3-031-24378-3_11
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-24377-6
Online ISBN: 978-3-031-24378-3
eBook Packages: Computer ScienceComputer Science (R0)