File size: 18,799 Bytes
d533ddb
0aeeb21
d533ddb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fe34008
 
d533ddb
d18307b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fe34008
d533ddb
fe34008
d533ddb
fe34008
d533ddb
fe34008
d533ddb
 
 
 
 
 
 
 
 
 
 
 
 
fe34008
 
 
 
 
d18307b
 
 
b2b3bbd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fe34008
 
 
b2b3bbd
d18307b
 
 
d533ddb
 
b2b3bbd
 
 
 
 
 
 
 
d533ddb
 
 
fe34008
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d533ddb
d18307b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d533ddb
 
 
 
 
 
b2b3bbd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1658ae3
 
b2b3bbd
d533ddb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d18307b
d533ddb
 
 
0aeeb21
87e2e4d
d533ddb
d18307b
 
 
 
 
 
 
 
 
 
 
 
d533ddb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
license: cdla-permissive-1.0
language:
- en
pretty_name: LILA BC Camera Trap Data
tags:
- biology
- image
- animals
- CV
- camera traps
size_categories:
- 1M<n<10M
---

<!--

NOTE: Add more tags (your particular animal, type of model and use-case, etc.).

As with your GitHub Project repo, it is important to choose an appropriate license for your dataset. The default license is pddl (public domain dedication or CC0, see [Dryad's explanation of why to use CC0](https://blog.datadryad.org/2023/05/30/good-data-practices-removing-barriers-to-data-reuse-with-cc0-licensing/)). Alongside the appropriate stakeholders (eg., your PI, co-authors), select a license that is [Open Source Initiative](https://opensource.org/licenses) (OSI) compliant.
For more information on how to choose a license and why it matters, see [Choose A License](https://choosealicense.com) and [A Quick Guide to Software Licensing for the Scientist-Programmer](https://doi.org/10.1371/journal.pcbi.1002598) by A. Morin, et al.
See the [Imageomics policy for licensing](https://docs.google.com/document/d/1SlITG-r7kdJB6C8f4FCJ9Z7o7ccwldZoSRJKjhRAWVA/edit#heading=h.c1sxg0wsiqru) for more information.

See more options for the above information by clicking "edit dataset card" on your repo.

Fill in as much information as you can at each location that says "More information needed".
-->

<!--
Image with caption:
|![Figure #](https://huggingface.co/imageomics/<data-repo>/resolve/main/<filename>)|
|:--|
|**Figure #.** [Image of <>](https://huggingface.co/imageomics/<data-repo>/raw/main/<filename>) <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
-->

# Dataset Card for LILA BC Camera Trap Data

<!-- Provide a quick summary of what the data is or can be used for. --> 

## Dataset Description

<!-- Provide the basic links for the dataset. -->

- **Homepage:** 
- **Repository:** [related project repo]
- **Paper:** 
- **Leaderboard:** 
- **Point of Contact:** 

### Dataset Summary

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

<!--This dataset card aims to be a base template for new datasets. It has been generated using [this raw template](https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/templates/datasetcard_template.md?plain=1).-->

This dataset contains the LILA BC full camera trap information with notebook ([`lilabc_CT.ipynb`](https://huggingface.co/datasets/imageomics/lila-bc-camera/blob/main/notebooks/lilabc_CT.ipynb)) exploring available data. The last run of this (in [commit 010ecf0](https://huggingface.co/datasets/imageomics/lila-bc-camera/commit/010ecf0c6a2e0c99c9481cea793d8b1556b5c71e)) uses and produces the lila CSVs found [here](https://huggingface.co/datasets/imageomics/lila-bc-camera/tree/010ecf0c6a2e0c99c9481cea793d8b1556b5c71e/data).
More details on this are below in [Data Instances](#data-instances).

Looks at potential test sets constructed from 7 different LILA datasets (uses [data/potential-test-sets/lila_image_urls_and_labels.csv](https://huggingface.co/datasets/imageomics/lila-bc-camera/blob/37b93ddf25c63bc30d8488ef78c1a53b9c4a3115/data/potential-test-sets/lila_image_urls_and_labels.csv) (sha256:3fdf87ceea75f8720208a95350c3c70831a6c1c745a92bb68c7f2c3239e4c455) to separate them out):
We're specifically interested in the following datasets identified in the [spreadsheet](https://docs.google.com/spreadsheets/d/1sC90DolAvswDUJ1lNSf0sk_norR24LwzX2O4g9OxMZE/edit?usp=drive_link) as labeled at the image-level.
  - [Snapshot Safari 2024 Expansion](https://lila.science/datasets/snapshot-safari-2024-expansion/)
  - [Ohio Small Animals](https://lila.science/datasets/ohio-small-animals/)
  - [Desert Lion Conservation Camera Traps](https://lila.science/datasets/desert-lion-conservation-camera-traps/)
  - [Orinoquia Camera Traps](https://lila.science/datasets/orinoquia-camera-traps/)
  - [SWG Camera Traps 2018-2020](https://lila.science/datasets/swg-camera-traps)
  - [Island Conservation Camera Traps](https://lila.science/datasets/island-conservation-camera-traps/)
  - [ENA24-detection](https://lila.science/datasets/ena24detection)

There are 2,867,312 images in this subset (once humans and non-creatures are removed).

[NOAA Puget Sound Nearshore Fish 2017-2018](https://lila.science/datasets/noaa-puget-sound-nearshore-fish) could be interesting for the combined categories, though it is _very_ general (has only three labels: `fish`, `crab`, `fish_and_crab`). It also isn't included in the CSV, so not explored further.

More details on this provided in [Test Data Instances](#test-data-instances), below.

**Repo file description at [commit 87e2e4d](https://huggingface.co/datasets/imageomics/lila-bc-camera/tree/87e2e4d46cf1e8daadd74b7738856a1e30754de3) when we were considering it for BioCLIP v1 testing:**

Images have been deduplicated and reduced down to species designation, with the main CSV filtered to just those with species labels and only one animal per image. This was done by pulling the first instance of an animal so that there are not repeat images of the same animal from essentially the same time.

The deduplicated collection ([lila_image_urls_and_labels_species.csv](https://huggingface.co/datasets/imageomics/lila-bc-camera/blob/f2d596714c46bf30edf1f45efe88b3a09b3c5f81/data/lila_image_urls_and_labels_species.csv)) has 6,365,985 images (compared to the full dataset of 16,833,848 at time of download). Its [associated taxonomy mapping release](https://huggingface.co/datasets/imageomics/lila-bc-camera/blob/f2d596714c46bf30edf1f45efe88b3a09b3c5f81/data/lila-taxonomy-mapping_release.csv).

See the [LILA BC HF Dataset](https://huggingface.co/datasets/society-ethics/lila_camera_traps) for more inforamtion and updated data.



### Supported Tasks and Leaderboards
[More Information Needed]

### Languages
[More Information Needed]

## Dataset Structure

```
/dataset/
    data/
        lila-taxonomy-mapping_release.csv
        lila_image_urls_and_labels.csv
        lila_image_urls_and_labels_species.csv    # Outdated
        lila_image_urls_and_labels_wHumans.csv
        potential-test-sets/
            lila-taxonomy-mapping_release.csv
            lila_image_urls_and_labels.csv
                filtered/
                    ENA24-imbalanced.csv
                    ENA24-balanced.csv
                    ENA24-balanced-small.csv
                    desert-lion-upper-lower-bound.csv
                    desert-lion-upper-bound.csv
                    desert-lion-balanced.csv
                    island-lower-bound_common.csv
                    island-lower-bound_family.csv
                    island-imbalanced_family.csv
                    island-balanced.csv
                    island-imbalanced_common.csv
                    ohio-small-animals-upper-lower-bound.csv
                    ohio-small-animals-upper-bound.csv
                    ohio-small-animals-balanced.csv
                    orinoquia-upper-lower-bound.csv
                    orinoquia-upper-bound.csv
                    orinoquia-balanced.csv
    notebooks/
        lilabc_CT.ipynb
        lilabc_CT.py
        lilabc_test-<dataset_name>.ipynb
        lilabc_test-EDA.py
        lilabc_test-filter.ipynb
        lilabc_test-filter.py
```

**Notes:**
 - `dataset_name` is one of `desert-lion`, `ENA24`, `island`, `ohio-small-animal`, or `orinoquia`. Each collection of `<dataset_name>-<size_indicator>` CSVs are created in their corresponding `lilabc_test-<dataset_name>` notebook.
 - All the "balanced" datasets and `ENA24-balanced-small.csv` have 12 images per species (or family, in the case of the island-balanced CSV). `ENA24-balanced.csv` has 56 images per species.
 - `upper-bound` are max 10K images per species, with no minimum (this often means the smallest classification class has just 1 image).
 - `upper-lower-bound` CSVs are max 10K images per species and minimum of 10.
 - ENA24 has a minimum of 56 images per species and a maximum of 893, so `ENA24-imbalanced.csv` is just all images containing a single species.
 - The island camera traps were mostly only labeled to family level, so there are common name and family versions. The `imbalanced` sets are just all images with common name or family designation, respectively. The `lower-bound` are only those with at least ten images per class (by common name and family), and `balanced` is just 12 images per family.


### Data Instances

The [`data/lila_image_urls_and_labels.csv`](https://huggingface.co/datasets/imageomics/lila-bc-camera/blob/010ecf0c6a2e0c99c9481cea793d8b1556b5c71e/data/lila_image_urls_and_labels.csv) has all images with non-taxa (identified by `scientific_name`, `common_name`, and `kingdom` are null) or `human` original labels filtered out and has 10,104,328 images.
7,521,712 have full 7-rank taxa, with 891 unique 7-tuple strings (908 unique including subranks), with 890 unique scientific names -- this count is from before humans were removed (there are 257,159 images with humans listed and they do have full 7-rank taxa).
Final version at this stage has 9,849,119 images, 907 unique scientific names.

**annotation_level**
```
sequence    4156306
image       2892394
unknown     2886844
```

**non-taxa labels:**
```
original_label
problem                   288579
blurred                   184620
ignore                    177546
vehicle                    26445
unknown                    26170
snow on lens               17552
foggy lens                 15832
vegetation obstruction      6994
malfunction                 5640
unclassifiable              3484
motorcycle                  3423
misdirected                 2832
other                       2474
unidentifiable              1472
foggy weather               1380
lens obscured                866
sun                          835
end                          616
fire                         578
misfire                      400
eye_shine                    328
start                        321
tilted                        56
unidentified                  39
```

**Datasets with the non-taxa labels:**
```
dataset_name
SWG Camera Traps                    650745
Idaho Camera Traps                   66339
NACTI                                26015
WCS Camera Traps                     18320
Wellington Camera Traps               3484
Orinoquia Camera Traps                1280
Island Conservation Camera Traps      1269
Snapshot Serengeti                     568
ENA24                                  293
Channel Islands Camera Traps           159
Snapshot Mountain Zebra                  7
Snapshot Camdeboo                        3
```

### Test Data Instances

**data/potential-test-sets/lila_image_urls_and_labels.csv:** Reduced down to the datasets of interest listed below; all those with `original_label` "empty" or null `scientific_name` (these had non-taxa labels) were removed. 
Additionally, added a `multi_species` column (boolean to indicate multiple species are present in the image--it gets listed once for each species in the image) and a count of how many different species are in each of those images (`num_species` column).

There are 367 unique scientific names in this subset (355 by full 7-rank), 184 unique among just those labeled at the image-level (180 by full 7-rank) (as indicated by the CSV). 
This was then subdivided into CSVs for each of the target datasets (`data/potential-test-sets/<dataset_name>_image_urls_and_labels.csv`).
These were initially identified from our [master spreadsheet](https://docs.google.com/spreadsheets/d/1sC90DolAvswDUJ1lNSf0sk_norR24LwzX2O4g9OxMZE/edit?gid=0#gid=0), identifying image-level labeled datasets and those that are a meaningful measure of our biodiversity-focused model (e.g., includes rare species--those less-commonly seen, targeting areas with greater biodiversity).

  - [Snapshot Safari 2024 Expansion](https://lila.science/datasets/snapshot-safari-2024-expansion/) -- actually labeled by sequence, so not a good choice for testing
  - [Ohio Small Animals](https://lila.science/datasets/ohio-small-animals/)
  - [Desert Lion Conservation Camera Traps](https://lila.science/datasets/desert-lion-conservation-camera-traps/)
  - [Orinoquia Camera Traps](https://lila.science/datasets/orinoquia-camera-traps/)
  - [SWG Camera Traps 2018-2020](https://lila.science/datasets/swg-camera-traps) -- actually labeled by sequence, so not a good choice for testing
  - [Island Conservation Camera Traps](https://lila.science/datasets/island-conservation-camera-traps/)
  - [ENA24-detection](https://lila.science/datasets/ena24detection)

Multi-species counts (full):
```
num_species
1.0     2753832
2.0      114825
3.0       13995
4.0        1704
5.0         230
14.0         42
```
For Image-level labels:
```
num_species
1.0    305821
2.0      1154
3.0         3
```
Looks like we'll have about 306K images across the 5 datasets that have image-level labels.



### Data Fields
[More Information Needed]
<!--
Describe the types of the data files or the columns in a CSV with metadata.
-->

Each of the `<dataset_name>_<type>` CSVs has the following columns.

 - `dataset_name`: name of the LILA BC dataset
 - `url_gcp`, `url_aws`, `url_azure` are URLs to potentially access the image, we recommend `url_aws`.
 - `image_id`: unique identifier for the image.
 - `sequence_id`: ID of the sequence to which the image belongs.
 - `location_id`: ID of the location at which the camera was placed.
 - `frame_num`: generally 0, 1, or 2, indicates order of image within a sequence.
 - `original_label`: label initially assigned to the image.
 - `scientific_name`: genus species of the animal in the image. For the island CSV, lowest rank taxa available, generally family. 
 - `common_name`: vernacular name of the animal in the image. For the island CSV, this is generally for the family, but it's a mix.
 - `kingdom`: kingdom of the animal in the image.
 - `phylum`: phylum of the animal in the image.
 - `class`: class of the animal in the image.
 - `order`: order of the animal in the image.
 - `family`: family of the animal in the image.
 - `genus`: genus of the animal in the image. About half null in the island CSVs.
 - `species`: species of the animal in the image. Mostly null in the island CSVs.
 - `num_sp_images`: number of images of that species in the dataset.
 For the island CSVs, instead of `num_sp_images` there are `num_fam_images` and `num_cn_images` representing the number of images for the family or common name, respectively.

Additionally, the `ohio-small-animals` CSVs have a `filename` column defined as `OH_sm_animals_<filename in url_aws>`.


### Data Splits
[More Information Needed]
<!--
Give your train-test splits for benchmarking
-->

## Dataset Creation

### Curation Rationale
[More Information Needed]

### Source Data

#### Initial Data Collection and Normalization
[More Information Needed]

#### Who are the source language producers?
[More Information Needed]

### Annotations

#### Annotation process
[More Information Needed]

#### Who are the annotators?
[More Information Needed]

### Personal and Sensitive Information
[More Information Needed]

<!-- For instance, if your data includes people or endangered species. -->

## Considerations for Using the Data
### Social Impact of Dataset
[More Information Needed]

### Discussion of Biases
[More Information Needed]

### Other Known Limitations
[More Information Needed]

<!-- For instance, if your data exhibits a long-tailed distribution (and why). -->

## Additional Information

### Dataset Curators
Elizabeth Campolongo

### Licensing Information

This compilation is licensed under the [Community Data License Agreement (permissive variant)](https://cdla.io/permissive-1-0/), same as the images and metadata which belong to their original sources (see citation directions below).

### Citation Information

For test sets (provided citations on their LILA BC pages are included):

  - [Ohio Small Animals](https://lila.science/datasets/ohio-small-animals/)
    - Balasubramaniam S. [Optimized Classification in Camera Trap Images: An Approach with Smart Camera Traps, Machine Learning, and Human Inference](https://etd.ohiolink.edu/acprod/odb_etd/etd/r/1501/10?clear=10&p10_accession_num=osu1721417695430687). Master’s thesis, The Ohio State University. 2024.
  - [Desert Lion Conservation Camera Traps](https://lila.science/datasets/desert-lion-conservation-camera-traps/)
  - [Orinoquia Camera Traps](https://lila.science/datasets/orinoquia-camera-traps/)
    - Vélez J, McShea W, Shamon H, Castiblanco‐Camacho PJ, Tabak MA, Chalmers C, Fergus P, Fieberg J. [An evaluation of platforms for processing camera‐trap data using artificial intelligence](https://besjournals.onlinelibrary.wiley.com/doi/full/10.1111/2041-210X.14044). Methods in Ecology and Evolution. 2023 Feb;14(2):459-77.
  - [Island Conservation Camera Traps](https://lila.science/datasets/island-conservation-camera-traps/)
  - [ENA24-detection](https://lila.science/datasets/ena24detection)
    - Yousif H, Kays R, Zhihai H. Dynamic Programming Selection of Object Proposals for Sequence-Level Animal Species Classification in the Wild. IEEE Transactions on Circuits and Systems for Video Technology, 2019. ([bibtex](http://lila.science/wp-content/uploads/2019/12/hayder2019_bibtex.txt))

[More Information Needed]
<!--
If you want to include BibTex, replace "<>"s with your info 
-for an associated paper:
```
@article{<ref_code>,
  title    = {<title>},
  author   = {<author1 and author2>},
  journal  = {<journal_name>},
  year     =  <year>,
  url      = {<DOI_URL>},
  doi      = {<DOI>}
}
```
-just for data:
```
@misc{<ref_code>,
  author = {<author1 and author2>},
  title = {<title>},
  year = {<year>},
  url = {https://huggingface.co/datasets/imageomics/<dataset_name>},
  doi = {<doi once generated>},
  publisher = {Hugging Face}
}
```
-->

<!---
If the data is modified from another source, add the following. 

Please be sure to also cite the original data source:
<citation>
-->


### Contributions

The [Imageomics Institute](https://imageomics.org) is funded by the US National Science Foundation's Harnessing the Data Revolution (HDR) program under [Award #2118240](https://www.nsf.gov/awardsearch/showAward?AWD_ID=2118240) (Imageomics: A New Frontier of Biological Information Powered by Knowledge-Guided Machine Learning). Any opinions, findings and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.

<!-- You may also want to credit the source of your data, i.e., if you went to a museum or nature preserve to collect it. -->