Insect Size Matters: Using Image and Dimensions Together Improves Image Classification
Preprint
Abstract
Although visual features have been the cornerstone of insect recognition, morphological traits are often overlooked by modern “scale-invariant” deep learning-based methods. One such trait is absolute body size, which is commonly used by entomologists to describe species. We propose a novel approach that integrates explicit size information into computer vision models. Our method improves predictions of a Convolutional Neural Network (ResNet) by incorporating the likelihood of an insect belonging to each class based on its size and the size distribution of the training data. We compare the performance of the proposed size-aware approach against a standard ResNet and a feature-fused ResNet model, demonstrating that incorporating explicit dimensional traits, such as body size, can enhance classification accuracy across both balanced and imbalanced dataset scenarios. Our results also show that incorporating size reduces classification error, especially in low-data scenarios and for hierarchically coarse, taxonomic misclassifications (e.g., errors at the family level). Despite being readily available and computationally inexpensive, size has, to our knowledge, not been used in this context before. We show that explicitly including size is both computationally efficient and practical, as it requires no specialized sensors and can be derived from standard image segmentation. This makes our approach highly scalable for automated monitoring of insects with camera traps. By acknowledging the importance of size, our approach also contributes to more robust and interpretable ecological modeling. This work opens new avenues for biologically informed AI applications in entomology and beyond.Keywords
All Related Versions
- Published version: Ecological Informatics, 94.
Funding Information
- Novo Nordisk Foundation Start Package Grant (NNF22OC0077040)
This publication has 26 references indexed in Scilit:
- Towards a toolkit for global insect biodiversity monitoringPhilosophical Transactions of the Royal Society B: Biological Sciences, 2024
- Interpreting Black-Box Models: A Review on Explainable Artificial IntelligenceCognitive Computation, 2023
- Rove-Tree-11: The Not-so-Wild Rover a Hierarchically Structured Image Dataset for Deep Metric Learning Research2023
- Emerging technologies revolutionise insect ecology and monitoringTrends in Ecology & Evolution, 2022
- Deep learning and computer vision will transform entomologyProceedings of the National Academy of Sciences, 2021
- Pest24: A large-scale very small object data set of agricultural pests for multi-target detectionComputers and Electronics in Agriculture, 2020
- Opening the Black Box: Interpretable Machine Learning for GeneticistsTrends in Genetics, 2020
- Polyphenism in InsectsCurrent Biology, 2011
- Bayesian Analysis for the Social Sciences2009
- A Mathematical Theory of CommunicationBell System Technical Journal, 1948