arrow
Return

Cattle behavior classification using Hidden Markov Models

delete2026-06-01
delete0
PRE
AI
L
Lipinski, Thomas
A
Ali Yalçin *
D
Davis, Noah G.
S
Samuel A. Wyffels
T
Timothy DelCurto
DOI:10.1016/j.compag.2026.112113delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
The increasing demand for meat production necessitates more sustainable and data-driven livestock management practices. Precision Livestock Farming (PLF) leverages sensor technologies and computational methods to monitor individual animals, enhancing productivity and welfare. In this study, we use Hidden Markov Models (HMMs) to classify free-range cattle behavior using GPS and tri-axial accelerometer data collected from 22 Angus-based cows over a nine-week winter period in western Montana, USA. Following model validation, HMMpredicted behavioral states were used to examine large-scale behavioral patterns across the entire dataset. The analysis revealed pronounced diurnal activity cycles, temperature-dependent shifts in behavior, and significantly greater nighttime grazing activity during full moon periods. Generalized Linear Mixed Models (GLMMs) further demonstrated significant interactions between temperature and time of day, showing that cattle increasingly shifted grazing activity toward cooler periods as temperatures increased. These findings provide insight into how environmental conditions influence free-range cattle behavior and demonstrate the value of sensor-based monitoring for precision grazing management. To enable this analysis, we engineered four features; step size, turning angle, and the mean and variance of Signal Vector Magnitude (SVM), and used these in a three-state HMM to classify grazing, resting, and traveling behaviors. Model development was conducted using leaveone-out cross-validation to assess generalizability across individuals, achieving an average classification accuracy of 92.72%. Our findings demonstrate the utility of HMMs as robust, transparent, and computationally efficient tools for cattle behavior classification in extensive rangeland settings. The approach holds promise for real-time PLF applications such as early anomaly detection, resource allocation, and adaptive grazing management.
Keywords:
Precision livestock farming
Hidden Markov Models
Cattle behavior classification
Time series data analysis
Accelerometer and GPS data
Diurnal activity patterns

Journal

Computers and Electronics in Agriculture cover
Computers and Electronics in Agriculture
IF:
8.9
Papers:
1.0W
Citations:
4.8W

Organization

M
montana state university bozeman
Scholars:
3.9K
Papers: 2.9K
Citations: 3
M
Montana State University System
Scholars:
5.8K
Papers: 4.6K
Citations: 5
Cited Papers

Cited Papers

No cited papers available