TY - JOUR
T1 - Classification of dairy cow excretory events using a tail-mounted accelerometer
AU - Williams, Manod
AU - Zhan Lai, Shu
N1 - Funding Information:
The authors are grateful to the Marshall Papworth scholarship programme and to the Department of Veterinary Sciences, Malaysia, for the funding of Shu Zhan Lai. The funding bodies had no role in the design of the study and collection, analysis, and interpretation of data and in writing the manuscript. We would also like to thank the farm staff at Aberystwyth University for allowing access to the facilities and for assisting in the management of the study animals. The Institute of Biological, Environmental & Rural Sciences (IBERS) receives strategic funding from the Biotechnology and Biological Sciences Research Council (BBSRC).
Publisher Copyright:
© 2022 The Authors
PY - 2022/8/1
Y1 - 2022/8/1
N2 - Grazing livestock contributes to pasture nitrogen (N) through urine and faeces and N losses in pasture-based livestock systems are recognized as an important consideration for sustainable land management. Knowing the frequency and quantity of excreta produced in pasture-based dairy production systems could be useful for informing best management practice. The aim of this experiment was to determine whether data from tail-mounted accelerometers could be used to classify dairy cow excretory events. Ten non-lactating Holstein dairy cows were fitted with a tail-mounted accelerometer set to record data at 1 Hz and were individually observed for 3.3–5.3 h each. The recorded behaviours were urination, defecation, standing and lying (both left and right laterality). G-force acceleration values for X, Y and Z axes were downloaded and windows of varying sizes (3-, 6-, 9-, 12- and 15 s) were used to extract a set of basic features (mean, minimum, maximum and SD) from consecutive sequences of each behaviour. Windows were stepped forward by 1 s for feature extraction and five datasets were developed. Data for all cows were compiled and a random forest algorithm was used for model development. Ten times 10-fold stratified cross-validation (SCV) was used to evaluate data from all window sizes. Sensitivity and precision always exceeded 84% for standing and lying postures in both unbalanced and balanced datasets. Classification performance for excretory events improved significantly (P < 0.01) as window size increased. Due to performance, the 15 s window was selected for further tests with a full feature set. Random forest models were developed using a leave-one-cow-out cross-validation strategy (model developed using n-1 cows and evaluated on the held-out cow). Classification performance for standing and lying remained high (sensitivity & precision ≥ 91 %) but performance for excretory events was poor and highly variable. SCV results for excretory events were clearly optimistic and more data are needed for further testing. However, it may also be necessary to develop and test individual animal models for comparison because there may be considerable variation between animals for excretory events.
AB - Grazing livestock contributes to pasture nitrogen (N) through urine and faeces and N losses in pasture-based livestock systems are recognized as an important consideration for sustainable land management. Knowing the frequency and quantity of excreta produced in pasture-based dairy production systems could be useful for informing best management practice. The aim of this experiment was to determine whether data from tail-mounted accelerometers could be used to classify dairy cow excretory events. Ten non-lactating Holstein dairy cows were fitted with a tail-mounted accelerometer set to record data at 1 Hz and were individually observed for 3.3–5.3 h each. The recorded behaviours were urination, defecation, standing and lying (both left and right laterality). G-force acceleration values for X, Y and Z axes were downloaded and windows of varying sizes (3-, 6-, 9-, 12- and 15 s) were used to extract a set of basic features (mean, minimum, maximum and SD) from consecutive sequences of each behaviour. Windows were stepped forward by 1 s for feature extraction and five datasets were developed. Data for all cows were compiled and a random forest algorithm was used for model development. Ten times 10-fold stratified cross-validation (SCV) was used to evaluate data from all window sizes. Sensitivity and precision always exceeded 84% for standing and lying postures in both unbalanced and balanced datasets. Classification performance for excretory events improved significantly (P < 0.01) as window size increased. Due to performance, the 15 s window was selected for further tests with a full feature set. Random forest models were developed using a leave-one-cow-out cross-validation strategy (model developed using n-1 cows and evaluated on the held-out cow). Classification performance for standing and lying remained high (sensitivity & precision ≥ 91 %) but performance for excretory events was poor and highly variable. SCV results for excretory events were clearly optimistic and more data are needed for further testing. However, it may also be necessary to develop and test individual animal models for comparison because there may be considerable variation between animals for excretory events.
KW - Accelerometer
KW - Classification
KW - Dairy cattle
KW - Defecation
KW - Precision livestock farming
KW - Urination
UR - http://www.scopus.com/inward/record.url?scp=85133950594&partnerID=8YFLogxK
U2 - 10.1016/j.compag.2022.107187
DO - 10.1016/j.compag.2022.107187
M3 - Article
AN - SCOPUS:85133950594
SN - 0168-1699
VL - 199
JO - Computers and Electronics in Agriculture
JF - Computers and Electronics in Agriculture
M1 - 107187
ER -