Introduction #
The authors of the Goat Images Dataset emphasize the significance of automatic individual animal identification in the context of livestock farming, with its potential to enhance breeding histories and contribute substantially to breeding and genetic management programs. In the current livestock identification practices, such as the utilization of various tags, tattoos, paint brands, and microchips, manual identification processes prevail, characterized by their time-consuming, expensive, and unreliable nature. In their research, authors present a deep learning-based solution, offering a fully automated pipeline for the detection and recognition of goats’ faces, a task more complex than human face recognition due to the high similarity among individual goats.
In the broader context of livestock farming, the automatic identification of individual animals has become a pivotal element, enabling comprehensive data collection and report generation to support farm management. While historical methods like tag identification have been employed, they pose challenges when applied to animals kept in groups, such as goats, as individual observation and data collection become arduous. To overcome this challenge, researchers are turning to deep learning techniques, which have found application in various aspects of animal farming, including biometric identification, activity monitoring, body condition scoring, and behavioral analysis.
The use of deep learning algorithms is gaining traction across the animal industry, addressing identification challenges by focusing on specific body parts, such as sheep retinas, cattle body patterns, and pig faces. However, challenges persist in obtaining clear and comprehensive datasets for these methods in real-world, uncontrolled environments. As of January 2022, the performance of CNNs for individual goat identification using facial images remains unexplored. The paper aims to extract robust features that enhance the distinguishability between individual goats in facial images. The proposed methodology comprises two primary steps: face detection and identity recognition. Given an input image, the first step involves the detection of faces and facial landmarks using a Yolo-based method, followed by cropping these regions into fixed segments. Facial landmarks serve to geometrically normalize the face. Ultimately, a custom CNN model extracts features for the detected regions and predicts classification probabilities. Notably, the approach covers not only face recognition but also automatic face detection and alignment based on the eye centroid, akin to human face recognition.
Two different types of image datasets are uploaded. The first dataset (dataset_1) is useful for detection purpose. This consists of a total 1680 goat image where the face, eye, mouth and ear bounding boxes are given in YOLO format. On the other hand, the second dataset (dataset_2) is for face recognition and facial expression analysis. In total 1311 images are captured from 10 individuals of a Chinese farm (34.2721° N, 108.0847° E).
Summary #
Goat Image Dataset is a dataset for object detection and identification tasks. It is used in the livestock industry, and in the biological research.
The dataset consists of 1767 images with 13761 labeled objects belonging to 4 different classes including face, ear, eye, and other: mouth.
Images in the Goat Image dataset have bounding box annotations. There are 87 (5% of the total) unlabeled images (i.e. without annotations). There are 2 splits in the dataset: dataset_1 (1680 images) and dataset_2 (87 images). Additionally, every image in dataset_2 contains information about goat_id. The dataset was released in 2020 by the Northwest A&F University, China.
![Dataset Poster](https://cdn.datasetninja.com/github/dataset-ninja/goat-image-dataset/main/visualizations/poster.png?width=1200)
Explore #
Goat Image dataset has 1767 images. Click on one of the examples below or open "Explore" tool anytime you need to view dataset images with annotations. This tool has extended visualization capabilities like zoom, translation, objects table, custom filters and more. Hover the mouse over the images to hide or show annotations.
![Sample image from Goat Image](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/M/i/Tq/93pE1KANBIhSuMlZEMBEnXaQLpfsG6kdVLYwUboFaJYUiZ762O1fheeUeJZFdI1SXOUcYXTvJ5BBv7Ysx7ovRZHFTd0eMTAAe4T5UEsi9XazDCcmYynV5N9hCPc1.jpg)
![Sample image from Goat Image](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/Z/1/2W/K3K5Zrup0sF9Y6KxaMnD5EWe5oVUtbSlOcfYO7hYhInYcKPwmMg3F0Y2CxdZ3EgzOEb0aVIGbY5HBrj0QAKQgQWSKUUpJeIurIrPCk5eUPQmIPO0IM9GjnjazQvB.jpg)
![Sample image from Goat Image](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/6/o/Li/cXayrh3252YTvKD91JD4l93VymLkDCmit7imbHtlzHWqJOptKZueQZlIfs1CWVvgFtGFsyYHpisuzqg43v8FP0V8BD13x43cu5UONU12jfpMPFHuVNzLJPJMs4Qv.jpg)
![Sample image from Goat Image](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/M/B/Ul/jOqpHs54fGC6nSgjVm0NFJTkS8Mrwid4SM1vD6coNHXM9edhA7xjENMHPzJzNopE24ZETNLuBGC5k9T3QcfCGK7rIXHAmQbNzymcVgWq5HUKyzTYq2EhDnMmCuPV.jpg)
![Sample image from Goat Image](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/F/s/Zr/OHVfvOct8pfLFH5vYliGmMODNegdj7Ux7UtblbE9Smer8zxPr7YHr51cQbdwM9bHgWMS0N3sSAENjyYLOXrpr2MAcqYDFdqkcYBDC0YkIWolT6foRi8aGOVWL1CJ.jpg)
![Sample image from Goat Image](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/9/a/NG/grPloB6vhCL4Z2KlCz1UkydBr94nHhsMxPtseOnz1mtaQg1nVjjkqVaE4358BwHgIJd7mapQs2vs8fXUC0BT6nPN16e6fkadXhs5wdmIdKhtjn9wW4EYFnm4WGTW.jpg)
![Sample image from Goat Image](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/i/q/VT/W2WTFYjHg16lRv8bAwVyIxcMoIiEVn9prE8EkEhtoDDgDt46Pq3Slnh7C28eh4ZVIGdt7ZNsyn9jsgtOTKhoORZ0FvrdY4TVaFRFboVlcYHzm7rZo1T79ibly60S.jpg)
![Sample image from Goat Image](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/X/t/e9/cnrHtuQAVeVUHTP1tZXbNKHJzDL8isC2DOs4tf54DpSmtmBc1ZuB2oirHgUPgvirgLyqG2l1Ck508UX7GAnSlLCBc4kzawav8txxaciw2YiPb4xU9CqG9dQj6s5D.jpg)
![Sample image from Goat Image](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/Y/K/Z9/cZ1Q6E7UultAiui3Y8oHKYr07DE47orS2BEtDdLWugSYVCNRW46jmSOle0ywBr9KcffoTW0mkb5j36NSquHZVnhYP1070Gwh0rSOgGVciDLGkoNWBgu4UL9yzxec.jpg)
![Sample image from Goat Image](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/k/4/bw/S8Boo311PMlGWSTA46vU2rn83yuEJKmLb4lymhqcERspbA4MZbYwsM4ksWxUvPz47bRSv2Ho2lMn5lLQDDwOkm6wEzOrNw9vJzLZD5HOaIYyzC5rcl13WrIwQWSB.jpg)
![Sample image from Goat Image](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/I/W/Gk/bVCn05OAmY3BEGl0LRpM5hRmoAh47MNiBo3CISeG1e0uvhOiQyjpBOjrPpxWY2Eiy9dqcs9NlRTAa0n3a6vu0xLYyShHSRkqKsUTw58pHCXJ3v7Z7ReBoqj6bLSC.jpg)
![Sample image from Goat Image](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/6/9/eE/cY61mPYTeNOgmAKcu871YMjNVrrCkysMDErdkiOmhalhnq47kOaeiDiGKcks9TychhwDlDhZJbQaLEPPbAWkQanrXvAJZA598FuBdiGpsANTRhXDuGtPpDNqBVZL.jpg)
![Sample image from Goat Image](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/p/w/G6/621gti8bpwjWhjZu7p46NyplBNgbYE0nJA0KlFiR8hHeZBWIUpQKsGE5pIP6xNoIEycmqEZLLL9UQuJRTTu1VA9kU6Y25AE4ilGB7vjZutpUpZKxRxPzrrbQByjT.jpg)
![Sample image from Goat Image](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/j/Q/BA/2l3YxusPCcFKvuHuey9A0xnT4KDiQ8w7v0k8CCvsUPGMTZllHv85vQBd1QLtNTrRB74JNLnZ91OlcJcMgUYFqoddqTVaahx48XyS1mahRZ7oEJf7IdwtsFxL027O.jpg)
![Sample image from Goat Image](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/q/F/yw/MzIIIxokA8Bf0Zwrrs6N3GyNwC2p1zLJ6R4I8HK1B6udMALzeoUIcwrzfWBvSDZWcJgX4fCiWmMB2MeMEBqv2bioZHW6FgVD7YRn0Dx4AmINQF4fGV6e0QCB6o9o.jpg)
![Sample image from Goat Image](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/y/q/4L/ikxV97umYwW1CYKDvX3tzoEz4t4phoSA1X9CRQB0Lvis5GQpWwHDI61NEnypbYnZ0gWg5cO23moe44G6Y4tq6ONDw1XaFlxhAp9ZP5A9RVrN7cjcSSAKUGtOvHrB.jpg)
![Sample image from Goat Image](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/o/5/Kb/iDSGp49vHAUrTT0y0kr9hutzcOUKK1BYwYBIwXnII8jr6iqdil1yMrQrWYqNpnfTaE6gc7wrWOjwfoq0K5kghPiK6nfmwzgpnMAFVIxxmqfEU0x4I9mL82zrxqF6.jpg)
![Sample image from Goat Image](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/e/I/Kx/6AlQ2g0C1573LpY5sbK3QWS7NHVlCNifYLseUTSPiGOCGG0uDvvHYU8bPUUnGUk5Ut01IyhHYO2JScYvyhxgT8zQaITh2MuBkQiIscOmvPVaLieG1102blEoNtTX.jpg)
![Sample image from Goat Image](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/w/W/BC/60nv1sVbc3QjA2GdMoZQotP6CCMdpv3CY6mhXImfuY3V1UuaoZ6YjGPTBjBOlbWe8PFmAUnEoFxvUJcrKCtBR5rZ5zUpwMUbMb3AGudxIqW79o48kUWQJs5eyJs7.jpg)
![Sample image from Goat Image](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/R/R/Hk/eghg1StTpZWAF6ZwB4Jgmz8eBe8OFxgJo8nXwmGTRjJCQ10NDG0m1HwXODrRqT8oLVNDlXp5XuXIvpTSyWfiVDsrTcZqRNjZxKfayd1j5OJIdtCHs18WaGin2jzc.jpg)
![Sample image from Goat Image](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/X/x/dx/UQcG2Nckm5f4U4tVez25tMeG5OxgrqtM6H1FkpDShW4Rrf222NsuKoV3AUXZgy17RFrtrXoLHBAlYGjb2KYcWaSYXqk9YoONmwt3l115dlrQRJIIFtFAPZXxhgPx.jpg)
![Sample image from Goat Image](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/5/e/C8/onorObcdyyVoo1BFcYmAhzI8vjf3pbd3cPvMMHcgtdOhArHJddoPCFmL88M8ILfOfm7dDZR8HHL2mmPxx8wZOt6fw3IGF7QUF3dEsTPGp32PKSjrGNUJWV1TBBFV.jpg)
![Sample image from Goat Image](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/H/J/Ek/SiuDV63xLyWgARQkOrCAuWlAsmJWlIs6WAyABh6TBSvUcL4bcqqsCfXggRI9VmBSSWhnGrBxV0tPuYNLRV12NKm8D03LgHXQdUIbtYwa6xAWcixN9lqxW315FcJk.jpg)
![Sample image from Goat Image](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/f/P/qb/o7bxrAdqppHD2iwxqGJyOl5GK4lrfFoVBxnuJlq7r7aMPkJKDYbWTwoFQNJJAPiOvx0uY4Az4j7KP5xOJ7ePxsArKNVsmbwhks3FudTUHzsPBZHIgDtFzfFOJLdZ.jpg)
![Sample image from Goat Image](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/X/4/u5/Amcoz4VAjhCZqX50ADNBtLwmyqs2hUvRFMofmZq9jtKhJmvODC22TBRjxqv4fGoY1IozZycU90usV020SRcPpKsxIXgrNuIbvjnkMBP0KTfOhGdLJh55O2sTnFHQ.jpg)
![Sample image from Goat Image](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/u/G/vJ/kxHlGoKOZDuVPzrKZbkrBfvVDhlMvzRSyt6MxFWGGmMRrdgYg12FnTDIjvtfv6JAIX5b0zksxSVoK4nOXSrMPcbi6E7BazgxivGBsWIrZQXVyJs0FBlu6xVbuYe0.jpg)
![Sample image from Goat Image](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/o/B/rv/r6vQzBhnKGs2sZLncxnN1JVprxeXPurIgXWeZhT3BLIExF3ajjlEqNXm02bPefQj0eTjHh4ihXJgwssJ0sPRt40pOBTL3sYj0tNi1ZzHn5AO3KFY0jmCDpUvk4C7.jpg)
![Sample image from Goat Image](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/o/C/Fu/UV56w0w0MRGD626iglVrExkTGoDnEndahXZqjtK3yBSOxPcw2wjmXk82ecqZd6b7qusAu5e2rLdphjtq8LNqPkAXJsyT8pO3Rmyh2iokf2AcXGsjC2YC6IVMnyFB.jpg)
![Sample image from Goat Image](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/S/f/zI/Lm5Ub7DoCsDDx1ung1JLwcWl4v53NTD3vVuP7nH6uQug423w51A0tVCdmGXR0fzMtBN4GQfqEUwMbTUMATljYwNCzJN06f8SRCCnQRBH67tunFq32iMkPSH4qCEH.jpg)
![Sample image from Goat Image](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/B/9/8C/Lptra8LCLVOC4Ryt5D0cFLsa3Ets5uCwh7voHtWAgy0BJ5Bw26uzHeB7QUF5893i6MHrkDt67EVd2SCGn4u06xIfuNOqoQ4GHPylW43NwiHpMbLbAdoivD3zejS1.jpg)
Class balance #
There are 4 annotation classes in the dataset. Find the general statistics and balances for every class in the table below. Click any row to preview images that have labels of the selected class. Sort by column to find the most rare or prevalent classes.
Class ㅤ | Images ㅤ | Objects ㅤ | Count on image average | Area on image average |
---|---|---|---|---|
face➔ rectangle | 1680 | 3078 | 1.83 | 6.56% |
ear➔ rectangle | 1655 | 4771 | 2.88 | 3.09% |
eye➔ rectangle | 1632 | 3326 | 2.04 | 0.57% |
mouth➔ rectangle | 1628 | 2586 | 1.59 | 1.13% |
Co-occurrence matrix #
Co-occurrence matrix is an extremely valuable tool that shows you the images for every pair of classes: how many images have objects of both classes at the same time. If you click any cell, you will see those images. We added the tooltip with an explanation for every cell for your convenience, just hover the mouse over a cell to preview the description.
Images #
Explore every single image in the dataset with respect to the number of annotations of each class it has. Click a row to preview selected image. Sort by any column to find anomalies and edge cases. Use horizontal scroll if the table has many columns for a large number of classes in the dataset.
Object distribution #
Interactive heatmap chart for every class with object distribution shows how many images are in the dataset with a certain number of objects of a specific class. Users can click cell and see the list of all corresponding images.
Class sizes #
The table below gives various size properties of objects for every class. Click a row to see the image with annotations of the selected class. Sort columns to find classes with the smallest or largest objects or understand the size differences between classes.
Class | Object count | Avg area | Max area | Min area | Min height | Min height | Max height | Max height | Avg height | Avg height | Min width | Min width | Max width | Max width |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ear rectangle | 4771 | 1.08% | 43.97% | 0.01% | 6px | 0.82% | 801px | 83.07% | 94px | 11.11% | 6px | 0.68% | 542px | 52.93% |
eye rectangle | 3326 | 0.28% | 19.67% | 0.01% | 6px | 0.94% | 482px | 62.76% | 41px | 5.02% | 7px | 0.73% | 321px | 31.35% |
face rectangle | 3078 | 3.61% | 85.28% | 0.01% | 8px | 1.11% | 860px | 100% | 152px | 18.62% | 6px | 0.62% | 881px | 92.99% |
mouth rectangle | 2586 | 0.71% | 22.59% | 0.01% | 5px | 0.78% | 445px | 65.15% | 58px | 7.15% | 6px | 0.77% | 380px | 39.97% |
Spatial Heatmap #
The heatmaps below give the spatial distributions of all objects for every class. These visualizations provide insights into the most probable and rare object locations on the image. It helps analyze objects' placements in a dataset.
![Spatial Heatmap](https://cdn.datasetninja.com/github/dataset-ninja/goat-image-dataset/main/stats/classes_heatmaps.png)
Objects #
Table contains all 13761 objects. Click a row to preview an image with annotations, and use search or pagination to navigate. Sort columns to find outliers in the dataset.
Object ID ㅤ | Class ㅤ | Image name click row to open | Image size height x width | Height ㅤ | Height ㅤ | Width ㅤ | Width ㅤ | Area ㅤ |
---|---|---|---|---|---|---|---|---|
1➔ | face rectangle | 384.jpg | 720 x 960 | 206px | 28.61% | 184px | 19.17% | 5.48% |
2➔ | face rectangle | 384.jpg | 720 x 960 | 95px | 13.19% | 130px | 13.54% | 1.79% |
3➔ | face rectangle | 384.jpg | 720 x 960 | 78px | 10.83% | 124px | 12.92% | 1.4% |
4➔ | eye rectangle | 384.jpg | 720 x 960 | 62px | 8.61% | 58px | 6.04% | 0.52% |
5➔ | eye rectangle | 384.jpg | 720 x 960 | 35px | 4.86% | 29px | 3.02% | 0.15% |
6➔ | eye rectangle | 384.jpg | 720 x 960 | 31px | 4.31% | 39px | 4.06% | 0.17% |
7➔ | mouth rectangle | 384.jpg | 720 x 960 | 65px | 9.03% | 71px | 7.4% | 0.67% |
8➔ | ear rectangle | 384.jpg | 720 x 960 | 176px | 24.44% | 85px | 8.85% | 2.16% |
9➔ | mouth rectangle | 384.jpg | 720 x 960 | 32px | 4.44% | 36px | 3.75% | 0.17% |
10➔ | mouth rectangle | 384.jpg | 720 x 960 | 46px | 6.39% | 44px | 4.58% | 0.29% |
License #
Citation #
If you make use of the Goat Image data, please cite the following reference:
Billah, Masum; Jiantao, Yu; Jiang, Yu (2020),
“Goat Image Dataset”,
Mendeley Data, V2,
doi: 10.17632/4skwhnrscr.2
If you are happy with Dataset Ninja and use provided visualizations and tools in your work, please cite us:
@misc{ visualization-tools-for-goat-image-dataset-dataset,
title = { Visualization Tools for Goat Image Dataset },
type = { Computer Vision Tools },
author = { Dataset Ninja },
howpublished = { \url{ https://datasetninja.com/goat-image-dataset } },
url = { https://datasetninja.com/goat-image-dataset },
journal = { Dataset Ninja },
publisher = { Dataset Ninja },
year = { 2024 },
month = { sep },
note = { visited on 2024-09-08 },
}
Download #
Dataset Goat Image can be downloaded in Supervisely format:
As an alternative, it can be downloaded with dataset-tools package:
pip install --upgrade dataset-tools
… using following python code:
import dataset_tools as dtools
dtools.download(dataset='Goat Image', dst_dir='~/dataset-ninja/')
Make sure not to overlook the python code example available on the Supervisely Developer Portal. It will give you a clear idea of how to effortlessly work with the downloaded dataset.
The data in original format can be downloaded here.
Disclaimer #
Our gal from the legal dep told us we need to post this:
Dataset Ninja provides visualizations and statistics for some datasets that can be found online and can be downloaded by general audience. Dataset Ninja is not a dataset hosting platform and can only be used for informational purposes. The platform does not claim any rights for the original content, including images, videos, annotations and descriptions. Joint publishing is prohibited.
You take full responsibility when you use datasets presented at Dataset Ninja, as well as other information, including visualizations and statistics we provide. You are in charge of compliance with any dataset license and all other permissions. You are required to navigate datasets homepage and make sure that you can use it. In case of any questions, get in touch with us at hello@datasetninja.com.