Livestock behaviour forecasting via generative artificial intelligence

• Transformer-type models, particularly Autoformer, effectively predicted hourly cattle behaviour profiles from real-world datasets • The models effectively captured general behavioural patterns and exhibited potential for improvement in predicting more subtle variations • Their effectiveness in data imputation further underscored their utility in providing reliable estimates for missing behaviour data • The application of Transformer-type models can support more ethical and sustainable livestock management practices, reducing the need for extensive animal trials and improving overall animal welfare Recent advancements in sensor technology and generative artificial intelligence (AI) are transforming precision livestock farming by enhancing behaviour monitoring and predictive analytics. This study examines the effectiveness of Transformer-type generative AI models in predicting cattle behaviour profiles and imputing missing data from collar accelerometer readings collected during two trials in Queensland, Australia, in 2022 and 2023, alongside climatic data. Each trial involved 60 cattle equipped with collars that classified six core behaviours: grazing, ruminating, walking, resting, drinking, and other over five-second time windows. Hourly behaviour profiles were constructed for each animal and experiment day by aggregating the behaviour predictions over every calendar hour, representing the time spent on each behaviour within each hour. Subsequently, four Transformer-type models (i.e., standard Transformer, Informer, Reformer, and Autoformer) were trained on the hourly behaviour profile data to predict behaviour profiles of the next 24 hours for each animal. Among the considered models, Autoformer showed the highest predictive accuracy when including climate data, achieving a mean absolute error (MAE) of less than 5.5 minutes, while the next best model had an MAE of approximately 6 minutes. For imputing missing data, the standard Transformer outperformed traditional imputation methods, with an MAE of less than 30 minutes over 24 hours, compared to 40 to 70 minutes for traditional methods (mean, median, and linear interpolation). These results highlight the potential of generative AI, particularly Autoformer and Transformer, to enhance predictive accuracy and data imputation in livestock management, thereby supporting regulatory guidance for data-driven decision-making and improved farming practices.

Authors

Institutions

Publication Details

Journal
Smart Agricultural Technology
Published
2025-05-05
DOI
https://doi.org/10.1016/j.atech.2025.100987
Citations
8
Primary Topic
Genetic and phenotypic traits in livestock
Type
article
Field-Weighted Citation Impact
14.54
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Livestock behaviour forecasting via generative artificial intelligence

Heinz Bernhardt, Kieren McCosker, Aaron B. Ingham, Reza Arablouei et al.
8 citations
Smart Agricultural Technology
Genetic and phenotypic traits in livestock
14.54
article

Livestock behaviour forecasting via generative artificial intelligence

Heinz Bernhardt, Kieren McCosker, Aaron B. Ingham, Reza Arablouei, Regina Eckhardt
article en
8 citations

Abstract

• Transformer-type models, particularly Autoformer, effectively predicted hourly cattle behaviour profiles from real-world datasets • The models effectively captured general behavioural patterns and exhibited potential for improvement in predicting more subtle variations • Their effectiveness in data imputation further underscored their utility in providing reliable estimates for missing behaviour data • The application of Transformer-type models can support more ethical and sustainable livestock management practices, reducing the need for extensive animal trials and improving overall animal welfare Recent advancements in sensor technology and generative artificial intelligence (AI) are transforming precision livestock farming by enhancing behaviour monitoring and predictive analytics. This study examines the effectiveness of Transformer-type generative AI models in predicting cattle behaviour profiles and imputing missing data from collar accelerometer readings collected during two trials in Queensland, Australia, in 2022 and 2023, alongside climatic data. Each trial involved 60 cattle equipped with collars that classified six core behaviours: grazing, ruminating, walking, resting, drinking, and other over five-second time windows. Hourly behaviour profiles were constructed for each animal and experiment day by aggregating the behaviour predictions over every calendar hour, representing the time spent on each behaviour within each hour. Subsequently, four Transformer-type models (i.e., standard Transformer, Informer, Reformer, and Autoformer) were trained on the hourly behaviour profile data to predict behaviour profiles of the next 24 hours for each animal. Among the considered models, Autoformer showed the highest predictive accuracy when including climate data, achieving a mean absolute error (MAE) of less than 5.5 minutes, while the next best model had an MAE of approximately 6 minutes. For imputing missing data, the standard Transformer outperformed traditional imputation methods, with an MAE of less than 30 minutes over 24 hours, compared to 40 to 70 minutes for traditional methods (mean, median, and linear interpolation). These results highlight the potential of generative AI, particularly Autoformer and Transformer, to enhance predictive accuracy and data imputation in livestock management, thereby supporting regulatory guidance for data-driven decision-making and improved farming practices.

Smart Agricultural TechnologyVol. 11
Commonwealth Scientific and Industrial Research Organisation (AU), The University of Queensland (AU), Agriculture and Food (AU), ARC Centre of Excellence for Plant Success in Nature and Agriculture (AU), Data61 (AU), Technical University of Munich (DE)
Zero hunger
Openalex Percentile: Top 1%
Genetic and phenotypic traits in livestock
14.54
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.