Skip to main navigation Skip to search Skip to main content

An end-to-end method for predicting the respiratory rate of dairy cows from RGB videos

  • M. Wang
  • , S. Li
  • , R. Peng
  • , S.E. Räisänen
  • , A.M. Serviento
  • , X. Sun
  • , K. Wang
  • , F. Yu
  • , M. Niu

Research output: Chapter in Book/Report/Conference proceedingConference paperAcademicpeer-review

Abstract

Respiratory rate (RR) is an important indicator of the health and welfare status of dairy cows. In recent years, progress has been made in monitoring the RR of dairy cows using video data. However, existing methods often involve multiple processing modules, such as region of interest detection and tracking, which can introduce errors that propagate through successive steps. The objective of this study was to develop an end-to-end computer vision (CV) method to predict RR of dairy cows continuously and automatically. The method leverages a state-of-the-art Transformer model, VideoMAE, which divides video frames into patches as input tokens, enabling the automated selection and featurization of relevant regions, such as a cow's abdomen, for predicting RR. The original encoder of VideoMAE was retained, and a classification head was added on top of it. The model was fine-tuned and tested on 17 video segments (16.2 ± 11.00 min; Mean ± SD) collected in a tie-stall barn from 6 dairy cows, capturing them resting with minimal movement from top and side views. Respiratory rates measured using a respiratory belt for individual cows were serving as the ground truth. The evaluation of the developed model was conducted using multiple metrics, including mean absolute error of 2.60 breaths per minute (bpm), root mean squared error of 3.62 bpm, root mean squared prediction error (as a proportion of observed mean) of 14.0%, and Pearson correlation of 0.91. The developed CV-based method offers the potential for an end-to-end solution to monitor RR automatically.

Original languageEnglish
Title of host publication11th European Conference on Precision Livestock Farming
EditorsDaniel Berckmans, Patrizia Tassinari, Daniele Torreggiani
PublisherEuropean Association for Precision Livestock Farming
Pages1250-1258
Number of pages9
ISBN (Electronic)9791221067361
Publication statusPublished - 2024
Externally publishedYes
Event11th European Conference on Precision Livestock Farming - Bologna, Italy
Duration: 9 Sept 202412 Sept 2024

Conference/symposium

Conference/symposium11th European Conference on Precision Livestock Farming
Country/TerritoryItaly
CityBologna
Period9/09/2412/09/24

Keywords

  • Computer Vision
  • Precision livestock farming
  • RGB camera
  • Transformer

Fingerprint

Dive into the research topics of 'An end-to-end method for predicting the respiratory rate of dairy cows from RGB videos'. Together they form a unique fingerprint.

Cite this