Background
With the increasing popularity of the internet, artificial intelligence is widely applied to various fields as a product of the internet. For example, when the security inspection is carried out at an airport or a railway station, the prediction and the capture of some dangerous actions can be carried out by utilizing artificial intelligence in combination with a camera and the like, so that an alarm is triggered, and measures are taken in time. For example, the leakage detection can be performed on pipelines such as underground natural gas installed by people by combining artificial intelligence with the existing equipment, and measures can be taken in time to stop loss. Artificial intelligence is being used more and more widely in the present society, and not only can be well utilized in the fields of security inspection, industry, network information security, hacking and the like, but also plays a very important role in promoting the development of the scientific and technological society.
Traditional leak detection has focused primarily on the detection of power transmission lines, but as we develop it has been found that the detection of leaks should not be done solely for saltfish power transmission. In fact, devices containing gas or liquid, such as a water supply circuit or a natural gas transmission pipeline, a carbon dioxide transmission line, and the like, should be subjected to key leak detection. Moreover, the traditional leak detection method mainly depends on human or special equipment, the problem is not very obvious when large-scale leakage is detected, but when small leakage is detected, the traditional detection method consumes manpower resources and funds.
The existing method for detecting the leakage of the pipeline device containing liquid or gas and the like mainly comprises the steps of purchasing professional detection equipment through manual detection in combination with professional sensor equipment arranged beside a pipeline in a special pipeline lead form to analyze sound signals related to the leakage so as to judge whether the leakage occurs or not; and some installation models based on analytical equations describing the installation behaviors are constructed for detection.
The existing leak detection technology has the problems that expensive capital is needed to buy professional equipment, an experiential inspector needs to operate the professional equipment, data reading and inputting are deeply known, the professional equipment needs to be modified according to different scenes, and installation after modification is difficult. In addition, a large number of sensors are needed to be purchased, which is very costly, and the implementation is also very tedious, which is not beneficial to the operation.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides an automatic pipeline leakage detection method based on artificial intelligence.
In order to achieve the purpose of the invention, the invention adopts the technical scheme that:
an automatic pipeline leakage detection method based on artificial intelligence comprises the following steps:
s1, acquiring historical initial data acquired by the pipeline sensor;
s2, marking each measured value in the historical initial data;
s3, acquiring initial measurement data of the pressure pump, the safety valve and the liquid filling pipe;
s4, calculating the current pressure value of the pipeline according to the initial measurement data collected in the step S3 and the historical initial data collected in the step S1;
s5, comparing the current pressure value of the pipeline calculated in the step S4 with the initial pressure value collected in the step S1, and calculating the final pressure value of the pipeline according to the operation torque of the pressure pump;
s6, performing data fitting on the plurality of pipeline final pressure values with different timestamps calculated in the step S5 to obtain the periodic motion of the pressurizing pump;
s7, calculating the real pressure value of the pipeline according to the periodic motion of the pressure pump obtained in the step S6;
s8, performing iterative training on the historical non-leakage and leakage data sets of the pipeline by adopting an artificial intelligence model, and outputting a data track tracking expected value according to the real pressure value of the pipeline calculated in the step S7;
and S9, comparing the expected tracking value of the data track obtained in the step S8 with the non-leakage data, and judging whether the pipeline leaks.
Further, the step S1 is preceded by detecting the operation states of the pressurizing pump and the safety valve device, and checking the detected temperature of the abnormal change of the current and the piping.
Further, the historical initial data collected in step S1 specifically includes: dielectric fluid pressure value, pipeline surface temperature, soil temperature, the gas pressure value in the surge tank, the timestamp of measuring the sample, current value.
Further, the calculation formula of the current pressure value of the pipeline in the step S4 is as follows:
Ptn=f(xn,xn-1,...,xn-N)*Tn
wherein the content of the first and second substances,
is an instant time t
nF is the transfer function of the pipeline pressure, N is the measurement sample number value, T
nIs the ratio of the long term temperature difference to the short term temperature difference between the pipeline and the ambient temperature.
Further, the calculation formula of the final pressure value of the pipeline in the step S5 is as follows:
Pn=Ptn+(Psva-Peva)+(Pspum-Pepum)
wherein, PnTo the final pressure value of the pipeline, PsvaInitial pressure value, P, measured by the sensor for the safety valve at installationevaPressure value, P, of safety valve measured by sensor after leakage of pipelinespumInitial pressure value, P, measured by a sensor at the time of installation of the pressure pumpepumThe pressure value of the booster pump measured by the sensor after the pipeline leaks.
Further, the calculation formula of the real pressure value of the pipeline in the step S7 is as follows:
Pture=Pn-Ppum+Cpea
wherein, PtureAs the true pressure value of the pipeline, PpumInfluencing the pressure value of the operating cycle of the pressure pump measured for the sensor, CpeaThe resulting pressure change values before and after the instant time are measured for the sensor.
Further, the step S9 specifically includes:
judging whether the difference value between the expected tracking value of the data track obtained in the step S8 and the data which are not leaked is larger than a set threshold value or not; if yes, the pipeline is leaked; otherwise, it indicates that no leakage occurs in the pipeline.
Further, after the step S9 determines that the pipeline has a leak, the leak coefficient of the sample in the training data set used by the artificial intelligence model is calculated.
Further, the leakage coefficient is calculated by dividing the expected tracking value of the data output in step S8 by the non-leakage data of the pipeline history.
Further, the step S9 is followed by: comparing the historical non-leakage and leakage data sets of the pipeline with the leakage rate data set of the pipeline, and calculating the current leakage rate of the pipeline; and then outputting a leakage rate value and carrying out early warning.
The invention has the following beneficial effects:
(1) the invention utilizes the existing sensor in the pipeline system to carry out leakage detection, does not need to purchase redundant expensive professional equipment, greatly reduces a large amount of manpower and capital cost spent on leakage detection, and has strong operability;
(2) the invention combines an artificial intelligence model and utilizes a simulation result training detector to detect whether leakage occurs; meanwhile, the detector only needs to learn the most basic related detection knowledge to identify whether leakage occurs through a small amount of available sensor data in installation, and the expense of engaging a professional detector is greatly reduced.
Detailed Description
The following description of the embodiments of the present invention is provided to facilitate the understanding of the present invention by those skilled in the art, but it should be understood that the present invention is not limited to the scope of the embodiments, and it will be apparent to those skilled in the art that various changes may be made without departing from the spirit and scope of the invention as defined and defined in the appended claims, and all matters produced by the invention using the inventive concept are protected.
The embodiment of the invention provides an artificial intelligence-based automatic pipeline leak detection method, which comprises the following steps of S1-S9:
s1, acquiring historical initial data acquired by the pipeline sensor;
in this embodiment, in the process of performing installation test on a pipeline system, the operation conditions of equipment such as a booster pump and a safety valve need to be detected first, so that the influence on the later detection value caused by abnormal operation of the equipment when data marking is performed later is avoided.
The detected temperature of the abnormal changes in current and piping, etc., are then checked, as this information may change the confidence level of the determined leakage when later passed to the leakage decision module.
And finally, when the equipment, the temperature and other data are confirmed to be normal, acquiring historical initial data by using a pipeline sensor. Specifically, the collected historical initial data specifically includes: the method comprises the following steps of (1) measuring initial data such as a dielectric fluid pressure value, the temperature of the outer surface of a pipeline read by a sensor, the soil temperature, the gas pressure value in a balance tank, a time stamp of a measured sample, a current value and the like; and the measurement data for all sensors is set to be collected once per minute.
S2, marking each measured value in the historical initial data;
in this embodiment, after the historical initial data is collected in step S1, each initial measurement value in the historical initial data is labeled, and each initial measurement value is set to a unique label, for example, the dielectric fluid pressure value is 1.
S3, acquiring initial measurement data of the pressure pump, the safety valve and the liquid filling pipe;
in the embodiment, the initial data measuring system is formed by three components of the pressurizing pump, the safety valve and the liquid charging pipe, and the initial data of the pressurizing pump, the safety valve and the liquid charging pipe are measured.
S4, calculating the current pressure value of the pipeline according to the initial measurement data collected in the step S3 and the historical initial data collected in the step S1;
in this embodiment, the present invention calculates the instantaneous time t from the initial measurement data collected in step S3 in combination with the temperature and current values of the outer surface of the pipe collected in step S1nThe current pressure value of the pipeline is calculated according to the formula:
Ptn=f(xn,xn-1,...,xn-N)*Tn
wherein the content of the first and second substances,
is an instant time t
nF is the transfer function of the pipeline pressure, N is the measurement sample number value, T
nIs the ratio of the long term temperature difference to the short term temperature difference between the pipeline and the ambient temperature.
In order to improve the calculation effect of the pipeline pressure value, the method selects several different transfer functions to calculate the pressure value, and takes the optimal value as the final measurement value of the pipeline model.
S5, comparing the current pressure value of the pipeline calculated in the step S4 with the initial pressure value collected in the step S1, and calculating the final pressure value of the pipeline according to the operation torque of the pressure pump;
in this embodiment, the present invention respectively calculates a plurality of final pressure values of the pipeline at different timestamps, and the calculation formula is expressed as:
Pn=Ptn+(Psva-Peva)+(Pspum-Pepum)
wherein, PnTo the final pressure value of the pipeline, PsvaInitial pressure value, P, measured by the sensor for the safety valve at installationevaPressure value, P, of safety valve measured by sensor after leakage of pipelinespumInitial pressure value, P, measured by a sensor at the time of installation of the pressure pumpepumThe pressure value of the booster pump measured by the sensor after the pipeline leaks.
S6, performing data fitting on the plurality of pipeline final pressure values with different timestamps calculated in the step S5 to obtain the periodic motion of the pressurizing pump;
in this embodiment, after obtaining the final pressure values of the pipelines with different timestamps calculated in step S5, the present invention combines the final pressure values of the pipelines with data fitting and mathematical law derivation by using a leakage simulator, so as to obtain the periodic behavior of the pressure pump.
S7, calculating the real pressure value of the pipeline according to the periodic motion of the pressure pump obtained in the step S6;
in this embodiment, according to the periodic motion of the pressurizing pump obtained in step S6, the influence of the pressure value measurement result influenced by the operation period of the pressurizing pump measured by the sensor is subtracted, so as to calculate a plurality of new real pressure values of the pipeline as the final output result of the leakage simulator. The calculation formula of the real pressure value of the pipeline is as follows:
Pture=Pn-Ppum+Cpea
wherein, PtureAs the true pressure value of the pipeline, PpumInfluencing the pressure value of the operating cycle of the pressure pump measured for the sensor, CpeaThe resulting pressure change values before and after the instant time are measured for the sensor.
S8, performing iterative training on the historical non-leakage and leakage data sets of the pipeline by adopting an artificial intelligence model, and outputting a data track tracking expected value according to the real pressure value of the pipeline calculated in the step S7;
in this embodiment, after a plurality of new pipeline real pressure values are obtained through calculation, the plurality of pipeline real pressure values are input to the decision module for processing.
The decision module adopts an artificial intelligence model to carry out iterative training on the historical unleaky and leaky data sets of the pipeline, and specifically adopts a Bayesian algorithm to carry out iterative learning for a plurality of times by combining the historical unleaky and leaky data sets of the pipeline, so as to execute a data tracking task. The invention executes the system data track tracking in the limited time interval, and corrects the control input by using the error information measured in the previous operation or previous operations, so that the repeated task can be better performed in the next operation process. This is repeated until the desired value of the data trace is output over the entire time interval, which may be current or pressure, etc.
And S9, comparing the expected tracking value of the data track obtained in the step S8 with the non-leakage data, and judging whether the pipeline leaks.
In this embodiment, the present invention performs a comparison operation according to the expected tracking value of the data track obtained in step S8 and the non-leakage data, and determines whether a pipeline leaks according to a difference between the expected tracking value of the data track and the non-leakage data.
Specifically, the method judges whether the difference value between the expected data track tracking value and the non-leakage data is larger than a set threshold value; if so, the pipeline is indicated to be leaked, otherwise, the pipeline is indicated to be not leaked.
After the judgment result is obtained, a Boolean value is output to a user to represent whether leakage exists or not, if the Boolean value is false, leakage does not exist, and if the Boolean value is true, leakage occurs.
According to the method, after the pipeline is determined to be leaked, the leakage coefficient of the sample in the training data set adopted by the artificial intelligence model is calculated. The leakage coefficient is calculated by dividing the expected tracking data output in step S8 by the non-leakage data in the pipeline history, and the calculated value may be current or pressure.
Comparing the historical non-leakage and leakage data sets of the pipeline with the leakage rate data set of the pipeline, and calculating the current leakage rate of the pipeline; and then outputting the leakage rate value to a screen of a user, and carrying out early warning to remind the user to process the leakage as soon as possible.
The invention combines artificial intelligence, does not need to purchase redundant expensive professional equipment, utilizes the sensor existing during installation to detect leakage, and has strong system operability. During detection, the new element for detection is a Bayesian network numerical value specification calculation module realized on the basis of software simulation leakage. And then training the detector by using the simulation result to detect whether leakage occurs. Meanwhile, an inspector only needs to learn the most basic related inspection knowledge to identify whether leakage occurs through a small amount of sensor data available in installation.
It will be appreciated by those of ordinary skill in the art that the embodiments described herein are intended to assist the reader in understanding the principles of the invention and are to be construed as being without limitation to such specifically recited embodiments and examples. Those skilled in the art can make various other specific changes and combinations based on the teachings of the present invention without departing from the spirit of the invention, and these changes and combinations are within the scope of the invention.