<link rel="stylesheet" href="styles.cf390c6bfbe7555f.css">
Repository logo

Evaluation of Hybrid PLS-KNN Framework for Large-Scale Forage Quality Prediction Using Near-Infrared Spectroscopy

Loading...
Thumbnail Image

Files

Size: 8.72 MB, File format: Adobe PDF

Authors

Kofie, Samuel Nartey

Tiwari, Parul

Fatoyinbo, Hammed Olawale

Ip, Ryan HL

Supervisor

Degree name

Journal Title

Journal ISSN

Volume Title

Publisher

Elsevier BV

Abstract

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, 7204 samples were retained and partitioned into a calibration dataset (n = 5042) and an independent validation dataset (n = 2162). 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 R2 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.

Description

Keywords

0102 Applied Mathematics, 0301 Analytical Chemistry, Analytical Chemistry, 3401 Analytical chemistry, Fresh forage, NIRS, Chemometrics, PLS-KNN, Local modelling, Forage quality prediction

Source

Chemometrics and Intelligent Laboratory Systems, ISSN: 0169-7439 (Print), Elsevier BV, 105951-105951. doi: 10.1016/j.chemolab.2026.105951

Rights statement

© 2026 The Authors. Published by Elsevier B.V. This is an open access article distributed under the terms of the Creative Commons CC-BY license.

Endorsement

Review

Supplemented By

Referenced By

Creative Commons license

Except where otherwise noted, this item's license is described as Creative Commons Attribution