CN105466885B - Based on the near infrared online measuring method without measuring point temperature-compensating mechanism - Google Patents

Based on the near infrared online measuring method without measuring point temperature-compensating mechanism Download PDF

Info

Publication number
CN105466885B
CN105466885B CN201510824306.3A CN201510824306A CN105466885B CN 105466885 B CN105466885 B CN 105466885B CN 201510824306 A CN201510824306 A CN 201510824306A CN 105466885 B CN105466885 B CN 105466885B
Authority
CN
China
Prior art keywords
temperature
model
spectrum
value
infrared
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510824306.3A
Other languages
Chinese (zh)
Other versions
CN105466885A (en
Inventor
栾小丽
赵忠盖
刘飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangnan University
Original Assignee
Jiangnan University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangnan University filed Critical Jiangnan University
Priority to CN201510824306.3A priority Critical patent/CN105466885B/en
Publication of CN105466885A publication Critical patent/CN105466885A/en
Application granted granted Critical
Publication of CN105466885B publication Critical patent/CN105466885B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/17Systems in which incident light is modified in accordance with the properties of the material investigated
    • G01N21/25Colour; Spectral properties, i.e. comparison of effect of material on the light at two or more different wavelengths or wavelength bands
    • G01N21/31Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry
    • G01N21/35Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry using infrared light
    • G01N21/359Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry using infrared light using near infrared light

Landscapes

  • Physics & Mathematics (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Investigating Or Analysing Materials By Optical Means (AREA)

Abstract

本发明涉及基于无测点温度补偿机制的近红外光谱分析仪在线实时测量方法,包括设计多温度水平实验方案进行光谱采集,对采集的光谱以温度和待测物性参数为目标分别做预处理以及统计异常值处理,再用偏最小二乘分别建立温度预测模型、低温点物性参数预测模型以及高温点物性参数预测模型;然后从低温段或者高温段对不同温度水平下的预测模型进行修正计算;最后构造在线递归算法,完成具有无测点温度补偿功能的近红外实时在线测量。本发明将补偿效应包含到近红外建模过程中,并基于待测物性参数形成递归算法,从而可以依赖模型本身对温度的适应性完成不同温度下的物性测量。同时对物性参数的递归算法,保证了温度补偿作用可以自动适应温度对近红外在线测量值的影响强度。

The invention relates to a near-infrared spectrum analyzer online real-time measurement method based on a non-measuring point temperature compensation mechanism, including designing a multi-temperature level experiment scheme for spectrum collection, performing preprocessing on the collected spectrum with temperature and physical parameters to be measured as targets, and Statistical outlier processing, and then use partial least squares to establish a temperature prediction model, a low-temperature point physical parameter prediction model, and a high-temperature point physical parameter prediction model; then correct and calculate the prediction models at different temperature levels from the low-temperature section or high-temperature section; Finally, an online recursive algorithm is constructed to complete the near-infrared real-time online measurement with the function of temperature compensation without measuring point. The invention includes the compensation effect into the near-infrared modeling process, and forms a recursive algorithm based on the physical property parameters to be measured, so that the physical property measurement at different temperatures can be completed depending on the adaptability of the model itself to temperature. At the same time, the recursive algorithm for physical parameters ensures that the temperature compensation can automatically adapt to the influence of temperature on the near-infrared online measurement value.

Description

基于无测点温度补偿机制的近红外在线测量方法Near-infrared online measurement method based on temperature compensation mechanism without measuring point

技术领域technical field

本发明涉及无测点温度补偿机制的近红外光谱分析仪在线实时测量方法,适用于受环境温度影响的物性参数,如流体粘度、物质密度、成分浓度、食品品质、农产品成分、药品有效成分含量、汽油油品质量等的在线实时检测。The invention relates to an online real-time measurement method of a near-infrared spectrum analyzer without a temperature compensation mechanism at a measuring point, which is suitable for physical parameters affected by ambient temperature, such as fluid viscosity, material density, component concentration, food quality, agricultural product components, and drug active ingredient content , Gasoline oil quality and other online real-time detection.

背景技术Background technique

传统分析检测方法大都是采用离线测试技术,测定具有滞后性,一方面不能为生产和质检部门提供较全面、实时的样品信息,另一方面离线测量不可能实现计算机在线监测与实时控制的目的。而近红外光谱技术因其分析速度快、对样品破坏性小、无化学污染、几乎适合各类样品分析、多组分多通道同时测定等特点,成为在线分析仪表中的一个亮点。近几年,随着化学计量学、光纤和计算机技术的发展,在线近红外光谱分析技术正广泛应用于农业、食品、石油化工、纺织、医药等行业,为生产过程控制提供了十分广阔的使用空间,同时也为企业带来了可观的经济效益和社会效益。Most of the traditional analysis and detection methods use offline testing technology, and the measurement has a hysteresis. On the one hand, it cannot provide comprehensive and real-time sample information for the production and quality inspection departments. On the other hand, offline measurement cannot achieve the purpose of computer online monitoring and real-time control. . Near-infrared spectroscopy has become a bright spot in online analytical instruments because of its fast analysis speed, low damage to samples, no chemical pollution, almost suitable for analysis of various samples, and multi-component and multi-channel simultaneous determination. In recent years, with the development of chemometrics, optical fiber and computer technology, online near-infrared spectral analysis technology is widely used in agriculture, food, petrochemical, textile, pharmaceutical and other industries, providing a very broad application for production process control At the same time, it also brings considerable economic and social benefits to enterprises.

然而当近红外光谱分析仪用于在线测量时,测量结果会受环境因素的影响。研究表明,对于单一组分的近红外光谱,温度影响规律较为明显。对于复杂体系,温度对生物组织光学特性有较大影响;尤其在对液体样品测量时,温度的升高会导致伸缩振动的羟基数目减少而自由振动的数目增加,从而产生振动光谱的偏移,使得特定温度下建立的近红外光谱模型只能适用于该温度下的样品品质分析,而对于不同温度的样品品质的在线分析效果不理想,此缺点大大限制了近红外光谱分析仪实时在线测量技术的应用。因此,研究温度适应性强、精度高、鲁棒性好的实时在线测量方法,成为近红外技术能否有效在线应用的关键。However, when the near-infrared spectrum analyzer is used for online measurement, the measurement results will be affected by environmental factors. The research shows that for the near-infrared spectrum of a single component, the influence of temperature is more obvious. For complex systems, temperature has a great influence on the optical properties of biological tissues; especially when measuring liquid samples, the increase in temperature will lead to a decrease in the number of stretching vibration hydroxyl groups and an increase in the number of free vibrations, resulting in a shift in the vibration spectrum. The near-infrared spectrum model established at a specific temperature can only be applied to the analysis of sample quality at this temperature, and the online analysis of sample quality at different temperatures is not ideal. This shortcoming greatly limits the real-time online measurement technology of the near-infrared spectrum analyzer. Applications. Therefore, the study of real-time online measurement methods with strong temperature adaptability, high precision, and good robustness has become the key to the effective online application of near-infrared technology.

发明内容Contents of the invention

本发明提出的方法,是针对近红外实时测量时,被测对象的温度变化不可测量或没有测量,而温度本身的变化又会对近红外的测量结果有明显影响的情况。提供一种对温度不敏感,且误差较小的具有温度补偿机制的在线测量方法。The method proposed by the present invention is aimed at the situation that the temperature change of the measured object cannot be measured or is not measured during the near-infrared real-time measurement, and the change of the temperature itself will have a significant impact on the near-infrared measurement result. An online measurement method with a temperature compensation mechanism that is insensitive to temperature and has a small error is provided.

本发明为实现上述目的,采用如下技术方案:In order to achieve the above object, the present invention adopts the following technical solutions:

本发明步骤分为三个部分。第一部分,建模数据的实验设计和光谱收集;第二部分,近红外光谱的预处理和校正模型的建立;第三部分,构造在线的递归算法,完成具有无测点温度补偿功能的近红外在线测量。The steps of the present invention are divided into three parts. The first part is the experimental design and spectrum collection of the modeling data; the second part is the preprocessing of the near-infrared spectrum and the establishment of the correction model; the third part is the construction of an online recursive algorithm to complete the near-infrared online measurement.

建模数据的实验设备包括,(1)可对样品温度进行调节的样品池(2)可显示温度变化的温度测量器(3)近红外光谱收集仪器(4)不对样品温度产生明显影响的光学探头。(5)和近红外光谱收集仪器连接的计算机记录装置。整套装置如图1所示。The experimental equipment for modeling data includes, (1) a sample cell that can adjust the sample temperature (2) a temperature measurer that can display temperature changes (3) a near-infrared spectrum collection instrument (4) an optical sensor that does not significantly affect the sample temperature probe. (5) A computer recording device connected to the near-infrared spectrum collection instrument. The whole set of equipment is shown in Figure 1.

本发明实验和数据收集步骤如下:Experiment of the present invention and data collection steps are as follows:

实验步骤一:确认样品在线条件下最大和最小温度值。把温度范围分为多个水平值。每个温度水平一般要大于温度测量仪器分辨率5倍,以达到有效区分精度。Experimental step 1: Confirm the maximum and minimum temperature values of the sample under online conditions. Divide the temperature range into levels. Each temperature level is generally 5 times larger than the resolution of the temperature measuring instrument to achieve effective discrimination accuracy.

实验步骤二:确定样品实时条件下的温度范围。在规定的标准温度下,对所有样品物性参数取得原始标准分析数据。Experimental step two: determine the temperature range of the sample under real-time conditions. At the specified standard temperature, obtain the original standard analysis data for all sample physical parameters.

实验步骤三:对同一个样品在不同温度水平下分别收集光谱数据。同时记录相对应的样品温度值。此温度值用于温度校正模型的建立。Experimental step 3: Collect spectral data for the same sample at different temperature levels. At the same time record the corresponding sample temperature value. This temperature value is used in the establishment of the temperature correction model.

温度作为显式因素变量建模步骤如下:The steps for modeling temperature as an explicit factor variable are as follows:

建模步骤一:对光谱进行以温度模式为目标的预处理:将原始光谱做一阶导数或二阶导数运算,产生一阶导数光谱或者二阶导数光谱。此处导数阶次的确定随物性参数的特性而有所不同,对高分子高粘度样品,以二阶导数为较佳;对低粘度样品以一阶导数为较佳。Modeling step 1: Preprocessing the spectrum with the temperature model as the target: perform the first derivative or second derivative operation on the original spectrum to generate the first derivative spectrum or the second derivative spectrum. Here, the determination of the derivative order varies with the characteristics of the physical parameters. For high-molecular high-viscosity samples, the second-order derivative is better; for low-viscosity samples, the first-order derivative is better.

建模步骤二:对上面产生的导数光谱做主元分析(PCA),剔除统计异常值,使得整个导数光谱数据的主元模式都在一个统计可信度之内。Modeling step 2: Perform principal component analysis (PCA) on the derivative spectrum generated above, and remove statistical outliers, so that the principal component mode of the entire derivative spectrum data is within a statistical reliability.

建模步骤三:以温度作为预测变量,导数光谱波数作为自变量。用偏最小二乘算法(PLS)建立如下形式的温度校正模型:Modeling step three: temperature is used as the predictor variable, and the derivative spectral wavenumber is used as the independent variable. A temperature correction model of the following form is established using the partial least squares algorithm (PLS):

Tc=A1x1+A2x2+…Anxn T c =A 1 x 1 +A 2 x 2 +...A n x n

此处,Ai,i=1,2,…n是回归系数,xi是导数光谱在波数i=1,2,…n处的数值。Here, A i , i=1, 2,...n are regression coefficients, and xi is the value of the derivative spectrum at wavenumbers i=1, 2,...n.

建模步骤四:对原始光谱进行以待测物性参数模式为目标的预处理。这些预处理包括一种或几种以下算法的叠加运算:一阶导数,二阶导数,最大-最小标准化,基础底线校正,散射校正,常数偏置校正,等等。此处预处理算法的确定以待测物性参数而异。Modeling step 4: Preprocessing the original spectrum with the target physical parameter model as the target. These pretreatments include one or more superposition operations of the following algorithms: first derivative, second derivative, max-min normalization, base baseline correction, scatter correction, constant bias correction, etc. The determination of the preprocessing algorithm here varies with the physical parameters to be measured.

建模步骤五:对上面产生的预处理后光谱做主元分析(PCA),剔除统计异常值,使得整个预处理后的光谱数据主元模式都在一个统计可信度之内。Modeling step 5: Perform principal component analysis (PCA) on the preprocessed spectrum generated above, and remove statistical outliers, so that the principal component mode of the entire preprocessed spectral data is within a statistical reliability.

建模步骤六:选取最低实验温度所对应的光谱数据组,以待测物性参数作为预测变量,预处理后光谱波数作为自变量。用偏最小二乘算法(PLS)建立如下形式的低温物性参数校正模型:Modeling step 6: Select the spectral data set corresponding to the lowest experimental temperature, use the physical parameters to be measured as predictive variables, and preprocess the spectral wavenumber as an independent variable. The correction model of low temperature physical property parameters in the following form is established by partial least squares algorithm (PLS):

Pl=C1z1+C2z2+…Cnzn P l =C 1 z 1 +C 2 z 2 +…C n z n

此处,Ci,i=1,2,…n是回归系数,zi是预处理后光谱在波数i=1,2,…n处的数值。Here, C i , i=1, 2, . . . n are regression coefficients, zi is the value of the preprocessed spectrum at wavenumbers i=1, 2, . . . n.

建模步骤七:选取最高实验温度所对应的光谱数据组,以待测物性参数作为预测变量,预处理后光谱波数作为自变量。用偏最小二乘算法(PLS)建立如下形式的高温物性参数校正模型:Modeling step 7: Select the spectral data set corresponding to the highest experimental temperature, use the physical parameters to be measured as predictive variables, and preprocess the spectral wavenumber as an independent variable. Using the partial least squares algorithm (PLS) to establish the following form of high temperature physical property parameter correction model:

Ph=B1y1+B2y2+…Bnyn P h =B 1 y 1 +B 2 y 2 +...B n y n

此处,Bi,i=1,2,…n是回归系数,yi是预处理后光谱在波数i=1,2,…n处的数值。Here, B i , i=1, 2,...n are regression coefficients, and y i is the value of the preprocessed spectrum at wavenumbers i=1, 2,...n.

建模步骤八:构造下列基于低温模型预测值在任何温度下的物性参数公式:Modeling step 8: Construct the following physical property parameter formulas at any temperature based on the predicted values of the low temperature model:

Pc=Pl+{(Pl0-Ph0)/(Tl-Th)}×(Tc-Tl)P c =P l +{(P l0 -P h0 )/(T l -T h )}×(T c -T l )

此处Pl0,Ph0分别是同一个样品在低温模型和高温模型的最低温点和最高温点的模型预测值。Th,Tl分别是实验的最高和最低温度点的温度模型预测值,Pc是在温度Tc下的物性测量值。Here, P l0 and P h0 are the model prediction values of the lowest and highest temperature points of the same sample in the low temperature model and the high temperature model, respectively. T h and T l are the predicted values of the temperature model at the highest and lowest temperature points of the experiment, respectively, and P c is the measured value of physical properties at the temperature T c .

同样地可以构造下列基于高温模型预测值的在任何温度下的物性参数公式:Similarly, the following physical property parameter formulas at any temperature can be constructed based on the predicted values of the high temperature model:

Pc=Ph-{(Pl0-Ph0)/(Tl-Th)}×(Th-Tc)P c =P h -{(P l0 -P h0 )/(T l -T h )}×(T h -T c )

建模步骤九:在线获取新的光谱数据集,利用下述方法构成递归修正算法:Modeling Step Nine: Obtain a new spectral data set online, and use the following method to form a recursive correction algorithm:

(1)以上述步骤六所得结果作为当前值P(k)(1) Take the result obtained in the above step 6 as the current value P(k)

(2)计算下一步测量:Pr(k+1)=P(k)+K[L(k-1)-P(k-1)](2) Calculate the next measurement: P r (k+1)=P(k)+K[L(k-1)-P(k-1)]

(3)将当前修正后的预测值Pr(k)赋值给上一时刻的测量值P(k-1),重复以上步骤,做递归运算。(3) Assign the current corrected predicted value P r (k) to the measured value P(k-1) at the previous moment, repeat the above steps, and perform recursive operations.

此处Pr(k)是当前的具有温度补偿的近红外物性测量修正值,P(k-1)是上一步没有修正的近红外物性测量值,L(k-1)是上次计算所用的实际物性参数值,K为修正因子或数字滤波器。Here P r (k) is the current correction value of the near-infrared physical property measurement with temperature compensation, P(k-1) is the measured value of the near-infrared physical property without correction in the previous step, and L(k-1) is the value used in the last calculation The actual physical property parameter value, K is the correction factor or digital filter.

上述建模步骤九中,修正因子或低阶滤波器,可以是更较一般的统计判断和逻辑判断,或者是两者的组合。In the above ninth modeling step, the correction factor or the low-order filter can be a more general statistical judgment and logical judgment, or a combination of the two.

上述建模步骤九中,在每一步计算时,所用物性参数校正模型可以是由更新的光谱数据重新产生。整个计算算法构成递归的形式。In the above-mentioned modeling step nine, in each step of calculation, the physical parameter correction model used can be regenerated from the updated spectral data. The entire calculation algorithm constitutes a recursive form.

所发明的方法,将温度补偿效应包含到近红外建模过程中,并基于待测物性参数形成递归算法。因而使用近红外进行实时在线测量时,可以依赖模型本身对温度的适应性完成不同温度下的物性测量,不需要直接温度测量信息和相关计算。同时,对物性参数的递归算法,保证了温度补偿作用可以自动适应温度对近红外在线测量值的影响强度。The invented method includes the temperature compensation effect into the near-infrared modeling process, and forms a recursive algorithm based on the physical parameters to be measured. Therefore, when near-infrared is used for real-time online measurement, the physical property measurement at different temperatures can be completed relying on the adaptability of the model itself to temperature, without direct temperature measurement information and related calculations. At the same time, the recursive algorithm for physical parameters ensures that the temperature compensation can automatically adapt to the influence of temperature on the near-infrared online measurement value.

附图说明Description of drawings

图1无测点温度补偿实验装置Figure 1 Temperature compensation experimental device without measuring point

图2一种高分子材料的二阶导数局部光谱Fig.2 The local spectrum of the second derivative of a polymer material

图3二阶导数光谱所产生的主元素模式图Figure 3 The principal element pattern generated by the second derivative spectrum

图4高分子聚合物的温度预测模型Figure 4 Temperature prediction model of polymer

图5一种高分子聚合物的一阶导数预处理局部光谱Fig.5 The first derivative preprocessing local spectrum of a high molecular weight polymer

图6一种高分子聚合物的预处理光谱主元素模式图Fig. 6 The main element pattern diagram of the pretreatment spectrum of a polymer

图7高分子聚合物粘度低温点预测模型Figure 7 Prediction model of low temperature point of polymer viscosity

图8高分子聚合物粘度低温点预测模型所用的建模波数Figure 8 Modeling wavenumbers used in the prediction model for the low temperature point of polymer viscosity

图9高分子聚合物粘度高温点预测模型Figure 9 Prediction model of high temperature point of polymer viscosity

图10高分子聚合物粘度高温点预测模型所用的建模波数Figure 10 The modeling wavenumber used in the prediction model of high temperature point of polymer viscosity

图11在线实施框图Figure 11 Block diagram of online implementation

图12温度实测和模型预测值的比较Figure 12 Comparison of measured and model predicted values of temperature

图13一种高分子聚合物粘度实时测量温度补偿的效果Figure 13 The effect of temperature compensation on real-time measurement of the viscosity of a polymer

具体实施方式detailed description

以下以一种高分子化合物的粘度测量为例,说明具体实施方法。这个示例不构成对本发明方法的范围限制。The following takes the viscosity measurement of a polymer compound as an example to illustrate the specific implementation method. This example does not constitute a limitation on the scope of the method of the present invention.

实施步骤框图如图11所示。The block diagram of the implementation steps is shown in Figure 11.

步骤1:在不同在线条件下采集样品,要保证样品的待测物性参数可以覆盖测量要求的范围。样品总数在40-60个。Step 1: Collect samples under different online conditions, and ensure that the physical parameters of the samples to be measured can cover the range required for measurement. The total number of samples is 40-60.

步骤2:利用图1所示的实验室设备,分别在24℃、35℃、50℃、60℃、70℃五个不同温度水平下采集各个样品的近红外光谱,同时记录实验温度。Step 2: Using the laboratory equipment shown in Figure 1, collect the near-infrared spectra of each sample at five different temperature levels of 24°C, 35°C, 50°C, 60°C, and 70°C, and record the experimental temperature at the same time.

步骤3:对所采集的光谱做预处理和主元分析。对光谱进行不同的预处理并做比较,以决定最后适用的预处理方法。示例中,对高分子高粘性样品进行了二阶导数处理。处理效果如图2所示。对原始光谱的二阶导数预处理,消除了由近红外光源老化,在线样品和探头的接触度或探头震动引起的光谱上下漂移,同时可以保持温度变化带来的光谱峰值和形状的变化。二阶导数光谱所产生的主元素模式如图3所示,剔除其中一个奇异点,让整个光谱数据主元模式在统计可信度之内。Step 3: Perform preprocessing and principal component analysis on the collected spectra. Different preprocessing methods are performed on the spectra and compared to determine the final suitable preprocessing method. In the example, the second derivative processing is performed on a high-molecular high-viscosity sample. The processing effect is shown in Figure 2. The second-order derivative preprocessing of the original spectrum eliminates the up-and-down drift of the spectrum caused by the aging of the near-infrared light source, the contact between the online sample and the probe, or the vibration of the probe, while maintaining the spectral peak and shape changes caused by temperature changes. The principal element pattern generated by the second-order derivative spectrum is shown in Figure 3, and one of the singular points is eliminated, so that the principal element pattern of the entire spectral data is within the statistical reliability.

步骤4:建立样品温度的近红外预测模型。这个模型将直接从光谱中获取样品的温度值。图4是温度模型示例,采用建模波段为7397-6880cm-1和5299-4558cm-1。图12是温度实测和模型预测值的比较,从图中可以看出温度模型预测值与实测值的相关性为0.99,模型精度R2为0.98。Step 4: Establish a near-infrared prediction model for the sample temperature. This model will take the temperature value of the sample directly from the spectrum. Figure 4 is an example of a temperature model, using the modeling bands of 7397-6880cm -1 and 5299-4558cm -1 . Figure 12 is a comparison of the measured temperature and the model predicted value. It can be seen from the figure that the correlation between the temperature model predicted value and the measured value is 0.99, and the model accuracy R2 is 0.98.

步骤5:对原始光谱进行以待测物性参数模式为目标的一阶预处理以及做主元分析(PCA),剔除统计异常值,使得整个预处理后的光谱数据主元模式都在一个统计可信度之内。图5是一种高分子聚合物一阶导数预处理局部光谱。图6是一种高分子聚合物的预处理光谱PCA模式图。Step 5: Carry out first-order preprocessing and principal component analysis (PCA) on the original spectrum with the target physical parameter mode as the target, and remove statistical outliers, so that the principal component mode of the entire preprocessed spectral data is in a statistically credible within degrees. Fig. 5 is a partial spectrum of a polymer first derivative pretreatment. Fig. 6 is a PCA model diagram of a pretreatment spectrum of a polymer.

步骤6:分别建立低温和高温点的近红外预测模型。如图7和图9分别是低温和高温模型结果。以下图8和图10是所用的建模光谱波数范围示例。选择图8中所示的波段范围8900-4497cm-1建模得到低温模型图7,选择图10中所示的波段范围8955-4497cm-1建模得到高温模型图9。从图7中可以看出低温模型预测值与实测值的相关性为0.991,模型精度R2为0.98。从图9中可以看出高温模型预测值与实测值的相关性为0.988,模型精度R2为0.9772。Step 6: Establish near-infrared prediction models for low temperature and high temperature points respectively. Figure 7 and Figure 9 are the low temperature and high temperature model results respectively. Figures 8 and 10 below are examples of the modeled spectral wavenumber ranges used. Select the waveband range 8900-4497cm -1 shown in Figure 8 to model to obtain the low-temperature model Figure 7, and select the waveband range 8955-4497cm -1 shown in Figure 10 to model to obtain the high-temperature model Figure 9. It can be seen from Figure 7 that the correlation between the predicted value of the low temperature model and the measured value is 0.991, and the model precision R2 is 0.98. It can be seen from Figure 9 that the correlation between the predicted value of the high temperature model and the measured value is 0.988, and the model precision R2 is 0.9772 .

步骤7:注意所建立的低温近红外物性参数模型,在低温段是较准确的。而高温近红外物性参数模型在高温段是较准确的。可以从低温段或高温段不同方向进行修正计算。Step 7: Note that the established low-temperature near-infrared physical parameter model is more accurate in the low-temperature section. However, the high-temperature near-infrared physical parameter model is more accurate in the high-temperature section. The correction calculation can be performed from different directions of the low temperature section or the high temperature section.

从低温段基于低温模型预测值在任何温度下的物性参数公式如下:The formulas of the physical property parameters at any temperature based on the prediction value of the low temperature model from the low temperature section are as follows:

Pc=Pl+{(Pl0-Ph0)/(Tl-Th)}×(Tc-Tl)P c =P l +{(P l0 -P h0 )/(T l -T h )}×(T c -T l )

此处Pl0,Ph0分别是同一个样品在低温模型和高温模型的最低温点和最高温点的模型预测值。Th,Tl分别是实验的最高和最低温度点的温度模型预测值,Pc是在温度Tc下的物性测量值。Here, P l0 and P h0 are the model prediction values of the lowest and highest temperature points of the same sample in the low temperature model and the high temperature model, respectively. T h and T l are the predicted values of the temperature model at the highest and lowest temperature points of the experiment, respectively, and P c is the measured value of physical properties at the temperature T c .

步骤8:在线获取10个新的光谱数据集,并同时获取对应的实验室原始数据。Step 8: Obtain 10 new spectral data sets online, and obtain the corresponding laboratory raw data at the same time.

步骤9:计算过去10个样品的误差E(k)=L(k)-P(k),并形成一个误差时间序列Step 9: Calculate the error E(k)=L(k)-P(k) for the past 10 samples and form an error time series

E(k-1),E(k-2),…E(k-10)。E(k-1), E(k-2),...E(k-10).

步骤10:对上述误差时间序列做低通动态滤波运算,取得一步预测值,记为B。Step 10: Perform a low-pass dynamic filtering operation on the above error time series to obtain a one-step forecast value, denoted as B.

步骤11:计算粘度校正测量值:Pr=P+BStep 11: Calculate Viscosity Corrected Measurements: P r =P+B

此处P是当前具有温度补偿的近红外物性测量值。Here P is the current measured value of near-infrared physical properties with temperature compensation.

步骤12:将当前的修正值Pr(k)赋值给上一时刻的测量值P(k-1),做递归运算。Step 12: assign the current correction value P r (k) to the measured value P(k-1) at the previous moment, and perform recursive operation.

重复以上步骤8-12。Repeat steps 8-12 above.

图13所示图例,是一个高分子聚合物粘度实时测量温度补偿的效果示例,样品温度变化范围在20-70摄氏度左右,所要求测量数值为样品在50摄氏度下的粘度值。固定温度模型是基于50度温度下建立的物性测量模型,其测量值对温度有较强的敏感性。本发明方法所得结果,对温度变化不敏感。更因为采用了递归算法,使得测量整体较好地符合样品的真实分析值。The legend shown in Figure 13 is an example of the effect of temperature compensation for real-time measurement of polymer viscosity. The temperature range of the sample is about 20-70 degrees Celsius, and the required measurement value is the viscosity value of the sample at 50 degrees Celsius. The fixed temperature model is based on a physical property measurement model established at a temperature of 50 degrees, and its measured values are highly sensitive to temperature. The result obtained by the method of the present invention is insensitive to temperature changes. Furthermore, because the recursive algorithm is adopted, the measurement as a whole is better in line with the real analytical value of the sample.

Claims (6)

1. a kind of existed based on the near-infrared spectrometers On-line sampling system method without measuring point temperature-compensating mechanism, its feature In comprising the following steps:
Step 1:The physical parameter measured value of testing sample is obtained, and near infrared spectrum is gathered under different temperatures level;
Step 2:The near infrared spectrum gathered in step 1 is carried out using temperature as the pretreatment of target and counted at exceptional value Reason, produce derivative spectrum;
Step 3:Using temperature as predictive variable, derivative spectrum wave number caused by step 2 establishes temperature mould as independent variable Type;
Step 4:The near infrared spectrum gathered in step 1 is carried out abnormal as the pretreatment of target and statistics using physical parameter Value processing, produces pre-processed spectrum;
Step 5:The data group corresponding to minimum experimental temperature is chosen, using physical parameter measured value as predictive variable, step 4 Caused pre-processed spectrum wave number is independent variable, establishes the geophysical parameter prediction model of low temperature point;
Step 6:Choose the data group corresponding to highest experimental temperature, using physical parameter measured value as predictive variable, step 4 Caused pre-processed spectrum wave number is independent variable, establishes the geophysical parameter prediction model of high temperature dot;
Step 7:Calculating is modified to forecast model of the different temperatures under horizontal from low temperature point or high temperature dot, amendment is any At a temperature of geophysical parameter prediction model;
Step 8:New near infrared spectrum collection is obtained online, and physical parameter measured value is updated using online recursive algorithm,
Online recursive algorithm is described in step 8:
Pr (k+1)=Pr (k)+K [L (k-1)-P (k-1)]
Wherein Pr (k+1) is the measurement correction value that subsequent time has temperature-compensating, and Pr (k) is that have temperature-compensating at current time Measurement correction value, P (k-1) is the physical parameter measured value of last moment, and L (k-1) is the actual physical property used in last computation Reference value, K are modifying factor or lower order filter.
It is 2. according to claim 1 based on the near-infrared spectrometers On-line sampling system without measuring point temperature-compensating mechanism Method, it is characterised in that:The foundation of temperature model carries out linear regression using offset minimum binary:
Tc=A1x1+A2x2+ ... Anxn
Herein, Ai, i=1,2 ... n are regression coefficients, and xi is the numerical value at the wave number i=1,2 ... n of derivative spectrum.
It is 3. according to claim 1 based on the near-infrared spectrometers On-line sampling system without measuring point temperature-compensating mechanism Method, it is characterised in that:The foundation of low temperature point geophysical parameter prediction model is entered using partial least squares algorithm in the step 5 The following linear regression of row:
Pl=C1z1+C2z2+ ... Cnzn
Herein, Ci, i=1,2 ... n are regression coefficients, and zi is numerical value of the pre-processed spectrum at wave number i=1,2 ... n.
It is 4. according to claim 1 based on the near-infrared spectrometers On-line sampling system without measuring point temperature-compensating mechanism Method, it is characterised in that:The foundation of the model of high temperature dot geophysical parameter prediction described in step 6 is entered using partial least squares algorithm The following linear regression of row:
Ph=B1y1+B2y2+ ... Bnyn
Herein, Bi, i=1,2 ... n are regression coefficients, and yi is numerical value of the pre-processed spectrum at wave number i=1,2 ... n.
It is 5. according to claim 1 based on the near-infrared spectrometers On-line sampling system without measuring point temperature-compensating mechanism Method, it is characterised in that:Model described in step 7 is from low temperature point correction algorithm:
Pc=Pl+ { (Pl0-Ph0)/(Tl-Th) } × (Tc-Tl)
Pl0 herein, Ph0 are model of the same sample in the minimum warm spot and highest warm spot of low-temperature model and high temperature model respectively Predicted value, Th, Tl are the highest of experiment and the temperature model predicted value of minimum temperature point respectively, and Pc is the physical property under temperature Tc Measured value, Pl are the physical parameter measured values of low temperature point.
It is 6. according to claim 1 based on the near-infrared spectrometers On-line sampling system without measuring point temperature-compensating mechanism Method, it is characterised in that:Model described in step 7 is from high temperature dot correction algorithm:
Pc=Ph- { (Pl0-Ph0)/(Tl-Th) } × (Th-Tc)
Pl0 herein, Ph0 are model of the same sample in the minimum warm spot and highest warm spot of low-temperature model and high temperature model respectively Predicted value, Th, Tl are the highest of experiment and the temperature model predicted value of minimum temperature point respectively, and Pc is the physical property under temperature Tc Measured value, Ph are the physical parameter measured values of high temperature dot.
CN201510824306.3A 2015-11-24 2015-11-24 Based on the near infrared online measuring method without measuring point temperature-compensating mechanism Active CN105466885B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510824306.3A CN105466885B (en) 2015-11-24 2015-11-24 Based on the near infrared online measuring method without measuring point temperature-compensating mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510824306.3A CN105466885B (en) 2015-11-24 2015-11-24 Based on the near infrared online measuring method without measuring point temperature-compensating mechanism

Publications (2)

Publication Number Publication Date
CN105466885A CN105466885A (en) 2016-04-06
CN105466885B true CN105466885B (en) 2018-02-23

Family

ID=55604818

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510824306.3A Active CN105466885B (en) 2015-11-24 2015-11-24 Based on the near infrared online measuring method without measuring point temperature-compensating mechanism

Country Status (1)

Country Link
CN (1) CN105466885B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109406448A (en) * 2018-10-25 2019-03-01 四川长虹电器股份有限公司 Infrared spectrometer
CN109902972A (en) * 2019-03-31 2019-06-18 深圳广田集团股份有限公司 The pre-evaluation method of content of formaldehyde in a kind of indoor environment
CN111713746B (en) * 2020-06-08 2024-03-15 深圳市康泓威科技有限公司 Method for detecting and controlling solution temperature of electronic atomization device and electronic atomization device
CN111579528B (en) * 2020-06-30 2022-06-21 四川长虹电器股份有限公司 Calibration method of micro near-infrared spectrometer

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103426167A (en) * 2013-07-09 2013-12-04 哈尔滨工程大学 Hyperspectral real-time detection method based on recursive analysis
CN104732215A (en) * 2015-03-25 2015-06-24 广西大学 Remote-sensing image coastline extracting method based on information vector machine

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103426167A (en) * 2013-07-09 2013-12-04 哈尔滨工程大学 Hyperspectral real-time detection method based on recursive analysis
CN104732215A (en) * 2015-03-25 2015-06-24 广西大学 Remote-sensing image coastline extracting method based on information vector machine

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
Assessing the temperature influence on the soluble solids content of watermelon juice as measured by visible and near-infrared spectroscopy and chemometrics;Yang Yao 等;《Journal of Food Engineering》;20130531;第119卷(第1期);第22-27页 *
Influence and correction of temperature on optical measurement for fat and protein contents in a complex food model system;Xuedian Zhang 等;《Infrared Physics & Technology》;20091130;第53卷(第3期);第177-181页 *
Prediction of titratable acidity, malic acid, and citric acid in bayberry fruit by near-infrared spectroscopy;Lijuan Xie 等;《Food Research International》;20111231;第44卷(第7期);第2198-2204页 *
苹果糖度近红外光谱分析模型的温度补偿;王加华 等;《光谱学与光谱分析》;20090630;第29卷(第6期);第1517-1520页 *

Also Published As

Publication number Publication date
CN105466885A (en) 2016-04-06

Similar Documents

Publication Publication Date Title
CN105300923B (en) Without measuring point model of temperature compensation modification method during a kind of near-infrared spectrometers application on site
CN105486658B (en) A kind of near-infrared physical parameter measurement method with no measuring point temperature compensation function
Bian et al. A selective ensemble preprocessing strategy for near-infrared spectral quantitative analysis of complex samples
Huang et al. Improved generalization of spectral models associated with Vis-NIR spectroscopy for determining the moisture content of different tea leaves
CN110161013B (en) Laser-induced breakdown spectroscopy data processing method and system based on machine learning
Ye et al. Non-destructive prediction of protein content in wheat using NIRS
CN118425098B (en) Distributed laser methane detection method and system
CN105466885B (en) Based on the near infrared online measuring method without measuring point temperature-compensating mechanism
CN105092519B (en) Sample component assay method based on increment PLS
Kalivas Multivariate calibration, an overview
Shah et al. A feature-based soft sensor for spectroscopic data analysis
CN116985183B (en) Quality monitoring and management method and system for near infrared spectrum analyzer
CN105259136B (en) Near infrared correction without measuring point temperature correction
CN109557080A (en) A kind of spectroscopic data homing method based on machine learning
Liang et al. Study of sample temperature compensation in the measurement of soil moisture content
CN119354911A (en) Rubber additive composition analysis and quality control method and system based on infrared spectroscopy
CN106872397A (en) A kind of method based on existing calibration model quick detection agricultural product chemical constituent
CN105300924A (en) Measuring point-free compensation modeling method of near infrared calibration model under effect of temperature
CN114441469A (en) Calibration method and device of moisture meter and computer equipment
CN109521002A (en) A kind of fuel characteristic measurement method of solid fuel particle stream
CN105259135B (en) Suitable for real-time online without measuring point temperature-compensating near-infrared measuring method
Mei et al. Study of an adaptable calibration model of near-infrared spectra based on KF-PLS
Wang et al. A low-cost calibration method for the infrared sensor array for quantitative analysis of natural gas
CN114375393A (en) Normalize the output of an electrical property sensor using a reference magnitude obtained by an optical spectrometer
Sun et al. Enhanced Potassium Ion Electrochemical Measurement Using Signals Augmentation and Crucial Features-focusing

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant