PigReID: A benchmark dataset for pig reidentification in images: Part 1
Abstract
The PigReID dataset was designed to support the benchmarking of individual pig recognition algorithms across different temporal points, as introduced in the "A Large-Scale Longitudinal Dataset for Pig Tracking and Re-Identification" article. The dataset focuses on the challenge of identifying the same individual pig across various days and developmental stages. As part of this dataset, 74 unique individuals were randomly selected from the longitudinal study. For each selected pig, 250 images were randomly sampled for each imaging day in which the animal was present. To standardise the input and ensure only a single animal is present per image for re-identification models, each pig was cropped from the original high-resolution frames and scaled to fit within a 1,024 x 1,024 frame with black background. This centering and scaling process maintains the original aspect ratio of the animal while providing a consistent input size for deep learning architectures. The resulting dataset contains an average of 1,783 ± 307 images per identity. The data is organised into directories named by the pig's group number and Electronic Identification (EID) assigned to the animal. Each image is provided in .png format, with the filename containing the camera metadata, date, time, and frame index to facilitate temporal tracking and cross-day validation. The dataset has been split into groups for easier navigation and better size management. This dataset was extended as part of a companion research paper and is available at: https://doi.org/10.5281/zenodo.20415926. The full original dataset is hosted by UWE Bristol Research Data Repository: https://researchdata.uwe.ac.uk/id/eprint/791/. Additional components of the broader dataset ecosystem include: PigDetect — https://zenodo.org/records/18155376 PigTracking — https://zenodo.org/records/18155637 PigReID Part 1 — https://zenodo.org/records/18224572 PigReID Part 2 — https://zenodo.org/records/18224572 These related datasets provide complementary resources for pig detection, tracking, and ReID tasks and form the wider context in which this dataset extension was developed.
Fields of Study & Subjects
Smart Agriculture and AI
Video Surveillance and Tracking Methods
Advanced Neural Network Applications
Publication details
- Journal / source
- Zenodo (CERN European Organization for Nuclear Research)
- Publication date
- 12 January 2026
- Language
- EN
- Document type
- Dataset