[go: up one dir, main page]

CN113204879B - An improved Hankel matrix prediction model modeling method based on fluorescent oil film and its application - Google Patents

An improved Hankel matrix prediction model modeling method based on fluorescent oil film and its application Download PDF

Info

Publication number
CN113204879B
CN113204879B CN202110493888.7A CN202110493888A CN113204879B CN 113204879 B CN113204879 B CN 113204879B CN 202110493888 A CN202110493888 A CN 202110493888A CN 113204879 B CN113204879 B CN 113204879B
Authority
CN
China
Prior art keywords
data
prediction
prediction model
error
hankel matrix
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.)
Expired - Fee Related
Application number
CN202110493888.7A
Other languages
Chinese (zh)
Other versions
CN113204879A (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.)
Xihua University
Original Assignee
Xihua 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 Xihua University filed Critical Xihua University
Priority to CN202110493888.7A priority Critical patent/CN113204879B/en
Publication of CN113204879A publication Critical patent/CN113204879A/en
Application granted granted Critical
Publication of CN113204879B publication Critical patent/CN113204879B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2119/00Details relating to the type or aim of the analysis or the optimisation
    • G06F2119/14Force analysis or force optimisation, e.g. static or dynamic forces

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a modeling method and application of an improved Hankel matrix prediction model based on a fluorescent oil film, wherein the modeling method comprises the following steps: establishing a basic Hankel matrix prediction model; establishing an error correction prediction model according to the processing of the prediction value and the error value of the basic prediction model; and determining an improved Hankel matrix prediction model according to the prediction condition of the error correction prediction model. The modeling method can effectively solve the problems of tedious acquisition steps, time consumption and labor consumption of relation data of the gray scale of the fluorescent oil film image and the oil film thickness, more accurate data can be obtained through accurate prediction of extremely few acquired data, the complex operation of data acquisition is avoided, and a large amount of time and tool equipment are saved.

Description

一种基于荧光油膜的改进Hankel矩阵预测模型建模方法及 应用An improved Hankel matrix prediction model modeling method based on fluorescent oil film and its application

技术领域technical field

本发明涉及荧光油膜厚度与其图像灰度值的建模方法的技术领域。The invention relates to the technical field of a modeling method for fluorescent oil film thickness and its image gray value.

背景技术Background technique

表面摩擦阻力(简称表面摩阻)为空气动力学中最为重要的物理量之一,是航空器飞行时所受总阻力的重要组成部分,其能很好的描述湍流边界层的状态,是最难确定的物理量之一。降低摩阻不仅能降低飞行器的油耗和提高飞行器续航时长,对超音速飞行器还意味着其表面热流降低,防热材质重量减少,有效载荷增加。经现有研究表明,新型民航客机稳定运行时其表面摩阻约占总阻力的一半,远超其他阻力因素而占据主导地位;而对现中国研制的超音速飞行器,其表面摩阻最大可占总阻力的50%以上,严重影响超音速飞行器运行的稳定性,也直接关系到飞行器的使用寿命。因此降低表面摩阻对改善飞行器性能、降低成本以及节省能源有着重要的意义。Surface frictional resistance (referred to as surface frictional resistance) is one of the most important physical quantities in aerodynamics, and it is an important part of the total resistance suffered by an aircraft during flight. one of the physical quantities. Reducing friction can not only reduce the fuel consumption of the aircraft and increase the endurance of the aircraft, but also means that the heat flow on the surface of the supersonic aircraft is reduced, the weight of the heat-resistant material is reduced, and the payload is increased. Existing studies have shown that the surface friction of a new type of civil aviation airliner accounts for about half of the total resistance when it is running stably, far exceeding other resistance factors and occupies a dominant position; while for the supersonic aircraft developed by China, the surface friction can account for the largest part. More than 50% of the total resistance has a strong impact on the stability of the supersonic aircraft operation, and is also directly related to the service life of the aircraft. Therefore, reducing surface friction is of great significance to improving aircraft performance, reducing costs and saving energy.

传统测量摩阻的方法多数存在一定缺陷和局限性,如热膜法、Preston管法、Stanton管法、摩擦天平法、及激光多普勒法等,其中,热膜法主要原理是测量可电加热金属薄膜上的热量,通过建立焦耳热转化率与流体间的数学模型,从而解算得到摩阻,但该方法可能存在温漂现象导致失真;Preston管、Stanton管法对模具几何外形、气流夹角等因素要求较高,且难以灵活运用;摩擦天平法则将浮动元件装在位移传感器上,能直接测量作用于浮动元件上的表面摩阻的合力,但测量精度受环境因素、传统工艺制造因素、人为因素的影响较大;激光多普勒测量法是利用粒子通过具有条纹光线的粘性底层时散射而产生的多普勒效应,但因粘性底层中的示踪粒子密度低导致采样率低,在非定常测量中很难适用。Most of the traditional methods of measuring friction have certain defects and limitations, such as hot film method, Preston tube method, Stanton tube method, friction balance method, and laser Doppler method, among them, the main principle of hot film method is to measure electrical Heating the heat on the metal film, by establishing a mathematical model between the Joule heat conversion rate and the fluid, so as to solve the friction resistance, but this method may cause distortion due to temperature drift; Factors such as included angle have high requirements and are difficult to use flexibly; the friction balance method installs the floating element on the displacement sensor, which can directly measure the resultant force of surface friction acting on the floating element, but the measurement accuracy is affected by environmental factors and traditional manufacturing. Factors and human factors are greatly affected; the laser Doppler measurement method uses the Doppler effect caused by the scattering of particles passing through a viscous bottom layer with streaked light, but the sampling rate is low due to the low density of tracer particles in the viscous bottom layer , which is difficult to apply in unsteady measurements.

为改进上述传统测量方法,现有技术提出了将硅油和荧光分子按特定比例混合配制成荧光油膜,据其在紫外光照射下激发的显色反应,由油膜图像灰度值表征油膜的厚度值,进而解算得到摩阻分布的手段。In order to improve the above-mentioned traditional measurement method, the existing technology proposes to mix silicone oil and fluorescent molecules in a specific ratio to form a fluorescent oil film, and according to the color reaction excited by it under ultraviolet light irradiation, the thickness value of the oil film is represented by the gray value of the oil film image , and then solve the means to obtain the friction distribution.

但若直接通过实际测量获得荧光油膜图像灰度值与油膜厚度值数据,通常较为复杂且/或采集的数据量较少,如2012年Li Peng提供了一种荧光油膜灰度与厚度数据采集方法,其通过使用由高透光率的光学载玻片放置表面平整的平台搭建而成的采样装置(具体结构见李鹏《全局表面摩擦应力直接测量技术研究》南京航空航天大学,2012)实现,并通过几何关系求解出连续且不同厚度值的荧光油膜,其中采样装置满足:However, if the gray value of the fluorescent oil film image and the thickness value of the oil film are obtained directly through actual measurement, it is usually more complicated and/or the amount of data collected is small. For example, in 2012, Li Peng provided a method for collecting gray value and thickness data of the fluorescent oil film , which is realized by using a sampling device built by placing an optical glass slide with high light transmittance on a flat surface platform (for the specific structure, see Li Peng "Research on Direct Measurement Technology of Global Surface Frictional Stress", Nanjing University of Aeronautics and Astronautics, 2012), and The continuous fluorescent oil film with different thickness values is solved by geometric relationship, and the sampling device satisfies:

Figure BDA0003053551270000021
Figure BDA0003053551270000021

其中h、s为待测点的厚度与所在测量区域长度,H、F分别为载玻片高度和载玻片斜面采集区域长度,通过该装置,可求得测量区域中任一点的厚度信息。但该采集方法步骤较为繁琐、数学转换较多、且需要精确定位到每一个所需采集的像素点,耗时耗力,同时,其所用采集系统十分依赖模具的平整性和光滑性,对模具的要求较高,方案实现成本高。Among them, h and s are the thickness of the point to be measured and the length of the measurement area, H and F are the height of the glass slide and the length of the acquisition area of the slope of the slide, respectively. Through this device, the thickness information of any point in the measurement area can be obtained. However, the steps of this acquisition method are relatively cumbersome, there are many mathematical conversions, and each pixel needs to be accurately located, which is time-consuming and labor-intensive. At the same time, the acquisition system used is very dependent on the flatness and smoothness of the mold. The requirements are high, and the cost of solution implementation is high.

在实际的数据采集之外,现有技术中针对荧光油膜图像的灰度与其厚度的关系的研究较少,且未提供可获得灰度与厚度值的系统性模型和建模方法。In addition to the actual data collection, there are few studies on the relationship between the grayscale and thickness of fluorescent oil film images in the prior art, and no systematic model and modeling method for obtaining grayscale and thickness values are provided.

而为满足数据需求,在实际的采集数据之外,还需用到更多采集数据以外的其他数据,在进一步处理中,传统的插值法对实际采集的数据进行内插时能满足精度要求,对采集数据以外的其他数据进行外插时,特别是插值数据离采集数据甚远情况下,其精度往往不能达到要求甚至会出现错误数据。In order to meet the data requirements, in addition to the actual collected data, other data other than the collected data need to be used. In the further processing, the traditional interpolation method can meet the accuracy requirements when interpolating the actually collected data. When extrapolating data other than the collected data, especially when the interpolated data is far away from the collected data, the accuracy often cannot meet the requirements and even error data may appear.

另一方面,2014年,Mu、Chen建立了用于系统识别的Hankel矩阵,该矩阵的特点在于能够通过极少量数据建立预测模型,实现对建模数据以外的大量数据预测,这是传统的插值法所不具备的。但传统的Hankel矩阵预测模型的精度较低,在预测较远数据时偏差较大,不能直接应用于荧光油膜图像灰度值与油膜厚度值的建模并获得准确预测结果中。On the other hand, in 2014, Mu and Chen established the Hankel matrix for system identification. The characteristic of this matrix is that it can establish a prediction model with a very small amount of data, and realize the prediction of a large amount of data other than the modeling data. This is the traditional interpolation not available in the law. However, the accuracy of the traditional Hankel matrix prediction model is low, and the deviation is large when predicting distant data, so it cannot be directly applied to the modeling of the gray value of the fluorescent oil film image and the thickness of the oil film to obtain accurate prediction results.

发明内容Contents of the invention

本发明的目的在于提供一种建模方法,其可以通过极少数据量来预测出其余可用数据,且预测精度高,可在极大程度上避免数据采集的繁多操作,节省大量的时间和工具器材,有效解决现有技术中荧光油膜图像灰度与油膜厚度数据的采集步骤繁琐、耗时耗力、可用数据量少的问题。本发明的目的还在于提供该建模方法的一些具体应用方法。The purpose of the present invention is to provide a modeling method, which can predict the remaining available data with a very small amount of data, and the prediction accuracy is high, which can largely avoid the various operations of data collection and save a lot of time and tools The equipment can effectively solve the problems of cumbersome, time-consuming and labor-consuming, and less available data collection steps in the prior art for the gray scale of the fluorescent oil film image and the oil film thickness data. The purpose of the present invention is also to provide some specific application methods of the modeling method.

本发明首先公开了如下的技术方案:The present invention first discloses the following technical solutions:

一种基于荧光油膜的改进的Hankel矩阵预测模型的建模方法,其包括以下步骤:A modeling method based on the improved Hankel matrix predictive model of fluorescent oil film, it comprises the following steps:

S1建立基于荧光油膜采集数据的基础Hankel矩阵预测模型;S1 establishes the basic Hankel matrix prediction model based on the collected data of fluorescent oil film;

S2通过所述基础Hankel矩阵预测模型进行数据预测;S2 performs data prediction through the basic Hankel matrix prediction model;

S3根据对步骤S2所得预测值和其误差值的处理,建立基础Hankel矩阵预测模型的误差修正预测模型;S3 establishes the error correction prediction model of the basic Hankel matrix prediction model according to the processing of the predicted value obtained in step S2 and its error value;

S4通过所述误差修正预测模型进行数据预测,通过预测数据进行模型预测准确性和/或预测精度评估;S4 performs data prediction through the error correction prediction model, and performs model prediction accuracy and/or prediction accuracy evaluation through the prediction data;

S5若通过所述误差修正预测模型获得的预测数据准确和/或其预测精度提高,则输出该误差修正预测模型作为改进的Hankel矩阵预测模型,若获得的预测数据不准确和/或其预测精度未提高,则将该误差修正预测模型作为S1的基础Hankel矩阵预测模型继续按S2-S5的过程进行迭代更新,至获得所述改进的Hankel矩阵预测模型。S5 If the prediction data obtained by the error correction prediction model is accurate and/or its prediction accuracy is improved, then output the error correction prediction model as an improved Hankel matrix prediction model, if the obtained prediction data is inaccurate and/or its prediction accuracy If it is not improved, then use the error correction prediction model as the basic Hankel matrix prediction model of S1 and continue to iteratively update according to the process of S2-S5 until the improved Hankel matrix prediction model is obtained.

根据本发明的一些优选实施方式,所述对预测值和误差值的处理包括:对所述误差值进行均值化处理,通过均值化之处后的误差值对所述预测值进行修正。According to some preferred embodiments of the present invention, the processing of the predicted value and the error value includes: performing averaging processing on the error value, and correcting the predicted value by the error value after averaging.

根据本发明的一些优选实施方式,所述步骤S3包括:通过所述误差值修正所述预测值,获得修正后的预测值,通过所述修正后的预测值建立所述误差修正预测模型。According to some preferred embodiments of the present invention, the step S3 includes: correcting the predicted value by using the error value to obtain a corrected predicted value, and establishing the error correction forecast model by using the corrected predicted value.

根据本发明的一些优选实施方式,所述建模方法包括:According to some preferred embodiments of the present invention, the modeling method includes:

(1)建立基础Hankel矩阵预测模型;(1) Establish the basic Hankel matrix prediction model;

(2)通过所述基础Hankel矩阵预测模型进行数据预测;(2) carry out data prediction by described basic Hankel matrix prediction model;

(3)对预测产生的误差值作均值化处理;(3) Perform mean value processing on the error value generated by prediction;

(4)根据均值化处理结果对预测数据进行修正,以修正数据代替原预测数据,建立基础Hankel矩阵预测模型的第一误差修正预测模型;(4) Correct the forecast data according to the mean value processing result, replace the original forecast data with the corrected data, and establish the first error correction forecast model of the basic Hankel matrix forecast model;

(5)通过第一误差修正预测模型进行数据预测;(5) performing data prediction by the first error correction prediction model;

(6)若数据预测良好,则输出该误差修正预测模型作为改进的Hankel矩阵预测模型,若数据预测有误,则将该误差修正预测模型作为步骤(1)的基础Hankel矩阵预测模型继续按(2)-(6)的过程进行迭代更新,至获得所述改进的Hankel矩阵预测模型。(6) If the data prediction is good, then output the error correction prediction model as the improved Hankel matrix prediction model, if the data prediction is wrong, then use the error correction prediction model as the basic Hankel matrix prediction model of step (1) and continue to press The process of 2)-(6) is updated iteratively until the improved Hankel matrix prediction model is obtained.

在一些具体实施方式中,数据预测是否良好可通过对误差修正预测模型相对于基础Hankel矩阵预测模型在预测精度上是否有提高确定,若预测精度提高,则认为数据预测良好。In some specific embodiments, whether the data prediction is good can be determined by checking whether the prediction accuracy of the error correction prediction model is improved compared with the basic Hankel matrix prediction model. If the prediction accuracy is improved, it is considered that the data prediction is good.

根据本发明的一些优选实施方式,所述第一误差修正预测模型如下:According to some preferred embodiments of the present invention, the first error correction prediction model is as follows:

Figure BDA0003053551270000041
Figure BDA0003053551270000041

Figure BDA0003053551270000042
Figure BDA0003053551270000042

Figure BDA0003053551270000043
Figure BDA0003053551270000043

Figure BDA0003053551270000044
Figure BDA0003053551270000044

Γw(n)=[w(n)-wn]+Γwn (13),Γw (n) = [w (n) -w n ]+Γw n (13),

其中,w(n)表示用于模型建立的脉冲响应数据组,其可具体由荧光油膜图像中像素点的灰度值或其对应的标识,如像素点序号等,与对应的油膜厚度值组成,

Figure BDA0003053551270000045
表示模型预测结果数据组,Δε(n)表示误差数据组,G(ε)(z-1)表示Δε(n)的Z域传递函数,Δεn表示误差数据组Δε(n)中的误差数据,g表示脉冲数据中某时刻的灰度值,ΔG表示脉冲数据相邻两个元素的灰度值差,δ(g-n·ΔG)表示脉冲函数、当g=n·ΔG时,δ(g-k·ΔG)=1成立,n表示系统阶数大小,Γwn表示修正后脉冲数据组,wn表示w(n)中的单个建模数据,Γw(n)表示通过修正后的脉冲数据组替代其原脉冲数据组后得到的新的脉冲响应数据组。Among them, w(n) represents the impulse response data set used for model building, which can be specifically composed of the gray value of the pixel point in the fluorescent oil film image or its corresponding identification, such as the serial number of the pixel point, etc., and the corresponding oil film thickness value ,
Figure BDA0003053551270000045
Indicates the model prediction result data group, Δε (n) represents the error data group, G( ε )(z -1 ) represents the Z-domain transfer function of Δε (n) , and Δε n represents the error data in the error data group Δε (n) , g represents the gray value at a certain moment in the pulse data, ΔG represents the gray value difference between two adjacent elements of the pulse data, δ(gn·ΔG) represents the pulse function, when g=n·ΔG, δ(gk· ΔG)=1 is established, n represents the order of the system, Γw n represents the corrected pulse data set, w n represents the single modeling data in w (n) , Γw (n) represents the replacement of other The new impulse response data set obtained after the original impulse data set.

根据本发明的一些优选实施方式,所述步骤S3包括:通过所述误差值修正所述预测值,获得修正后的预测值,将所述修正后的预测值加入所述预测值的集合中,获得扩展后预测值,通过所述修正后的预测值建立所述误差修正预测模型。According to some preferred embodiments of the present invention, the step S3 includes: correcting the predicted value by the error value to obtain a corrected predicted value, adding the corrected predicted value to the set of predicted values, The extended prediction value is obtained, and the error correction prediction model is established through the corrected prediction value.

根据本发明的一些优选实施方式,所述建模方法包括:According to some preferred embodiments of the present invention, the modeling method includes:

(1)建立所述基础Hankel矩阵预测模型;(1) set up described basic Hankel matrix prediction model;

(2)通过该基础Hankel矩阵预测模型进行数据预测;(2) Carry out data prediction through the basic Hankel matrix prediction model;

(3)对预测产生的误差值作均值化处理;(3) Perform mean value processing on the error value generated by prediction;

(4)根据均值化处理结果对预测数据进行修正,将修正后数据加入原预测数据中,得到扩展后的数据,以扩展后的数据建立基础Hankel矩阵预测模型的第二误差修正预测模型;(4) Correct the predicted data according to the mean value processing result, add the corrected data in the original predicted data, obtain the expanded data, and establish the second error correction forecast model of the basic Hankel matrix forecast model with the expanded data;

(5)对第二误差修正预测模型的精度进行评估;(5) evaluating the accuracy of the second error correction prediction model;

(6)若预测精度提高,则输出该误差修正预测模型作为改进的Hankel矩阵预测模型,若预测精度未提高,则将该误差修正预测模型作为步骤(1)的基础Hankel矩阵预测模型继续按(2)-(6)的过程进行迭代更新,至获得所述改进的Hankel矩阵预测模型。(6) If the prediction accuracy improves, then output the error correction prediction model as an improved Hankel matrix prediction model, if the prediction accuracy does not improve, then use the error correction prediction model as the basic Hankel matrix prediction model of step (1) and continue to press ( The process of 2)-(6) is updated iteratively until the improved Hankel matrix prediction model is obtained.

根据本发明的一些优选实施方式,所述第二误差修正预测模型如下:According to some preferred embodiments of the present invention, the second error correction prediction model is as follows:

Figure BDA0003053551270000051
Figure BDA0003053551270000051

G(z-1)=w1z-1+w2z-2+…wnz-n (17)G(z -1 )=w 1 z -1 +w 2 z -2 +...w n z -n (17)

Figure BDA0003053551270000052
Figure BDA0003053551270000052

Figure BDA0003053551270000053
Figure BDA0003053551270000053

Figure BDA0003053551270000054
Figure BDA0003053551270000054

Figure BDA0003053551270000061
Figure BDA0003053551270000061

Figure BDA0003053551270000062
Figure BDA0003053551270000062

其中,w(n)表示用于模型建立的脉冲响应数据组,其可具体由荧光油膜图像中像素点的灰度值或其对应的标识,如像素点序号等,与对应的油膜厚度值组成,

Figure BDA0003053551270000063
表示模型预测结果数据组,Δε(n)表示误差数据组,G(z-1)表示Δε(n)的Z域传递函数,Δεn表示误差数据组Δε(n)中的误差数据,g表示脉冲数据中某时刻的灰度值,ΔG表示脉冲数据相邻两个元素的灰度值差,δ(g-n·ΔG)表示脉冲函数、当g=n·ΔG时,δ(g-k·ΔG)=1成立,n表示系统阶数大小,Γwn表示修正后脉冲数据组,wn表示w(n)中的单个建模数据,Γw(n)表示第r次迭代得到的扩展后脉冲响应数据组,
Figure BDA0003053551270000064
表示第r+1次迭代中得到的扩展后的脉冲响应数据组,
Figure BDA0003053551270000065
表示通过传递函数G(z-1)预测的数据,r表示迭代次数,
Figure BDA0003053551270000066
表示收敛条件。Among them, w (n) represents the impulse response data set used for model building, which can be specifically composed of the gray value of the pixel point in the fluorescent oil film image or its corresponding identification, such as the serial number of the pixel point, etc., and the corresponding oil film thickness value ,
Figure BDA0003053551270000063
Indicates the model prediction result data group, Δε (n) represents the error data group, G(z -1 ) represents the Z-domain transfer function of Δε (n) , Δε n represents the error data in the error data group Δε (n) , and g represents The gray value at a certain moment in the pulse data, ΔG represents the gray value difference between two adjacent elements of the pulse data, δ(gn·ΔG) represents the pulse function, when g=n·ΔG, δ(gk·ΔG) = 1 is established, n represents the order of the system, Γw n represents the corrected impulse data set, w n represents the single modeling data in w (n) , Γw (n) represents the extended impulse response data set obtained in the rth iteration ,
Figure BDA0003053551270000064
Represents the extended impulse response data set obtained in the r+1th iteration,
Figure BDA0003053551270000065
Represents the data predicted by the transfer function G(z -1 ), r represents the number of iterations,
Figure BDA0003053551270000066
Indicates the convergence condition.

根据本发明的一些优选实施方式,所述预测精度的评估方法为:将预测得到的数据减去原始数据获得误差数据,以所述误差数据与其对应的原始数据的百分比值作为误差率,以误差率的大小表征所述预测精度。According to some preferred embodiments of the present invention, the evaluation method of the prediction accuracy is: subtracting the predicted data from the original data to obtain the error data, taking the percentage value of the error data and its corresponding original data as the error rate, and taking the error The size of the rate represents the prediction accuracy.

本发明进一步提出了所述建模方法的一些应用,如通过所述建模方法在少量采集数据的基础上,获得更多的、准确的荧光油膜厚度数据与其图像灰度数据。The present invention further proposes some applications of the modeling method, such as obtaining more accurate fluorescent oil film thickness data and its image grayscale data on the basis of a small amount of collected data through the modeling method.

本发明还可进一步应用于基于荧光油膜厚度数据与其图像灰度数据进行的表面摩擦阻力分析中。The invention can be further applied to the analysis of surface frictional resistance based on the thickness data of the fluorescent oil film and its image grayscale data.

相对于传统Hankel阵预测模型的无修正误差功能、产生的误差将不断累积和放大,该误差由系统本身产生,也可能包含四舍五入计算误差等问题,本发明通过建立改进的Hankel矩阵预测模型,如第一误差修正预测模型或如具体实施方式所述矩阵误差修正预测模型,第二误差修正预测模型或如具体实施方式所述Hankel阵高阶迭代误差修正预测模型,可极大地消除误差影响,实现模型预测精度的提升。Compared with the uncorrected error function of the traditional Hankel matrix prediction model, the generated errors will continue to accumulate and amplify. The error is generated by the system itself, and may also include problems such as rounding calculation errors. The present invention establishes an improved Hankel matrix prediction model, such as The first error correction prediction model or the matrix error correction prediction model as described in the specific embodiment, the second error correction prediction model or the Hankel matrix high-order iterative error correction prediction model as described in the specific embodiment can greatly eliminate the influence of errors and realize Improvement of model prediction accuracy.

本发明的建模方法可有效解决荧光油膜图像灰度与油膜厚度关系数据的采集步骤较为繁琐、耗时耗力这一问题,通过极少数据量来预测出其余想要得到的数据,且保持较高的精度,这样在极大程度上避免了数据采集的繁多操作,节省了大量的时间和工具器材。The modeling method of the present invention can effectively solve the problem that the collection steps of the relationship data between the gray scale of the fluorescent oil film image and the thickness of the oil film are cumbersome, time-consuming and labor-intensive, and the remaining desired data can be predicted through a very small amount of data. Higher precision, thus avoiding the various operations of data collection to a great extent, saving a lot of time and tools and equipment.

附图说明Description of drawings

图1为具体实施方式中数据采集应用的采集装置。Fig. 1 is a collection device for data collection application in a specific embodiment.

图2为本发明中所述的改进的Hankel矩阵预测模型的一种具体建立过程。Fig. 2 is a specific establishment process of the improved Hankel matrix prediction model described in the present invention.

图3为本发明中所述的改进的Hankel矩阵预测模型的另一种具体建立过程。Fig. 3 is another specific establishment process of the improved Hankel matrix prediction model described in the present invention.

图4为具体实施方式采用的一种具体的数据采集方法的流程示意图。FIG. 4 is a schematic flowchart of a specific data collection method adopted in a specific embodiment.

图5为实施例1中数据采集的具体工况示意图。FIG. 5 is a schematic diagram of specific working conditions for data collection in Example 1.

图6为实施例1中像素值均值化处理示意图。FIG. 6 is a schematic diagram of pixel value averaging processing in Embodiment 1. FIG.

图7为实施例1所得真实采集图片。Fig. 7 is the real collection picture obtained in embodiment 1.

具体实施方式Detailed ways

以下结合实施例和附图对本发明进行详细描述,但需要理解的是,所述实施例和附图仅用于对本发明进行示例性的描述,而并不能对本发明的保护范围构成任何限制。所有包含在本发明的发明宗旨范围内的合理的变换和组合均落入本发明的保护范围。The present invention will be described in detail below in conjunction with the embodiments and drawings, but it should be understood that the embodiments and drawings are only used for exemplary description of the present invention, and do not constitute any limitation on the protection scope of the present invention. All reasonable transformations and combinations within the scope of the gist of the present invention fall within the protection scope of the present invention.

根据本发明的技术方案,一些具体的所述改进的Hankel矩阵预测模型的建模方法包括:According to the technical scheme of the present invention, some specific modeling methods of the improved Hankel matrix predictive model include:

S1建立基础Hankel矩阵预测模型;S1 establishes the basic Hankel matrix prediction model;

S2通过该基础Hankel矩阵预测模型进行数据预测;S2 performs data prediction through the basic Hankel matrix prediction model;

S3根据对预测产生的预测值和/或其误差值的处理,建立基础Hankel矩阵预测模型的误差修正预测模型;S3 establishes an error correction prediction model of the basic Hankel matrix prediction model according to the processing of the prediction value generated by the prediction and/or its error value;

S4通过误差修正预测模型进行数据预测或预测精度评估;S4 Carry out data prediction or prediction accuracy evaluation through error correction prediction model;

S5若误差修正预测模型获得的预测数据准确和/或其预测精度提高,则输出该误差修正预测模型作为改进的Hankel矩阵预测模型,若误差修正预测模型获得的预测数据不准确或其预测精度未提高,则将该误差修正预测模型作为步骤(2)基础Hankel矩阵预测模型继续按S2-S5的过程进行迭代更新,至获得最终改进的Hankel矩阵预测模型。S5 If the prediction data obtained by the error correction prediction model is accurate and/or its prediction accuracy is improved, then output the error correction prediction model as an improved Hankel matrix prediction model, if the prediction data obtained by the error correction prediction model is inaccurate or its prediction accuracy is not If it is improved, the error correction forecasting model is used as the basic Hankel matrix forecasting model in step (2) and continues to be iteratively updated according to the process of S2-S5, until the final improved Hankel matrix forecasting model is obtained.

其中,Hankel矩阵预测模型基本理论如下:Among them, the basic theory of the Hankel matrix prediction model is as follows:

令Hankel矩阵预测模型的Z域传递函数如式(2)所示,其中,[b1,b2…bn]为分子系数,[a1,a2…an]为分母系数,n为Z域传递函数阶数大小,阶数的大小由分子、分母系数的最高次幂来决定:Let the Z-domain transfer function of the Hankel matrix prediction model be shown in formula (2), where [b 1 , b 2 ... b n ] is the numerator coefficient, [a 1 , a 2 ... a n ] is the denominator coefficient, and n is The order size of the Z-domain transfer function is determined by the highest power of the numerator and denominator coefficients:

Figure BDA0003053551270000081
Figure BDA0003053551270000081

对式(2)进行幂级数展开,得到下式(3):Carry out power series expansion on formula (2), and get the following formula (3):

Figure BDA0003053551270000082
Figure BDA0003053551270000082

式(3)中的[w1,w2…wn]为展开得到的常数项系数即脉冲系数,将(3)式带入(2)式得式(4):[w 1 ,w 2 ...w n ] in formula (3) is the coefficient of the constant term obtained by expansion, that is, the pulse coefficient. Put formula (3) into formula (2) to get formula (4):

Figure BDA0003053551270000083
Figure BDA0003053551270000083

进一步展开并化简得式(5):Further expand and simplify formula (5):

Figure BDA0003053551270000084
Figure BDA0003053551270000084

对式(5)作乘积变换并对相同幂级项化简,即:Perform product transformation on formula (5) and simplify the same power-level term, namely:

Figure BDA0003053551270000085
Figure BDA0003053551270000085

通过等号两边相同幂级项对应的系数相等,构造出脉冲响应数据与传递函数分子系数bn与分母系数an的矩阵关系,如式(7)所示:By equalizing the coefficients corresponding to the same power-level items on both sides of the equal sign, the matrix relationship between the impulse response data and the transfer function numerator coefficient b n and denominator coefficient a n is constructed, as shown in formula (7):

Figure BDA0003053551270000091
Figure BDA0003053551270000091

将式(7)等式右边的的幂级数系数构造为Hankel矩阵形式:Construct the coefficient of the power series on the right side of equation (7) into a Hankel matrix form:

Figure BDA0003053551270000092
Figure BDA0003053551270000092

则传递函数分母系数an的求解矩阵如式(9)所示:Then the solution matrix of the denominator coefficient a n of the transfer function is shown in formula (9):

Figure BDA0003053551270000093
Figure BDA0003053551270000093

可以看出,通过对脉冲响应数据进行Hankel矩阵的构造,可求得传递函数的分子系数bn与分母系数an,进而得到Z域传递函数预测模型。It can be seen that by constructing the Hankel matrix for the impulse response data, the numerator coefficient b n and the denominator coefficient a n of the transfer function can be obtained, and then the Z-domain transfer function prediction model can be obtained.

根据上述模型中传递函数的分母系数an与脉冲响应数据具有直接关联的关系,对分母系数an作优化处理,如对直接作用于分母系数an的脉冲响应数据进行修正,可得更良好的预测效果。According to the direct relationship between the denominator coefficient a n of the transfer function and the impulse response data in the above model, the denominator coefficient a n is optimized. If the impulse response data directly acting on the denominator coefficient a n is corrected, a better result can be obtained prediction effect.

基于上述发现,所述误差修正预测模型可进一步选自:Based on the above findings, the error correction prediction model can be further selected from:

A.第一误差修正预测模型,基于该模型获得改进的Hankel矩阵预测模型的过程如附图2所示,其具体包括:A. The first error correction prediction model, the process of obtaining the improved Hankel matrix prediction model based on this model is as shown in accompanying drawing 2, and it specifically includes:

(1)建立基础Hankel矩阵预测模型;(1) Establish the basic Hankel matrix prediction model;

(2)通过该基础Hankel矩阵预测模型进行数据预测;(2) Carry out data prediction through the basic Hankel matrix prediction model;

(3)对预测产生的误差值作均值化处理;(3) Perform mean value processing on the error value generated by prediction;

(4)根据均值化处理结果对预测数据进行修正,以修正数据代替原预测数据,建立基础Hankel矩阵预测模型的第一误差修正预测模型;(4) Correct the forecast data according to the mean value processing result, replace the original forecast data with the corrected data, and establish the first error correction forecast model of the basic Hankel matrix forecast model;

(5)通过第一误差修正预测模型进行数据预测;(5) performing data prediction by the first error correction prediction model;

(6)若数据预测良好,则输出该误差修正预测模型作为改进的Hankel矩阵预测模型,若数据预测有误,则将该误差修正预测模型作为步骤(2)的基础Hankel矩阵预测模型继续按(2)-(6)的过程进行迭代更新,至获得最终改进的Hankel矩阵预测模型。(6) If the data prediction is good, then output the error correction prediction model as the improved Hankel matrix prediction model, if the data prediction is wrong, then use the error correction prediction model as the basic Hankel matrix prediction model of step (2) and continue to press The process of 2)-(6) is iteratively updated until the final improved Hankel matrix prediction model is obtained.

其中所述数据是否预测良好,可通过第一误差修正预测模型相对于基础Hankel矩阵预测模型的精度是否提高确定,若修正后精度有所提高,则认为数据预测良好。Whether the data is predicted well can be determined by whether the accuracy of the first error correction prediction model is improved relative to the basic Hankel matrix prediction model. If the accuracy is improved after correction, it is considered that the data prediction is good.

所述第一误差修正预测模型可进一步具体构建如下:The first error correction prediction model can be further specifically constructed as follows:

令w(n)表示用于模型建立的脉冲响应数据组,

Figure BDA0003053551270000101
表示模型对w(n)的预测结果数据组,则可得到式(10)所示的误差数据组:Let w(n) denote the impulse response data set used for model building,
Figure BDA0003053551270000101
represents the prediction result data set of the model for w(n), then the error data set shown in formula (10) can be obtained:

Figure BDA0003053551270000102
Figure BDA0003053551270000102

其中,Δε(n)表示误差数据组。Among them, Δε (n) represents the error data set.

基于上述Hankel矩阵预测模型基本理论,建立Δε(n)的Z域传递函数G(ε)(z-1),并根据Z域传递函数特性,将其表达为如下的脉冲模型:Based on the above basic theory of Hankel matrix prediction model, the Z-domain transfer function G( ε )(z -1 ) of Δε (n) is established, and according to the characteristics of the Z-domain transfer function, it is expressed as the following impulse model:

Figure BDA0003053551270000103
Figure BDA0003053551270000103

式(11)中Δεn表示误差数据组Δε(n)中的数据,g表示脉冲数据中某时刻的灰度值,ΔG表示脉冲数据相邻两个元素的灰度值差,δ(g-n·ΔG)表示脉冲函数、当g=n·ΔG时,δ(g-k·ΔG)=1成立。In formula (11), Δε n represents the data in the error data group Δε (n) , g represents the gray value at a certain moment in the pulse data, ΔG represents the gray value difference between two adjacent elements of the pulse data, δ(gn· ΔG) represents an impulse function, and when g=n·ΔG, δ(gk·ΔG)=1 holds true.

分析式(7)、(8)及式(9),考虑wn为单个建模数据,且wn直接影响分母系数an,则进行误差修正处理后,可得到如下的修正后脉冲数据组ΓwnAnalyzing equations (7), (8) and (9), considering that w n is a single modeling data, and w n directly affects the denominator coefficient a n , after error correction processing, the following corrected pulse data set can be obtained Γw n :

Figure BDA0003053551270000111
Figure BDA0003053551270000111

将得到的修正脉冲数据Γwn更新至原数列得到新数据组Γw(n)并建立如下的数据修正模型,如下:Update the obtained corrected pulse data Γw n to the original sequence to obtain a new data set Γw(n) and establish the following data correction model, as follows:

Γw(n)=[w(n)-wn]+Γwn (13)。Γw (n) = [w (n) -w n ]+Γw n (13).

将通过该数据修正模型得到的修正后数据组作为Hankel矩阵预测模型的脉冲响应数据组数据,获得其对应的Z域传递函数,即得到第一误差修正预测模型。The corrected data group obtained through the data correction model is used as the impulse response data group data of the Hankel matrix prediction model, and its corresponding Z-domain transfer function is obtained, that is, the first error correction prediction model is obtained.

B.第二误差修正预测模型,即高阶迭代误差修正预测模型。B. The second error correction prediction model, that is, a high-order iterative error correction prediction model.

为提高预测模型精度,本发明还包括通过迭代方式建立高阶系统传递函数模型的过程,即在所述第一误差修正预测模型的基础上进行扩展,如,将第一误差修正预测模型预测得到的数据补充至原脉冲数据列中以扩大脉冲数据量从而建立更高阶次的预测模型。该过程中,作为补充的预测数据是经误差修正过后的数据,降低了误差的累积效果,能使后续预测结果步入正轨,同时,用补充后的新脉冲数据构造Hankel矩阵并建立改进后的预测模型,通过迭代计算直到模型精度逐渐提高至收敛状态,最后进行预测分析。In order to improve the accuracy of the prediction model, the present invention also includes the process of establishing a high-order system transfer function model in an iterative manner, that is, expanding on the basis of the first error correction prediction model, for example, predicting the first error correction prediction model to obtain The data added to the original pulse data series to expand the amount of pulse data to establish a higher order prediction model. In this process, the supplementary prediction data is the data after error correction, which reduces the cumulative effect of errors and makes the follow-up prediction results on the right track. At the same time, the Hankel matrix is constructed with the supplementary new pulse data and the improved Prediction model, through iterative calculation until the accuracy of the model gradually improves to the convergence state, and finally predictive analysis.

基于该模型获得改进的Hankel矩阵预测模型的过程如附图3所示,其具体包括:The process of obtaining the improved Hankel matrix prediction model based on the model is shown in Figure 3, which specifically includes:

(1)建立基础Hankel矩阵预测模型;(1) Establish the basic Hankel matrix prediction model;

(2)通过该基础Hankel矩阵预测模型进行数据预测;(2) Carry out data prediction through the basic Hankel matrix prediction model;

(3)对预测产生的误差值作均值化处理;(3) Perform mean value processing on the error value generated by prediction;

(4)根据均值化处理结果对预测数据进行修正,将修正后数据加入原预测数据中,得到扩展后的数据,以扩展后的数据建立基础Hankel矩阵预测模型的第二误差修正预测模型;(4) Correct the predicted data according to the mean value processing result, add the corrected data in the original predicted data, obtain the expanded data, and establish the second error correction forecast model of the basic Hankel matrix forecast model with the expanded data;

(5)对第二误差修正预测模型的精度进行评估,具体精度评估方法可如:将预测得到的数据减去原始数据便可得到误差数据,将误差数据除以对应的原始数据并转换为百分比的形式显示方便直观分析,最后分析百分比误差作为精度的评判标准;(5) Evaluate the accuracy of the second error correction prediction model. The specific accuracy evaluation method can be as follows: the error data can be obtained by subtracting the original data from the predicted data, and the error data is divided by the corresponding original data and converted into a percentage The form display is convenient for intuitive analysis, and finally the percentage error is analyzed as the criterion of accuracy;

(6)若预测精度提高,则输出该误差修正预测模型作为改进的Hankel矩阵预测模型,若预测精度未提高,则将该误差修正预测模型作为步骤(1)的基础Hankel矩阵预测模型继续按(2)-(6)的过程进行迭代更新,至获得最终改进的Hankel矩阵预测模型。(6) If the prediction accuracy improves, then output the error correction prediction model as an improved Hankel matrix prediction model, if the prediction accuracy does not improve, then use the error correction prediction model as the basic Hankel matrix prediction model of step (1) and continue to press ( The process of 2)-(6) is iteratively updated until the final improved Hankel matrix prediction model is obtained.

其具体构建可进一步包括:Its specific construction can further include:

令w(n)为所需建立模型的脉冲响应数据组,可得其构造的Hankel矩阵H(w)为:Let w (n) be the impulse response data set to be modeled, and the constructed Hankel matrix H(w) can be obtained as:

Figure BDA0003053551270000121
Figure BDA0003053551270000121

基于式(14)建立传递函数预测模型G(z-1)=w1z-1+w2z-2+…wnz-n (17),并建立迭代公式,其中

Figure BDA0003053551270000122
表示传递函数预测模型G(z-1)预测的数据,r为迭代次数。结合式(12)、(13)的数据修正模型,并将修正后的数据补入原脉冲响应数据组中,可得如下的扩展后修正脉冲数据组
Figure BDA0003053551270000123
如式(15)所示:Based on the formula (14), establish the transfer function prediction model G(z -1 )=w 1 z -1 +w 2 z -2 +...w n z -n (17), and establish the iterative formula, where
Figure BDA0003053551270000122
Indicates the data predicted by the transfer function prediction model G(z -1 ), and r is the number of iterations. Combining the data correction model of formulas (12) and (13), and adding the corrected data into the original impulse response data set, the following extended corrected impulse data set can be obtained
Figure BDA0003053551270000123
As shown in formula (15):

Figure BDA0003053551270000124
Figure BDA0003053551270000124

将获得的扩展后修正脉冲数据组作为Hankel矩阵预测模型的脉冲响应数据组数据,获得其对应的Z域传递函数,并迭代至通过式(10)获得的误差数据组满足以下收敛条件:The obtained expanded and corrected impulse data set is used as the impulse response data set data of the Hankel matrix prediction model, and its corresponding Z-domain transfer function is obtained, and iterated until the error data set obtained by formula (10) satisfies the following convergence conditions:

Figure BDA0003053551270000125
Figure BDA0003053551270000125

获得其对应的最终收敛状态下的Z域传递函数,即得到第二误差修正预测模型。The corresponding Z-domain transfer function in the final convergence state is obtained, that is, the second error correction prediction model is obtained.

本发明进一步提供了一些可用于上述模型建立的荧光油膜的图像灰度值与油膜厚度值的具体数据采集及关联方法,其可通过如附图1所示的现有采集装置实现,包括如附图4所示的流程,具体如下:The present invention further provides some specific data acquisition and correlation methods of the image gray value and oil film thickness value of the fluorescent oil film that can be used for the above-mentioned model establishment, which can be realized by the existing acquisition device as shown in accompanying drawing 1, including as attached The process shown in Figure 4 is as follows:

对数据采集所需的照相设备如相机进行标定,获得其内外参数,其中内参数如相机焦距、焦点坐标和径向畸变参数,外参数如旋转矩阵和平移矩阵,决定世界坐标系到相机坐标系的转换;Calibrate the photographic equipment required for data collection, such as a camera, to obtain its internal and external parameters, including internal parameters such as camera focal length, focus coordinates, and radial distortion parameters, and external parameters such as rotation matrix and translation matrix, which determine the world coordinate system to the camera coordinate system conversion;

获得荧光油膜和紫外光源,并进行油膜的紫外显色反应,如通过荧光油膜采集系统装填油膜,并开启紫外光源,进行反应;Obtain the fluorescent oil film and ultraviolet light source, and carry out the ultraviolet color reaction of the oil film, such as filling the oil film through the fluorescent oil film collection system, and turning on the ultraviolet light source to carry out the reaction;

通过照相设备如相机对油膜进行灰度图像采集;Acquisition of grayscale images of the oil film through photographic equipment such as a camera;

判断图像的效果是否良好,若不良好,则重新进行油膜制备及显色反应,若效果良好则进行下一步的灰度值采集;Judging whether the effect of the image is good, if it is not good, the oil film preparation and color reaction will be carried out again, if the effect is good, the next gray value collection will be carried out;

对效果良好的灰度图像进行灰度值采集,包括:位姿解算,完成像素坐标与世界坐标系间的转换,采集所需油膜的灰度点集;Collect the gray value of the gray image with good effect, including: pose calculation, complete the conversion between pixel coordinates and the world coordinate system, and collect the gray point set of the required oil film;

对采集到的灰度点进行像素比例、几何转换,得到点集中各点对应的油膜厚度。Perform pixel ratio and geometric conversion on the collected gray points to obtain the oil film thickness corresponding to each point in the point set.

实施例1Example 1

通过具体实施方式所述数据采集及关联方法进行荧光油膜的图像灰度值与油膜厚度值的采集与关联试验。The collection and correlation test of the gray value of the image of the fluorescent oil film and the thickness of the oil film is carried out through the data collection and correlation method described in the specific embodiment.

其中,照相设备使用型号为Canon EOS 550D的相机,其水平分辨率和垂直分辨率为72dpi,位深度为24,具有高分辨率、采集速度快、操作简便等特点,所用紫外光源为型号为JZFZ-220/18-001的机器视觉紫光灯,其有效功率为18W±10%,具有发出紫外光较均匀的特点。Among them, the photographic equipment uses a Canon EOS 550D camera with a horizontal and vertical resolution of 72dpi and a bit depth of 24. It has the characteristics of high resolution, fast acquisition speed, and easy operation. The ultraviolet light source used is JZFZ -220/18-001 machine vision ultraviolet light lamp, its effective power is 18W±10%, and it has the characteristics of emitting more uniform ultraviolet light.

试验过程中当荧光油膜呈激发状态,为排除杂光如紫外光灯光源、环境光等干扰,在相机的镜头处加装了一片520nm的光学滤光片,以提高像素灰度值的精度。During the test, when the fluorescent oil film is in an excited state, in order to eliminate the interference of stray light such as ultraviolet light source and ambient light, a 520nm optical filter is installed on the lens of the camera to improve the accuracy of pixel gray value.

所用的如附图1所示的装置中,载玻片为国际标准载玻片,长为76.20mm,宽为25.40mm,高为0.95mm,通过该装置进行的具体采集步骤为:In the device used as shown in Figure 1, the slide glass is an international standard slide glass, with a length of 76.20 mm, a width of 25.40 mm, and a height of 0.95 mm. The specific collection steps carried out by this device are:

将一张载玻片2放置在平整光滑不透光平台上,该平台可通过高精度机械加工等方式确保其光滑性和平整性;Place a glass slide 2 on a smooth and opaque platform, which can ensure its smoothness and flatness through high-precision machining;

在光滑平台上不与载玻片2直接接触的区域倒入适量荧光油膜,取另一透光率95%以上的载玻片1,使其在一端接触光滑平台、另一端搭上载玻片2,形成斜面,并通过该载玻片1的按压,使其下的荧光油膜充满载玻片1、载波片2与光滑平台形成的空隙处;Pour an appropriate amount of fluorescent oil film on the area on the smooth platform that is not in direct contact with slide glass 2, take another slide glass 1 with a light transmittance above 95%, make it touch the smooth platform at one end, and put slide glass 2 on the other end , forming a slope, and by pressing the glass slide 1, the fluorescent oil film under it is filled with the gap formed by the slide glass 1, the slide glass 2 and the smooth platform;

开启紫外光灯,通过如图5所示的采集工况采集油膜的灰度图像,在该采集工况下,以载玻片左端终点处为原点建立空间直角坐标系,有效采集区域自原点向油膜延展方面的长度为70.00mm,即初始采集点空间坐标为(0,0,0),末点空间坐标为(7,0,0),单位为cm,紫外光源高50cm,即其空间坐标为(0,0,50)。Turn on the ultraviolet light, and collect the grayscale image of the oil film through the acquisition condition shown in Figure 5. Under this acquisition condition, a spatial rectangular coordinate system is established with the end point at the left end of the slide glass as the origin, and the effective acquisition area is from the origin to The length of the oil film extension is 70.00mm, that is, the space coordinates of the initial collection point are (0,0,0), the space coordinates of the end point are (7,0,0), the unit is cm, and the height of the ultraviolet light source is 50cm, that is, its space coordinates is (0,0,50).

在上述采集步骤下,可获得油膜不同位置处的厚度,如下:Under the above collection steps, the thickness of the oil film at different positions can be obtained, as follows:

Figure BDA0003053551270000141
Figure BDA0003053551270000141

其中h表示油膜待测点的厚度,s表示测量区域长度,H、F分别表示载玻片高度和载玻片1的斜面采集区域长度。Where h represents the thickness of the oil film to be measured, s represents the length of the measurement area, H and F represent the height of the slide and the length of the slope collection area of the slide 1, respectively.

为提高像素灰度值的稳定性,对所需测量的像素值采取了均值处理,即采集所需测量的像素点的周围共8个像素点与测量像素点构成3×3正方形区域,然后将该区域内9个像素点的像素值作平均值处理,来代表测量像素点的像素值大小,如图6所示。其中采集的像素点个数为22个,对拍摄采集的灰度图像用MATLAB软件进行分析,以建立像素值坐标矩阵,初始采集点的空间坐标和像素坐标分别为(0,0,0)、(610,1020),末点空间坐标和像素坐标分别为(7,0,0)和(2418,1020)。因灰度值均值处理后存在小数,故对其进行相应换算处理为整数,如灰度值均值处理得到的灰度值为76.11,厚度为78.09961,则灰度值换算为76时,对应的厚度换算为77.98673。在由式(1)计算出22个采集点的厚度值后,根据位姿解算求得22个采集点在像素坐标系上的像素坐标,利用MATLAB软件读取22个采集点所在像素坐标的像素值即可得到包括表1和表2的荧光油膜灰度与厚度数据:In order to improve the stability of pixel gray value, average value processing is adopted for the pixel value to be measured, that is, a total of 8 pixels around the pixel to be measured and the measurement pixel are collected to form a 3×3 square area, and then The pixel values of the 9 pixel points in this area are processed as the average value to represent the pixel value of the measured pixel point, as shown in Fig. 6 . The number of pixels collected is 22, and the grayscale images collected are analyzed with MATLAB software to establish a pixel value coordinate matrix. The spatial coordinates and pixel coordinates of the initial collection points are (0,0,0), respectively. (610,1020), the space coordinates and pixel coordinates of the end point are (7,0,0) and (2418,1020) respectively. Because there are decimals after the average gray value processing, it is correspondingly converted to an integer. For example, the gray value obtained by the average gray value processing is 76.11, and the thickness is 78.09961. When the gray value is converted to 76, the corresponding thickness This translates to 77.98673. After the thickness values of the 22 collection points are calculated by formula (1), the pixel coordinates of the 22 collection points on the pixel coordinate system are obtained according to the pose calculation, and the pixel coordinates of the 22 collection points are read by using MATLAB software. Pixel values can be used to obtain the fluorescent oil film grayscale and thickness data including Table 1 and Table 2:

表1荧光油膜灰度-厚度测试数据Table 1 Fluorescent oil film grayscale-thickness test data

Figure BDA0003053551270000151
Figure BDA0003053551270000151

表2荧光油膜灰度-厚度测试数据(用于建模的数据)Table 2 Fluorescent oil film grayscale-thickness test data (data used for modeling)

序号serial number 1*1* 2*2* 3*3* 4*4* 5*5* 6*6* 油膜灰度值PixelOil film gray value Pixel 100100 9696 9292 8888 8484 8080 油膜厚度值μmOil film thickness value μm 301.9912301.9912 235.6195235.6195 178.0973178.0973 142.1460142.1460 117.2566117.2566 96.2389096.23890

经换算,本试验的像素比例尺系数λ为38.71289μm/Pixel,在采集过程中,荧光油膜厚度在320μm左右亮度就达到了饱和状态,即亮度不再增长,故采集的最大厚度300μm左右,且采集点顺序由右往左,即以饱和灰度值点开始,拍摄的真实采集图片如图7所示,整理得到的采集数据如表1、表2所示。After conversion, the pixel scale coefficient λ of this test is 38.71289μm/Pixel. During the collection process, the brightness of the fluorescent oil film reaches saturation when the thickness is about 320μm, that is, the brightness does not increase any more, so the maximum thickness collected is about 300μm, and the collected The order of the points is from right to left, that is, starting with the saturated gray value point. The real collection picture taken is shown in Figure 7, and the collected data is shown in Table 1 and Table 2.

实施例2Example 2

基于实施例1表2获得的建模数据,以(序号值,厚度值)作为w(n),通过本发明具体实施方式所述的传统Hankel阵模型、本发明的第一误差修正预测模型(Hankel阵误差修正模型)和第二误差修正预测模型(高阶迭代Hankel阵误差修正模型)的建模过程获得对应的传递函数,分别如式(17)、(18)和(19)所示:Based on the modeling data obtained in Example 1 Table 2, with (serial number value, thickness value) as w (n), through the traditional Hankel matrix model described in the specific embodiment of the present invention, the first error correction prediction model of the present invention ( Hankel matrix error correction model) and the second error correction prediction model (higher-order iterative Hankel matrix error correction model) modeling process to obtain the corresponding transfer function, as shown in equations (17), (18) and (19), respectively:

Figure BDA0003053551270000152
Figure BDA0003053551270000152

Figure BDA0003053551270000153
Figure BDA0003053551270000153

Figure BDA0003053551270000161
Figure BDA0003053551270000161

可以看出,通过Hankel矩阵的形式建立的预测模型,能很好的满足由极少数据量建模以预测其它数据且保持较高精度这一特殊背景。It can be seen that the prediction model established in the form of Hankel matrix can well meet the special background of modeling with a small amount of data to predict other data and maintain high accuracy.

进一步经试验数据表明,传统Hankel模型的预测精度能够达到76.69%,基于此的改进算法Hankel阵误差修正模型和Hankel阵高阶迭代误差修正模型的预测精度分别为85.69%和89.25%,较传统Hankel阵模型其精度分别提高了9%和12.56%,其中高阶迭代误差修正模型的迭代达到四阶时系统收敛。在测量全局摩阻中,荧光油膜的厚度测量极其重要,且厚度的测量达到了微米级别,因此该改进算法的精度提升在工程实际中具有较大的应用价值。Further experimental data show that the prediction accuracy of the traditional Hankel model can reach 76.69%, and the prediction accuracy of the improved algorithm Hankel matrix error correction model and the Hankel matrix high-order iterative error correction model are 85.69% and 89.25%, respectively, compared with the traditional Hankel The accuracy of the array model is increased by 9% and 12.56%, respectively, and the system converges when the iteration of the high-order iteration error correction model reaches the fourth order. In the measurement of global friction, the thickness measurement of the fluorescent oil film is extremely important, and the thickness measurement has reached the micron level, so the accuracy improvement of the improved algorithm has great application value in engineering practice.

以上实施例仅是本发明的优选实施方式,本发明的保护范围并不仅局限于上述实施例。凡属于本发明思路下的技术方案均属于本发明的保护范围。应该指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下的改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above examples are only preferred implementations of the present invention, and the scope of protection of the present invention is not limited to the above examples. All technical solutions under the idea of the present invention belong to the protection scope of the present invention. It should be pointed out that for those skilled in the art, improvements and modifications without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.

Claims (6)

1. An improved Hankel matrix prediction model modeling method based on a fluorescent oil film is characterized by comprising the following steps: the method comprises the following steps:
s1, establishing a basic Hankel matrix prediction model based on fluorescence oil film collected data;
s2, carrying out data prediction through the basic Hankel matrix prediction model to obtain prediction data;
s3: correcting the prediction data through the error value to obtain corrected prediction data, and establishing a first error correction prediction model through the corrected prediction data, wherein the first error correction prediction model specifically comprises the following steps:
s31: averaging the error value generated by prediction to obtain an averaging result;
s32: correcting the prediction data according to the equalization processing result, replacing the original prediction data with the correction data, and establishing a first error correction prediction model of a basic Hankel matrix prediction model;
s4: performing data prediction through the first error correction prediction model;
s5: if the prediction data obtained through the first error correction prediction model is good, outputting the error correction prediction model as an improved Hankel matrix prediction model, and if the data prediction is wrong, taking the error correction prediction model as a basic Hankel matrix prediction model of S1 and continuously performing iterative updating according to the processes of S2-S5 until the improved Hankel matrix prediction model is obtained;
the fluorescence oil film acquisition data comprise pixel point gray values of fluorescence oil film images and corresponding oil film thickness values, and the prediction data are thicknesses of the fluorescence oil films.
2. The modeling method of claim 1, wherein: the first error-corrected prediction model is as follows:
Figure FDA0003842141330000011
Figure FDA0003842141330000012
Figure FDA0003842141330000013
Figure FDA0003842141330000014
Γw(n)=[w(n)-wn]+Γwn (13),
wherein, w(n)Representing the impulse response data set used for model building,
Figure FDA0003842141330000021
representing model prediction result data set, Δ ε(n)Representing error data set, G(ε)(z-1) Represents Delta epsilon(n)Z-domain transfer function ofnRepresenting error data set Δ ε(n)In the error data, G represents a gray scale value at a certain time in the pulse data, Δ G represents a gray scale value difference between two adjacent elements in the pulse data, δ (G-n · Δ G) represents a pulse function, δ (G-k · Δ G) =1 holds when G = n · Δ G, n represents a system order size, and Γ ww =1 holdsnRepresenting the corrected pulse data set, wnDenotes w(n)Of (3) single modeling data, Γ w(n)Representing a new impulse response data set obtained by replacing its original impulse data set with the modified impulse data set.
3. The modeling method of claim 1, wherein: the step S3 includes: and correcting the prediction data through the error value to obtain corrected prediction data, adding the corrected prediction data into a set of original prediction data to obtain expanded prediction data, and establishing the error correction prediction model through the expanded prediction data.
4. A modeling method in accordance with claim 3, wherein: the modeling method comprises the following steps:
(1) Establishing the basic Hankel matrix prediction model;
(2) Carrying out data prediction through the basic Hankel matrix prediction model;
(3) Averaging the error value generated by prediction;
(4) Correcting the predicted data according to the averaging processing result, adding the corrected data into the original predicted data to obtain expanded data, and establishing a second error correction prediction model of the basic Hankel matrix prediction model according to the expanded data;
(5) Evaluating the accuracy of the second error correction prediction model;
(6) And (3) if the prediction precision is improved, outputting the error correction prediction model as an improved Hankel matrix prediction model, and if the prediction precision is not improved, taking the error correction prediction model as the basic Hankel matrix prediction model in the step (1) to continuously carry out iterative updating according to the processes from (2) to (6) until the improved Hankel matrix prediction model is obtained.
5. The modeling method of claim 4, wherein: the second error-corrected prediction model is as follows:
Figure FDA0003842141330000031
G(z-1)=w1z-1+w2z-2+…wnz-n (17)
Figure FDA0003842141330000032
Figure FDA0003842141330000033
Figure FDA0003842141330000034
Figure FDA0003842141330000035
wherein w(n)Representing the impulse response data set used for model building,
Figure FDA0003842141330000036
data set representing model prediction results, Δ ε(n)Indicating an error data set, G (z)-1) Denotes. DELTA.. Di(n)Z-domain transfer function ofnRepresenting error data set Δ ε(n)Wherein G represents a gray scale value at a certain time in the pulse data, Δ G represents a gray scale value difference between two adjacent elements in the pulse data, δ (G-n · Δ G) represents a pulse function, δ (G-k · Δ G) =1 holds when G = n · Δ G, n represents a system order size, and Γ ww =1nRepresenting the corrected pulse data set, wnDenotes w(n)Of (3) single modeling data, Γ w(n)Representing the expanded impulse response data set obtained from the r-th iteration,
Figure FDA0003842141330000041
representing the extended impulse response data set obtained in the (r + 1) th iteration,
Figure FDA0003842141330000042
represents the passage of a transfer function G (z)-1) The predicted data, r, represents the number of iterations,
Figure FDA0003842141330000043
the convergence condition is indicated.
6. A modeling method as claimed in claim 4 or 5, characterized in that: the method for evaluating the prediction precision comprises the following steps: and subtracting the original data from the predicted data to obtain error data, and representing the prediction precision by the error rate by taking the percentage value of the error data and the corresponding original data as the error rate.
CN202110493888.7A 2021-05-07 2021-05-07 An improved Hankel matrix prediction model modeling method based on fluorescent oil film and its application Expired - Fee Related CN113204879B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110493888.7A CN113204879B (en) 2021-05-07 2021-05-07 An improved Hankel matrix prediction model modeling method based on fluorescent oil film and its application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110493888.7A CN113204879B (en) 2021-05-07 2021-05-07 An improved Hankel matrix prediction model modeling method based on fluorescent oil film and its application

Publications (2)

Publication Number Publication Date
CN113204879A CN113204879A (en) 2021-08-03
CN113204879B true CN113204879B (en) 2022-11-01

Family

ID=77029069

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110493888.7A Expired - Fee Related CN113204879B (en) 2021-05-07 2021-05-07 An improved Hankel matrix prediction model modeling method based on fluorescent oil film and its application

Country Status (1)

Country Link
CN (1) CN113204879B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114636688B (en) * 2022-05-18 2022-08-12 合肥金星智控科技股份有限公司 Model correction method, spectroscopic apparatus, computer apparatus, and storage medium
CN116184141B (en) * 2023-04-25 2023-08-29 南昌工程学院 Fault diagnosis method and system for gas insulated equipment

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8593476B2 (en) * 2008-02-13 2013-11-26 Gary Demos System for accurately and precisely representing image color information
CN103267622B (en) * 2013-05-13 2016-05-18 中国航空工业集团公司沈阳空气动力研究所 A kind of fluoroleum stream frictional force field measurement device and measuring method
CN204594883U (en) * 2015-05-08 2015-08-26 中石化石油工程技术服务有限公司 A kind of oil spilling sense terminals
WO2017091339A1 (en) * 2015-11-25 2017-06-01 International Business Machines Corporation Tool to provide integrated circuit masks with accurate dimensional compensation of patterns
CN106524929B (en) * 2016-12-07 2020-12-15 大连海事大学 Test device and test method for distribution state of lubricating oil film of cylinder liner and piston
CN106949864A (en) * 2017-03-23 2017-07-14 中海石油环保服务(天津)有限公司 Method for tracing underwater crude oil leakage point
CN108225718B (en) * 2017-12-28 2020-03-24 中国航天空气动力技术研究院 Fluorescent oil film thickness calibration method based on temperature effect
CN108959802B (en) * 2018-07-20 2022-05-17 中国空气动力研究与发展中心高速空气动力研究所 Global friction measurement method based on online calibration of thickness of fluorescent oil film
US12295916B2 (en) * 2019-04-30 2025-05-13 Karl P. Dresdner, Jr. Process for making aqueous therapeutic particle having stable exterior water clustering with nanosized thickness
CN110303053A (en) * 2019-07-04 2019-10-08 中国石油大学(华东) Distributed Control Method for Thickness Control System of Hot Continuous Rolling
CN111985078A (en) * 2020-07-13 2020-11-24 天津大学 A Stiffness Matrix Calculation Method for Seismic Responses of Point-Earthquake Predictions for Earthquake Prediction
CN112432755B (en) * 2020-10-23 2022-04-12 中国空气动力研究与发展中心高速空气动力研究所 Wide-speed-range color fluorescent oil flow reagent and viscosity adjusting method thereof
CN112560346A (en) * 2020-12-17 2021-03-26 西华大学 Neural network-based fluorescent oil film gray scale and thickness modeling method

Also Published As

Publication number Publication date
CN113204879A (en) 2021-08-03

Similar Documents

Publication Publication Date Title
CN113204879B (en) An improved Hankel matrix prediction model modeling method based on fluorescent oil film and its application
CN110570478B (en) Thermal stability calibration method for reflector of space optical remote sensing camera
CN115615655A (en) Continuous transonic wind tunnel test data interference correction method
CN108959802B (en) Global friction measurement method based on online calibration of thickness of fluorescent oil film
CN101804581A (en) Implementation method of automatic compensation for thermal deformation of machine tool
Daxini et al. Parametric shape optimization techniques based on Meshless methods: A review
CN106446432A (en) Optimal transportation meshless method for solving large deformation of material
CN115862771A (en) A simulation method for isogeometric analysis of hyperelastic material model based on volume subdivision
CN110189321A (en) Method and system for determining uniformity of concrete surface coating
CN117910167A (en) Electric spindle temperature field modeling method based on physical constraint neural network
JP2008273796A (en) Optical element press molding simulation method and program
CN111941849A (en) A dimensional error compensation method for 3D printing cylindrical parts
CN105068032B (en) A kind of calibration method of photovoltaic combiner box current acquisition channel temperature coefficient of deviation
CN110470223B (en) A three-dimensional space coordinate measurement method based on 1D displacement sensor
CN113642129B (en) A method for fast application of workpiece calibration load and finite element acquisition of deformation
CN113609675B (en) A method and device for determining the prediction model of fatigue short crack growth rate
CN114254572A (en) Aero-engine compressor flow field performance prediction method and system considering pollutant deposition
Liu et al. Analysis and prediction of temperature of an assembly frame for aircraft based on BP neural network
CN111444619B (en) An online analysis method and equipment for an injection mold cooling system
CN106323587B (en) The monocular video high-precision measuring method of wing model in wind tunnel flexible deformation
TWI772301B (en) Method of predicting gravity-free shape of glass sheet and method of managing quality of glass sheet based on gravity-free shape
CN109145510A (en) A kind of titanium alloy defective data modification method
Al-Athel et al. Eulerian volume of solid (VOS) approach in solid mechanics and metal forming
CN117763742B (en) A hybrid digital twin model construction method for accurate interpolation of sensor data
CN103793579B (en) A Method of Sensor Optimal Layout Based on EI and Stepwise Accumulation Method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20221101