FOOD SCIENCE

    Next Articles

Deep Learning-Based Classification Method for Mid-Infrared Spectra of Waxy and Non-Waxy Sorghum

  

  • Received:2026-05-19 Revised:2026-08-04 Online:2026-09-22 Published:2026-09-22
  • Contact: Jia ZHANG

Abstract: Sorghum waxiness directly affects the brewing process and product stability of Baijiu, whereas conventional physicochemical determination is time-consuming and laboratory-dependent, making it unsuitable for rapid, high-throughput detection. To explore the feasibility of discriminating waxy and non-waxy sorghum using mid-infrared (MIR) spectroscopy, we collected and constructed a dataset of 811 MIR spectra. We propose a one-dimensional residual convolutional network, MIR-SWaNNet; candidate architectures and learning rates were first screened, and the selected model was then combined with standard normal variate (SNV) preprocessing to form the classification pipeline. To prevent multiple spectra of the same grain from spanning the training and test sets, sample-wise grouped 5-fold cross-validation was adopted, and the method was systematically compared with a multilayer perceptron (MLP), recurrent neural network (RNN), long short-term memory network (LSTM), a standard 1D-ResNet, and traditional methods such as PLS-DA and support vector machine (SVM). Results show that the proposed method achieves a top-tier sample-level discrimination accuracy of 96.2% and reaches a level comparable to a standard 1D-ResNet with only about one-eighth of the parameters. Interpretability analysis based on an improved one-dimensional Grad-CAM reveals statistically significant differences (p < 0.05) between waxy and non-waxy samples in starch-related bands such as the glycosidic-bond and O?H regions. This study provides a feasible technical route for raw-material identification in the brewing industry and for rapid detection in food quality control.

Key words: mid-infrared spectroscopy, waxy sorghum, non-waxy sorghum, deep learning, spectral classification

CLC Number: