AI Chat Paper
Note: Please note that the following content is generated by AMiner AI. SciOpen does not take any responsibility related to this content.
{{lang === 'zh_CN' ? '文章概述' : 'Summary'}}
{{lang === 'en_US' ? '中' : 'Eng'}}
Chat more with AI
Article Link
Collect
Submit Manuscript
Show Outline
Outline
Show full outline
Hide outline
Outline
Show full outline
Hide outline
Research Article | Open Access

Out-of-Distribution Detection Algorithms for Robust Insect Classification

Mojdeh Saadati1Aditya Balu2Shivani Chiranjeevi2Talukder Zaki Jubery2Asheesh K. Singh3Soumik Sarkar1,2Arti Singh3( )Baskar Ganapathysubramanian1,2( )
Department of Computer Science, Iowa State University, Ames, IA, USA
Department of Mechanical Engineering, Iowa State University, Ames, IA, USA
Department of Agronomy, Iowa State University, Ames, IA, USA
Show Author Information

Abstract

Plants encounter a variety of beneficial and harmful insects during their growth cycle. Accurate identification (i.e., detecting insects’ presence) and classification (i.e., determining the type or class) of these insect species is critical for implementing prompt and suitable mitigation strategies. Such timely actions carry substantial economic and environmental implications. Deep learning-based approaches have produced models with good insect classification accuracy. Researchers aim to implement identification and classification models in agriculture, facing challenges when input images markedly deviate from the training distribution (e.g., images like vehicles, humans, or a blurred image or insect class that is not yet trained on). Out-of-distribution (OOD) detection algorithms provide an exciting avenue to overcome these challenges as they ensure that a model abstains from making incorrect classification predictions on images that belong to non-insect and/or untrained insect classes. As far as we know, no prior in-depth exploration has been conducted on the role of the OOD detection algorithms in addressing agricultural issues. Here, we generate and evaluate the performance of state-of-the-art OOD algorithms on insect detection classifiers. These algorithms represent a diversity of methods for addressing an OOD problem. Specifically, we focus on extrusive algorithms, i.e., algorithms that wrap around a well-trained classifier without the need for additional co-training. We compared three OOD detection algorithms: (a) maximum softmax probability, which uses the softmax value as a confidence score; (b) Mahalanobis distance (MAH)-based algorithm, which uses a generative classification approach; and (c) energy-based algorithm, which maps the input data to a scalar value, called energy. We performed an extensive series of evaluations of these OOD algorithms across three performance axes: (a) Base model accuracy: How does the accuracy of the classifier impact OOD performance? (b) How does the level of dissimilarity to the domain impact OOD performance? (c) Data imbalance: How sensitive is OOD performance to the imbalance in per-class sample size? Evaluating OOD algorithms across these performance axes provides practical guidelines to ensure the robust performance of well-trained models in the wild, which is a key consideration for agricultural applications. Based on this analysis, we proposed the most effective OOD algorithm as wrapper for the insect classifier with highest accuracy. We presented the results of its OOD detection performance in the paper. Our results indicate that OOD detection algorithms can significantly enhance user trust in insect pest classification by abstaining classification under uncertain conditions.

References

1

Skendžić S, Zovko M, Živković IP, Lešić V, Lemić D. The impact of climate change on agricultural insect pests. Insects. 2021;12(5): 440.

2
Dent D, Binks RH. Insect pest management. 3rd edition. Wallingford, UK: Cabi; 2020.
3

Noar RD, Jahant-Miller CJ, Emerine S, Hallberg R. Early warning systems as a component of integrated pest management to prevent the introduction of exotic pests. J Integ Pest Manag. 2021;12(1):16.

4

Heeb L, Jenner E, Cock MJW. Climate-smart pest management: Building 463 resilience of farms and landscapes to changing pest threats. J Pest Sci. 2019;92(63):951–969.

5

Kim K-N, Huang QY, Lei CL. Advances in insect phototaxis and application to pest management: A review. Pest Manag Sci. 2019;75(12):3135–3143.

6

Naik S, Patel B. Machine vision based fruit classification and grading-a review. Int J Comput Appl. 2017;170(9):22–34.

7

Singh A, Ganapathysubramanian B, Singh AK, Sarkar S. Machine learning for high-throughput stress phenotyping in plants. Trends Plant Sci. 2016;21(2):110–124.

8

Singh AK, Ganapathysubramanian B, Sarkar S, Singh A. Deep learning for plant stress phenotyping: Trends and future perspectives. Trends Plant Sci. 2018;23(10):883–898.

9

Xia D, Chen P, Wang B, Zhang J, Xie C. Insect detection and classification based on an improved convolutional neural network. Sensors. 2018;180(12):4169.

10

Chen Y, Why A, Batista G, Mafra-Neto A, Keogh E. Flying insect detection and classification with inexpensive sensors. J Vis Exp. 2014;(92): Article e52111.

11

Høye TT, Ärje J, Bjerge K, Hansen OLP, Iosifidis A, Leese F, Mann HMR, Meissner K, Melvad C, Raitoharju J. Deep learning and computer vision will transform entomology. Proc Natl Acad Sci U S A. 2021;118(2): Article e2002545117.

12
Feuer B, Joshi A, Cho M, Jani K, Chiranjeevi S, Deng ZK, Balu A, Singh AK, Sarkar S, Merchant N, et al. Zero-shot insect detection via weak language supervision. Paper presented at: 2nd AAAI Workshop on AI for Agriculture and Food Systems; 2023; Washington, DC, USA.
13

Kar S, Nagasubramanian K, Elango D, Carroll ME, Abel CA, Nair A, Mueller DS, O'Neal ME, Singh AK, Sarkar S, et al. Self-supervised learning improves agricultural pest classification. AI Agric Food Syst. 2021.

14

Ebrahimi M, Khoshtaghaza MH, Minaei S, Jamshidi B. Vision-based pest detection based on SVM classification method. Comput Electron Agric. 2017;137:52–58.

15

Kasinathan T, Singaraju D, Uyyala SR. Insect classification and detection in field crops using modern machine learning techniques. Inform Process Agric. 2021;8(1):446–457.

16

Tetila EC, Brandoli B, Astolfi G, NAS B, Amorim WP, Roel AR, Pistori H. Detection and classification of soybean pests using deep learning with UAV images. Comput Electron Agric. 2020;179(2020): Article 105836.

17
Szegedy C, Vanhoucke V, Loffe S, Shlens J, Wojna ZB. Rethinking the inception architecture for computer vision. Paper presented at: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; 2016; Las Vegas, Nevada, USA.
18
He K, Zhang X, Ren S, Sun J. Deep residual learning for image recognition. Paper presented at: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; 2016 Jun 27–30; Las Vegas, NV, USA.
19
Simonyan K, Zisserman A. Very deep convolutional networks for large-scale image 494 recognition. arXiv. 2014. arXiv: 1409.1556.
20
Chollet F. Xception: Deep learning with depthwise separable convolutions. Paper presented at: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; 2017 Jul 21–26;Honolulu, HI, USA.
21

Li Y, Wang H, Dang LM, Sadeghi-Niaraki A, Moon H. Crop pest recognition in natural scenes using convolutional neural networks. Comput Electron Agric. 2020;169: Article 105174.

22

Dong D, Nagasubramanian K, Wang R, Frei UK, Jubery TZ, Lübberstedt T, Ganapathysubramanian B. Self-supervised maize kernel classification and segmentation for embryo identification. Front Plant Sci. 2023;14:1108355.

23

Nagasubramanian K, Singh A, Singh A, Sarkar S, Ganapathysubramanian B. Plant phenotyping with limited annotation: Doing more with less. Plant Phenome J. 2022;5(1): Article e20051.

24

Duncan J, Kapoor R, Agarwal A, Singh C, Yu B. VeridicalFlow: A python package for building trustworthy data science pipelines with PCS. J Open Source Softw. 2022;7(69):3895.

25
Toreini E, Aitken M, Coopamootoo KPL, Elliott K, Zeyala CG, van Morseel APA. The relationship between trust in AI and trustworthy machine learning technologies. Paper presented at: Proceedings of the 2020 Conference on Fairness, Accountability, and Transparency; 2020; Barcelona Spain.
26

Gadiraju U, Yang J. What can crowd computing do for the next generation of AI 509 systems? CSW@ NeurIPS. 2020;7–13.

27
Bhatt U, Antoran J, Zhang Y, Liao QV, Sattigeri P, Fogliato R, Melancon GG, Krishnan R, Stanley J, Tickoo O, et al. Uncertainty as a form of transparency: Measuring, communicating, and using uncertainty. Paper presented at: Proceedings of the 2021 AAAI/ACM Conference on AI, Ethics, and Society; 2021; Virtual, USA.
28
Le TQ. Trustworthy machine learning: Learning under security, explainability and uncertainty constraints. Pennsylvania: The Pennsylvania State University; 2022.
29

Chatzimparmpas A, Martins RM, Jusufi I, Kucher K, Rossi F, Kerren A. The state of the art in enhancing trust in machine learning models with the use of visualizations. Comput Graph Forum. 2020;39(3):713–756.

30

Meyer GP. Learning an uncertainty-aware object detector for autonomous driving. IEEE/RSJ Int Conf Intell Robot Syst. 2020;2020:10521–10527.

31
Cai F, Koutsoukos X. Real-time out-of-distribution detection in learning-enabled 522 cyber-physical systems. Paper presented at: 2020 ACM/IEEE 11th International Conference on Cyber-Physical Systems (ICCPS); 2020; Sydney, Australia.
32
Cao T, Huang C-W, Hui DY-T, Cohen JP. A benchmark of medical out of distribution detection. arXiv. 2020. arXiv: 2007.04250.
33
Karimi D, Gholipour A. Improving calibration and out-of-distribution detection in medical image segmentation with convolutional neural networks. arXiv. 2020. arXiv: 2004.06569.
34

Linmans J, van der Laak J, Litjens G. Efficient out-of-distribution detection in digital pathology using multi-head convolutional neural networks. MIDL. 2020;465–478.

35

Farid A, Veer S, Majumdar A. Task-driven out-of-distribution detection with statistical guarantees for robot learning. Conf Robot Learn. 2022;970–980.

36
Yuhas M, Feng Y, Ng DJX, Rahiminasab Z, Easwaran A. Embedded out-of-distribution detection on an autonomous robot platform. Poster presented at: Proceedings of the Workshop on Design Automation for CPS and IoT; 2021 May 18; New York, NY, USA.
37

Boyer P, Burns D, Whyne C. Out-of-distribution detection of human activity recognition with smartwatch inertial sensors. Sensors. 2021;21(5):1669.

38
Hendrycks D, Gimpel K. A baseline for detecting misclassified and out-of-distribution examples in neural networks. arXiv. 2016. arXiv: 1610.02136.
39

Liu W. Energy-based out-of-distribution detection. Adv Neural Inf Process Syst. 2020;33:21464–21475.

40
Choi H, Jang E. Generative ensembles for robust anomalydetection;.Openreview.net 2018, https://openreview.net/forum?id=B1e8CsRctX.
41
Nalisnick E, Matsukawa A, Teh YW, Gorur D, Lakshminarayanan B. Do deep generative models know what they don’t know?. arXiv. 2018. arXiv: 1810.09136.
42

Ren J, Liu PJ, Fertig E, Snoek J, Poplin R, Pristo MA, Dillon JV, Lakshminarayanan B. Likelihood ratios for out-of-distribution detection. Adv Neural Inf Process Syst. 2019;32.

43
Serrà J, Álvarez D, Gómez V, Slizovskaia O, Núñez JF, Luque J. Input complexity and out-of-distribution detection with likelihood-based generative models. arXiv. 2019. arXiv: 1909.11480.
44
Denouden T, Improving reconstruction autoencoder out-of-distribution detection with Mahalanobis distance. arXiv. 2018. arXiv: 1812.02765.
45
Lee K. A simple unified framework for detecting out-of-distribution samples and adversarial attacks. Adv Neural Inf Process Syst. 2018;31.
46
J. Ren, Fort S, Liu J, Roy AG, Padhy S, Lakshminarayanan B. A simple fix to mahalanobis distance for improving near-ood detection. arXiv. 2021. arXiv: 2106.09022.
47
Hendrycks D, Mazeika M, Dietterich T. Deep anomaly detection with outlier exposure. arXiv. 2018. arXiv: 1812.04606.
48

Roy AG, Ren J, Azizi S, Loh A, Natarajan V, Mustafa B, Pawlowski N, Freyberg J, Liu Y, Beaver Z, et al. Does your dermatology classifier know what it doesn’t know? Detecting the long-tail of unseen conditions. Med Image Anal. 2022;75: Article 102274.

49

Fort S, Ren J, Lakshminarayanan B. Exploring the limits of out-of-distribution detection. Adv Neural Inf Process Syst. 2021;34:7068–7081.

50
Krizhevsky A, Hinton G.Learning multiple layers of features from tiny images [thesis]. [Toronto (Canada)]: University of Toronto; 2009.
51
Netzer Y, Wang T, Coates A, Bissacco A, Wu B, Ng AY. Reading digits in natural images with unsupervised feature learning; NIPS workshop on deep learning and unsupervised feature learning. Vol. 2011. No. 5. 2011. Granada, Spain.
52
Bevandić P, Krešo I, Oršić M, Šegvić S. Discriminative out-of-distribution detection for semantic segmentation. arXiv. 2018. arXiv: 1808.07703.
53
Chen J. Atom: Robustifying out-of-distribution detection using outlier mining. Paper presented at: Machine Learning and Knowledge Discovery in Databases. Research Track: European Conference, ECML PKDD 2021; 2021 September 13–17; Bilbao, Spain.
54
Radosavovic I, Kosaraju RP, Girshick R, He K, Dollár P. Designing network design spaces. Paper presented at: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; 2020; Seattle, WA, USA.
55
Hu J, Shen L, Albanie S, Sun G, Wu E. Squeeze-and-excitation networks. Paper presented at: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; 2018; Salt Lake City, UT, USA.
56
Van Horn G, Cole E, Beery S, Wilber K, Belongie S, Aodha OM. Benchmarking representation learning for natural world image collections. Paper presented at: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR); 2021; Virtual.
57

Russakovsky O, Deng J, Su H, Krause J, Satheesh S, Ma S, Huang Z, Karpathy A, Khosla A, Bernstein M, et al. ImageNet large scale visual recognition challenge. Int J Comput Vision. 2015;115:211–252.

58
Wang Z, Wang G, Huang B, Xiong Z, Hong Q, Wu H, Yi P, Jiang K, Wang N, Pei Y, et al. Masked face recognition dataset and application. arXiv. 2020. arXiv: 2003.09093.
59
Vaze S, Han K, Vedaldi A, Zisserman A. Open-set recognition: A good closed-set classifier is all you need. arXiv. 2021. arXiv: 2110.06207.
Plant Phenomics
Article number: 0170
Cite this article:
Saadati M, Balu A, Chiranjeevi S, et al. Out-of-Distribution Detection Algorithms for Robust Insect Classification. Plant Phenomics, 2024, 6: 0170. https://doi.org/10.34133/plantphenomics.0170

214

Views

7

Crossref

1

Web of Science

3

Scopus

0

CSCD

Altmetrics

Received: 31 May 2023
Accepted: 13 March 2024
Published: 30 April 2024
© 2024 Mojdeh Saadati et al. Exclusive licensee Nanjing Agricultural University. No claim to original U.S. Government Works.

Distributed under a Creative Commons Attribution License 4.0 (CC BY 4.0).

Return