Signal-Aware Computer Vision Tracks Cattle Respiration From Standard Farm
Agricultural researchers and computer vision specialists have engineered a signal-aware framework capable of estimating individual cattle respiration rates directly from routine commodity RGB video footage captured in multi-animal environments. Monitoring herd
Illustrative imageAgricultural researchers and computer vision specialists have engineered a signal-aware framework capable of estimating individual cattle respiration rates directly from routine commodity RGB video footage captured in multi-animal environments. Monitoring herd respiration historically required manual counting by trained personnel or specialized physiological contact sensors. Manual field observation is labor-intensive, intermittent, and difficult to scale across large herds, while wearable hardware remains costly, physically disruptive, and impractical for continuous deployment. Although RGB cameras are increasingly installed in agricultural settings, automated non-contact tracking has struggled beyond isolated, pre-cropped single-animal footage. The newly introduced system addresses this bottleneck by operating at the individual animal track level within multi-animal video, demonstrating that specialized physiological signal extraction dramatically outperforms generic visual foundation models when confronting operational farm conditions.
Translating camera-based physiological monitoring from controlled human clinics to commercial livestock pens introduces formidable computer vision challenges. Cattle breathing appears as subtle, localized, low-amplitude periodic motion across the torso and flank that is easily obscured by ordinary animal behaviors. Body sway, stepping, head movements, dynamic shadows, fence occlusion, changing illumination, and interference from nearby herd members frequently confound the delicate respiratory signal. In standard video action recognition tasks, large visual backbones exploit scene semantics, appearance, and macroscopic object trajectories. However, respiration rate is a latent physiological variable inferred strictly from weak periodic deformations rather than visible semantic categories. When conventional visual representations encounter livestock video across different facilities, variations in camera angles, shooting distances, background clutter, postures, and lighting cause severe performance degradation. To overcome these obstacles, the research team designed a visual front end that systematically separates target livestock from background clutter, suppresses visual interference, and isolates animal-centered motion dynamics before conducting physiological frequency analysis.
The visual processing pipeline initiates track extraction by processing multi-animal video streams through a YOLOv8x object detection architecture targeting cattle, paired with BoT-SORT tracking to maintain persistent identity trajectories over time. To ensure that localized breathing motions near the torso boundary are preserved, the system expands all detected bounding boxes by fifteen percent. Each isolated tracklet is subsequently segmented using Segment Anything Model 2.1 Large operating in a frozen, zero-shot configuration guided by bounding-box prompts without fine-tuning. By suppressing external pixels, background clutter from soil, fencing, and adjacent cattle is eliminated, converting the animal track into a standardized 160 by 120 grayscale cutout against a zero-valued background. To amplify faint respiratory oscillations, the normalized sequence undergoes Eulerian Video Magnification utilizing a three-level Gaussian pyramid, a fourth-order Butterworth bandpass filter spanning 0.3 to 2.5 Hertz, and an amplification factor of twenty, generating motion-enhanced cutouts that feed into a multi-stream signal architecture.
To prevent reliance on any single motion cue that might fail when an animal shifts posture or turns away, the architecture extracts ten distinct, complementary one-dimensional respiratory signal views from each tracked animal. These views capture physical manifestations across whole-body motion, localized flank dynamics, optical deformation, frame differences, and silhouette geometry. Specifically, the framework computes motion-magnified optical flow, dense Farnebäck flow, raw frame differencing, bandpass-filtered frame differencing, optical strain, segmentation mask area, mask height, vertical mask-centroid displacement, flank-restricted motion magnification, and flank-restricted frame differences. Because apparent motion magnitude fluctuates with camera distance, target scale, and viewpoint, raw waveforms undergo robust conditioning before spectral analysis. Each temporal sequence is centered and scaled using median and median absolute deviation statistics rather than absolute motion amplitudes, followed by a nonlinear hyperbolic tangent transformation to limit large excursions caused by head or leg motion. This conditioning preserves underlying periodic structure while insulating downstream estimators from non-respiratory motion outliers.
Following robust temporal conditioning, each signal view is transformed into the frequency domain using a Fourier magnitude spectrum calculated across 0.3 to 2.5 Hertz, corresponding to 18 to 150 breaths per minute. To maintain invariance against physical scale and camera distance, the system discards absolute spectral amplitudes in favor of seven compact spectral descriptors per view: the dominant respiration rate peak frequency, the in-band signal-to-noise ratio, the frequencies of the three strongest peaks, and two relative peak-magnitude ratios. Rather than pooling heterogeneous physical features into a single composite representation, the base estimator, termed SiVeR, trains separate lightweight regressors for each individual signal view. Four algorithms are evaluated within the regression pool: k-nearest neighbors, histogram gradient boosting, ridge regression, and support vector regression. Using animal-grouped cross-validation on training animals, SiVeR selects the optimal regressor for each view and calculates the final prediction via median aggregation across all ten views, effectively rejecting erroneous outlier estimates caused by localized occlusion.
To overcome the statistical challenges of limited and imbalanced livestock training data, the investigators formulated two advanced model variants: SiVeR-10+ and SiVeR-10+ST. In cattle herds, respiration rates cluster heavily within the mid-range, causing standard regression models to underperform at physiologically critical low and high extremes. SiVeR-10+ addresses this by applying inverse respiration-rate frequency weighting across ten-breath-per-minute intervals during training and averaging predictions across all four regression models per view. Building further upon this foundation, SiVeR-10+ST incorporates semi-supervised self-training using an auxiliary unlabeled cohort of eighty-six one-minute clips from seventeen cattle. Because teacher predictions on auxiliary footage suffer from range compression, SiVeR-10+ST applies pseudo-label distribution alignment, ranking teacher estimates and mapping them via linear interpolation onto the empirical distribution of labeled training animals. The student model is retrained on combined labeled and pseudo-labeled data under rarity weighting, concluding with a training-only linear calibration fitted from out-of-fold cross-validation predictions to correct residual scale distortion.
Validating physiological video models requires rigorous experimental controls to prevent subtle data leakage and over-optimistic performance reporting. Reference respiration rates, spanning 20 to 108 breaths per minute, were established through synchronized visual observation by trained observers and normalized by continuous visibility durations. To rigorously assess generalization, the authors implemented a protocol of 120 repeated animal-disjoint partitions, executing 12 complementary two-domain training runs per partition to generate 1,440 evaluation instances. This benchmark explicitly separated seen-domain generalization on held-out animals from familiar farm environments from transfer to completely unseen recording domains excluded from supervised training.
Quantitative benchmarking revealed a stark contrast between generic visual representations and specialized signal-aware estimators under domain shift. Leading foundation visual encoders, including pooled DINOv2 and VideoMAE features, collapsed when evaluated on unseen farm domains, yielding negative Pearson correlations of -0.18 and -0.13 alongside mean absolute errors exceeding 14.9 breaths per minute. Conventional flank-tracking and motion-spectrum baselines demonstrated superior stability, attaining unseen-domain correlations between 0.20 and 0.26. In contrast, the signal-aware framework achieved substantial improvements: base SiVeR reached an unseen-domain correlation of 0.37 with 11.9 breaths per minute mean absolute error. SiVeR-10+ elevated unseen correlation to 0.45 through rarity weighting and regressor ensembling. SiVeR-10+ST delivered the strongest overall accuracy, registering a correlation of 0.46 and 11.5 breaths per minute error on unseen domains, while reaching a correlation of 0.52 and 10.9 breaths per minute error across combined test data. Cluster-bootstrap analysis and corrected resampled tests confirmed that self-training significantly reduced absolute error by approximately 0.5 breaths per minute.
Granular error analysis and ablation experiments illustrated critical nuances across recording environments, camera placements, and physiological extremes. On Farm-B, where researchers evaluated sixteen synchronized dual-camera events across seven cattle, paired-view late fusion averaging reduced mean absolute error for SiVeR-10+ST from 9.6 to 8.7 breaths per minute while boosting correlation from 0.41 to 0.50. However, examining individual cohorts revealed distinct failure modes: Farm-A exhibited strong rank correlation at 0.86 despite an error of 13.59 breaths per minute, whereas Farm-D achieved a low error of 6.61 breaths per minute but near-zero correlation due to narrow reference variance. Furthermore, partitioning errors across respiration rates uncovered systematic range compression. In the central range of 50 to 70 breaths per minute, SiVeR-10+ST achieved high precision with an error of 5.54 breaths per minute and negligible bias of -0.25 breaths per minute, whereas errors escalated to 20.89 breaths per minute below 50 breaths per minute and 19.06 breaths per minute above 70 breaths per minute.
Computational profiling of the complete SiVeR-10+ST pipeline demonstrated an average processing latency of 71.8 seconds per clip, operating with a peak graphics memory footprint of 2.23 gigabytes and an average power draw of 165 watts. Profiling confirmed that detection, tracking, and segmentation accounted for most computational overhead, whereas spectral feature extraction and regression executed with minimal delay. In outlining study limitations, the authors emphasize that while the benchmark encompassed 75 cattle across four distinct sites under institutional animal care approval, broader multi-breed and multi-season trials remain necessary before commercial deployment. The reliance on synchronized visual counts for ground truth, prediction errors at extreme physiological thresholds, and front-end computational demands represent ongoing challenges for real-time edge hardware. Nevertheless, this signal-aware methodology establishes a rigorous foundation for continuous non-invasive livestock monitoring, demonstrating that combining complementary physical signal views with robust aggregation enables commodity cameras to track vital bovine physiological health without disrupting commercial farm operations.
Subject of Research: Non-contact cattle respiration rate estimation from commodity RGB video using multi-signal computer vision.
Article Title: Signal-aware cattle respiration rate estimation from commodity RGB video
Article References: Palem, R. R., Bhowmick, D., Garcia-Ascolani, M. E., Lalman, D., Ramanathan, R., & Aakur, S. N. (2026). Signal-aware cattle respiration rate estimation from commodity RGB video. Smart Agricultural Technology, 15, Article 102764. https://doi.org/10.1016/j.atech.2026.102764
Image Credits: AI Generated
DOI: 10.1016/j.atech.2026.102764
Keywords: cattle respiration rate, precision livestock farming, computer vision, Eulerian video magnification, non-contact physiological monitoring, respiratory signal extraction, multi-animal tracking, bovine welfare, heat stress detection, RGB video analysis, semi-supervised learning, cross-domain generalization, spectral feature analysis, optical flow, animal health monitoring, segmentation masks, pseudo-label distribution alignment
News Source: William Thompson. (November 26, 2026). Signal-Aware Computer Vision Tracks Cattle Respiration From Standard Farm Video. Scienmag.
