Abstract & Overview
This study compared the effects of data partitioning, spectral preprocessing, and informative wavelength selection on model complexity and robustness for high-throughput prediction of protein content in corn and wheat using near-infrared spectroscopy. Five data-partitioning algorithms such as simple random selection (SRS), iterative random selection (IRS), systematic selection (SS), Kennard-Stone (KS), and joint X-Y distances (SPXY), were evaluated using two benchmark spectroscopic datasets. Spectral preprocessing included first derivative (FD), second derivative (SD), multiplicative scatter correction (MSC), standard normal variate (SNV), orthogonal signal correction (OSC), and combinations of these techniques. Informative wavelengths were selected using competitive adaptive reweighted sampling (CARS), bootstrapping soft shrinkage (BOSS), and the successive projections algorithm (SPA). Partial least squares regression (PLSR) models were subsequently developed. KS outperformed the other data-partitioning methods for both crops. FD and FD + MSC provided the best preprocessing results for corn and wheat, respectively. Full-spectrum PLSR models produced RMSEC, RMSEV, and RMSEP values of 0.064%, 0.117%, and 0.084% for corn and 0.295%, 0.373%, and 0.485% for wheat, respectively. Models using only 15 CARS-selected wavelengths for corn achieved corresponding values of 0.051%, 0.072%, and 0.080%, whereas models using 16 SPA-selected wavelengths for wheat achieved 0.301%, 0.380%, and 0.292%. Thus, informative-wavelength models provided comparable or improved predictive performance with substantially reduced model complexity. Explainable AI (XAI) revealed wavelength contributions and identified the spectral features driving individual protein predictions. These findings demonstrate that optimizing data partitioning, spectral preprocessing, and wavelength selection is critical for developing robust, parsimonious, and high-performance NIR models for protein prediction in corn and wheat.