Species‐level image classification with convolutional neural network enables insect identification from habitus images

Abstract Changes in insect biomass, abundance, and diversity are challenging to track at sufficient spatial, temporal, and taxonomic resolution. Camera traps can capture habitus images of ground‐dwelling insects. However, currently sampling involves manually detecting and identifying specimens. Here, we test whether a convolutional neural network (CNN) can classify habitus images of ground beetles to species level, and estimate how correct classification relates to body size, number of species inside genera, and species identity. We created an image database of 65,841 museum specimens comprising 361 carabid beetle species from the British Isles and fine‐tuned the parameters of a pretrained CNN from a training dataset. By summing up class confidence values within genus, tribe, and subfamily and setting a confidence threshold, we trade‐off between classification accuracy, precision, and recall and taxonomic resolution. The CNN classified 51.9% of 19,164 test images correctly to species level and 74.9% to genus level. Average classification recall on species level was 50.7%. Applying a threshold of 0.5 increased the average classification recall to 74.6% at the expense of taxonomic resolution. Higher top value from the output layer and larger sized species were more often classified correctly, as were images of species in genera with few species. Fine‐tuning enabled us to classify images with a high mean recall for the whole test dataset to species or higher taxonomic levels, however, with high variability. This indicates that some species are more difficult to identify because of properties such as their body size or the number of related species. Together, species‐level image classification of arthropods from museum collections and ecological monitoring can substantially increase the amount of occurrence data that can feasibly be collected. These tools thus provide new opportunities in understanding and predicting ecological responses to environmental change.

[1]  Johann G. Zaller,et al.  Monitoring arthropods in protected grasslands: comparing pitfall trapping, quadrat sampling and video monitoring , 2015 .

[2]  Margaret Kosmala,et al.  Automatically identifying, counting, and describing wild animals in camera-trap images with deep learning , 2017, Proceedings of the National Academy of Sciences.

[3]  D. Wagner Insect Declines in the Anthropocene. , 2020, Annual review of entomology.

[4]  Yang Song,et al.  The iNaturalist Challenge 2017 Dataset , 2017, ArXiv.

[5]  Vincent S. Smith,et al.  No specimen left behind: industrial scale digitization of natural history collections , 2012, ZooKeys.

[6]  T. Høye,et al.  The influence of weather conditions on the activity of high-arctic arthropods inferred from long-term observations , 2008, BMC Ecology.

[7]  Heiko Briesen,et al.  Pitfall trap sampling bias depends on body mass, temperature, and trap number: insights from an individual‐based model , 2017 .

[8]  Bradford C. Lister,et al.  Climate-driven declines in arthropod abundance restructure a rainforest food web , 2018, Proceedings of the National Academy of Sciences.

[9]  John La Salle,et al.  Whole-drawer imaging for digital management and curation of a large entomological collection , 2012, ZooKeys.

[10]  Matthias Dolek,et al.  Introducing time-lapse cameras in combination with dataloggers as a new method for the field study of caterpillars and microclimate , 2017, Journal of Insect Conservation.

[11]  S. C. Digweed,et al.  Digging out the "digging-in effect" of pitfall traps : Influences of depletion and disturbance on catches of ground beetles (Coleoptera : Carabidae) , 1995 .

[12]  Sergey Ioffe,et al.  Rethinking the Inception Architecture for Computer Vision , 2015, 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR).

[13]  Eduard Szöcs,et al.  taxize: taxonomic search and retrieval in R , 2013, F1000Research.

[14]  Toke T. Høye,et al.  Declining diversity and abundance of High Arctic fly assemblages over two decades of rapid climate warming , 2018 .

[15]  Moncef Gabbouj,et al.  Human experts vs. machines in taxa recognition , 2017, Signal Process. Image Commun..

[16]  Toke T. Høye,et al.  Shrub shading moderates the effects of weather on arthropod activity in arctic tundra , 2018, Ecological Entomology.

[17]  Martti Juhola,et al.  Evaluating the performance of artificial neural networks for the classification of freshwater benthic macroinvertebrates , 2014, Ecol. Informatics.

[18]  Grant R. Brown,et al.  A review of extensive variation in the design of pitfall traps and a proposal for a standard pitfall trap design for monitoring ground‐active arthropod biodiversity , 2016, Ecology and evolution.

[19]  David Penney,et al.  Order Araneae Clerck, 1757. In: Zhang, Z.-Q. (Ed.) Animal biodiversity: An outline of higher-level classification and survey of taxonomic richness , 2011 .

[20]  Dumitru Erhan,et al.  Going deeper with convolutions , 2014, 2015 IEEE Conference on Computer Vision and Pattern Recognition (CVPR).

[21]  Christian Ammer,et al.  Arthropod decline in grasslands and forests is associated with landscape-level drivers , 2019, Nature.

[22]  Ben. G. Weinstein A computer vision for animal ecology. , 2018, The Journal of animal ecology.

[23]  Michael Wood,et al.  A review of camera trapping for conservation behaviour research , 2017 .

[24]  Graham W. Taylor,et al.  Deep Learning Object Detection Methods for Ecological Camera Trap Data , 2018, 2018 15th Conference on Computer and Robot Vision (CRV).

[25]  Jiangping Wang,et al.  Automated identification of animal species in camera trap images , 2013, EURASIP J. Image Video Process..

[26]  D. Fisher,et al.  Time‐lapse camera trapping as an alternative to pitfall trapping for estimating activity of leaf litter arthropods , 2017, Ecology and evolution.

[27]  Stephen D. Wratten,et al.  The efficiency of pitfall trapping for polyphagous predatory Carabidae , 1988 .

[28]  Ashley P. G. Dowling,et al.  Pitfalls and preservatives: a review , 2016 .

[29]  A. C. R. Marques,et al.  Ant genera identification using an ensemble of convolutional neural networks , 2018, PloS one.

[30]  Romain Raveaux,et al.  A survey on image-based insect classification , 2017, Pattern Recognit..

[31]  Lawrence N. Hudson,et al.  Inselect: Automating the Digitization of Natural History Collections , 2015, PloS one.

[32]  Sascha Buchholz,et al.  Capture efficiency of pitfall traps is highly affected by sampling interval , 2010 .

[33]  Anurag A. Agrawal,et al.  Mechanisms behind the monarch's decline , 2018, Science.

[34]  Li Fei-Fei,et al.  ImageNet: A large-scale hierarchical image database , 2009, CVPR.

[35]  Patrick Mäder,et al.  Machine learning for image based species identification , 2018, Methods in Ecology and Evolution.

[36]  H. de Kroon,et al.  More than 75 percent decline over 27 years in total flying insect biomass in protected areas , 2017, PloS one.