Spectrum-based model for detecting magnesium content in camel milk
By selecting characteristic bands in camel milk and applying the partial least squares regression model, the problem of the inability of existing technology to effectively predict the magnesium content of camel milk was solved, and the rapid and accurate detection of magnesium content in camel milk was achieved, improving detection efficiency and applicability.
Patent Information
- Application Number
- CN202410803454.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-08-30
AI Technical Summary
The existing mid-infrared spectroscopy model has not yet been able to effectively predict the magnesium content in camel milk, and the existing milk mineral detection model is not suitable for camel milk. As a result, a rapid detection technology for the magnesium content of camel milk has not yet been established, which affects China's milk industry. industry development.
By selecting the characteristic band 925.92cm-1-4922.808cm-1, combined with the MIR data processed by second-order difference and convolution smoothing, and using the partial least squares regression model to predict the magnesium content of camel milk, the accuracy and efficiency of the model were optimized. .
Rapid, accurate and low-cost detection of magnesium content in camel milk is achieved. The detection time only takes 10-15 seconds, which improves detection efficiency and is suitable for camel performance measurement and quality testing.
Smart Images

Figure BDA0004904025870000051 
Figure HDA0004904025880000021 
Figure BDA0004904025870000081
Abstract
Description
Technical Field
[0001] The invention belongs to the field of camel performance measurement and camel milk quality detection, and particularly relates to a magnesium content detection model in camel milk based on spectroscopy. Background Art
[0002] As an enzyme activator, magnesium participates in more than 300 enzymatic reactions in the human body. These enzyme systems regulate various biochemical reactions in the human body, including protein synthesis, muscle and nerve function, blood sugar control and blood pressure regulation. The content of magnesium in bones is second only to calcium and phosphorus. It is one of the main components of bones and an essential element for maintaining the structure and function of bone cells. It has the function of maintaining and promoting the growth of bones and teeth. Magnesium also has a regulatory effect on hormones, an inhibitory effect on potassium and calcium ion channels, and also has the function of regulating gastrointestinal function.
[0003] Camel milk is rich in minerals, which can provide humans with essential nutrients and are of great significance for maintaining human health and normal physiological functions. Studies have shown that the magnesium content in camel milk is 45-200 mg / L. The content of mineral components in camel milk is crucial to human nutritional intake. Its determination is an important aspect of the dairy industry, which can not only reflect the health status of individual camels, but also reflect the functional characteristics of camel milk and its impact on the environment.
[0004] Mid-infrared spectroscopy (MIR) technology can achieve rapid and non-destructive batch detection of samples, including qualitative and quantitative detection. Specific chemical bonds or functional groups in molecules have different characteristic absorption peaks for mid-infrared light, which can be used to identify the structure of organic components and predict the properties and content of material components, thereby obtaining information such as the physiological state of organisms. In recent years, the research and application of MIR detection technology in the nutritional and physiological indicators of dairy cows have gradually deepened and improved. Models of substances such as milk fat, protein, lactose, and total solids in dairy milk have been established and applied to actual production. However, a rapid batch detection model for mid-infrared spectroscopy of camel milk, especially minerals such as magnesium in camel milk, has not yet been established.
[0005] At present, there are many studies on the use of mid-infrared spectral models to predict the material composition of dairy milk, but there are very few related studies on camel milk, especially the mid-infrared prediction method of mineral content in camel milk has not been reported. Since camels and cows are two different species, there are certain differences in mineral composition and content. Therefore, the mineral detection model of dairy milk that has been studied is not necessarily suitable for camel milk, and the characteristic bands of the spectrum are also different.
[0006] The purpose of the present invention is to solve the existing problems, establish a special rapid detection technology for the magnesium content of camel milk, and provide technical guarantee for the development of China's dairy industry. Summary of the invention
[0007] The purpose of the present invention is to provide a mid-infrared rapid batch detection method for magnesium content in camel milk. The method is simple, rapid and has a high accuracy rate compared with the true value.
[0008] Another object of the present invention is to provide an application of a mid-infrared rapid batch detection method for magnesium content in camel milk.
[0009] In order to achieve the above object, the present invention adopts the following technical measures:
[0010] The mid-infrared rapid batch detection method for magnesium content in camel milk comprises the following steps:
[0011] 1. The characteristic band predicted by the mid-infrared spectrum of magnesium in the collected milk sample is: 925.92cm -1 —1084.098cm -1 ,1095.672cm -1 —1261.566cm -1 ,1412.028cm -1 —1469.898cm -1 ,1770.822cm -1 —1886.562cm -1 ,1990.728cm -1 —2075.604cm -1 ,2083.32cm -1 —2256.93cm -1 ,2272.362cm -1 —2472.978cm -1 ,2530.848cm -1 —2766.186cm -1 ,3113.406cm -1 —3244.578cm -1 ,3337.17cm -1 —3468.342cm -1 ,3587.94cm -1 —3780.84cm -1 ,3788.556cm -1 —3958.308cm -1 ,3993.03cm -1 —4124.202cm -1 ,4128.06cm -1 —4251.516cm -1 ,4382.688cm -1 —4575.588cm-1 ,4837.932cm -1 —4922.808cm -1 ;
[0012] 2. Substitute the MIR data obtained by the measurement into the regression model of second-order difference + convolution smoothing (W = 13, P = 3) + partial least squares regression to output the prediction results of magnesium content in camel milk;
[0013] The principal components of the partial least squares regression are 13.
[0014] In the method described above, preferably, a gap of two wave points is allowed before and after each section of the characteristic wave band.
[0015] The protection scope of the present invention also includes:
[0016] Application of mid-infrared rapid batch detection method for magnesium content in camel milk in camel milk quality testing.
[0017] In the above application, preferably, the milk quality detection is magnesium content detection.
[0018] Compared with the prior art, the present invention has the following advantages:
[0019] 1. Using the mid-infrared spectrum of camel milk, a special prediction model for magnesium content in camel milk was established to break the current situation that the determination of camel milk production performance relies on the mid-infrared spectrum model of dairy cow milk.
[0020] 2. In terms of the selection of characteristic bands, the method of manual selection + multiple traversal was used to break the common algorithm screening features. Finally, the characteristic bands used for modeling were selected, especially the absorption area containing some water, and it was proved that adding some water absorption bands can improve the accuracy of the model.
[0021] 3. The optimal preprocessing and algorithm combination of the model was selected, the optimal parameters were determined, and the accuracy of the model was improved.
[0022] 4. The method has achieved rapid, accurate and low-cost detection of magnesium content in raw camel milk, and realized rapid batch detection. The detection time of each sample is only 10-15 seconds, which improves the detection efficiency. It has strong practicality and can be widely used in camel performance determination and camel milk quality detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 The original mid-infrared spectrum (a) and the average spectrum (b) of camel milk sample.
[0024] Figure 2 To select the characteristic band spectral heat map and the corresponding spectral band position;
[0025] The distribution of mineral characteristic wave points corresponds vertically to the lowest wave number. The spectrum is mainly divided into five regions: mid-infrared to far-infrared region (MWIR-LWIR), mid-infrared region 2 (MWIR-2, also the water absorption noise region), mid-infrared region 1 (MWIR-1), near-infrared to mid-infrared region (SWIR-MWIR), near-infrared region (SWIR). In addition, Lactose I and Lactose II are the absorption regions of lactose, Fat I, Fat II and Fat III are the absorption regions of milk fat, and Protein is the absorption region of milk protein.
[0026] Figure 3 This is the correlation and fitted straight line graph of the true value and predicted value of the camel milk data of the model. DETAILED DESCRIPTION
[0027] The technical solutions described in the present invention, unless otherwise specified, are all conventional solutions in the art; the reagents or materials described, unless otherwise specified, are all from commercial channels.
[0028] 1. Experimental Materials
[0029] The experimental materials were healthy and disease-free Xinjiang Junggar Bactrian camels from five large-scale camel farms in northern Xinjiang, my country. A milk sample was collected from each camel, and a total of 215 valid milk samples were collected. The sampling work was carried out by experienced camel breeders. The camel milk house was first wiped with a disinfected towel, and then the udder was disinfected with an iodine-glycerol mixed solution. After squeezing out the first three handfuls of milk, the milk sample was collected. 100mL of each milk sample was collected (packed in 2 DHI sampling tubes), numbered in sequence, and Bulopol preservative was pre-added to each sampling bottle, and slowly shaken to fully dissolve it. One sample was stored at 4°C for the extraction of MIRS by mid-infrared spectrometer. Spectral data were collected twice for all camel milk samples. Another sample was stored at -20°C for subsequent chemical determination of the reference value of mineral content.
[0030] 2. Mid-infrared spectrum measurement and collection
[0031] The sample was poured into a cylindrical sample tube with a diameter of 3.5 cm and a height of 9 cm, and was bathed in a water bath at 42°C for 15-20 min. The solid optical fiber probe was extended into the liquid using the Fossomatic 5000basic 75710 milk composition detector from FOSS Company, and the sample was mixed and then scanned.
[0032] 3. Detection method of the true (reference) value of magnesium content in camel milk
[0033] 3.1 Instruments, equipment and reagents
[0034] Inductively coupled plasma emission spectrometer; analytical balance: sensitivity is 0.1mg and 1mg; constant temperature drying oven; temperature-controlled electric heating plate; muffle furnace; temperature-controlled electric heating furnace; homogenizer, high-speed pulverizer.
[0035] Nitric acid (HNO 3 ); Perchloric acid (HClO 4 ); Argon (Ar): ≥99.995%.
[0036] 3.2.1 Collection of mid-infrared spectra
[0037] Fossomatic 5000basic 75710 was used for spectrum acquisition. The specific acquisition steps were as follows: milk samples were placed in batches into a 45°C electric constant temperature water bath for preheating for 5 minutes. The preheated milk samples were placed on the detection rack and shaken up and down several times to mix the camel milk gel solution evenly. The detection rack was placed on the detection track, the bottle cap was opened, and the detection was carried out in sequence. Figure 1 The original mid-infrared spectrum (a) and the average spectrum (b) of camel milk sample.
[0038] 3.2.2 Determination of magnesium by inductively coupled plasma optical emission spectrometry
[0039] (1) Solution preparation: 1. Nitric acid solution (5+95): Take 50 mL of nitric acid, slowly add it into 950 mL of water, and mix well; 2. Nitric acid-perchloric acid (10+1): Take 10 mL of perchloric acid, slowly add it into 100 mL of nitric acid, and mix well; 3. Standard solution preparation: Accurately pipette an appropriate amount of single-element standard stock solution or multi-element mixed standard stock solution, and dilute it step by step with nitric acid solution (5+95) to prepare a series of mixed standard solutions.
[0040] (2) Wet digestion of sample: Accurately weigh 0.5 g to 5 g (accurate to 0.001 g) or accurately transfer 2.00 mL to 10.0 mL of sample into a glass container. For samples containing ethanol or carbon dioxide, first heat them on a hot plate at low temperature to remove the ethanol or carbon dioxide. Add 10 mL of a nitric acid-perchloric acid (10+1) mixed solution and digest on a hot plate or a graphite digestion device. If the digestion solution turns brown-black during the digestion process, add a small amount of mixed acid until white smoke is emitted and the digestion solution is colorless and transparent or slightly yellow. Cool it, make up to 25 mL or 50 mL with water, mix well and set aside. Perform a blank test at the same time.
[0041] (3) Preparation of standard curve: Inject the standard series working solutions into the inductively coupled plasma emission spectrometer, measure the intensity signal response value of the analysis spectrum line of the element to be measured, and draw a standard curve with the concentration of the element to be measured as the horizontal axis and the intensity response value of the analysis spectrum line as the vertical axis.
[0042] (4) Determination of sample solution: Inject the blank solution and sample solution into the inductively coupled plasma emission spectrometer respectively, measure the signal response value of the analysis line intensity of the element to be measured, and obtain the concentration of the element to be measured in the digestion solution according to the standard curve.
[0043] (5) Calculation of analysis results:
[0044] X=((ρ 0 -ρ 0 )×V×f) / m
[0045] Where:
[0046] X——The content of the element to be tested in the sample, in milligrams per kilogram or milligrams per liter (mg / kg or mg / L);
[0047] ρ——mass concentration of the element being measured in the sample solution, in milligrams per liter (mg / L);
[0048] ρ 0 --- mass concentration of the element being measured in the sample blank solution, in milligrams per liter (mg / L);
[0049] V——The constant volume of the sample digestion solution, in milliliters (mL);
[0050] f——sample dilution multiple;
[0051] m——The mass or volume of the sample taken, in grams or milliliters (g or mL).
[0052] The calculation result shall be rounded to three significant figures.
[0053] (6) Repeat the test twice for each sample and take the average value.
[0054] Embodiment 1:
[0055] Prediction model algorithm selection for magnesium in camel milk:
[0056] The purpose of this application is to establish a quantitative determination model of magnesium in camel milk, so the modeling algorithm used is a regression algorithm. There are many types of regression algorithms. This embodiment mainly uses the partial least squares regression (PLSR) algorithm to establish the model for the following reasons:
[0057] The PLSR algorithm is one of the most effective algorithms in multi-feature samples. Spectral features often have a strong linear correlation with the detected substance, so the algorithm that can better handle linear problems and occupy less computing resources becomes the first choice, among which PLSR is one of the most commonly used classical algorithms and the standard construction algorithm for the model used in FT-MIRS instruments. PLSR can better solve the problem of multicollinearity, associate the main components extracted from the features and target values, and use multivariate linear regression for model training to quickly obtain the optimal results, so this algorithm is selected in this embodiment.
[0058] Embodiment 2:
[0059] Preliminary screening of the mid-infrared spectroscopy model algorithm and its optimal preprocessing:
[0060] Effective feature screening is the basic operation of processing spectral data, the purpose is to eliminate noise, and lay a good foundation for extracting features. Effective feature screening mainly includes feature extraction, feature preprocessing and feature dimension reduction. The present embodiment mainly adopts 12 methods such as None (no preprocessing), MMS (normalization), SS (standardization), CT (mean centering), SNV (standard normal variable transformation), MA (moving average smoothing), SG (convolution smoothing), MSC (multiple scattering correction), D1 (first order derivative), D2 (second order derivative), DT (trend correction), WAVE (wavelet transform) to perform feature preprocessing on spectral data. Wherein MA uses a simple moving average window with a window width of 11, and the window size of SG is 13, and the polynomial order is 3.
[0061] In this embodiment, each sample corresponds to a piece of MIR spectrum data. The full spectrum band is substituted into the model to compare and analyze the accuracy of the model to determine the initial optimal preprocessing of the model. The results are as follows:
[0062] The comparison results are as follows:
[0063]
[0064] After comparison, it was found that the effect of magnesium pretreatment with D2 was better, and the training set results were higher. Although there was overfitting, this study will use the integrated pretreatment method. After the second pretreatment, the test set results have a large improvement and optimization space. Therefore, D2 was selected as the first pretreatment method.
[0065] Embodiment 3:
[0066] Establishment of a method for detecting magnesium content in camel milk using mid-infrared spectroscopy:
[0067] 1. Division of modeling data set
[0068]
[0069]
[0070] In the modeling data set division in this embodiment, 75% is the training set and 25% is the test set. The ratio of the training set to the test set is 3:1. During the model training process, 10-fold cross validation is performed, so the training set is also called the cross validation set.
[0071] 2. Manual selection process and determination of modeling feature bands
[0072] There are many methods for selecting feature bands, mainly including algorithmic feature selection and manual feature selection. The principle of algorithmic feature selection is mainly derived from the correlation between each wave point and the reference value. The advantages are fast speed and high efficiency, but the disadvantages are that it ignores the collinearity problem between adjacent wave points and the idea is relatively simple; the advantage of manual feature selection is that the role of the band (that is, adjacent wave points) can be strengthened during the selection process, and at the same time, the original information state of the spectrum can be retained more in the process of improving the model. It has stronger inclusiveness and generalization ability and accurate band selection. The disadvantages are slow selection speed and low efficiency.
[0073] This embodiment selects the characteristic band by manual selection, and the selection steps are as follows:
[0074] (1) Determine the initial optimal pretreatment. From Example 2, it can be seen that the initial pretreatment effect of D2 is better.
[0075] (2) Determine the optimal second pretreatment. During the modeling process, sometimes only one pretreatment will limit the generalization ability and optimization potential of the model. Integrated pretreatment has been shown to produce better results in the model building process. In the modeling process of this embodiment, it was found that a second pretreatment can better optimize the model. After comparison, it was found that the second pretreatment of phosphorus using SG can control the degree of overfitting as much as possible and reduce RMSE as much as possible, and there is still a large room for optimization, so phosphorus finally selected SG as the best second pretreatment method (the results are shown in the following table).
[0076]
[0077] The manual selection process of modeling feature bands is as follows:
[0078] (1) The whole band is segmented into 100 wave points per segment, and finally divided into 11 segments. According to the preliminary experiment, it is found that retaining some spectral regions related to water absorption can improve the accuracy of the model. Therefore, in this step, the spectral regions related to water absorption are not removed.
[0079] (2) Taking 50-80 wave points as a group, the PLSR algorithm is used to first increase or decrease a group of wave points at both ends of the critical point of the first band to find the optimal effect, and then perform similar operations on the second band based on this. Finally, the first traversal is completed after all 11 bands have completed a round of operations.
[0080] (3) After the first traversal is completed, perform a second, third, or more manual traversals until all wave points no longer change, which is the optimal characteristic band.
[0081] After twenty-seven rounds of screening, magnesium finally obtained the best result, as shown in the table:
[0082]
[0083] The final characteristic band selected for magnesium is: 925.92cm -1 —1084.098cm -1 ,1095.672cm -1 —1261.566cm -1 ,1412.028cm -1 —1469.898cm -1 ,1770.822cm -1 —1886.562cm -1 ,1990.728cm -1 —2075.604cm -1 ,2083.32cm -1 —2256.93cm -1 ,2272.362cm -1 —2472.978cm -1 ,2530.848cm -1 —2766.186cm -1 ,3113.406cm -1 —3244.578cm -1 ,3337.17cm -1 —3468.342cm -1 ,3587.94cm -1 —3780.84cm -1 ,3788.556cm -1 —3958.308cm -1 ,3993.03cm -1 —4124.202cm -1 ,4128.06cm -1 —4251.516cm -1 ,4382.688cm -1—4575.588cm -1 ,4837.932cm -1 —4922.808cm -1 A gap of two wave points is allowed before and after each segment. The results show that after adding the first segment of water absorption and part of the second segment of water absorption area to the model, the model can achieve the optimal effect, indicating that the characteristic band of magnesium in camel milk contains part of the water absorption area. Figure 2 To select the characteristic band spectral heat map and the corresponding spectral band position.
[0084] 3. Screening and determination of model parameters
[0085] The main parameters of the model are the parameters of the partial least squares regression algorithm: principal component (n_component). The comparison of parameter selection results is as follows (partial):
[0086]
[0087] According to the comparison results, the main component (n_component) of magnesium was finally selected as 13.
[0088] After comparative analysis, the best regression model for magnesium content in camel milk was: D2 (second-order difference) + SG (convolution smoothing, (W = 13, P = 3)) + PLSR (n_component = 13) model. The correlation coefficients of the training set and the test set were 0.8701 and 0.8510, respectively; the root mean square errors were 10.2508 and 10.3113, respectively; and the RPDs were 2.0291 and 1.9041, respectively. Figure 3 This is the correlation and fitted straight line graph of the true value and predicted value of the camel milk data of the model.
[0089] Embodiment 4:
[0090] Application of the mid-infrared spectroscopy rapid batch detection method for magnesium content in camel milk:
[0091] The established optimal regression model for magnesium in camel milk (D2 (second-order difference) + SG (convolution smoothing) + PLSR (n_component = 13)) was used to predict the test set data (10 displays were randomly selected), and the predicted results were compared with the true values.
[0092] 1. The characteristic band predicted by the mid-infrared spectrum of magnesium in the collected milk sample is: 925.92cm -1 —1084.098cm -1 ,1095.672cm -1 —1261.566cm -1 ,1412.028cm -1 —1469.898cm -1,1770.822cm -1 —1886.562cm -1 ,1990.728cm -1 —2075.604cm -1 ,2083.32cm -1 —2256.93cm -1 ,2272.362cm -1 —2472.978cm -1 ,2530.848cm -1 —2766.186cm -1 ,3113.406cm -1 —3244.578cm -1 ,3337.17cm -1 —3468.342cm -1 ,3587.94cm -1 —3780.84cm -1 ,3788.556cm -1 —3958.308cm -1 ,3993.03cm -1 —4124.202cm -1 ,4128.06cm -1 —4251.516cm -1 ,4382.688cm -1 —4575.588cm -1 ,4837.932cm -1 —4922.808cm -1 .
[0093] At the same time, the inductively coupled plasma emission method was used to detect the true value of magnesium content in camel milk.
[0094] 2. Substitute the MIR data obtained by the measurement into the optimal regression model of magnesium constructed in Example 3 (D2 (second-order difference) + SG (convolution smoothing, (W = 13, P = 3)) + PLSR (n_component = 13)), and the prediction result of the magnesium content in camel milk can be output.
[0095] The results predicted by the model are relatively close to the actual results (as shown in the following table), so the model has high accuracy and can be used to predict the magnesium content in camel milk.
[0096]
[0097]
Claims
1. A mid-infrared rapid batch detection method for magnesium content in camel milk, comprising the following steps:
1. The characteristic band predicted by the mid-infrared spectrum of magnesium in the collected milk sample is: 925.92cm -1 —1084.098cm -1 ,1095.672cm -1 —1261.566cm -1 ,1412.028cm -1 —1469.898cm -1 ,1770.822cm -1 —1886.562cm -1 ,1990.728cm -1 —2075.604cm -1 ,2083.32cm -1 —2256.93cm -1 ,2272.362cm -1 —2472.978cm -1 ,2530.848cm -1 —2766.186cm -1 ,3113.406cm -1 —3244.578cm -1 ,3337.17cm -1 —3468.342cm -1 ,3587.94cm -1 —3780.84cm -1 ,3788.556cm -1 —3958.308cm -1 ,3993.03cm -1 —4124.202cm -1 ,4128.06cm -1 —4251.516cm -1 ,4382.688cm -1 —4575.588cm -1 ,4837.932cm -1 —4922.808cm -1 ; 2. Substitute the MIR data obtained by the measurement into the regression model of second-order difference + convolution smoothing + partial least squares regression to output the predicted results of magnesium content in camel milk; The window size of the convolution smoothing is 13, the polynomial order is 3, and the principal component of the partial least squares regression is 13.
2. The method according to claim 1, characterized in that: For the characteristic band, a gap of two wave points is allowed before and after each section.
3. Application of the detection method according to claim 1 in camel milk quality detection.
4. The use according to claim 3, wherein the milk quality detection is a magnesium content detection.
Citation Information
Patent Citations
Intermediate infrared rapid batch detection method for content of free taurine in milk
CN114166781A
Intermediate infrared rapid batch detection method for content of free valine in milk
CN114166782A
Intermediate infrared rapid batch detection method for content of free methionine in milk
CN114166790A
