Simultaneous hyperspectral quantitative analysis of amylose and amylopectin in foxtail millet using a heterogeneous stacking ensemble with a soft constraint on component error complementarity.
Tingyu Zhu, Genglu Liu, Tianyu Bai, Keyuan Wang, Yu Duan, Huiling Du, Zhiwei Li
College of Agricultural Engineering, Shanxi Agricultural University, Jinzhong, 030801, China. · College of Information Science and Engineering, Shanxi Agricultural University, Jinzhong, 030801, China.
Key points
From the paper's conclusion- To address these issues, this work proposes a heterogeneous stacking ensemble modeling strategy that incorporates a soft constraint on component error complementarity.
Abstract
The eating quality and processing characteristics of foxtail millet are primarily determined by the content and ratio of amylose and amylopectin, both of which directly influence gelatinization properties, texture, and digestibility. Traditional chemical analysis methods are tedious, time-consuming, labor-intensive, and destructive, making it difficult to meet the demands of large-scale germplasm screening and rapid quality evaluation. Hyperspectral imaging (HSI) technology has emerged as a vital tool for cereal quality analysis owing to its rapid, non-destructive, and multi-component synchronous detection capabilities. However, existing single-model approaches exhibit limited accuracy when handling complex spectral data and generally overlook the reciprocal complementary relationship between amylose and amylopectin, leading to poor prediction self-consistency and weak chemical interpretability. To address these issues, this work proposes a heterogeneous stacking ensemble modeling strategy that incorporates a soft constraint on component error complementarity. The strategy first employs three complementary base learners - partial least squares regression (PLSR), support vector regression (SVR), and extreme learning machine (ELM) - to independently optimize feature wavelengths via a hybrid variable selection algorithm combing competitive adaptive reweighted sampling (CARS) and iteratively retains informative variables (IRIV), thereby generating diverse meta-features. Subsequently, these meta-features are fed into a Ridge regression meta-learner embedded with a soft constraint term, which penalizes same-sign prediction errors and encourages opposite-sign errors between amylose and amylopectin, guiding the model to capture the inherent complementary structure of the two components. Experimental results show that the proposed constrained stacking model achieves a ratio of performance to deviation (RPD) of 2.75 for amylose and 2.45 for amylopectin, significantly outperforming the best single model (ELM: RPD of 2.31 and 2.13) and the unconstrained stacking model (RPD of 2.36 and 2.15). Concurrently, the mean absolute deviation of the sum of the two components' prediction errors drops from 0.37 g/100 g for the unconstrained model to 0.09 g/100 g, indicating a marked improvement in prediction self-consistency. The proposed method effectively balances prediction accuracy with chemical interpretability, offering a novel approach for the simultaneous multi-component quantitative analysis of cereals.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Hyperspectral imaging coupled with machine learning for non-destructive prediction and visualization of textural properties in cooked rice.Food chemistry · 2026
- From Laboratory Accuracy to Industrial Deployment: A Review of Hyperspectral Imaging for Cereal Grain Quality and Safety Assessment.Foods (Basel, Switzerland) · 2026
- Near-Infrared Spectroscopy Non-Destructive Detection Modeling for Starch Content in Kernels of 58 Rainfed Corn Varieties.Foods (Basel, Switzerland) · 2026
- Agro-HSR: The first large-scale agricultural-focused hyperspectral dataset for deep learning-based image reconstruction and quality predictionComputers and Electronics in Agriculture · 2025
- Near-Infrared Hyperspectral Imaging for Non-Destructive Detection of Old Rice in Freshly Milled Rice.Foods (Basel, Switzerland) · 2026
- Hyperspectral Imaging-Based Rapid Assessment of Chinese Yam Quality for Dried Slice Processing.Foods (Basel, Switzerland) · 2026