Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code:   StreamingRowsError
Exception:    CastError
Message:      Couldn't cast
images: list<item: struct<id: int64, file_name: string, width: int64, height: int64, folder: string, frame_i (... 11 chars omitted)
  child 0, item: struct<id: int64, file_name: string, width: int64, height: int64, folder: string, frame_id: string>
      child 0, id: int64
      child 1, file_name: string
      child 2, width: int64
      child 3, height: int64
      child 4, folder: string
      child 5, frame_id: string
annotations: list<item: struct<id: int64, image_id: int64, category_id: int64, keypoints: list<item: int64>, num_ (... 74 chars omitted)
  child 0, item: struct<id: int64, image_id: int64, category_id: int64, keypoints: list<item: int64>, num_keypoints:  (... 62 chars omitted)
      child 0, id: int64
      child 1, image_id: int64
      child 2, category_id: int64
      child 3, keypoints: list<item: int64>
          child 0, item: int64
      child 4, num_keypoints: int64
      child 5, bbox: list<item: double>
          child 0, item: double
      child 6, area: double
      child 7, iscrowd: int64
categories: list<item: struct<id: int64, name: string, supercategory: string, keypoints: list<item: string>, ske (... 38 chars omitted)
  child 0, item: struct<id: int64, name: string, supercategory: string, keypoints: list<item: string>, skeleton: list (... 26 chars omitted)
      child 0, id: int64
      child 1, name: string
      child 2, supercategory: string
      child 3, keypoints: list<item: string>
          child 0, item: string
      child 4, skelet
...
tag: string
      child 1, temperature_f: double
02_01: struct<0001: struct<cow_tag: string, temperature_f: double>, 0002: struct<cow_tag: string, temperatu (... 446 chars omitted)
  child 0, 0001: struct<cow_tag: string, temperature_f: double>
      child 0, cow_tag: string
      child 1, temperature_f: double
  child 1, 0002: struct<cow_tag: string, temperature_f: double>
      child 0, cow_tag: string
      child 1, temperature_f: double
  child 2, 0006: struct<cow_tag: string, temperature_f: double>
      child 0, cow_tag: string
      child 1, temperature_f: double
  child 3, 0007: struct<cow_tag: string, temperature_f: double>
      child 0, cow_tag: string
      child 1, temperature_f: double
  child 4, 0008: struct<cow_tag: string, temperature_f: double>
      child 0, cow_tag: string
      child 1, temperature_f: double
  child 5, 0009: struct<cow_tag: string, temperature_f: double>
      child 0, cow_tag: string
      child 1, temperature_f: double
  child 6, 0010: struct<cow_tag: string, temperature_f: double>
      child 0, cow_tag: string
      child 1, temperature_f: double
  child 7, 0011: struct<cow_tag: string, temperature_f: double>
      child 0, cow_tag: string
      child 1, temperature_f: double
  child 8, 0012: struct<cow_tag: string, temperature_f: double>
      child 0, cow_tag: string
      child 1, temperature_f: double
  child 9, 0013: struct<cow_tag: string, temperature_f: double>
      child 0, cow_tag: string
      child 1, temperature_f: double
to
{'02_01': {'0001': {'cow_tag': Value('string'), 'temperature_f': Value('float64')}, '0002': {'cow_tag': Value('string'), 'temperature_f': Value('float64')}, '0006': {'cow_tag': Value('string'), 'temperature_f': Value('float64')}, '0007': {'cow_tag': Value('string'), 'temperature_f': Value('float64')}, '0008': {'cow_tag': Value('string'), 'temperature_f': Value('float64')}, '0009': {'cow_tag': Value('string'), 'temperature_f': Value('float64')}, '0010': {'cow_tag': Value('string'), 'temperature_f': Value('float64')}, '0011': {'cow_tag': Value('string'), 'temperature_f': Value('float64')}, '0012': {'cow_tag': Value('string'), 'temperature_f': Value('float64')}, '0013': {'cow_tag': Value('string'), 'temperature_f': Value('float64')}}, '02_06': {'0001': {'cow_tag': Value('string'), 'temperature_f': Value('float64')}, '0002': {'cow_tag': Value('string'), 'temperature_f': Value('float64')}}, '02_13': {'0001': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0002': {'cow_tag': Value('string'), 'temperature_f': Value('float64')}, '0003': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0004': {'cow_tag': Value('string'), 'temperature_f': Value('float64')}, '0005': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0006': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0007': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0008': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0009': {'cow_tag': Value
...
: Value('null')}, '0076': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0077': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0078': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0079': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0080': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0082': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0083': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0084': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0085': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0086': {'cow_tag': Value('string'), 'temperature_f': Value('float64')}, '0087': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0088': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0089': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0090': {'cow_tag': Value('string'), 'temperature_f': Value('float64')}, '0091': {'cow_tag': Value('string'), 'temperature_f': Value('float64')}, '0092': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0093': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0094': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0095': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0096': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0097': {'cow_tag': Value('string'), 'temperature_f': Value('float64')}}}
because column names don't match
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 99, in get_rows_or_raise
                  return get_rows(
                         ^^^^^^^^^
                File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
                  return func(*args, **kwargs)
                         ^^^^^^^^^^^^^^^^^^^^^
                File "/src/services/worker/src/worker/utils.py", line 77, in get_rows
                  rows_plus_one = list(itertools.islice(ds, rows_max_number + 1))
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2690, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2227, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2251, in _iter_arrow
                  for key, pa_table in self.ex_iterable._iter_arrow():
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 494, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 384, in _iter_arrow
                  for key, pa_table in self.generate_tables_fn(**gen_kwags):
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 295, in _generate_tables
                  self._cast_table(pa_table, json_field_paths=json_field_paths),
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 128, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2281, in table_cast
                  return cast_table_to_schema(table, schema)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2227, in cast_table_to_schema
                  raise CastError(
              datasets.table.CastError: Couldn't cast
              images: list<item: struct<id: int64, file_name: string, width: int64, height: int64, folder: string, frame_i (... 11 chars omitted)
                child 0, item: struct<id: int64, file_name: string, width: int64, height: int64, folder: string, frame_id: string>
                    child 0, id: int64
                    child 1, file_name: string
                    child 2, width: int64
                    child 3, height: int64
                    child 4, folder: string
                    child 5, frame_id: string
              annotations: list<item: struct<id: int64, image_id: int64, category_id: int64, keypoints: list<item: int64>, num_ (... 74 chars omitted)
                child 0, item: struct<id: int64, image_id: int64, category_id: int64, keypoints: list<item: int64>, num_keypoints:  (... 62 chars omitted)
                    child 0, id: int64
                    child 1, image_id: int64
                    child 2, category_id: int64
                    child 3, keypoints: list<item: int64>
                        child 0, item: int64
                    child 4, num_keypoints: int64
                    child 5, bbox: list<item: double>
                        child 0, item: double
                    child 6, area: double
                    child 7, iscrowd: int64
              categories: list<item: struct<id: int64, name: string, supercategory: string, keypoints: list<item: string>, ske (... 38 chars omitted)
                child 0, item: struct<id: int64, name: string, supercategory: string, keypoints: list<item: string>, skeleton: list (... 26 chars omitted)
                    child 0, id: int64
                    child 1, name: string
                    child 2, supercategory: string
                    child 3, keypoints: list<item: string>
                        child 0, item: string
                    child 4, skelet
              ...
              tag: string
                    child 1, temperature_f: double
              02_01: struct<0001: struct<cow_tag: string, temperature_f: double>, 0002: struct<cow_tag: string, temperatu (... 446 chars omitted)
                child 0, 0001: struct<cow_tag: string, temperature_f: double>
                    child 0, cow_tag: string
                    child 1, temperature_f: double
                child 1, 0002: struct<cow_tag: string, temperature_f: double>
                    child 0, cow_tag: string
                    child 1, temperature_f: double
                child 2, 0006: struct<cow_tag: string, temperature_f: double>
                    child 0, cow_tag: string
                    child 1, temperature_f: double
                child 3, 0007: struct<cow_tag: string, temperature_f: double>
                    child 0, cow_tag: string
                    child 1, temperature_f: double
                child 4, 0008: struct<cow_tag: string, temperature_f: double>
                    child 0, cow_tag: string
                    child 1, temperature_f: double
                child 5, 0009: struct<cow_tag: string, temperature_f: double>
                    child 0, cow_tag: string
                    child 1, temperature_f: double
                child 6, 0010: struct<cow_tag: string, temperature_f: double>
                    child 0, cow_tag: string
                    child 1, temperature_f: double
                child 7, 0011: struct<cow_tag: string, temperature_f: double>
                    child 0, cow_tag: string
                    child 1, temperature_f: double
                child 8, 0012: struct<cow_tag: string, temperature_f: double>
                    child 0, cow_tag: string
                    child 1, temperature_f: double
                child 9, 0013: struct<cow_tag: string, temperature_f: double>
                    child 0, cow_tag: string
                    child 1, temperature_f: double
              to
              {'02_01': {'0001': {'cow_tag': Value('string'), 'temperature_f': Value('float64')}, '0002': {'cow_tag': Value('string'), 'temperature_f': Value('float64')}, '0006': {'cow_tag': Value('string'), 'temperature_f': Value('float64')}, '0007': {'cow_tag': Value('string'), 'temperature_f': Value('float64')}, '0008': {'cow_tag': Value('string'), 'temperature_f': Value('float64')}, '0009': {'cow_tag': Value('string'), 'temperature_f': Value('float64')}, '0010': {'cow_tag': Value('string'), 'temperature_f': Value('float64')}, '0011': {'cow_tag': Value('string'), 'temperature_f': Value('float64')}, '0012': {'cow_tag': Value('string'), 'temperature_f': Value('float64')}, '0013': {'cow_tag': Value('string'), 'temperature_f': Value('float64')}}, '02_06': {'0001': {'cow_tag': Value('string'), 'temperature_f': Value('float64')}, '0002': {'cow_tag': Value('string'), 'temperature_f': Value('float64')}}, '02_13': {'0001': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0002': {'cow_tag': Value('string'), 'temperature_f': Value('float64')}, '0003': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0004': {'cow_tag': Value('string'), 'temperature_f': Value('float64')}, '0005': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0006': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0007': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0008': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0009': {'cow_tag': Value
              ...
              : Value('null')}, '0076': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0077': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0078': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0079': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0080': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0082': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0083': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0084': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0085': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0086': {'cow_tag': Value('string'), 'temperature_f': Value('float64')}, '0087': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0088': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0089': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0090': {'cow_tag': Value('string'), 'temperature_f': Value('float64')}, '0091': {'cow_tag': Value('string'), 'temperature_f': Value('float64')}, '0092': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0093': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0094': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0095': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0096': {'cow_tag': Value('string'), 'temperature_f': Value('null')}, '0097': {'cow_tag': Value('string'), 'temperature_f': Value('float64')}}}
              because column names don't match

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

CattleFace-RGBT: Cattle Facial Landmark Dataset with RGB-Thermal Imagery

Dataset Description

CattleFace-RGBT is the first publicly available multimodal dataset featuring paired frontal-view RGB and thermal facial images of cattle, annotated with 13 facial keypoints and associated ground-truth rectal temperature measurements. The dataset was developed to support research in automated cattle fever estimation and precision livestock farming.

Paper: CattleFever: An automated cattle fever estimation system Published in: Smart Agricultural Technology, Volume 12, 2025

Dataset Summary

Component Count
RGB images (annotated) 1,890
Thermal JPG images (annotated, colorized) 2,611
Raw thermal TIFF frames 30,954
Thermal videos (.mp4) 51
Unique cattle 108
Cattle with temperature readings 29
Facial keypoints per image 13
Recording dates 3 (Feb 1, Feb 6, Feb 13)

Dataset Structure

CattleFace-RGBT/
β”œβ”€β”€ README.md
β”œβ”€β”€ rgb/                          # RGB images organized by folder
β”‚   β”œβ”€β”€ 1/
β”‚   β”œβ”€β”€ 17/
β”‚   β”œβ”€β”€ 25/
β”‚   β”œβ”€β”€ 50/
β”‚   └── 64/
β”œβ”€β”€ thermal/                      # Colorized thermal JPG images
β”‚   β”œβ”€β”€ 1/
β”‚   β”œβ”€β”€ 2/
β”‚   β”œβ”€β”€ 17/
β”‚   β”œβ”€β”€ 25/
β”‚   β”œβ”€β”€ 50/
β”‚   └── 64/
β”œβ”€β”€ thermal_raw/                  # Raw thermal TIFF frames (temperature data)
β”‚   β”œβ”€β”€ 02_01/                    # Feb 1 recording session
β”‚   β”œβ”€β”€ 02_06/                    # Feb 6 recording session
β”‚   └── 02_13/                    # Feb 13 recording session
└── annotations/
    β”œβ”€β”€ rgb_keypoints.json        # COCO-format keypoint annotations for RGB
    β”œβ”€β”€ thermal_keypoints.json    # COCO-format keypoint annotations for thermal
    β”œβ”€β”€ metadata.csv              # Cow ID, temperature, and data mapping
    └── cow_mapping.json          # Sequence number β†’ cow tag ID mapping

Annotation Format

Annotations follow the COCO keypoint format:

Images

{
  "id": 0,
  "file_name": "rgb/1/00001.jpg",
  "width": 2560,
  "height": 1440,
  "folder": "1",
  "frame_id": "00001"
}

Annotations

{
  "id": 0,
  "image_id": 0,
  "category_id": 1,
  "keypoints": [x1, y1, v1, x2, y2, v2, ...],
  "num_keypoints": 13,
  "bbox": [x, y, width, height],
  "area": 123456,
  "iscrowd": 0
}

13 Facial Keypoints

Index Name Description
1 left_ear_base Base of left ear
2 left_ear_middle Middle of left ear
3 left_ear_tip Tip of left ear
4 poll Top of head (poll)
5 right_ear_base Base of right ear
6 right_ear_middle Middle of right ear
7 right_ear_tip Tip of right ear
8 left_eye Left eye
9 right_eye Right eye
10 muzzle Center of muzzle
11 left_nostril Left nostril
12 right_nostril Right nostril
13 mouth Mouth

Visibility flag: 0 = not labeled, 2 = labeled and visible.

Raw Thermal Data

The thermal_raw/ directory contains raw TIFF frames from the ICI FMX 400 thermal camera (384 x 288 pixels). Each pixel contains a temperature value in Celsius. These files can be read with:

from PIL import Image
import numpy as np

tiff = Image.open("thermal_raw/02_01/0001_Video_Frame_1.tiff")
temp_array = np.array(tiff)  # Temperature values in Celsius

TIFF filenames follow the pattern: {sequence_num}_Video_Frame_{frame_num}.tiff

Use cow_mapping.json to map sequence numbers to cow tag IDs and temperatures.

Temperature Data

Ground-truth rectal temperatures (in Fahrenheit) are available for 29 cattle across 3 recording sessions. The mapping is provided in metadata.csv and cow_mapping.json.

Data Collection

Data was collected at the Arkansas Agricultural Experiment Station, Savoy Research Complex, Beef Cattle Research Area, in partnership with the University of Arkansas. The setup used:

  • RGB camera: Standard webcam (2560 x 1440 resolution)
  • Thermal camera: ICI FMX 400 (384 x 288 pixel resolution, 50 Hz frame rate, < 0.03Β°C thermal sensitivity)
  • Temperature: Rectal thermometer (ground truth)

Each calf was guided into a cattle squeeze chute for ~20 seconds of synchronized RGB and thermal video recording.

Supported Tasks

  1. Cattle facial landmark detection β€” Detect 13 keypoints on cattle faces
  2. Cattle face detection β€” Detect and localize cattle faces using bounding boxes
  3. Core body temperature estimation β€” Predict rectal temperature from thermal facial features

Recommended Splits

As described in the paper:

  • Keypoint detection: 70% train / 30% test (random split)
  • Temperature estimation: 80% train / 20% test

Citation

@article{pham2025cattlefever,
  title={CattleFever: An automated cattle fever estimation system},
  author={Pham, Trong Thang and Coffman, Ethan and Kegley, Beth and Powell, Jeremy G. and Zhao, Jiangchao and Le, Ngan},
  journal={Smart Agricultural Technology},
  volume={12},
  pages={101434},
  year={2025},
  publisher={Elsevier},
  doi={10.1016/j.atech.2025.101434}
}

License

This dataset is released under the CC BY 4.0 license.

Contact

For questions about this dataset, please contact:

  • Trong Thang Pham (tp030@uark.edu) β€” AICV Lab, University of Arkansas
Downloads last month
34