A Calibration Method for Petroleum and Petrochemical Flow Meters Based on Coriolis Force
Through the meta-learning model and health assessment index system, the adaptive calibration of the flow meter is realized, which solves the measurement accuracy reduction and calibration problems in the existing technology, improves the measurement accuracy and reliability of the flow meter, and is suitable for complex working conditions. Offshore petroleum and petrochemical engineering.
Patent Information
- Application Number
- CN202410912203.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-09
AI Technical Summary
The measurement accuracy of existing Coriolis force flow meters is reduced under the influence of vibration, changes in fluid physical properties and environmental factors, making it difficult to achieve real-time online calibration and full life cycle management.
An adaptive calibration method for flow meters based on meta-learning is adopted, combined with vibration, measurement performance and fluid physical health assessment indicators, and an adaptive calibration model is constructed through the meta-learning model to achieve rapid and accurate calibration of the flow meter, and a health graded calibration strategy is proposed to Reduce calibration costs.
It improves the measurement accuracy and reliability of the flow meter, realizes the full life cycle health management of the flow meter, adapts to the needs of offshore oil and petrochemical engineering under complex working conditions, and extends the service life of the flow meter.
Smart Images

Figure CN118464164B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of flowmeter calibration, and more particularly to a petroleum and petrochemical flowmeter calibration method based on Coriolis force. Background Art
[0002] In the petroleum and petrochemical industry, the measurement accuracy of flow meters is crucial to production management and trade settlement. Coriolis flow meters are widely used for their high measurement accuracy. However, the measurement performance of Coriolis flow meters is easily affected by vibration, changes in fluid properties, environmental factors, etc., resulting in increased measurement errors. At present, the calibration of Coriolis flow meters mainly adopts offline calibration, that is, the flow meter is removed from the pipeline and sent to the metrology and verification department for calibration. This calibration method is not only time-consuming and labor-intensive, but also difficult to achieve real-time online calibration of the flow meter. In addition, the health status assessment of the flow meter mainly relies on regular manual inspections, which makes it difficult to achieve comprehensive and accurate status monitoring and fault warning.
[0003] The offshore oil and petrochemical engineering field has put forward higher requirements on the measurement performance and reliability of flow meters. The offshore operating environment is harsh, and the working conditions of flow meters are complex and changeable. There is an urgent need for a technical solution that can achieve adaptive calibration and full life cycle management of flow meters.
[0004] In the oil industry, the method of using piezoelectric sensors for flow measurement has attracted attention. The paper (MedeirosK AR, Barbosa CRH, De Oliveira E C. Flow measurement by piezoelectric accelerometers: Application in the oil industry[J]. Petroleum Science and Technology, 2015, 33(13-14): 1402-1409.) introduces the application of piezoelectric accelerometers for flow measurement in the oil industry. By installing the piezoelectric accelerometer on the pipeline, the flow rate can be measured by using the vibration signal generated when the fluid flows through. The working principle, installation method and data processing technology of the piezoelectric accelerometer are discussed in detail. The article (Ghemari Z, Saad S, Khettab K. Improvement of the vibratory diagnostic method by evolution of the piezoelectric sensor performances[J]. International Journal of Precision Engineering and Manufacturing, 2019, 20(8): 1361-1369.) introduces the research on improving the vibration diagnostic method by improving the performance of piezoelectric sensors. This paper proposes a new type of piezoelectric sensor with higher sensitivity and wider frequency response range. The performance advantages of the new piezoelectric sensor in vibration diagnosis are verified by experiments and compared with traditional sensors. The results show that the new piezoelectric sensor can provide more accurate and reliable vibration signals, thereby improving the accuracy and reliability of vibration diagnosis. The method in this paper has the advantages of real-time, accurate and non-invasive. However, traditional piezoelectric sensors have limitations in sensitivity and frequency response range in vibration diagnosis, which affects the accuracy and reliability of vibration diagnosis. Summary of the invention
[0005] In order to overcome the above-mentioned defects of the prior art, the present invention provides a petroleum and petrochemical flowmeter calibration method based on Coriolis force. The method comprehensively considers the influence of vibration, measurement performance, fluid physical properties and environmental factors on the measurement performance of the flowmeter, and constructs a flowmeter health assessment index system. In view of the vibration of the flowmeter and the change of fluid viscosity, a corresponding data correction method is proposed to overcome the adverse effects of external factors on the measurement accuracy of the flowmeter. At the same time, a meta-learning method is introduced to construct a flowmeter adaptive calibration model, which realizes the rapid and accurate calibration of the flowmeter. The present invention forms a complete set of flowmeter health management solutions for the entire life cycle, which can provide strong technical support for the flowmeter measurement of offshore petroleum and petrochemical projects under complex working conditions.
[0006] To achieve the above object, the present invention provides the following technical solutions:
[0007] A petroleum and petrochemical flow meter calibration method based on Coriolis force, comprising:
[0008] Step S10: Acquire vibration data and ambient temperature data of the petroleum and petrochemical flow meter, and obtain a vibration health index according to the vibration data and ambient temperature data;
[0009] Step S20, obtaining measurement data of a petroleum and petrochemical flow meter and viscosity data of a fluid, and obtaining a measurement performance health indicator according to the measurement data and the viscosity data of the fluid;
[0010] Step S30, obtaining fluid physical property data and environmental data of the petroleum and petrochemical flow meter, and obtaining fluid physical property health indicators and environmental adaptability health indicators according to the fluid physical property data and environmental data;
[0011] Step S40, judging whether the fluid physical property health index and the environmental adaptability health index are within the normal range, if the fluid physical property health index and the environmental adaptability health index are both within the normal range, then go to step S50, otherwise, inspect and maintain the flow meter, and then go to step S30;
[0012] Step S50: Obtaining a comprehensive health index of the flow meter according to the vibration health index, the measurement performance health index, the fluid physical property health index and the environmental adaptability health index;
[0013] Step S60: Obtaining metadata, historical calibration data and real-time measurement parameters of the flow meter;
[0014] Step S70: construct a flowmeter adaptive calibration model based on meta-learning according to the metadata, historical calibration data and real-time measurement parameters of the flowmeter, and adaptively calibrate the petroleum and petrochemical flowmeter based on the flowmeter adaptive calibration model.
[0015] Furthermore, the step S10 includes:
[0016] Step S11, installing vibration sensors and temperature sensors at key locations of the flow meter to collect initial vibration data and ambient temperature data of the flow meter in real time;
[0017] Step S12, performing a calibration test on the vibration sensor under different temperature conditions to obtain a temperature-sensitivity curve of the vibration sensor;
[0018] Step S13, according to the measured value of the temperature sensor, using the temperature-sensitivity curve, calculating the actual sensitivity of the vibration sensor at the current temperature, and obtaining a temperature compensation coefficient;
[0019] Step S14, using the temperature compensation coefficient to correct the initial vibration data to obtain temperature compensated vibration data;
[0020] Step S15, obtaining a vibration health index according to the temperature-compensated vibration data;
[0021] Step S16, determining whether the vibration health index is within the vibration health threshold range, if it is within the range, go to step S20, otherwise, perform vibration health index abnormality processing, and then go to step S11;
[0022] The method for obtaining the vibration health index according to the temperature-compensated vibration data is one or more of the following: a method based on machine learning, a method based on signal processing, a method based on expert knowledge, and a method based on a physical model;
[0023] The physical model for obtaining the vibration health index has three vibration components, and the three vibration components include a first vibration component, a second vibration component and a third vibration component. The first vibration component is related to the vibration acceleration, the second vibration component is related to the vibration velocity, and the third vibration component is related to the vibration displacement.
[0024] Furthermore, the step S20 includes:
[0025] Step S21, obtaining the measurement data of the petroleum and petrochemical flow meter and the viscosity data of the fluid, analyzing the qualitative relationship between the viscosity data and the measurement error, and constructing a viscosity compensation model;
[0026] Step S22, correcting the measurement data of the flow meter according to the viscosity compensation model to obtain corrected measurement data;
[0027] Step S23, obtaining a measurement performance health indicator based on the corrected measurement data;
[0028] Step S24, determining whether the measurement performance health indicator is within the measurement performance health threshold range, if so, proceeding to step S30, otherwise, performing measurement performance health indicator abnormality processing, and then proceeding to step S21;
[0029] The method for obtaining the measurement performance health indicator based on the corrected measurement data is one or more of the following: a method based on statistics, a method based on fault diagnosis, a method based on reliability analysis, and a method based on a physical model;
[0030] The method based on physical model includes:
[0031] The measured performance health index is obtained by multiplying two performance components, wherein the two performance components include a first performance component and a second performance component, wherein the first performance component is related to mass flow and volume flow, and the second performance component is related to density.
[0032] Further, the method for obtaining the fluid physical property health index according to the fluid physical property data is one or more of the following: a method based on physical modeling and a method based on experimental testing;
[0033] Methods for obtaining fluid physical health indicators based on physical modeling include:
[0034] The fluid physical property health index is obtained by multiplying three physical property components, wherein the three physical property components include a first physical property component, a second physical property component and a third physical property component, wherein the first physical property component is related to viscosity, temperature and pressure, the second physical property component is related to fluid sound velocity, and the third physical property component is related to attenuation coefficient;
[0035] The method for obtaining environmental adaptability health indicators based on environmental data is one or more of the following: a method based on accelerated life testing, a method based on field monitoring, a method based on simulation analysis, and a method based on physical models.
[0036] Furthermore, the step S50 includes:
[0037] Step S51, calculating the flow meter comprehensive health index according to the vibration health index, the measurement performance health index, the fluid physical property health index and the environmental adaptability health index;
[0038] Step S52, according to the comprehensive health index, set the health index threshold, and divide the flow plan into three health status levels, namely healthy state, sub-healthy state and unhealthy state; if the flow meter is in a healthy state and a sub-healthy state, go to step S60, if the flow meter is in an unhealthy state, intervene in adjustment and maintenance, and then go to step S10.
[0039] Furthermore, the flow meter comprehensive health index is obtained by weighted summation of vibration health index, measurement performance health index, fluid physical property health index and environmental adaptability health index;
[0040] The weight coefficient of the vibration health index is greater than the weight coefficient of the measurement performance health index, the weight coefficient of the measurement performance health index is greater than the weight coefficient of the fluid physical property health index, and the weight coefficient of the fluid physical property health index is greater than the weight coefficient of the environmental adaptability health index;
[0041] The health index threshold includes a healthy threshold and a sub-healthy threshold, wherein the healthy threshold is greater than the sub-healthy threshold; when the comprehensive health index is greater than or equal to the healthy threshold, the flow meter is in a healthy state; when the comprehensive health index is between the sub-healthy threshold and the healthy threshold, the flow meter is in a sub-healthy state; when the comprehensive health index is less than or equal to the sub-healthy threshold, the flow meter is in an unhealthy state.
[0042] Furthermore, the flowmeter adaptive calibration model is composed of a flowmeter meta-learning model and a flowmeter base learning model;
[0043] The step S70 includes:
[0044] Step S71, prepare a meta-learning data set and design a meta-learning model structure;
[0045] Step S72, training the meta-learning model to obtain a basic meta-learning model;
[0046] Step S73, evaluating the basic meta-learning model to obtain a flow meter meta-learning model;
[0047] Step S74, prepare a base learning data set and obtain personalized hyperparameters;
[0048] Step S75, constructing a flow meter-based learning model, and obtaining a standard flow value after real-time calibration based on the flow meter-based learning model;
[0049] Step S76, adopting a health grade calibration strategy, and calibrating the flow meter in real time according to the standard flow value after real-time calibration.
[0050] Further, the meta-learning dataset includes metadata of the flow meter, historical calibration data, and a comprehensive health index of the flow meter;
[0051] The base learning data set includes historical calibration data and real-time measurement parameters of the flow meter;
[0052] The personalized hyperparameter acquisition method includes: inputting metadata and comprehensive health index of the current flow meter into the flow meter meta-learning model, and the flow meter meta-learning model predicts the optimal base learning model hyperparameters of the flow meter;
[0053] The health classification calibration strategy is: for a flow meter in a healthy state, calibration is performed at a first calibration frequency; for a flow meter in a sub-healthy state, calibration is performed at a second calibration frequency; the second calibration frequency is greater than the first calibration frequency.
[0054] An electronic device comprises a memory, a central processing unit and a computer program stored in the memory and executable on the central processing unit. When the central processing unit executes the computer program, the above-mentioned petroleum and petrochemical flow meter calibration method based on Coriolis force is implemented.
[0055] A computer-readable storage medium stores a computer program, and when the computer program is executed, the above-mentioned petroleum and petrochemical flow meter calibration method based on Coriolis force is implemented.
[0056] Compared with the prior art, the present invention has the following beneficial effects:
[0057] The present invention constructs a flowmeter health assessment index system by comprehensively considering the effects of vibration, measurement performance, fluid properties and environmental factors on the flowmeter measurement performance. It can comprehensively and accurately assess the health status of the flowmeter and promptly discover the performance degradation and potential faults of the flowmeter.
[0058] The present invention proposes a corresponding data correction method for the vibration of the flow meter and the change of fluid viscosity, thereby overcoming the adverse effects of external factors on the measurement accuracy of the flow meter and improving the measurement accuracy and reliability of the flow meter.
[0059] The present invention introduces a meta-learning method to construct a flow meter adaptive calibration model, which makes full use of the historical calibration data of different individual flow meters, significantly reduces the calibration data requirements of a single flow meter, and realizes fast and accurate calibration of the flow meter.
[0060] The present invention proposes a health classification calibration strategy, which reasonably arranges the calibration frequency according to the health status of the flow meter, thereby minimizing the calibration cost while ensuring the measurement performance and extending the service life of the flow meter.
[0061] The present invention forms a complete health management solution for the entire life cycle of flow meters, which can provide strong technical support for flow meter measurement in offshore petroleum and petrochemical projects under complex working conditions and has good engineering application value. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] Figure 1 It is a flow chart of a petroleum and petrochemical flow meter calibration method based on Coriolis force in the present invention;
[0063] Figure 2 It is a schematic diagram of the structure of the flow meter adaptive calibration model of the present invention. DETAILED DESCRIPTION
[0064] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0065] Example 1
[0066] See also Figure 1 As shown, this embodiment provides a petroleum and petrochemical flow meter calibration method based on Coriolis force, including:
[0067] Step S10: Acquire vibration data and ambient temperature data of the petroleum and petrochemical flow meter, and obtain a vibration health index according to the vibration data and ambient temperature data;
[0068] Step S11, installing vibration sensors and temperature sensors at key locations of the flow meter to collect initial vibration data and ambient temperature data of the flow meter in real time;
[0069] Step S12, performing a calibration test on the vibration sensor under different temperature conditions to obtain a temperature-sensitivity curve of the vibration sensor;
[0070] Step S13, according to the measured value of the temperature sensor, using the temperature-sensitivity curve, calculating the actual sensitivity of the vibration sensor at the current temperature, and obtaining a temperature compensation coefficient;
[0071] Step S14, using the temperature compensation coefficient to correct the initial vibration data to obtain temperature compensated vibration data;
[0072] Step S15, obtaining a vibration health index according to the temperature-compensated vibration data;
[0073] Step S16, determining whether the vibration health index is within the vibration health threshold range, if it is within the range, go to step S20, otherwise, perform vibration health index abnormality processing, and then go to step S11;
[0074] Specifically, vibration data is the mechanical vibration signal generated during the operation of the flowmeter, which can include vibration acceleration, velocity and displacement, etc., reflecting the mechanical health status of the flowmeter. Vibration sensors (such as accelerometers, velocity sensors, etc.) and temperature sensors can be installed at key locations such as the measuring tube and vibrator of the flowmeter to collect the vibration data and ambient temperature data of the flowmeter in real time. The vibration signal carries a wealth of information about the health status of the flowmeter, and different failure modes (such as pipe scaling, loose components, bearing wear, etc.) will show specific pattern characteristics in the vibration signal. Vibration data is the key basis for evaluating the mechanical health status of the flowmeter. Accurate and complete vibration data can improve the accuracy and reliability of health status assessment and help to promptly detect and locate mechanical failures.
[0075] In a constant temperature box, control the ambient temperature to change in a certain step size within the operating temperature range of the flow meter. At each temperature point, apply a standard vibration excitation of a known amplitude to the sensor, record the output response of the sensor, and calculate the sensitivity (i.e., the ratio of output to input). Repeat the test multiple times, take the average value, and obtain the temperature-sensitivity data point. Fit the data points with a polynomial function or a piecewise linear function to obtain the temperature-sensitivity curve equation of the sensor. According to the measured value of the temperature sensor, use the temperature-sensitivity curve equation to calculate the actual sensitivity of the vibration sensor at the current temperature and obtain the temperature compensation coefficient; use the temperature compensation coefficient to correct the original output signal of the vibration sensor to obtain the temperature-compensated vibration data; then, based on the temperature-compensated vibration data, obtain the vibration health index;
[0076] The method for obtaining the vibration health index according to the temperature-compensated vibration data may be one or more of the following: a method based on machine learning, a method based on signal processing, a method based on expert knowledge, and a method based on a physical model;
[0077] Machine learning-based method: Use historical vibration data and corresponding vibration health indicators to train machine learning models (such as support vector machines, random forests, etc.) and use the models to predict current vibration health indicators.
[0078] Signal processing-based method: Analyze the vibration signal in time domain, frequency domain, and time-frequency domain, extract characteristic parameters (such as mean, root mean square, kurtosis, frequency band energy, etc.), and give vibration health indicators through feature fusion or decision rules.
[0079] Expert knowledge-based method: Based on the experience and judgment of experts, qualitative or semi-quantitative criteria for vibration health assessment are formulated, such as vibration level, failure mode, risk matrix, etc., and vibration health indicators are given through manual inspection or intelligent diagnosis system.
[0080] Methods for obtaining vibration health indicators based on physical models include:
[0081] The physical model for calculating the vibration health index has three vibration components, and the three vibration components include a first vibration component, a second vibration component and a third vibration component. The first vibration component is related to the vibration acceleration, the second vibration component is related to the vibration velocity, and the third vibration component is related to the vibration displacement.
[0082] The calculation formula is:
[0083]
[0084] Among them, VHI is the vibration health index, It is the root mean square value of vibration acceleration, which reflects the magnitude of vibration energy. The smaller it is, the lower the vibration acceleration level is and the smoother the equipment runs; is the acceleration reference value, used for dimensionless conversion; It is the peak value of the vibration velocity, reflecting the severity of the vibration; is the critical speed value, exceeding which may result in resonance or fatigue damage; The smaller it is, the lower the vibration speed of the equipment is, and the smaller the vibration impact is. It is much smaller than the critical value, indicating that the vibration speed of the equipment does not exceed the allowable range and will not cause excessive damage to the equipment; is the peak-to-peak value of the vibration displacement, reflecting the amplitude of the vibration; is the maximum permissible displacement, exceeding which may result in collision or wear of components; The smaller it is, the smaller the vibration displacement of the equipment and the smaller the relative movement of the components. Far less than the allowable value, indicating that the vibration displacement of the equipment is controlled within a safe range and will not cause collision, wear or fatigue failure of components; is the weight coefficient of the vibration acceleration component, is the weight coefficient of the vibration velocity component, is the weight coefficient of the vibration displacement component, where .
[0085] The vibration health index amplifies the vibration level in high-risk areas and suppresses the vibration level in low-risk areas through nonlinear transformations such as logarithm, square, and cube, making the index more sensitive to abnormalities. When the vibration acceleration, velocity, and displacement exceed their respective thresholds, the corresponding components will increase sharply, resulting in a decrease in the vibration health index, indicating that the vibration health of the equipment has deteriorated.
[0086] When the vibration health index exceeds the vibration health threshold range, it means that the flow meter has abnormal vibration, which may lead to increased measurement errors and even mechanical damage.
[0087] The method for handling abnormal vibration health indicators includes: first, determining the severity of the abnormal vibration, then analyzing the cause of the abnormal vibration, taking corresponding maintenance measures according to the cause, and restarting the flow meter after maintenance.
[0088] Specifically, first, determine the severity of the vibration anomaly. If the vibration health index slightly exceeds the vibration health threshold range, the flow meter can continue to be used, but the vibration trend should be closely monitored and maintenance should be arranged as soon as possible. If the vibration health index is seriously exceeded and reaches a dangerous level, the flow meter must be stopped immediately to prevent further damage.
[0089] Then, analyze the cause of abnormal vibration. Common causes include: loose installation of the flow meter, pipeline vibration transmission, fluid pulsation, bearing wear, rotor imbalance, etc. The cause can be preliminarily determined by checking the installation status, pipeline support, fluid conditions, etc. If necessary, vibration spectrum analysis can be performed to accurately locate the fault location.
[0090] Take appropriate maintenance measures according to the cause. If it is an installation problem, tighten or adjust the bracket in time; if it is pipeline vibration, add pipeline support or shock absorber; if it is fluid pulsation, install pulsation buffer or adjust valve; if it is bearing wear, replace bearing; if it is rotor imbalance, perform dynamic balancing correction. After maintenance, restart the flowmeter and go to step S11 to re-acquire the vibration data of the flowmeter, calculate the vibration health index, and closely monitor the changes in the vibration health index. If the vibration health index returns to normal, it means that the maintenance is effective; if the vibration health index is still abnormal, continue to find the cause until the problem is completely solved.
[0091] Step S10 performs temperature compensation on the vibration data to eliminate the impact of temperature changes on the sensitivity of the sensor and improve the accuracy and reliability of the vibration data; the vibration health index is calculated based on the temperature-compensated vibration data to accurately evaluate the mechanical health status of the flowmeter. By judging whether the vibration health index exceeds the normal range, the mechanical abnormality of the flowmeter can be discovered in time to avoid measurement errors or equipment damage. When handling an abnormality, first determine the severity of the abnormality. Minor abnormalities can continue to be used and closely monitored. Severe abnormalities require immediate shutdown and maintenance to ensure equipment safety. By analyzing the causes of abnormal vibration and taking corresponding maintenance measures, mechanical failures can be solved in a targeted manner and the health of the flowmeter can be restored. Restarting the flowmeter after maintenance and monitoring changes in vibration indicators can verify the maintenance effect. If necessary, optimization can be continued to ensure that mechanical hazards are completely eliminated.
[0092] Step S20, obtaining measurement data of a petroleum and petrochemical flow meter and viscosity data of a fluid, and obtaining a measurement performance health indicator according to the measurement data and the viscosity data of the fluid;
[0093] Further, step S20 includes:
[0094] Step S21, obtaining the measurement data of the petroleum and petrochemical flow meter and the viscosity data of the fluid, analyzing the qualitative relationship between the viscosity data and the measurement error, and constructing a viscosity compensation model;
[0095] Step S22, correcting the measurement data of the flow meter according to the viscosity compensation model to obtain corrected measurement data;
[0096] Step S23, obtaining a measurement performance health indicator based on the corrected measurement data;
[0097] Step S24, determining whether the measurement performance health indicator is within the measurement performance health threshold range, if so, proceeding to step S30, otherwise, performing measurement performance health indicator abnormality processing, and then proceeding to step S21;
[0098] Specifically, a series of standard fluid samples with different viscosities are obtained, and their viscosity values are accurately measured; these standard fluid samples are used to measure through the flowmeter, and the measured value and actual flow value of the flowmeter are recorded; the measurement error of each fluid sample is calculated, that is, the deviation between the measured value and the actual value; a relationship curve between viscosity and measurement error is drawn, and the qualitative relationship between them is analyzed, such as linear, nonlinear, monotonic and other characteristics; according to the qualitative relationship between viscosity and measurement error, a suitable mathematical model is selected, such as a linear model, a polynomial model, an exponential model, etc., to fit the data; through optimization algorithms such as the least squares method, the optimal value of the model parameters is estimated, so as to obtain the specific form and parameters of the viscosity compensation model. During normal operation, the measurement data of the flowmeter and the viscosity data of the fluid are obtained in real time; the obtained viscosity data is substituted into the established viscosity compensation model to calculate the expected measurement error under the viscosity condition; the original measurement data of the flowmeter is corrected using the expected measurement error to obtain the corrected measurement data.
[0099] The measurement data is the original measurement output of the flow meter, reflecting the measurement performance and status of the flow meter. The original measurement data can be collected in real time from the measurement circuit and communication interface of the flow meter, and the measurement data directly reflects the working status and performance indicators of the flow meter. By analyzing the accuracy, stability, repeatability and other characteristics of the measurement data, the measurement performance and health level of the flow meter can be evaluated. Abnormal measurement data (such as data mutation, over-range, unreasonable, etc.) often means that the flow meter is at risk of failure or failure, which requires timely diagnosis and disposal. The measurement data is the direct basis for evaluating the measurement performance and health status of the flow meter. Accurate and reliable measurement data is a basic requirement for the normal operation of the flow meter, and is also an important reference for adaptive calibration and fault diagnosis.
[0100] The measurement data may include mass flow, volume flow, density, etc.;
[0101] The mass flow rate refers to the mass flow rate through the transmission system per unit time, and is usually used to describe the mass delivery of the fluid; the volume flow rate refers to the volume flow rate through the transmission system per unit time.
[0102] The method for obtaining the measurement performance health indicator based on the corrected measurement data is one or more of the following: a method based on statistics, a method based on fault diagnosis, a method based on reliability analysis, and a method based on a physical model;
[0103] Methods based on statistics: Statistical analysis is performed on the flow meter's measurement data to calculate indicators such as error, repeatability, and stability. The measurement performance is judged to be healthy through hypothesis testing, confidence interval estimation, and other methods, and the measurement performance health indicators are given.
[0104] Fault diagnosis-based method: Through the steps of abnormal detection of measurement data, extraction of fault features, and analysis of fault causes, the potential failure modes and severity of the flow meter are diagnosed, and then the measurement performance health level is evaluated and the measurement performance health indicators are given.
[0105] Method based on reliability analysis: According to the failure history data and maintenance records of the flow meter, a reliability model (such as exponential distribution, Weibull distribution, etc.) is established to calculate indicators such as reliability, failure rate, and remaining life, evaluate the health status of the measurement performance, and provide measurement performance health indicators.
[0106] Methods for obtaining performance health indicators based on physical models include:
[0107] The measured performance health index is obtained by multiplying two performance components, wherein the two performance components include a first performance component and a second performance component, wherein the first performance component is related to mass flow and volume flow, and the second performance component is related to density;
[0108] The calculation formula is:
[0109]
[0110] Among them, MPHI is the performance health index. is the mass flow measurement, is the reference value of mass flow rate, is the permissible deviation of mass flow rate. is the volume flow measurement, is the reference value of volume flow rate, is the permissible deviation of the volume flow rate. is the measured density value, is the reference value of density, is the permissible density deviation.
[0111] The method based on the physical model comprehensively considers the three key measurement parameters of mass flow, volume flow and density, and comprehensively reflects the measurement performance status of the flow meter; when the deviation between the mass flow measurement value and the reference value increases, the index will decrease, indicating that the measurement performance has declined; when the deviation between the volume flow measurement value and the reference value increases, the index will decrease, reflecting the deterioration of the measurement performance; when the deviation between the density measurement value and the reference value increases, the index will decrease, indicating that the measurement performance has declined; otherwise, it indicates that the measurement performance has improved.
[0112] When the measurement performance health indicator exceeds the measurement performance health threshold range, it indicates that the measurement performance of the flow meter has degraded, such as decreased accuracy, poor repeatability, poor stability, etc.
[0113] The method for handling abnormal measurement performance health indicators includes: first, determining the specific manifestation and degree of abnormal measurement performance health indicators. The aspects and severity of performance degradation can be determined by checking the error curve, repeatability test data, zero point stability and other indicators of the flow meter.
[0114] Then, analyze the reasons for abnormal measurement performance health indicators. Common reasons include: instrument aging, zero drift, range drift, linearity degradation, electromagnetic interference, etc. The reasons can be preliminarily determined by checking the instrument's usage time, working environment, power quality, etc. If necessary, special instrument diagnostic tests can be performed, such as voltage and current tests, insulation resistance tests, frequency characteristics tests, etc.
[0115] Take appropriate maintenance or repair measures according to the cause. If the instrument is aging, replace it in time; if it is zero drift, perform zero calibration; if it is range drift, perform full range calibration; if it is linearity deterioration, perform multi-point linearity correction; if it is electromagnetic interference, check the grounding and shielding measures.
[0116] After maintenance or repair, return to step S21, reacquire the measurement data of the flow meter, and calculate the measurement performance health index. If the measurement performance health index returns to normal, it means that the maintenance or repair is effective; if the measurement performance health index is still abnormal, continue to find the cause until the problem is completely solved.
[0117] Step S20 can comprehensively evaluate the measurement performance status of the flowmeter by obtaining the measurement data and fluid viscosity data of the flowmeter. By analyzing the relationship between viscosity and measurement error and constructing a viscosity compensation model, the measurement deviation caused by viscosity change can be corrected to improve measurement accuracy. Based on the corrected measurement data, the measurement performance health index is obtained through statistics, fault diagnosis, reliability analysis, physical modeling and other methods, and the measurement performance can be evaluated from multiple angles. By judging whether the measurement performance health index exceeds the normal range, the measurement performance degradation of the flowmeter can be discovered in time to avoid measurement distortion. When handling anomalies, the specific performance is analyzed to determine the aspects and degree of performance degradation, which helps to determine the cause of degradation and formulate targeted maintenance measures. Through in-depth analysis of the cause of the anomaly by means of instrument diagnostic testing and other means, appropriate calibration and maintenance methods can be selected, such as replacing aging parts and eliminating interference. Recalculating the performance indicators after maintenance or repair can verify the treatment effect and continue to optimize if necessary until the measurement performance is completely restored.
[0118] Step S30, obtaining fluid physical property data and environmental data of the petroleum and petrochemical flow meter, and obtaining fluid physical property health indicators and environmental adaptability health indicators according to the fluid physical property data and environmental data;
[0119] Fluid physical property data is the physical property parameter of the measured fluid, which reflects the state and characteristics of the fluid. Physical property sensors (such as viscometers, thermometers, acoustic wave sensors, etc.) can be installed at the inlet and outlet of the flowmeter to measure the physical property parameters of the measured fluid in real time. Fluid physical property parameters are an important factor affecting the measurement performance of the flowmeter. Different fluids (such as water, oil, gas, etc.) have different viscosity, compressibility and other characteristics, which will affect the measurement accuracy and stability of the flowmeter. By real-time monitoring of fluid physical property parameters, the impact of fluid property changes on measurement can be compensated and the adaptability of the flowmeter can be improved. Fluid physical property data is an important basis for adaptive calibration of the flowmeter. Accurate fluid physical property data can improve the measurement accuracy and reliability of the flowmeter and reduce measurement errors caused by changes in fluid properties.
[0120] Environmental data is the parameters of the environment in which the flow meter is located, reflecting the working environment conditions of the flow meter. Environmental sensors (such as temperature and humidity sensors, barometers, etc.) can be deployed in the installation environment of the flow meter to monitor the state parameters of the environment in which the flow meter is located in real time. Environmental conditions will affect the measurement performance and service life of the flow meter. Extreme environmental conditions (such as high temperature, high pressure, strong corrosiveness, etc.) may cause problems such as material aging and component failure of the flow meter, which in turn cause measurement errors and failures. By monitoring environmental parameters in real time, the working status of the flow meter can be evaluated, the operating parameters can be optimized, and the service life can be extended. Environmental data is an important basis for evaluating the adaptability and reliability of the flow meter. Accurate environmental data can help diagnose abnormalities and failures caused by the environment and optimize the operating parameters and maintenance strategies of the flow meter.
[0121] The fluid physical property data may include viscosity, temperature, pressure, fluid sound velocity and attenuation coefficient, etc.; the attenuation coefficient is the sound attenuation coefficient, which is an acoustic parameter; the fluid sound velocity and attenuation coefficient are closely related to the fluid's physical properties such as pressure and viscosity, and can reflect the composition and state changes of the fluid;
[0122] The method of obtaining the fluid physical property health index according to the fluid physical property data is one or more of the following: a method based on physical modeling and a method based on experimental testing;
[0123] Method based on experimental testing: Under laboratory or field conditions, calibration tests are carried out on fluids with different physical properties to test the flow meter's measurement error, repeatability and other indicators. The results are compared with the test results of standard physical property fluids to evaluate the physical property health level and obtain the fluid physical property health indicators.
[0124] Methods for obtaining fluid physical property health indicators based on fluid physical property data based on physical modeling include:
[0125] The fluid physical property health index is obtained by multiplying three physical property components, wherein the three physical property components include a first physical property component, a second physical property component and a third physical property component, wherein the first physical property component is related to viscosity, temperature and pressure, the second physical property component is related to fluid sound velocity, and the third physical property component is related to attenuation coefficient;
[0126] The calculation formula is:
[0127]
[0128] Among them, FPHI is the fluid physical health index, is the measured viscosity, The measured temperature, The measured pressure value, is the nominal value of viscosity, is the nominal value of temperature, is the nominal value of pressure, is the measured fluid sound velocity, is the nominal speed of sound, is the measured attenuation coefficient, is the nominal attenuation coefficient, is the maximum deviation allowed for viscosity, is the maximum allowable deviation in temperature, is the maximum allowable deviation in pressure, is the maximum allowable deviation of the fluid sound velocity, is the maximum allowable deviation of the attenuation coefficient; this formula comprehensively considers multiple physical parameters such as viscosity, temperature, pressure, sound velocity, attenuation, etc., and fully reflects the impact of fluid state on measurement.
[0129] The first physical property component takes into account the parameter with the largest deviation from the nominal value among the three parameters of viscosity, temperature, and pressure. The greater the deviation, the smaller the component value, indicating that the greater the deviation of the fluid physical property. The second physical property component takes into account the relative deviation of the fluid sound velocity, and the third physical property component takes into account the relative deviation of the sound attenuation coefficient. The three physical property components are multiplied together to obtain a comprehensive fluid physical property index. If any physical property parameter exceeds the allowable range, the index will be greatly reduced. The sound velocity and attenuation coefficient are key parameters that characterize the sound propagation characteristics of the fluid. Their abnormal changes often indicate changes in the fluid composition or state, so they are also taken into account as indicators.
[0130] The environmental data may include environmental temperature, humidity, pressure, etc.;
[0131] The method for obtaining the environmental adaptability health index according to the environmental data is one or more of the following: a method based on accelerated life test, a method based on field monitoring, a method based on simulation analysis, and a method based on physical model;
[0132] Method based on accelerated life test: simulate harsh environmental conditions (such as high temperature, high pressure, corrosive media, etc.) in the laboratory, conduct accelerated life test on the flow meter, evaluate the reliability and adaptability of the flow meter in different environments through life data analysis, and obtain environmental adaptability health indicators.
[0133] Method based on on-site monitoring: In the actual application environment, the flow meter and its installation environment are monitored online for a long time, and environmental parameters (such as temperature, humidity, etc.) and flow meter performance parameters (such as measurement error, failure rate, etc.) are collected. The environmental adaptability is evaluated through data analysis to obtain environmental adaptability health indicators.
[0134] Method based on simulation analysis: Utilize finite element analysis, multi-physics field coupling and other simulation technologies to establish a numerical model of the flow meter under different environmental conditions, analyze the impact of environmental factors on the performance of the flow meter through simulation calculation, evaluate the environmental adaptability, and obtain the environmental adaptability health index.
[0135] Methods for calculating environmental adaptability health indicators based on environmental data based on physical models include:
[0136]
[0137] Among them, EAHI stands for Environmental Adaptability Health Index; represents the measured value of the i-th environmental parameter; represents the expected value of the i-th environmental parameter; Represents the allowable deviation of the i-th environmental parameter, that is, the allowable fluctuation range of the measured value relative to the expected value; Represents the weight coefficient of the i-th environmental parameter, reflecting the impact of this parameter on the environmental adaptability health index, satisfying ; m is a power index, which is used to adjust the sensitivity of the deviation value, and is usually 1 or 2; when m=1, the indicator responds linearly to the change of the deviation value; when m=2, the indicator is more sensitive to the change of the deviation value and can amplify the impact of larger deviations. This physical model comprehensively considers environmental factors such as temperature, humidity, and pressure, and reflects the flow meter's ability to withstand extreme environments.
[0138] When the deviation between the measured value and the expected value of the environmental parameter is small, the deviation is close to 0 and the EAHI is close to 1, indicating that the flow meter matches the environmental conditions well and has a high adaptability. When the measured values of certain environmental parameters deviate seriously from the expected values, the deviation is large and the EAHI tends to 0, indicating that the flow meter matches the environmental conditions poorly and has a low adaptability.
[0139] Step S30 can evaluate the impact of fluid properties and environmental conditions on the flowmeter by acquiring fluid physical property data and environmental data. Real-time monitoring of fluid viscosity, temperature, pressure, speed of sound and other parameters can compensate for measurement errors caused by changes in fluid properties and improve the adaptability of the flowmeter. Real-time monitoring of environmental temperature, humidity, air pressure and other parameters can evaluate the impact of extreme environments on the flowmeter, optimize operating parameters and extend service life. By obtaining fluid physical property health indicators and environmental adaptability indicators through physical modeling, experimental testing, simulation analysis and other methods, the adaptability of the flowmeter can be quantitatively evaluated.
[0140] It should be noted that the process of obtaining vibration health indicators, measurement performance health indicators, fluid physical property health indicators and environmental adaptability health indicators involves many thresholds and weight coefficients, and the setting of thresholds and weight coefficients requires a lot of historical data and experience. Machine learning methods can be used to automatically find the optimal threshold and weight combination by training historical data. For example, these parameters can be used as hyperparameters of the machine learning model, and the optimal parameter combination can be found in the parameter space through grid search, random search, Bayesian optimization and other methods to maximize the correlation between the indicator and the actual health status of the equipment. This process can be achieved with the help of some automatic machine learning tools, such as Auto-sklearn, Auto-Keras, etc.
[0141] Step S40, judging whether the fluid physical property health index and the environmental adaptability health index are within the normal range, if the fluid physical property health index and the environmental adaptability health index are both within the normal range, then go to step S50, otherwise, inspect and maintain the flow meter, and then go to step S30;
[0142] The method of overhauling and maintaining the flow meter is a common method used by those skilled in the art and will not be described in detail in this embodiment.
[0143] By judging whether the fluid physical property health index and environmental adaptability health index are within their respective threshold ranges, abnormal changes in fluid physical properties or environmental conditions can be discovered in a timely manner. This helps prevent measurement errors and equipment damage caused by changes in fluid physical properties or harsh environments.
[0144] Step S50: Obtaining a comprehensive health index of the flow meter according to the vibration health index, the measurement performance health index, the fluid physical property health index and the environmental adaptability health index;
[0145] Further, step S50 includes:
[0146] Step S51, calculating the flow meter comprehensive health index according to the vibration health index, the measurement performance health index, the fluid physical property health index and the environmental adaptability health index;
[0147] Step S52, according to the comprehensive health index, the health index threshold is set, and the flow plan is divided into three health status levels, namely healthy state, sub-healthy state and unhealthy state; if the flow meter is in a healthy state and a sub-healthy state, then go to step S60, if the flow meter is in an unhealthy state, then intervene in adjustment and maintenance, and then go to step S10;
[0148] The flow meter comprehensive health index is obtained by weighted summation of vibration health index, measurement performance health index, fluid physical property health index and environmental adaptability health index;
[0149] The weight coefficient of the vibration health index is greater than the weight coefficient of the measurement performance health index, the weight coefficient of the measurement performance health index is greater than the weight coefficient of the fluid physical property health index, and the weight coefficient of the fluid physical property health index is greater than the weight coefficient of the environmental adaptability health index;
[0150] The health index threshold includes a health threshold and a sub-health threshold, wherein the health threshold is greater than the sub-health threshold; when the comprehensive health index is greater than or equal to the health threshold, the flow meter is in a healthy state; when the comprehensive health index is between the sub-health threshold and the health threshold, the flow meter is in a sub-health state; when the comprehensive health index is less than or equal to the sub-health threshold, the flow meter is in an unhealthy state;
[0151] It can be understood that the comprehensive health index organically combines the evaluation results of the four individual health indicators by weighted summation to obtain a quantitative indicator that comprehensively reflects the health status of the flowmeter. Vibration is one of the most common and serious failure modes of flowmeters. Excessive vibration not only causes measurement errors, but also may cause mechanical damage and shorten the service life of the flowmeter. Therefore, the vibration health index has the greatest impact on the comprehensive health status of the flowmeter. Measurement performance directly determines the key indicators of the flowmeter such as accuracy, repeatability, and stability, and is the core function of the flowmeter. If the measurement performance degrades, the flowmeter may not meet the use requirements even if other indicators are normal. Therefore, the measurement performance health index also has a high weight in the comprehensive health assessment. Changes in fluid properties can affect the accuracy of flow measurement, especially in mass flowmeters or density-sensitive flowmeters. However, compared with vibration and measurement performance, the impact of fluid properties is relatively small and can be reduced by compensation or correction methods. Therefore, the impact of fluid properties on the comprehensive health of the flowmeter is lower than that of vibration and measurement performance. Environmental data has the least impact on the comprehensive health of the flowmeter, because in most cases, flowmeters are used in relatively stable industrial environments, and the range of changes in environmental conditions is limited. Moreover, modern flow meters usually have better environmental adaptability designs, such as temperature compensation, sealing protection, etc.
[0152] Step S50 comprehensively considers the health indicators of the flowmeter in terms of vibration, measurement, fluid properties, environment, etc., and comprehensively evaluates the overall health status of the equipment. Through the weighted average method, the importance of each indicator can be reasonably allocated, highlighting the key indicators and taking into account the secondary indicators. The weights can be reasonably set and optimized based on expert experience, historical data, etc. to reflect the focus under different working conditions. The generated comprehensive health index is simple and intuitive, which is convenient for quantitative comparison and trend analysis. The comprehensive health index can realize the centralized management of the health status of the flowmeter. Managers can use the comprehensive health index to timely grasp the health profile of all flowmeters, allocate operation and maintenance resources in a targeted manner, and give priority to high-risk equipment. This helps to improve operation and maintenance efficiency and reduce accidents. Through closed-loop management of the comprehensive health status of the flowmeter, continuous improvement is made to improve the reliability and service life of the flowmeter.
[0153] Step S60: Obtaining metadata, historical calibration data and real-time measurement parameters of the flow meter;
[0154] The metadata of the flow meter includes static attributes such as the model, caliber, material, installation location, and usage duration of the flow meter, which reflect the inherent characteristics and usage environment of the flow meter;
[0155] The historical calibration data includes the calibration records of the flow meter in the past period of time, such as the calibration time, the measurement deviation before and after the calibration, the change of the calibration parameters, etc., reflecting the calibration history and calibration effect of the flow meter.
[0156] The real-time measurement parameters include signal characteristics related to flow rate, such as frequency, phase, amplitude, and driving current;
[0157] Specifically, the Coriolis flowmeter indirectly measures the mass flow rate by measuring the Coriolis force effect generated when the fluid passes through a U-shaped vibrating tube. The U-shaped tube vibrates under the action of the electromagnetic exciter. The vibration frequency is related to the fluid density, and the vibration phase difference is related to the mass flow rate. The sensor picks up the vibration signal of the U-shaped tube and converts it into an electrical signal output. Frequency, phase, etc. are the characteristic quantities extracted from these electrical signals, reflecting physical quantities such as fluid density and mass flow rate.
[0158] The flowmeter caliber information can be used to correct the measured value of the flowmeter and compensate for the system error caused by the caliber difference. At the same time, the caliber information is also an important basis for selecting the appropriate installation location and pipeline layout. The material of the flowmeter determines the applicable fluid type, temperature range, pressure level and other working conditions. Flowmeters of different materials differ in corrosion resistance, wear resistance, temperature stability and other aspects. Understanding the material information of the flowmeter will help determine whether it is suitable for the current working environment and whether there are risks such as material aging and corrosion. The installation location of the flowmeter will affect its measurement performance and maintenance convenience. Improper installation location may cause the flowmeter to have problems such as pneumatic noise, vibration interference, and pipeline stress, which will cause measurement errors and mechanical damage. Understanding the specific installation location of the flowmeter will help evaluate whether its installation conditions meet the requirements and whether there are potential risk factors.
[0159] Calibration time information can be used to analyze the stability and drift trend of the flow meter's measurement performance and evaluate the calibration effect and validity period. The measurement deviation before and after calibration reflects the degree of change in the flow meter's measurement performance and the calibration effect. By comparing the deviation values before and after calibration, the drift rate and stability of the flow meter can be evaluated.
[0160] Step S60 obtains the metadata, historical calibration data and real-time measurement parameters of the flow meter, so as to fully understand the basic situation, usage history and current working status of the flow meter, and provide the comprehensive information support required for adaptive calibration. The metadata can determine the basic characteristics and constraints of the flow meter. The historical calibration data provides important empirical data for adaptive calibration.
[0161] Step S70: constructing a flow meter adaptive calibration model based on meta-learning according to the metadata, historical calibration data and real-time measurement parameters of the flow meter, and adaptively calibrating the petroleum and petrochemical flow meter based on the flow meter adaptive calibration model;
[0162] The flowmeter adaptive calibration model is composed of a flowmeter meta-learning model and a flowmeter base learning model, such as Figure 2As shown;
[0163] Further, step S70 includes:
[0164] Step S71, prepare a meta-learning data set and design a meta-learning model structure;
[0165] Step S72, training the meta-learning model to obtain a basic meta-learning model;
[0166] Step S73, evaluating the basic meta-learning model to obtain a flow meter meta-learning model;
[0167] The meta-learning dataset includes metadata, historical calibration data, and a comprehensive health index of the flow meter;
[0168] Specifically, select appropriate meta-learning algorithms (such as MAML, Reptile, etc.) and neural network structures (such as CNN, LSTM, etc.) to build a meta-learning model. The input of the model is the metadata, historical calibration data and comprehensive health index of the flow meter, and the output is the hyperparameters used for the flow meter base learning model (such as the kernel function type, kernel function parameters, penalty coefficient, etc. of SVR). Use the training set data in the meta-learning dataset to train the meta-learning model, optimize the model parameters, and obtain the basic meta-learning model. Use the test set data to evaluate the performance of the trained basic meta-learning model. The evaluation indicators can be the accuracy of hyperparameter prediction, the improvement of the calibration effect of the flow meter base learning model after using the predicted hyperparameters, etc. If the performance meets the requirements, the final flow meter meta-learning model is obtained; otherwise, it is necessary to adjust the basic meta-learning model structure or optimize the algorithm and retrain.
[0169] Step S74, prepare a base learning data set and obtain personalized hyperparameters;
[0170] Step S75, constructing a flow meter-based learning model, and obtaining a standard flow value after real-time calibration based on the flow meter-based learning model;
[0171] Step S76, adopting a health classification calibration strategy, and calibrating the flow meter in real time according to the standard flow value after the real-time calibration;
[0172] The health classification calibration strategy is: for a flow meter in a healthy state, calibration is performed at a first calibration frequency; for a flow meter in a sub-healthy state, calibration is performed at a second calibration frequency; the second calibration frequency is greater than the first calibration frequency;
[0173] The base learning data set includes historical calibration data and real-time measurement parameters of the flow meter;
[0174] The personalized hyperparameter acquisition method includes: inputting metadata and comprehensive health index of the current flow meter into the flow meter meta-learning model, and the flow meter meta-learning model predicts the optimal base learning model hyperparameters of the flow meter;
[0175] The flow meter based learning model construction method includes:
[0176] Select a suitable machine learning regression algorithm (such as SVR, GPR, NN, etc.) to build a basic learning model. The input of the model is the personalized hyperparameters output by the flow meter meta-learning model, the historical calibration data of the current flow meter, and the real-time measurement parameters; the output of the model is the standard flow value after real-time calibration;
[0177] The base learning model is trained using the training set data in the base learning data set to learn the mapping relationship between the measured values and the reference values. During the training process, the model parameters or structure are fine-tuned according to the performance feedback of the validation set data to obtain the final flow meter base learning model.
[0178] The adaptive calibration model based on meta-learning can quickly adapt to flow meters of different models and working conditions. It initializes model parameters according to metadata, uses historical calibration data for transfer learning and model fine-tuning, and then combines real-time data for online adaptation, thereby achieving high-precision and highly adaptable automatic calibration. Compared with traditional offline calibration methods, adaptive calibration based on meta-learning can continuously optimize the model, track the performance changes of the equipment in a timely manner, and automatically compensate for error sources, thereby significantly improving the accuracy and reliability of measurements. Once trained, the adaptive calibration model can be widely used on multiple flow meters of the same model, reducing a large amount of manual calibration work and reducing calibration costs. This method has strong versatility and is not only suitable for flow meters in the petroleum and petrochemical fields, but can also be extended to the intelligent automatic calibration of other industrial process measurement systems.
[0179] Example 2
[0180] This embodiment discloses an electronic device, including a memory, a central processing unit, and a computer program stored in the memory and executable on the central processing unit. When the central processing unit executes the computer program, the above-mentioned petroleum and petrochemical flow meter calibration method based on Coriolis force is implemented.
[0181] Since the electronic device introduced in this embodiment is an electronic device used to implement a petroleum and petrochemical flow meter calibration method based on Coriolis force in the embodiment of the present application, based on the petroleum and petrochemical flow meter calibration method based on Coriolis force introduced in the embodiment of the present application, the technical personnel of the field can understand the specific implementation of the electronic device of the present embodiment and its various variations, so how the electronic device implements the method in the embodiment of the present application is not described in detail here. As long as the technical personnel of the field implement the electronic device used in the petroleum and petrochemical flow meter calibration method based on Coriolis force in the embodiment of the present application, it belongs to the scope of protection of the present application.
[0182] Example 3
[0183] This embodiment discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed, the above-mentioned petroleum and petrochemical flow meter calibration method based on Coriolis force is implemented.
[0184] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters, weights and thresholds in the formula are set by technicians in this field according to actual conditions.
[0185] The above embodiments may be implemented in whole or in part by software, hardware, firmware or any other combination thereof. When implemented by software, the above embodiments may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired network or a wireless network. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media sets. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD) or a semiconductor medium. The semiconductor medium may be a solid-state hard disk.
[0186] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the present invention can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0187] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0188] In the several embodiments provided by the present invention, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are only schematic, for example, the division of the units is only one, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0189] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0190] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0191] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
[0192] Finally: The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A petroleum and petrochemical flow meter calibration method based on Coriolis force, It is characterized in that include: Step S10: Acquire vibration data and ambient temperature data of the petroleum and petrochemical flow meter, and obtain a vibration health index according to the vibration data and ambient temperature data; Step S20, obtaining measurement data of a petroleum and petrochemical flow meter and viscosity data of a fluid, and obtaining a measurement performance health indicator according to the measurement data and the viscosity data of the fluid; Step S30, obtaining fluid physical property data and environmental data of the petroleum and petrochemical flow meter, and obtaining fluid physical property health indicators and environmental adaptability health indicators according to the fluid physical property data and environmental data; Step S40, judging whether the fluid physical property health index and the environmental adaptability health index are within the normal range, if the fluid physical property health index and the environmental adaptability health index are both within the normal range, then go to step S50, otherwise, inspect and maintain the flow meter, and then go to step S30; Step S50: Obtaining a comprehensive health index of the flow meter according to the vibration health index, the measurement performance health index, the fluid physical property health index and the environmental adaptability health index; the comprehensive health index of the flow meter is obtained by weighted summation of the vibration health index, the measurement performance health index, the fluid physical property health index and the environmental adaptability health index; Step S60: Obtaining metadata, historical calibration data and real-time measurement parameters of the flow meter; Step S70: constructing a flow meter adaptive calibration model based on meta-learning according to the metadata, historical calibration data and real-time measurement parameters of the flow meter, and adaptively calibrating the petroleum and petrochemical flow meter based on the flow meter adaptive calibration model; The step S10 comprises: Step S11, installing vibration sensors and temperature sensors at key locations of the flow meter to collect initial vibration data and ambient temperature data of the flow meter in real time; Step S12, performing a calibration test on the vibration sensor under different temperature conditions to obtain a temperature-sensitivity curve of the vibration sensor; Step S13, according to the measured value of the temperature sensor, using the temperature-sensitivity curve, calculating the actual sensitivity of the vibration sensor at the current temperature, and obtaining a temperature compensation coefficient; Step S14, using the temperature compensation coefficient to correct the initial vibration data to obtain temperature compensated vibration data; Step S15, obtaining a vibration health index according to the temperature-compensated vibration data; Step S16, determining whether the vibration health index is within the vibration health threshold range, if it is within the range, go to step S20, otherwise, perform vibration health index abnormality processing, and then go to step S11; The method for obtaining the vibration health index according to the temperature-compensated vibration data is one or more of the following: a method based on machine learning, a method based on signal processing, a method based on expert knowledge, and a method based on a physical model; The physical model for obtaining the vibration health index has three vibration components, the three vibration components include a first vibration component, a second vibration component and a third vibration component, the first vibration component is related to the vibration acceleration, the second vibration component is related to the vibration velocity, and the third vibration component is related to the vibration displacement; The step S20 comprises: Step S21, obtaining the measurement data of the petroleum and petrochemical flow meter and the viscosity data of the fluid, analyzing the qualitative relationship between the viscosity data and the measurement error, and constructing a viscosity compensation model; Step S22, correcting the measurement data of the flow meter according to the viscosity compensation model to obtain corrected measurement data; Step S23, obtaining a measurement performance health indicator based on the corrected measurement data; The method for obtaining the measurement performance health indicator based on the corrected measurement data is one or more of the following: a method based on statistics, a method based on fault diagnosis, a method based on reliability analysis, and a method based on a physical model; Step S24, determining whether the measurement performance health indicator is within the measurement performance health threshold range, if so, proceeding to step S30, otherwise, performing measurement performance health indicator abnormality processing, and then proceeding to step S21; The method based on physical model includes: The measured performance health index is obtained by multiplying two performance components, wherein the two performance components include a first performance component and a second performance component, wherein the first performance component is related to mass flow and volume flow, and the second performance component is related to density; The method for obtaining the fluid physical property health index according to the fluid physical property data is one or more of the following: a method based on physical modeling and a method based on experimental testing; Methods for obtaining fluid physical health indicators based on physical modeling include: The fluid physical property health index is obtained by multiplying three physical property components, wherein the three physical property components include a first physical property component, a second physical property component and a third physical property component, wherein the first physical property component is related to viscosity, temperature and pressure, the second physical property component is related to fluid sound velocity, and the third physical property component is related to attenuation coefficient; The method for obtaining environmental adaptability health indicators based on environmental data is one or more of the following: a method based on accelerated life testing, a method based on field monitoring, a method based on simulation analysis, and a method based on physical models.
2. A petroleum and petrochemical flow meter calibration method based on Coriolis force according to claim 1, It is characterized in that The step S50 comprises: Step S51, calculating the flow meter comprehensive health index according to the vibration health index, the measurement performance health index, the fluid physical property health index and the environmental adaptability health index; Step S52, according to the comprehensive health index, set the health index threshold, and divide the flow plan into three health status levels, namely healthy state, sub-healthy state and unhealthy state; if the flow meter is in a healthy state and a sub-healthy state, go to step S60, if the flow meter is in an unhealthy state, intervene in adjustment and maintenance, and then go to step S10.
3. A petroleum and petrochemical flow meter calibration method based on Coriolis force according to claim 2, It is characterized in that The weight coefficient of the vibration health index is greater than the weight coefficient of the measurement performance health index, the weight coefficient of the measurement performance health index is greater than the weight coefficient of the fluid physical property health index, and the weight coefficient of the fluid physical property health index is greater than the weight coefficient of the environmental adaptability health index; The health index threshold includes a healthy threshold and a sub-healthy threshold, wherein the healthy threshold is greater than the sub-healthy threshold; when the comprehensive health index is greater than or equal to the healthy threshold, the flow meter is in a healthy state; when the comprehensive health index is between the sub-healthy threshold and the healthy threshold, the flow meter is in a sub-healthy state; when the comprehensive health index is less than or equal to the sub-healthy threshold, the flow meter is in an unhealthy state.
4. A petroleum and petrochemical flow meter calibration method based on Coriolis force according to claim 1, It is characterized in that The flowmeter adaptive calibration model is composed of a flowmeter meta-learning model and a flowmeter base learning model; The step S70 includes: Step S71, prepare a meta-learning data set and design a meta-learning model structure; Step S72, training the meta-learning model to obtain a basic meta-learning model; Step S73, evaluating the basic meta-learning model to obtain a flow meter meta-learning model; Step S74, prepare a base learning data set and obtain personalized hyperparameters; Step S75, constructing a flow meter-based learning model, and obtaining a standard flow value after real-time calibration based on the flow meter-based learning model; Step S76, adopting a health grade calibration strategy, and calibrating the flow meter in real time according to the standard flow value after real-time calibration.
5. A petroleum and petrochemical flow meter calibration method based on Coriolis force according to claim 4, It is characterized in that The meta-learning dataset includes metadata, historical calibration data, and a comprehensive health index of the flow meter; The base learning data set includes historical calibration data and real-time measurement parameters of the flow meter; The personalized hyperparameter acquisition method includes: inputting metadata and comprehensive health index of the current flow meter into the flow meter meta-learning model, and the flow meter meta-learning model predicts the optimal base learning model hyperparameters of the flow meter; The health classification calibration strategy is: for a flow meter in a healthy state, calibration is performed at a first calibration frequency; for a flow meter in a sub-healthy state, calibration is performed at a second calibration frequency; the second calibration frequency is greater than the first calibration frequency.
6. An electronic device comprising a memory, a central processing unit, and a computer program stored in the memory and executable on the central processing unit, It is characterized in that When the central processing unit executes the computer program, a petroleum and petrochemical flow meter calibration method based on Coriolis force as described in any one of claims 1-5 is implemented.
7. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed, the petroleum and petrochemical flow meter calibration method based on Coriolis force according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Methods of manufacturing and temperature calibrating a coriolis mass flow rate sensor
CN102782463A
Method for assessing the state of the measuring system of a coriolis flow meter
RU2773633C1
