Department of Animal Science, Aarhus University, DK8830 Tjele, Denmark; Bioinformatics Research Centre, Aarhus University, DK8000 Aarhus C, Denmark.
AgroTech, Danish Technological Institute, DK8200 Aarhus N, Denmark.
J Dairy Sci. 2020 Jul;103(7):6271-6275. doi: 10.3168/jds.2019-17613. Epub 2020 Apr 22.
Feed intake and time spent eating at the feed bunk are important predictors of dairy cows' productivity and animal welfare, and deviations from normal eating behavior may indicate subclinical or clinical disease. In the current study, we developed a random forests algorithm to predict dairy cows' daily eating time (of a total mixed ration from a common feed bunk) using data from a 3-dimensional accelerometer and a radiofrequency identification (RFID) prototype device (logger) mounted on a neck collar. Models were trained on continuous focal animal observations from a total of 24 video recordings of 18 dairy cows at the Danish Cattle Research Centre (Foulum, Tjele, Denmark). Each session lasted from 21 to 48 h. The models included both the present time signal and observations several seconds back in time (lag window). These time-lagged signals were included with the purpose of capturing changes over time. Because of the high costs of installing an RFID antenna in the feed bunk, we also investigated a model based solely on 3-dimensional accelerometer data. Furthermore, to address the trade-off between prediction accuracy and reduced model complexity and its implications for battery longevity, we investigated the importance of including observations back in time using lag window sizes between 8 and 128 s. Performance was evaluated by internal leave-one-cow-out cross-validation. The results indicated that we obtained accurate predictions of daily eating time. For the most complex model (a lag window size of 128 s), the median of the balanced accuracy was 0.95 (interquartile interval: 0.93 to 0.96), and the median daily eating time deviation was 7 min 37 s (interquartile interval: -6 to 15 min). The median of the average daily eating time during sessions was 3 h 41 min with an interquartile interval of 2 h 56 min to 4 h 16 min. Exclusion of RFID data resulted in a considerable decrease in prediction accuracy, mainly due to a decreased sensitivity of locating the cow at the feed bunk (median balanced accuracy of 0.87 at a lag window size of 128 s). In contrast, prediction accuracy only slightly decreased with decreasing lag window size (median balanced accuracy of 0.94 at a lag window size of 8 s). We suggest a lag window size of 64 s for further development of the prototype logger. The methodology presented in this paper may be relevant for future automatic recordings of eating behavior in commercial dairy herds.
采食时间和采食槽的进食时间是预测奶牛生产性能和动物福利的重要指标,采食行为的偏差可能表明存在亚临床或临床疾病。在本研究中,我们使用安装在颈圈上的三维加速度计和射频识别(RFID)原型设备(记录仪)的数据,开发了一种随机森林算法来预测奶牛每天的总混合日粮(TMR)进食时间。模型是在丹麦奶牛研究中心(丹麦特莱勒)对 18 头奶牛的 24 段视频记录中的 24 个连续焦点动物观察结果的基础上进行训练的。每个会话持续 21 到 48 小时。模型既包括当前时间信号,也包括几秒前的观测值(滞后窗口)。这些时间滞后信号的包含目的是捕捉随时间的变化。由于在饲料槽中安装 RFID 天线的成本很高,我们还研究了仅基于三维加速度计数据的模型。此外,为了解决预测精度与简化模型复杂性之间的权衡及其对电池寿命的影响,我们研究了使用 8 到 128 秒的滞后窗口大小来包含回传观测值的重要性。通过内部逐个剔除奶牛的交叉验证来评估性能。结果表明,我们获得了对每日进食时间的准确预测。对于最复杂的模型(滞后窗口大小为 128 秒),平衡准确性的中位数为 0.95(四分位间距:0.93 至 0.96),每日进食时间偏差的中位数为 7 分 37 秒(四分位间距:-6 至 15 分钟)。会议期间平均每日进食时间的中位数为 3 小时 41 分钟,四分位间距为 2 小时 56 分钟至 4 小时 16 分钟。排除 RFID 数据会导致预测精度显著下降,主要是因为在饲料槽定位奶牛的灵敏度降低(滞后窗口大小为 128 秒时的平衡准确性中位数为 0.87)。相比之下,随着滞后窗口大小的减小,预测精度仅略有下降(滞后窗口大小为 8 秒时的平衡准确性中位数为 0.94)。我们建议为原型记录仪开发 64 秒的滞后窗口。本文提出的方法可能与商业奶牛群中未来自动采食行为的记录有关。