Export file:


  • RIS(for EndNote,Reference Manager,ProCite)
  • BibTex
  • Text


  • Citation Only
  • Citation and Abstract

The new design of cows' behavior classifier based on acceleration data and proposed feature set

1 VNU University of Engineering and Technology, 144 Xuan Thuy, Hanoi City, Vietnam
2 Faculty of Electrical and Electronic Engineering, Phenikaa University, Hanoi City, Vietnam
3 NTT Hi-Tech Institute–Nguyen Tat Thanh University, 300A Nguyen Tat Thanh Street, Ward 13, District 4, Ho Chi Minh City, Viet Nam
4 Institute of Information Technology, Vietnam Academy of Science and Technology, Hanoi City, Vietnam

Monitor and classify behavioral activities in cows is a helpful support solution for livestock based on the analysis of data from sensors attached to the animal. Accelerometers are particularly suited for monitoring cow behaviors due to small size, lightweight and high accuracy. Nevertheless, the interpretation of the data collected by such sensors when characterizing the type of behaviors still brings major challenges to developers, related to activity complexity (i.e., certain behaviors contain similar gestures). This paper presents a new design of cows' behavior classifier based on acceleration data and proposed feature set. Analysis of cow acceleration data is used to extract features for classification using machine learning algorithms. We found that with 5 features (mean, standard deviation, root mean square, median, range) and 16-second window of data (1 sample/second), classification of seven cow behaviors (including feeding, lying, standing, lying down, standing up, normal walking, active walking) achieved the overall highest performance. We validated the results with acceleration data from a public source. Performance of our proposed classifier was evaluated and compared to existing ones in terms of the sensitivity, the accuracy, the positive predictive value, and the negative predictive value.
  Article Metrics


1. G. Mattachini, E. Riva, C. Bisaglia, J. C. A. M. Pompe, G. Provolo, Methodology for quantifying the behavioral activity of dairy cows in free-stall barns, J. Anim. Sci., 10 (2013), 4899-4907.

2. A. Rahmana, D.V. Smitha, Cattle behaviour classification from collar, halter, and ear tag sensors, Inf. Process. Agric., 5 (2018), 124-133.

3. S. M. C. Porto, C. Arcidiacono, Localization and identification performances of a real-time system based on ultra wide band technology for monitoring and tracking dairy cow behavior in semi-open free-stall barn, Comput. Electro. Agric., 108 (2014), 221-229.

4. M. R. Borchers, Y. M. Chang, A validation of technologies monitoring dairy cow feeding, ruminating, and lying behaviors, J. Dairy Sci., 999 (2016), 7458-7466.

5. G. M. Pereira, J. H. Bradley, I. E. Marcia, Validation of an eartag accelerometer sensor to determine rumination, eating, and activity behaviors of grazing dairy cattle, J. Dairy Sci., 101 (2018), 2492-2495.    

6. H. C. Weigele, L. Gygax, A. Steiner, B. Wechsler, J. B. Burla, Moderate lameness leads to marked behavioral changes in dairy cows, J. Dairy Sci., 3101 (2018), 2370-2382.

7. F. Mahmoud, B. Christopher, A. Maher, H. Jürg, S. Alexander, S. Adrian, H. Gaby, Prediction of calving time in dairy cattle, Anim. Reprod. Sci., 187 (2017), 37-46.

8. N. Bareille, F. Beaudeau, S. Billon, A. Robert, P. Faverdin, Effects of health disorders on feed intake and milk production in dairy cows, Livest. Prod. Sci., 83 (2003), 53-62.

9. J. A. V. Diosdado, Z. E. Barker, Classification of behavior in housed dairy cows using an accelerometer-based activity minitoring system, Anim. Biotelemetry, 3 (2015), 1-14.

10. K. M. Abell, M. E. Theurer, R. L. Larson, B. J. White, D. K. Hardin, R. F. Randle, Predicting bull behavior events in a multiple-sire pasture with video analysis, accelerometers, and classification algorithms, Comput. Electro. Agric., 136 (2017), 221-227.

11. M. E. Theurer, D. E. Amrine, B. J. White, Remote noninvasive assessment of pain and health status in cattle, Vet. Clin. Food Anim., 29 (2013), 59-74.

12. C. W. Maina, IoT at the Grassroots-Exploring the Use of Sensors for Livestock Monitoring. Ist-Africa Week Conference, 2017, 1-8.

13. N. Zehner, C. Umstatter, System specification and validation of a noseband pressure sensor for measurement of ruminating and eating behavior in stable-fed cows, Comput. Electro. Agric., 136 (2017), 31-41.

14. J. Wang, Z. He, J. Ji, K. Zhao, H. Zhang, IoT-based measurement system for classifying cow behavior from tri-axial accelerometer, Cienc. Rural, 49 (2019), 1-13.

15. E. S. Nadimi, H. T. Søgaard, Observer Kalman flter identifcation and multiple-model adaptive estimation technique for classifying animal behaviour using wireless sensor networks, Comput. Electro. Agric., 68 (2009), 9-17.

16. K. O'Driscoll, L. Boyle, A brief note on the validation of a system for recording lying behavior in dairy cows, Appl. Anim. Behav. Sci., 111 (2008), 195-200.

17. M. S. Shahriar, D. Smith, Detecting heat events in dairy cows using accelerometers and unsupervised learning, Comput. Electro. Agric., 128 (2016), 20-26.

18. J. M. Talavera, L. E. Tobón, J. A. Gómez, M. A. Culman, J. M. Aranda, D. T. Parra, et al., Review of IoT applications in agro-industrial and environmental fields, Comput. Electro. Agric., 142 (2017), 283-297.

19. C. Arcidiacono, S. M. Porto, M. Mancino, G. Cascone, A threshold-based algorithm for the development of inertial sensor-based systems to perform real-time cow step counting in free-stall barns, Biosyst. Eng., 153 (2017), 99-109.

20. J. Wang, Z. He, Development and validation of an ensemble classifier for real-time recognition of cow behavior patterns from accelerometer data and location data, PLoS One, 13 (2018).

21. B. Robert, B. J. White, D. G. Renter, R. L. Larson, Evaluation of three-dimensional accelerometers to monitor and classify behavior patterns in cattle, Comput. Electro. Agric., 67 (2009), 80-84.

22. B. D. Robért, B. J. White, D. G. Renter, R. L. Larson, Determination of lying behavior patterns in healthy beef cattle by use of wireless accelerometers, Am. J. Vet. Res., 72 (2011), 467-473.

23. L. Atallah, B. Lo, R. King, G. Yang, Sensor positioning for activity recognition using wearable accelerometers, IEEE Trans. Biomed. Circ. Syst., 5 (2011), 320-329.

24. J. Krause, S. Krause, Reality mining of animal social system, Trends Ecol. Evol., 28 (2013), 541-551.

25. J. C. Davila, A. M. Cretu, M. Zaremba, Wearable sensor data classification for human activity recognition based on an iterative learning framework, Sensors, 17 (2017), 1287.

26. R. Muller, L. Schrader, A new method to measure behavioral activity levels in dairy cows, Appl. Anim. Behav. Sci., 83 (2003), 247-258.

27. M. Sugiyama, M. Kawanabe, Machine learning in Non-Stationary Environments, MIT Press, 2012.

28. P. Martiskainen, M. Jarvinen, Cow behaviour pattern recognition using a three-dimensional accelerometer and support vector machines, Appl. Anim. Behav. Sci., 119 (2009), 32-38.

29. C. Arcidiacono, S. M. C. Porto, M. Mancino, G. Cascone, Development of a threshold-based classifier for real-time recognition of cow feeding and standing behavioural activities from accelerometer data, Comput. Electro. Agric., 134 (2017), 124-134.

30. S. Bhattacharya, A. M. Krishna, D. Lombardi, A. Crewe, N. Alexander, Economic MEMS based 3-axis water proof accelerometer for dynamic geo-engineering applications, Soil Dyn. Earthq. Eng., 36 (2012), 111-118.

31. M. Alsaaod, J. J. Niederhauser, G. Beer, N. Zehner, G. S. Regula, A. Steiner, Development and validation of a novel pedometer algorithm to quantify extended characteristics of the locomotor behavior of dairy cows, J. Dairy Sci., 98 (2015), 6236-6242.

32. M. Janidarmian, A. R. Fekr, K. Radecka, Z. Zilic, A comprehensive analysis on wearable acceleration sensors in human activity recognition, Sensors, 17 (2017), 1-26.

33. N. Twomey, T. Diethe, A comprehensive study of activity recognition using accelerometers, Informatics, 5 (2018), 1-37.

34. C. P. K. Phung, T. K. Nguyen, D. C. Nguyen, D. N. Tran, D. T. Tran, Classification of cow's behaviors based on 3-DoF accelerations from cow's movements, Int. J. Electr. Comput. Eng., 9 (2019), 1656-1662.

35. Q. T. Hoang, C. P. K. Phung, T. N. Bui, T. P. D. Chu, D. T. Tran, Cow behavior monitoring using a multidimensional acceleration sensor and multiclass SVM, Int. J. Mach. Learn. Networked Collab. Eng., 2 (2018), 110-118.

© 2020 the Author(s), licensee AIMS Press. This is an open access article distributed under the terms of the Creative Commons Attribution Licese (http://creativecommons.org/licenses/by/4.0)

Download full text in PDF

Export Citation

Article outline

Show full outline
Copyright © AIMS Press All Rights Reserved