File size: 17,034 Bytes
f6d56f6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7c457c2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6acf3bd
7c457c2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5219c7e
7c457c2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5219c7e
7c457c2
5219c7e
 
 
 
 
7c457c2
5219c7e
 
 
7c457c2
5219c7e
 
7c457c2
5219c7e
7c457c2
5219c7e
 
7c457c2
5219c7e
 
 
 
 
 
 
 
7c457c2
5219c7e
 
 
 
 
 
7c457c2
 
 
 
d224502
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7c457c2
 
 
d224502
 
7c457c2
d224502
7c457c2
d224502
 
 
 
7c457c2
d224502
7c457c2
d224502
 
 
 
7c457c2
 
 
 
d224502
 
 
7c457c2
 
d224502
 
 
7c457c2
 
d224502
7c457c2
 
d224502
7c457c2
 
 
 
d224502
 
 
 
 
 
 
7c457c2
 
 
d224502
7c457c2
d224502
 
 
7c457c2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d224502
 
7c457c2
d224502
 
 
 
 
 
 
7c457c2
d224502
7c457c2
 
 
 
 
 
d224502
 
 
 
7c457c2
 
d224502
7c457c2
 
 
 
6acf3bd
7c457c2
 
6acf3bd
7c457c2
 
d224502
7c457c2
 
f6d56f6
d224502
f6d56f6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
---
license: cc-by-nc-4.0
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
language:
- en
dataset_info:
  features:
  - name: rotated_masked
    dtype: image
  - name: unrotated_unmasked
    dtype: image
  - name: frame
    dtype: int64
  - name: det_id
    dtype: int64
  - name: score
    dtype: float64
  - name: video_name
    dtype: string
  - name: bbox_x
    dtype: float64
  - name: bbox_y
    dtype: float64
  - name: bbox_width
    dtype: float64
  - name: bbox_height
    dtype: float64
  - name: bbox_confidence
    dtype: float64
  - name: head_x
    dtype: float64
  - name: head_y
    dtype: float64
  - name: head_conf
    dtype: float64
  - name: head_visibility
    dtype: float64
  - name: neck_x
    dtype: float64
  - name: neck_y
    dtype: float64
  - name: neck_conf
    dtype: float64
  - name: neck_visibility
    dtype: float64
  - name: thorax_x
    dtype: float64
  - name: thorax_y
    dtype: float64
  - name: thorax_conf
    dtype: float64
  - name: thorax_visibility
    dtype: float64
  - name: waist_x
    dtype: float64
  - name: waist_y
    dtype: float64
  - name: waist_conf
    dtype: float64
  - name: waist_visibility
    dtype: float64
  - name: tail_x
    dtype: float64
  - name: tail_y
    dtype: float64
  - name: tail_conf
    dtype: float64
  - name: tail_visibility
    dtype: float64
  - name: waist_src
    dtype: string
  - name: angle_src
    dtype: string
  - name: track_id
    dtype: int64
  - name: cx
    dtype: float64
  - name: cy
    dtype: float64
  - name: angle
    dtype: float64
  - name: virtual
    dtype: bool
  - name: vx
    dtype: float64
  - name: vy
    dtype: float64
  - name: cost
    dtype: float64
  - name: pcx
    dtype: float64
  - name: pcy
    dtype: float64
  - name: pa
    dtype: float64
  - name: pvx
    dtype: float64
  - name: pvy
    dtype: float64
  - name: dorsal_len
    dtype: float64
  - name: crop_bee_scale
    dtype: float64
  - name: crop_filename
    dtype: string
  - name: global_track
    dtype: int64
  - name: unique_track_hash
    dtype: string
  - name: global_frame
    dtype: int64
  - name: unique_frame_hash
    dtype: string
  - name: date
    dtype: string
  - name: vid_num
    dtype: string
  - name: track_len
    dtype: int64
  - name: local_track
    dtype: int64
  - name: real_crop_filename
    dtype: string
  - name: new_filepath
    dtype: string
  - name: key
    dtype: int64
  - name: bee_id
    dtype: float64
  - name: video_key
    dtype: int64
  - name: is_track_ref
    dtype: bool
  - name: is_bee_id_ref
    dtype: bool
  splits:
  - name: train
    num_bytes: 2473472408
    num_examples: 9495
  download_size: 2212494206
  dataset_size: 2473472408
task_categories:
- image-classification
tags:
- insects
- re-identification
- animals
pretty_name: Re-Identification of Red Painted Honey Bees

---


<!--
Image with caption (jpg or png):
|![Figure #](https://huggingface.co/datasets/imageomics/<data-repo>/resolve/main/<filepath>)|
|:--|
|**Figure #.** [Image of <>](https://huggingface.co/datasets/imageomics/<data-repo>/raw/main/<filepath>) <caption description>.|
-->

<!--
Notes on styling:

To render LaTex in your README, wrap the code in `\\(` and `\\)`. Example: \\(\frac{1}{2}\\)

Escape underscores ("_") with a "\". Example: image\_RGB
-->

# red_bee_reID: Re-Identification of Red Painted Honey Bees

A curated re-identification dataset of 45 identities of honey bees (Apis mellifera) painted with red paint on the 
thorax. On average, each identity has 6.2 tracklets for a total of 358 tracks representing 9495 image crops, and
an average of 24.1 images/track. Both raw, unrotated images and standardized background mask crops are provided. 

## Dataset Details

### Dataset Description

- **Curated by:** Luke Meyers, Josué Rodríguez-Cordero, Rémi Mégret
- **Language(s) (NLP):** English
<!-- Provide the basic links for the dataset. These will show up on the sidebar to the right of your dataset card ("Curated by" too). -->
- **Homepage:** 
- **Repository:** [Github Repo](https://github.com/megretlab/bee_reid_dinov3/tree/new_gpu)
- **Paper:** [WACV 2026](https://openaccess.thecvf.com/content/WACV2026/papers/Meyers_One-Shot_Fine-Grained_Re-Identification_of_Paint_Marked_Honey_Bees_using_Vision_WACV_2026_paper.pdf)


<!-- Provide a longer summary of what this dataset is. -->

This ReID dataset was generated from 9 videos captured over 3 days at the entrance ramp of a bee feeder at various locations in the north of Puerto Rico. The raw videos (not included) show the bees entering from the bottom,
walking, and exiting from the top of the screen. Video was obtained using a Basler camera (model a2A3840-45ucPRO) with resolution 3840x2160 px at 17 fps and encoded as
H265 videos. As many bees as possible were marked with one dot of paint on the thorax (red or green). Nectar foragers typically come
back through the entrance several times over the span of multiple days, thus providing realistic multi-day ReID data.

Using the methods explained in section 4.1 of [the article](https://openaccess.thecvf.com/content/WACV2026/papers/Meyers_One-Shot_Fine-Grained_Re-Identification_of_Paint_Marked_Honey_Bees_using_Vision_WACV_2026_paper.pdf)
, all bees were detected, tracked, and their crops extracted. Crops were extracted at 1.5 the pixel length of the average bee skeleton per video, so images may vary slightly in size. 
Crops were rotated so the angle between the head and abdomen keypoints were vertical. 
Then the identity of painted bees was manually annotated. For the purpose of the study, we kept only the identities
with 3 or more tracks, and were painted with red color, leaving 45 identities. On average, each identity has 6.2 tracks
for a total of 358 tracks representing 9495 image crops, and an average of 24.1 images/track. Train test splits using this dataset
should not split within tracks to prevent data leakage. 


### Supported Tasks and Leaderboards

This data was published according with the paper [One-Shot Fine-Grained Re-Identification of Paint Marked Honey Bees
using Vision Foundation Models](https://openaccess.thecvf.com/content/WACV2026/papers/Meyers_One-Shot_Fine-Grained_Re-Identification_of_Paint_Marked_Honey_Bees_using_Vision_WACV_2026_paper.pdf) 
for one shot reidentification using deep metric learning. Published method achieves ~85% top1 accuracy contrastively trained using a
single track of training in the closed set. 

## Dataset Structure

<!-- This section provides a description of the dataset fields, and additional information about the dataset structure such as criteria used to create the splits, relationships between data points, etc. -->
Images are organized by pretreatment method, inside an images folder. Parquet format has been used to reduce size on remote storage repo. 

```
/images
    rotated_masked  
        bf-rg_2025-04-08_08.cfr.mp4.T000189_F005007.jpg
        bf-rg_2025-04-08_08.cfr.mp4.T000189_F005008.jpg
        ...
    unrotated_unmasked
        bf-rg_2025-04-08_08.cfr.mp4.T000189_F005007.jpg
        bf-rg_2025-04-08_08.cfr.mp4.T000189_F005008.jpg
        ...
metadata.csv
```

## Data Instances

Image filenames are named following their data collection site, date, tracking id, and frame from video detection. 
For instance: bf-rg_2025-04-08_08.cfr.mp4.T000189_F005007.jpg:

- `bf` : bee_feeder (experimental setup shortname)
- `rg` : Rio Grande (site shortname)
- `2025-04-08` : date of collection
- `08.cfr` : video number + cfr(constant frame rate)
- `.mp4` : video format
- `T000189` : track 189 (track ids are new generated per video)
- `F005007` : detection on frame 5007
- `.jpg` : image format

Video detection and tracking are described in section 4.1 

Rotated, maksed images were extracted at 1.5 the pixel length of the average bee skeleton per video, so images may vary slightly in size. 
Subsequently, images were rotated so the angle between the head and abdomen keypoints were vertical, and background masking was performed using 
SAM2, with input points from detected skeleton. Unrotated, unmasked images were re-extracted from video at the same size as their preprocessed counterpart, but simple centered on the waist
keypoint. 

### Data Fields

**metadata.csv**:
  - `rotated_masked` : path to rotated and masked (preprocessed) crop image.
  - `unrotated_unmasked` : path to original unrotated, unmasked crop image.
  - `frame` : frame number within the source video.
  - `det_id` : detection ID within the frame.
  - `score` : detection confidence score.
  - `video_name` : name of the source video file.
  - `bbox_x` : x-coordinate of bounding box (top-left corner).
  - `bbox_y` : y-coordinate of bounding box (top-left corner).
  - `bbox_width` : width of bounding box.
  - `bbox_height` : height of bounding box.
  - `bbox_confidence` : confidence score of bounding box detection.
  - `head_x` : x-coordinate of head keypoint.
  - `head_y` : y-coordinate of head keypoint.
  - `head_conf` : confidence score of head keypoint.
  - `head_visibility` : visibility flag for head keypoint.
  - `neck_x` : x-coordinate of neck keypoint.
  - `neck_y` : y-coordinate of neck keypoint.
  - `neck_conf` : confidence score of neck keypoint.
  - `neck_visibility` : visibility flag for neck keypoint.
  - `thorax_x` : x-coordinate of thorax keypoint.
  - `thorax_y` : y-coordinate of thorax keypoint.
  - `thorax_conf` : confidence score of thorax keypoint.
  - `thorax_visibility` : visibility flag for thorax keypoint.
  - `waist_x` : x-coordinate of waist keypoint.
  - `waist_y` : y-coordinate of waist keypoint.
  - `waist_conf` : confidence score of waist keypoint.
  - `waist_visibility` : visibility flag for waist keypoint.
  - `tail_x` : x-coordinate of tail keypoint.
  - `tail_y` : y-coordinate of tail keypoint.
  - `tail_conf` : confidence score of tail keypoint.
  - `tail_visibility` : visibility flag for tail keypoint.
  - `waist_src` : source method used to estimate waist position.
  - `angle_src` : source method used to estimate orientation angle.
  - `track_id` : tracker-assigned ID within video.
  - `cx` : x-coordinate of object center.
  - `cy` : y-coordinate of object center.
  - `angle` : orientation angle of the object.
  - `virtual` : whether detection is interpolated (virtual).
  - `vx` : estimated velocity in x-direction.
  - `vy` : estimated velocity in y-direction.
  - `cost` : tracking association cost value.
  - `pcx` : predicted x-coordinate of center.
  - `pcy` : predicted y-coordinate of center.
  - `pa` : predicted orientation angle.
  - `pvx` : predicted velocity in x-direction.
  - `pvy` : predicted velocity in y-direction.
  - `dorsal_len` : estimated dorsal (body) length.
  - `crop_bee_scale` : scale factor used for crop resizing.
  - `crop_filename` : filename of saved crop image.
  - **`global_track` : globally unique track ID across dataset.**
  - `unique_track_hash` : unique hash identifier for track.
  - `global_frame` : globally indexed frame number.
  - `unique_frame_hash` : unique hash identifier for frame.
  - `date` : recording date of the video.
  - `vid_num` : video number identifier.
  - `track_len` : total length of the track (in frames).
  - `local_track` : track ID within source video. 
  - `real_crop_filename` : filename of original (non-augmented) crop.
  - `new_filepath` : updated file path for processed data.
  - `key` : unique row identifier.
  - **`bee_id` : assigned bee identity label.**
  - `video_key` : unique identifier for video.
  - `is_track_ref` : whether sample is a reference track.
  - `is_bee_id_ref` : whether sample is a reference bee ID.

### Data Splits

Train/test splits were made at the track level to prevent data leakage. 10 trials were generated by following a one-shot approach where for each ID,
one track is sampled at random as training/reference, all the other tracks being used as test.

## Dataset Creation

Data was collected across various days at Escuela Superior Pedro Falu Orellano in Rio Grande, PR. Bees were trained to come to "beefeeder" setups 
as part of the AC3 Bee Hunting project and bees were painted with help of student volunteers. Bees passing into the feeder were recorded on video, and paint was applied 
at nearby auxillary sugar solution feeders. [The article](https://openaccess.thecvf.com/content/WACV2026/papers/Meyers_One-Shot_Fine-Grained_Re-Identification_of_Paint_Marked_Honey_Bees_using_Vision_WACV_2026_paper.pdf) 
details the subsequent processing pipeline for video data. 

### Curation Rationale

Individual identification of honeybees is necessary in order to study in detail the behavior of these critical pollinators. In field experiments 
paint codes of one or two colors that can be read by researchers are useful, and are readily identifiable by computer vision systems given sufficient training data. 
Single color paint marks, that rely on random variations in paint shape and placement, are a solution to the limited verbosity of structured approaches and an intermediate step towards markerless biometric
ReID. 


### Annotations

Identity labels were annotated at the track level using a custom annotation tool. A set of reference images per track was carefully 
accumulated and used to match incoming tracks. An estimated 6-10 hours of annotation effort was necessary to reach 45 identities that 
passed the minimum threshold of 3 or more tracks. 


<!-- #### Who are the annotators?
All a
 -->
### Personal and Sensitive Information

The authors have no knowledge of sensitive information contained in the currently published dataset. 

## Considerations for Using the Data


### Bias, Risks, and Limitations


While no tracking errors were detected while working with the data, they may occur. SAM2 background segmentation was run completely 
automatedly, and was not verified. As such, background masking may be slightly noisy. 

As identity was annotated at track level, not all images necessarily contain sufficient information to perfrom re-identification. 
Indeed, some images are known to be explicitly not identifiable, i.e. bee is upside down. Virtual detections have been parsed from publicly present
data. 
<!-- 
### Recommendations
[More Information Needed]
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
 -->
## Licensing Information

This dataset is dedicated to the public domain for the benefit of scientific pursuits. We ask that you cite the dataset and journal paper using the below citations if you make use of it in your research.


<!-- See notes at top of file about selecting a license. 
If you choose CC0: This dataset is dedicated to the public domain for the benefit of scientific pursuits. We ask that you cite the dataset and journal paper using the below citations if you make use of it in your research.

Be sure to note different licensing of images if they have a different license from the compilation.
ex: 
The data (images and text) contain a variety of licensing restrictions mostly within the CC family. Each image and text in this dataset is provided under the least restrictive terms allowed by its licensing requirements as provided to us (i.e, we impose no additional restrictions past those specified by licenses in the license file).

EOL images contain a variety of licenses ranging from [CC0](https://creativecommons.org/publicdomain/zero/1.0/) to [CC BY-NC-SA](https://creativecommons.org/licenses/by-nc-sa/4.0/).
For license and citation information by image, see our [license file](https://huggingface.co/datasets/imageomics/treeoflife-10m/blob/main/metadata/licenses.csv).

This dataset (the compilation) has been marked as dedicated to the public domain by applying the [CC0 Public Domain Waiver](https://creativecommons.org/publicdomain/zero/1.0/). However, images may be licensed under different terms (as noted above).
-->

## Citation




**Paper**
```
@inproceedings{meyers2026one,
  title={One-Shot Fine-Grained Re-Identification of Paint Marked Honey Bees using Vision Foundation Models},
  author={Meyers, Luke and Rodr{\'\i}guez-Cordero, Josu{\'e} A and M{\'e}gret, R{\'e}mi},
  booktitle={Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision},
  pages={560--569},
  year={2026}
}
```




## Acknowledgements

This work was supported by NSF award \# 2318597 CyIndiBee. 
Data collection was possible through work supported by NSF Award \# 2321760 under Dr. J. Agosto, 
and special thanks is extended to L. Alvarado Vargas, A. Rodriguez and M. Geria. 
This work used the UPR High-Performance Computing facility, supported by NIH/NIGMS, award 5P20GM103475


<!-- 
## Glossary 

<!-- [optional] If relevant, include terms and calculations in this section that can help readers understand the dataset or dataset card. -->

<!-- ## More Information  -->

<!-- [optional] Any other relevant information that doesn't fit elsewhere. -->

## Dataset Card Authors 

Luke Meyers

## Dataset Card Contact

luke.meyers@upr.edu