A comparative ML approach to classify Lupinus species using VIS-NIR spectral data from whole seeds and various data transformation techniques and resampling methods

The increasing interest in the cultivation and utilization of Lupinus species is driven by their nutritional value and potential for sustainable agriculture. However, the non-destructive taxonomic classification of Lupinus species from whole seeds spectral data remains scarcely explored. In this study, five machine learning classifiers were comparatively evaluated for discriminating seven Lupinus species using visible and near-infrared (VIS-NIR) spectral data, in both reflectance and absorbance modes, acquired from seeds of the official active collection of the CICYTEX Germplasm Bank. The dataset was characterized by marked class imbalance. Model performance was assessed using raw spectra and four preprocessing strategies (including three hybrid combinations) combined with six resampling methods and a no-resampling baseline. Two validation approaches were applied: an 80/20 train-test split and stratified 5-fold cross-validation. Across both spectral domains and validation schemes, Random Forest and Support Vector Classification achieved the best overall performance, with F1 scores above 94%, and AUC, accuracy and precision values above 97%. Logistic Regression also showed substantial improvements when hybrid preprocessing techniques were applied. Cross-validation confirmed the robustness and generalization ability of the best-performing models. These findings support the use of VIS-NIR spectroscopy combined with machine learning as a rapid, objective, and non-destructive framework for Lupinus species discrimination in imbalanced germplasm datasets. This approach may assist taxonomic identification, germplasm management, and the preliminary screening of promising materials for breeding programs, although further validation under independent environmental and acquisition conditions is still required.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2026-05-22
DOI
https://doi.org/10.1038/s41598-026-54189-6
Primary Topic
Spectroscopy and Chemometric Analyses
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A comparative ML approach to classify Lupinus species using VIS-NIR spectral data from whole seeds and various data transformation techniques and resampling methods

Fernando Llera Cid, Pedro A. Salguero-López, Josefa Díaz-Álvarez, Francisco A. Galea-Gragera et al.
Scientific Reports
Spectroscopy and Chemometric Analyses
article

A comparative ML approach to classify Lupinus species using VIS-NIR spectral data from whole seeds and various data transformation techniques and resampling methods

Fernando Llera Cid, Pedro A. Salguero-López, Josefa Díaz-Álvarez, Francisco A. Galea-Gragera, Francisco Chávez de la O
article en

Abstract

The increasing interest in the cultivation and utilization of Lupinus species is driven by their nutritional value and potential for sustainable agriculture. However, the non-destructive taxonomic classification of Lupinus species from whole seeds spectral data remains scarcely explored. In this study, five machine learning classifiers were comparatively evaluated for discriminating seven Lupinus species using visible and near-infrared (VIS-NIR) spectral data, in both reflectance and absorbance modes, acquired from seeds of the official active collection of the CICYTEX Germplasm Bank. The dataset was characterized by marked class imbalance. Model performance was assessed using raw spectra and four preprocessing strategies (including three hybrid combinations) combined with six resampling methods and a no-resampling baseline. Two validation approaches were applied: an 80/20 train-test split and stratified 5-fold cross-validation. Across both spectral domains and validation schemes, Random Forest and Support Vector Classification achieved the best overall performance, with F1 scores above 94%, and AUC, accuracy and precision values above 97%. Logistic Regression also showed substantial improvements when hybrid preprocessing techniques were applied. Cross-validation confirmed the robustness and generalization ability of the best-performing models. These findings support the use of VIS-NIR spectroscopy combined with machine learning as a rapid, objective, and non-destructive framework for Lupinus species discrimination in imbalanced germplasm datasets. This approach may assist taxonomic identification, germplasm management, and the preliminary screening of promising materials for breeding programs, although further validation under independent environmental and acquisition conditions is still required.

Scientific Reports
Universidad de Los Andes (VE), Government of Extremadura (ES), Instituto de Arqueología-Mérida (ES), Universidad de Extremadura (ES)
Ministerio de Ciencia e Innovación, Junta de Extremadura, European Regional Development Fund, Agencia Estatal de Investigación
Zero hunger
Openalex Percentile: Top 8%
Spectroscopy and Chemometric Analyses
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.