Disentangling data dependency using cross-validation strategies to evaluate prediction quality of cattle grazing activities using machine learning algorithms and wearable sensor data

Author:

Coelho Ribeiro Leonardo Augusto1,Bresolin Tiago2ORCID,Rosa Guilherme Jordão de Magalhães2ORCID,Rume Casagrande Daniel1,Danes Marina de Arruda Camargo1ORCID,Dórea João Ricardo Rebouças2ORCID

Affiliation:

1. Department of Animal Science, University of Lavras, Lavras, MG 37200–900, Brazil

2. Department of Animal and Dairy Sciences, University of Wisconsin, Madison, WI 53706, USA

Abstract

Abstract Wearable sensors have been explored as an alternative for real-time monitoring of cattle feeding behavior in grazing systems. To evaluate the performance of predictive models such as machine learning (ML) techniques, data cross-validation (CV) approaches are often employed. However, due to data dependencies and confounding effects, poorly performed validation strategies may significantly inflate the prediction quality. In this context, our objective was to evaluate the effect of different CV strategies on the prediction of grazing activities in cattle using wearable sensor (accelerometer) data and ML algorithms. Six Nellore bulls (average live weight of 345 ± 21 kg) had their behavior visually classified as grazing or not-grazing for a period of 15 d. Elastic Net Generalized Linear Model (GLM), Random Forest (RF), and Artificial Neural Network (ANN) were employed to predict grazing activity (grazing or not-grazing) using 3-axis accelerometer data. For each analytical method, three CV strategies were evaluated: holdout, leave-one-animal-out (LOAO), and leave-one-day-out (LODO). Algorithms were trained using similar dataset sizes (holdout: n = 57,862; LOAO: n = 56,786; LODO: n = 56,672). Overall, GLM delivered the worst prediction accuracy (53%) compared with the ML techniques (65% for both RF and ANN), and ANN performed slightly better than RF for LOAO (73%) and LODO (64%) across CV strategies. The holdout yielded the highest nominal accuracy values for all three ML approaches (GLM: 59%, RF: 76%, and ANN: 74%), followed by LODO (GLM: 49%, RF: 61%, and ANN: 63%) and LOAO (GLM: 52%, RF: 57%, and ANN: 57%). With a larger dataset (i.e., more animals and grazing management scenarios), it is expected that accuracy could be increased. Most importantly, the greater prediction accuracy observed for holdout CV may simply indicate a lack of data independence and the presence of carry-over effects from animals and grazing management. Our results suggest that generalizing predictive models to unknown (not used for training) animals or grazing management may incur poor prediction quality. The results highlight the need for using management knowledge to define the validation strategy that is closer to the real-life situation, i.e., the intended application of the predictive model.

Funder

University of Wisconsin-Madison

Wisconsin Alumni Research Foundation

Wisconsin Institutes for Discovery

National Science Foundation

U.S. Department of Energy’s Office of Science

Coordenação de Aperfeiçoamento de Pessoal de Nível Superior

Fundação de Amparo à Pesquisa do Estado de Minas Gerais

Publisher

Oxford University Press (OUP)

Subject

Genetics,Animal Science and Zoology,General Medicine,Food Science

Reference30 articles.

1. Using a three-axis accelerometer to identify and classify sheep behaviour at pasture;Alvarenga;Appl. Anim. Behav. Sci,2016

2. Experimental techniques: the HFRO sward stick;Barthram;The Hill Farming Research Organization Biennial Report,1985

3. Machine-learning-based calving prediction from activity, lying, and ruminating behaviors in dairy cattle;Borchers;J. Dairy Sci,2017

4. Random forests;Breiman;Machine Learn,2001

5. Development and application of a machine learning algorithm for classification of elasmobranch behaviour from accelerometry data;Brewster;Mar. Biol,2018

Cited by 11 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3