Probabilistic VNIR Hyperspectral Screening of Pesticide Residues in Olives and Leaves
Abstract This study advances non-invasive screening of pesticide residues in olives by (i) extending visible–near-infrared (VNIR) hyperspectral imaging (HSI) from fruit to leaves (adaxial/abaxial) as easy-to-sample matrices; (ii) replacing hard-decision with probabilistic models, partial least squares discriminant analysis (PLS-DA) and extreme gradient boosting (XGBoost); and (iii) introducing a tunable reject-option via an indecision band to trade coverage for reliability. An intelligent pixel-selection pipeline (radiometric normalization, HSV masking of glare/defects, and mask-conditioned random sampling of $$\sim 10^4$$ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"> <mml:mrow> <mml:mo>∼</mml:mo> <mml:msup> <mml:mn>10</mml:mn> <mml:mn>4</mml:mn> </mml:msup> </mml:mrow> </mml:math> pixels per sample) was used. Ground-truth labels were obtained by GC–MS/MS against EU MRLs. On fruit, deltamethrin and diflufenican reached near-ceiling discrimination (AUC $$\approx 99$$ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"> <mml:mrow> <mml:mo>≈</mml:mo> <mml:mn>99</mml:mn> </mml:mrow> </mml:math> –100%, F1 $$\approx 97$$ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"> <mml:mrow> <mml:mo>≈</mml:mo> <mml:mn>97</mml:mn> </mml:mrow> </mml:math> –100%); on leaves, oxifluorfen and tebuconazole were best resolved (adaxial/abaxial AUC up to $$\approx 95$$ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"> <mml:mrow> <mml:mo>≈</mml:mo> <mml:mn>95</mml:mn> </mml:mrow> </mml:math> –100% with F1 $$\approx 99$$ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"> <mml:mrow> <mml:mo>≈</mml:mo> <mml:mn>99</mml:mn> </mml:mrow> </mml:math> %). In contrast, diflufenican shows reduced discriminability on leaf matrices, especially abaxial. Probabilistic outputs enabled an indeterminate label for low-confidence pixels identified via a model-specific indecision band, yielding high accuracy on accepted predictions while keeping the rejected share operationally manageable; an effective score (F1 $$_\text {eff}$$ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"> <mml:mmultiscripts> <mml:mrow/> <mml:mtext>eff</mml:mtext> <mml:mrow/> </mml:mmultiscripts> </mml:math> ), defined as a coverage-penalized F1 score, summarizes this coverage–reliability balance. Overall, coupling matrix selection (fruit vs. leaf side) with probabilistic modeling and abstention delivers robust laboratory performance and a realistic pathway to field deployment at cooperative intake, where indeterminate lots can be routed to secondary handling.
Authors
- Diego Manuel Martínez Gila
- David Bonillo Martínez
- Javier Gámez García
- Pablo Cano Marchal
Institutions
- Universidad de Jaén (ES)
Publication Details
- Journal
- Food Analytical Methods
- Published
- 2026-02-01
- DOI
- https://doi.org/10.1007/s12161-026-03022-x
- Primary Topic
- Spectroscopy and Chemometric Analyses
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Ministerio de Ciencia e Innovación
- Universidad de Jaén
- Agencia Estatal de Investigación