Insect-Foundation: A Foundation Model and Large-scale 1M Dataset for Visual Insect Understanding

Hoang-Quan Nguyen, Thanh-Dat Truong, Xuan Bac Nguyen, Ashley Dowling, Xin Li, Khoa Luu

TL;DR

The authors introduce Insect-1M, a massive dataset of 1 million images across 34,000+ species, and Insect-Foundation, a model specifically designed to capture the "micro-features" (tiny limbs, textures) essential for identifying insects. By combining large-scale self-supervised learning with hierarchical taxonomic descriptions, they achieve new state-of-the-art results in insect classification and detection, moving us closer to automated precision agriculture.

What Problem Does This Paper Address?

Insects are the most diverse organisms on Earth, with an estimated 5.5 million species. In precision agriculture, identifying these insects is critical for crop health and yield. However, computer vision models struggle in this domain for two main reasons:

  1. Data Scarcity: Existing insect datasets are tiny compared to the actual diversity of species. Even the best prior datasets cover only a fraction of known insects.
  2. The "Micro-Feature" Gap: Standard foundation models (like those trained on ImageNet) are designed for generic objects. They often miss the subtle, microscopic details—like the specific texture of a wing or the shape of a limb—that are necessary to distinguish between closely related insect species.

Methods

To bridge this gap, the researchers developed a new foundation model architecture and training paradigm:

  • Patch-wise Relevant Attention (PRA): Instead of standard masked image modeling (which just tries to reconstruct missing pixels), PRA presents the model with a masked image and a "pool" of candidate patches from various insects. The model must calculate a relevance score to identify which patches actually belong to the original image. This forces the model to learn highly discriminative features.
  • Description Consistency Loss: The model doesn't just look at images; it reads about them. By aligning visual features with hierarchical taxonomic descriptions (from Subphylum down to Species), the model gains semantic grounding for the visual "micro-features" it detects.
  • Architecture: The model uses a Vision Transformer (ViT) backbone and a BERT-based text encoder/decoder, jointly optimized via contrastive learning and description decoding.
Figure 1. Our Proposed Patch-wise Relevant Attention. Given masked insect images and separated image patches, our model can discriminate these patches that have small differences via relevant scores computed between masked images and image patches.

Datasets

The paper introduces Insect-1M, which significantly raises the bar for entomological AI:

  • Scale: 1,017,036 images—roughly 13x larger than the previous standard, IP102.
  • Diversity: 34,212 species with labels across 6 hierarchical levels (Subphylum, Class, Order, Family, Genus, Species).
  • Richness: Includes detailed textual descriptions for each taxonomic level.

For evaluation, the authors use the IP102 benchmark for both classification and detection tasks to compare against existing methods.

Figure 2. Examples of Our Insect-1M Dataset. The left figure illustrates the samples of the four Subphylums, including Chelicerata, Crustacea, Hexapoda, and Myriapoda. The right figure shows an example of hierarchical descriptions of the Aurantia Species.

Key Insights and Ideas

  • Context vs. Detail: The authors argue that popular methods like Masked Autoencoders (MAE) focus too much on global context and fail to reconstruct fine details. Their PRA method shifts the focus to local, discriminative features.
  • Semantic Grounding: Using taxonomic descriptions acts as a powerful regularizer. It ensures that the "micro-features" the model learns are not just random noise but correspond to biological realities described by entomologists.
  • Foundation Power: Pre-training on a domain-specific 1M-image dataset proves far more effective for downstream insect tasks than fine-tuning a generic model trained on millions of everyday objects (like ImageNet).

Key Results

The Insect-Foundation model consistently outperformed prior state-of-the-art (SOTA) methods:

  • Classification (IP102): Achieved 75.8% Top-1 accuracy, significantly higher than generic ViT (71.6%) and other self-supervised methods like MAE (72.0%) or CoCa (72.8%).
  • Detection (IP102): Reached an Average Precision (AP) of 36.6%, outperforming models pre-trained on ImageNet (32.8%) and other self-supervised approaches.
  • Zero-Shot Learning: The model showed impressive zero-shot classification capabilities (49.9% accuracy), demonstrating a strong alignment between its visual and textual understanding.
Figure 4. Comparisons of Self-supervised Methods. MAE [18] fails to reconstruct the details of the insect since it learns general information about the image. Micron-BERT [36] hardly distin- guishes the insect and background. Jigsaw-ViT [11] cannot correct shuffled patches due to confusion between the background and the object. Meanwhile, our approach can find separated patches be- longing to the insect by scoring each patch. Best viewed in color.

Limitations and Future Work

The authors identify a key limitation in their current Patch-wise Relevant Attention design: it treats background and foreground patches equally. In complex natural scenes, this can make it difficult for the model to isolate the insect from its environment.

Future work will likely focus on improving this attention mechanism to better weight foreground features. Additionally, while 1 million images is a huge step forward, it still only represents a small slice of the 5.5 million known insect species, suggesting that dataset expansion remains a long-term goal for the field.

Summary updated

BibTeX
@inproceedings{nguyen2023insect,
  author = {Hoang-Quan Nguyen and Thanh-Dat Truong and Xuan Bac Nguyen and Ashley Dowling and Xin Li and Khoa Luu},
  title = {{Insect-Foundation: A Foundation Model and Large-scale 1M Dataset for Visual Insect Understanding}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
}
Figure