Deep Learning-Based Image Classification of Pupae from 11 Lepidoptera Pest Species
Simple Summary
Abstract
1. Introduction
2. Materials and Methods
2.1. Specimen Collection
2.2. Images Acquisition
2.3. Data Pre-Processing
2.4. Model Training
2.5. Model Evaluation
2.6. Visualization and Interpretation
3. Results & Discussion
3.1. Classification Performance
3.2. Interpretability via Grad-CAM
3.3. Discussion of Model Interpretability and Taxonomic Alignment
4. Conclusions
Supplementary Materials
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Li, X.; Schuler, M.A.; Berenbaum, M.R. Molecular mechanisms of metabolic resistance to synthetic and natural xenobiotics. Annu. Rev. Entomol. 2007, 52, 231–253. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Ouaba, J.; Tchuinkam, T.; Waïmane, A.; Magara, H.J.O.; Niassy, S.; Meutchieye, F. Lepidopterans of economic importance in Cameroon: A systematic review. J. Agric. Food Res. 2022, 8, 100286. [Google Scholar] [CrossRef] [Scilit]
- Doane, C.C.; McManus, M.L. The Gypsy Moth: Research Toward Integrated Pest Management, 1st ed.; US Department of Agriculture: Washington, DC, USA, 1981. [Google Scholar]
- Suckling, D.M.; Conlong, D.E.; Carpenter, J.E.; Bloem, K.A.; Rendon, P.; Vreysen, M.J.B. Global range expansion of pest Lepidoptera requires socially acceptable solutions. Biol. Invasions 2017, 19, 1107–1119. [Google Scholar] [CrossRef] [Scilit]
- Klem, C.C.; Zaspel, J. Pest injury guilds, Lepidoptera, and placing fruit-piercing moths in context: A review. Ann. Entomol. Soc. Am. 2019, 112, 421–432. [Google Scholar] [CrossRef] [Scilit]
- Tay, W.T.; Soria, M.F.; Walsh, T.; Thomazoni, D.; Silvie, P.; Behere, G.T.; Anderson, C.; Downes, S. A brave new world for an old world pest: Helicoverpa armigera (Lepidoptera: Noctuidae) in Brazil. PLoS ONE 2013, 8, e80134. [Google Scholar] [CrossRef] [Scilit]
- Shylesha, A.N.; Jalali, S.K.; Gupta, A.; Varshney, R.; Venkatesan, T.; Shetty, P.; Ojha, R.; Ganiger, P.C.; Navik, O.; Subaharan, K.; et al. Studies on new invasive pest Spodoptera frugiperda (JE Smith) (Lepidoptera: Noctuidae) and its natural enemies. J. Biol. Control 2018, 32, 145–151. [Google Scholar] [CrossRef] [Scilit]
- Kogan, M. Integrated pest management: Historical perspectives and contemporary developments. Annu. Rev. Entomol. 1998, 43, 243–270. [Google Scholar] [CrossRef] [Scilit]
- Armstrong, K.F.; Ball, S.L. DNA barcodes for biosecurity: Invasive species identification. Philos. Trans. R. Soc. B 2005, 360, 1813–1823. [Google Scholar] [CrossRef] [Scilit]
- Brock, J. A contribution towards an understanding of the morphology and phylogeny of the Ditrysian Lepidoptera. J. Nat. Hist. 1971, 5, 29–102. [Google Scholar] [CrossRef] [Scilit]
- Caspari, E. The morphology and development of the wing pattern of Lepidoptera. Q. Rev. Biol. 1941, 16, 249–273. [Google Scholar] [CrossRef] [Scilit]
- Miller, J.S. Cladistics and Classification of the Notodontidae (Lepidoptera: Noctuoidea) Based on Larval and Adult Morphology; American Museum of Natural History: New York, NY, USA, 1991; Volume 204. [Google Scholar]
- Mosher, E. A Classification of the Lepidoptera Based on Characters of the Pupa; Illinois State Laboratory of Natural History: Urbana, IL, USA, 1915; Volume 12. [Google Scholar]
- Patočka, J.; Turčáni, M. Lepidoptera Pupae: Central European Species; Brill: Leiden, The Netherlands, 2023. [Google Scholar]
- Lawton, D.; Huseth, A.S.; Kennedy, G.G.; Morey, A.C.; Hutchison, W.D.; Reisig, D.D.; Dorman, S.J.; Dillard, D.; Venette, R.C.; Groves, R.L.; et al. Pest population dynamics are related to a continental overwintering gradient. Proc. Natl. Acad. Sci. USA 2022, 119, e2203230119. [Google Scholar] [CrossRef] [Scilit]
- Popkov, A.; Konstantinov, F.; Neimorovets, V.; Solodovnikov, A. Machine learning for expert-level image-based identification of very similar species in the hyperdiverse plant bug family Miridae (Hemiptera: Heteroptera). Syst. Entomol. 2022, 47, 487–503. [Google Scholar] [CrossRef] [Scilit]
- Ong, S.; Ahmad, H. An annotated image dataset of medically and forensically important flies for deep learning model training. Sci. Data 2022, 9, 510. [Google Scholar] [CrossRef] [Scilit]
- Ong, S.; Ahmad, H. An annotated image dataset for training mosquito species recognition system on human skin. Sci. Data 2022, 9, 413. [Google Scholar] [CrossRef] [Scilit]
- Wang, Q.; Zhang, S.; Dong, S.; Zhang, G.; Yang, J.; Li, R.; Wang, H. Pest24: A large-scale very small object data set of agricultural pests for multi-target detection. Comput. Electron. Agric. 2020, 175, 105585. [Google Scholar] [CrossRef] [Scilit]
- Ling, M.H.; Ivorra, T.; Heo, C.C.; Wardhana, A.H.; Hall, M.J.R.; Tan, S.H.; Mohamed, Z.; Khang, T.F. Machine learning analysis of wing venation patterns accurately identifies Sarcophagidae, Calliphoridae and Muscidae fly species. Med. Vet. Entomol. 2023, 37, 767–781. [Google Scholar] [CrossRef] [Scilit]
- Shirali, H.; Hübner, J.; Both, R.; Raupach, M.; Reischl, M.; Schmidt, S.; Pylatiuk, C. Image-based recognition of parasitoid wasps using advanced neural networks. Invertebr. Syst. 2024, 38, IS24011. [Google Scholar] [CrossRef] [Scilit]
- Zhao, Z.; Lu, Y.; Tong, Y.; Chen, X.; Bai, M. PENet: A phenotype encoding network for automatic extraction and representation of morphological discriminative features. Methods Ecol. Evol. 2023, 14, 3035–3046. [Google Scholar] [CrossRef] [Scilit]
- Simović, P.; Milosavljević, A.; Stojanović, K.; Radenković, M.; Savić-Zdravković, D.; Predić, B.; Petrović, A.; Božanić, M.; Milošević, D. Automated identification of aquatic insects: A case study using deep learning and computer vision techniques. Sci. Total Environ. 2024, 935, 172877. [Google Scholar] [CrossRef] [Scilit]
- Kodors, S.; Apeinans, I.; Vancans, I.; Bartulsons, T.; Zarembo, I. Early detection of caterpillars using artificial intelligence. In Proceedings of the 24th International Scientific Conference” Engineering for Rural Development”, Jelgava, Latvia, 21–23 May 2025; pp. 531–535. [Google Scholar]
- Xu, J.; Feng, Z.; Tang, J.; Liu, S.; Ding, Z.; Lyu, J.; Yao, Q.; Yang, B. Improved random forest for the automatic identification of Spodoptera frugiperda larval instar stages. Agriculture 2022, 12, 1919. [Google Scholar] [CrossRef] [Scilit]
- He, H.; Zhu, S.; Shen, L.; Chang, X.; Wang, Y.; Zeng, D.; Xiong, B.; Dai, F.; Zhao, T. Integrated analysis of machine learning and deep learning in silkworm pupae (Bombyx mori) species and sex identification. Animals 2023, 13, 3612. [Google Scholar] [CrossRef] [Scilit]
- Liu, X.; Sun, J.; Liu, Y.; Zhou, X.; Li, B. Simultaneous identification of sex and species of silkworm pupae using hyperspectral imaging with PCA-t-SNE dimensionality reduction method. Spectrosc. Lett. 2025, 58, 429–444. [Google Scholar] [CrossRef] [Scilit]
- Oliver, A. Biology and Illustrated Key for the Identification of Twenty Species of Economically Important Noctuid Pests, 1st ed.; Louisiana State University Agricultural Experiment Station: Baton Rouge, LA, USA, 1981; pp. 9–17. [Google Scholar]
- Twinkle, P.; Chattopadhyay, P.C. Taxonomy of agriculturally important plusiinae (Lepidoptera: Noctuidae). Indian J. Entomol. 2018, 80, 748–760. [Google Scholar] [CrossRef] [Scilit]
- Wang, X.; Liu, H.; Chen, Z.; Zhao, Y.; Liu, Y.; Xiong, H.; Duan, Y.; Song, F.; Cai, W.; Li, X.; et al. Multi-angle, cross-domain fusion strategy enhances automated insect identification and hierarchical categorization: A case study on assassin bugs (Hemiptera: Reduviidae). Cladistics 2026, early view. [Google Scholar] [CrossRef] [Scilit]
- Jocher, G.; Qiu, J.; Chaurasia, A. YOLO11 by Ultralytics. 2024, Version 11.0.0. Available online: https://github.com/ultralytics/ultralytics (accessed on 1 January 2026).
- Khanam, R.; Hussain, M. Yolov11: An overview of the key architectural enhancements. arXiv 2024, arXiv:2410.17725. [Google Scholar] [CrossRef] [Scilit]
- Wang, W. X-AnyLabeling, 2025, Version 3.3.1. Available online: https://github.com/CVHub520/X-AnyLabeling (accessed on 1 January 2026).
- Deng, J.; Dong, W.; Socher, R.; Li, L.J.; Li, K.; Fei-Fei, L. Imagenet: A large-scale hierarchical image database. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Miami, FL, USA, 20–25 June 2009; pp. 248–255. [Google Scholar]
- Paszke, A.; Gross, S.; Massa, F.; Lerer, A.; Bradbury, J.; Chanan, G.; Killeen, T.; Lin, Z.; Gimelshein, N.; Antiga, L.; et al. Pytorch: An imperative style, high-performance deep learning library. Adv. Neural Inf. Process. Syst. 2019, 32. [Google Scholar] [CrossRef]
- Tan, M.; Le, Q. Efficientnet: Rethinking model scaling for convolutional neural networks. In Proceedings of the International Conference on Machine Learning, Long Beach, CA, USA, 9–15 June 2019; pp. 6105–6114. [Google Scholar]
- Sandler, M.; Howard, A.; Zhu, M.; Zhmoginov, A.; Chen, L. Mobilenetv2: Inverted residuals and linear bottlenecks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA, 18–23 June 2018; pp. 4510–4520. [Google Scholar]
- He, K.; Zhang, X.; Ren, S.; Sun, J. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA, 27–30 June 2016; pp. 770–778. [Google Scholar]
- Liu, Z.; Mao, H.; Wu, C.; Feichtenhofer, C.; Darrell, T.; Xie, S. A convnet for the 2020s. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, New Orleans, LA, USA, 18–24 June 2022; pp. 11976–11986. [Google Scholar]
- Dosovitskiy, A.; Beyer, L.; Kolesnikov, A.; Weissenborn, D.; Zhai, X.; Unterthiner, T.; Dehghani, M.; Minderer, M.; Heigold, G.; Gelly, S.; et al. An image is worth 16 × 16 words: Transformers for image recognition at scale. arXiv 2020, arXiv:2010.11929. [Google Scholar]
- Liu, Z.; Lin, Y.; Cao, Y.; Hu, H.; Wei, Y.; Zhang, Z.; Lin, S.; Guo, B. Swin transformer: Hierarchical vision transformer using shifted windows. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Montreal, QC, Canada, 10–17 October 2021; pp. 10012–10022. [Google Scholar]
- Gundersen, O.E.; Shamsaliei, S.; Kjærnli, H.S.; Langseth, H. On reporting robust and trustworthy conclusions from model comparison studies involving neural networks and randomness. In Proceedings of the 2023 ACM Conference on Reproducibility and Replicability, Santa Cruz, CA, USA, 27–29 June 2023; pp. 37–61. [Google Scholar]
- Picard, D. Torch.manual_seed (3407) is all you need: On the influence of random seeds in deep learning architectures for computer vision. arXiv 2021, arXiv:2109.08203. [Google Scholar]
- Loshchilov, I.; Hutter, F. Decoupled weight decay regularization. arXiv 2017, arXiv:1711.05101. [Google Scholar]
- Loshchilov, I.; Hutter, F. Sgdr: Stochastic gradient descent with warm restarts. arXiv 2016, arXiv:1608.03983. [Google Scholar]
- Benjamini, Y.; Hochberg, Y. Controlling the false discovery rate: A practical and powerful approach to multiple testing. J. R. Stat. Soc. B Stat. Methodol. 1995, 57, 289–300. [Google Scholar] [CrossRef] [Scilit]
- Chicco, D.; Jurman, G. The advantages of the Matthews correlation coefficient (MCC) over F1 score and accuracy in binary classification evaluation. BMC Genom. 2020, 21, 6. [Google Scholar] [CrossRef] [Scilit]
- Selvaraju, R.R.; Cogswell, M.; Das, A.; Vedantam, R.; Parikh, D.; Batra, D. Grad-cam: Visual explanations from deep networks via gradient-based localization. In Proceedings of the the IEEE International Conference on Computer Vision, Venice, Italy, 22–29 October 2017; pp. 618–626. [Google Scholar]
- Zhang, H.; Zhao, S.; Song, Y.; Ge, S.; Liu, D.; Yang, X.; Wu, K. A deep learning and Grad-Cam-based approach for accurate identification of the fall armyworm (Spodoptera frugiperda) in maize fields. Comput. Electron. Agric. 2022, 202, 107440. [Google Scholar] [CrossRef] [Scilit]
- Vo, H.-T.; Thien, N.N.; Mui, K.C.; Tien, P.P.; Le, H.L.; Phuc, V.N.; Trung, H.N.; Tan, P.L. Advanced classification of agricultural plant insects using deep learning and explainability. Indones. J. Electr. Eng. Inform. 2025, 13, 396–409. [Google Scholar] [CrossRef] [Scilit]
- Han, K.; Wang, Y.; Chen, H.; Chen, X.; Guo, J.; Liu, Z.; Tang, Y.; Xiao, A.; Xu, C.; Xu, Y. A survey on vision transformer. IEEE Trans. Pattern Anal. Mach. Intell. 2022, 45, 87–110. [Google Scholar] [CrossRef] [Scilit]
- Khan, S.; Naseer, M.; Hayat, M.; Zamir, S.W.; Khan, F.S.; Shah, M. Transformers in vision: A survey. ACM Comput. Surv. 2022, 54, 1–41. [Google Scholar] [CrossRef] [Scilit]
- Chen, L.; Pan, Q.; Waqas, M.S.; Liu, T. Morphological traits for sex identification of the oriental armyworm, Mythimna separata (Lepidoptera: Noctuidae). J. Integr. Agric. 2020, 19, 1458–1463. [Google Scholar] [CrossRef] [Scilit]
- Zheng, X.; Cong, X.; Wang, X.; Lei, C. Pupation behaviour, depth, and site of Spodoptera exigua. Bull. Insectology 2011, 64, 209–214. [Google Scholar]
- Queiroz-Santos, L.; Casagrande, M.M.; Specht, A. Morphological Characterization of Helicoverpa armigera (Hubner) (Lepidoptera: Noctuidae: Heliothinae). Neotrop. Entomol. 2018, 47, 517–542. [Google Scholar] [CrossRef] [Scilit]
- Geirhos, R.; Rubisch, P.; Michaelis, C.; Bethge, M.; Wichmann, F.A.; Brendel, W. ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustness. In Proceedings of the International conference on learning representations, Vancouver, BC, Canada, 30 April–3 May 2018. [Google Scholar]
- Chang, D.; Ding, Y.; Xie, J.; Bhunia, A.K.; Li, X.; Ma, Z.; Wu, M.; Guo, J.; Song, Y. The devil is in the channels: Mutual-channel loss for fine-grained image classification. IEEE Trans. Image Process. 2020, 29, 4683–4695. [Google Scholar] [CrossRef] [Scilit]
- LeCun, Y.; Bengio, Y.; Hinton, G. Deep learning. Nature 2015, 521, 436–444. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, Ł.; Polosukhin, I. Attention is all you need. Adv. Neural Inf. Process. Syst. 2017, 30. [Google Scholar] [CrossRef]



| Family | Species | Common Name | Specimens | Source |
|---|---|---|---|---|
| Crambidae | Chilo suppressalis | rice stem borer | 26 | Jiyuan Baiyun Industrial Co., Jiyuan, China |
| Crambidae | Cnaphalocrocis medinalis | rice leaf roller | 25 | Zhejiang Normal University, Jinhua, China |
| Crambidae | Conogethes punctiferalis | peach borer | 21 | Jiyuan Baiyun Industrial Co., Jinhua, China |
| Crambidae | Ostrinia furnacalis | Asian corn borer | 24 | Chinese Academy of Agricultural Sciences, Beijing, China |
| Erebidae | Hyphantria cunea | fall webworm | 2 | Chinese Academy of Forestry, Beijing, China |
| Noctuidae | Agrotis ipsilon | black cutworm | 26 | Jiyuan Baiyun Industrial Co., Jinhua, China |
| Noctuidae | Helicoverpa armigera | cotton bollworm | 25 | Jiyuan Baiyun Industrial Co., Jinhua, China |
| Noctuidae | Mythimna separata | oriental armyworm | 26 | Jiyuan Baiyun Industrial Co., Jinhua, China |
| Noctuidae | Spodoptera exigua | beet armyworm | 25 | Jiyuan Baiyun Industrial Co., Jinhua, China |
| Noctuidae | Spodoptera frugiperda | fall armyworm | 30 | China Agricultural University, Beijing, China |
| Noctuidae | Spodoptera litura | tobacco cutworm | 25 | Jiyuan Baiyun Industrial Co., Jinhua, China |
| Species | Images | Train | Val | Test |
|---|---|---|---|---|
| A. ipsilon | 2167 | 1774 | 210 | 183 |
| Ch. suppressalis | 1518 | 1175 | 175 | 168 |
| Cn. medinalis | 1711 | 1312 | 197 | 202 |
| Co. punctiferalis | 1469 | 1137 | 166 | 166 |
| He. armigera | 1352 | 1036 | 161 | 155 |
| Hy. cunea | 171 | 136 | 16 | 19 |
| M. separata | 1854 | 1525 | 163 | 166 |
| O. furnacalis | 1219 | 954 | 141 | 124 |
| S. exigua | 1171 | 832 | 177 | 162 |
| S. frugiperda | 1359 | 1060 | 146 | 153 |
| S. litura | 1358 | 1029 | 167 | 162 |
| Architecture | Accuracy | Precision | Recall | F1-Score |
|---|---|---|---|---|
| ConvNeXt-B | 98.48 ± 0.22% | 98.66 ± 0.18% | 98.60 ± 0.19% | 98.58 ± 0.02% |
| EfficientNet-B0 | 95.55 ± 0.33% | 96.18 ± 0.21% | 95.89 ± 0.29% | 95.72 ± 0.27% |
| MobileNet-v2 | 92.84 ± 0.42% | 93.36 ± 0.24% | 93.23 ± 0.40% | 92.76 ± 0.33% |
| ResNet-50 | 97.33 ± 0.18% | 97.63 ± 0.15% | 97.53 ± 0.16% | 97.48 ± 0.17% |
| Swin-Tiny | 97.78 ± 0.39% | 98.00 ± 0.35% | 97.97 ± 0.36% | 97.92 ± 0.37% |
| Vit-Small | 98.71 ± 0.16% | 98.83 ± 0.14% | 98.61 ± 0.25% | 98.69 ± 0.20% |
| Species | FDR(C) | FNR(C) | FDR(S) | FNR(S) | FDR(V) | FNR(V) |
|---|---|---|---|---|---|---|
| He. armigera | 0% | 8.68 ± 2.72% | 0% | 10.85 ± 1.48% | 0.37 ± 0.15% | 4.22 ± 1.5% |
| S. exigua | 8.5 ± 2.3% | 5.31 ± 1.71% | 11.24 ± 1.74% | 8.99 ± 2.99% | 4.29 ± 1.46% | 7.04 ± 1.75% |
| M. separata | 5.21 ± 1.62% | 0% | 9.8 ± 3.42% | 0% | 6.81 ± 1.72% | 0.13 ± 0.13% |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Li, Z.; Li, X. Deep Learning-Based Image Classification of Pupae from 11 Lepidoptera Pest Species. Insects 2026, 17, 327. https://doi.org/10.3390/insects17030327
Li Z, Li X. Deep Learning-Based Image Classification of Pupae from 11 Lepidoptera Pest Species. Insects. 2026; 17(3):327. https://doi.org/10.3390/insects17030327
Chicago/Turabian StyleLi, Zitao, and Xuankun Li. 2026. "Deep Learning-Based Image Classification of Pupae from 11 Lepidoptera Pest Species" Insects 17, no. 3: 327. https://doi.org/10.3390/insects17030327
APA StyleLi, Z., & Li, X. (2026). Deep Learning-Based Image Classification of Pupae from 11 Lepidoptera Pest Species. Insects, 17(3), 327. https://doi.org/10.3390/insects17030327

