File size: 19,061 Bytes
908e0af
 
 
7c691ec
908e0af
 
 
 
 
555369c
 
 
 
908e0af
 
 
 
 
 
02fe551
908e0af
 
 
 
 
 
 
02fe551
908e0af
 
 
 
 
 
 
 
 
02fe551
908e0af
 
 
 
 
555369c
 
3f6c260
555369c
3f6c260
555369c
 
 
 
 
908e0af
555369c
 
 
 
 
 
908e0af
 
555369c
908e0af
 
 
555369c
 
 
908e0af
555369c
908e0af
3f6c260
02fe551
 
555369c
 
 
 
 
02fe551
 
3f6c260
02fe551
 
555369c
3f6c260
02fe551
 
908e0af
 
 
 
 
 
 
 
 
 
 
 
 
02fe551
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
908e0af
02fe551
 
 
908e0af
02fe551
908e0af
02fe551
 
908e0af
02fe551
 
 
908e0af
20f846a
 
02fe551
 
908e0af
20f846a
02fe551
20f846a
 
908e0af
 
02fe551
 
 
 
908e0af
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8217882
 
 
0747101
908e0af
 
 
555369c
908e0af
 
02fe551
908e0af
 
 
 
555369c
908e0af
02fe551
20f846a
02fe551
 
 
908e0af
 
555369c
0747101
 
 
 
 
 
 
 
 
 
02fe551
20f846a
02fe551
20f846a
02fe551
555369c
 
 
 
 
 
3f6c260
02fe551
 
 
 
20f846a
02fe551
 
 
555369c
 
908e0af
555369c
 
 
 
 
 
 
 
20f846a
555369c
20f846a
 
 
02fe551
0747101
 
 
 
 
 
 
 
 
 
908e0af
 
 
 
 
 
 
 
 
 
 
 
 
02fe551
908e0af
 
555369c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
908e0af
555369c
 
 
 
 
02fe551
 
 
 
555369c
 
 
 
02fe551
555369c
 
 
 
02fe551
 
555369c
 
 
 
 
 
 
908e0af
555369c
02fe551
 
908e0af
 
555369c
908e0af
555369c
908e0af
555369c
908e0af
555369c
 
 
 
 
 
 
 
 
 
02fe551
908e0af
555369c
908e0af
555369c
 
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
---
task_categories:
- image-classification
- image-segmentation
tags:
- fish
- traits
- processed
- RGB
- biology
- image
- animals
- CV
pretty_name: Fish-Vista
size_categories:
- 10K<n<100K
language:
- en
configs:
- config_name: species_classification
  data_files:
  - split: train
    path: classification_train.csv
  - split: test
    path: classification_test.csv
  - split: val
    path: classification_val.csv
- config_name: species_trait_identification
  data_files:
  - split: train
    path: identification_train.csv
  - split: test_insp
    path: identification_test_insp.csv
  - split: test_lvsp
    path: identification_test_lvsp.csv
  - split: val
    path: identification_val.csv
- config_name: trait_segmentation
  data_files:
  - split: all
    path: segmentation_data.csv
---

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

# Dataset Card for Fish-Visual Trait Analysis (Fish-Vista)

## Dataset Deetails

### Dataset Description

<!--
- **Curated by:** list curators (authors for _data_ citation, moved up)
- **Language(s) (NLP):** [More Information Needed]
<!-- 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:** [related project repo]
- **Paper:** 
-->

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

The Fish-Visual Trait Analysis (Fish-Vista) dataset is a large, annotated collection of 60K fish images spanning 1900 different species; it supports several challenging and biologically relevant tasks including species classification, trait identification, and trait segmentation. These images have been curated through a sophisticated data processing pipeline applied to a cumulative set of images obtained from various museum collections. Fish-Vista provides fine-grained labels of various visual traits present in each image. It also offers pixel-level annotations of 9 different traits for 2427 fish images, facilitating additional trait segmentation and localization tasks.

The Fish Vista dataset consists of museum fish images from [Great Lakes Invasives Network (GLIN)](https://greatlakesinvasives.org/portal/index.php), [iDigBio](https://www.idigbio.org/), and [Morphbank](https://www.morphbank.net/) databases. We acquired these images, along with associated metadata including the scientific species names, the taxonomical family the species belong to, and licensing information, from the [Fish-AIR repository](https://fishair.org/). 

|![Figure 1](https://huggingface.co/datasets/imageomics/fish-vista/resolve/main/metadata/figures/FishVista.png)|
|:--|
|**Figure 1.** A schematic representation of the different tasks in Fish-Vista Dataset. |

<!--This dataset card has been generated using [this raw template](https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/templates/datasetcard_template.md?plain=1), and further altered to suit Imageomics Institute needs.-->


### Supported Tasks and Leaderboards
<!--[Add some more description. could replace graphs with tables]-->

|![Figure 2](https://huggingface.co/datasets/imageomics/fish-vista/resolve/main/metadata/figures/clf_imbalance.png)|
|:--|
|**Figure 2.** Comparison of the fine-grained classification performance of different imbalanced classification methods. |

|![Figure 3](https://huggingface.co/datasets/imageomics/fish-vista/resolve/main/metadata/figures/IdentificationOriginalResults.png)|
|:--|
|**Figure 3.** Trait identification performance of different multi-label classification methods. |


<!---
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).
--->


### Languages

English

## Dataset Structure

```
/dataset/
    segmentation_masks/
        annotations/
        images/
    sample_images/
        filename 1
        filename 2
        ...
        filename n
    classification_train.csv
    classification_test.csv
    classification_val.csv
    identification_train.csv
    identification_test.csv
    identification_val.csv
    segmentation_data.csv
    metadata/
        figures/
            # figures included in README
        data-bib.bib
```

**Notes:**
[Add instructions for downloading images here]
* When all images are downloaded and processed, they are contained within a flat directory structure (as demonstrated in `sample_images`).

### Data Instances

<!-- Add information about each of these (task, number of images per split, etc.). Perhaps reformat as <task>_<split>.csv.
-->

* **Species Classification:** `classification_<split>.csv`
  * Approximately 48K images of 419 species for species classification tasks.
  * There are about 35K training, 7.6K test, and 5K validation images.

* **Trait Identification:** `identification_<split>.csv`
  * Approximately 53K images of 682 species for trait identification based on _species-level trait labels_ (i.e., presence/absence of traits based on trait labels for the species from information provided by [Phenoscape]() and [FishBase](https://www.fishbase.se/)).
  * About 38K training, 8K `test_insp` (species in training set), 1.6K `test_lvsp` (species not in training), and 5.3K validation images.
  * Train, test, and validation splits are generated based on traits, so there are 628 species in train, 471 species in `test_insp`, 51 species in `test_lvsp`, and 452 in the validation set (4 species only in val). 

* **Trait Segmentation:** `segmentation_data.csv`
  * Pixel-level annotations of 9 different traits for 2,427 fish images.
  * About x training, y test and z validation images for the segmentation task
  * These are also used as manually annotated test set for Trait Identification.


* **Image Information**
  * **Type:** JPG
  * **Size (x pixels by y pixels):** Variable
  * **Background (color or none):** Uniform (White)


### Data Fields

CSV Columns are as follows:

- `filename`: Unique filename for our processed images.
- `source_filename`: Filename of the source image. Non-unique, since one source filename can result in multiple crops in our processed dataset.
- `original_format`: Original format, all jpg/jpeg.
- `arkid`: ARKID from FishAIR for the original images. Non-unique, since one source file can result in multiple crops in our processed dataset.
- `verbatim_species`: Verbatim species label from FishAIR. This is not the name-resolved species name.
- `species`: Scientific species name from FishAIR. This is not the name-resolved species name.
- `family`: Taxonomic family
- `source`: Source museum collection. GLIN, Idigbio or Morphbank
- `owner`: Owner institution within the source collection.
- `standardized_species`: Open-tree-taxonomy-resolved species name. This is the species name that we provide for Fish-Vista
- `original_url`: URL to download the original, unprocessed image
- `license`: License information for the original image
- `adipose_fin`: Presence/absence of the adipose fin trait. NA for the classification (FV-419) dataset, since it is only used for identification. 1 indicates presence and 0 indicates absence. This is used for trait identification.
- `pelvic_fin`: Presence/absence of the pelvic trait. NA for the classification (FV-419) dataset, since it is only used for identification. 1 indicates presence and 0 indicates absence. This is only used for trait identification.
- `barbel`: Presence/absence of the barbel trait. NA for the classification (FV-419) dataset, since it is only used for identification. 1 indicates presence and 0 indicates absence. This is used for trait identification.
- `multiple_dorsal_fin`: Presence/absence of the dorsal fin trait. NA for the classification (FV-419) dataset, since it is only used for identification. 1 indicates presence, 0 indicates absence and -1 indicates unknown. This is used for trait identification.

**Note:**


### Data Splits

For each task (or subset), the split is indicated by the CSV name (e.g., `classification_<split>.csv`). More information is provided in [Data Instances](#data-instances), above.
      
## Dataset Creation

### Curation Rationale
<!-- Motivation for the creation of this dataset. For instance, what you intended to study and why that required curation of a new dataset (or if it's newly collected data and why the data was collected (intended use)), etc. -->

Fishes are integral to both ecological systems and economic sectors, and studying fish traits is crucial for understanding biodiversity patterns and macro-evolution trends.
Currently available fish datasets tend to focus on species classification. They lack finer-grained labels for traits. When segmentation annotations are available in existing datasets, they tend to be for the entire specimen, allowing for segmenation of background, but not trait segmentation. 
The ultimate goal of Fish-Vista is to provide a clean, carefully curated, high-resolution dataset that can serve as a foundation for accelerating biological discoveries using advances in AI.


### Source Data

<!-- This section describes the source data (e.g., news text and headlines, social media posts, translated sentences, ...). As well as an original source it was created from (e.g., sampling from Zenodo records, compiling images from different aggregators, etc.) -->
Images and taxonomic labels were aggregated by [Fish-AIR](https://fishair.org/) from 
- [Great Lakes Invasives Network (GLIN)](https://greatlakesinvasives.org/portal/index.php)
- [iDigBio](https://www.idigbio.org/)
- [Morphbank](https://www.morphbank.net/)
- [Illinois Natural History Survey (INHS)](https://biocoll.inhs.illinois.edu/portal/index.php)
- [Minnesota Biodiversity Atlas, Bell Museum](https://bellatlas.umn.edu/index.php)
- [University of Michigan Museum of Zoology (UMMZ), Division of Fishes](https://ipt.lsa.umich.edu/resource?r=ummz\_fish)
- [University of Wisconsin-Madison Zoological Museum - Fish](http://zoology.wisc.edu/uwzm/)
- [Field Museum of Natural History (Zoology, FMNH) Fish Collection](https://fmipt.fieldmuseum.org/ipt/resource?r=fmnh_fishes)
- [The Ohio State University Fish Division, Museum of Biological Diversity (OSUM), Occurrence dataset](https://doi.org/10.15468/subsl8)

[Phenoscape](https://kb.phenoscape.org/about/phenoscape/kb) and [FishBase](https://www.fishbase.se/search.php) were used to provide the information on traits at the species level.

[Open Tree Taxonomy](https://tree.opentreeoflife.org/) was used to standardize the species names provided by Fish-AIR.


#### Data Collection and Processing
<!-- This section describes the data collection and processing process such as data selection criteria, filtering and normalization methods, re-sizing of images, tools and libraries used, etc. 
This is what _you_ did to it following collection from the original source; it will be overall processing if you collected the data initially.
-->

|![Figure 4](https://huggingface.co/datasets/imageomics/fish-vista/resolve/main/figures/DataProcessingPipelineFishVista.png)|
|:--|
|**Figure 4.** An overview of the data processing and filtering pipeline used to obtain Fish-Vista. |

We carefully curated a set of
60K images sourced from various museum collections through [Fish-AIR](https://fishair.org/), including [Great Lakes Invasives Network (GLIN)](https://greatlakesinvasives.org/portal/index.php), [iDigBio](https://www.idigbio.org/), and [Morphbank](https://www.morphbank.net/).
Our pipeline incorporates rigorous stages such as duplicate removal, metadata-driven filtering, cropping, background removal using the [Segment Anything Model (SAM)](https://github.com/facebookresearch/segment-anything), and a final
manual filtering phase. Fish-Vista supports several biologically meaningful tasks such as species
classification, trait identification, and trait segmentation. 



### Annotations
<!-- 
If the dataset contains annotations which are not part of the initial data collection, use this section to describe them. 

Ex: We standardized the taxonomic labels provided by the various data sources to conform to a uniform 7-rank Linnean structure. (Then, under annotation process, describe how this was done: Our sources used different names for the same kingdom (both _Animalia_ and _Metazoa_), so we chose one for all (_Animalia_). -->

#### Annotation process
<!-- This section describes the annotation process such as annotation tools used, the amount of data annotated, annotation guidelines provided to the annotators, interannotator statistics, annotation validation, etc. -->
[Phenoscape](https://kb.phenoscape.org/about/phenoscape/kb) and [FishBase](https://www.fishbase.se/search.php) were used to provide the information on species-level traits (the species-trait matrix).

[Open Tree Taxonomy](https://tree.opentreeoflife.org/) was used to standardize the species names provided by Fish-AIR.

Image-level trait segmentations were manually annotated as described below.

The annotation process for the segmentation subset was led by Wasila Dahdul. She provided guidance and oversight to a team of three people from [NEON](https://www.neonscience.org/about), who used [CVAT](https://zenodo.org/records/7863887) to label nine external traits in the images. These traits correspond to the following terms for anatomical structures in the UBERON anatomy ontology:
1. Eye, [UBERON_0000019](http://purl.obolibrary.org/obo/UBERON_0000019)
2. Head, [UBERON_0000033](http://purl.obolibrary.org/obo/UBERON_0000033)
3. Barbel, [UBERON_2000622](http://purl.obolibrary.org/obo/UBERON_2000622)
4. Dorsal fin, [UBERON_0003097](http://purl.obolibrary.org/obo/UBERON_0003097)
5. Adipose fin, [UBERON_2000251](http://purl.obolibrary.org/obo/UBERON_2000251)
6. Pectoral fin, [UBERON_0000151](http://purl.obolibrary.org/obo/UBERON_0000151)
7. Pelvic fin, [UBERON_0000152](http://purl.obolibrary.org/obo/UBERON_0000152)
8. Anal fin, [UBERON_4000163](http://purl.obolibrary.org/obo/UBERON_4000163)
9. Caudal fin, [UBERON_4000164](http://purl.obolibrary.org/obo/UBERON_4000164)


### Personal and Sensitive Information

None

## Considerations for Using the Data

### Discussion of Biases and Other Known Limitations

- This dataset is imbalanced.  
- There are multiple images of the same specimen for many specimens; sometimes this is due to different views (eg., dorsal or ventral side)
  - The master files contain only images that were determined to be unique (at the pixel level) through MD5 checksum.
^This seems to be a holdover from something else--[More Information Needed]


### Recommendations
[More Information Needed]
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->

## Licensing Information
[More Information Needed]

<!-- 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
[More Information Needed]

**BibTeX:**

**Data**
```
@misc{<ref_code>,
  author = {Kazi Sajeed Mehrab and M. Maruf and Arka Daw and Harish Babu Manogaran and Abhilash Neog and Mridul Khurana and Bahadir Altintas and Yasin Bakış and Elizabeth G Campolongo and Matthew J Thompson and Xiaojun Wang and Hilmar Lapp and Wei-Lun Chao and Paula M. Mabee and Henry L. Bart Jr. and Wasila Dahdul and Anuj Karpatne},
  title = {Fish-Vista: A Multi-Purpose Dataset for Understanding \& Identification of Traits from Images},
  year = {2024},
  url = {https://huggingface.co/datasets/imageomics/fish-vista},
  doi = {<doi once generated>},
  publisher = {Hugging Face}
}
```
<!--
-for an associated paper:
**Paper**
```
@article{<ref_code>,
  title    = {Fish-Vista: A Multi-Purpose Dataset for Understanding \& Identification of Traits from Images},
  author   = {Kazi Sajeed Mehrab and M. Maruf and Arka Daw and Harish Babu Manogaran and Abhilash Neog and Mridul Khurana and Bahadir Altintas and Yasin Bakış and Elizabeth G Campolongo and Matthew J Thompson and Xiaojun Wang and Hilmar Lapp and Wei-Lun Chao and Paula M. Mabee and Henry L. Bart Jr. and Wasila Dahdul and Anuj Karpatne},
  journal  = {<journal_name>},
  year     =  <year>,
  url      = {<DOI_URL>},
  doi      = {<DOI>}
}
```
-->


Please be sure to also cite the original data sources using the citations provided in [metadata/data-bib.bib](https://huggingface.co/datasets/imageomics/fish-vista/blob/main/metadata/data-bib.bib).



## Acknowledgements

This work was supported by the [Imageomics Institute](https://imageomics.org), which 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. -->

## 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 

Kazi Sajeed Mehrab and Elizabeth G. Campolongo

## Dataset Card Contact

[More Information Needed--optional]
<!-- Could include who to contact with questions, but this is also what the "Discussions" tab is for. -->