Authors: Zeling Zhang | Liyuan Deng
Source: Journal of Food Processing and Preservation (article, 2024-02-14)
Field: Chemistry — Analytical Chemistry

An Adaptive Genetic Algorithm Optimizes Double-Hidden Layer BPNN for Rapid Detection of Moisture Content of Green Tea in Processing Moisture content ( <a:math xmlns:a="http://www.w3.org/1998/Math/MathML" id="M1"><a:msub><a:mrow><a:mtext>M</a:mtext></a:mrow><a:mrow><a:mtext>C</a:mtext></a:mrow></a:msub></a:math> ) plays a crucial role in evaluating the quality of tea processing. However, the current automated production line for green tea heavily relies on manual methods to determine <c:math xmlns:c="http://www.w3.org/1998/Math/MathML" id="M2"><c:msub><c:mrow><c:mtext>M</c:mtext></c:mrow><c:mrow><c:mtext>C</c:mtext></c:mrow></c:msub></c:math> , which leads to low productivity and inadequate automation. Therefore, there is an urgent need for a fast, accurate, and convenient <e:math xmlns:e="http://www.w3.org/1998/Math/MathML" id="M3"><e:msub><e:mrow><e:mtext>M</e:mtext></e:mrow><e:mrow><e:mtext>C</e:mtext></e:mrow></e:msub></e:math> detection method. In this study, near-infrared spectroscopy (NIRS) data were collected from seven stages of green tea processing and preprocessed using various techniques, such as Savitzky-Golay (SG) and detrend (DT), to reduce spectral noise. Subsequently, feature variables of the preprocessed spectral data were selected using full-band principal component analysis (PCA) and competitive adaptive reweighted sampling (CARS). Afterwards, prediction models for <g:math xmlns:g="http://www.w3.org/1998/Math/MathML" id="M4"><g:msub><g:mrow><g:mtext>M</g:mtext></g:mrow><g:mrow><g:mtext>C</g:mtext></g:mrow></g:msub></g:math> of green tea were developed using partial least squares regression (PLSR) and back-propagation neural network (BPNN). To address the convergence speed and local optima issues of BPNN, the study proposes an adaptive probabilistic genetic algorithm (AGA) to optimize the initial weights and thresholds of BPNN, including single and double-hidden layers, respectively. The results demonstrate that the double-hidden SG-DT-PCA-AGA-BPNN model outperforms the single-hidden layer model, achieving a high correlation coefficient ( <i:math xmlns:i="http://www.w3.org/1998/Math/MathML" id="M5"><i:msub><i:mrow><i:mi>R</i:mi></i:mrow><i:mrow><i:mi>P</i:mi></i:mrow></i:msub></i:math> ) of 0.994 and a low root mean square error (RMSEP) of 1.01%. This study highlights the effectiveness of increasing the number of hidden layers and using AGA to optimize the initial thresholds and weights of BPNN in improving the prediction accuracy. Furthermore, it provides a new approach to implement <k:math xmlns:k="http://www.w3.org/1998/Math/MathML" id="M6"><k:msub><k:mrow><k:mtext>M</k:mtext></k:mrow><k:mrow><k:mtext>C</k:mtext></k:mrow></k:msub></k:math> detection technology in green tea processing. Algorithm ; Partial least squares regression ; Artificial intelligence ; Mathematics ; Computer science ; Pattern recognition (psychology) ; Machine learning Spectroscopy and Chemometric Analyses ; Advanced Chemical Sensor Technologies ; Spectroscopy Techniques in Biomedical and Chemical Research