PEFT-Fine-tuning-cows

Data splits

splits/train.csv (2,160 crops), splits/val.csv (540) and splits/test.csv (211,800) list every image used in the study. Each image is a crop of one animal, cut from a video frame with a bounding box, and carries that animal’s behavior label at that time in the source dataset.

Behavior Source Training Validation Test
Drinking MmCows 240 60 3,011
Eating head down MmCows 240 60 30,952
Eating head up MmCows 240 60 18,783
Lying MmCows 240 60 83,509
Standing MmCows 240 60 69,807
Walking MmCows 240 60 3,819
Frontal pushing PlayBehavior 240 60 600
Gallop PlayBehavior 240 60 575
Leap PlayBehavior 240 60 744
Total   2,160 540 211,800

Columns

Column Description
split train, val or test
test_index 0–211,799, test rows only; order of evaluation and of results/*/test_predictions.csv.gz
source MmCows or PlayBehavior
behavior behavior name used in the paper
source_label label in the source dataset (MmCows calls the eating behaviors Feeding head down/up)
crop_file MmCows: crop file name ID<cow>+<camera>+<unix time>_<hh-mm-ss>_<hash>.jpg. PlayBehavior: pb_<8-hex hash>.jpg
animal_id MmCows: cow_1 … cow_16. PlayBehavior, released farms: calf_id of the public dataset (e.g. FarmA-2642, FarmB-9). PlayBehavior, unreleased farms: unreleased_farm_k_calf_n
site MmCows: the MmCows pen. PlayBehavior: Farm A or Farm B (the pseudonyms of the public dataset), or unreleased_farm_1, unreleased_farm_2
camera MmCows: cam_1 … cam_4 (synchronized, so the same cow at the same second appears in several views). PlayBehavior: camera channel
timestamp_unix MmCows only: Unix time of the frame (1 frame per second)
public_session_id PlayBehavior, released farms: session of the public dataset (e.g. FarmA_2024-06-11_PM)
public_frame PlayBehavior, released farms: frame of that session (e.g. 0135340.jpg)
public_frame_tar PlayBehavior, released farms: shard of the public dataset that contains the frame

Class order of all prediction and confusion-matrix files (index 0–8): Drinking, Eating head down, Eating head up, Lying, Standing, Walking, Frontal pushing, Gallop, Leap.

Finding the source frames

Licences and sources