| Literature DB >> 31516344 |
Yun Deng1,2, Hanjie Xiao3, Jianxin Xu1,4, Hua Wang1,4.
Abstract
Special food safety supervision by means of intelligent models and methods is of great significance for the health of local people and tourists. Models like BP neural network have the problems of low accuracy and poor robustness in food safety prediction. So, firstly, the principal component analysis was used to extract the key factors that influenced the amount of coliform communities, which was applied to reduce the dimension of this model as the input variable of BP neural network. Secondly, both the particle swarm optimization (PSO) and BP neural network were implemented to optimize initial weights and threshold to obtain the optimal parameter, and a model was constructed to predict the amount of coliform bacteria in Dai Special Snacks, Sa pie, based on PSO-BP neural network model. Finally, the predicted value of the model is verified. The results show that MSE is 0.0097, MAPE is 0.3198 and MAE is 0.0079, respectively. It was clear that PSO-BP model was better accuracy and robustness. That means, this model can effectively predict the amount of coliform. The research has important guiding significance for the quality and the production of Sa pie.Entities:
Keywords: BP neural network; Coliform bacteria; Particle swarm algorithm; Principal component analysis; Sa pie
Year: 2019 PMID: 31516344 PMCID: PMC6734153 DOI: 10.1016/j.sjbs.2019.06.016
Source DB: PubMed Journal: Saudi J Biol Sci ISSN: 1319-562X Impact factor: 4.219
Original data obtained from tests of Sa pie (part).
| Testing items | Unit | Testing samples | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| N0: SP201705465 | N0: SP201705466 | N0: SP201705467 | N0: SP201705468 | ….. | N0: SP201705492 | N0: SP201705493 | N0: SP201705494 | N0: SP201705495 | ||
| Histidine | g/100 g | 0.265 | 0.255 | 0.303 | 0.362 | ….….. | 0.185 | 0.241 | 0.252 | 0.274 |
| Serine | g/100 g | 0.296 | 0.320 | 0.242 | 0.348 | ….….. | 0.188 | 0.294 | 0.220 | 0.258 |
| Arginine | g/100 g | 0.327 | 0.375 | 0.401 | 0.453 | ….….. | 0.280 | 0.289 | 0.218 | 0.260 |
| Glycine | g/100 g | 0.257 | 0.294 | 0.315 | 0.404 | ….….. | 0.304 | 0.265 | 0.196 | 0.222 |
| Aspartic acid | g/100 g | 0.683 | 0.637 | 0.790 | 0.780 | ….….. | 0.640 | 0.500 | 0.444 | 0.503 |
| Glutamic acid | g/100 g | 2.250 | 1.740 | 2.410 | 1.260 | ….….. | 0.951 | 1.910 | 0.864 | 1.120 |
| Threonine | g/100 g | 0.360 | 0.375 | 0.384 | 0.432 | ….….. | 0.302 | 0.355 | 0.249 | 0.290 |
| Alanine | g/100 g | 0.360 | 0.403 | 0.444 | 0.537 | ….….. | 0.316 | 0.360 | 0.269 | 0.328 |
| Proline | g/100 g | 0.048 | 0.122 | 0.053 | 0.221 | ….….. | 0.092 | 0.107 | 0.078 | 0.077 |
| Cystine | g/100 g | 0.219 | 0.201 | 0.094 | 0.113 | ….….. | 0.090 | 0.240 | 0.123 | 0.172 |
| Lysine | g/100 g | 0.565 | 0.579 | 0.642 | 0.725 | ….….. | 0.486 | 0.527 | 0.400 | 0.467 |
| Tyrosine | g/100 g | 0.355 | 0.290 | 0.316 | 0.324 | ….….. | 0.274 | 0.282 | 0.232 | 0.273 |
| Methionine | g/100 g | 0.253 | 0.326 | 0.264 | 0.301 | ….….. | 0.237 | 0.323 | 0.259 | 0.313 |
| Valine | g/100 g | 0.447 | 0.380 | 0.326 | 0.385 | ….….. | 0.317 | 0.439 | 0.315 | 0.374 |
| Isoleucine | g/100 g | 0.327 | 0.312 | 0.336 | 0.400 | ….….. | 0.252 | 0.267 | 0.205 | 0.247 |
| Leucine | g/100 g | 0.783 | 0.729 | 0.775 | 0.911 | ….….. | 0.631 | 0.715 | 0.540 | 0.643 |
| Phenylalanine | g/100 g | 0.476 | 0.376 | 0.347 | 0.412 | ….….. | 0.336 | 0.453 | 0.336 | 0.375 |
| Total acid | g/kg | 4.260 | 4.110 | 2.900 | 7.950 | ….….. | 7.140 | 5.140 | 3.400 | 2.650 |
| Protein | g/100 g | 9.360 | 8.300 | 9.730 | 10.200 | ….….. | 6.300 | 10.300 | 10.100 | 9.870 |
| Fat | g/100 g | 1.420 | 1.090 | 1.550 | 1.270 | ….….. | 1.510 | 1.700 | 1.540 | 1.650 |
| PH value | / | 5.540 | 5.430 | 5.930 | 4.980 | ….….. | 4.870 | 5.050 | 5.340 | 5.730 |
| Selenium | μg/100 g | 6.360 | 5.810 | 4.920 | 6.090 | ….….. | 3.890 | 6.750 | 9.060 | 4.600 |
| Lead | mg/kg | <0.04 | 0.13 | 0.062 | 0.19 | ….….. | 0.2 | 0.045 | <0.04 | <0.04 |
| Total arsenic | mg/kg | <0.03 | <0.03 | <0.03 | <0.03 | ….….. | <0.03 | <0.03 | <0.03 | <0.03 |
| Total mercury | mg/kg | <0.01 | <0.01 | <0.01 | <0.01 | ….….. | <0.01 | <0.01 | <0.01 | <0.01 |
| Cadmium | mg/kg | 0.0061 | 0.0051 | 0.0063 | <0.003 | ….….. | 0.0059 | 0.0097 | 0.01 | 0.0085 |
| Coliform | CFU/g | 680,000 | 150,000 | 0 | 810,000 | ….….. | 90,000 | 190,000 | 21,000 | 170,000 |
Fig. 1Experimental devices of data acquisition.
Characteristic values, contribution rate and accumulated contribution rate of PCA.
| Variable | Characteristic value | Difference value | Contribution rate | Accumulated contribution rate |
|---|---|---|---|---|
| x1 | 21.080 | 9.576 | 64.128 | 64.128 |
| x2 | 11.504 | 8.522 | 12.208 | 76.337 |
| x3 | 2.983 | 2.331 | 8.410 | 84.747 |
| x4 | 0.651 | 0.102 | 3.087 | 87.834 |
| x5 | 0.549 | 0.419 | 2.585 | 90.419 |
| x6 | 0.130 | 0.056 | 1.401 | 91.819 |
| x16 | 0.016 | 0.002 | 0.441 | 98.270 |
| x17 | 0.014 | 0.001 | 0.416 | 98.686 |
| x18 | 0.013 | 0.000 | 0.401 | 99.087 |
| x19 | 0.013 | 0.005 | 0.393 | 99.479 |
| x20 | 0.008 | 0.005 | 0.309 | 99.788 |
| x21 | 0.003 | 0.003 | 0.202 | 99.990 |
| x22 | 0.000 | 0.000 | 0.010 | 100.000 |
Principal component load matrix (part).
| Standardized variables | Prin1′ | Prin2′ | Prin3′ | Prin4′ |
|---|---|---|---|---|
| x1: histidine | −0.001 | −0.001 | −0.001 | 0.001 |
| x2: serine | 0.001 | 0.003 | 0.000 | 0.000 |
| x3: arginine | −0.001 | 0.006 | 0.003 | 0.007 |
| x4: glycine | 0.003 | 0.003 | −0.003 | 0.004 |
| x5: aspartic acid | 0.005 | 0.006 | 0.007 | 0.008 |
| x6: glutamic acid | 0.028 | 0.010 | −0.002 | 0.034 |
| x18: total acid | 0.209 | −0.115 | 0.969 | −0.065 |
| x19: protein | 0.926 | −0.293 | −0.233 | 0.024 |
| x20: fat | 0.023 | −0.011 | 0.016 | 0.048 |
| x21: PH value | 0.001 | 0.037 | 0.070 | 0.994 |
| x22: ‘selenium | 0.311 | 0.948 | 0.044 | −0.039 |
Fig. 2Flow chart of PSO-BP prediction model for the amount of coliform bacteria in Sa pie.
Fig. 3Comparison curves between the prediction value and actual value of each model.
Comparison of error indicators of each prediction model.
| Prediction model | Error indicators | ||
|---|---|---|---|
| MSE | MAE | MAPE | |
| BP model | 0.2059 | 0.3751 | 1.0536 |
| GA-BP model | 0.1815 | 0.3239 | 0.9101 |
| PSO-BP model | 0.0097 | 0.0779 | 0.3198 |
Fig. 4Comparison of predicted residual curves of each model.