Non-Destructive Detection of Elasmopalpus lignosellus Infestation in Fresh Asparagus Using VIS–NIR Hyperspectral Imaging and Machine Learning
Abstract
1. Introduction
2. Methodology
2.1. Sample Acquisition
2.2. Spectrum Acquisition and Preprocessing
2.3. Model Construction and Validation
2.4. Dimensionality Reduction and Band Selection
2.5. Inference Time
2.6. External Validation
3. Results
3.1. Dataset Description
3.2. Model Training and Comparison
3.3. Optimization of the Best Model
3.4. Strategic Band Reduction
3.5. Comparison of Models by Inference Time
3.6. External Validation
4. Discussion
5. Conclusions
Supplementary Materials
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
Abbreviations
| Abbreviation | Definition |
| AUC | Area Under the Curve |
| CNN | Convolutional Neural Network |
| CV | Cross-Validation |
| HLB | Huanglongbing |
| HSI | Hyperspectral Imaging |
| LOBO | Leave-One-Block-Out |
| MLP | Multilayer Perceptron |
| NIR | Near-Infrared |
| PB | Infested asparagus (Picado) |
| RBF | Radial Basis Function |
| ReLU | Rectified Linear Unit |
| RFE | Recursive Feature Elimination |
| ROC | Receiver Operating Characteristic |
| ROI | Region of Interest |
| SB | Healthy asparagus (Sano) |
| SD | Standard Deviation |
| SNV | Standard Normal Variate |
| SVM | Support Vector Machine |
| VIS | Visible |
| VIS–NIR | Visible and Near-Infrared |
References
- Hanh, N.H.; Dinh, N.T.N.; Huong, P.T.T.; Huong, D.T.; Thuy, P.T.; Nghia, N.T.A.; Duc, N.T.; Tuan, T.A. Variation of Morpho-Agronomical Characteristics and Genetic Diversity of Imported Asparagus Cultivars in Vietnam. Aust. J. Crop Sci. 2024, 18, 107–115. [Google Scholar] [CrossRef]
- Papoutsis, K. Sustainable Postharvest Treatments for Prolonging Asparagus (Asparagus officinalis L.) Shelf Life by Minimizing the Development of Physiological Disorders. ACS Food Sci. Technol. 2023, 3, 1617–1631. [Google Scholar] [CrossRef]
- Yamashita, S.; Motoki, S. Comparative Analysis of Asparagus Marketing Practices in Europe, North America, and Asia during Summer and Autumn. Acta Hortic. 2024, 1404, 1447–1454. [Google Scholar] [CrossRef]
- Chitrakar, B.; Zhang, M.; Adhikari, B. Asparagus (Asparagus officinalis): Processing Effect on Nutritional and Phytochemical Composition of Spear and Hard-Stem Byproducts. Trends Food Sci. Technol. 2019, 93, 1–11. [Google Scholar] [CrossRef]
- Fuentes Alventosa, J.M.; Moreno Rojas, J.M. Bioactive Compounds in Asparagus and Impact of Storage and Processing. In Processing and Impact on Active Components in Food; Elsevier: Amsterdam, The Netherlands, 2015; pp. 103–110. [Google Scholar]
- Bragard, C.; Dehnen-Schmutz, K.; Di Serio, F.; Gonthier, P.; Jacques, M.A.; Jaques Miret, J.A.; Justesen, A.F.; Magnusson, C.S.; Milonas, P.; Navas-Cortes, J.A.; et al. Pest Categorisation of Elasmopalpus lignosellus. EFSA J. 2021, 19, e06663. [Google Scholar] [CrossRef]
- Busungu, C. Invasive Insect Species Devastating Crop Production in Tanzania: Implications on Management and Agriculture Resilience. J. Agric. Sci.-Sri Lanka 2025, 20, 501–525. [Google Scholar] [CrossRef]
- Prasath, B.; Akila, M. AETC: An Automated Pest Detection and Classification Model Using Optimal Integration of Yolo + SSD and Adaptive Ensemble Transfer CNN with IoT-Assisted Pest Images. Knowl. Inf. Syst. 2024, 66, 7077–7108. [Google Scholar] [CrossRef]
- Wang, R.; Li, R.; Chen, T.; Zhang, J.; Xie, C.; Qiu, K.; Chen, P.; Du, J.; Chen, H.; Shao, F.; et al. An Automatic System for Pest Recognition and Forecasting. Pest Manag. Sci. 2022, 78, 711–721. [Google Scholar] [CrossRef]
- Casas, A.; Sanchez, J. Developments in asparagus cultivation under desert conditions in Peru. Acta Hortic. 2008, 776, 29–32. [Google Scholar] [CrossRef]
- Casasa, A.; Rioja, R.; Chavez, D. Production of Seven Asparagus Cultivars in the Peruvian Central Coast. Acta Hortic. 2023, 1376, 71–74. [Google Scholar] [CrossRef]
- Chen, Q.; Xia, C.; Shi, Y.; Wang, X.; Zhang, X.; He, Y. A Novel Approach for Asparagus Comprehensive Classification Based on TOPSIS Evaluation and SVM Prediction. Agronomy 2024, 14, 1175. [Google Scholar] [CrossRef]
- León León, R.A.; Morales Salazar, J.C.; Alcalde Portal, M.B. Desarrollo de Un Algoritmo de Visión Artificial Mediante Redes Neuronales Convolucionales YOLO v8 Para La Clasificación de Espárragos Según La Yema. In Proceedings of the CISCI-Conferencia Iberoamericana en Sistemas, Cibernetica e Informatica, Online, 10–13 September 2024; International Institute of Informatics and Cybernetics: Winter Garden, FL, USA, 2024; pp. 497–504. [Google Scholar]
- Donis-González, I.R.; Guyer, D.E. Classification of Processing Asparagus Sections Using Color Images. Comput. Electron. Agric. 2016, 127, 236–241. [Google Scholar] [CrossRef]
- Donis-González, I.R.; Guyer, D.E.; Pease, A. Postharvest Noninvasive Classification of Tough-Fibrous Asparagus Using Computed Tomography Images. Postharvest Biol. Technol. 2016, 121, 27–35. [Google Scholar] [CrossRef]
- You, Y.; Li, M.; Kang, T.; Ko, Y.; Kim, S.; Lee, S.H.; Jun, S. Application of Supercooling for the Enhanced Shelf Life of Asparagus (Asparagus officinalis L.). Foods 2021, 10, 2361. [Google Scholar] [CrossRef] [PubMed]
- Amodio, M.L.; Chaudhry, M.M.A.; Colelli, G. Spectral and Hyperspectral Technologies as an Additional Tool to Increase Information on Quality and Origin of Horticultural Crops. Agronomy 2019, 10, 7. [Google Scholar] [CrossRef]
- Li, L.; Jia, X.; Fan, K. Recent Advance in Nondestructive Imaging Technology for Detecting Quality of Fruits and Vegetables: A Review. Crit. Rev. Food Sci. Nutr. 2025, 65, 5181–5199. [Google Scholar] [CrossRef]
- Wan, G.; He, J.; Meng, X.; Liu, G.; Zhang, J.; Ma, F.; Zhang, Q.; Wu, D. Hyperspectral Imaging Technology for Nondestructive Identification of Quality Deterioration in Fruits and Vegetables: A Review. Crit. Rev. Food Sci. Nutr. 2025, 65, 7923–7952. [Google Scholar] [CrossRef]
- Yang, C.; Guo, Z.; Fernandes Barbin, D.; Dai, Z.; Watson, N.; Povey, M.; Zou, X. Hyperspectral Imaging and Deep Learning for Quality and Safety Inspection of Fruits and Vegetables: A Review. J. Agric. Food Chem. 2025, 73, 10019–10035. [Google Scholar] [CrossRef]
- Medina–García, M.; Amigo, J.M.; Martínez-Domingo, M.A.; Valero, E.M.; Jiménez–Carvelo, A.M. Strategies for Analysing Hyperspectral Imaging Data for Food Quality and Safety Issues—A Critical Review of the Last 5 Years. Microchem. J. 2025, 214, 113994. [Google Scholar] [CrossRef]
- Ravikanth, L.; Jayas, D.S.; White, N.D.G.; Fields, P.G.; Sun, D.-W. Extraction of Spectral Information from Hyperspectral Data and Application of Hyperspectral Imaging for Food and Agricultural Products. Food Bioproc. Tech. 2017, 10, 1–33. [Google Scholar] [CrossRef]
- Wu, D.; Sun, D.W. Advanced Applications of Hyperspectral Imaging Technology for Food Quality and Safety Analysis and Assessment: A Review—Part I: Fundamentals. Innov. Food Sci. Emerg. Technol. 2013, 19, 1–14. [Google Scholar] [CrossRef]
- Wu, D.; Sun, D.W. Hyperspectral Imaging Technology: A Nondestructive Tool for Food Quality and Safety Evaluation and Inspection. In Advances in Food Process Engineering Research and Applications; Food Engineering Series; First Online; Springer: Boston, MA, USA, 2013; pp. 581–606. [Google Scholar] [CrossRef]
- Akter, T.; Faqeerzada, M.A.; Kim, Y.; Pahlawan, M.F.R.; Aline, U.; Kim, H.; Kim, H.; Cho, B.K. Hyperspectral Imaging with Multivariate Analysis for Detection of Exterior Flaws for Quality Evaluation of Apples and Pears. Postharvest Biol. Technol. 2025, 223, 113453. [Google Scholar] [CrossRef]
- Ji, Y.; Sun, L. Nondestructive Classification of Potatoes Based on HSI and Clustering. In Proceedings of the 2019 4th International Conference on Measurement, Information and Control, ICMIC 2019, Harbin, China, 23–25 August 2019; pp. 73–77. [Google Scholar] [CrossRef]
- Mendoza, P.T.D.; Armstrong, P.R.; Siliveru, K. Hyperspectral Imaging. In Emerging Non-Destructive Technologies for Food Quality Analysis; Sunil, C.K., Rawson, A., Chidanand, D.V., Shanmugasundaram, S., Eds.; Springer Nature: Cham, Switzerland, 2025; pp. 159–185. [Google Scholar]
- Deng, S.; Xu, Y.; Li, L.; Li, X.; He, Y. A Feature-Selection Algorithm Based on Support Vector Machine-Multiclass for Hyperspectral Visible Spectral Analysis. J. Food Eng. 2013, 119, 159–166. [Google Scholar] [CrossRef]
- Li, L.; Li, C.; Wu, Y.; Yang, Y.; Zhang, Y.; Zhang, H.; Wu, B.; Liu, L.; Xie, R. Spectroscopy-Based Food Internal Quality Evaluation with XGBoost Algorithm. In Lecture Notes in Computer Science (Including Subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics); Springer: Cham, Switzerland, 2018; Volume 11268 LNCS, pp. 56–64. [Google Scholar]
- Tmimi, Y.; Chikri, M.; Fethi, F. Rapid Quantification of Paprika Adulteration by Food Dye Using Visible and Near-Infrared Spectroscopy Combined with Machine Learning. Food Humanit. 2025, 5, 100834. [Google Scholar] [CrossRef]
- Ou, Y.; Yan, J.; Liang, Z.; Zhang, B. Hyperspectral Imaging Combined with Deep Learning for the Early Detection of Strawberry Leaf Gray Mold Disease. Agronomy 2024, 14, 2694. [Google Scholar] [CrossRef]
- Dhakal, K.; Sivaramakrishnan, U.; Zhang, X.; Belay, K.; Oakes, J.; Wei, X.; Li, S. Machine Learning Analysis of Hyperspectral Images of Damaged Wheat Kernels. Sensors 2023, 23, 3523. [Google Scholar] [CrossRef] [PubMed]
- Dong, R.; Shiraiwa, A.; Ichinose, K.; Pawasut, A.; Sreechun, K.; Mensin, S.; Hayashi, T. Hyperspectral Imaging and Machine Learning for Huanglongbing Detection on Leaf-Symptoms. Plants 2025, 14, 451. [Google Scholar] [CrossRef]
- Yamada, M.; Thiesen, L.V.; Iost Filho, F.H.; Yamamoto, P.T. Hyperspectral Imaging and Machine Learning: A Promising Tool for the Early Detection of Tetranychus urticae Koch Infestation in Cotton. Agriculture 2024, 14, 1573. [Google Scholar] [CrossRef]
- Chen, W.L.; Shen, C.J. Near-Infrared Reflective Diffusion Coating Is Beneficial for Asparagus Summer Production in a Simple Plastic Greenhouse. HortScience 2022, 57, 257–264. [Google Scholar] [CrossRef]
- Flores-Rojas, K.; Sánchez, M.-T.; Pérez-Marín, D.; Guerrero, J.E.; Garrido-Varo, A. Quantitative Assessment of Intact Green Asparagus Quality by near Infrared Spectroscopy. Postharvest Biol. Technol. 2009, 52, 300–306. [Google Scholar] [CrossRef]
- Garrido, A.; Sánchez, M.-T.; Cano, G.; Pérez-Marín, D.; López, C. Prediction of Neutral and Acid Detergent Fiber Content of Green Asparagus Stored under Refrigeration and Modified Atmosphere Conditions by Near-Infrared Reflectance Spectroscopy. J. Food Qual. 2001, 24, 539–550. [Google Scholar] [CrossRef]
- Richter, B.; Rurik, M.; Gurk, S.; Kohlbacher, O.; Fischer, M. Food Monitoring: Screening of the Geographical Origin of White Asparagus Using FT-NIR and Machine Learning. Food Control 2019, 104, 318–325. [Google Scholar] [CrossRef]
- Siyum, Z.H.; Pham, T.T.; Nguyen, L.L.P.; Baranyai, L. Non-Destructive Monitoring of Asparagus (Asparagus officinalis L) Quality Changes during Storage Using NIR Spectroscopy. Int. J. Food Sci. Technol. 2023, 58, 5972–5981. [Google Scholar] [CrossRef]
- Li, C.; Wang, X.; Chen, L.; Zhao, X.; Li, Y.; Chen, M.; Liu, H.; Zhai, C. Grading and Detection Method of Asparagus Stem Blight Based on Hyperspectral Imaging of Asparagus Crowns. Agriculture 2023, 13, 1673. [Google Scholar] [CrossRef]
- Vera, W.; Avila-George, H.; Mogollón, J.; Chuquizuta, T.; Castro, W. Food Fraud Detection in Octopus Mimus Using Hyperspectral Imaging and Machine Learning Techniques. Neural Comput. Appl. 2025, 37, 2369–2381. [Google Scholar] [CrossRef]
- Wilkins, J.M.; Gakh, O.; Guo, Y.; Popescu, B.; Staff, N.P.; Lucchinetti, C.F. Biomolecular Alterations Detected in Multiple Sclerosis Skin Fibroblasts Using Fourier Transform Infrared Spectroscopy. Front. Cell Neurosci. 2023, 17, 1223912. [Google Scholar] [CrossRef] [PubMed]
- Jong, C.Y.; Tristan, G.; Felix, L.J.J.; Yeap, E.W.Q.; Dubbaka, S.R.; Rao, H.N.; Wong, S.Y. Systematic Assessment of Calibration Strategies in Spectroscopic Analysis: A Case Study of Paracetamol Crystallization. Org. Process. Res. Dev. 2025, 29, 503–520. [Google Scholar] [CrossRef]
- Sanz, H.; Valim, C.; Vegas, E.; Oller, J.M.; Reverter, F. SVM-RFE: Selection and Visualization of the Most Relevant Features through Non-Linear Kernels. BMC Bioinform. 2018, 19, 432. [Google Scholar] [CrossRef] [PubMed]
- Klimenko, D.N.; Gurova, T.A.; Elkin, O.V.; Maksimov, L.V. Hyperspectral Reflectance System for Plant Diagnostics. In IOP Conference Series: Earth and Environmental Science; IOP Publishing: Bristol, UK, 2020; Volume 548, p. 032019. [Google Scholar] [CrossRef]
- Sandhu, H.S.; Nuessly, G.S.; Cherry, R.H.; Gilbert, R.A.; Webb, S.E. Effects of Elasmopalpus lignosellus (Lepidoptera: Pyralidae) Damage on Sugarcane Yield. J. Econ. Entomol. 2011, 104, 474–483. [Google Scholar] [CrossRef]
- Hahn, P.G.; Maron, J.L. Plant Water Stress and Previous Herbivore Damage Affect Insect Performance. Ecol. Entomol. 2018, 43, 47–54. [Google Scholar] [CrossRef]
- Vengateswari, G.; Arunthirumeni, M.; Shivaswamy, M.S.; Shivakumar, M.S. Effect of Host Plants Nutrients, Antioxidants, and Phytochemicals on Growth, Development, and Fecundity of Spodoptera litura (Fabricius) (Lepidoptera: Noctuidae). Int. J. Trop. Insect Sci. 2022, 42, 3161–3173. [Google Scholar] [CrossRef]
- Ye, L.M.; Di, X.Y.; Yan, B.; Liu, J.F.; Wang, X.Q.; Yang, M.F. Population Parameters and Feeding Preference of Spodoptera litura (Lepidoptera: Noctuidae) on Different Asparagus officinalis Tissues. Insects 2022, 13, 1149. [Google Scholar] [CrossRef] [PubMed]
- Wan, Q.; Ouyang, A.; Liu, Y.; Xiong, Z.; Li, X.; Li, L. Detection of Infestation by Striped Stem-Borer (Chilo suppressalis) in Rice Based on Hyperspectral Imaging. J. Food Process. Eng. 2022, 45, e14142. [Google Scholar] [CrossRef]
- Garcia Furuya, D.E.; Ma, L.; Faita Pinheiro, M.M.; Georges Gomes, F.D.; Gonçalvez, W.N.; Junior, J.M.; de Castro Rodrigues, D.; Blassioli-Moraes, M.C.; Furtado Michereff, M.F.; Borges, M.; et al. Prediction of Insect-Herbivory-Damage and Insect-Type Attack in Maize Plants Using Hyperspectral Data. Int. J. Appl. Earth Obs. Geoinf. 2021, 105, 102608. [Google Scholar] [CrossRef]
- Noshiri, N.; Beck, M.A.; Bidinosti, C.P.; Henry, C.J. A Comprehensive Review of 3D Convolutional Neural Network-Based Classification Techniques of Diseased and Defective Crops Using Non-UAV-Based Hyperspectral Images. Smart Agric. Technol. 2023, 5, 100316. [Google Scholar] [CrossRef]
- Wang, C.; Liu, B.; Liu, L.; Zhu, Y.; Hou, J.; Liu, P.; Li, X. A Review of Deep Learning Used in the Hyperspectral Image Analysis for Agriculture. Artif. Intell. Rev. 2021, 54, 5205–5253. [Google Scholar] [CrossRef]
- Zhang, H.; Ye, N.; Gong, J.; Xue, H.; Wang, P.; Jiao, B.; Yin, L.; Qiao, X. Hyperspectral Imaging-Based Deep Learning Method for Detecting Quarantine Diseases in Apples. Foods 2025, 14, 3246. [Google Scholar] [CrossRef]
- Kristensen, E.R.; de la Cour, J.D.; Warburg, T.; Eriksen, R.L.; Jørgensen, B.; Avery, J.E.; Hinge, M. High-Speed Processing of Hyperspectral Images for Enabling Demanding Industrial Applications. Chemom. Intell. Lab. Syst. 2025, 267, 105531. [Google Scholar] [CrossRef]
- Zhuang, M.; Ratliff, B.M.; Hayat, M.M. Band Selection for Hyperspectral Imaging Using Occlusion-Based Neural Network Optimization. In Algorithms, Technologies, and Applications for Multispectral and Hyperspectral Imaging XXXI; SPIE: Bellingham, WA, USA, 2025; Volume 13455, pp. 122–126. [Google Scholar] [CrossRef]
- Tang, Y.; Song, S.; Gui, S.; Chao, W.; Cheng, C.; Qin, R. Active and Low-Cost Hyperspectral Imaging for the Spectral Analysis of a Low-Light Environment. Sensors 2023, 23, 1437. [Google Scholar] [CrossRef]
- Garbacz, P.; Czajka, P.; Mizak, W.; Powroźnik, M. Hyperspectral Lighting Design for Industrial Applications. Lect. Notes Netw. Syst. 2024, 1219, 357–365. [Google Scholar] [CrossRef]
- Wang, G.; Wang, G.; Gan, Z.; Zhu, C.; Zhang, H.; Beckett, P.; Lim, Y.; Pan, S.; Yuan, J.; Yuan, J.; et al. Fabry–Perot Multilayer for Spectral Imaging Applications. J. Opt. Soc. Am. B 2024, 41, D75–D80. [Google Scholar] [CrossRef]
- Femenias, A.; Marín, S. Hyperspectral Imaging. In Electromagnetic Technologies in Food Science; Wiley: Hoboken, NJ, USA, 2021; pp. 363–390. [Google Scholar] [CrossRef]
- Guo, D.; Zhu, Q.; Huang, M.; Guo, Y.; Qin, J. Model Updating for the Classification of Different Varieties of Maize Seeds from Different Years by Hyperspectral Imaging Coupled with a Pre-Labeling Method. Comput. Electron. Agric. 2017, 142, 1–8. [Google Scholar] [CrossRef]
- Ma, D.; Rehman, T.U.; Zhang, L.; Maki, H.; Tuinstra, M.R.; Jin, J. Modeling of Environmental Impacts on Aerial Hyperspectral Images for Corn Plant Phenotyping. Remote Sens. 2021, 13, 2520. [Google Scholar] [CrossRef]









| Model | Accuracy CV ± SD | F1-Weighted ± SD | ROC-AUC ± SD |
|---|---|---|---|
| SVM (RBF) | 0.9889 ± 0.0062 | 0.9889 ± 0.0062 | 0.9997 ± 0.0003 |
| MLP | 0.9850 ± 0.0056 | 0.9850 ± 0.0056 | 0.9992 ± 0.0005 |
| XGBoost | 0.9660 ± 0.0150 | 0.9660 ± 0.0152 | 0.9965 ± 0.0010 |
| ElasticNet | 0.9600 ± 0.0200 | 0.9600 ± 0.0202 | 0.9940 ± 0.0018 |
| Metric | Result |
|---|---|
| Accuracy CV | 0.9878 ± 0.0074 |
| F1-weighted CV | 0.9878 ± 0.0074 |
| ROC-AUC CV | 0.9995 ± 0.0006 |
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
Rodríguez-León, A.; Oblitas, J.; Quevedo-Olaya, J.L.; Vera, W.; Quispe-Santivañez, G.W.; Salvador-Reyes, R. Non-Destructive Detection of Elasmopalpus lignosellus Infestation in Fresh Asparagus Using VIS–NIR Hyperspectral Imaging and Machine Learning. Foods 2026, 15, 355. https://doi.org/10.3390/foods15020355
Rodríguez-León A, Oblitas J, Quevedo-Olaya JL, Vera W, Quispe-Santivañez GW, Salvador-Reyes R. Non-Destructive Detection of Elasmopalpus lignosellus Infestation in Fresh Asparagus Using VIS–NIR Hyperspectral Imaging and Machine Learning. Foods. 2026; 15(2):355. https://doi.org/10.3390/foods15020355
Chicago/Turabian StyleRodríguez-León, André, Jimy Oblitas, Jhonsson Luis Quevedo-Olaya, William Vera, Grimaldo Wilfredo Quispe-Santivañez, and Rebeca Salvador-Reyes. 2026. "Non-Destructive Detection of Elasmopalpus lignosellus Infestation in Fresh Asparagus Using VIS–NIR Hyperspectral Imaging and Machine Learning" Foods 15, no. 2: 355. https://doi.org/10.3390/foods15020355
APA StyleRodríguez-León, A., Oblitas, J., Quevedo-Olaya, J. L., Vera, W., Quispe-Santivañez, G. W., & Salvador-Reyes, R. (2026). Non-Destructive Detection of Elasmopalpus lignosellus Infestation in Fresh Asparagus Using VIS–NIR Hyperspectral Imaging and Machine Learning. Foods, 15(2), 355. https://doi.org/10.3390/foods15020355

