egrace479 commited on
Commit
d8d92b6
1 Parent(s): 726f8a9

Update description of dataset components

Browse files

Add configs, rationale, considerations, extra notes, log file description

Files changed (1) hide show
  1. README.md +71 -49
README.md CHANGED
@@ -11,67 +11,96 @@ tags:
11
  - separated wings
12
  - mimicry
13
  - CV
 
 
 
 
 
 
14
  pretty_name: Jiggins Heliconius Collection
15
  size_categories:
16
  - 10K<n<100K
17
  language:
18
  - en
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  ---
20
  # Dataset Card for Jiggins Heliconius Collection
21
 
22
  ## Dataset Description
23
 
 
24
  - **Homepage:**
25
  - **Repository:**
26
  - **Paper:**
27
  - **Leaderboard:**
28
  - **Point of Contact:**
 
29
 
30
  ### Dataset Summary
31
 
32
- Subset of the collection records from the research group of Chris Jiggins at the University of Cambridge derived from almost 20 years of field studies.
33
- This subset contains approximately 49,359 RGB images of 12,586 specimens (34,929 images of 9,546 specimens across all Heliconius). Many records include images as well as locality data.
34
- All detached wings were photographed with a DSLR camera with a 100 mm macro-lens in standardized conditions; images and full records with data are stored in the [EarthCape database](https://heliconius.ecdb.io/default.aspx) and on [Zenodo](https://zenodo.org/communities/butterfly?q=&l=list&p=1&s=10&sort=newest) (across 32 records from the Butterfly Genetics Group).
 
 
 
35
 
36
  Both dorsal and ventral images available. Contains both whole butterfly, and 4 wings separate. Large variation in image content.
37
 
38
  <!---
39
  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).
40
  --->
 
41
  ### Supported Tasks and Leaderboards
42
 
43
- [More Information Needed]
44
 
45
  ### Languages
46
 
47
- [More Information Needed]
48
 
49
  ## Dataset Structure
50
 
51
- * **Jiggins_Zenodo_Img_Master.csv:** Information for the approximately 49,0000 unprocessed image files included in the Jiggins Heliconius Collection. Image types are `jpg`, `raw` (.CR2) and `tif`. `genus`, `species`, and `subspecies` are included columns.
52
- * To access the images combine columns `zenodo_link` and `Image_name`:
53
- ```
54
- zenodo_link + '/files/' + Image_name
55
- ```
56
 
57
- * **Jiggins_Zenodo_dorsal_Img_Master.csv:** Subset of 24,318 images from `Jiggins_Zenodo_Img_Master.csv` with a dorsal view of the butterflies (note that some have both dorsal and ventral). This subset includes 12,296 unique specimens. Accessing the images from Zenodo works the same as above, and image types are `jpg`, `raw` (.CR2) and `tif`.
58
 
59
- * **Jiggins_Heliconius_Master.csv:** The 34,929-image subset of all Heliconius images from `Jiggins_Zenodo_Img_Master.csv`. This subset includes 9,546 unique specimens. Accessing the images from Zenodo works the same as above, and image types are `jpg`, `raw` (.CR2) and `tif`. `species` and `subspecies` columns are also included.
60
 
61
 
62
-
63
- * Note: The notebooks that generated these files and stats are included in the `notebooks` folder.
64
-
 
 
 
 
 
 
 
65
 
66
  ### Data Instances
67
 
68
  `Jiggins_Heliconius_Master.csv` contains multiple species of Heliconius (including erato and melpomene), most are labeled down to the subspecies level. The `Jiggins_Zenodo_Img_Master.csv` also contains species from other genera, with just over half labeled to the subspecies level (these are predominantly Heliconius subspecies).
 
69
  Detached wings in four quadrants (generally).
70
  Some subspecies may be photographed differently, needs segmentation preprocessing.
71
 
72
  * **Type:** JPG/jpg/tif(very few)
73
  * **Size (x pixels by y pixels):** Unknown yet
74
- * **Background (color or none):** multiple (needs to be normalized)
75
  * **Fit in frame:**
76
  * **Ruler or Scale:** Some with Ruler
77
  * **Color (ColorChecker, white-balance, None):** None
@@ -90,12 +119,12 @@ CSV Columns are as follows:
90
 
91
  - `CAMID`: Unique identifier for each specimen that was photographed. Each `CAMID` corresponds to multiple images (based on factors such as `View` and `file_type`).
92
  - `X`: Unique identifier for each line in the master CSV.
93
- - `Image_name`: Filename of image.
94
  - `View`: View of the butterfly in the image: `dorsal`, `ventral`, `forewing dorsal`, `hindwing dorsal`, `forewing ventral`, `hindwing ventral`, `dorsal and ventral`.
95
  - `zenodo_name`: Name of the CSV file with metadata used to populate this file from the associated Zenodo record.
96
  - `zenodo_link`: URL for the Zenodo record of the image.
97
  - `Sequence`: Mostly numeric IDs, not unique, please see the associated Zenodo record for more information on the meaning of these designations.
98
- - `Taxonomic_Name`: Indication of the Genus, Species, and possibly, subspecies, of the specimen. For Cross Types, this is just the Genus species pair (all _Heliconius erato_ or _Heliconius melpomene_).
99
  - `Locality`: Likely location of specimen collection, varying levels of specificity. Please see the associated Zenodo record for more information on the meaning of these designations.
100
  - `Sample_accession`: Some type of ID, not unique, please see the associated Zenodo record for more information on the meaning of these designations.
101
  - `Collected_by`: Abbreviations (likely for those collecting the specimen), please see the associated Zenodo record for more information on the meaning of these designations.
@@ -114,44 +143,40 @@ CSV Columns are as follows:
114
  - `species`: Species of the specimen. There are 246 species represented in the full collection, 37 of these are species of Heliconius.
115
  - `subspecies`: Subspecies of the specimen (where available, mostly labeled for Heliconius). There are 155 subspecies represented in the full collection, 110 of which are Heliconius subspecies.
116
  - `genus`: Genus of the specimen. There are 94 unique genera represented in the full collection.
 
 
117
 
118
  **Note:**
119
- - `Jiggins_Heliconius_Master.csv` has all but the `genus` column, since all images are Heliconius.
120
- - `Jiggins_Zenodo_dorsal_Img_Master.csv` does not have the last four columns, but they can be added easily with the appropriate functions in `notebooks/standardize_taxa.ipynb`. This file also has a column `CAM_dupe` indicating whether the `CAMID` has multiple images within this subset.
 
 
121
 
 
122
  ### Data Splits
123
 
124
  [More Information Needed]
 
125
 
126
  ## Dataset Creation
127
 
128
  ### Curation Rationale
129
 
130
- [More Information Needed]
131
-
132
- ### Source Data
133
 
134
- These images are a subset of the [Butterfly Genetics Group's Cambridge butterfly collection](https://zenodo.org/communities/butterfly?q=&f=subject%3ACambridge&l=list&p=1&s=10&sort=newest). This collection of butterfly images comes from the research group of Chris Jiggins at the University of Cambridge derived from almost 20 years of field studies.
135
 
136
- Data is pulled from the Zenodo Records in [`licenses.json`](https://huggingface.co/datasets/imageomics/Jiggins_Heliconius_Collection/blob/main/licenses.json). This file also contains full citation information for all records.
137
-
138
- #### Initial Data Collection and Normalization
139
-
140
- [More Information Needed]
141
-
142
- #### Who are the source language producers?
143
 
144
- [More Information Needed]
145
 
146
- ### Annotations
147
 
148
- #### Annotation process
149
 
150
- [More Information Needed]
151
 
152
- #### Who are the annotators?
153
 
154
- [More Information Needed]
155
 
156
  ### Personal and Sensitive Information
157
 
@@ -159,17 +184,13 @@ None
159
 
160
  ## Considerations for Using the Data
161
 
162
- ### Social Impact of Dataset
163
 
164
- [More Information Needed]
 
 
 
165
 
166
- ### Discussion of Biases
167
-
168
- [More Information Needed]
169
-
170
- ### Other Known Limitations
171
-
172
- [More Information Needed]
173
 
174
  ## Additional Information
175
 
@@ -178,6 +199,7 @@ None
178
  * Christopher Lawrence (Princeton University) - ORCID: 0000-0002-3846-5968
179
  * Chris Jiggins (University of Cambridge) - ORCID: 0000-0002-7809-062X
180
  * Butterfly Genetics Group (University of Cambridge)
 
181
 
182
  ### Licensing Information
183
 
@@ -187,10 +209,10 @@ Images can be matched to their source record through the `zenodo_link` column in
187
 
188
  ### Citation Information
189
 
190
- Christopher Lawrence, Chris Jiggins, Butterfly Genetics Group (University of Cambridge). (2023). Jiggins Heliconius Collection. Hugging Face. https://huggingface.co/datasets/imageomics/Jiggins_Heliconius_Collection.
191
 
192
- If you use this dataset, please cite the original datasets (citations for all 32 Zenodo records are in licenses.json) as well as this curated subset.
193
 
194
  ### Contributions
195
 
196
- The [Imageomics Institute](https://imageomics.org) is funded by the US National Science Foundation's Harnessing the Data Revolution (HDR) Institute 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).
 
11
  - separated wings
12
  - mimicry
13
  - CV
14
+ - erato
15
+ - melpomene
16
+ - hybrids
17
+ - cross types
18
+ - wild
19
+ - lab-bred
20
  pretty_name: Jiggins Heliconius Collection
21
  size_categories:
22
  - 10K<n<100K
23
  language:
24
  - en
25
+ configs:
26
+ - config_name: full_master
27
+ data_files:
28
+ - split: train
29
+ path: "Jiggins_Zenodo_Img_Master.csv"
30
+ - config_name: heliconius
31
+ data_files:
32
+ - split: train
33
+ path: "Jiggins_Heliconius_Master.csv"
34
+ - config_name: dorsal
35
+ data_files:
36
+ - split: train
37
+ path: "Jiggins_Zenodo_dorsal_Img_Master.csv"
38
  ---
39
  # Dataset Card for Jiggins Heliconius Collection
40
 
41
  ## Dataset Description
42
 
43
+ <!--
44
  - **Homepage:**
45
  - **Repository:**
46
  - **Paper:**
47
  - **Leaderboard:**
48
  - **Point of Contact:**
49
+ -->
50
 
51
  ### Dataset Summary
52
 
53
+ Subset of the collection records from Chris Jiggins' research group at the University of Cambridge, collection covers nearly 20 years of field studies.
54
+ This subset contains approximately 44,809 RGB images of 11,991 specimens (34,265 images of 10,109 specimens across all Heliconius). Many records have both images and locality data.
55
+
56
+ Most images were photographed with a DSLR camera with a 100 mm macro-lens in standardized conditions.
57
+ More information can be found at the individual Zenodo record pages.
58
+ Images and full records with data are stored in the [EarthCape database](https://heliconius.ecdb.io/default.aspx) and on [Zenodo](https://zenodo.org/communities/butterfly?q=&l=list&p=1&s=10&sort=newest) (across 31 records from the Butterfly Genetics Group).
59
 
60
  Both dorsal and ventral images available. Contains both whole butterfly, and 4 wings separate. Large variation in image content.
61
 
62
  <!---
63
  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).
64
  --->
65
+ <!--
66
  ### Supported Tasks and Leaderboards
67
 
68
+ [More Information Needed] -->
69
 
70
  ### Languages
71
 
72
+ English, Latin
73
 
74
  ## Dataset Structure
75
 
76
+ * **Jiggins_Zenodo_Img_Master.csv:** Information for the approximately 45,0000 unprocessed image files included in the Jiggins Heliconius Collection. Image types are `jpg`, `raw` (.CR2) and `tif`. `genus`, `species`, and `subspecies` are included columns.
 
 
 
 
77
 
78
+ * **Jiggins_Zenodo_dorsal_Img_Master.csv:** Subset of 22,175 images from `Jiggins_Zenodo_Img_Master.csv` with a dorsal view of the butterflies (note that some have both dorsal and ventral). This subset includes 12,296 unique specimens. Image types and columns are the same as for the Master file.
79
 
80
+ * **Jiggins_Heliconius_Master.csv:** The 34,265-image subset of all Heliconius images from `Jiggins_Zenodo_Img_Master.csv`. This subset includes 10,109 unique specimens. IImage types and columns are the same as for the Master file.
81
 
82
 
83
+ **Notes:**
84
+ - The notebooks that generated these files and stats are included in the `notebooks` folder.
85
+ - The original Jiggins Zenodo Master file was compiled from the CSVs provided with the included Zenodo records from the Butterfly Genetics Group. Christopher Lawrence selected which of these provided columns to include. Further processing and standardization (all documented in the Jupyter Notebooks) was performed by Elizabeth Campolongo.
86
+ - Taxonomic information for records [5526257](https://zenodo.org/record/5526257), [2554218](https://zenodo.org/record/2554218), and [2555086](https://zenodo.org/record/2555086) was recovered from information on their Zenodo pages, as the provided CSVs did not contain that information.
87
+ - Be advised that there may be overlap between images in [record 2548678](https://zenodo.org/records/2548678) and [record 3082688](https://zenodo.org/records/3082688).
88
+ - The `scripts` folder has a download and checksum script.
89
+ - Images are downloaded to the provided images directory with subfolders labeled by the `Taxonomic_Name`, with filenames `<X>_<Image_name>`.
90
+ - The checksum script is called by `download_jiggins_subset.py` to generate an MD5 for all download images and creates a CSV with `filepath`, `filename`, and `md5` columns in the same folder as the source CSV (named `<source CSV>_checksums.csv`). This helps to ensure FAIR and Reproducible results, though this will _**not**_ distinguish between the raw and jpg versions of the same image.
91
+ - A log of the download is also generated in the same folder as the source CSV (named `<source CSV>_log.json`).
92
+ - `metadata/Missing_taxa_Jiggins_Zenodo_Master.csv` contains a record of the images that did not have easily reconcilable taxonomic information (see `notebooks/standardize_datasets.ipynb` for more information on this data). There are 1,630 such images distributed across 18 records.
93
 
94
  ### Data Instances
95
 
96
  `Jiggins_Heliconius_Master.csv` contains multiple species of Heliconius (including erato and melpomene), most are labeled down to the subspecies level. The `Jiggins_Zenodo_Img_Master.csv` also contains species from other genera, with just over half labeled to the subspecies level (these are predominantly Heliconius subspecies).
97
+
98
  Detached wings in four quadrants (generally).
99
  Some subspecies may be photographed differently, needs segmentation preprocessing.
100
 
101
  * **Type:** JPG/jpg/tif(very few)
102
  * **Size (x pixels by y pixels):** Unknown yet
103
+ * **Background (color or none):** multiple (needs to be normalized, often grey or lime green)
104
  * **Fit in frame:**
105
  * **Ruler or Scale:** Some with Ruler
106
  * **Color (ColorChecker, white-balance, None):** None
 
119
 
120
  - `CAMID`: Unique identifier for each specimen that was photographed. Each `CAMID` corresponds to multiple images (based on factors such as `View` and `file_type`).
121
  - `X`: Unique identifier for each line in the master CSV.
122
+ - `Image_name`: Filename of image (not unique, often `CAM<CAMID>_<v or d>`).
123
  - `View`: View of the butterfly in the image: `dorsal`, `ventral`, `forewing dorsal`, `hindwing dorsal`, `forewing ventral`, `hindwing ventral`, `dorsal and ventral`.
124
  - `zenodo_name`: Name of the CSV file with metadata used to populate this file from the associated Zenodo record.
125
  - `zenodo_link`: URL for the Zenodo record of the image.
126
  - `Sequence`: Mostly numeric IDs, not unique, please see the associated Zenodo record for more information on the meaning of these designations.
127
+ - `Taxonomic_Name`: Indication of the Genus, species, and possibly, subspecies, of the specimen. For Cross Types, the hybrid names are reduced to just the two subspecies (from the `Cross_Type` column) and non-specified crosses are labeled `<Genus> <species> cross hybrid`.
128
  - `Locality`: Likely location of specimen collection, varying levels of specificity. Please see the associated Zenodo record for more information on the meaning of these designations.
129
  - `Sample_accession`: Some type of ID, not unique, please see the associated Zenodo record for more information on the meaning of these designations.
130
  - `Collected_by`: Abbreviations (likely for those collecting the specimen), please see the associated Zenodo record for more information on the meaning of these designations.
 
143
  - `species`: Species of the specimen. There are 246 species represented in the full collection, 37 of these are species of Heliconius.
144
  - `subspecies`: Subspecies of the specimen (where available, mostly labeled for Heliconius). There are 155 subspecies represented in the full collection, 110 of which are Heliconius subspecies.
145
  - `genus`: Genus of the specimen. There are 94 unique genera represented in the full collection.
146
+ - `file_url`: URL to download image from Zenodo: `zenodo_link + "/files/" + Image_name`. Allows for sample image display in [data dashboard](https://huggingface.co/spaces/imageomics/dashboard-prototype).
147
+ - `hybrid_stat`: Hybrid status of the sample: `hybrid`, `non-hybrid`, or `None`. Hybrids are determined by an ` x ` or `hybrid` in the `Taxonomic_Name` column, all other images classified to the _subspecies_ level are labeled as `non-hybrid`, and the parent species of the one species-level hybrid is labeled as `non-hybrid` (only one of them is present in the dataset).
148
 
149
  **Note:**
150
+ - `Jiggins_Zenodo_dorsal_Img_Master.csv` also has a column `CAM_dupe` indicating whether the `CAMID` has multiple images within this subset.
151
+ - We do not leave the first instance as a non-duplicate, so to have a clear assessment of all duplication (eg., is it just across a couple records, file types, etc).
152
+ - `CAMID`s are necessarily duplicated for the images that are of just a dorsal forewing or hindwing, so we label those as `single_wing`.
153
+ - There are multiple jpg images & multiple raw images of the same specimen. Note that this does not necessarily mean these are duplicates of the same images. There are also jpg copies provided alongside raw images.
154
 
155
+ <!--
156
  ### Data Splits
157
 
158
  [More Information Needed]
159
+ -->
160
 
161
  ## Dataset Creation
162
 
163
  ### Curation Rationale
164
 
165
+ The Butterfly Genetics Group has a large collection of butterfly images distributed across 31 Zenodo records. They do not all have the same information, and it is sometimes only provided in the record, but not the metadata. With this collection, we combine the provided information (metadata) into a shared format that is easily ingested into ML pipelines. We also add some other labels of interest (based on identification determined by the Butterfly Genetics Group), and endeavor to remove duplication, noting potential points of duplication and providing some assessment tools to help prevent data leakage.
 
 
166
 
167
+ Additionally, these datasets are prepared in a format that allows for easy integration with the Imageomics Institute's [Data Dashboard](https://huggingface.co/spaces/imageomics/dashboard-prototype) for distribution statistics and easy sampling of images by taxonomic information and view.
168
 
169
+ ### Source Data
 
 
 
 
 
 
170
 
171
+ These images are a subset of the [Butterfly Genetics Group's Cambridge butterfly collection](https://zenodo.org/communities/butterfly?q=&f=subject%3ACambridge&l=list&p=1&s=10&sort=newest). This collection of butterfly images comes from the research group of Chris Jiggins at the University of Cambridge derived from almost 20 years of field studies.
172
 
173
+ Data is pulled from the Zenodo Records in [`licenses.json`](https://huggingface.co/datasets/imageomics/Jiggins_Heliconius_Collection/blob/main/metadata/licenses.json). This file also contains full citation information for all records.
174
 
 
175
 
176
+ #### Initial Data Collection and Annotation
177
 
178
+ These images are of a mix of wild-caught and lab-bred butterflies, classified by the Butterfly Genetics Group.
179
 
 
180
 
181
  ### Personal and Sensitive Information
182
 
 
184
 
185
  ## Considerations for Using the Data
186
 
187
+ ### Discussion of Biases and Other Known Limitations
188
 
189
+ - This dataset is imbalanced. Even among the Heliconius subset, some subspecies are more heavily represented than others.
190
+ - There are a mix of valid subspecies and hybrids that are labeled as such, but there are also images of butterflies classified only to the genus or species level, for which such a designation may not be clearly made (there are also instances of "_Heliconius <species> hybrid_", where the parent subspecies are not indicated.
191
+ - There may be overlap between images in [record 2548678](https://zenodo.org/records/2548678) and [record 3082688](https://zenodo.org/records/3082688).
192
+ - There are multiple images of the same specimen for many specimens; sometimes this is due to different views (eg., dorsal or ventral side), sometimes it is due to JPG copies of the RAW photos, though it is also sometimes that new photos were taken of the same specimen at a different times.
193
 
 
 
 
 
 
 
 
194
 
195
  ## Additional Information
196
 
 
199
  * Christopher Lawrence (Princeton University) - ORCID: 0000-0002-3846-5968
200
  * Chris Jiggins (University of Cambridge) - ORCID: 0000-0002-7809-062X
201
  * Butterfly Genetics Group (University of Cambridge)
202
+ * Elizabeth G. Campolongo - ORCID: 0000-0003-0846-2413
203
 
204
  ### Licensing Information
205
 
 
209
 
210
  ### Citation Information
211
 
212
+ Christopher Lawrence, Chris Jiggins, Butterfly Genetics Group (University of Cambridge), Elizabeth Campolongo. (2024). Jiggins Heliconius Collection. Hugging Face. https://huggingface.co/datasets/imageomics/Jiggins_Heliconius_Collection.
213
 
214
+ If you use this dataset, please cite the original datasets (citations for all 31 Zenodo records are in licenses.json) as well as this curated subset.
215
 
216
  ### Contributions
217
 
218
+ 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.