iScience
Volume 25, Issue 9, 16 September 2022, 104924
Journal home page for iScience

Article
Artificial intelligence versus natural selection: Using computer vision techniques to classify bees and bee mimics

https://doi.org/10.1016/j.isci.2022.104924Get rights and content
Under a Creative Commons license
open access

Highlights

  • AI models for classifying bees and bumble bees achieved 92% and 89% accuracy

  • AI models were fooled most by bee mimics exhibiting both aggressive and defensive mimicry

  • Class activation maps explained the anatomical reasoning of AI model classifications

  • t-SNE plot exhibited perfect phylogenetic clustering within and between groups

Summary

Many groups of stingless insects have independently evolved mimicry of bees to fool would-be predators. To investigate this mimicry, we trained artificial intelligence (AI) algorithms—specifically, computer vision—to classify citizen scientist images of bees, bumble bees, and diverse bee mimics. For detecting bees and bumble bees, our models achieved accuracies of 91.71% and 88.86%, respectively. As a proxy for a natural predator, our models were poorest in detecting bee mimics that exhibit both aggressive and defensive mimicry. Using the explainable AI method of class activation maps, we validated that our models learn from appropriate components within the image, which in turn provided anatomical insights. Our t-SNE plot yielded perfect within-group clustering, as well as between-group clustering that grossly replicated the phylogeny. Ultimately, the transdisciplinary approaches herein can enhance global citizen science efforts as well as investigations of mimicry and morphology of bees and other insects.

Subject areas

Artificial intelligence
Bioinformatics
Computing methodology
Entomology
Zoology

Data and code availability

  • All data used in this study are available through Mendeley Data (Bhuiyan, 2022).

  • All code used in this study is available through a Zenodo repository (Bhuiyan et al., 2022).

  • Other associated information is available in our Supplemental Information Excel files.

Cited by (0)

3

Lead contact