Related Experiment Video
Updated: Jan 11, 2026

The Use of Traditional Fear Tests to Evaluate Different Emotional Circuits in Cattle
Published on: April 22, 2020
Artificial Intelligence and Circadian Thresholds for Stress Detection in Dairy Cattle
Samuel Lascano Rivera1,2, Luis Rivera2,3, Hernán Benavides1
1Research Department, State Polytechnic University of Carchi, Tulcán 040101, Ecuador.
None:
This study investigates stress detection in dairy cattle by integrating circadian rhythm analysis and deep learning. Behavioral biomarkers, including feeding, resting, and rumination, were continuously monitored using Nedap CowControl sensors over a 12-month period to capture seasonal variability. Circadian features were extracted using the Fast Fourier Transform (FFT), and deviations from expected 24 h patterns were quantified using Euclidean distance. These features were used to train a Long Short-Term Memory (LSTM) neural network to classify stress into three levels: normal, mild, and high. Expert veterinary observations of anomalous behaviors and environmental records were used to validate stress labeling. We continuously monitored 10 lactating Holstein cows for 365 days, yielding 87,600 raw hours and 3650 cow-days (one day per cow as the analytical unit). The Short-Time Fourier Transform (STFT, 36 h window, 1 h step) was used solely to derive daily circadian characteristics (amplitude, phase, coherence); STFT windows are not statistical samples. A 60 min window prior to stress onset was incorporated to anticipate stress conditions triggered by management practices and environmental stressors, such as vaccination, animal handling, and cold stress. The proposed LSTM model achieved an accuracy of 82.3% and an AUC of 0.847, outperforming a benchmark logistic regression model (65% accuracy). This predictive capability, with a one-hour lead time, provides a critical window for preventive interventions and represents a practical tool for precision livestock farming and animal welfare monitoring.
Related Concept Videos
Stress Response System
Alarm stage
In the alarm stage, the body's...
Circadian Rhythms and Gene Regulation
Physiological Foundation of Stress
Role of the Sympathetic Nervous System
Adrenaline triggers the...
Biological Clocks and Seasonal Responses

