Answers are grounded in this paper and cite their sources.
Near-infrared spectroscopy (NIRS) enables rapid and non-destructive assessment of forage composition, but the heterogeneous nature of fresh forage spectra can challenge conventional global linear calibration models. This study systematically evaluated a hybrid partial least squares–k-nearest neighbours (PLS-KNN) framework for predicting dry matter (DM), crude protein (CP), and neutral detergent fibre (NDF) from fresh-forage NIR spectra. Following data cleaning, 7,204 samples were retained and partitioned into a calibration dataset (n = 5,042) and an independent validation dataset (n = 2,162). PLS-KNN was compared with KNN-PLS, partial least squares regression (PLSR), ridge regression, least angle regression (LARS), and random forest regression (RF). Spectral pretreatments and model hyperparameters were optimised using repeated cross-validation on the calibration data, while final predictive performance was evaluated on the complete validation dataset. PLS-KNN achieved R 2 values of 0.985, 0.814, and 0.746 and RMSE values of 21.46, 19.29, and 38.93 g kg -1 for DM, CP, and NDF, respectively, outperforming KNN-PLS and the evaluated linear benchmarks across all three constituents. RF produced the lowest RMSE for each constituent (19.79, 17.96, and 36.07 g kg -1 , respectively), although the difference between RF and PLS-KNN was not statistically significant for DM after correction for multiple comparisons, whereas significant differences were observed for CP and NDF. In addition to predictive evaluation, paired statistical testing, spectral interpretation using variable importance in projection, and computational benchmarking were used to characterise model behaviour. Overall, the results demonstrate that PLS-KNN provides strong predictive performance for fresh-forage NIRS while offering a computationally attractive alternative to query-specific local PLS modelling. The findings further show that model performance is constituent-dependent and that flexible non-linear benchmarks remain important when evaluating hybrid chemometric approaches.
No takes yet. Share an insight, caveat, or question.
Kofie et al. (2026) studied this question.
Synapse has enriched 10 related papers. Consider them for comparative context: