Datasets:

Modalities:
Image
Text
Formats:
parquet
ArXiv:
DOI:
License:
kdoherty commited on
Commit
eb9285b
·
verified ·
1 Parent(s): 33240bd

Add dataset card text from the GitHub README and the quality gradient figure

Browse files
Files changed (2) hide show
  1. README.md +118 -0
  2. assets/quality_gradient.png +3 -0
README.md CHANGED
@@ -156,3 +156,121 @@ configs:
156
  - split: test
157
  path: reidentification/test-*
158
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
156
  - split: test
157
  path: reidentification/test-*
158
  ---
159
+
160
+ # Wolverine re-identification from camera trap imagery
161
+
162
+ Images and labels for a manuscript under review at *Ecological Informatics* on
163
+ automated re-identification and novelty detection of wolverines (*Gulo gulo*)
164
+ from bait-station camera trap images. Code, runbooks, and results are in the
165
+ GitHub repository [mosscoder/mpg-wolverines](https://github.com/mosscoder/mpg-wolverines).
166
+
167
+ ## The experiment
168
+
169
+ Wolverines are listed as threatened under the U.S. Endangered Species Act and
170
+ occur at low density in remote terrain, so camera trap re-identification is
171
+ one of few practical ways to study them. A bait frame exposes the ventral
172
+ pelage pattern to a nearby game camera, but the animal moves while it feeds and
173
+ the pattern is clearly visible in only a fraction of images. The pipeline has
174
+ two stages.
175
+
176
+ 1. **Pelage visibility classifier.** An image classifier scores every image
177
+ from 0 to 1, the estimated probability that the pelage pattern is clearly
178
+ visible. We call this the quality score.
179
+ 2. **Re-identification with novelty detection.** A frozen image encoder turns
180
+ each image into an encoder output, a trained projection head maps that
181
+ output to an embedding, and images are compared by the cosine similarity of
182
+ their embeddings. A query is assigned to the known individual of its
183
+ nearest gallery image, or flagged as unknown when that similarity falls
184
+ below a threshold. We compared three encoders: DINOv3-ViT-B/16
185
+ (general-purpose; [Siméoni et al. 2025](https://doi.org/10.48550/arXiv.2508.10104)),
186
+ BioCLIP-2 ViT-L/14 (biology-specific; [Gu et al. 2025](https://doi.org/10.48550/arXiv.2505.23883)),
187
+ and MegaDescriptor-L-384 (wildlife-specific; [Čermák et al. 2023](https://doi.org/10.48550/arXiv.2311.09118)).
188
+
189
+ Quality score thresholds of 0, 0.25, and 0.50 are applied to the gallery, to
190
+ the queries, or to both. Re-identification is scored by recall at rank one and
191
+ novelty detection by balanced accuracy, each averaged over individuals. There
192
+ are two experiments, a few-shot experiment (2 to 64 gallery images per
193
+ individual, eight seeds) and a full-data experiment that trains on every
194
+ eligible gallery image. Both report performance on the test split, the most
195
+ recent events of each known individual, at checkpoints selected on the
196
+ validation queries.
197
+
198
+ ![Ten images from one camera trap event for each of three individuals, sorted left to right by quality score](assets/quality_gradient.png)
199
+
200
+ *The quality score as a gradient within a single camera trap event. Each row is
201
+ one daytime event of one individual, ten images sorted from low to high score,
202
+ with the score printed on each image. Camera, scene, and lighting are fixed
203
+ within a row, so the score changes with the animal's pose alone.*
204
+
205
+ ## Configurations
206
+
207
+ Every image is a MegaDetector crop of one wolverine. Splits are temporal within
208
+ each individual, so no test image predates a training image of the same
209
+ animal. The dataset carries no coordinates.
210
+
211
+ **`pelage`** holds the human-labeled crops used to train the pelage visibility
212
+ classifier, 2,431 training and 270 test images from the earliest camera trap
213
+ events of each individual. `label` is the annotator's three-level rating of
214
+ the ventral pelage pattern (0 None, 1 Partial, 2 Full), and the classifier
215
+ treats Full as visible and the other two as not visible. Other columns give the
216
+ individual (`id`), the event start as YYYYMMDDHHMM (`ymdh`), color or
217
+ black-and-white infrared capture (`color`, 1 or 0), the source filename, and
218
+ the MegaDetector confidence and bounding box.
219
+
220
+ **`reidentification`** holds every scored crop from the remaining events,
221
+ 44,201 training and 5,111 test images from 11 individuals, with the
222
+ classifier's `pelage_score` (the quality score) and the individual's identity.
223
+ The test split is the most recent 10% of each individual's events. Which
224
+ individuals serve as known individuals, which as unknown individuals, and which
225
+ events become validation queries is decided downstream, as documented in the
226
+ repository's
227
+ [role assignment runbook](https://github.com/mosscoder/mpg-wolverines/blob/main/preprocessing/README.md).
228
+
229
+ **`default`** and **`crops-masks`** are additional configurations not used by
230
+ the manuscript's pipeline. `default` holds full camera trap frames with review
231
+ metadata, and `crops-masks` holds MegaDetector crops with segmentation masks.
232
+
233
+ ```python
234
+ from datasets import load_dataset
235
+ ds = load_dataset("mpg-ranch/wolverines", "reidentification", split="train")
236
+ ```
237
+
238
+ How the dataset was built from raw camera trap images is documented in the
239
+ repository's
240
+ [dataset creation runbook](https://github.com/mosscoder/mpg-wolverines/blob/main/hugging_face_dataset/v2/README.md).
241
+
242
+ ## Runbooks
243
+
244
+ Each pipeline stage has a README in the GitHub repository that lists its
245
+ scripts in run order, their inputs and outputs, and the values used for the
246
+ manuscript.
247
+
248
+ 1. [Dataset creation](https://github.com/mosscoder/mpg-wolverines/blob/main/hugging_face_dataset/v2/README.md)
249
+ 2. [Pelage visibility classifier](https://github.com/mosscoder/mpg-wolverines/blob/main/pelage_sorting/README.md)
250
+ 3. [Role assignment and manuscript assets](https://github.com/mosscoder/mpg-wolverines/blob/main/preprocessing/README.md)
251
+ 4. [Re-identification and novelty detection](https://github.com/mosscoder/mpg-wolverines/blob/main/reid_openset/README.md)
252
+
253
+ ## Citation
254
+
255
+ To be added on publication.
256
+
257
+ ## References
258
+
259
+ - Čermák, V., Picek, L., Adam, L., and Papafitsoros, K. 2023. WildlifeDatasets: an
260
+ open-source toolkit for animal re-identification. arXiv:2311.09118.
261
+ https://doi.org/10.48550/arXiv.2311.09118
262
+ - Gu, J., Stevens, S., Campolongo, E. G., Thompson, M. J., Zhang, N., Wu, J.,
263
+ Kopanev, A., Mai, Z., White, A. E., Balhoff, J., Dahdul, W., Rubenstein, D.,
264
+ Lapp, H., Berger-Wolf, T., Chao, W.-L., and Su, Y. 2025. BioCLIP 2: emergent
265
+ properties from scaling hierarchical contrastive learning. arXiv:2505.23883.
266
+ https://doi.org/10.48550/arXiv.2505.23883
267
+ - Hernandez, A., Miao, Z., Vargas, L., Beery, S., Dodhia, R., Arbelaez, P., and
268
+ Lavista Ferres, J. M. 2024. Pytorch-Wildlife: a collaborative deep learning
269
+ framework for conservation. arXiv:2405.12930.
270
+ https://doi.org/10.48550/arXiv.2405.12930
271
+ - Siméoni, O., Vo, H. V., Seitzer, M., Baldassarre, F., Oquab, M., Jose, C.,
272
+ Khalidov, V., Szafraniec, M., Yi, S., Ramamonjisoa, M., Massa, F., Haziza, D.,
273
+ Wehrstedt, L., Wang, J., Darcet, T., Moutakanni, T., Sentana, L., Roberts, C.,
274
+ Vedaldi, A., Tolan, J., Brandt, J., Couprie, C., Mairal, J., Jégou, H.,
275
+ Labatut, P., and Bojanowski, P. 2025. DINOv3. arXiv:2508.10104.
276
+ https://doi.org/10.48550/arXiv.2508.10104
assets/quality_gradient.png ADDED

Git LFS Details

  • SHA256: 0bdf9019dc4c99f6fbb2edb11cb0fcc023c8fce5c82417c6e9e4669dd0f7a67c
  • Pointer size: 132 Bytes
  • Size of remote file: 2.66 MB