Unveiling varietal specificity in non-destructive grape quality monitoring: Explainable AI and feature selection for
Shijie Shi1, Nina Tian1, Qi Liu1
1Engineering Research Center of Ecology and Agricultural Use of Wetland, Ministry of Education, College of Agriculture, Yangtze University, Hubei, China.
Abstract:
Sugar and organic acid content are crucial factors determining grape quality. Non-destructive testing of these components aids in accurately determining optimal harvest timing and wine-making potential. However, few studies have addressed how varietal differences impact the universality of predictive models. This study combines near-infrared spectroscopy with machine learning, specifically partial least squares regression (PLSR) and convolutional neural networks (CNN). It compares single-variety and mixed-variety modeling strategies for grape sugars (glucose, fructose) and organic acids (malic acid, tartaric acid, shikimic acid). The results indicate that PLSR models constructed based on single varieties demonstrate superior performance in predicting malic acid, glucose, and fructose, with model R2P ranging from 0.835 to 0.923, notably outperforming PLSR and CNN models based on mixed varieties. The competitive adaptive reweighted sampling (CARS) and successive projections algorithm (SPA) algorithms successfully compressed the full-spectrum variables to 6-29 key wavelengths. The simplified models maintained high accuracy (R2P = 0.777-0.927) while substantially improving model efficiency. Mechanistically, SHapley Additive exPlanations (SHAP) analysis revealed the significance of key variables. The critical variables for glucose and fructose models occur around 1150 nm and 1450 nm, respectively. In contrast, the feature variables for the malic acid model exhibit broader distribution, spanning multiple bands including 1150 nm, 1200 nm, 1600 nm, and 1650 nm. This study provides a solid foundation and mechanistic explanation for non-destructive grape quality assessment, while also offering theoretical support for developing specialized spectral sensors.
Related Concept Videos
Applications of IR Spectroscopy: Overview
IR and UV–Vis Spectroscopy of Aldehydes and Ketones
IR and UV–Vis Spectroscopy of Carboxylic Acids
However, the stretching absorptions for the C=O bond vary depending on the structure of carboxylic acids. The C=O bond of the free carboxylic acids shows a higher stretching frequency, 1760 cm−1, while H-bonded carboxylic acids (dimers) exhibit stretching absorptions at a lower frequency,...
Attenuated Total Reflectance (ATR) Infrared Spectroscopy: Overview
The ATR process begins by directing a beam...
NMR Spectroscopy of Aromatic Compounds
Spectroscopy of Carboxylic Acid Derivatives


