← Papers

Paper record

Classification of Lupinus seeds into sweet and bitter categories using VIS-NIR spectroscopy and machine learning.

Díaz-Álvarez J, Galea-Gragera FA, Chávez de la O F, Salguero-López PA, Llera Cid F.

Frontiers in artificial intelligence · 27 Feb 2026 · 10.3389/frai.2026.1745720

Abstract

Purpose The Lupinus germplasm includes sweet and bitter materials distinguished by compounds responsible for bitterness. Conventional identification is often destructive. This study assesses a non-destructive approach based on visible-near infrared (VIS-NIR) spectroscopy and machine learning to classify whole seeds from seven Lupinus species into sweet or bitter classes. Methods Five machine-learning algorithms were evaluated on two datasets (reflectance and absorbance) acquired with VIS-NIR spectroscopy. Analyses were conducted on raw spectra and on spectra transformed using four spectral-transformation techniques. Because classes were imbalanced, five resampling methods were compared to improve classification performance. Results Performance was assessed using F1-score and ROC-AUC . On reflectance, LGR and SVC reached 92.5 and 92.0%; on absorbance, SVC and RF achieved 93.2 and 92.5%. Hybrid transformations consistently improved discrimination, and resampling reduced overfitting associated with class imbalance. Conclusion The results indicate that combining VIS-NIR spectroscopy with machine learning provides a suitable non-destructive alternative to discriminate sweet and bitter Lupinus materials/ecotypes.

Code and data availability

The paper's VIS-NIR spectral datasets (871 reflectance/absorbance spectra of Lupinus seeds) and ML analysis are paper-specific, but no public deposit or authors' URL for data or code is provided. The data availability statement only promises data from the authors upon request.

No evidence-backed public reproduction asset is currently recorded.