An establishing method of a self-adaptive model for detection of content of
protein of rapeseeds on the basis of a mid-
infrared spectrum comprises steps as follows: I, mid-
infrared photoacoustic spectrum information is sampled and acquired,
continuous scanning is performed for multiple times, and an average spectrum is obtained; II, the content of the
protein of the rapeseeds is chemically analyzed, and a chemical reference value is obtained; III,
noise elimination,
smoothing and standardized preprocessing are performed on the spectrum information; IV, spectrum data are calculated with an
Euclidean distance method, and sequencing from small to large is performed; V, a prediction model based on the spectrum information is established; VI, a mid-
infrared photoacoustic spectrum of to-be-tested samples is taken into the model, the content of the
protein of the to-be-tested
rapeseed samples is calculated and predicted, and a predicted value is obtained. The method is high in sensitivity, simple to operate and nondestructive to samples, the content of required samples is small, no chemical
reagent is used, the method has the universality, the prediction result is accurate, invalid information interference of the samples can be effectively reduced, a sample modeling set can be optimized and simplified, and model calculation is quick and accurate.