Livestock Image Behaviour (LIB): An Open Science Initiative for Developing AI-Based Computer Vision Tools in Livestock Farming
Abstract
AI technologies are expending at an incredible speed. There is still far too little consultation on the objectives and fields of application for these tools. Currently dominated by cutting-edge companies, they do not yet seem to be subject to public debate. It is also difficult to clearly define the role of public research in these developments. Yet, the capacity of research institutions to produce data in cutting-edge areas of public interest is real. And when it comes to AI, the question of data is central. Since there can sometimes be a significant gap between areas of application that generate immediate revenue and those that improve society, the latter could be impacted much later if no action is taken at the public level. Public research has many options for getting involved; here, we propose exploring the creation of datasets to train image analysis AI models. We operate on the assumption that the models available today are already highly performing, and that the challenge lies more in retraining them to be effective in specific application fields, rather than the recognition of common objects in everyday scenes. We explore the question of livestock monitoring, with the aim of improving their health and welfare management, as well as being able to study their behavior more finely. In this field, many proofs of concept already exist, but the models used can rarely be generalized—meaning they cannot easily be reused in contexts other than that of the specific study, or for the long terms. To reach this stage, these models must be trained on high-quality datasets, meaning they are free of annotation errors and feature a wide diversity of examples. If all the data collected across these various studies were pooled together, we would likely already have a sufficient dataset. Unfortunately, this requires coordination, if only to standardize the annotations themselves. It also demands infrastructure to store and manage the exchange of data, as well as a shared willingness to work together toward developing such tools. It is within this context that the LIB (Livestock Image Behavior) project was born: to contact as many research teams as possible and propose pooling their data. The project was able to rely on human resources for annotation, hardware and infrastructure for data management, and a network of experimental farms for image acquisition. This project, which should be viewed as a starting point, or a proof pf concept, rather than a finished process, has brought together 66,514 images with pigs (46.6%), small ruminants (30.1%), cattle (9.7%) and mixed-species (2.2%). As well as 11.4% of the images containing only humans. The dataset was annotated for head and body livestock detection, piglets, as well as posture, between standing, lying and transition. The LIB dataset was separated into 80% training, 10% validation and 10% test sets, to train a large Yolo model. The average f1-score was estimated to 84% on the LIB test set. The same model was then evaluated on published independent datasets, with scenes not present in the LIB dataset. Three dataset was used, one for pigs, cattle and sheep. The model reached a f1-score greater than 90% confirming its capacity to generelize to unknown scenes. The dataset, as well as the trained model, and a Python application to help analyzing data using these models are available on a public dataset. We hope the LIB project will stimulate this type of initiative, and help the research community to provide practicle solutions based on AI to improve livestock farming and animal welfare in general.
Related
- Key insights into biosecurity risks, communication preferences and behaviour change drivers among livestock transporters in Australia
- ASAS-NANP SYMPOSIUM: mathematical modeling in animal nutrition—data-efficient computer vision for precision livestock farming
- From embryo flushing to in vitro production: global trends in livestock reproductive biotechnology
- Livestock depredation frequency is negatively associated with wolf body mass
- Environmental Frass Remodels the Larval Gut Microbiome to Enable Black Soldier Fly (Hermetia illucens) Bioconversion of Livestock Manure
BibTeX
@misc{bonneau2026livestock,
title = {{Livestock Image Behaviour (LIB): An Open Science Initiative for Developing AI-Based Computer Vision Tools in Livestock Farming}},
author = {Mathieu Bonneau and Téo Cochou and Nadège Aigueperse and François Laperruque and Nathalie Minatchy and Adrien Lebreton and Frédéric Herault},
howpublished = {HAL},
year = {2026},
month = nov,
doi = {10.17180/50n1-},
url = {https://hal.inrae.fr/hal-05671506v2},
note = {CC BY 4.0},
}
RIS
TY - UNPB
TI - Livestock Image Behaviour (LIB): An Open Science Initiative for Developing AI-Based Computer Vision Tools in Livestock Farming
AU - Mathieu Bonneau
AU - Téo Cochou
AU - Nadège Aigueperse
AU - François Laperruque
AU - Nathalie Minatchy
AU - Adrien Lebreton
AU - Frédéric Herault
PY - 2026
DA - 2026/11/25
PB - HAL
DO - 10.17180/50n1-
UR - https://hal.inrae.fr/hal-05671506v2
AB - AI technologies are expending at an incredible speed. There is still far too little consultation on the objectives and fields of application for these tools. Currently dominated by cutting-edge companies, they do not yet seem to be subject to public debate. It is also difficult to clearly define the role of public research in these developments. Yet, the capacity of research institutions to produce data in cutting-edge areas of public interest is real. And when it comes to AI, the question of data is central. Since there can sometimes be a significant gap between areas of application that generate immediate revenue and those that improve society, the latter could be impacted much later if no action is taken at the public level. Public research has many options for getting involved; here, we propose exploring the creation of datasets to train image analysis AI models. We operate on the assumption that the models available today are already highly performing, and that the challenge lies more in retraining them to be effective in specific application fields, rather than the recognition of common objects in everyday scenes. We explore the question of livestock monitoring, with the aim of improving their health and welfare management, as well as being able to study their behavior more finely. In this field, many proofs of concept already exist, but the models used can rarely be generalized—meaning they cannot easily be reused in contexts other than that of the specific study, or for the long terms. To reach this stage, these models must be trained on high-quality datasets, meaning they are free of annotation errors and feature a wide diversity of examples. If all the data collected across these various studies were pooled together, we would likely already have a sufficient dataset. Unfortunately, this requires coordination, if only to standardize the annotations themselves. It also demands infrastructure to store and manage the exchange of data, as well as a shared willingness to work together toward developing such tools. It is within this context that the LIB (Livestock Image Behavior) project was born: to contact as many research teams as possible and propose pooling their data. The project was able to rely on human resources for annotation, hardware and infrastructure for data management, and a network of experimental farms for image acquisition. This project, which should be viewed as a starting point, or a proof pf concept, rather than a finished process, has brought together 66,514 images with pigs (46.6%), small ruminants (30.1%), cattle (9.7%) and mixed-species (2.2%). As well as 11.4% of the images containing only humans. The dataset was annotated for head and body livestock detection, piglets, as well as posture, between standing, lying and transition. The LIB dataset was separated into 80% training, 10% validation and 10% test sets, to train a large Yolo model. The average f1-score was estimated to 84% on the LIB test set. The same model was then evaluated on published independent datasets, with scenes not present in the LIB dataset. Three dataset was used, one for pigs, cattle and sheep. The model reached a f1-score greater than 90% confirming its capacity to generelize to unknown scenes. The dataset, as well as the trained model, and a Python application to help analyzing data using these models are available on a public dataset. We hope the LIB project will stimulate this type of initiative, and help the research community to provide practicle solutions based on AI to improve livestock farming and animal welfare in general.
ER -