{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,6,3]],"date-time":"2026-06-03T15:50:53Z","timestamp":1780501853042,"version":"3.54.1"},"reference-count":43,"publisher":"MDPI AG","issue":"1","license":[{"start":{"date-parts":[[2020,12,25]],"date-time":"2020-12-25T00:00:00Z","timestamp":1608854400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"DOI":"10.13039\/501100000268","name":"Biotechnology and Biological Sciences Research Council","doi-asserted-by":"publisher","award":["BB\/M008770\/1"],"award-info":[{"award-number":["BB\/M008770\/1"]}],"id":[{"id":"10.13039\/501100000268","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Sensors"],"abstract":"<jats:p>Previous research has shown that sensors monitoring lying behaviours and feeding can detect early signs of ill health in calves. There is evidence to suggest that monitoring change in a single behaviour might not be enough for disease prediction. In calves, multiple behaviours such as locomotor play, self-grooming, feeding and activity whilst lying are likely to be informative. However, these behaviours can occur rarely in the real world, which means simply counting behaviours based on the prediction of a classifier can lead to overestimation. Here, we equipped thirteen pre-weaned dairy calves with collar-mounted sensors and monitored their behaviour with video cameras. Behavioural observations were recorded and merged with sensor signals. Features were calculated for 1\u201310-s windows and an AdaBoost ensemble learning algorithm implemented to classify behaviours. Finally, we developed an adjusted count quantification algorithm to predict the prevalence of locomotor play behaviour on a test dataset with low true prevalence (0.27%). Our algorithm identified locomotor play (99.73% accuracy), self-grooming (98.18% accuracy), ruminating (94.47% accuracy), non-nutritive suckling (94.96% accuracy), nutritive suckling (96.44% accuracy), active lying (90.38% accuracy) and non-active lying (90.38% accuracy). Our results detail recommended sampling frequencies, feature selection and window size. The quantification estimates of locomotor play behaviour were highly correlated with the true prevalence (0.97; p &lt; 0.001) with a total overestimation of 18.97%. This study is the first to implement machine learning approaches for multi-class behaviour identification as well as behaviour quantification in calves. This has potential to contribute towards new insights to evaluate the health and welfare in calves by use of wearable sensors.<\/jats:p>","DOI":"10.3390\/s21010088","type":"journal-article","created":{"date-parts":[[2020,12,25]],"date-time":"2020-12-25T09:30:19Z","timestamp":1608888619000},"page":"88","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":50,"title":["Machine Learning Algorithms to Classify and Quantify Multiple Behaviours in Dairy Calves Using a Sensor: Moving beyond Classification in Precision Livestock"],"prefix":"10.3390","volume":"21","author":[{"given":"Charles","family":"Carslake","sequence":"first","affiliation":[{"name":"School of Veterinary Medicine and Science, Sutton Bonington Campus, University of Nottingham, Leicestershire LE12 5RD, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Jorge A.","family":"V\u00e1zquez-Diosdado","sequence":"additional","affiliation":[{"name":"School of Veterinary Medicine and Science, Sutton Bonington Campus, University of Nottingham, Leicestershire LE12 5RD, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-3332-7064","authenticated-orcid":false,"given":"Jasmeet","family":"Kaler","sequence":"additional","affiliation":[{"name":"School of Veterinary Medicine and Science, Sutton Bonington Campus, University of Nottingham, Leicestershire LE12 5RD, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1968","published-online":{"date-parts":[[2020,12,25]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","first-page":"5","DOI":"10.1016\/0168-1591(88)90122-0","article-title":"The scientific assessment of animal welfare","volume":"20","author":"Broom","year":"1988","journal-title":"Appl. Anim. Behav. Sci."},{"key":"ref_2","doi-asserted-by":"crossref","first-page":"383","DOI":"10.1078\/0944-2006-00122","article-title":"Behaviour as a tool in the assessment of animal welfare","volume":"106","author":"Dawkins","year":"2003","journal-title":"Zoology"},{"key":"ref_3","doi-asserted-by":"crossref","first-page":"770","DOI":"10.2527\/jas.2008-1297","article-title":"Board-invited review: Using behaviour to predict and identify ill health in animals","volume":"87","author":"Weary","year":"2009","journal-title":"J. Anim. Sci."},{"key":"ref_4","doi-asserted-by":"crossref","first-page":"334","DOI":"10.1016\/j.tree.2004.04.003","article-title":"Biotelemetry: A mechanistic approach to ecology","volume":"19","author":"Cooke","year":"2004","journal-title":"Trends Ecol. Evol."},{"key":"ref_5","doi-asserted-by":"crossref","first-page":"20","DOI":"10.1186\/2050-3385-1-20","article-title":"Observing the unwatchable through acceleration logging of animal behaviour","volume":"1","author":"Brown","year":"2013","journal-title":"Anim. Biotelemetry"},{"key":"ref_6","doi-asserted-by":"crossref","first-page":"189","DOI":"10.20506\/rst.33.1.2273","article-title":"Precision livestock farming technologies for welfare management in intensive livestock systems","volume":"33","author":"Berckmans","year":"2014","journal-title":"Rev. Sci. Tech."},{"key":"ref_7","doi-asserted-by":"crossref","first-page":"80","DOI":"10.1016\/j.compag.2009.03.002","article-title":"Evaluation of three-dimensional accelerometers to monitor and classify behaviour patterns in cattle","volume":"67","author":"Robert","year":"2009","journal-title":"Comput. Electron. Agric."},{"key":"ref_8","doi-asserted-by":"crossref","first-page":"9109","DOI":"10.3168\/jds.2016-11297","article-title":"Technical note: The use of an accelerometer for measuring step activity and lying behaviors in dairy calves","volume":"99","author":"Swartz","year":"2016","journal-title":"J. Dairy Sci."},{"key":"ref_9","doi-asserted-by":"crossref","first-page":"359","DOI":"10.2460\/ajvr.71.3.359","article-title":"Serial evaluation of physiologic, pathological, and behavioural changes related to disease progression of experimentally induced Mannheimia haemolytica pneumonia in postweaned calves","volume":"71","author":"Hanzlicek","year":"2010","journal-title":"Am. J. Vet. Res."},{"key":"ref_10","doi-asserted-by":"crossref","first-page":"49","DOI":"10.1016\/j.applanim.2016.05.016","article-title":"The sickness response in steers with induced bovine respiratory disease before and after treatment with a non-steroidal anti-inflammatory drug","volume":"181","author":"Gershwin","year":"2016","journal-title":"Appl. Anim. Behav. Sci."},{"key":"ref_11","doi-asserted-by":"crossref","unstructured":"Costa, J.H., Cantor, M.C., and Neave, H.W. (2020). Symposium review: Precision technologies for dairy calves and management applications. J. Dairy Sci.","DOI":"10.3168\/jds.2019-17885"},{"key":"ref_12","doi-asserted-by":"crossref","first-page":"10421","DOI":"10.3168\/jds.2018-14720","article-title":"Evaluation of a triaxial accelerometer for monitoring selected behaviours in dairy calves","volume":"101","author":"Roland","year":"2018","journal-title":"J. Dairy Sci."},{"key":"ref_13","doi-asserted-by":"crossref","first-page":"43","DOI":"10.1016\/j.tvjl.2016.09.005","article-title":"Early detection of health and welfare compromises through automated detection of behavioural changes in pigs","volume":"217","author":"Matthews","year":"2016","journal-title":"Vet. J."},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"17582","DOI":"10.1038\/s41598-017-17451-6","article-title":"Automated tracking to measure behavioural changes in pigs for health and welfare monitoring","volume":"7","author":"Matthews","year":"2017","journal-title":"Sci. Rep."},{"key":"ref_15","doi-asserted-by":"crossref","first-page":"2920","DOI":"10.2527\/jas.2008-0926","article-title":"Behaviour of dairy calves after a low dose of bacterial endotoxin","volume":"86","author":"Borderas","year":"2008","journal-title":"J. Anim. Sci."},{"key":"ref_16","doi-asserted-by":"crossref","first-page":"330","DOI":"10.1016\/0006-8993(91)91587-Q","article-title":"Behavioural effects of peripherally injected interleukin-1: Role of prostaglandins","volume":"542","author":"Crestani","year":"1991","journal-title":"Brain Res."},{"key":"ref_17","doi-asserted-by":"crossref","first-page":"10351","DOI":"10.3168\/jds.2018-14832","article-title":"Behavioural changes in group-housed dairy calves infected with Mannheimia haemolytica","volume":"101","author":"Hixson","year":"2018","journal-title":"J. Dairy Sci."},{"key":"ref_18","doi-asserted-by":"crossref","first-page":"994","DOI":"10.3168\/jds.S0022-0302(07)71584-9","article-title":"Identification of diseased calves by use of data from automatic milk feeders","volume":"90","author":"Svensson","year":"2007","journal-title":"J. Dairy Sci."},{"key":"ref_19","unstructured":"Fagen, R. (1981). Animal Play Behaviour, Oxford University Press."},{"key":"ref_20","doi-asserted-by":"crossref","first-page":"71","DOI":"10.1016\/j.applanim.2009.12.002","article-title":"Play behaviour in dairy calves is reduced by weaning and by a low energy intake","volume":"122","author":"Krachun","year":"2010","journal-title":"Appl. Anim. Behav. Sci."},{"key":"ref_21","doi-asserted-by":"crossref","first-page":"169","DOI":"10.1016\/j.applanim.2012.04.011","article-title":"Automated measurement of acceleration can detect effects of age, dehorning and weaning on locomotor play of calves","volume":"139","author":"Rushen","year":"2012","journal-title":"Appl. Anim. Behav. Sci."},{"key":"ref_22","doi-asserted-by":"crossref","first-page":"164","DOI":"10.1007\/s10618-008-0097-y","article-title":"Quantifying counts and costs via classification","volume":"17","author":"Forman","year":"2008","journal-title":"Data Min. Knowl. Disc."},{"key":"ref_23","doi-asserted-by":"crossref","first-page":"981","DOI":"10.1002\/(SICI)1097-0258(19970515)16:9<981::AID-SIM510>3.0.CO;2-N","article-title":"Variation of sensitivity, specificity, likelihood ratios and predictive values with disease prevalence","volume":"16","author":"Brenner","year":"1997","journal-title":"Stat. Med."},{"key":"ref_24","doi-asserted-by":"crossref","first-page":"1866","DOI":"10.3168\/jds.2019-17005","article-title":"Discriminating spontaneous locomotor play of dairy calves using accelerometers","volume":"103","author":"Lawrence","year":"2020","journal-title":"J. Dairy Sci."},{"key":"ref_25","doi-asserted-by":"crossref","first-page":"3397","DOI":"10.3168\/jds.2009-2040","article-title":"Quantifying and characterizing behaviour in dairy calves using the IceTag automatic recording device","volume":"92","author":"Jensen","year":"2009","journal-title":"J. Dairy Sci."},{"key":"ref_26","doi-asserted-by":"crossref","first-page":"86","DOI":"10.1016\/j.livsci.2018.11.017","article-title":"Evaluation of an automatic system for monitoring rumination time in weaning calves","volume":"219","author":"Rodrigues","year":"2019","journal-title":"Livest. Sci."},{"key":"ref_27","doi-asserted-by":"crossref","first-page":"171442","DOI":"10.1098\/rsos.171442","article-title":"Evaluation of sampling frequency, window size and sensor position for classification of sheep behaviour","volume":"5","author":"Walton","year":"2018","journal-title":"R. Soc. Open Sci."},{"key":"ref_28","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1145\/2499621","article-title":"A tutorial on human activity recognition using body-worn inertial sensors","volume":"46","author":"Bulling","year":"2014","journal-title":"ACM Comput. Surv."},{"key":"ref_29","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1007\/s10462-009-9124-7","article-title":"Ensemble-based classifiers","volume":"33","author":"Rokach","year":"2010","journal-title":"Artif. Intell. Rev."},{"key":"ref_30","unstructured":"Kohavi, R. (1995, January 20\u201325). A study of cross-validation and bootstrap for accuracy estimation and model selection. Proceedings of the International Joint Conference on Artificial Intelligence (IJCAI), Montreal, QC, Canada."},{"key":"ref_31","doi-asserted-by":"crossref","first-page":"1263","DOI":"10.1109\/TKDE.2008.239","article-title":"Learning from imbalanced data","volume":"21","author":"He","year":"2009","journal-title":"IEEE Trans. Knowl. Data Eng."},{"key":"ref_32","doi-asserted-by":"crossref","first-page":"825","DOI":"10.1016\/j.eswa.2006.10.022","article-title":"Comparison of classification accuracy using Cohen\u2019s weighted kappa","volume":"34","year":"2008","journal-title":"Expert Syst. Appl."},{"key":"ref_33","unstructured":"Dohoo, I.R., Martin, W., and Stryhn, H.E. (2003). Veterinary Epidemiologic Research, AVC Inc."},{"key":"ref_34","doi-asserted-by":"crossref","unstructured":"Kononenko, I. (1994). Estimating attributes: Analysis and extensions of RELIEF. European Conference on Machine Learning, Springer.","DOI":"10.1007\/3-540-57868-4_57"},{"key":"ref_35","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. Biotelemetry"},{"key":"ref_36","doi-asserted-by":"crossref","first-page":"32","DOI":"10.1016\/j.applanim.2009.03.005","article-title":"Cow behaviour pattern recognition using a three-dimensional accelerometer and support vector machines","volume":"119","author":"Martiskainen","year":"2009","journal-title":"Appl. Anim. Behav. Sci."},{"key":"ref_37","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_38","doi-asserted-by":"crossref","first-page":"10","DOI":"10.1016\/j.applanim.2011.06.016","article-title":"Predicting sleep and lying time of calves with a support vector machine classifier using accelerometer data","volume":"134","author":"Hokkanen","year":"2011","journal-title":"Appl. Anim. Behav. Sci."},{"key":"ref_39","doi-asserted-by":"crossref","unstructured":"Gladden, N., Cuthbert, E., Ellis, K., and McKeegan, D. (2020). Use of a tri-axial accelerometer can reliably detect play behaviour in newborn calves. Animals, 10.","DOI":"10.3390\/ani10071137"},{"key":"ref_40","doi-asserted-by":"crossref","first-page":"33","DOI":"10.1007\/s10994-005-5256-4","article-title":"A response to webb and ting\u2019s on the application of ROC analysis to predict classification performance under varying class distributions","volume":"58","author":"Fawcett","year":"2005","journal-title":"Mach. Learn."},{"key":"ref_41","doi-asserted-by":"crossref","unstructured":"V\u00e1zquez-Diosdado, J.A., Paul, V., Ellis, K.A., Coates, D., Loomba, R., and Kaler, J. (2019). A combined offline and online algorithm for real-time and long-term classification of sheep behaviour: Novel approach for precision livestock farming. Sensors, 19.","DOI":"10.3390\/s19143201"},{"key":"ref_42","doi-asserted-by":"crossref","first-page":"10471","DOI":"10.3168\/jds.2019-16442","article-title":"Developing and evaluating threshold-based algorithms to detect drinking behaviour in dairy cows using reticulorumen temperature","volume":"102","author":"Plant","year":"2019","journal-title":"J. Dairy. Sci."},{"key":"ref_43","doi-asserted-by":"crossref","unstructured":"Mansbridge, N., Mitsch, J., Bollard, N., Ellis, K., Miguel-Pacheco, G.G., Dottorini, T., and Kaler, J. (2018). Feature selection and comparison of machine learning algorithms in classification of grazing and rumination behaviour in sheep. Sensors, 18.","DOI":"10.3390\/s18103532"}],"container-title":["Sensors"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1424-8220\/21\/1\/88\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,11]],"date-time":"2025-10-11T10:46:08Z","timestamp":1760179568000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1424-8220\/21\/1\/88"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2020,12,25]]},"references-count":43,"journal-issue":{"issue":"1","published-online":{"date-parts":[[2021,1]]}},"alternative-id":["s21010088"],"URL":"https:\/\/doi.org\/10.3390\/s21010088","relation":{},"ISSN":["1424-8220"],"issn-type":[{"value":"1424-8220","type":"electronic"}],"subject":[],"published":{"date-parts":[[2020,12,25]]}}}