NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Analyzing Cattle Activity Patterns with Ear Tag Accelerometer Data

Shuwen Hu, Antônio Reverter, Reza Arablouei, Greg Bishop-Hurley, Jody McNally, Flavio A. P. Alvarenga, Aaron InghamAnimals 2024

TL;DR

This paper explores how different signal processing techniques and statistical features derived from ear-tag accelerometers can accurately capture cattle activity patterns. They found that high-pass filtering to remove gravity's influence and using the median as a statistical feature significantly improves the clarity and consistency of these activity profiles, which is crucial for monitoring animal health and welfare.

What Problem Does This Paper Address?

Precision livestock farming (PLF) relies heavily on wearable sensors, like accelerometers, to monitor animal health, welfare, and productivity. Accelerometers can track physical movement, offering insights into behaviors like grazing, ruminating, and even detecting early signs of disease or estrus. However, raw accelerometer data is noisy and heavily influenced by gravity. Extracting meaningful activity patterns requires careful consideration of data preprocessing (like filtering) and the choice of statistical features (mean, median, standard deviation, etc.) to represent the activity within specific time windows. This paper addresses the challenge of identifying the most effective combination of these methods for robustly characterizing cattle's diurnal activity patterns, which is a prerequisite for any anomaly detection or behavioral classification.

Methods

The researchers equipped Angus and Brahman steers with smart ear tags containing triaxial accelerometers. They collected data at a sampling frequency of 62.5 Hz. The core of their methodology involved:

  • Activity Magnitude Calculation: The Euclidean norm of the acceleration vector (ACC) was calculated from the x, y, and z axes.
  • Data Preprocessing: A crucial step was applying a high-pass Butterworth filter to remove the influence of gravity. This is a standard technique, but the paper emphasizes its importance for clear diurnal patterns.
  • Feature Extraction: Four statistical features were computed over 5-minute windows: mean, median, standard deviation (SD), and median absolute deviation (MAD) of the ACC (both unfiltered and filtered).
  • Activity Profiling: Hourly and daily (24-hour) activity profiles were generated by aggregating these features.
  • Daily Differential Activity (DDA): To quantify variations in activity throughout the day, they divided the 24-hour period into multiple equal-length intervals (from 2 to 96). The DDA measure was then calculated based on the differences between activity levels in these interval pairs, with components for the most prominent pair (DDA_p), the magnitude of that difference (DDA_v), and information entropy (DDA_e) to assess regularity.

Datasets

The study utilized data collected from two distinct experiments:

  1. Armidale, NSW, Australia (Temperate Climate): 7 Angus steers over 9 days in March 2020.
  2. Lansdown Research Station, QLD, Australia (Tropical Climate): 11 Brahman steers over 30 days in August-September 2020.

These datasets represent different environments, management practices (yarding vs. free-ranging), and cattle breeds, allowing for comparative analysis of activity patterns.

Key Insights and Ideas

  • Gravity is a Major Confounder: Raw accelerometer data is heavily skewed by gravity, making it difficult to discern true activity. High-pass filtering is essential to reveal the underlying movement patterns.
  • Median is King for Diurnal Patterns: When characterizing overall diurnal activity profiles, the median of the filtered acceleration proved to be the most robust and consistent feature across animals, providing clearer and less variable patterns compared to mean or standard deviation.
  • Environment Shapes Activity: Distinct diurnal patterns emerged between the temperate (Armidale) and tropical (Lansdown) environments, suggesting that management practices (like yarding vs. free-ranging) and climate significantly influence cattle behavior.
  • DDA Reveals Activity Dynamics: The Daily Differential Activity (DDA) metric offers a novel way to quantify the differences in activity throughout the day, providing insights into behavioral shifts and regularity.
  • Trade-offs in DDA: There's a trade-off between DDA_v (activity difference) and DDA_e (regularity). More intervals can increase DDA_v but might not always improve interpretability without sufficient data.

Key Results

  • Filtering Effectiveness: Figures 3-6 clearly show that unfiltered acceleration readings (median and mean) hover around 1g due to gravity, while filtered readings are centered near zero, demonstrating the effectiveness of high-pass filtering.
  • Environmental Differences: The Armidale cattle (temperate) showed a single major activity peak around midday, while Lansdown cattle (tropical) exhibited three distinct peaks (midnight, early morning, late afternoon).
  • Feature Consistency: The median of the filtered acceleration provided the most consistent activity profiles across individual animals within each environment. Standard deviation, while useful for detecting dynamic changes, showed more variability between animals.
  • DDA Pair Dominance: In Armidale, the D1N2 interval pair was the most frequent (46.9%) for activity differences, while in Lansdown, D2N1 dominated (45.5%). These pairs reflect the distinct daily routines in each location.
  • Sensitivity Analysis: The study suggests that a sufficient number of days (e.g., 7 for Armidale, 20 for Lansdown) and an appropriate number of intervals are needed for robust DDA calculations.

Limitations and Future Work

  • Elusive Underlying Causes: While differences in activity patterns were observed between environments, the precise underlying causes (breed, specific management, micro-environmental factors) remain elusive and require further investigation.
  • Management Impact: The study highlights the significant impact of management practices (e.g., yarding vs. free-ranging) on activity patterns, suggesting this is a key area for future research.
  • Feature Selection for Anomaly Detection: While the median is excellent for general diurnal patterns, the paper notes that features like SD might be more informative for detecting rapid changes indicative of disease or injury. Future work could explore optimal feature selection for specific applications.
  • DDA Optimization: Further research is needed to determine the optimal number of intervals and experiment days for obtaining robust and informative DDA values, balancing DDA_v and DDA_e.
  • Breed Differences: While two breeds were studied, a more comprehensive analysis across various breeds would be beneficial.

Summary updated

BibTeX
@inproceedings{hu2024analyzing,
  author = {Shuwen Hu and Antônio Reverter and Reza Arablouei and Greg Bishop-Hurley and Jody McNally and Flavio A. P. Alvarenga and Aaron Ingham},
  title = {{Analyzing Cattle Activity Patterns with Ear Tag Accelerometer Data}},
  booktitle = {Animals},
  year = {2024},
  doi = {10.3390/ani14020301},
}
Figure