Utilization of deep learning models to predict calving time in dairy cattle from tail acceleration data

Lingling Yang,Jizheng Zhao,Xiaoyi Ying,Cheng Lu,Xinyi Zhou,Yannian Gao,Lei Wang,Han Liu,Huaibo Song
DOI: https://doi.org/10.1016/j.compag.2024.109253
IF: 8.3
2024-07-21
Computers and Electronics in Agriculture
Abstract:Calving monitoring in dairy cattle is a crucial task for modern farms. Accurate prediction of calving time is a prerequisite for timely and effective calving management. Recently, deep learning models using behavioral data have been proposed to predict calving in dairy cattle. However, few studies have utilized deep learning models on tail acceleration data to directly predict calving in dairy cattle. This study assessed the performance of the convolutional neural network (CNN), long short-term memory (LSTM), CNN-LSTM, and CNN based bidirectional long short-term attention (CNN-BiLSTM-attention) models using tail acceleration data to predict dairy cattle calving. We collected tail acceleration data from 25 cows for model training and obtained tail acceleration data from 11 additional cows for model testing. Given that the tail acceleration data at the prenatal stage were less than the data at the nonprenatal stage, a time-series generative adversarial networks (TimeGAN) was used to augment the amount of data at the prenatal stage. The performance of each model during the training phase was evaluated, and the differences between the calving alert-generation times and the actual calving times were compared. The CNN, LSTM, CNN-LSTM, and CNN-BiLSTM-attention models achieved precision values of 0.8537, 0.8605, 0.8861, and 0.9147; recall values of 0.9085, 0.9427, 0.9455, and 0.9459; and F1 scores of 0.8803, 0.8997, 0.9148, and 0.9300, respectively. The four models generated the first alert within 12 h before calving for 64 %, 73 %, 91 %, and 100 % of the total 11 cows. When trained using one-dimensional tail acceleration data (parallel to the tail direction of the cow and pointed downward), the CNN–BiLSTM–attention model achieved a precision of 0.8427, a recall of 0.8219, and an F1 score of 0.8322. These preliminary results indicate the feasibility of utilizing deep learning models with tail acceleration data to predict dairy cattle calving time, providing methods to optimize calving management and improve animal monitoring.
agriculture, multidisciplinary,computer science, interdisciplinary applications
What problem does this paper attempt to address?