Abstract:
Meat spoilage is a relatively complicated process, in which microorganisms increase nonlinearly. As a non-linear model, BP neural network has strong generalization ability and fitting ability, but there are some shortcomings in the application, such as slow convergence speed, easy to fall into local minima and overfitting. Thus an optimized BP neural network was proposed. Prepared chicken was stored in a refrigerator at 4 ℃, and 240 samples were collected. After obtaining 400-1000 nm hyperspectral images of each prepared chicken sample, sub-samples were randomly selected from each homogenized sample to determine the total bacteria. Then, the spectral data was preprocessed by different methods such as differentiation, standard normalized variate, and multiplicative scatter correction. The PLSR model was cross-validated by the leave-one-out method, and the best preprocessing method was determined based on RMSECV(root mean square error of cross validation). After that, based on the pre-processed spectral information, 34 characteristic bands were extracted by CARS (competitive adaptive reweighted sampling) algorithm. Finally, the spectral values corresponding to the full-band and filtered characteristic bands were used as the input of the BP (back propagation) neural network, and the total bacteria was used as the output of the BP neural network. Bird swarm algorithm (BSA) and immune algorithm (IA) optimization were used to optimize the initial weight and threshold of the BP neural network. The prediction models of the total bacteria were established by using BP, BSA-BP, IA-BP, and BSA-IA-BP. The results showed that: 1) by introducing the IA algorithm’s immune operation, after iterative stabilization, the total fitness of BSA-IA-BP was significantly lower than BSA-BP based on training samples. This showed that the search ability of the BSA-IA fusion algorithm was improved, which could effectively prevent the BSA algorithm from falling into a local optimum in the later stage. At the same time, among the four models of BP, IA-BP, BSA-BP, and BSA-IA-BP, the BSA-IA-BP model had the best prediction accuracy and convergence speed. Among them, the BSA-IA-BP model in the characteristic band had the highest prediction accuracy. The RP (the correlation coefficient), RMSEP (the root mean square error) and RPD (the residual predictive deviation) of the prediction set was 0.93, 0.31 lg(CFU/g), 2.68, respectively. 2) By comparing the characteristic band and the full band, the overall prediction effect of the characteristic band was better than the full band, which indicating that the CARS algorithm could effectively delete the wavelengths, reduced redundant information interference, and improved the model prediction efficiency. In general, the use of hyperspectral technology for non-destructive testing of the total bacteria in prepared chicken was feasible, which can provide technical support for the online testing of prepared chicken.