Deep Residual Network Authenticates Wine Grape Cultivars Using Visible-Near
Operating across a multi-vintage benchmark comprising nearly two thousand single-berry spectral observations, the deep neural network reached an overall mean classification accuracy of 99.04 percent when combined with second-derivative mathematical pretreatmen
Illustrative imageOperating across a multi-vintage benchmark comprising nearly two thousand single-berry spectral observations, the deep neural network reached an overall mean classification accuracy of 99.04 percent when combined with second-derivative mathematical pretreatment. The finding demonstrates that specialized one-dimensional convolutional topologies can reliably resolve subtle, non-linear biochemical signatures among closely related botanical cultivars, substantially outperforming traditional multivariate chemometric baselines and conventional deep learning configurations while relying solely on single-sensor spectroscopic data.
Maintaining absolute varietal purity in viticulture represents a foundational prerequisite for wine typicity, commercial market positioning, and international economic value. Distinct cultivars exhibit noticeable phenotypic divergence in fruit quality parameters, specifically within the balance of sugars and organic acids, phenolic maturity in grape skins, and volatile secondary metabolite precursors. These intrinsic chemical balances directly govern field harvest scheduling and subsequent vinification interventions. However, modern wine production operates within increasingly complex, globalized supply chains where inadvertent varietal substitution, fraudulent commingling, or intentional adulteration directly threaten consumer confidence and undermine the regulatory integrity of Protected Designation of Origin schemes. Traditional analytical methods for authenticating cultivars, notably ampelographic visual examination and molecular DNA fingerprinting, remain definitive but present severe operational drawbacks. Both strategies demand specialized botanical expertise, entail labor-intensive laboratory turnaround times, and require destructive physical extraction that renders high-throughput, online monitoring impossible.
Visible-near infrared spectroscopy has emerged as a compelling non-destructive analytical modality for rapid agricultural assessment due to its capacity to record characteristic vibrational overtones and combination bands from carbon-hydrogen, oxygen-hydrogen, and nitrogen-hydrogen chemical bonds. Despite these foundational physical capabilities, deploying spectroscopy for whole-berry varietal verification has encountered persistent analytical obstacles. Traditional chemometric pipelines—most prominently partial least squares discriminant analysis, random forest ensembles, and support vector machines with radial basis functions—exhibit acceptable discriminatory capabilities on small, highly homogeneous datasets collected under controlled settings. Nevertheless, real-world agricultural spectra acquired from intact fruit are profoundly affected by physical baseline shifts, variable skin thickness, micro-scale morphological irregularities, and substantial climatic variations between growing years. These environmental and seasonal interferences introduce significant dimensional redundancy and intricate non-linear spectral distortions that frequently overwhelm shallow linear projection models and unoptimized machine learning algorithms.
Although generic one-dimensional convolutional neural networks have attracted substantial interest for automated spectral feature extraction, conventional deep learning models present structural mismatches when processing continuous one-dimensional optical signals. Standard architectures adapted from computer vision, such as standard two-dimensional deep residual networks, carry millions of trainable weights, introducing severe risks of empirical overfitting when trained on high-dimensional one-dimensional spectral arrays. Furthermore, conventional off-the-shelf convolutional networks lack dedicated architectural adaptations necessary to simultaneously resolve broad, continuous chemical absorption envelopes and narrow, highly localized vibrational bands. Standard small convolutional kernels often fail to capture macro-level spectral contours without losing fine-grained discriminative peak geometries, causing shallow or generic networks to stumble when distinguishing phenotypically similar cultivars that share near-identical skin pigment levels and fruit acid profiles across heterogeneous multi-vintage harvests.
To overcome these structural limitations, the researchers engineered MSR-Net as a compact, specialized one-dimensional neural framework optimized specifically for optical spectroscopy. The architecture incorporates an initial Stem module featuring a large one-dimensional convolutional kernel with a filter size of eleven and a stride of two, paired directly with a three-point max-pooling layer with a stride of two. This structural arrangement rapidly expands the early receptive field, capturing macro-contour features while effectively filtering low-frequency baseline scatter. Downstream feature extraction is handled by three sequential residual processing stages comprising dual one-dimensional convolutional units with a kernel size of seven. The first residual block preserves the initial sixteen-channel depth through identity shortcut connections, whereas the second and third residual blocks progressively double channel capacity from sixteen to thirty-two and finally sixty-four channels. These downsampling transitions utilize one-by-one projection shortcuts with a stride of two, maintaining critical narrow-band varietal fingerprints while shedding redundant dimensional variance.
Following the third residual stage, MSR-Net employs global average pooling to collapse multi-channel feature maps into a unified sixty-four-dimensional vector, completely bypassing the massive parameter footprints and structural overfitting typical of conventional dense fully connected layers. The final classification decision is generated through a seven-class Softmax layer, bringing total model complexity to approximately 61,000 trainable parameters. To prevent overconfident statistical predictions on unseen field variations and enhance generalized decision boundaries, the network was trained under cross-entropy loss augmented with uniform label smoothing set at a factor of 0.1. Network optimization was executed over 150 training epochs using the AdamW algorithm, an initial learning rate of 0.0003 governed by cosine-annealing scheduling, a mini-batch size of 128 samples, and an explicit weight decay coefficient of 0.05.
The empirical dataset utilized to benchmark the system comprised 1,998 intact wine grape berries harvested across two consecutive vintages, 2019 and 2020, from commercial vineyards situated in the Saumurois viticultural region of France. The biological sample pool encompassed seven major cultivars: four red-skinned varieties, consisting of Syrah, Merlot, Cabernet Sauvignon, and Cabernet franc, alongside three white-skinned varieties, comprising Chenin Blanc, Sauvignon Blanc, and Grolleau Blanc. Optical reflectance signatures were captured across the 400 to 1000 nanometer spectral range using a push-broom hyperspectral imaging camera mounted over a motorized conveyor belt running at eleven millimeters per second. With an exposure duration of twelve milliseconds, an optical gain of ten, a 23-millimeter focal lens, and an operational sample distance of fifty-four centimeters, the imaging setup yielded 300 discrete spectral channels at a 2.1-nanometer sampling interval per berry. Extracted average region-of-interest spectra were converted to absorbance via standard negative logarithmic transformation.
To systematically appraise performance stability, the investigators evaluated the models across six distinct spectral input conditions: raw, unprocessed spectra; standard normal variate scaling; Savitzky–Golay polynomial smoothing; first-derivative transformation; second-derivative transformation; and baseline linear detrending. All evaluations were executed through ten complete repetitions of five-fold stratified cross-validation, generating fifty distinct outer test partition evaluations per classifier and preprocessing combination. For the traditional chemometric baselines, twenty percent of each outer training fold was reserved as an internal stratified validation split to optimize internal hyperparameters, including the selection of latent variables for partial least squares, tree counts for random forests, and penalty and gamma parameters for radial basis function support vector machines.
Across all fifty test iterations, MSR-Net decisively outperformed all evaluated shallow chemometric baselines and deep learning configurations under every tested spectral condition. On completely unprocessed spectral data, the network achieved an average classification accuracy of 93.54 percent, a macro-averaged F1-score of 92.83 percent, and a Cohen’s kappa coefficient of 0.9209, already surpassing the absolute best pretreated performances achieved by optimized linear partial least squares discriminant analysis (92.26 percent) and non-linear support vector machines (93.06 percent). Mathematical spectral pretreatments further elevated MSR-Net’s classification capabilities, producing mean accuracies of 89.30 percent with Savitzky–Golay smoothing, 98.16 percent with standard normal variate scaling, 98.29 percent with linear detrending, and 98.29 percent with first-derivative filtering. Peak performance was established under second-derivative transformation, where MSR-Net attained 99.04 percent mean accuracy, 98.84 percent balanced accuracy, 99.00 percent macro-F1 score, and an exceptional Cohen’s kappa of 0.9883.
Comparative benchmarking demonstrated the limitations of traditional classifiers when processing multi-vintage spectral data characterized by environmental fluctuations. Standard partial least squares reached 89.62 percent accuracy on unprocessed spectra and 92.26 percent under second derivatives, but exhibited persistent intra-color misclassifications, such as confusing 11.4 percent of Sauvignon Blanc with Chenin Blanc and 10.6 percent of Cabernet Sauvignon with Cabernet Franc. The random forest ensemble struggled even more acutely, recording 75.72 percent accuracy on raw spectra and peaking at 87.16 percent under second derivatives, with severe confusion between Merlot and Cabernet Franc. Support vector machines delivered more robust recognition, achieving 88.86 percent raw accuracy and 93.06 percent under second-derivative preprocessing, yet plateaued well below deep learning benchmarks. Furthermore, MSR-Net outperformed competing deep architectures under identical second-derivative conditions, where a matched four-layer one-dimensional convolutional neural network reached 89.28 percent, a standard one-dimensional ResNet-18 reached 89.96 percent, and an unoptimized baseline convolutional network collapsed to 20.66 percent.
Ablation experiments confirmed that MSR-Net’s high discriminative capacity relies on the synergistic integration of its structural components rather than any single mechanism. Excising the residual skip connections reduced second-derivative accuracy from 99.04 percent to 91.13 percent. Constricting the initial Stem convolution kernel from a width of eleven down to three degraded performance to 90.87 percent, highlighting the essential role of wide receptive fields in capturing broad spectral contours. Eliminating label smoothing from the objective function caused accuracy to slip to 91.06 percent. Input-gradient attribution analyses revealed that the full model focuses primary attention on biological activation bands located between 470 and 680 nanometers, corresponding to skin anthocyanin pigments, and between 750 and 920 nanometers, reflecting vibrational overtones of carbon-hydrogen and oxygen-hydrogen bonds in fruit sugars and organic acids.
Despite these compelling experimental benchmarks, the researchers noted key practical boundaries governing immediate commercial translation. Because the training corpus was acquired entirely within the Saumurois region of France, the current parameter weights cannot be deployed directly across divergent global microclimates, where unmodeled soil conditions and indigenous cultivars introduce novel variance. Future research must compile diverse multi-region datasets to support transfer learning frameworks that fine-tune pre-trained architectures without de novo training. Additionally, operationalizing the technology requires transitioning from stationary conveyor-belt hyperspectral cameras to portable field spectrometers or handheld smartphone peripherals, which will require model compression and robust calibration transfer algorithms to counteract ambient outdoor lighting fluctuations. Finally, expanding the network from qualitative varietal discrimination toward multi-task frameworks that concurrently predict internal maturity metrics, such as soluble solids and total acidity, will be critical to delivering comprehensive digital traceability across the grape processing chain.
Subject of Research: Non-destructive wine grape variety authentication using spectroscopy and deep learning
Article Title: MSR-Net and Vis-NIR spectroscopy: A non-destructive framework for wine grape variety authentication
Article References: Liu, Y., Liu, Q., Yu, S., Zhang, Y., Yan, R., Jin, Z., Liu, K., Huang, L., Cheng, J., Tian, X., Shi, S., & Zhang, Y. (2026). MSR-Net and Vis-NIR spectroscopy: A non-destructive framework for wine grape variety authentication. Food Chemistry: X, 40, Article 104826. https://doi.org/10.1016/j.fochx.2026.104826
Image Credits: AI Generated
DOI: 10.1016/j.fochx.2026.104826
Keywords: wine grape authentication, Visible-Near Infrared spectroscopy, MSR-Net, chemometrics, Vitis vinifera, hyperspectral imaging, convolutional neural network, residual learning, partial least squares discriminant analysis, support vector machines, random forest, Protected Designation of Origin, viticulture digitalization, spectral preprocessing, second derivative filtering, label smoothing, terroir classification, food authenticity
News Source: Bethany Barker. (November 29, 2026). Deep Residual Network Authenticates Wine Grape Cultivars Using Visible-Near Infrared Spectroscopy. Scienmag.
