File size: 11,218 Bytes
a0c71ca e34780d 87cd295 e34780d a0c71ca 87cd295 a0c71ca e34780d a0c71ca e34780d a0c71ca e34780d a0c71ca e34780d a0c71ca e34780d a0c71ca e34780d a0c71ca e34780d a0c71ca e34780d a0c71ca e34780d a0c71ca e34780d a0c71ca e34780d a0c71ca e34780d a0c71ca e34780d a0c71ca e34780d a0c71ca e34780d a0c71ca e34780d a0c71ca e34780d a0c71ca e34780d a0c71ca e34780d a0c71ca 38ca0b1 e34780d a0c71ca e34780d a0c71ca e34780d a0c71ca e34780d a0c71ca e34780d a0c71ca e34780d a0c71ca | 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 | ---
license: mit
configs:
- config_name: default
data_files:
- split: train
path: data/train-*
dataset_info:
features:
- name: image
dtype: image
- name: objects
sequence:
- name: bbox
sequence: float64
- name: category
dtype: string
splits:
- name: train
num_bytes: 7697416830.254
num_examples: 2418
download_size: 6432490239
dataset_size: 7697416830.254
---
# Dataset Card for IBBI Out-of-Distribution (OOD) Dataset
## Dataset Summary
This dataset contains **out-of-distribution (OOD)** images of bark and ambrosia beetles, intended for evaluating the robustness and generalization capabilities of models from the `ibbi` Python package. The **121 species** included in this dataset were not part of the original training or in-distribution test sets used for the `ibbi` package models.
This dataset is crucial for testing how well models can:
- **Reject unknown classes** (for multi-class classifiers) by assigning low confidence scores.
- **Generalize detection** to beetle species they have not been explicitly trained on (for single-class detectors).
The dataset can be loaded directly using the `ibbi` package:
```python
import ibbi
ood_dataset = ibbi.get_dataset(repo_id="IBBI-bio/ibbi_ood_dataset")
````
## Supported Tasks
- **Out-of-Distribution Detection**: The primary purpose is to evaluate how models respond to unseen species.
- **Object Detection**: Can be used to benchmark the generalization performance of beetle detectors.
## Dataset Structure
### Data Instances
Each instance in the dataset consists of an image and a corresponding set of object annotations.
**Example:**
```json
{
"image": "<PIL.Image.Image image>",
"objects": {
"bbox": [
[656.56, 1335.47, 80.53, 75.35]
],
"category": [
"Dendroctonus_frontalis"
]
}
}
```
### Data Fields
* `image`: A PIL Image object of a beetle specimen.
* `objects`: A dictionary containing the annotation information for the image.
* `bbox`: A list of bounding boxes. Each box is in the format `[x_min, y_min, width, height]`.
* `category`: A list of string labels corresponding to the species in each bounding box.
### Data Splits
The dataset contains a single split, named `train` for compatibility with Hugging Face's default structure. This split serves as the official out-of-distribution evaluation set.
* **`train`**: 2,880 images.
## Dataset Statistics
| Metric | Value |
| ------------------------------ | ------------- |
| Total Images | 2,880 |
| Unique Species | 121 |
| Total Bounding Box Annotations | 12,884 |
| Average Bboxes per Image | 5.33 |
| Average Image Dimensions (WxH) | 2146 x 1702 |
| Species | Annotation Count |
| ----------------------------------- | ---------------- |
| Pseudopityophthorus_minutissimus | 1220 |
| Dactylotrypes_longicollis | 1090 |
| Carphoborus_bifurcus | 1077 |
| Scolytus_rugulosus | 867 |
| Hypothenemus_seriatus | 840 |
| Anisandrus_maiche | 643 |
| Scolytus_carpini | 620 |
| Cryphalus_mangiferae | 612 |
| Eidophelus_fagi | 611 |
| Cryptocarenus_seriatus | 529 |
| Hylurgus_micklitzi | 423 |
| Pityogenes_hopkinsi | 418 |
| Anisandrus_obesus | 363 |
| Pityophthorus_pityographus | 314 |
| Scolytus_intricatus | 284 |
| Dendroctonus_adjunctus | 274 |
| Pityogenes_japonicus | 218 |
| Ernoporus_tiliae | 213 |
| Hylocurus_langstoni | 169 |
| Tomicus_brevipilosus | 72 |
| Xyleborus_monographus | 58 |
| Tomicus_piniperda | 51 |
| Trypodendron_lineatum | 50 |
| Dendroctonus_frontalis | 44 |
| Xyleborus_bispinatus | 41 |
| Xylocleptes_bispinus | 39 |
| Trypodendron_signatum | 38 |
| Hypothenemus_eruditus | 38 |
| Polygraphus_poligraphus | 36 |
| Hypothenemus_birmanus | 36 |
| Ambrosiodmus_rubricollis | 35 |
| Chaetoptelius_mundulus | 34 |
| Xyleborus_perforans | 34 |
| Euwallacea_kuroshio | 33 |
| Xyleborus_volvulus | 32 |
| Hylastes_ater | 31 |
| Xyleborinus_andrewesi | 29 |
| Euwallacea_interjectus | 29 |
| Xyloterinus_politus | 28 |
| Xyleborus_pubescens | 28 |
| Gnathotrichus_materiarius | 27 |
| Dendroctonus_ponderosae | 25 |
| Xyleborinus_attenuatus | 25 |
| Ambrosiodmus_lewisi | 24 |
| Cyclorhipidion_bodoanum | 23 |
| Xyleborus_horridus | 23 |
| Hylastes_gracilis | 22 |
| Crossotarsus_mnizsechi | 22 |
| Ips_pini | 22 |
| Xyleborinus_schaufussi | 21 |
| Premnobius_cavipennis | 21 |
| Xyleborinus_gracilis | 20 |
| Xyleborinus_artestriatus | 19 |
| Stegomerus_pygmaeus | 19 |
| Truncaudum_agnatum | 19 |
| Euwallacea_funereus | 18 |
| Dinoplatypus_pallidus | 18 |
| Scolytus_ratzeburgi | 18 |
| Euwallacea_wallacei | 18 |
| Dryocoetes_confusus | 18 |
| Pityoborus_comatus | 18 |
| Eccoptopterus_spinosus | 18 |
| Euwallacea_similis | 18 |
| Hypothenemus_obscurus | 17 |
| Hypothenemus_dissimilis | 17 |
| Euwallacea_posticus | 17 |
| Diuncus_justus | 17 |
| Xyleborus_spinulosus | 17 |
| Leptoxyleborus_sordicauda | 17 |
| Ambrosiodmus_hagedorni | 16 |
| Hypothenemus_javanus | 16 |
| Microperus_alpha | 16 |
| Cnestus_bimaculatus | 16 |
| Ambrosiodmus_obliquus | 16 |
| Hadrodemius_globus | 16 |
| Webbia_pabo | 15 |
| Monarthrum_lobatum | 15 |
| Dendroterus_defectus | 15 |
| Ambrosiodmus_devexulus | 15 |
| Heteroborips_seriatus | 15 |
| Diuncus_papatrae | 15 |
| Debus_pumilus | 15 |
| Hypothenemus_atomus | 15 |
| Ambrosiodmus_asperatus | 14 |
| Platypus_selysi | 14 |
| Hylastes_cunicularius | 14 |
| Diuncus_haberkorni | 14 |
| Metacorthylus_velutinus | 14 |
| Monarthrum_laterale | 14 |
| Scolytus_mundus | 14 |
| Coptoborus_pseudotenuis | 14 |
| Monarthrum_dentigerum | 14 |
| Coptoborus_coartatus | 14 |
| Scolytus_aztecus | 14 |
| Truncaudum_impexum | 14 |
| Cnesinus_strigicollis | 13 |
| Tricosa_metacuneolus | 13 |
| Procryphalus_mucronatus | 13 |
| Debus_emarginatus | 13 |
| Xyleborus_bidentatus | 13 |
| Xyleborus_impressus | 13 |
| Scolytus_dimidiatus | 13 |
| Ambrosiodmus_tachygraphus | 13 |
| Crypturgus_hispidulus | 13 |
| Carphoborus_bicornis | 13 |
| Hypothenemus_crudiae | 13 |
| Microperus_diversicolor | 13 |
| Dendroctonus_pseudotsugae | 13 |
| Xyleborus_xylographus | 13 |
| Monarthrum_huachucae | 13 |
| Crossotarsus_lacordairei | 12 |
| Xyleborinus_exiguus | 12 |
| Xyleborus_intrusus | 12 |
| Pycnarthrum_hispidum | 12 |
| Microperus_popondettae | 12 |
| Pseudowebbia_trepanicauda | 12 |
| Pseudopityophthorus_pruinosus | 12 |
| Beaverium_insulindicus | 11 |
| Hylastes_tenuis | 11 |
| Wallacellus_piceus | 10 |
| Euwallacea_destruens | 10 |
## Dataset Creation
The images and annotations were curated by the Forest Entomology Lab at the University of Florida. Specifically, this dataset is composed of images that were filtered out during the creation of the primary `ibbi` multi-class training dataset. The species included here are those that had either fewer than 50 total bounding box annotations or were represented by fewer than 50 images, making them ideal for out-of-distribution testing. Bounding boxes and species labels were provided by expert annotators. The data was originally stored in a format with one JSON file per image, detailing the bounding box coordinates and labels for one or more objects.
## Citation
If you use this dataset in your research, please cite the associated paper for the `ibbi` project:
```bibtex
@article{marais2025progress,
title={Progress in developing a bark beetle identification tool},
author={Marais, G Christopher and Stratton, Isabelle C and Johnson, Andrew J and Hulcr, Jiri},
journal={PLoS One},
volume={20},
number={6},
pages={e0310716},
year={2025},
publisher={Public Library of Science San Francisco, CA USA}
}
``` |