A method for compensating and correcting liquid level measurement errors based on fiber grating pressure sensor
By utilizing the linear relationship between the wavelength drift of the fiber optic fiber Bragg grating pressure sensor and the liquid level height, combined with the Pearson correlation coefficient and piecewise arithmetic mean processing, the problem of low liquid level measurement accuracy of the fiber optic fiber Bragg grating pressure sensor is solved and a higher level is achieved. Improved measurement accuracy and performance.
Patent Information
- Application Number
- CN202210461510.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-28
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2042-04-28
AI Technical Summary
The liquid level measurement based on the fiber Bragg grating pressure sensor is subject to the problems of strong wavelength drift and uneven pressure of the fiber Bragg grating device, which results in low measurement accuracy and cannot meet the requirements of industrial and large equipment liquid level measurement.
The liquid level height data is obtained by using the linear relationship between wavelength drift and liquid level height, the Pearson correlation coefficient is calculated for initial numerical correction, and the error data is processed by piecewise arithmetic averaging for error compensation and correction.
The liquid level measurement accuracy is significantly improved, and the error range is reduced from ±15-25mm to ±5mm, meeting the liquid level measurement needs of large equipment such as aviation aircraft, ships and automobiles.
Smart Images

Figure CN114777888B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of liquid level measurement of large equipment such as aviation vehicles, ships and automobiles, and in particular to a method for compensating and correcting liquid level measurement errors based on a fiber grating pressure sensor. Background Art
[0002] Liquid level measurement is an important factor in ensuring the safety of daily life and urban development. In liquid level measurement, high measurement accuracy, high measurement reliability, safety, and low measurement cost have always been the key research directions. As a newly developed sensing technology, fiber grating sensing technology has excellent sensing characteristics that ensure the accuracy and safety of liquid level measurement. In liquid level monitoring under some special environments, the use of gratings for liquid level sensing has obvious advantages in measuring liquid level.
[0003] At present, the measurement of liquid level based on fiber Bragg grating sensing mostly uses the pressure-sensitive characteristics of fiber Bragg grating, and uses the linear relationship between the Bragg wavelength drift of the fiber Bragg grating pressure sensor immersed in the liquid and the height from the liquid surface to obtain the liquid level. However, the current liquid level measurement based on fiber Bragg grating pressure sensor is subject to the strong volatility of the wavelength drift of the fiber Bragg grating device and the uneven pressure, resulting in low measurement accuracy, which cannot meet the requirements in the field of industrial and large-scale equipment liquid level measurement, limiting its development in the field of liquid level measurement and its practicality. Therefore, improving the accuracy of liquid level measurement of fiber Bragg grating pressure sensor is the key to breaking through its limitations in practical applications, which directly determines its development prospects in the field of liquid level measurement.
[0004] Error compensation is usually used to improve measurement accuracy and reduce errors. Error compensation is also an important part of precision instrument processing and application. In principle, error compensation is to use an artificially given error data or compensation factor to offset the original error of the current instrument or problem, so as to achieve the purpose of reducing the error. The artificial compensation factor should be equal to the original error in size and opposite in sign. At present, there are three main error compensation technologies in precision measurement: error separation technology, error correction technology and error suppression technology. The core of error separation technology is to separate the useful signal from the error signal; the core of error correction technology is to obtain the error correction amount, that is, the compensation factor, in a certain way to eliminate the error component in the measurement data; the core of error suppression technology is to pre-set the input and output mechanism or circuit design that automatically adjusts and controls the error as the error source changes to offset or eliminate the error. In the present invention, the liquid level measurement data is obtained by the liquid level algorithm, and the liquid level data and the error data are not easy to separate, so the error separation technology cannot be used; the reason for the liquid level error is that the Bragg wavelength drift of the fiber grating sensor has a certain fluctuation problem, which is related to the material and test environment of the device itself. It is not easy to offset or eliminate the error from the source, so the error suppression technology cannot be used. Summary of the invention
[0005] Aiming at the problem that the liquid level measurement based on fiber Bragg grating pressure sensor in the prior art is subject to the strong volatility of wavelength drift of fiber Bragg grating device and uneven pressure resulting in low measurement accuracy, which cannot meet the requirements in the field of liquid level measurement of industrial and large-scale equipment, and limits the development in the field of liquid level measurement and has low practicality, the present invention proposes a liquid level measurement error compensation correction method based on fiber Bragg grating pressure sensor, which obtains liquid level height data by utilizing the linear relationship between wavelength drift and liquid level height, and automatically corrects the initial value of the liquid level to the same measurement height by calculating the Pearson correlation coefficient; then compares the obtained liquid level data with the real data, and finally performs error compensation correction on the liquid level measurement data by performing arithmetic averaging processing on the error data of each segment on the liquid level measurement height, thereby greatly improving the accuracy of liquid level measurement, enhancing the performance of liquid level measurement of fiber Bragg grating pressure sensor, and meeting the application requirements in liquid level measurement of large-scale equipment such as aircraft, ships and automobiles.
[0006] The specific implementation contents of the present invention are as follows:
[0007] The present invention proposes a method for compensating and correcting liquid level measurement errors based on a fiber Bragg grating pressure sensor, comprising the following steps:
[0008] Step 1: Using the linear relationship between wavelength drift and liquid level to obtain liquid level data in the fiber Bragg grating pressure sensor;
[0009] Step 2: Process the acquired liquid level height data in sections, draw a comparison chart of liquid level height data and measured liquid level height, and calculate the Pearson correlation coefficient between each group of measured liquid level heights;
[0010] Step 3: According to the Pearson correlation coefficient, the initial liquid level height is automatically corrected to the corrected liquid level height, and the currently measured liquid level height is taken as the actual liquid level height, and the error between the corrected liquid level height and the actual liquid level height is calculated;
[0011] Step 4: Perform arithmetic averaging on the error between the corrected liquid level height and the actual liquid level height, perform error compensation on the data obtained by the arithmetic averaging, and obtain the compensated measured liquid level height.
[0012] In order to better implement the present invention, further, the specific operation of step 1 is: using the linear relationship between the Bragg wavelength drift of the fiber grating pressure sensor immersed in the liquid and the height from the liquid surface, combining a univariate linear regression algorithm to obtain the liquid level height data.
[0013] In order to better implement the present invention, further, the step 2 specifically includes the following steps:
[0014] Step 2.1: Process the acquired liquid level data in sections, taking each 1 cm as a processing interval, and express the measured liquid level as:
[0015] H i ={h1, h2, h3..., h k |k∈Z}
[0016] Among them, H i is the measured liquid level height obtained for the ith time, h k is the measured liquid level height corresponding to the actual liquid level height of kcm;
[0017] Step 2.2: Draw a comparison chart of liquid level height data and measured liquid level height;
[0018] Step 2.3: Calculate the measured liquid level height H1 and the measured liquid level heights H of other groups respectively m The Pearson correlation coefficient between them; where 2≦m≦i and m and i are both positive integers.
[0019] In order to better implement the present invention, further, the operation of step 2.3 is: by calculating the measured liquid level height H1 and the measured liquid level height H m The covariance of the other groups' measured liquid level height H m The variance of the liquid level measured by other groups H m After averaging the measured liquid level height H1 and the measured liquid level height H of other groups, m The Pearson correlation coefficient between them; where 2≦m≦i and m and i are both positive integers.
[0020] In order to better implement the present invention, further, the step 3 specifically includes the following steps:
[0021] Step 3.1: According to the calculated Pearson correlation coefficient between the measured liquid level heights of each group, the correlation between the measured liquid level heights of each group is obtained;
[0022] Step 3.2: Automatically calibrate the initial liquid level to the calibration liquid level;
[0023] Step 3.3: Take the currently measured liquid level as the actual liquid level;
[0024] Step 3.4: Let the initial true liquid level be kcm, and express the measured liquid level after the i-th correction as:
[0025] H′ i =H i -(h k -k)
[0026] Among them, H′ iis the measured liquid level height after the ith correction, Hi is the measured liquid level height obtained for the ith time, hk is the measured liquid level height corresponding to the actual liquid level height of kcm, and k is the actual liquid level height at the initial level;
[0027] Step 3.5: Calculate the error between the corrected liquid level and the actual liquid level.
[0028] In order to better implement the present invention, further, the specific operation of step 3.5 is: perform n measurements, calculate the corrected liquid level height of the n measurements, and calculate the error between the corrected liquid level height of the n measurements and the actual liquid level height based on the calculated corrected liquid level height of the n measurements and the actual liquid level height; wherein 1≦i≦n and n and i are both positive integers.
[0029] In order to better implement the present invention, further, the step 4 specifically includes the following steps:
[0030] Step 4.1: Take the arithmetic average of the error between the corrected measured liquid level height and the actual liquid level height;
[0031] Step 4.2: The arithmetic mean of the error between the corrected measured liquid level height and the actual liquid level height is used as a compensation factor to compensate the measured liquid level height after the i-th correction to obtain the final measured liquid level height.
[0032] In order to better realize the present invention, further, the specific operation of step 4.2 is: using the arithmetic mean of the error between the corrected measured liquid level height and the actual liquid level height as a compensation factor to compensate the measured liquid level height after the i-th correction, and calculating the difference between the measured liquid level height after the i-th correction and the arithmetic mean of the error between the measured liquid level height and the actual liquid level height, and the calculated difference is the final measured liquid level height.
[0033] In order to better implement the present invention, further, after completing the step 4 to compensate the compensation factor, the residual calculation processing is also performed on the compensated measured liquid level height and the actual liquid level height. The specific operation is: calculate the average value of the difference between the final measured liquid level height and the actual liquid level height of n measurements, and use the calculated average value as the error value of the measured liquid level height.
[0034] The present invention has the following beneficial effects:
[0035] (1) The present invention uses the liquid level data obtained by the univariate linear regression model of the liquid level measurement of the fiber Bragg grating pressure sensor as the processing object, obtains the strong correlation characteristics of the liquid level measurement data by calculating its Pearson correlation coefficient, and automatically corrects the initial value of the liquid level to the same measurement height; then compares the obtained measured liquid level data with the actual liquid level height data, and finally performs error compensation correction on the liquid level measurement data by a segmented arithmetic average processing method of the error data of each segment on the liquid level measurement height, thereby greatly improving the accuracy of the liquid level measurement;
[0036] (2) At present, the error range of liquid level measurement using fiber Bragg grating pressure sensors is mostly between ±15-25mm. Using this algorithm, the error can be reduced to ±5mm, and the algorithm has good real-time performance, which greatly improves the performance of fiber Bragg grating pressure sensors in liquid level measurement and meets its application requirements in liquid level measurement of large equipment such as aircraft, ships and automobiles;
[0037] (3) The present invention adopts error correction technology to perform error compensation. During the test process, it is found that the liquid level measurement data show a strong correlation and the data change trend is the same. The compensation factor is used to perform self-compensation correction on the data. Experimental verification shows that the error compensation method can effectively perform self-compensation on the liquid level measurement results, thereby improving the accuracy of liquid level measurement. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 Schematic diagram of fiber Bragg grating wavelength drift;
[0039] Figure 2 Schematic diagram of the deformation of the pressure-sensitive membrane under stress;
[0040] Figure 3 This is the principle diagram of liquid level measurement based on fiber Bragg grating pressure sensing device;
[0041] Figure 4 It is a result diagram of liquid level height data obtained through the system device;
[0042] Figure 5 The result diagram after correcting the liquid level measurement height to the same starting height;
[0043] Figure 6 This is the result diagram after segmented compensation for measuring the liquid level height;
[0044] Figure 7 It is the residual diagram of the measured liquid level height after compensation and the actual liquid level height;
[0045] Figure 8 This is a flow chart of the self-compensation correction algorithm for liquid level measurement errors based on fiber Bragg grating pressure sensors. DETAILED DESCRIPTION
[0046] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. It should be understood that the described embodiments are only part of the embodiments of the present invention, not all of the embodiments, and therefore should not be regarded as limiting the scope of protection. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technical personnel in this field without making creative work are within the scope of protection of the present invention.
[0047] Embodiment 1:
[0048] This embodiment proposes a method for compensating and correcting liquid level measurement errors based on a fiber Bragg grating pressure sensor. Figure 1 , Figure 2 , Figure 8 As shown, the following steps are included:
[0049] Step 1: Using the linear relationship between wavelength drift and liquid level to obtain liquid level data in the fiber Bragg grating pressure sensor;
[0050] Step 2: Process the acquired liquid level height data in sections, draw a comparison chart of liquid level height data and measured liquid level height, and calculate the Pearson correlation coefficient between each group of liquid level height data;
[0051] Step 3: According to the calculated Pearson correlation coefficient between each group of liquid level height data, the initial liquid level height is automatically corrected to the same measurement height, and the current measurement height is taken as the true liquid level height, and the error between the corrected liquid level height and the true liquid level height is calculated;
[0052] Step 4: Perform arithmetic averaging on the error between the corrected liquid level height and the actual liquid level height, perform error compensation on the data obtained by the arithmetic averaging, and obtain the compensated liquid level measurement height.
[0053] Working principle: Figure 8 The figure shows the processing flow chart of the error compensation algorithm for liquid level measurement based on the fiber Bragg grating pressure sensor. The overall operation flow of the compensation algorithm of the present invention is systematically introduced. First, the initial liquid level data is obtained. Then, according to the characteristics of its strong correlation, the initial height of the liquid level is corrected to the same value. Then, the error between the processed data and the actual liquid level data height is calculated to obtain a correction factor. Finally, the processed data is compensated with the correction factor, which greatly improves the measurement accuracy and controls the error range within ±5mm.
[0054] like Figure 1 Shown is the fiber Bragg grating pressure sensing principle and a schematic diagram of the grating wavelength drift. Figure 1The left side shows that when the external pressure changes, the fiber Bragg grating period and the fiber core will change, causing the center wavelength of the fiber Bragg grating to drift. The back-end signal demodulation equipment can achieve high-precision monitoring of the wavelength drift, thereby accurately reflecting the magnitude of the pressure change. The right side is a schematic diagram of the force deformation of the pressure-sensitive film of the fiber Bragg grating pressure sensor. When the liquid level increases, the pressure difference on both sides of the pressure-sensitive film increases, and the pressure-sensitive film with a diameter of 2r and a thickness of t is deformed, causing the fiber Bragg grating embedded in the pressure-sensitive film to deform and bend, thereby causing the center wavelength of the fiber Bragg grating to drift. By measuring the center wavelength drift of the fiber Bragg grating, the pressure difference on both sides of the pressure-sensitive film can be obtained, and the liquid level height can be further obtained.
[0055] like Figure 2 The figure shows the principle diagram of liquid level measurement based on fiber Bragg grating pressure sensor device. The sensors in the fiber Bragg grating pressure sensor liquid level measurement device are arranged at equal intervals, and each fiber Bragg grating pressure sensor is placed at a fixed height. The Bragg wavelength drift of the fiber Bragg grating pressure sensor immersed in the liquid is linearly related to the height from the liquid surface, while the Bragg wavelength drift of the fiber Bragg grating pressure sensor not immersed in the liquid is zero. By measuring the Bragg wavelength value of the fiber Bragg grating pressure sensor immersed in the liquid, its linear fitting equation is calculated by combining the univariate linear regression algorithm. The intercept of the linear fitting equation is the current liquid level value. The two parameters of liquid density and gravity acceleration only change the slope of the linear fitting equation, so it has no effect on the accuracy of liquid level measurement.
[0056] Embodiment 2:
[0057] This embodiment is based on the above embodiment 1. Figure 3 As shown, the specific operation of step 1 is: using the linear relationship between the Bragg wavelength drift of the fiber Bragg grating pressure sensor immersed in the liquid and the height from the liquid surface, combined with a univariate linear regression algorithm to obtain the liquid level height data h, the specific calculation formula is:
[0058] h=k*Δλ+h0
[0059] Among them, h is the liquid level height data, k is the sensor sensitivity, Δλ is the change in the central wavelength of the fiber grating, and h0 is the current liquid level height value when Δλ=0.
[0060] Furthermore, the specific steps of step 2 are:
[0061] Step 2.1: Process the acquired liquid level data in sections, taking each 1 cm as a processing interval, and express the liquid level as:
[0062] H i ={h1, h2, h3..., h k |k∈Z}
[0063] Among them, H i is the measured liquid level height data obtained for the ith time, h k is the measured liquid level height corresponding to the actual liquid level height of kcm;
[0064] Step 2.2: Draw a comparison chart of liquid level height data and measured liquid level height;
[0065] Step 2.3: Calculate the measured liquid level height data H1 and other groups of measured data H i , Pearson correlation coefficient between i≠1.
[0066] Furthermore, the specific calculation formula of step 2.3 is:
[0067]
[0068] Among them, r(H1,H i ) indicates that H1 and H i Pearson correlation coefficient, Cov(H1, H i ) indicates that H1 and H i The covariance of Var(H i ) indicates H i The variance of Indicates H i The average value of .
[0069] Working principle: Figure 3 This is a result diagram of the liquid level height data obtained through the system device.
[0070] By formula
[0071] h=k*Δλ+h0
[0072] The Δλ curve of the liquid level change is obtained by measuring the spectrometer, and then the change curve of the fiber Bragg grating pressure sensor array immersed in the liquid at different heights is estimated by linear fitting. The obtained liquid level height data is processed in sections, with each 1 cm of the actual liquid level as a processing interval.
[0073] H i ={h1, h2, h3..., h k |k∈Z}
[0074] H i is the measured liquid level height data obtained for the ith time, h k When the actual liquid level is kcm, the corresponding measured liquid level height is kcm. Draw a comparison chart of measured data and actual liquid level height. This experiment conducted 6 data collections, and the initial liquid level height of each measurement was 90cm.
[0075] In actual measurement, due to the certain fluctuation of Δλ each time, the measurement error is large, and it is necessary to make a certain fitting correction to the measurement result. Calculate the measured liquid level height data H1 and other groups of measurement data H i , the Pearson correlation coefficient between i≠1, the specific calculation formula is:
[0076]
[0077] Among them, r(H1,H i ) indicates that H1 and H i Pearson correlation coefficient, Cov(H1, H i ) indicates that H1 and H i The covariance of Var(H i ) indicates H i The variance of Indicates H i The calculated Pearson correlation coefficient is shown in Table 1.
[0078] Table 1H1 and H i Pearson correlation coefficient
[0079] <![CDATA[r(H1,H2)]]> <![CDATA[r(H1,H3)]]> <![CDATA[r(H1,H4)]]> <![CDATA[r(H1,H5)]]> <![CDATA[r(H1,H5)]]> 0.999856311 0.999813559 0.99990512 0.999856885 0.999882952
[0080] It can be seen that these six sets of data have a strong correlation, and the change trend of the data is linear and the same. It is only because the fluctuation of Δλ leads to different intercepts that the measurement results are different, so we correct the data.
[0081] The other parts of this embodiment are the same as those of the above-mentioned embodiment 1, and thus will not be described in detail.
[0082] Embodiment 3:
[0083] This embodiment is based on any one of the above embodiments 1-2. Figure 4 As shown, the specific steps of step 3 are:
[0084] Step 3.1: According to the calculated Pearson correlation coefficient between each group of liquid level height data, the correlation between each group of liquid level height data is obtained:
[0085] Step 3.2: Automatically calibrate the initial liquid level to the same measurement height;
[0086] Step 3.3: Take the current measured height as the actual liquid level height;
[0087] Step 3.4: Let the initial true height of the liquid level be kcm, and express the measured height of the liquid level after the i-th correction as:
[0088] H′ i=H i -(h k -k)
[0089] Step 3.5: Calculate the error between the corrected liquid level height and the actual liquid level height.
[0090] In order to better implement the present invention, further, the specific calculation formula of step 3.5 is:
[0091] ρ i ={H′ i -R|i=1......n}
[0092] Among them, ρ i is the error between the corrected liquid level height and the actual liquid level height, n is the number of measurements, and R is the actual liquid level height R = {1, 2, 3..., k|k∈Z}.
[0093] Working principle: Figure 4 The result diagram after the liquid level measurement height is corrected to the same starting height. The initial true height of the liquid level is kcm, where we take k = 90, then the liquid level measurement height H′ after the i-th correction i =H i -(h k -k). The corrected liquid level height H′ i Draw a comparison chart with the actual liquid level height. At this point, we find that H′ i The overlap is already high, but there is still a certain error between the actual liquid level height R = {1, 2, 3..., k|k∈Z}. Calculate the error ρ between the corrected liquid level measurement height and the actual liquid level height R, ρ i ={H′ i -R|i=1......n}, n is the number of measurements, this time we take n=6.
[0094] The other parts of this embodiment are the same as any of the above embodiments 1-2, so they are not repeated here.
[0095] Embodiment 4:
[0096] This embodiment is based on any one of the above embodiments 1-3. Figure 5 As shown, the specific steps of step 4 are:
[0097] Step 4.1: Set the error ρ i Taking the arithmetic mean we get:
[0098]
[0099] in, is the error ρ iThe arithmetic mean of i is the error between the corrected liquid level height and the actual liquid level height, n is the number of measurements;
[0100] Step 4.2: As a compensation factor for H′ i Compensation is performed to obtain the final liquid level measurement height H.
[0101] In order to better implement the present invention, further, the specific calculation formula of step 4.2 is:
[0102]
[0103] Among them, H′ i is the liquid level measurement height after the i-th calibration, is the error ρ i The arithmetic mean of .
[0104] Working principle: Figure 5 This is the result diagram after segmented compensation of liquid level measurement height. i Taking the arithmetic mean, we get Will As a compensation factor for H′ i Compensation is performed to obtain the final liquid level measurement height H. The specific compensation algorithm is: After compensation, we can see that H and R are highly consistent, and the two curves almost overlap.
[0105] The other parts of this embodiment are the same as any one of the above embodiments 1-3, so they are not repeated here.
[0106] Embodiment 5:
[0107] This embodiment is based on any one of the above embodiments 1-4. Figure 6 As shown, after the compensation factor is compensated in step 4, the residual calculation processing is also performed on the compensated liquid level height and the actual liquid level height. The specific calculation formula is:
[0108]
[0109] Among them, σ is the error value of liquid level measurement height, H is the final liquid level measurement height, R is the actual liquid level height, and n is the number of measurements.
[0110] Working principle: Figure 6 This is the residual diagram of the liquid level measurement height after compensation and the actual liquid level height. In order to further obtain the improvement of our measurement accuracy, we perform residual calculation processing on the liquid level height after compensation and the actual liquid level height. The specific calculation formula is:
[0111]
[0112] We can see that the overall error is no more than 10mm, and the measurement accuracy is within ±5mm. The measured liquid level accurately reflects the true value of the liquid level, and the algorithm has excellent real-time performance.
[0113] The other parts of this embodiment are the same as any one of the above embodiments 1-4, so they are not repeated here.
[0114] Embodiment 6:
[0115] This embodiment is based on any one of the above embodiments 1-5. Figure 1 , Figure 2 , Figure 3 , Figure 4 , Figure 5 , Figure 6 , Figure 7 , Figure 8 As shown in the figure, a method for compensating and correcting the liquid level measurement error based on a fiber Bragg grating pressure sensor is further proposed, comprising the following steps:
[0116] Step 1: Using the linear relationship between wavelength drift and liquid level to obtain liquid level data in the fiber Bragg grating pressure sensor;
[0117] Step 2: Process the acquired liquid level height data in sections, draw a comparison chart of liquid level height data and measured liquid level height, and calculate the Pearson correlation coefficient between each group of measured liquid level heights;
[0118] Step 3: According to the Pearson correlation coefficient, the initial liquid level height is automatically corrected to the corrected liquid level height, and the currently measured liquid level height is taken as the actual liquid level height, and the error between the corrected liquid level height and the actual liquid level height is calculated;
[0119] Step 4: Perform arithmetic averaging on the error between the corrected liquid level height and the actual liquid level height, perform error compensation on the data obtained by the arithmetic averaging, and obtain the compensated measured liquid level height.
[0120] Furthermore, the specific operation of step 1 is: utilizing the linear relationship between the Bragg wavelength drift of the fiber Bragg grating pressure sensor immersed in the liquid and the height from the liquid surface, and combining with a univariate linear regression algorithm to obtain the liquid level height data.
[0121] Furthermore, the step 2 specifically includes the following steps:
[0122] Step 2.1: Process the acquired liquid level data in sections, taking each 1 cm as a processing interval, and express the measured liquid level as:
[0123] H i={h1, h2, h3..., h k |k∈Z}
[0124] Wherein, Hi is the measured liquid level height obtained for the i-th time, and hk is the measured liquid level height corresponding to the actual liquid level height of kcm;
[0125] Step 2.2: Draw a comparison chart of liquid level height data and measured liquid level height;
[0126] Step 2.3: Calculate the Pearson correlation coefficient between the measured liquid level height H1 and the measured liquid level heights Hm of other groups respectively; where 2≦m≦i and m and i are both positive integers.
[0127] Further, the operation of step 2.3 is: by calculating the measured liquid level height H1 and the measured liquid level height H m The covariance of the other groups' measured liquid level height H m The variance of the liquid level measured by other groups H m After averaging the measured liquid level height H1 and the measured liquid level height H of other groups, m The Pearson correlation coefficient between them; where 2≦m≦i and m and i are both positive integers.
[0128] Furthermore, the step 3 specifically includes the following steps:
[0129] Step 3.1: According to the calculated Pearson correlation coefficient between the measured liquid level heights of each group, the correlation between the measured liquid level heights of each group is obtained;
[0130] Step 3.2: Automatically calibrate the initial liquid level to the calibration liquid level;
[0131] Step 3.3: Take the currently measured liquid level as the actual liquid level;
[0132] Step 3.4: Let the initial true liquid level be kcm, and express the measured liquid level after the i-th correction as:
[0133] H′ i =H i -(h k -k)
[0134] Among them, H′ i is the measured liquid level height after the ith correction, Hi is the measured liquid level height obtained for the ith time, hk is the measured liquid level height corresponding to the actual liquid level height of kcm, and k is the actual liquid level height at the initial level;
[0135] Step 3.5: Calculate the error between the corrected liquid level and the actual liquid level.
[0136] Furthermore, the specific operation of step 3.5 is: perform n measurements, calculate the corrected liquid level height of the n measurements, and calculate the error between the corrected liquid level height of the n measurements and the actual liquid level height based on the calculated corrected liquid level height of the n measurements and the actual liquid level height; wherein 1≦i≦n and n and i are both positive integers.
[0137] Furthermore, the step 4 specifically includes the following steps:
[0138] Step 4.1: Take the arithmetic average of the error between the corrected measured liquid level height and the actual liquid level height;
[0139] Step 4.2: The arithmetic mean of the error between the corrected measured liquid level height and the actual liquid level height is used as a compensation factor to compensate the measured liquid level height after the i-th correction to obtain the final measured liquid level height.
[0140] Furthermore, the specific operation of step 4.2 is: using the arithmetic mean of the error between the corrected measured liquid level height and the actual liquid level height as a compensation factor to compensate for the measured liquid level height after the i-th correction, and calculating the difference between the measured liquid level height after the i-th correction and the arithmetic mean of the error between the measured liquid level height and the actual liquid level height, and the calculated difference is the final measured liquid level height.
[0141] Furthermore, after the compensation factor is compensated in step 4, the residual calculation processing is also performed on the compensated measured liquid level height and the actual liquid level height. The specific operation is: calculate the average value of the difference between the final measured liquid level height and the actual liquid level height of n measurements, and use the calculated average value as the error value of the measured liquid level height.
[0142] Working principle: This embodiment proposes an error self-compensation correction algorithm for liquid level measurement using a fiber Bragg grating pressure sensor. The liquid level data obtained from the univariate linear regression model of the liquid level measurement using the fiber Bragg grating pressure sensor is used as the processing object. By calculating the Pearson correlation coefficient of each group of measured liquid level heights, the strong correlation characteristics of the measured liquid level height data are obtained, and the initial liquid level value is automatically corrected to the same measurement height. The obtained liquid level data is then compared with the true data. Finally, the error compensation correction is performed on the liquid level measurement data by performing arithmetic averaging on the error data of each segment at the liquid level measurement height, thereby greatly improving the accuracy of the liquid level measurement. At present, the error range of liquid level measurement using a fiber Bragg grating pressure sensor is mostly between ±15-25mm. Using this algorithm, the error can be reduced to ±5mm, and the algorithm has good real-time performance, which greatly improves the performance of the liquid level measurement of the fiber Bragg grating pressure sensor, and meets its application requirements in liquid level measurement of large equipment such as aircraft, ships, and automobiles.
[0143] The other parts of this embodiment are the same as any one of the above embodiments 1-5, so they are not repeated here.
[0144] The embodiments of the present invention list a specific implementation method of a self-compensation correction algorithm for liquid level measurement errors based on a fiber Bragg grating pressure sensor. The number of data acquisition times in the algorithm steps of the inventive method can be selected and adjusted according to actual conditions. The method can be used for self-compensation correction of liquid level measurement errors based on a fiber Bragg grating pressure sensor, and can also be used for error processing of other data obtained based on a univariate linear regression algorithm.
[0145] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Any simple modification or equivalent change made to the above embodiment based on the technical essence of the present invention shall fall within the protection scope of the present invention.
Claims
1. A method for compensating and correcting liquid level measurement errors based on a fiber Bragg grating pressure sensor, characterized in that: The following steps are involved: Step 1: Using the linear relationship between wavelength drift and liquid level to obtain liquid level data in the fiber Bragg grating pressure sensor; Step 2: Process the acquired liquid level height data in sections, draw a comparison chart of liquid level height data and measured liquid level height, and calculate the Pearson correlation coefficient between each group of measured liquid level heights; Step 3: According to the Pearson correlation coefficient, the initial liquid level height is automatically corrected to the corrected liquid level height, and the currently measured liquid level height is taken as the actual liquid level height, and the error between the corrected liquid level height and the actual liquid level height is calculated; Step 4: Perform arithmetic averaging on the error between the corrected liquid level height and the actual liquid level height, and perform error compensation on the data obtained by the arithmetic averaging to obtain the compensated measured liquid level height; The specific operation of step 1 is: using the linear relationship between the Bragg wavelength drift of the fiber Bragg grating pressure sensor immersed in the liquid and the height from the liquid surface, and combining a univariate linear regression algorithm to obtain liquid level height data; The step 2 specifically includes the following steps: Step 2.1: Process the acquired liquid level data in sections, taking each 1 cm as a processing interval, and express the measured liquid level as: Among them, H i is the measured liquid level height obtained for the ith time, h k is the measured liquid level height corresponding to the actual liquid level height of kcm; Step 2.2: Draw a comparison chart of liquid level height data and measured liquid level height; Step 2.3: Calculate the measured liquid level height H1 and the measured liquid level heights H of other groups respectively m The Pearson correlation coefficient between them; where 2≦m≦i and m and i are both positive integers; The step 3 specifically includes the following steps: Step 3.1: According to the calculated Pearson correlation coefficient between the measured liquid level heights of each group, the correlation between the measured liquid level heights of each group is obtained; Step 3.2: Automatically calibrate the initial liquid level to the calibration liquid level; Step 3.3: Take the currently measured liquid level as the actual liquid level; Step 3.4: Let the initial true liquid level be kcm, and express the measured liquid level after the i-th correction as: in, is the measured liquid level height after the ith correction, H i is the measured liquid level height obtained for the ith time, h k is the measured liquid level height corresponding to the actual liquid level height of kcm, k is the initial actual liquid level height; Step 3.5: Calculate the error between the corrected liquid level height and the actual liquid level height; The specific operation of step 3.5 is: perform n measurements, calculate the corrected liquid level height measured n times, and calculate the error between the corrected liquid level height measured n times and the true liquid level height according to the calculated corrected liquid level height measured n times and the true liquid level height; wherein 1≦i≦n and n and i are both positive integers; The step 4 specifically includes the following steps: Step 4.1: Take the arithmetic average of the error between the corrected measured liquid level height and the actual liquid level height; Step 4.2: The arithmetic mean of the error between the corrected measured liquid level height and the actual liquid level height is used as a compensation factor to compensate the measured liquid level height after the i-th correction to obtain the compensated measured liquid level height.
2. A method for compensating and correcting liquid level measurement errors based on a fiber Bragg grating pressure sensor as claimed in claim 1, characterized in that: The operation of step 2.3 is: by calculating the measured liquid level height H1 and the measured liquid level height H m The covariance of the other groups' measured liquid level height H m The variance of the liquid level measured by other groups H m After averaging the measured liquid level height H1 and the measured liquid level height H of other groups, m The Pearson correlation coefficient between them; where 2≦m≦i and m and i are both positive integers.
3. A method for compensating and correcting liquid level measurement errors based on a fiber Bragg grating pressure sensor as claimed in claim 1, characterized in that: After completing step 4 to compensate the compensation factor, the residual calculation processing is also performed on the compensated measured liquid level height and the actual liquid level height. The specific operation is: calculate the average value of the difference between the compensated measured liquid level height and the actual liquid level height measured n times, and use the calculated average value as the error value of the measured liquid level height.
Citation Information
Patent Citations
Rainfall monitoring network and rainfall monitoring method through utilization of fiber bragg grating hydrocone type rain gauge
CN103345004A
Method for measuring dynamic deflection through fiber grating differential pressure gauges
CN104089602A
Ship level monitoring system
CN106908116A
Nuclear power pipeline monitoring method, system, device, equipment and storage medium
CN110146128A
High-precision intelligent liquid level meter continuous calibration device
CN113819982A
