The invention relates to a method for detecting the
pollution concentration of
staphylococcus aureus in mutton based on combination of 2DCOS and 1DCNN-LSTM-Self-Attention. Particularly relates to a method for optimally acquiring hyperspectral image data of mutton samples polluted by
staphylococcus aureus with different concentrations by fully utilizing a short-wave
infrared hyperspectral technology, extracting a
region of interest (ROI) of the hyperspectral image data, and predicting the
pollution concentration of the mutton samples by utilizing an optimized detection model. Comprising the following steps: firstly, extracting a characteristic
wavelength closely related to the
pollution concentration of
staphylococcus aureus on mutton by utilizing two-dimensional
correlation spectrum analysis (2DCOS), and establishing a rapid and accurate prediction model by utilizing the characteristic
wavelength in combination with a 1DCNN-LSTM-Self-Attention integrated model. According to the method, the 2DCOS method, the
deep learning algorithm and the
hyperspectral imaging technology are combined and applied to prediction of the
staphylococcus aureus pollution concentration on mutton, and a high decision coefficient is obtained; the 2DCOS obtains the information of the
material structure and dynamics by analyzing the mutual relation between different wavelengths under the external interference condition. The 1DCNN-LSTM-Self-Attention can be used for automatically carrying out data normalization and
feature extraction, so that the complexity of data pre-
processing is reduced; the hyperspectral image
data acquisition system is simple and convenient to operate, and the acquisition and prediction process speed is relatively high; a sample to be detected does not need to be subjected to special pretreatment, and an operator does not need professional knowledge; the
hyperspectral imaging system and the matching device thereof are high in precision and have good research value, the characteristic
wavelength suitable for predicting the concentration of
staphylococcus aureus on mutton is researched on the basis of the
system, a low-cost special detection system with high specificity is researched and developed, and the system has good market popularization and application value.