Design of real-time cow behavior monitoring system based on wireless sensor networks and K-Means clustering algorithm
Introduction: The present article is the product of the research whose code CS20.04, carried out during 2020. This work was supported by the Institute of Information Technology (IOIT), Vietnam Academy of Science and Technology (VAST).
Problem: Animal monitoring is a significant problem in the agricultural sector. The primary purpose is to monitor the health of animals regularly. Consequently, animal welfare and product quality could be improved, leading to an improvement in profit. Cow behavior recognition system was considered as the right solution for cow monitoring. The requirements for this kind of system are economical, high performance, and real-time.
Objective: The research objective is to design a real-time cow monitoring system based on wireless sensor networks and the K-means clustering algorithm.
Methodology: A wireless sensor node was designed to measure the collar-mounted acceleration data using an accelerometer. Firstly, the collected data were classified into three classes based on the VeDBA (Vector of Dynamic Body Acceleration) feature using the K-means algorithm. Then, the thresholds for VeDBA in the previous step were used to classify new data.
Results: Three behaviors (including feeding, lying, and standing) were classified in real-time with the accuracy of classification about 89%.
Conclusion: The proposed system could be adapted in monitoring cow in real-time, the behavior classification could be implemented on the microcontroller. The results confirmed the reliability of the proposed system.
Originality: The behavior classification could be implemented on the microcontroller for the first time in monitoring cow.
Limitations: Only three behaviors were classified in the experiment.
How to Cite
License
Copyright (c) 2021 Ingeniería Solidaria

This work is licensed under a Creative Commons Attribution 4.0 International License.
Cession of rights and ethical commitment
As the author of the article, I declare that is an original unpublished work exclusively created by me, that it has not been submitted for simultaneous evaluation by another publication and that there is no impediment of any kind for concession of the rights provided for in this contract.
In this sense, I am committed to await the result of the evaluation by the journal Ingeniería Solidaría before considering its submission to another medium; in case the response by that publication is positive, additionally, I am committed to respond for any action involving claims, plagiarism or any other kind of claim that could be made by third parties.
At the same time, as the author or co-author, I declare that I am completely in agreement with the conditions presented in this work and that I cede all patrimonial rights, in other words, regarding reproduction, public communication, distribution, dissemination, transformation, making it available and all forms of exploitation of the work using any medium or procedure, during the term of the legal protection of the work and in every country in the world, to the Universidad Cooperativa de Colombia Press.
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., vol. 67, no. 1-2, pp. 80–84, Mar. 2009.
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., vol. 153, pp. 99–109, Nov. 2016.
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 behavioral activities from accelerometer data", Comput. Electro. Agric., vol. 134, pp. 124–134, Jan. 2017.
C. W. Maina, "IoT at the Grassroots–Exploring the Use of Sensors for Livestock Monitoring", in Ist-Africa Week, 2017, pp. 1–8.
J. A. V. Diosdado, Z. E. Barker, "Classification of behavior in housed dairy cows using an accelerometer-based activity monitoring system", Anim. Biotelemetry, vol. 3, pp. 1–14, Jun. 2015.
E. S. Nadimi, H. T. Søgaard, "Observer Kalman filter identification and multiple-model adaptive estimation technique for classifying animal behavior using wireless sensor networks", Comput. Electro. Agric., vol. 68, pp. 9–17, Aug. 2009.
K. O'Driscoll, L. Boyle, A. Hanlon, "A brief note on the validation of a system for recording lying behavior in dairy cows", Appl. Anim. Behav. Sci., vol. 111, pp. 195–200, May 2008.
M. S. Shahriar, D. Smith, "Detecting heat events in dairy cows using accelerometers and unsupervised learning", Comput. Electro. Agric., vol. 128, pp. 20–26, Oct. 2016.
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., vol. 142, pp. 283–297, Nov. 2017.
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, vol. 13, Aug. 2018.
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.; vol. 72, pp. 467–473, Apr. 2011.
J. Wang, Z. He, J. Ji, K. Zhao, H. Zhang, "IoT-based measurement system for classifying cow behavior from tri-axial accelerometer", Cienc. Rural, vol. 49, pp. 1–13, Mar. 2019.
C. P. K. Phung, D. T. Tran, V. T. Duong, H. T. Nguyen, D. N. Tran, "The new design of cows' behavior classifier based on acceleration data and proposed feature set", Math. Biosci. Eng., vol. 17, no. 4, pp. 2760-2780, March 2020.
P. Martiskainen, M. Jarvinen, "Cow behavior pattern recognition using a three-dimensional accelerometer and support vector machines", Appl. Anim. Behav. Sci., vol. 119, pp. 32–38, Jun. 2009.
J. A. Vázquez Diosdado, Z. E. Barker, H. R. Hodges et al., "Classification of behavior in housed dairy cows using an accelerometer-based activity monitoring system", Anim. Biotelemetry, vol. 3, no. 15, Jun. 2015.
D. Berckmans, "Automatic on-line monitoring of animals by precision livestock farming", in ISAH, Saint-Malo, France, 2004, pp. 27–30.
L. Atallah, B. Lo, R. King, G. Yang, "Sensor positioning for activity recognition using wearable accelerometers", IEEE Trans. Biomed. Circ. Syst., vol. 5, pp. 320–329, Sep. 2011.
C. P. K. Phung, T. K. Nguyen, D. C. Nguyen, D. N. Tran, D. T. Tran, “Classification of cow’s beha-viors based on 3-DoF accelerations from cow’s movements,” Int. J. Electr. Comput. Eng., vol. 9, pp. 1656–1662, 2019.
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., vol. 2, pp. 110–118, 2018.




