A Step Towards Worldwide Biodiversity Assessment: The BIOSCAN-1M Insect Dataset

Zahra Gharaee, ZeMing Gong, Nicholas Pellegrino, Iuliia Zarubiieva, Joakim Bruslund Haurum, Scott C. Lowe, Jaclyn T. A. McKeown, Chris C. Y. Ho, Joschka McLeod, Yi-Yun C Wei, Jireh Agda, Sujeevan Ratnasingham, Dirk Steinke, Angel X. Chang, Graham W. Taylor, Paul Fieguth

TL;DR

The paper introduces BIOSCAN-1M, a massive, curated dataset containing over 1.1 million high-quality microscope images of insects, uniquely paired with expert taxonomic labels and raw DNA barcode sequences. By providing a multi-modal bridge between computer vision and genomics, this dataset serves as a benchmark for training machine learning models to scale up global biodiversity assessment.

What Problem Does This Paper Address?

We are currently facing a looming mass extinction crisis, making the tracking of global biodiversity more urgent than ever. While DNA barcoding—sequencing short, standardized segments of mitochondrial DNA—has revolutionized species identification, it remains bottlenecked by the availability of specialized genomic sequencing facilities.

Conversely, human expert taxonomists can accurately classify insects from photographs, but this manual annotation process cannot scale to the millions of samples required for global monitoring. Computer vision (CV) offers a solution to automate and democratize taxonomic assessment, but existing biological image datasets are either too small, focused purely on agricultural pests, or lack ground-truth genetic validation. The authors address this gap by releasing a massive, genetically verified image dataset designed to train robust taxonomic classifiers.

Methods

The creation of the BIOSCAN-1M dataset involved a rigorous pipeline:

  1. Sample Collection & Imaging: Insect specimens were collected via Malaise traps across Costa Rica, Canada, and South Africa. High-resolution (2880×2160 pixels) RGB images were captured using a Keyence VHX-7000 microscope.
  2. Genomic Sequencing: DNA barcodes (specifically the mitochondrial COI gene) were generated using high-throughput Single-Molecule Real-Time (SMRT) sequencing. These sequences were mapped to Barcode Index Numbers (BINs), which act as genetically verified proxies for species.
  3. Object Detection & Preprocessing: Because insects vary wildly in size and posture, the authors fine-tuned a DEtection TRansformer (DETR) object detection model with a ResNet-50 backbone to automatically locate and crop the main insect in each image, significantly reducing background noise and storage size.
  4. Baseline Classification: To establish a benchmark, the authors fine-tuned two prominent architectures—ResNet-50 and a Vision Transformer (ViT-B/16)—using both standard Cross-Entropy and Focal Loss to classify insects at fixed taxonomic levels (Order and Family).
Figure 1: BIOSCAN-1M Insect dataset records contain high-quality microscope images of insects and labels including the taxonomic classification, raw DNA sequences, and Barcode Index Number (BIN). Pictured here is a mosquito of the subfamily Culicinae, the most populous subfamily of mosquitoes with species found around the world.

Datasets

The primary contribution is the BIOSCAN-1M Insect Dataset, which contains approximately 1.1 million images. To facilitate varied experimental scales, the authors introduced several subsets:

  • BIOSCAN-Order: The full dataset filtered down to the 16 most densely populated taxonomic orders.
  • BIOSCAN-Diptera: A subset of 891,338 images focusing exclusively on the 40 most populous families within the order Diptera (flies and mosquitoes).
  • Medium and Small Splits: Downsampled variations containing 200,000 and 50,000 samples, respectively, to allow for rapid prototyping.

Compared to existing benchmarks like iNaturalist, BIOSCAN-1M features a vastly different distribution of species, with very little overlap, meaning it captures a distinct and largely unmapped segment of the biosphere.

Key Insights and Ideas

  • The Biological Long-Tail: The dataset exhibits an extreme, naturally occurring long-tailed class imbalance that follows a power-law distribution. For instance, the order Diptera contains nearly 900,000 images, while the order Embioptera contains only 6. This presents a realistic and compelling challenge for out-of-the-box machine learning algorithms.
Class distribution charts highlighting the extreme long-tailed imbalance at both the Order and Family levels.
  • Hierarchical Complexity: Biological taxonomy is inherently hierarchical (Domain $\rightarrow$ Kingdom $\rightarrow$ Phylum $\rightarrow$ Class $\rightarrow$ Order $\rightarrow$ Family $\rightarrow$ Tribe $\rightarrow$ Genus $\rightarrow$ Species). Classification difficulty scales drastically as models move down to fine-grained lower levels.
  • Model-Driven Data Cleaning: Qualitative analysis of the baseline model's errors revealed that roughly 45% to 57% of misclassifications were due to low-quality or obscured images. This suggests that computer vision can actively assist in automated data curation and quality control for massive biological repositories.

Key Results

The baseline experiments demonstrated that the Vision Transformer (ViT-B/16) paired with Cross-Entropy loss consistently achieved the highest performance across the board:

  • Order-Level Classification (16 classes): Achieved a 99.69% Top-1 Micro accuracy and a 90.61% Macro accuracy on the large dataset.
  • Family-Level Classification (40 classes): Achieved a 97.59% Top-1 Micro accuracy and a 91.20% Macro accuracy.
  • Impact of Preprocessing: Utilizing the DETR-cropped images not only reduced the dataset storage footprint from 2.3 TB to 7 GB but also allowed the models to converge significantly faster during training while yielding slightly higher classification accuracy.

Limitations and Future Work

A key limitation of the current dataset is incomplete labeling at lower taxonomic levels. While 100% of the data is labeled at the Order level, only 22.5% is labeled at the Genus level, and a mere 7.5% at the Species level, due to the sheer difficulty and time constraints of expert human validation.

The baseline models evaluated in this paper are "flat" classifiers that treat taxonomic levels independently. The authors note that future work should focus on developing true hierarchical classifiers that can output uncertainty estimates across multiple taxonomic depths, exploring zero-shot learning using the DNA barcodes as side information, and building multimodal architectures that natively fuse visual and genetic data.

Summary updated

BibTeX
@inproceedings{gharaee2023step,
  author = {Zahra Gharaee and ZeMing Gong and Nicholas Pellegrino and Iuliia Zarubiieva and Joakim Bruslund Haurum and Scott C. Lowe and Jaclyn T. A. McKeown and Chris C. Y. Ho and Joschka McLeod and Yi-Yun C Wei and Jireh Agda and Sujeevan Ratnasingham and Dirk Steinke and Angel X. Chang and Graham W. Taylor and Paul Fieguth},
  title = {{A Step Towards Worldwide Biodiversity Assessment: The BIOSCAN-1M Insect Dataset}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=5foNg8uNx5},
}
Figure