{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,6,18]],"date-time":"2026-06-18T04:33:05Z","timestamp":1781757185249,"version":"3.54.5"},"reference-count":40,"publisher":"MDPI AG","issue":"9","license":[{"start":{"date-parts":[[2022,4,20]],"date-time":"2022-04-20T00:00:00Z","timestamp":1650412800000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"name":"Inner Mongolia Autonomous Region Science and Technology Major Project","award":["2020ZD0004"],"award-info":[{"award-number":["2020ZD0004"]}]},{"name":"China Scholarships Council","award":["202103250035"],"award-info":[{"award-number":["202103250035"]}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Animals"],"abstract":"<jats:p>The behavior of livestock on farms is the primary representation of animal welfare, health conditions, and social interactions to determine whether they are healthy or not. The objective of this study was to propose a framework based on inertial measurement unit (IMU) data from 10 dairy cows to classify unitary behaviors such as feeding, standing, lying, ruminating-standing, ruminating-lying, and walking, and identify movements during unitary behaviors. Classification performance was investigated for three machine learning algorithms (K-nearest neighbors (KNN), random forest (RF), and extreme boosting algorithm (XGBoost)) in four time windows (5, 10, 30, and 60 s). Furthermore, feed tossing, rolling biting, and chewing in the correctly classified feeding segments were analyzed by the magnitude of the acceleration. The results revealed that the XGBoost had the highest performance in the 60 s time window with an average F1 score of 94% for the six unitary behavior classes. The F1 score of movements is 78% (feed tossing), 87% (rolling biting), and 87% (chewing). This framework offers a possibility to explore more detailed movements based on the unitary behavior classification.<\/jats:p>","DOI":"10.3390\/ani12091060","type":"journal-article","created":{"date-parts":[[2022,4,21]],"date-time":"2022-04-21T01:55:51Z","timestamp":1650506151000},"page":"1060","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":30,"title":["Classification and Analysis of Multiple Cattle Unitary Behaviors and Movements Based on Machine Learning Methods"],"prefix":"10.3390","volume":"12","author":[{"given":"Yongfeng","family":"Li","sequence":"first","affiliation":[{"name":"Agricultural Information Institute, Chinese Academy of Agriculture Sciences, Beijing 100086, China"},{"name":"AgroBioChem\/TERRA, Precision Livestock and Nutrition Unit, Gembloux Agro-Bio Tech, University of Li\u00e8ge, 5030 Gembloux, Belgium"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-7124-3873","authenticated-orcid":false,"given":"Hang","family":"Shu","sequence":"additional","affiliation":[{"name":"Agricultural Information Institute, Chinese Academy of Agriculture Sciences, Beijing 100086, China"},{"name":"AgroBioChem\/TERRA, Precision Livestock and Nutrition Unit, Gembloux Agro-Bio Tech, University of Li\u00e8ge, 5030 Gembloux, Belgium"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-6974-4313","authenticated-orcid":false,"given":"J\u00e9r\u00f4me","family":"Bindelle","sequence":"additional","affiliation":[{"name":"AgroBioChem\/TERRA, Precision Livestock and Nutrition Unit, Gembloux Agro-Bio Tech, University of Li\u00e8ge, 5030 Gembloux, Belgium"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Beibei","family":"Xu","sequence":"additional","affiliation":[{"name":"Agricultural Information Institute, Chinese Academy of Agriculture Sciences, Beijing 100086, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Wenju","family":"Zhang","sequence":"additional","affiliation":[{"name":"Agricultural Information Institute, Chinese Academy of Agriculture Sciences, Beijing 100086, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Zhongming","family":"Jin","sequence":"additional","affiliation":[{"name":"Agricultural Information Institute, Chinese Academy of Agriculture Sciences, Beijing 100086, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Leifeng","family":"Guo","sequence":"additional","affiliation":[{"name":"Agricultural Information Institute, Chinese Academy of Agriculture Sciences, Beijing 100086, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Wensheng","family":"Wang","sequence":"additional","affiliation":[{"name":"Agricultural Information Institute, Chinese Academy of Agriculture Sciences, Beijing 100086, China"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1968","published-online":{"date-parts":[[2022,4,20]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","first-page":"273","DOI":"10.25518\/1780-4507.13058","article-title":"A review on the use of sensors to monitor cattle jaw movements and behavior when grazing","volume":"20","author":"Andriamandroso","year":"2016","journal-title":"Biotechnol. Agron. Soc. Environ."},{"key":"ref_2","doi-asserted-by":"crossref","first-page":"403","DOI":"10.1146\/annurev-animal-020518-114851","article-title":"Smart Animal Agriculture: Application of Real-Time Sensors to Improve Animal Well-Being and Production","volume":"7","author":"Halachmi","year":"2019","journal-title":"Annu. Rev. Anim. Biosci."},{"key":"ref_3","doi-asserted-by":"crossref","first-page":"31","DOI":"10.1016\/j.compag.2017.02.021","article-title":"System specification and validation of a noseband pressure sensor for measurement of ruminating and eating behavior in stable-fed cows","volume":"136","author":"Zehner","year":"2017","journal-title":"Comput. Electron. Agric."},{"key":"ref_4","doi-asserted-by":"crossref","first-page":"83","DOI":"10.1016\/j.compag.2017.12.013","article-title":"A pattern recognition approach for detecting and classifying jaw movements in grazing cattle","volume":"145","author":"Chelotti","year":"2018","journal-title":"Comput. Electron. Agric."},{"key":"ref_5","first-page":"124","article-title":"Cattle behaviour classification from collar, halter, and ear tag sensors","volume":"5","author":"Rahman","year":"2018","journal-title":"Inf. Process. Agric."},{"key":"ref_6","doi-asserted-by":"crossref","first-page":"105179","DOI":"10.1016\/j.compag.2019.105179","article-title":"Development of a methodological framework for a robust prediction of the main behaviours of dairy cows using a combination of machine learning algorithms on accelerometer data","volume":"169","author":"Riaboff","year":"2020","journal-title":"Comput. Electron. Agric."},{"key":"ref_7","doi-asserted-by":"crossref","first-page":"105153","DOI":"10.1016\/j.compag.2019.105153","article-title":"Calving and estrus detection in dairy cattle using a combination of indoor localization and accelerometer sensors","volume":"168","author":"Benaissa","year":"2020","journal-title":"Comput. Electron. Agric."},{"key":"ref_8","doi-asserted-by":"crossref","first-page":"1704","DOI":"10.1017\/S1751731115000890","article-title":"Lameness detection via leg-mounted accelerometers on dairy cows on four commercial farms","volume":"9","author":"Thorup","year":"2015","journal-title":"Animal"},{"key":"ref_9","doi-asserted-by":"crossref","first-page":"61","DOI":"10.1016\/j.theriogenology.2020.07.028","article-title":"Sensor technology to support herd health monitoring: Using rumination duration and activity measures as unspecific variables for the early detection of dairy cows with health deviations","volume":"157","author":"Gusterer","year":"2020","journal-title":"Theriogenology"},{"key":"ref_10","doi-asserted-by":"crossref","unstructured":"Wang, J., He, Z., Ji, J., Zhao, K., and Zhang, H. (2019). IoT-based measurement system for classifying cow behavior from tri-axial accelerometer. Ci\u00eancia Rural, 49.","DOI":"10.1590\/0103-8478cr20180627"},{"key":"ref_11","doi-asserted-by":"crossref","first-page":"105068","DOI":"10.1016\/j.compag.2019.105068","article-title":"Unsupervised automated monitoring of dairy cows\u2019 behavior based on Inertial Measurement Unit attached to their back","volume":"167","author":"Achour","year":"2019","journal-title":"Comput. Electron. Agric."},{"key":"ref_12","doi-asserted-by":"crossref","first-page":"40","DOI":"10.1016\/j.compag.2016.10.006","article-title":"Behavior classification of cows fitted with motion collars: Decomposing multi-class classification into a set of binary problems","volume":"131","author":"Smith","year":"2016","journal-title":"Comput. Electron. Agric."},{"key":"ref_13","doi-asserted-by":"crossref","first-page":"4536","DOI":"10.3168\/jds.2018-15766","article-title":"Validation of an ear-tag accelerometer to identify feeding and activity behaviors of tiestall-housed dairy cattle","volume":"102","author":"Zambelis","year":"2019","journal-title":"J. Dairy Sci."},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"79","DOI":"10.1016\/j.biosystemseng.2017.11.010","article-title":"Prediction of calving in dairy cows using a tail-mounted tri-axial accelerometer: A pilot study","volume":"173","author":"Krieger","year":"2018","journal-title":"Biosyst. Eng."},{"key":"ref_15","doi-asserted-by":"crossref","first-page":"247","DOI":"10.1016\/j.compag.2018.12.023","article-title":"Classification of multiple cattle behavior patterns using a recurrent neural network with long short-term memory and inertial measurement units","volume":"157","author":"Peng","year":"2019","journal-title":"Comput. Electron. Agric."},{"key":"ref_16","doi-asserted-by":"crossref","first-page":"104961","DOI":"10.1016\/j.compag.2019.104961","article-title":"Evaluation of pre-processing methods for the prediction of cattle behaviour from accelerometer data","volume":"165","author":"Riaboff","year":"2019","journal-title":"Comput. Electron. Agric."},{"key":"ref_17","doi-asserted-by":"crossref","first-page":"115","DOI":"10.1016\/0168-1591(92)90002-S","article-title":"The influence of restraint on the occurrence of oral stereotypies in dairy cows","volume":"35","author":"Redbo","year":"1992","journal-title":"Appl. Anim. Behav. Sci."},{"key":"ref_18","doi-asserted-by":"crossref","first-page":"485","DOI":"10.3168\/jds.S0022-0302(93)77369-5","article-title":"Feeding behavior of dairy cattle","volume":"76","author":"Albright","year":"1993","journal-title":"J. Dairy Sci."},{"key":"ref_19","first-page":"141","article-title":"[Fodder flinging in cattle]","volume":"26","author":"Sambraus","year":"1998","journal-title":"Tierarztl Prax Ausg G Grosstiere Nutztiere"},{"key":"ref_20","first-page":"21","article-title":"Animal grazing\/intake terminology and definitions","volume":"3","author":"Gibb","year":"1998","journal-title":"Pasture Ecol. Anim. Intake"},{"key":"ref_21","doi-asserted-by":"crossref","first-page":"126","DOI":"10.1016\/j.compag.2017.05.020","article-title":"Development of an open-source algorithm based on inertial measurement units (IMU) of a smartphone to detect cattle grass intake and ruminating behaviors","volume":"139","author":"Andriamandroso","year":"2017","journal-title":"Comput. Electron. Agric."},{"key":"ref_22","doi-asserted-by":"crossref","first-page":"105443","DOI":"10.1016\/j.compag.2020.105443","article-title":"An online method for estimating grazing and rumination bouts using acoustic signals in grazing cattle","volume":"173","author":"Chelotti","year":"2020","journal-title":"Comput. Electron. Agric."},{"key":"ref_23","first-page":"479","article-title":"Rumination recognition method of dairy cows based on the change of noseband pressure","volume":"7","author":"Shen","year":"2020","journal-title":"Inf. Processing Agric."},{"key":"ref_24","doi-asserted-by":"crossref","first-page":"1507","DOI":"10.1017\/S1751731115001366","article-title":"Suitability of feeding and chewing time for estimation of feed intake in dairy cows","volume":"10","author":"Pahl","year":"2016","journal-title":"Animal"},{"key":"ref_25","doi-asserted-by":"crossref","first-page":"289","DOI":"10.1016\/j.compag.2018.01.007","article-title":"Categorising sheep activity using a tri-axial accelerometer","volume":"145","author":"Barwick","year":"2018","journal-title":"Comput. Electron. Agric."},{"key":"ref_26","doi-asserted-by":"crossref","first-page":"15","DOI":"10.1186\/s40317-015-0045-8","article-title":"Classification of behaviour in housed dairy cows using an accelerometer-based activity monitoring system","volume":"3","author":"Barker","year":"2015","journal-title":"Anim. Biotelem."},{"key":"ref_27","doi-asserted-by":"crossref","unstructured":"Guo, G., Wang, H., Bell, D., Bi, Y., and Greer, K. (2003, January 3\u20137). KNN model-based approach in classification. Proceedings of the OTM Confederated International Conferences \u201cOn the Move to Meaningful Internet Systems\u201d, Catania, Italy.","DOI":"10.1007\/978-3-540-39964-3_62"},{"key":"ref_28","doi-asserted-by":"crossref","first-page":"5","DOI":"10.1023\/A:1010933404324","article-title":"Random forests","volume":"45","author":"Breiman","year":"2001","journal-title":"Mach. Learn."},{"key":"ref_29","doi-asserted-by":"crossref","first-page":"139","DOI":"10.1023\/A:1007607513941","article-title":"An experimental comparison of three methods for constructing ensembles of decision trees: Bagging, boosting, and randomization","volume":"40","author":"Dietterich","year":"2000","journal-title":"Mach. Learn."},{"key":"ref_30","unstructured":"Chen, T., He, T., Benesty, M., Khotilovich, V., Tang, Y., and Cho, H. (2021, December 17). Xgboost: Extreme Gradient Boosting. R Package Version 0.4-2. Available online: https:\/\/cran.r-project.org\/src\/contrib\/Archive\/xgboost\/."},{"key":"ref_31","doi-asserted-by":"crossref","first-page":"105957","DOI":"10.1016\/j.compag.2020.105957","article-title":"Classifying season long livestock grazing behavior with the use of a low-cost GPS and accelerometer","volume":"181","author":"Brennan","year":"2021","journal-title":"Comput. Electron. Agric."},{"key":"ref_32","doi-asserted-by":"crossref","first-page":"589","DOI":"10.1111\/asj.13184","article-title":"Dairy cattle behavior classifications based on decision tree learning using 3-axis neck-mounted accelerometers","volume":"90","author":"Tamura","year":"2019","journal-title":"Anim. Sci. J."},{"key":"ref_33","doi-asserted-by":"crossref","first-page":"105220","DOI":"10.1016\/j.applanim.2021.105220","article-title":"A novel accelerometry approach combining information on classified behaviors and quantified physical activity for assessing health status of cattle: A preliminary study","volume":"235","author":"Uenishi","year":"2021","journal-title":"Appl. Anim. Behav. Sci."},{"key":"ref_34","doi-asserted-by":"crossref","first-page":"105139","DOI":"10.1016\/j.compag.2019.105139","article-title":"Automatic equine activity detection by convolutional neural networks using accelerometer data","volume":"168","author":"Eerdekens","year":"2020","journal-title":"Comput. Electron. Agric."},{"key":"ref_35","doi-asserted-by":"crossref","first-page":"4239","DOI":"10.3390\/s140304239","article-title":"Sensor data acquisition and processing parameters for human activity classification","volume":"14","author":"Bersch","year":"2014","journal-title":"Sensors"},{"key":"ref_36","doi-asserted-by":"crossref","unstructured":"Barwick, J., Lamb, D.W., Dobos, R., Welch, M., Schneider, D., and Trotter, M. (2020). Identifying Sheep Activity from Tri-Axial Acceleration Signals Using a Moving Window Classification Model. Remote Sens., 12.","DOI":"10.3390\/rs12040646"},{"key":"ref_37","doi-asserted-by":"crossref","first-page":"105857","DOI":"10.1016\/j.compag.2020.105857","article-title":"Inclusion of features derived from a mixture of time window sizes improved classification accuracy of machine learning algorithms for sheep grazing behaviours","volume":"179","author":"Hu","year":"2020","journal-title":"Comput. Electron. Agric."},{"key":"ref_38","doi-asserted-by":"crossref","first-page":"91","DOI":"10.1016\/j.compag.2014.10.018","article-title":"Behavioral classification of data from collars containing motion sensors in grazing cattle","volume":"110","author":"Handcock","year":"2015","journal-title":"Comput. Electron. Agric."},{"key":"ref_39","doi-asserted-by":"crossref","first-page":"106610","DOI":"10.1016\/j.compag.2021.106610","article-title":"Predicting livestock behaviour using accelerometers: A systematic review of processing techniques for ruminant behaviour prediction from raw accelerometer data","volume":"192","author":"Riaboff","year":"2022","journal-title":"Comput. Electron. Agric."},{"key":"ref_40","doi-asserted-by":"crossref","unstructured":"Phillips, C. (2002). Behavioural Adaptation to Inadequate Environments. Cattle Behaviour & Welfare, John Wiley & Sons.","DOI":"10.1002\/9780470752418.ch14"}],"container-title":["Animals"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/2076-2615\/12\/9\/1060\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,10]],"date-time":"2025-10-10T22:57:18Z","timestamp":1760137038000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/2076-2615\/12\/9\/1060"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2022,4,20]]},"references-count":40,"journal-issue":{"issue":"9","published-online":{"date-parts":[[2022,5]]}},"alternative-id":["ani12091060"],"URL":"https:\/\/doi.org\/10.3390\/ani12091060","relation":{},"ISSN":["2076-2615"],"issn-type":[{"value":"2076-2615","type":"electronic"}],"subject":[],"published":{"date-parts":[[2022,4,20]]}}}