rays45 commited on
Commit
39ffffd
·
verified ·
1 Parent(s): 20532d8

Update README.md

Browse files

Added Chuck's updates

Files changed (1) hide show
  1. README.md +58 -57
README.md CHANGED
@@ -27,16 +27,17 @@ configs:
27
  - final_metadata.json
28
  description: >-
29
  A comprehensive ecological computer vision dataset designed for wildlife
30
- detection, species classification, and individual animal re-identification.
31
- Features bounding boxes, identifiability scores, and individual re-ID clusters
 
32
  processed through the 9-stage Great Grevy's Rally (GGR) pipeline.
33
  ---
34
 
35
  # Dataset Card for GZCD (Grevy's Zebra Census Dataset)
36
 
37
- The **GZCD (Grevy's Zebra Census Dataset)** is a comprehensive ecological computer vision dataset designed for wildlife detection, species classification, and individual animal re-identification (Re-ID). Captured primarily in the field, this dataset emphasizes endangered equid and ungulate populations, specifically Grevy's zebras, Plains zebras, and Reticulated giraffes.
38
 
39
- GZCD consists of field photographs captured in Meru County, Kenya, taken over four days by 13 photographers during 2016 and 2018 iterations of the **Great Grevy's Rally (GGR)**. The data collection was carried out by citizen scientists and conservationists across a 25,000 square kilometer range. It was curated to help train and test new computer vision algorithms, most notably building upon the pivotal animal re-identification work by Jason Parham.
40
 
41
  ---
42
 
@@ -56,7 +57,6 @@ This dataset provides raw ecological image data alongside the carefully processe
56
  The dataset contains the raw images and two metadata files representing the data before and after processing through the GGR pipeline.
57
 
58
  ```
59
- text
60
  /dataset/
61
  images/
62
  <uuid 1>.jpg
@@ -66,7 +66,6 @@ text
66
  final_metadata.json
67
  ```
68
 
69
-
70
  ### Data Instances
71
  - `images/`: The raw field images capturing various wildlife species.
72
  - `initial_metadata.json`: Represents the raw state of the dataset prior to processing, containing EXIF data, camera body details, flash card source data, GPS coordinates, and initial image dimensions.
@@ -76,42 +75,26 @@ text
76
 
77
  #### Categories
78
  Both JSON files share a consistent mapping of 23 categories:
79
- * `0: grevy's zebra`
80
- * `1: plains zebra`
81
- * `2: giraffe_reticulated`
82
- * `3: ignore`
83
- * `4: bird`
84
- * `5: antelope`
85
- * `6: impala`
86
- * `7: goat`
87
- * `8: water_buffalo`
88
- * `9: person`
89
- * `10: gazelle`
90
- * `11: lion`
91
- * `12: donkey`
92
- * `13: domesticated_cow`
93
- * `14: rhino_white`
94
- * `15: elephant_savanna`
95
- * `16: horse`
96
- * `17: ostrich`
97
- * `18: warthog`
98
- * `19: car`
99
- * `20: rhino_black`
100
- * `21: camel`
101
- * `22: ____`
102
 
103
 
104
  #### `initial_metadata.json`
105
  Contains metadata of the image files before running the pipeline:
106
  - **`gid`**: Integer global ID.
107
- - **`uuid`**: Unique string identifier for the image.
108
  - **`uri` / `uri_original` / `original_name` / `original_path`**: File paths and names pointing to the `images/` directory.
109
  - **`ext`**: File extension (e.g., `.jpg`).
110
  - **`width` / `height`**: Image dimensions in pixels.
111
- - **`time_posix`**: Epoch timestamp of image capture.
112
  - **`gps_lat` / `gps_lon`**: Geographic coordinates of the image capture. *Note: Missing, masked, or unknown GPS coordinates are explicitly encoded as `-1.0`.*
113
- - **`orientation`**: Camera orientation integer.
114
- - **`location_code`**: Dataset specific location code (e.g., "GZCD").
115
  - **`camera_make` / `camera_model`**: Hardware metadata extracted from image EXIF data.
116
  - **`card_id`**: Identifier string tracking the specific physical storage card used during field data ingestion.
117
 
@@ -120,46 +103,46 @@ Contains metadata of the image files before running the pipeline:
120
  Contains cleaned image metadata and a rich `annotations` array generated by the GGR pipeline:
121
  - **Image Data:** `uuid`, `image_path`, `datetime`, `latitude`, `longitude` (encoded as `-1.0` if unknown), `width`, `height`, `camera_make`, `camera_model`, `card_id`.
122
  - **Annotations:**
123
- - **`image_uuid`**: Links the annotation to the parent image.
124
- - **`bbox`**: Absolute bounding box `[x, y, width, height]` of the detected animal.
125
- - **`region_bbox`**: A localized bounding box of census annotation region.
126
- - **`category_id`**: Integer corresponding to the species category list.
127
- - **`viewpoint`**: String denoting viewpoint orientation (e.g., `right`, `left`).
128
- - **`CA_score`**: Float representing the Identifiable Annotation (IA) confidence score.
129
- - **`annotations_census`**: Boolean indicating if the annotation is valid for population counting.
130
  - **`annot_uuid`**: Unique identifier for the specific detection.
131
- - **`manual`**: Boolean indicating if the annotation underwent manual verification.
132
- - **`individual_id`**: UUID grouping annotations belonging to the exact same individual animal across different images for Re-ID.
133
 
134
  ---
135
 
136
  ## Dataset Creation
137
 
138
  ### Data Collection and Processing
139
- The images were collected in **Meru County, Kenya** during the 2016 and 2018 census rallies. This dataset is the direct output of the GGR Pipeline, a 9-stage workflow designed for robust ecological tracking:
140
 
141
- 1. **Import:** Parses raw field data, ingests card/camera metadata, and generates standard metadata descriptions, mapping absolute paths to the images.
142
  2. **Detection:** Utilizes YOLO to localize animals in the images, creating initial bounding boxes (`bbox`).
143
  3. **Species Classification:** Processes detections through BioCLIP to classify the species (e.g., Grevy's zebra vs. Plains zebra).
144
- 4. **Viewpoint Classification:** Determines the orientation of the detected animal (`up`, `front`, `back`, `left`, `right`).
145
- 5. **Census Annotation (CA) Classification:** Evaluates photographic quality and pose. Assigns a `CA_score` and a boolean flag indicating if the animal's features (e.g., stripes) are clear enough for individual identification.
146
- 6. **CA Filtering:** Discards annotations below the identifiability threshold decided empirically and simplifies viewpoints strictly to `left` or `right` flanks for Re-ID purposes.
147
- 7. **MiewID:** Generates deep metric embeddings for all filtered high-quality annotations leveraging the MiewID feature extraction model.
148
- 8. **Local Clusters and Alternatives (LCA) Algorithm:** Clusters the generated embeddings based on feature similarity, grouping annotations of the same individual animal together by resolving inconsistencies.
149
  ---
150
 
151
  ## Considerations for Using the Data
152
 
153
  - **Missing Location Data:** When GPS coordinates could not be resolved from field equipment or manual logs, fields for `latitude` and `longitude` (`gps_lat`/`gps_lon`) default to `-1.0`. Algorithms utilizing geometric filtering should catch these sentinel values.
154
- - **Viewpoint Filtering:** Because Re-ID of Grevy's Zebra relies on right-flank stripe patterns, the pipeline aggressively selects `right` viewpoints whose embeddings are extracted and ID assigned. Other viewpoints are excluded from ID assignment.
155
- - **Geographic Focus:** The spatial data anchors tightly to the **Meru County** ecosystem in Kenya. Models trained heavily on this dataset may experience domain shift when deployed in different biomes or under disparate lighting conditions.
156
  - **Class Imbalance:** Due to the targeted focus of the Great Grevy's Rally on Grevy's Zebras, the final JSON contains individual IDs for Grevy's Zebra only.
157
 
158
  ---
159
 
160
  ## Citations & References
161
 
162
- If you use this dataset, please cite both the dataset release and the foundational computer vision framework developed for scaling up citizen science wildlife censuses:
163
 
164
  ```bibtex
165
  @misc{gzcd2026,
@@ -167,16 +150,34 @@ If you use this dataset, please cite both the dataset release and the foundation
167
  title = {GZCD: Grevy's Zebra Census Dataset},
168
  year = {2026},
169
  publisher = {Hugging Face},
170
- howpublished = {\url{[https://huggingface.co/datasets/imageomics/GZCD](https://huggingface.co/datasets/imageomics/GZCD)}}
171
  }
172
  ```
 
 
 
 
 
 
 
 
173
  ```
 
174
  @inproceedings{parham2017animal,
175
- author = {Jason Parham and Jonathan Crall and Charles Stewart and Tanya Berger-Wolf and Daniel I. Rubenstein},
176
- title = {Animal Population Censusing at Scale with Citizen Science and Photographic Identification},
177
  booktitle = {Proceedings of the AAAI 2017 Spring Symposium on AI for Social Good},
178
- address = {Stanford, CA},
179
- year = {2017}
 
 
 
 
 
 
 
 
 
180
  }
181
  ```
182
 
 
27
  - final_metadata.json
28
  description: >-
29
  A comprehensive ecological computer vision dataset designed for wildlife
30
+ detection, species classification, and especially individual animal re-identification.
31
+ The images were collected during the Great Grevy's Rally in 2016 and 2018 in Meru County, Kenya.
32
+ The dataset features bounding boxes, identifiability scores, and individual re-ID clusters
33
  processed through the 9-stage Great Grevy's Rally (GGR) pipeline.
34
  ---
35
 
36
  # Dataset Card for GZCD (Grevy's Zebra Census Dataset)
37
 
38
+ The **GZCD (Grevy's Zebra Census Dataset)** is a comprehensive ecological computer vision dataset designed for wildlife detection, species classification, and individual animal re-identification (Re-ID). Captured entirely during the fieldwork, this dataset emphasizes endangered equid and ungulate populations, specifically Grevy's zebras, Plains zebras, and Reticulated giraffes.
39
 
40
+ GZCD consists of field photographs captured in Meru County, Kenya, taken over four days by 13 photographers during 2016 and 2018 iterations of the **Great Grevy's Rally (GGR)**. The data collection was carried out by citizen scientists and conservationists across a 25,000 square kilometer range. It was curated to help train and test new computer vision algorithms, originally as part of Jason Parham's PhD dissertation work (Parham, 2021; Parham et al., 2017) and refined by a team at the Imageomics Institute.
41
 
42
  ---
43
 
 
57
  The dataset contains the raw images and two metadata files representing the data before and after processing through the GGR pipeline.
58
 
59
  ```
 
60
  /dataset/
61
  images/
62
  <uuid 1>.jpg
 
66
  final_metadata.json
67
  ```
68
 
 
69
  ### Data Instances
70
  - `images/`: The raw field images capturing various wildlife species.
71
  - `initial_metadata.json`: Represents the raw state of the dataset prior to processing, containing EXIF data, camera body details, flash card source data, GPS coordinates, and initial image dimensions.
 
75
 
76
  #### Categories
77
  Both JSON files share a consistent mapping of 23 categories:
78
+ | category ID : category Name | category ID : category Name | category ID : category Name | category ID : category Name | category ID : category Name |
79
+ | :--- | :--- | :--- | :--- | :--- |
80
+ | 0 : grevy's zebra | 1 : plains zebra | 2 : giraffe_reticulated | 3 : ignore | 4 : bird |
81
+ | 5 : antelope | 6 : impala | 7 : goat | 8 : water_buffalo | 9 : person |
82
+ | 10 : gazelle | 11 : lion | 12 : donkey | 13 : domesticated_cow | 14 : rhino_white |
83
+ | 15 : elephant_savanna | 16 : horse | 17 : ostrich | 18 : warthog | 19 : car |
84
+ | 20 : rhino_black | 21 : camel | 22 : \_\_\_\_ | | |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
 
86
 
87
  #### `initial_metadata.json`
88
  Contains metadata of the image files before running the pipeline:
89
  - **`gid`**: Integer global ID.
90
+ - **`uuid`**: Unique string identifier for the image. This is computed deterministically so it will not change unless the contents of the file are changed.
91
  - **`uri` / `uri_original` / `original_name` / `original_path`**: File paths and names pointing to the `images/` directory.
92
  - **`ext`**: File extension (e.g., `.jpg`).
93
  - **`width` / `height`**: Image dimensions in pixels.
94
+ - **`time_posix`**: Posix time of image capture. Cameras were time-synchronized at the start of each image collection drive.
95
  - **`gps_lat` / `gps_lon`**: Geographic coordinates of the image capture. *Note: Missing, masked, or unknown GPS coordinates are explicitly encoded as `-1.0`.*
96
+ - **`orientation`**: Camera orientation integer. This represents the standard EXIF orientation tag (values 1 through 8) embedded by the camera. It tells the software which way is "up," ensuring the image isn't viewed sideways or upside-down. For example, 1 is standard/normal, 3 is upside-down, and 6 or 8 represent 90-degree rotations.
97
+ - **`location_code`**: A short categorical label identifying which data-collection campaign or site an image belongs to (e.g., `"GZCD"` for this dataset). It lets images from different collection events or geographic areas be grouped and filtered consistently throughout the pipeline.
98
  - **`camera_make` / `camera_model`**: Hardware metadata extracted from image EXIF data.
99
  - **`card_id`**: Identifier string tracking the specific physical storage card used during field data ingestion.
100
 
 
103
  Contains cleaned image metadata and a rich `annotations` array generated by the GGR pipeline:
104
  - **Image Data:** `uuid`, `image_path`, `datetime`, `latitude`, `longitude` (encoded as `-1.0` if unknown), `width`, `height`, `camera_make`, `camera_model`, `card_id`.
105
  - **Annotations:**
106
+ - **`image_uuid`**: The `uuid` of the parent image this annotation was drawn on (i.e., the image-level `uuid` described in the Image Data section above). It links each detection back to its source image.
107
+ - **`bbox`**: Bounding box of the detected animal in **absolute pixel coordinates**, as `[x, y, width, height]`. `(x, y)` is the **top-left (upper-left) corner** of the box, measured from the image's top-left origin (x increases rightward, y increases downward); `width` and `height` extend right and down from that corner.
108
+ - **`region_bbox`**: The **Census Annotation Region (CA-R)** — a tighter box, in the same pixel format as `bbox`, that crops down to just the most identifiable part of the animal (for Grévy's zebra, the hip and shoulder chevron stripe pattern). Its purpose is to remove distracting background and body parts so that individual re-identification matches on the most discriminative region, which makes matching faster and more accurate.
109
+ - **`category_id`**: Integer index into the species category list defined in [Categories](#categories) section. It maps the annotation to its species (e.g., grevy's zebra).
110
+ - **`viewpoint`**: String giving the side of the animal shown. Possible values follow the WBIA viewpoint vocabulary: `left`, `right`, `front`, `back`, `frontleft`, `frontright`, `backleft`, `backright`. Because GZCD photographers were trained to shoot the right side, annotations are overwhelmingly `right`, `frontright`, or `backright`.
111
+ - **`CA_score`**: The Census Annotation confidence score — a float from **0.0 to 1.0** output by the CA classifier, representing how confident the model is that the annotation is a clean, universally-comparable view usable for individual identification (correct side, with the identifying chevron pattern clearly visible). Higher is better: ~0.99 means a clear, high-quality view; values near 0 mean the chevron is not clearly visible.
112
+ - **`annotations_census`**: Boolean indicating whether this annotation qualifies as a Census Annotation — i.e., it passed the census filtering (correct species/viewpoint and a high enough `CA_score`) and is therefore considered valid for inclusion in the population count. Restricting counting to these clean views avoids over-counting from poor or ambiguous detections.
113
  - **`annot_uuid`**: Unique identifier for the specific detection.
114
+ - **`manual`**: Boolean indicating whether a human reviewer set or verified this annotation. `true` means a person confirmed (or hand-corrected) the box and its labels; `false` means it was produced automatically by the detection pipeline without human review.
115
+ - **`individual_id`**: UUID that indicates which individual animal is seen in this annotation. All annotations that were determined to be from the same individual animal will have the same, unique UUID (used for Re-ID across images).
116
 
117
  ---
118
 
119
  ## Dataset Creation
120
 
121
  ### Data Collection and Processing
122
+ The images were collected in **Meru County, Kenya** during the 2016 and 2018 census rallies. This dataset is the output of the GGR Pipeline, a `8-stage` workflow designed for robust ecological tracking. Some manual corrections were made. Here are the stages:
123
 
124
+ 1. **Import:** Parses raw field data, ingests card/camera metadata, and generates standard metadata descriptions, mapping absolute paths to the images. Synchronizations time and GPS recording with external sources.
125
  2. **Detection:** Utilizes YOLO to localize animals in the images, creating initial bounding boxes (`bbox`).
126
  3. **Species Classification:** Processes detections through BioCLIP to classify the species (e.g., Grevy's zebra vs. Plains zebra).
127
+ 4. **Viewpoint Classification:** Determines the orientation of the detected animal (`left`, `frontleft`, `back`, `right`, `backright` etc).
128
+ 5. **Census Annotation (CA) Classification:** Evaluates photographic quality and pose. Assigns a `CA_score` and a boolean flag indicating if the annotation shows a clear enough view of the animal's right hip and right chevron.
129
+ 6. **CA Filtering:** Discards annotations below an identifiability threshold decided empirically and simplifies viewpoints strictly to `left` or `right` flanks for Re-ID purposes.
130
+ 7. **MiewID:** Generates deep metric embeddings for all CA's the MiewID model (Otarashvili, 2023).
131
+ 8. **Local Clusters and Alternatives (LCA) Algorithm:** Generates clusters of CA's each corresponding to a single animal. Uses human-in-the-loop decision making to resolve inconsistencies.
132
  ---
133
 
134
  ## Considerations for Using the Data
135
 
136
  - **Missing Location Data:** When GPS coordinates could not be resolved from field equipment or manual logs, fields for `latitude` and `longitude` (`gps_lat`/`gps_lon`) default to `-1.0`. Algorithms utilizing geometric filtering should catch these sentinel values.
137
+ - **Viewpoint Filtering:** Because the GGR photographers were strongly encouraged to take images showing a zebra's right hip and chevron, there is a strong bias in the dataset toward right side viewpoint.
138
+ - **Geographic Focus:** The imageset is collected exclusively in **Meru County** in Kenya. Models trained exclusively on this dataset may experience issues associated with domain shift when deployed in different environments.
139
  - **Class Imbalance:** Due to the targeted focus of the Great Grevy's Rally on Grevy's Zebras, the final JSON contains individual IDs for Grevy's Zebra only.
140
 
141
  ---
142
 
143
  ## Citations & References
144
 
145
+ If you use this dataset, please cite the dataset release along with the foundational computer vision work that scaled up citizen-science wildlife censusing (the GGR pipeline and Parham's dissertation) and the MiewID re-identification model used in the pipeline:
146
 
147
  ```bibtex
148
  @misc{gzcd2026,
 
150
  title = {GZCD: Grevy's Zebra Census Dataset},
151
  year = {2026},
152
  publisher = {Hugging Face},
153
+ howpublished = {\url{https://huggingface.co/datasets/imageomics/GZCD}}
154
  }
155
  ```
156
+ ```bibtex
157
+ @phdthesis{parham2021animal,
158
+ author = {Jason R. Parham},
159
+ title = {Animal Detection for Photographic Censusing},
160
+ school = {Rensselaer Polytechnic Institute},
161
+ address = {Troy, NY, USA},
162
+ year = {2021}
163
+ }
164
  ```
165
+ ```bibtex
166
  @inproceedings{parham2017animal,
167
+ author = {Jason Parham and Jonathan Crall and Charles Stewart and Tanya Berger-Wolf and Daniel I. Rubenstein},
168
+ title = {Animal Population Censusing at Scale with Citizen Science and Photographic Identification},
169
  booktitle = {Proceedings of the AAAI 2017 Spring Symposium on AI for Social Good},
170
+ address = {Stanford, CA},
171
+ year = {2017}
172
+ }
173
+ ```
174
+ ```bibtex
175
+ @misc{otarashvili2023miewid,
176
+ author = {Lasha Otarashvili},
177
+ title = {MiewID},
178
+ year = {2023},
179
+ doi = {10.5281/zenodo.13647526},
180
+ url = {https://github.com/WildMeOrg/wbia-plugin-miew-id}
181
  }
182
  ```
183