A rapid detection method for fish meal adulteration based on Raman spectroscopy
By performing data enhancement and preprocessing on the Raman spectra of fishmeal and adulterated substances, and training the neural network model, the problem of long time-consuming detection of fishmeal adulteration and high sample destructiveness is solved, and rapid and accurate identification of fishmeal adulteration is achieved. It is especially suitable for situations where low value-added fish meal is mixed with high value-added fish meal.
Patent Information
- Application Number
- CN202210061313.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-19
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-01-19
AI Technical Summary
Existing fishmeal adulteration detection methods are time-consuming and highly destructive to samples, and traditional methods are difficult to effectively identify low-value-added fishmeal mixed with high-value-added fishmeal. Especially in the case of small samples, deep learning models cannot effectively identify adulterated samples. .
By preprocessing and data enhancing the Raman spectra of a small amount of pure fish meal and pure adulterated substances, a large amount of simulated sample data is generated, which is used to train the neural network model, learn and identify the characteristics of adulterated fish meal and pure fish meal, thereby achieving Quick identification.
It can quickly and accurately determine whether fishmeal is adulterated with a small number of samples, reduces data acquisition costs, improves the accuracy and robustness of the classifier, and is suitable for identification scenarios where low-value-added fishmeal is mixed with high-value-added fishmeal.
Smart Images

Figure CN114970596B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of feed detection, and in particular relates to a method for rapid detection of fish meal adulteration based on Raman spectroscopy analysis. Background Art
[0002] Fishmeal is an important raw material for high-protein feed. Due to its high effective energy value, rich content of vitamins and minerals, and unknown growth-promoting factors, it is widely used in aquaculture, livestock breeding, and fur animal breeding. With the expansion of the breeding industry, the market demand for high-quality fishmeal is increasing day by day, but the quality of fishmeal supply varies greatly, and a large amount of adulterated fishmeal has appeared.
[0003] Traditional methods for identifying adulterated fishmeal mainly include sensory identification, physical identification and chemical identification methods (Ge Min, Tian Yun, Wang Yijun, Zhang Jingnan. Identification methods for adulterated fishmeal [J]. Contemporary Animal Husbandry, 2016 (36): 24-25). The sensory identification method uses simple means such as looking, smelling and touching to identify adulterated fishmeal, which mainly relies on the experience and subjective judgment of the inspector and is difficult to obtain reliable results. Physical identification methods mainly include water washing method and microscope identification method; chemical identification methods mainly include hydrochloric acid method and alkali boiling method. However, these detection methods are time-consuming and destructive to the samples themselves. With the continuous development of fishmeal adulteration technology, especially the mixing of low-value-added fishmeal into high-value-added fishmeal, users can no longer effectively identify fishmeal adulteration with traditional sensory identification and physical identification alone. Therefore, there is an urgent need for an effective and accurate method for rapid detection of adulterated fishmeal.
[0004] Raman spectroscopy is a vibration spectrum with molecular fingerprint information, and each substance has its own unique spectral information. As a non-invasive, fast and convenient material detection tool, Raman spectroscopy is widely used in material adulteration detection. For example, Raman spectroscopy is used to identify olive oil adulteration with waste cooking oil via Raman spectroscopy combined with iPLS and SiPLS. Spectrochimica Acta Part A: Molecular and Biomolecular Spectroscopy 189 (2018): 37-43), detect rainbow trout mixed in Atlantic salmon (Zeling Chen, Ting Wu, Cheng Xiang, et al. "Rapid Identification of Rainbow Trout Adulteration in Atlantic Salmon by Raman Spectroscopy Combined with Machine Learning. ." Molecules 24 (2019): 2851), and determine whether milk powder is adulterated (Michel K. Nieuwoudt, SE Holroyd, Cushla McGoverin, et al. "Raman spectroscopy as an effective screening method for detecting adulteration of milk with small nitrogen-rich molecules and sucrose" Journal of Dairy Science 99(2016):2520-2536) etc. These detection schemes are based on the fingerprint information provided by Raman spectroscopy and analyzed using mathematical statistics or machine learning algorithms.In recent years, Raman spectroscopy combined with machine learning has shown great potential in material detection (Fei Gao, Xu Lingzhi, Yue-jing Zhang, et al. "Analytical Raman spectroscopic study for discriminant analysis of different animal-derived feedstuff: Understanding the high correlation between Raman spectroscopy and lipid characteristics.." Food Chemistry 240 (2018): 989-996), which is inspiring for the identification of fish meal adulteration. However, it should be noted that both pure fish meal as the target substance and the adulterated substance to be tested (such as feather meal or low value-added fish meal) are essentially mixtures. Therefore, the existing identification algorithms that consider the mutual mixing of pure substances and use Raman spectroscopy analysis cannot be directly applied to the detection of fish meal adulteration. For the identification task of mixture adulteration, how to effectively extract the characteristics of fish meal and adulterants is a major challenge. In particular, fish meal samples themselves are also heterogeneous. For example, the shape and distribution of proteins between the same fish meal samples are different, which further increases the difficulty of fish meal identification tasks.
[0005] As a task of identifying adulterated mixtures, fish meal adulteration detection requires the classifier to be able to identify samples of various adulterated concentrations, and deep learning technology with strong feature extraction capabilities is a good choice. In recent years, deep learning has been widely used in many fields with its powerful feature extraction capabilities and good generalization performance. For example, neural networks can perform component analysis on the Raman spectra of mixtures (Xiaqiong Fan, Wen Ming, Huitao Zeng, et al. "Deep learning-based component identification for the Raman spectra of mixtures" Analyst 144 (2019): 1789-1798). Generally speaking, when the amount of data is sufficient, the performance of deep learning is better than that of traditional machine learning. However, in practical applications, fish meal users and acceptance units can easily obtain a small amount of representative Raman spectra of pure fish meal and adulterated substances (such as pure feather meal). In the case of few samples, common machine learning methods (such as support vector machines, random forests, etc.) can identify whether the sample to be tested is pure fish meal, or whether it is a pure adulterant (such as pure feather meal), but it cannot effectively identify adulterated samples because their Raman spectra contain the characteristics of both fish meal and adulterants. In particular, it is easy to misjudge samples with low concentrations of adulterants as pure fish meal. Faced with such a dilemma, it seems that only by obtaining spectral data of adulterated samples of various concentrations can the characteristics of adulterated fish meal be fully learned. However, in the actual application of fish meal adulteration identification, there is no condition to spend huge manpower, material resources and time to obtain such a large number of training samples with multiple concentrations. Therefore, the high cost of collecting and annotating a large number of fish meal adulteration Raman spectra limits the application of deep learning in the field of fish meal adulteration. Summary of the invention
[0006] The present invention provides a method for rapid detection of fish meal adulteration based on Raman spectroscopy analysis. Based on the original Raman spectra of a small amount of pure fish meal samples and pure adulterated substance samples, the original Raman spectra are pre-processed and data enhancement is performed respectively to simulate the Raman spectra of a large number of pure fish meal and samples with different adulteration concentrations. The simulated sample data are input into a neural network for training, that is, the neural network is used to learn and identify the characteristics of adulterated fish meal and pure fish meal, so that the training model can accurately and quickly judge whether the actual sample is adulterated.
[0007] The present invention adopts the following technical solution:
[0008] A method for rapid detection of fish meal adulteration based on Raman spectroscopy analysis, comprising:
[0009] S1, obtain the training data set through data enhancement method:
[0010] S11, randomly selecting Raman spectra of a pure fish meal sample and an adulterated substance sample for preprocessing, then linearly adding them according to a certain ratio, and performing normalization operation as needed, to generate positive samples for training with Raman spectrum data characteristics of both fish meal and adulterated substance; randomly selecting two Raman spectra of a pure fish meal sample for preprocessing, then linearly adding them according to a certain ratio, to generate negative samples for training with Raman spectrum data characteristics of fish meal;
[0011] S12, repeat S11 to obtain the required number of training positive samples and negative samples;
[0012] S2, network model training: the training samples obtained in the data enhancement phase are split into training set, test set and validation set according to the preset ratio, and input into the neural network for training to obtain the trained network model;
[0013] S3, adulteration identification: Collect the Raman spectra of the fish meal samples to be tested, and input these spectra as the samples to be tested into the trained network model to detect whether the samples contain adulterated substances.
[0014] Preferably, the S1 specifically includes:
[0015] Steps for generating negative samples: Randomly select two pure fish meal samples x from the preprocessed pure fish meal Raman spectrum set X i and x j , perform linear addition according to a certain ratio; repeat the above steps K times to obtain K negative samples for training; where i∈1,2,…,m; j∈1,2,…,m, i≠j; m represents the number of labeled pure fish meal samples;
[0016] Steps for generating positive samples: Take a fishmeal sample x from the pre-processed pure fishmeal Raman spectrum set X and the pre-processed pure adulterant Raman spectrum set Y respectively. i and a pure adulterant sample y v , perform linear addition according to a certain ratio; repeat the above steps K times to obtain K positive samples for training; where v∈1,2,…,n; n represents the number of labeled pure adulterated substance samples;
[0017] Normalization step: Normalize the generated positive samples and negative training samples for training respectively.
[0018] Preferably, the step of generating negative samples specifically includes:
[0019] Randomly select two pure fish meal samples x from the pre-processed pure fish meal Raman spectrum set X i and x j , according to the formula z = (1-a)x i +axj Obtain the simulated spectrum; repeat the above steps K times to obtain K negative samples for training; where, 0 < p ≤ a ≤ q < 1, p and q are respectively the lower and upper bounds of the ratio set by the algorithm, and a represents the mixing ratio between two samples, which can be randomly selected within the set range [p, q].
[0020] Preferably, the step of generating positive samples specifically includes:
[0021] Take out one fish meal sample x i and one pure adulterant sample y v from the preprocessed Raman spectrum set X of pure fish meal and the preprocessed Raman spectrum set Y of pure adulterants respectively, i and obtain the simulated spectrum according to the formula z = (1 - a)x v + ay; repeat the above steps K times to obtain K positive samples for training; where, 0 < p ≤ a ≤ q < 1, p and q are respectively the lower and upper bounds of the ratio set by the algorithm, and a represents the mixing ratio between two samples, which can be randomly selected within the set range [p, q].
[0022] Preferably, the normalization operation is performed as follows:
[0023]
[0024] where, z u is the normalized training sample; z(t h ) represents the Raman signal intensity of z at displacement t h , z min and z max represent the minimum and maximum Raman signal intensities of z respectively.
[0025] Preferably, the S2 specifically includes:
[0026] Use a one-dimensional neural network to train the Raman spectrum samples; first extract spectral features from the input samples using the convolutional layer, then use the pooling layer to improve the efficiency of network feature learning. After several convolutional and pooling operations, use the fully connected layer to establish the connection between features and samples, and finally use the SoftMax function to normalize the predicted output to obtain the probabilities of the samples belonging to the adulterated category and the unadulterated category.
[0027] Preferably, the SoftMax function is expressed as follows:
[0028]
[0029] where, N represents the number of output nodes, including two categories of adulterated and unadulterated, that is, N = 2; r corresponds to the rth node, r = 1,..., N; is the weight vector corresponding to the rth node after transposition, c is the input vector, and the final output Probability(r) corresponds to the probability of the rth node.
[0030] Preferably, in S2, the loss function of the network model adopts a cross entropy loss function to determine whether the input sample contains adulterated substances. The cross entropy loss function is expressed as follows:
[0031]
[0032] Where N represents the number of output nodes, including two categories: adulterated and unadulterated, that is, N = 2; g i Indicates the label of the sample, the positive sample is 1 and the negative sample is 0; p i It represents the probability that the i-th sample is predicted as a positive sample.
[0033] The beneficial effects of the present invention are as follows:
[0034] (1) Based on the characteristics that the Raman characteristics of the same type of fish meal are similar, and the Raman characteristics of fish meal and adulterated samples are different, the present invention designs a data enhancement method using linear addition to generate a large number of pure fish meal Raman spectra and adulterated sample Raman spectra to enrich the training set, thereby avoiding the problem of high cost of obtaining spectral data of adulterated samples of various concentrations in actual scenarios, and laying a foundation for the application of deep learning models;
[0035] (2) The present invention takes into account that the fish meal sample and the adulterated substance (such as feather meal) are mixtures, and the protein distribution or shape in the sample is uneven. The Raman spectrum generated by the present invention should retain the main characteristics of the original sample while also having certain differences to meet the characteristics of uneven distribution of mixture characteristics; a deep learning model is used to improve the accuracy and robustness of the classifier;
[0036] (3) The present invention is also applicable to the identification scenario where low-value-added fish meal is mixed with high-value-added fish meal. In this case, the low-value-added fish meal needs to be regarded as an adulterant.
[0037] The present invention is further described in detail below in conjunction with the accompanying drawings and examples, but the method for rapid detection of fish meal adulteration based on Raman spectroscopy analysis of the present invention is not limited to the examples. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 is a flow chart of a method according to an embodiment of the present invention;
[0039] Figure 2 This is a diagram of the CNN network structure in the experiment of an embodiment of the present invention. DETAILED DESCRIPTION
[0040] The present invention is further described below through specific implementation modes. It should be noted that the specific embodiments described herein are only used to facilitate the description and explanation of the specific implementation modes of the present invention, and are not used to limit the present invention.
[0041] In order to make the purpose and technical solution of the present invention clearer, the present invention is further described below in conjunction with the accompanying drawings and examples. It should be understood that the examples described herein are only used to explain the present invention and are not used to limit the present invention.
[0042] The present invention is applicable to the application scenario of fish meal adulteration detection. In this embodiment, a small amount of labeled pure fish meal Raman spectra and pure adulterant Raman spectra can be used. Data enhancement can be performed on these two spectral data to generate a large number of pure fish meal simulated spectra (negative samples) and simulated spectra of adulterated samples of various concentrations (positive samples). These generated training samples are then input into a neural network for training to obtain a binary classification model. The model classifies the Raman spectra of the sample to be identified to determine whether it is mixed with adulterants. See Figure 1 As shown, this embodiment mainly includes the following three steps:
[0043] (1) Obtain a training data set through a data augmentation algorithm: randomly select two original spectral data for preprocessing, then linearly add them according to a certain ratio, and perform normalization as needed, and finally generate a simulated spectrum with the characteristics of both. Repeating this step in large numbers can obtain enough positive and negative samples for training.
[0044] Assume that the set of pure fish meal Raman spectra that can be used for data enhancement is X = {x i |i=1,2,…,m}, the Raman spectrum set of the adulterated substance is Y={y v |v=1,2,…,n}, where m and n represent the number of labeled pure fish meal samples and adulterated samples, respectively. These spectra have been uniformly preprocessed. Specifically, an algorithm for removing fluorescence background and noise can be used, such as a baseline subtraction algorithm based on Gaussian peaks (Sun Xilong. Research on preprocessing and identification algorithms for plasmon-enhanced Raman spectroscopy [D]. Xiamen University, 2014). Each Raman spectrum sample can be represented as x i (t) or y v (t), where t = [t1, t2, …, t s ] is the Raman shift sequence, s represents the length of each spectral sequence, x i (t h ) represents the i-th Raman spectrum at t h The Raman signal intensity at this position of Raman shift, h = 1, 2, ..., s. Steps to generate negative samples: Randomly select two fish meal samples x from X i and xj (x i 、x j both belong to X), according to the formula z = (1 - a)x i + ax j to obtain the simulated spectrum, where 0 < p ≤ a ≤ q < 1. p and q are the lower and upper bounds of the ratio set by the algorithm respectively, and a represents the mixing ratio between two samples, which can be randomly selected within the set range [p, q]. Repeating the above steps K times can obtain K negative training samples. The initial samples x i and x j , as well as the mixing ratio a, are all random. Therefore, there are differences between these negative samples, but they all have the Raman characteristics of the same fish meal.
[0045] Steps to generate positive samples: Take out a fish meal sample x i and an adulterant sample y v from X and Y respectively, and according to the formula z = (1 - a)x i + ay v to obtain the simulated spectrum. Similarly, 0 < p ≤ a ≤ q < 1. Randomly select the ratio a and repeat the above steps K times to obtain K positive training samples, which contain the Raman characteristics of both fish meal and adulterant. Similarly, there are differences between these positive samples, but the Raman characteristics of adulterated samples under different adulteration concentrations can be extracted.
[0046] The positive and negative training samples generated by these data augmentation algorithms can be directly input into the neural network for training. However, if the Raman signal intensities of pure fish meal and adulterant are not in the same order of magnitude, in order to improve the accuracy of the binary classification model, it is also necessary to perform a normalization operation on the generated sample z through the formula . Among them, z u is the normalized training sample, and z(t h ) represents the Raman signal intensity of z at displacement t h , min and z max represent the minimum and maximum Raman signal intensities of z respectively. The normalization operation can make the Raman intensities of positive and negative samples comparable and avoid weak signal features being submerged.
[0047] (2) Train the neural network model: The 2K positive and negative training samples obtained in the data augmentation stage are split into training set, test set, and validation set, and jointly input into the neural network to finally obtain the trained network model.
[0048] Since each Raman spectrum can be regarded as a one-dimensional vector, it can be trained using a one-dimensional neural network. First, the convolution layer is used to extract the spectral features of the input sample, and then the pooling layer is used to improve the efficiency of network feature learning. After several convolution and pooling operations, the fully connected layer is used to establish the connection between the features and the samples. Finally, the SoftMax function is used to normalize the predicted output to obtain the probability that the sample belongs to the adulterated category and the unadulterated category. The SoftMax function is as follows:
[0049]
[0050] Here, N represents the number of output nodes (i.e., the number of categories). The present invention only considers two categories, adulterated and unadulterated, so N = 2. r corresponds to the rth node, r = 1, ..., N, is the weight vector corresponding to the rth node after transposition, c is the input vector, and the final output Probability(r) corresponds to the probability of the rth node.
[0051] The training goal of the neural network is to complete a binary classification task: that is, to judge whether the input sample is an adulterated sample, so its loss function can use the cross entropy loss function:
[0052]
[0053] Among them, g i Indicates the label of the sample, the positive sample is 1 and the negative sample is 0; p i It represents the probability that the i-th sample is predicted as a positive sample.
[0054] The neural network model learns the features of a large number of positive and negative samples until the loss converges, and finally obtains a classifier that can determine whether the fish meal sample is adulterated with the adulterant.
[0055] (3) Adulteration identification: In the actual fish meal adulteration identification scenario, the tester collects Raman spectra for each batch of samples to be tested, and inputs these spectra as the samples to be tested into the binary classification model trained in step (2). The model will determine whether the samples contain adulterants one by one.
[0056] The detection method of the present invention will be verified by experiments as follows. The Raman spectral data used in this experiment (as shown in Table 1) are collected by the SciAps Raman spectrometer for Peruvian fish meal samples (labeled as the Raman spectrum of pure feather meal) and hydrolyzed feather meal samples (labeled as the Raman spectrum of adulterated substances), as well as adulterated samples (Raman spectra to be tested) mixed with the two at different concentrations. The spectral range of the instrument is 200-2500cm -1 The Raman shift lengths of these samples are all 2302.
[0057] In order to verify that the invention can identify fish meal adulteration with a small amount of annotated spectral data, this experiment only uses 12 pure fish meal samples and 15 pure feather meal samples for data enhancement to generate a training set, which also meets the requirements of practical applications to reduce the cost of spectral data acquisition. The parameters of the data enhancement algorithm are K = 10000, p = 10%, q = 80%, which means that the generated training library contains 10,000 negative samples and 10,000 positive samples, and the lower and upper bounds of the mixing ratio a are set to 10% and 80% respectively.
[0058] Table 1 Raman spectral data used in the experiment
[0059]
[0060] In the neural network model, this experiment uses a four-layer one-dimensional CNN network structure. For specific structure and parameters, see Figure 2 As shown. In this experiment, the input sample is a one-dimensional vector with a vector length of 2301. After the input passes through the first convolution layer (convolution kernel 1*5), the length is reduced to 1151, and the number of channels becomes 32; then it passes through the first maximum pooling layer (kernel size is 1*2), and the length is reduced again to 576; then it passes through the second convolution layer and the maximum pooling layer again (parameters are the same as above), the feature length becomes 144, and the number of channels becomes 64; the feature map after convolution and pooling is flattened to obtain 9216 hidden units; after entering two fully connected layers, two results are finally output: adulterated category or unadulterated category. In the above network, the weights of the kernel function are initialized with truncated normal distribution, the bias term is initialized to 0.1, and the bias range is 0.01 to 1.00. Set the number of training rounds epoch=20, the batch size batchSize is 100, and the learning rate is set to 10 -4 , using the Adam optimizer for gradient descent. The negative samples and positive samples obtained for training in the data enhancement phase are divided into training set, test set, and validation set in a ratio of 6:1:1, and input into the model for training and preliminary testing.
[0061] Finally, the remaining 13 pure fish meal samples and 156 adulterated samples were used as test samples (a total of 169 samples), and were input into the trained network model one by one to test the performance of the present invention. In this experiment, the accuracy rate of detecting adulterated substances was used as the criterion for the fish meal adulteration identification method. The accuracy rate calculation formula is:
[0062] Table 2 Detection accuracy of two schemes (unit: %)
[0063]
[0064] In order to quantify the classifier's ability to identify samples with various adulterated concentrations, Table 2 gives the accuracy of the samples with different adulterated concentrations, and compares the experimental results of the two schemes of unnormalization and normalization. It can be seen that the use of normalization in the data enhancement stage has improved the performance of the classifier to a certain extent, especially in the detection accuracy of low-concentration samples. When the adulteration concentration of feather meal is between 10% and 30%, the accuracy of the model is above 60%; when the adulteration rate reaches 40%, the recognition accuracy of the model reaches more than 95%; the overall accuracy of fish meal adulteration identification is 81.07%, and the recognition rate of pure fish meal samples can reach 84.61%.
[0065] This experiment also attempts to directly use the same 27 labeled fish meal and feather meal Raman spectra to train the SVM classifier to learn the spectral characteristics of fish meal and feather meal. However, the trained SVM classifier only correctly detected 60 samples out of 169 test samples, with an overall accuracy of only 32.54%. It can be seen that the feasibility of traditional machine learning classifiers in fish meal adulteration detection is very poor; while the present invention can detect almost all samples with medium or higher adulteration concentrations, and has acceptable accuracy in distinguishing low-concentration adulterated samples, which better solves the problem of low accuracy and large limitations of traditional adulteration identification methods. At the same time, the method of the present invention is easy to promote. For any mixture of a target substance and an adulterant substance, the neural network can be used according to the method to perform feature learning on the rapidly generated adulterated and non-adulterated samples, and then the adulterated samples can be identified. For example, high-value-added fish meal is regarded as the target substance and low-value-added fish meal is regarded as the adulterant. The fish meal adulteration rapid detection method based on Raman spectroscopy analysis of the present invention can also be used to check samples mixed with low-value-added fish meal.
[0066] It should be understood that those skilled in the art can make improvements and changes based on the above description, and all these improvements and changes should fall within the scope of protection of the appended claims of the present invention.
Claims
1. A rapid detection method for fish meal adulteration based on Raman spectroscopy analysis, characterized in that: include: S1, obtain the training data set through data enhancement method: S11, randomly selecting Raman spectra of a pure fish meal sample and an adulterated substance sample for preprocessing, then linearly adding them according to a certain ratio, and performing normalization operation as needed, to generate positive samples for training with Raman spectrum data characteristics of both fish meal and adulterated substance; randomly selecting two Raman spectra of a pure fish meal sample for preprocessing, then linearly adding them according to a certain ratio, to generate negative samples for training with Raman spectrum data characteristics of fish meal; S12, repeat S11 to obtain the required number of training positive samples and negative samples; S2, network model training: the training samples obtained in the data enhancement phase are split into training set, test set and validation set according to the preset ratio, and input into the neural network for training to obtain the trained network model; S3, adulteration identification: Collect the Raman spectra of the fish meal samples to be tested, and input these spectra as the samples to be tested into the trained network model to detect whether the samples contain adulterated substances.
2. The method for rapid detection of fish meal adulteration based on Raman spectroscopy analysis according to claim 1, characterized in that: The S1 specifically includes: Steps for generating negative samples: Randomly select two pure fish meal samples x from the preprocessed pure fish meal Raman spectrum set X i and x j , perform linear addition according to a certain ratio; repeat the above steps K times to obtain K negative samples for training; where i∈1,2,…,m; j∈1,2,…,m, i≠j; m represents the number of labeled pure fish meal samples; Steps for generating positive samples: Take a fishmeal sample x from the pre-processed pure fishmeal Raman spectrum set X and the pre-processed pure adulterant Raman spectrum set Y respectively. i and a pure adulterant sample y v , perform linear addition according to a certain ratio; repeat the above steps K times to obtain K positive samples for training; where v∈1,2,…,n; n represents the number of labeled pure adulterated substance samples; Normalization step: Normalize the generated positive samples and negative training samples for training respectively.
3. The method for rapid detection of fish meal adulteration based on Raman spectroscopy analysis according to claim 2 is characterized in that: The step of generating negative samples specifically includes: Randomly select two pure fish meal samples \(x\) from the preprocessed Raman spectrum set \(X\) of pure fish meal i and \(x\) j , and obtain the simulated spectrum according to the formula \(z=(1 - a)x\) i + \(ax\) j ; Repeat the above steps \(K\) times to obtain \(K\) negative samples for training; where \(0 < p\leq a\leq q < 1\), \(p\) and \(q\) are the lower and upper bounds of the ratio set by the algorithm respectively, and \(a\) represents the mixing ratio between the two samples and can be randomly selected within the set range \([p, q]\).
4. The method for rapid detection of fish meal adulteration based on Raman spectroscopy analysis according to claim 2, characterized in that: The step of generating positive samples specifically includes: Take out a fish meal sample x from the preprocessed pure fish meal Raman spectrum set X and a pure adulterant sample y from the preprocessed pure adulterant Raman spectrum set Y respectively. i and a pure adulterant sample y v , and obtain the simulated spectrum according to the formula z = (1 - a)x i + ay v ; Repeat the above steps K times to obtain K positive samples for training; where, 0 < p ≤ a ≤ q < 1, p and q are the lower and upper bounds of the ratio set by the algorithm respectively, and a represents the mixing ratio between the two samples, which can be randomly selected within the set range [p, q].
5. The method for rapid detection of fish meal adulteration based on Raman spectroscopy analysis according to claim 3 or 4, characterized in that: The normalization operation is as follows: Among them, z u is the normalized training sample; z(t h ) represents z at displacement t h The Raman signal intensity, z min and z max represent the minimum and maximum Raman signal intensities of z, respectively.
6. The method for rapid detection of fish meal adulteration based on Raman spectroscopy analysis according to claim 1, characterized in that: The S2 specifically includes: A one-dimensional neural network is used to train Raman spectral samples. First, a convolutional layer is used to extract spectral features from the input samples. Then a pooling layer is used to improve the efficiency of network feature learning. After several convolution and pooling operations, a fully connected layer is used to establish the connection between features and samples. Finally, the SoftMax function is used to normalize the predicted output to obtain the probability that the sample belongs to the adulterated category or the unadulterated category.
7. The method for rapid detection of fish meal adulteration based on Raman spectroscopy analysis according to claim 6, characterized in that: The SoftMax function is expressed as follows: Wherein, N represents the number of output nodes, including two categories: adulterated and unadulterated, that is, N = 2; r corresponds to the rth node, r = 1, ..., N; is the weight vector corresponding to the rth node after transposition, c is the input vector, and the final output Probability(r) corresponds to the probability of the rth node.
8. The method for rapid detection of fish meal adulteration based on Raman spectroscopy analysis according to claim 1, characterized in that: In S2, the loss function of the network model uses the cross entropy loss function to determine whether the input sample contains adulterated substances. The cross entropy loss function is expressed as follows: Where N represents the number of output nodes, including two categories: adulterated and unadulterated, that is, N = 2; g i Indicates the label of the sample, the positive sample is 1 and the negative sample is 0; p i It represents the probability that the i-th sample is predicted as a positive sample.
Citation Information
Patent Citations
Gasoline adulteration identification and analysis method based on Raman spectroscopy combined with random forest algorithm
CN110836885A
Intelligent library building method for Raman spectrum data
CN113378680A
Application of Raman spectroscopy to identification and sorting of post-consumer plastics for recycling
US6313423B1
Raman spectroscopy detection method for checking goods, and electronic device
WO2018121122A1
