Abstract
In an effort to catalog insect biodiversity, we propose a new large dataset of hand-labelled insect images, the BIOSCAN-Insect Dataset. Each record is taxonomically classified by an expert, and also has associated genetic information including raw nucleotide barcode sequences and assigned barcode index numbers, which are genetically-based proxies for species classification. This paper presents a curated million-image dataset, primarily to train computer-vision models capable of providing image-based taxonomic assessment, however, the dataset also presents compelling characteristics, the study of which would be of interest to the broader machine learning community. Driven by the biological nature inherent to the dataset, a characteristic long-tailed class-imbalance distribution is exhibited. Furthermore, taxonomic labelling is a hierarchical classification scheme, presenting a highly fine-grained classification problem at lower levels. Beyond spurring interest in biodiversity research within the machine learning community, progress on creating an image-based taxonomic classifier will also further the ultimate goal of all BIOSCAN research: to lay the foundation for a comprehensive survey of global biodiversity. This paper introduces the dataset and explores the classification task through the implementation and analysis of a baseline classifier.
Introduction
We are currently facing a "looming mass extinction," with estimates suggesting an eighth of all species could vanish by 2100. To mitigate this, we need to track biodiversity in real-time. However, the biosphere is staggeringly diverse—containing over 10 million multicellular species—and the number of expert taxonomists capable of identifying them is shrinking.
While DNA barcoding (sequencing short, standardized segments of DNA) is highly accurate, it requires specialized lab facilities. Image-based identification via computer vision offers a scalable alternative, but existing datasets are either too small, lack expert verification, or don't cover the "long tail" of rare species found in the wild. The authors address this by releasing a curated, million-image dataset that links visual phenotypes directly to genetic "ground truth."
The BIOSCAN-1M Dataset
The BIOSCAN-1M Insect Dataset introduces over 1.1 million high-resolution insect images paired with expert taxonomic labels and DNA barcode sequences. This massive multimodal resource aims to bridge the gap between traditional biology and machine learning, providing a foundation for automated, planet-scale biodiversity monitoring.
A key feature of the dataset is the use of Barcode Index Numbers (BINs). Because many insects are not yet named, the BIN acts as a "genetic social security number." This allows researchers to train models on distinct biological entities even before a human taxonomist has officially described the species.
The dataset is further categorized into subsets for specific tasks, such as BIOSCAN-Order (1.1M images across 16 taxonomic orders) and BIOSCAN-Diptera (~891k images across 40 families). Compared to the popular iNaturalist dataset, BIOSCAN-1M contains fewer total images but represents a much higher number of unique genetic clusters (BINs).
The dataset reflects nature's reality—an extreme long-tail distribution where a few classes (like Diptera) have hundreds of thousands of samples, while many others have fewer than ten. This makes it a perfect playground for researching few-shot learning and class-imbalance strategies.
Methodology
Specimens were collected from Costa Rica, Canada, and South Africa using Malaise traps. Each insect underwent a rigorous pipeline:
- Imaging: High-resolution (2880×2160) microscope photography.
- Genetics: DNA sequencing of the mitochondrial COI gene to assign a Barcode Index Number (BIN).
- Taxonomy: Expert labeling across the Linnean hierarchy (Phylum to Species).
On the machine learning side, the authors developed a custom cropping tool based on the DETR (DEtection TRansformer) model to isolate insects from their backgrounds, which significantly improved model performance. They established baselines using ResNet-50 and ViT-B/16 architectures, testing both standard Cross-Entropy and Focal Loss to handle the extreme class imbalance.
Results and Analysis
The baseline models achieved impressive results at higher taxonomic levels:
- Order-level classification: The best model (ViT-B/16) achieved 99.69% micro-accuracy on the Large dataset.
- Family-level classification: Accuracy remained high at 97.59%.
- Macro vs. Micro: While micro-accuracy (overall correctness) was high, macro-accuracy (average accuracy per class) was lower (~90-91%), highlighting the difficulty of identifying rare species in the "tail" of the distribution.
The Vision Transformer (ViT) generally outperformed the ResNet-50, particularly in capturing the global context needed for complex insect morphologies.
Conclusion and Future Work
The primary limitation of the current dataset is label sparsity at lower taxonomic levels; while 100% of the data is labeled at the Order level, only 7.5% has expert Species-level labels.
Future work will focus on:
- Multimodal Learning: Integrating raw DNA sequences with images to create more robust classifiers.
- Zero-Shot Learning: Using genetic information to identify species the model has never seen in training images.
- Expanding Taxa: Moving beyond insects to include other multicellular life forms.
By providing this dataset, the BIOSCAN team has laid the groundwork for a "planet-scale observation system" that could eventually allow anyone with a smartphone or a basic microscope to contribute to global biodiversity conservation.
Summary updated