CN117763941B - A method for evaluating gas storage well life based on machine learning - Google Patents
A method for evaluating gas storage well life based on machine learning Download PDFInfo
- Publication number
- CN117763941B CN117763941B CN202311513602.2A CN202311513602A CN117763941B CN 117763941 B CN117763941 B CN 117763941B CN 202311513602 A CN202311513602 A CN 202311513602A CN 117763941 B CN117763941 B CN 117763941B
- Authority
- CN
- China
- Prior art keywords
- failure
- gas storage
- attribute
- value
- storage well
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 80
- 238000010801 machine learning Methods 0.000 title claims abstract description 20
- 230000008859 change Effects 0.000 claims abstract description 20
- 238000001514 detection method Methods 0.000 claims abstract description 16
- 238000013459 approach Methods 0.000 claims description 5
- 230000007547 defect Effects 0.000 abstract description 6
- 238000005516 engineering process Methods 0.000 abstract description 2
- 239000007789 gas Substances 0.000 description 211
- VNWKTOKETHGBQD-UHFFFAOYSA-N methane Chemical compound C VNWKTOKETHGBQD-UHFFFAOYSA-N 0.000 description 8
- 238000004364 calculation method Methods 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 4
- 238000012937 correction Methods 0.000 description 4
- 239000003345 natural gas Substances 0.000 description 4
- 238000004590 computer program Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 239000002689 soil Substances 0.000 description 3
- IJGRMHOSHXDMSA-UHFFFAOYSA-N Atomic nitrogen Chemical compound N#N IJGRMHOSHXDMSA-UHFFFAOYSA-N 0.000 description 2
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 2
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 2
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000012806 monitoring device Methods 0.000 description 2
- 230000001902 propagating effect Effects 0.000 description 2
- RYGMFSIKBFXOCR-UHFFFAOYSA-N Copper Chemical compound [Cu] RYGMFSIKBFXOCR-UHFFFAOYSA-N 0.000 description 1
- 230000032683 aging Effects 0.000 description 1
- 239000003570 air Substances 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 229910052802 copper Inorganic materials 0.000 description 1
- 239000010949 copper Substances 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 239000011261 inert gas Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 229910052757 nitrogen Inorganic materials 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000000523 sample Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Landscapes
- Testing And Monitoring For Control Systems (AREA)
Abstract
一种基于机器学习的储气井寿命评估方法,其经由收集储气井的属性指标,且设置各个属性指标的临界量;运算各个属性指标导致储气井失效的重要度,且依据重要度与临界量构造失效值方程;依据侦测值与失效值方程修正各个属性指标的临界量;依据各个属性指标的变动量、失效值方程与修正后的临界量构造失效预测模式,且依据失效预测模式预测储气井出现失效的残留时段大小的方法,可对各类规格的储气井执行失效预测,高效的减小了由于储气井出现失效事故带来的隐患,可预先提示工作人员替换将要出现失效的储气井,更是运用机器学习的合理预测方法防止了现有技术的主观随意性强的缺陷,所预测而得的储气井寿命精度高。
A method for assessing the life of a gas well based on machine learning, which collects attribute indicators of the gas well and sets a critical value for each attribute indicator; calculates the importance of each attribute indicator causing the failure of the gas well, and constructs a failure value equation based on the importance and the critical value; corrects the critical value of each attribute indicator based on the detection value and the failure value equation; constructs a failure prediction model based on the change of each attribute indicator, the failure value equation and the corrected critical value, and predicts the residual time period of the failure of the gas well based on the failure prediction model. The method can perform failure prediction on gas wells of various specifications, effectively reduces the hidden dangers caused by failure accidents of gas wells, and can prompt staff to replace gas wells that are about to fail in advance. It also uses a reasonable prediction method of machine learning to avoid the defects of strong subjective arbitrariness in the existing technology, and the predicted life of the gas well is highly accurate.
Description
技术领域Technical Field
本发明属于储气井寿命评估技术领域,具体涉及一种基于机器学习的储气井寿命评估方法。The present invention belongs to the technical field of gas storage well life assessment, and in particular relates to a gas storage well life assessment method based on machine learning.
背景技术Background technique
储气井为竖向置于地下用于储存压缩空气的井式管状设备,储气井的作用主要是储存压缩天然气的,因为地下温度比较恒定,使井里的天然气很少受外界温度的变化而热胀冷缩;而且天然气在地下储存更加安全。储气井用于工作介质为天然气、氮气或惰性气体、空气的储气。储气井在特种设备监管中纳入固定式压力容器的范畴。Gas storage wells are well-shaped tubular equipment placed vertically underground for storing compressed air. The main function of gas storage wells is to store compressed natural gas. Because the underground temperature is relatively constant, the natural gas in the well rarely expands and contracts due to changes in the external temperature; and natural gas is safer to store underground. Gas storage wells are used to store gas with working media such as natural gas, nitrogen or inert gas, and air. Gas storage wells are included in the category of fixed pressure vessels in the supervision of special equipment.
为确保储气井的安全运行,就很有必要对储气井寿命执行预测,以此达到预防储气井老化后带来的失效问题,正如专利申请号为“CN202021512322.1”且专利名称为“一种在用储气井寿命监测装置”中的现有技术方案中所记载的储气井寿命监测装置,经由收集储气罐性能数值的探头取得相应的属性数值,随后依靠人工对相应的性能数值执行对储气井寿命的预测,这样的预测方式往往基于人们的主观认识而得,主观随意性强,所预测而得的储气井寿命精度低。In order to ensure the safe operation of gas storage wells, it is necessary to predict the life of gas storage wells so as to prevent failure problems caused by aging of gas storage wells. Just like the gas storage well life monitoring device recorded in the prior art scheme with patent application number "CN202021512322.1" and patent name "A gas storage well life monitoring device in use", the corresponding attribute values are obtained by a probe that collects the performance values of the gas tank, and then the corresponding performance values are manually predicted for the gas storage well life. Such prediction methods are often based on people's subjective understanding, with strong subjective arbitrariness, and the predicted gas storage well life has low accuracy.
发明内容Summary of the invention
为解决现有技术中带有的缺陷,本发明提出一种基于机器学习的储气井寿命评估方法,经由收集储气井的属性指标,且设置各个属性指标的临界量;运算各个属性指标导致储气井失效的重要度,且依据重要度与临界量构造失效值方程;依据侦测值与失效值方程修正各个属性指标的临界量;依据各个属性指标的变动量、失效值方程与修正后的临界量构造失效预测模式,且依据失效预测模式预测储气井出现失效的残留时段大小的方法,可对各类规格的储气井执行失效预测,高效的减小了由于储气井出现失效事故带来的隐患,可预先提示工作人员替换将要出现失效的储气井,更是运用机器学习的合理预测方法防止了现有技术的主观随意性强的缺陷,所预测而得的储气井寿命精度高。In order to solve the defects in the prior art, the present invention proposes a method for assessing the life of a gas storage well based on machine learning, which collects attribute indicators of the gas storage well and sets the critical value of each attribute indicator; calculates the importance of each attribute indicator causing the failure of the gas storage well, and constructs a failure value equation based on the importance and the critical value; corrects the critical value of each attribute indicator based on the detection value and the failure value equation; constructs a failure prediction model based on the change of each attribute indicator, the failure value equation and the corrected critical value, and predicts the residual time period of the failure of the gas storage well based on the failure prediction model. Failure prediction can be performed on gas storage wells of various specifications, effectively reducing the hidden dangers caused by failure accidents of gas storage wells, and can prompt staff to replace gas storage wells that are about to fail in advance. Moreover, a reasonable prediction method of machine learning is used to avoid the defects of the prior art that the subjectivity is strong and the predicted life of the gas storage well is highly accurate.
本发明运用如下的技术方案。The present invention uses the following technical solutions.
一种基于机器学习的储气井寿命评估方法,包括:A method for assessing the life of a gas storage well based on machine learning, comprising:
步骤1:收集储气井的属性指标,且设置各个属性指标的临界量;Step 1: Collect the attribute indicators of the gas storage wells and set the critical value of each attribute indicator;
步骤2:运算各个属性指标导致储气井失效的重要度,且依据重要度与临界量构造失效值方程;Step 2: Calculate the importance of each attribute index leading to the failure of the gas storage well, and construct a failure value equation based on the importance and critical value;
步骤3:依据侦测值与失效值方程修正各个属性指标的临界量;Step 3: Correct the critical value of each attribute indicator based on the detection value and failure value equation;
步骤4:依据各个属性指标的变动量、失效值方程与修正后的临界量构造失效预测模式,且依据失效预测模式预测储气井出现失效的作为储气井寿命的残留时段大小。Step 4: Construct a failure prediction model based on the variation of each attribute index, the failure value equation and the corrected critical quantity, and predict the residual time period of the gas storage well as the life of the gas storage well based on the failure prediction model.
优选地,所述运算各个属性指标导致储气井失效的重要度的方法,包含:Preferably, the method of calculating the importance of each attribute index leading to the failure of the gas storage well comprises:
运算属性指标导致储气井失效的推测几率;The estimated probability of gas storage well failure caused by the calculated attribute indicators;
运算属性指标的值是y时导致储气井失效的状态几率;The value of the operation attribute indicator is y, which is the probability of causing the gas storage well to fail;
依据推测几率与状态几率运算各个属性指标导致储气井失效的几率;The probability of failure of the gas storage well caused by calculating each attribute index is calculated based on the inference probability and the state probability;
依据各个属性指标导致储气井失效的几率运算各个属性指标导致储气井失效的重要度。The importance of each attribute indicator in causing the failure of the gas storage well is calculated according to the probability of each attribute indicator causing the failure of the gas storage well.
优选地,所述运算属性指标导致储气井失效的推测几率的方法,包含:Preferably, the method for estimating the probability of failure of a gas storage well caused by calculating the attribute index comprises:
运用N个储气井当做观察客体来运算重要度;Use N gas storage wells as observation objects to calculate importance;
运用方程:Q(d)=|Nd|/|N|运算属性指标导致储气井失效的推测几率,方程内Q(d)是推测几率,|Nd|是属性指标d导致失效的观察客体数目,|N|是观察客体的总数目。The estimated probability of gas storage well failure caused by attribute index is calculated using the equation: Q(d)=|N d |/|N|, where Q(d) is the estimated probability, |N d | is the number of observed objects that fail due to attribute index d, and |N| is the total number of observed objects.
优选地,所述运算属性指标的值是y时导致储气井失效的状态几率的方法,包含:Preferably, the method of calculating the probability of a state causing a gas storage well failure when the value of the computing attribute index is y comprises:
运用方程:运算属性指标的值是y时导致储气井失效的状态几率,方程内Q(y|dj)是属性指标dj的值是y时导致储气井失效的状态几率,/>是属性指标dj的值是y时导致储气井失效的观察客体数目,/>是属性指标dj导致储气井失效的观察客体数目。Using the equation: The state probability of causing the gas storage well to fail when the value of the operation attribute index is y, and Q(y|d j ) in the equation is the state probability of causing the gas storage well to fail when the value of the attribute index d j is y, /> is the number of observed objects that cause gas well failure when the value of attribute index d j is y, /> is the number of observed objects whose attribute index d j causes the gas storage well to fail.
优选地,所述依据推测几率与状态几率运算各个属性指标导致储气井失效的几率的方法,包含:Preferably, the method of calculating the probability of failure of a gas storage well caused by each attribute indicator based on the inference probability and the state probability comprises:
依据方程:运算各个属性指标导致储气井失效的几率,方程内j是各个属性指标的事先设置的序列码,O是属性指标的数目,y是dj的值,Z(j)是各个属性指标导致储气井失效的几率,Q(d)是属性指标导致储气井失效的推测几率,Q(y|dj)是属性指标dj的值是y时导致储气井失效的状态几率。According to the equation: The probability of each attribute indicator causing the failure of the gas storage well is calculated. In the equation, j is the pre-set sequence code of each attribute indicator, O is the number of attribute indicators, y is the value of d j , Z(j) is the probability of each attribute indicator causing the failure of the gas storage well, Q(d) is the estimated probability of the attribute indicator causing the failure of the gas storage well, and Q(y|d j ) is the state probability of causing the failure of the gas storage well when the value of the attribute indicator d j is y.
优选地,所述依据各个属性指标导致储气井失效的几率运算各个属性指标导致储气井失效的重要度的方法,包含:Preferably, the method of calculating the importance of each attribute indicator causing the failure of the gas storage well according to the probability of each attribute indicator causing the failure of the gas storage well comprises:
运用方程:运算各个属性指标导致储气井失效的重要度,方程内Zj是各个属性指标导致储气井失效的几率,j是各个属性指标的事先设置的序列码,O是属性指标的数目,Xj是各个属性指标导致储气井失效的重要度。Using the equation: The importance of each attribute indicator causing the failure of the gas storage well is calculated. In the equation, Zj is the probability of each attribute indicator causing the failure of the gas storage well, j is the pre-set sequence code of each attribute indicator, O is the number of attribute indicators, and Xj is the importance of each attribute indicator causing the failure of the gas storage well.
优选地,所述依据重要度与临界量构造失效值方程的方法,包含:Preferably, the method of constructing a failure value equation based on importance and critical quantity comprises:
把失效值方程构造成:方程内A是失效值,j是各个属性指标的事先设置的序列码,O是属性指标的数目,Xj是各个属性指标导致储气井失效的重要度,εj是各个属性指标的临界量,yj是属性指标的现时值。The failure value equation is constructed as: In the equation, A is the failure value, j is the pre-set sequence code of each attribute indicator, O is the number of attribute indicators, Xj is the importance of each attribute indicator leading to the failure of the gas storage well, εj is the critical value of each attribute indicator, and yj is the current value of the attribute indicator.
优选地,所述依据推测几率与状态几率运算各个属性指标导致储气井失效的几率的方法,包含:Preferably, the method of calculating the probability of failure of a gas storage well caused by each attribute indicator based on the inference probability and the state probability comprises:
取得出现失效的储气井的属性指标的值当做侦测值;Obtaining the value of the attribute index of the failed gas storage well as a detection value;
依据侦测值依照收集的时序分别运算失效值;Calculate the failure values according to the detection values and the collected time sequence;
在失效值经低于零渐次靠近于零时,渐次配置各个属性指标的临界量直至失效值是零;When the failure value is lower than zero and gradually approaches zero, the critical amount of each attribute index is gradually configured until the failure value is zero;
把配置后的各个属性指标的临界量当做修正后的属性指标的临界量。The critical amount of each attribute indicator after configuration is regarded as the critical amount of the corrected attribute indicator.
优选地,还包含:Preferably, it also comprises:
运算C次收集时距后属性指标的变动量的均数 Calculate the average change of attribute indicators after C collection intervals
运用代表C次收集时距后属性指标的变动量。use Represents the change in the attribute index after C collection intervals.
各次收集属性指标的值时带有收集时距(就是相邻2次收集属性指标的值间的时段大小),时距设成U,在时距U中属性指标组内的一属性指标d的变动量定义成Δy,而属性指标的值并非为依照一次方的比例加大,要可更精准的预测时距U后属性指标值的大小,能取得上C次变动量的均数,于是就能更精准的预测时距U后属性指标的值的大小,方程为:方程内是时距U后属性指标的一或许会出现的变动量,假使现时属性指标d的值是y1,时距U后d的值是y2,于是时距U后d的值是:/>经由以上方法,能预测分钟后的属性指标d的值是:/> Each collection of attribute index values carries a collection interval (i.e., the time interval between two adjacent collections of attribute index values), the interval is set to U, and the change of an attribute index d in the attribute index group in the interval U is defined as Δy. The value of the attribute index is not increased in proportion to the first power. To more accurately predict the value of the attribute index after the interval U, the average of the last C changes can be obtained, so that the value of the attribute index after the interval U can be more accurately predicted. The equation is: The equation contains a possible change in the attribute index after time interval U. If the current value of the attribute index d is y 1 and the value of d after time interval U is y 2 , then the value of d after time interval U is:/> Through the above method, the value of the attribute index d that can be predicted minutes later is:/>
优选地,依据各个属性指标的变动量、失效值方程与修正后的临界量构造失效预测模式的方法,包含:Preferably, the method for constructing a failure prediction model according to the variation of each attribute index, the failure value equation and the corrected critical value comprises:
把失效预测模式构造成:方程内A是失效值,j是各个属性指标的事先设置的序列码,O是属性指标的数目,Xj是各个属性指标导致储气井失效的重要度,εj是各个属性指标的临界量,yj是属性指标的现时值,/>是C次收集时距后属性指标的变动量。The failure prediction model is constructed as: In the equation, A is the failure value, j is the pre-set sequence code of each attribute indicator, O is the number of attribute indicators, Xj is the importance of each attribute indicator leading to gas storage well failure, εj is the critical value of each attribute indicator, yj is the current value of the attribute indicator,/> It is the change in the attribute index after C collection intervals.
优选地,所述依据失效预测模式预测储气井出现失效的作为储气井寿命的残留时段大小的方法,包含:Preferably, the method for predicting the size of the residual period of the gas storage well life span in which the gas storage well fails according to the failure prediction mode comprises:
运算各个收集时点相应的失效值;Calculate the corresponding failure value at each collection time point;
依据所述运算的失效值与相应的收集时点构造回归线;constructing a regression line based on the calculated failure values and corresponding collection time points;
运算事先设置时段中的失效值均数;Calculate the mean of failure values in a pre-set period;
依据所述失效值均数与回归线运算储气井出现失效的残留时段大小。The residual time period for failure of the gas storage well is calculated based on the failure value mean and the regression line.
优选地,所述运算各个收集时点相应的失效值的方法,包含:Preferably, the method of calculating the corresponding failure value at each collection time point comprises:
再次收集储气井的属性指标的值,且登记收集时点;Collect the values of the attribute indicators of the gas storage well again and record the collection time point;
依据失效预测模式运算各个收集时点相应的失效值。The corresponding failure value at each collection time point is calculated according to the failure prediction model.
优选地,依据失效预测模式预测储气井出现失效的作为储气井寿命的残留时段大小的方法,包含:Preferably, the method for predicting the size of the residual period of the gas storage well life span in which the gas storage well fails according to the failure prediction mode comprises:
依据运算的失效值与相应的收集时点构造回归线。A regression line is constructed based on the calculated failure values and the corresponding collection time points.
优选地,所述运算事先设置时段内的失效值均数的方法,包含:Preferably, the method for calculating the mean number of failure values within a preset time period comprises:
依据现时时点设置可变时距M;Set the variable time interval M according to the current time point;
总计所述可变时距L中的各个属性指标的均数;Sum up the average of each attribute index in the variable time interval L;
依据所述各个属性指标的均数与所述失效预测模式运算失效值均数。The failure value mean is calculated based on the mean of each attribute index and the failure prediction mode.
优选地,所述依据所述各个属性指标的均数与所述失效预测模式运算失效值均数的方法,包含:Preferably, the method of calculating the mean failure value based on the mean of each attribute index and the failure prediction mode comprises:
依据失效值均数与回归线运算失效值均数相应的收集时点;Calculate the collection time point corresponding to the mean failure value based on the mean failure value and the regression line;
依据所述失效值均数相应的收集时点与所述回归线运算储气井出现失效的残留时段大小。The residual time period for failure of the gas storage well is calculated based on the collection time points corresponding to the failure value mean and the regression line.
优选地,所述依据所述失效值均数相应的收集时点与所述回归线运算储气井出现失效的残留时段大小的方法,包含:Preferably, the method of calculating the residual time period of failure of a gas storage well based on the collection time points corresponding to the mean of the failure values and the regression line comprises:
依据回归线运算失效值是零时的时点。The time point at which the failure value calculated based on the regression line is zero.
优选地,依据现时时点设置可变时距M的方法,包含:Preferably, the method for setting the variable time interval M according to the current time point comprises:
把可变时距M设成{现时时点-M/2}至{现时时间+M/2}。Set the variable time interval M to {current time point - M/2} to {current time + M/2}.
优选地,设置各个属性指标的临界量的方法,包含:Preferably, the method for setting the critical amount of each attribute indicator includes:
取得事先设置数目的出现失效的储气井;Obtain a preset number of failed gas storage wells;
总计各个储气井出现失效时各个属性指标的值;Sum up the values of each attribute index when each gas storage well fails;
总计各个属性指标的一样值的数目;Total the number of identical values of each attribute indicator;
把各个属性指标的一样值的数目最高的值当做相应属性指标的临界量。The value with the highest number of identical values for each attribute indicator is regarded as the critical value of the corresponding attribute indicator.
一种基于机器学习的储气井寿命评估装置,包括:A gas storage well life assessment device based on machine learning, comprising:
设置模块,其用于收集储气井的属性指标,且设置各个属性指标的临界量;A setting module, which is used to collect attribute indicators of gas storage wells and set critical quantities of various attribute indicators;
运算模块,其用于运算各个属性指标导致储气井失效的重要度,且依据重要度与临界量构造失效值方程;A calculation module, which is used to calculate the importance of each attribute index leading to the failure of the gas storage well, and construct a failure value equation based on the importance and the critical amount;
修正模块,其用于依据侦测值与失效值方程修正各个属性指标的临界量;A correction module, which is used to correct the critical amount of each attribute indicator according to the detection value and the failure value equation;
预测模块,其用于依据各个属性指标的变动量、失效值方程与修正后的临界量构造失效预测模式,且依据失效预测模式预测储气井出现失效的作为储气井寿命的残留时段大小。The prediction module is used to construct a failure prediction model based on the change amount of each attribute indicator, the failure value equation and the corrected critical amount, and predict the residual time period of the gas storage well as the life of the gas storage well based on the failure prediction model.
本发明的有益效果在于,与现有技术相比,本发明经由收集储气井的属性指标,且设置各个属性指标的临界量;运算各个属性指标导致储气井失效的重要度,且依据重要度与临界量构造失效值方程;依据侦测值与失效值方程修正各个属性指标的临界量;依据各个属性指标的变动量、失效值方程与修正后的临界量构造失效预测模式,且依据失效预测模式预测储气井出现失效的残留时段大小的方法,可对各类规格的储气井执行失效预测,高效的减小了由于储气井出现失效事故带来的隐患,可预先提示工作人员替换将要出现失效的储气井,更是运用机器学习的合理预测方法防止了现有技术的主观随意性强的缺陷,所预测而得的储气井寿命精度高。The beneficial effects of the present invention are that, compared with the prior art, the present invention collects attribute indicators of gas storage wells and sets critical quantities for each attribute indicator; calculates the importance of each attribute indicator leading to failure of the gas storage well, and constructs a failure value equation based on the importance and the critical quantity; corrects the critical quantity of each attribute indicator based on the detection value and the failure value equation; constructs a failure prediction model based on the change of each attribute indicator, the failure value equation and the corrected critical quantity, and predicts the residual time period of failure of the gas storage well based on the failure prediction model. Failure prediction can be performed on gas storage wells of various specifications, effectively reducing the hidden dangers caused by failure accidents of gas storage wells, and can prompt staff to replace gas storage wells that are about to fail in advance. Moreover, a reasonable prediction method of machine learning is used to avoid the defects of strong subjective arbitrariness in the prior art, and the predicted life of the gas storage well is highly accurate.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1是本发明中所述基于机器学习的储气井寿命评估方法的流程图;FIG1 is a flow chart of a method for evaluating the life of a gas storage well based on machine learning according to the present invention;
图2是本发明中所述基于机器学习的储气井寿命评估装置的结构图。FIG2 is a structural diagram of the gas storage well life assessment device based on machine learning described in the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明的技术方案执行清楚、完整地表达。本申请所表达的实施例仅仅是本发明一部分的实施例,而不是全部实施例。基于本发明精神,本领域普通技术人员在未有作出创造性劳动前提下所获得的有所其它实施例,都归于本发明的保护范围。In order to make the purpose, technical scheme and advantages of the present invention clearer, the technical scheme of the present invention will be clearly and completely expressed in combination with the drawings in the embodiments of the present invention. The embodiments expressed in this application are only part of the embodiments of the present invention, not all of them. Based on the spirit of the present invention, other embodiments obtained by ordinary technicians in this field without creative work are all within the scope of protection of the present invention.
如图1所示,本发明所述的一种基于机器学习的储气井寿命评估方法,运行在如电脑这样的预测终端上,包括:As shown in FIG1 , a method for assessing the life of a gas storage well based on machine learning according to the present invention is run on a prediction terminal such as a computer, and includes:
步骤1:收集储气井的属性指标,且设置各个属性指标的临界量;Step 1: Collect the attribute indicators of the gas storage wells and set the critical value of each attribute indicator;
步骤2:运算各个属性指标导致储气井失效的重要度,且依据重要度与临界量构造失效值方程;Step 2: Calculate the importance of each attribute index leading to the failure of the gas storage well, and construct a failure value equation based on the importance and critical value;
步骤3:依据侦测值与失效值方程修正各个属性指标的临界量;Step 3: Correct the critical value of each attribute indicator based on the detection value and failure value equation;
步骤4:依据各个属性指标的变动量、失效值方程与修正后的临界量构造失效预测模式,且依据失效预测模式预测储气井出现失效的作为储气井寿命的残留时段大小。也就是说,起始择用属性指标,设置各个属性指标的临界量,运算各个属性指标的重要度,且执行临界量的修正,接着运算各个属性指标的变动量,依据变动量和失效方程构造失效预测模式,最终经由时距模式预测储气井出现失效的残留时段大小。Step 4: Construct a failure prediction model based on the variation of each attribute index, the failure value equation and the corrected critical value, and predict the residual time period of the gas storage well as the life of the gas storage well according to the failure prediction model. That is to say, initially select the attribute index, set the critical value of each attribute index, calculate the importance of each attribute index, and perform the correction of the critical value, then calculate the variation of each attribute index, construct the failure prediction model based on the variation and the failure equation, and finally predict the residual time period of the gas storage well through the time interval model.
这样,可对各类规格的储气井执行失效预测,高效的减小了由于储气井出现失效事故带来的隐患,可预先提示工作人员替换将要出现失效的储气井,更是运用机器学习的合理预测方法防止了现有技术的主观随意性强的缺陷,所预测而得的储气井寿命精度高。In this way, failure prediction can be performed on gas storage wells of various specifications, effectively reducing the hidden dangers caused by failure accidents of gas storage wells, and can prompt staff to replace gas storage wells that are about to fail in advance. The reasonable prediction method of machine learning is used to avoid the subjective and arbitrary defects of existing technologies, and the predicted life of gas storage wells is highly accurate.
本发明优选但非限制性的实施方式中,所述运算各个属性指标导致储气井失效的重要度的方法,包含:In a preferred but non-limiting embodiment of the present invention, the method of calculating the importance of each attribute index leading to the failure of the gas storage well comprises:
运算属性指标导致储气井失效的推测几率;The estimated probability of gas storage well failure caused by the calculated attribute indicators;
运算属性指标的值是y时导致储气井失效的状态几率;The value of the operation attribute indicator is y, which is the probability of causing the gas storage well to fail;
依据推测几率与状态几率运算各个属性指标导致储气井失效的几率;The probability of failure of the gas storage well caused by calculating each attribute index is calculated based on the inference probability and the state probability;
依据各个属性指标导致储气井失效的几率运算各个属性指标导致储气井失效的重要度。The importance of each attribute indicator in causing the failure of the gas storage well is calculated according to the probability of each attribute indicator causing the failure of the gas storage well.
本发明优选但非限制性的实施方式中,所述运算属性指标导致储气井失效的推测几率的方法,包含:In a preferred but non-limiting embodiment of the present invention, the method for estimating the probability of failure of a gas storage well caused by the computational attribute index comprises:
运用N个储气井当做观察客体来运算重要度;观察客体能包含往期已然失效的储气井。The importance is calculated by using N gas storage wells as observation objects; the observation objects can include gas storage wells that have failed in the past.
运用方程:Q(d)=|Nd|/|N|运算属性指标导致储气井失效的推测几率,方程内Q(d)是推测几率,|Nd|是属性指标d导致失效的观察客体数目,|N|是观察客体的总数目。收集N个观察客体数目推测属性指标导致储气井失效的几率定义成Q(dj),运用观察客体Nd代表属性指标是d导致失效的观察客体形成的客体组,在足够的单独的且同规格观察客体的状态下,运算出事前几率的值是:Q(d)=|Nd|/|N|,方程内Q(d)是推测几率,|Nd|是属性指标d导致失效的观察客体数目,|N|是观察客体的总数目。属性指标包含:经由在储气井内自上而下等距设置的若干测厚仪测得的储气井不同高度的井壁厚度指标,经由在储气井内自上而下等距设置的若干压力传感器测得的储气井内不同高度的气压指标,经由在储气井内壁上自上而下等距设置的若干强度测试仪测得的储气井内不同高度的强度指标,经由储气井所在土壤中沿着储气井外壁方向自上而下等距设置的若干湿度传感器测得的储气井所在土壤的不同高度的土壤湿度,测厚仪、压力传感器、湿度传感器与强度测试仪均同PLC或单片机相连,PLC或单片机还与4G模块相连,PLC或单片机可以把测厚仪、压力传感器、湿度传感器与强度测试仪测得并传来的数值经由4G模块传至4G网内的预测终端内执行预测。The equation: Q(d)=|N d |/|N| is used to calculate the estimated probability of the failure of the gas storage well caused by the attribute indicator. In the equation, Q(d) is the estimated probability, |N d | is the number of observation objects that fail due to the attribute indicator d, and |N| is the total number of observation objects. The probability of collecting N observation objects to estimate the failure of the gas storage well caused by the attribute indicator is defined as Q(d j ). The observation object N d is used to represent the object group formed by the observation object that fails due to the attribute indicator d. Under the condition of sufficient independent observation objects of the same specification, the value of the prior probability is calculated as: Q(d)=|N d |/|N|. In the equation, Q(d) is the estimated probability, |N d | is the number of observation objects that fail due to the attribute indicator d, and |N| is the total number of observation objects. The attribute indicators include: the well wall thickness indicator at different heights of the gas storage well measured by several thickness gauges equidistantly arranged from top to bottom in the gas storage well, the air pressure indicator at different heights in the gas storage well measured by several pressure sensors equidistantly arranged from top to bottom in the gas storage well, the strength indicator at different heights in the gas storage well measured by several strength testers equidistantly arranged from top to bottom on the inner wall of the gas storage well, and the soil moisture at different heights in the soil where the gas storage well is located measured by several humidity sensors equidistantly arranged from top to bottom along the outer wall of the gas storage well in the soil where the gas storage well is located. The thickness gauge, pressure sensor, humidity sensor and strength tester are all connected to the PLC or the single-chip microcomputer, and the PLC or the single-chip microcomputer is also connected to the 4G module. The PLC or the single-chip microcomputer can transmit the values measured and transmitted by the thickness gauge, pressure sensor, humidity sensor and strength tester to the prediction terminal in the 4G network via the 4G module to execute the prediction.
本发明优选但非限制性的实施方式中,所述运算属性指标的值是y时导致储气井失效的状态几率的方法,包含:In a preferred but non-limiting embodiment of the present invention, the method for calculating the probability of a state causing a gas storage well failure when the value of the attribute index is y comprises:
运用方程:运算属性指标的值是y时导致储气井失效的状态几率,方程内Q(y|dj)是属性指标dj的值是y时导致储气井失效的状态几率,/>是属性指标dj的值是y时导致储气井失效的观察客体数目,/>是属性指标dj导致储气井失效的观察客体数目。把属性指标导致储气井失效的几率定义成Q(dj),那么各个属性指标的推测状态几率能表征成Q(y|dj),此Q(y|dj)为导致储气井出现失效的属性指标为dj,这时dj的值是y的几率是Q(y|dj),运用/>代表Nd内属性指标是dj且dj的值是y时导致储气井失效的观察客体,那么状态几率能推测成:/> Using the equation: The state probability of causing the gas storage well to fail when the value of the operation attribute index is y, and Q(y|d j ) in the equation is the state probability of causing the gas storage well to fail when the value of the attribute index d j is y, /> is the number of observed objects that cause gas well failure when the value of attribute index d j is y, /> is the number of observed objects whose attribute index d j causes the gas storage well to fail. The probability of attribute index causing the gas storage well to fail is defined as Q(d j ), then the inferred state probability of each attribute index can be represented as Q(y|d j ), where Q(y|d j ) is the attribute index that causes the gas storage well to fail, and the probability that the value of d j is y is Q(y|d j ), using/> Represents the observed object that causes the gas storage well to fail when the attribute index in N d is d j and the value of d j is y, then the state probability can be inferred as:/>
本发明优选但非限制性的实施方式中,所述依据推测几率与状态几率运算各个属性指标导致储气井失效的几率的方法,包含:In a preferred but non-limiting embodiment of the present invention, the method for calculating the probability of failure of a gas storage well caused by calculating each attribute indicator based on the inference probability and the state probability comprises:
依据方程:运算各个属性指标导致储气井失效的几率,方程内j是各个属性指标的事先设置的序列码,O是属性指标的数目,y是dj的值,Z(j)是各个属性指标导致储气井失效的几率,Q(d)是属性指标导致储气井失效的推测几率,Q(y|dj)是属性指标dj的值是y时导致储气井失效的状态几率。常常使得储气井出现失效的状况为经属性指标组内的一个以上的属性指标一起导致才映射而出的现象,通常状况下,假使储气井的失效为经一属性指标导致的,就能很轻松的认定储气井是不是会出现失效,假使储气井的失效为经若干属性指标一起导致而成的,就难以认定出储气井什么时刻会出现失效,由于各个属性指标的值常常均未有抵达指标临界量ε,然而储气井常常已带有功能不足、储气井漏气等状况,以此呈现出失效状况;要克服若干属性指标一起导致储气井失效的现象,运用属性指标间状态彼此单立的状态设置,也就是属性指标组内的各个属性指标均为单立的,以此属性指标组内的一指标映射出储气井出现失效的几率是:而Z(j)的值就能表征成属性指标组内的一属性指标映射出储气井出现失效的几率,方程内y表征属性指标d的值,y高于零且低于临界量,把以上的Q(d)与Q(y|dj)送进方程就能取得单立一属性指标导致储气井失效的几率。According to the equation: The probability of each attribute indicator causing the failure of the gas storage well is calculated. In the equation, j is the pre-set sequence code of each attribute indicator, O is the number of attribute indicators, y is the value of d j , Z(j) is the probability of each attribute indicator causing the failure of the gas storage well, Q(d) is the estimated probability of the attribute indicator causing the failure of the gas storage well, and Q(y|d j ) is the state probability of causing the failure of the gas storage well when the value of the attribute indicator d j is y. The situation that often causes the failure of a gas well is a phenomenon that is mapped out by more than one attribute indicator in the attribute indicator group. Under normal circumstances, if the failure of a gas well is caused by one attribute indicator, it is easy to determine whether the gas well will fail. If the failure of a gas well is caused by several attribute indicators, it is difficult to determine when the gas well will fail, because the values of various attribute indicators often do not reach the indicator critical value ε, but the gas well often has insufficient function, gas leakage and other conditions, thus presenting a failure situation; to overcome the phenomenon that several attribute indicators cause the failure of a gas well at the same time, the state setting of the states between the attribute indicators is independent of each other, that is, each attribute indicator in the attribute indicator group is independent, and the probability of the failure of a gas well mapped by one indicator in this attribute indicator group is: The value of Z(j) can be represented as an attribute indicator in the attribute indicator group, which maps out the probability of failure of the gas storage well. In the equation, y represents the value of the attribute indicator d. If y is higher than zero and lower than the critical value, the above Q(d) and Q(y|d j ) can be sent into the equation to obtain the probability of failure of the gas storage well caused by a single attribute indicator.
本发明优选但非限制性的实施方式中,所述依据各个属性指标导致储气井失效的几率运算各个属性指标导致储气井失效的重要度的方法,包含:In a preferred but non-limiting embodiment of the present invention, the method of calculating the importance of each attribute indicator causing the failure of the gas storage well according to the probability of each attribute indicator causing the failure of the gas storage well comprises:
运用方程:运算各个属性指标导致储气井失效的重要度,方程内Zj是各个属性指标导致储气井失效的几率,j是各个属性指标的事先设置的序列码,O是属性指标的数目,Xj是各个属性指标导致储气井失效的重要度。经由以上运算,能取得各个属性指标导致储气井失效的几率,各自定义成:Z1、Z2…,能运算出在储气井出现失效时,各个属性指标可映射出现失效的重要度是:/> Using the equation: Calculate the importance of each attribute index leading to the failure of the gas storage well. In the equation, Zj is the probability of each attribute index leading to the failure of the gas storage well, j is the pre-set sequence code of each attribute index, O is the number of attribute indexes, and Xj is the importance of each attribute index leading to the failure of the gas storage well. Through the above calculations, the probability of each attribute index leading to the failure of the gas storage well can be obtained, each defined as: Z1 , Z2 ..., and the importance of each attribute index that can be mapped to the failure when the gas storage well fails can be calculated:/>
本发明优选但非限制性的实施方式中,所述依据重要度与临界量构造失效值方程的方法,包含:In a preferred but non-limiting embodiment of the present invention, the method for constructing a failure value equation based on importance and critical quantity comprises:
把失效值方程构造成:方程内A是失效值,j是各个属性指标的事先设置的序列码,O是属性指标的数目,Xj是各个属性指标导致储气井失效的重要度,εj是各个属性指标的临界量,yj是属性指标的现时值(现时值能为控制器现时传来的相应的属性指标的值)。经由以上运算取得各个属性指标导致储气井失效的几率,所以探测储气井失效的失效值的方程是:/>经由该失效值方程能依据各个属性指标的现时值和临界量运算取得现时储气井的失效值,在储气井的状况是寻常(就是未失效)时,由于这时属性指标的值均为低于临界量εj,所以A<0,于是在A的值渐次靠近零时,也就是储气井的状况经由寻常变成失效的进程。The failure value equation is constructed as: In the equation, A is the failure value, j is the pre-set sequence code of each attribute index, O is the number of attribute indexes, Xj is the importance of each attribute index leading to the failure of the gas storage well, εj is the critical value of each attribute index, and yj is the current value of the attribute index (the current value can be the value of the corresponding attribute index currently transmitted by the controller). Through the above calculations, the probability of each attribute index leading to the failure of the gas storage well is obtained, so the failure value equation for detecting the failure of the gas storage well is:/> The failure value equation can be used to calculate the current failure value of the gas storage well according to the current value and critical value of each attribute index. When the condition of the gas storage well is normal (that is, not failed), since the values of the attribute indicators are all lower than the critical value ε j at this time, A<0. Therefore, when the value of A gradually approaches zero, the condition of the gas storage well is in the process of changing from normal to failure.
本发明优选但非限制性的实施方式中,所述依据推测几率与状态几率运算各个属性指标导致储气井失效的几率的方法,包含:In a preferred but non-limiting embodiment of the present invention, the method for calculating the probability of failure of a gas storage well caused by calculating each attribute indicator based on the inference probability and the state probability comprises:
取得出现失效的储气井的属性指标的值当做侦测值;Obtaining the value of the attribute index of the failed gas storage well as a detection value;
依据侦测值依照收集的时序分别运算失效值;Calculate the failure values according to the detection values and the collected time sequence;
在失效值经低于零渐次靠近于零时,渐次配置各个属性指标的临界量直至失效值是零;When the failure value is lower than zero and gradually approaches zero, the critical amount of each attribute index is gradually configured until the failure value is zero;
把配置后的各个属性指标的临界量当做修正后的属性指标的临界量。设置属性指标临界量的方法很概要,由此就会让探测而得的值的精度不高,由此就要修正临界量,来改善储气井预测精度;择用Y个功能状况寻常的储气井,各距一时段U收集单次储气井的属性指标的值;把各次收集后的属性指标的值运用以上方程运算失效值,伴着一节时段后失效值的值就会经A<0变成靠近零或高过零,在该进程内会常常出现如下3类状况:The critical value of each attribute index after configuration is regarded as the critical value of the modified attribute index. The method of setting the critical value of the attribute index is very simple, which will make the accuracy of the detected value not high, so the critical value needs to be corrected to improve the prediction accuracy of the gas storage well; select Y gas storage wells with normal functional conditions, and collect the value of the attribute index of a single gas storage well at a time interval U; use the above equation to calculate the failure value of the attribute index value after each collection, and the value of the failure value after a period of time will become close to zero or higher than zero through A<0. In this process, the following three types of situations often occur:
A<0时,储气井出现失效;A=0时,储气井出现失效;A>0时,储气井出现失效。When A<0, the gas storage well fails; when A=0, the gas storage well fails; when A>0, the gas storage well fails.
面对A<0与A>0的状况而言,就该归于储气井失效预测带有误差,就要依据储气井失效出现时收集到属性指标的值执行配置临界量,使得失效值最大化的靠近零,仅有此类储气井的失效预测方可更精准;临界量修正方法是,在以上收集的储气井的属性指标的值内,抽取有失效的储气井的属性指标的值定义成基准F,运用如上方程依照属性指标的值收集的时序逐一运算基准F内的失效值,在依照基准数据时序运算的进程内,失效值A经起始的A<0变成渐次靠近零,渐次配置各个属性指标的(临界量)来符合在储气井出现失效时,这时的值极近于为零。In the case of A<0 and A>0, it is attributed to the error in the prediction of gas well failure. It is necessary to configure the critical value according to the value of the attribute index collected when the gas well fails, so that the failure value is maximized and close to zero. Only the failure prediction of such gas wells can be more accurate. The critical value correction method is to extract the value of the attribute index of the failed gas well from the value of the attribute index of the gas well collected above and define it as the benchmark F. The above equation is used to calculate the failure value in the benchmark F one by one according to the time sequence of the attribute index value collection. In the process of calculating according to the benchmark data time sequence, the failure value A gradually approaches zero after the initial A<0, and the (critical value) of each attribute index is gradually configured to meet the situation when the gas well fails, and the value at this time is very close to zero.
本发明优选但非限制性的实施方式中,还包含:In a preferred but non-limiting embodiment of the present invention, it also comprises:
运算C次收集时距后属性指标的变动量的均数 Calculate the average change of attribute indicators after C collection intervals
运用代表C次收集时距后属性指标的变动量。use Represents the change in the attribute index after C collection intervals.
各次收集属性指标的值时带有收集时距(就是相邻2次收集属性指标的值间的时段大小),时距设成U,在时距U中属性指标组内的一属性指标d的变动量定义成Δy,而属性指标的值并非为依照一次方的比例加大,要可更精准的预测时距U后属性指标值的大小,能取得上C次变动量的均数,于是就能更精准的预测时距U后属性指标的值的大小,方程为:方程内是时距U后属性指标的一或许会出现的变动量,假使现时属性指标d的值是y1,时距U后d的值是y2,于是时距U后d的值是:/>经由以上方法,能预测分钟后的属性指标d的值是:/> Each collection of attribute index values carries a collection interval (i.e., the time interval between two adjacent collections of attribute index values), the interval is set to U, and the change of an attribute index d in the attribute index group in the interval U is defined as Δy. The value of the attribute index is not increased in proportion to the first power. To more accurately predict the value of the attribute index after the interval U, the average of the last C changes can be obtained, so that the value of the attribute index after the interval U can be more accurately predicted. The equation is: The equation contains a possible change in the attribute index after time interval U. If the current value of the attribute index d is y 1 and the value of d after time interval U is y 2 , then the value of d after time interval U is:/> Through the above method, the value of the attribute index d that can be predicted minutes later is:/>
本发明优选但非限制性的实施方式中,依据各个属性指标的变动量、失效值方程与修正后的临界量构造失效预测模式的方法,包含:In a preferred but non-limiting embodiment of the present invention, a method for constructing a failure prediction model based on the variation of each attribute index, the failure value equation and the corrected critical value includes:
把失效预测模式构造成:方程内A是失效值,j是各个属性指标的事先设置的序列码,O是属性指标的数目,Xj是各个属性指标导致储气井失效的重要度,εj是各个属性指标的临界量,yj是属性指标的现时值,/>是C次收集时距后属性指标的变动量。经由以上方法取得了属性指标的变动量,能运用一样的方法预测属性指标组内的随便一属性指标的值,也就一样能预测N×U后A的值,所以储气井的失效预测模式能表征成:/>在N=0时,以上方程取得的为现时时点的实际失效值,在N>0时,以上方程取得的是N×U后的预测失效值。The failure prediction model is constructed as: In the equation, A is the failure value, j is the pre-set sequence code of each attribute indicator, O is the number of attribute indicators, Xj is the importance of each attribute indicator leading to gas storage well failure, εj is the critical value of each attribute indicator, yj is the current value of the attribute indicator,/> is the change in the attribute index after C collection intervals. The change in the attribute index is obtained through the above method. The same method can be used to predict the value of any attribute index in the attribute index group, and the value of A after N×U can also be predicted. Therefore, the failure prediction mode of the gas storage well can be characterized as:/> When N=0, the above equation obtains the actual failure value at the current time point, and when N>0, the above equation obtains the predicted failure value after N×U.
本发明优选但非限制性的实施方式中,所述依据失效预测模式预测储气井出现失效的作为储气井寿命的残留时段大小的方法,包含:In a preferred but non-limiting embodiment of the present invention, the method for predicting the residual period of the gas storage well life as the failure of the gas storage well according to the failure prediction mode comprises:
运算各个收集时点相应的失效值;收集时点就是PLC或单片机把属性指标的值传至预测终端时的时点。Calculate the corresponding failure value at each collection time point; the collection time point is the time point when the PLC or single-chip microcomputer transmits the value of the attribute indicator to the prediction terminal.
依据所述运算的失效值与相应的收集时点构造回归线;constructing a regression line based on the calculated failure values and corresponding collection time points;
运算事先设置时段中的失效值均数;Calculate the mean of failure values in a pre-set period;
依据所述失效值均数与回归线运算储气井出现失效的残留时段大小。The residual time period for failure of the gas storage well is calculated based on the failure value mean and the regression line.
本发明优选但非限制性的实施方式中,所述运算各个收集时点相应的失效值的方法,包含:In a preferred but non-limiting embodiment of the present invention, the method of calculating the corresponding failure value of each collection time point comprises:
再次收集储气井的属性指标的值,且登记收集时点;Collect the values of the attribute indicators of the gas storage well again and record the collection time point;
依据失效预测模式运算各个收集时点相应的失效值。The corresponding failure value at each collection time point is calculated according to the failure prediction model.
各距一时段收集一次属性指标的值,连续收集一簇储气井的属性指标的值,且登记收集属性指标的值时的时点是u;将收集到的属性指标的值运用以上失效预测模式运算能取得相应的失效值,经由一时期的属性指标的值的收集与运算能取得时点u同储气井失效值A联系,经由以上失效预测模式能运算一时段后的失效值AN。The value of the attribute index is collected once every period of time, the values of the attribute index of a cluster of gas storage wells are collected continuously, and the time point when the attribute index values are collected is registered as u; the collected attribute index values are applied to the above failure prediction model to obtain the corresponding failure value, and the time point u can be associated with the failure value A of the gas storage well through the collection and calculation of the attribute index values of a period of time, and the failure value AN after a period of time can be calculated through the above failure prediction model.
本发明优选但非限制性的实施方式中,依据失效预测模式预测储气井出现失效的作为储气井寿命的残留时段大小的方法,包含:In a preferred but non-limiting embodiment of the present invention, a method for predicting the residual period of the gas storage well life as a failure of the gas storage well according to the failure prediction mode comprises:
依据运算的失效值与相应的收集时点构造回归线。A regression line is constructed based on the calculated failure values and the corresponding collection time points.
经由以上失效值与收集时点的联系可用最小二乘法取得一回归线,直角座标系的X轴的值是u,直角座标系的Y轴的值是A。Through the relationship between the above failure value and the collection time point, a regression line can be obtained by the least square method. The value of the X-axis of the rectangular coordinate system is u, and the value of the Y-axis of the rectangular coordinate system is A.
本发明优选但非限制性的实施方式中,所述运算事先设置时段内的失效值均数的方法,包含:In a preferred but non-limiting embodiment of the present invention, the method for calculating the mean number of failure values within a preset time period comprises:
依据现时时点设置可变时距M;Set the variable time interval M according to the current time point;
总计所述可变时距L中的各个属性指标的均数;Sum up the average of each attribute index in the variable time interval L;
依据所述各个属性指标的均数与所述失效预测模式运算失效值均数。The failure value mean is calculated based on the mean of each attribute index and the failure prediction mode.
而储气井的属性指标的值在伴着用时的加大,指标值的加大并非一次性正比加大,只经由一点(uj,Aj)来预测距储气井要出现失效还残留时段的大小会带有不小的偏差。The value of the attribute index of the gas storage well increases with the increase of usage time, but the increase of the index value is not a one-time proportional increase. It will have a significant deviation to predict the remaining time before the gas storage well fails by only one point (u j , A j ).
本申请运用一时段中的属性指标的值来执行推算距出现失效还还残留时段的大小,还残留时段的大小能当做一时距,也就是可变时距,该时距的大小是M,在以上回归线内增添可变时距;假使可变时距M中收集L次属性指标的值,于是一属性指标的均数是:而以上预测模式又能等同于:The present application uses the value of the attribute index in a time period to calculate the size of the residual period before the failure occurs. The size of the residual period can be regarded as a time interval, that is, a variable time interval. The size of the time interval is M. The variable time interval is added to the above regression line; if the value of the attribute index is collected L times in the variable time interval M, then the mean of an attribute index is: The above prediction model can be equivalent to:
依据该方程能运算失效值均数/> According to this equation, the mean failure value can be calculated/>
本发明优选但非限制性的实施方式中,所述依据所述各个属性指标的均数与所述失效预测模式运算失效值均数的方法,包含:In a preferred but non-limiting embodiment of the present invention, the method of calculating the mean failure value based on the mean of each attribute index and the failure prediction mode comprises:
依据失效值均数与回归线运算失效值均数相应的收集时点;Calculate the collection time point corresponding to the mean failure value based on the mean failure value and the regression line;
依据所述失效值均数相应的收集时点与所述回归线运算储气井出现失效的残留时段大小。The residual time period for failure of the gas storage well is calculated based on the collection time points corresponding to the failure value mean and the regression line.
本发明优选但非限制性的实施方式中,所述依据所述失效值均数相应的收集时点与所述回归线运算储气井出现失效的残留时段大小的方法,包含:In a preferred but non-limiting embodiment of the present invention, the method of calculating the residual time period of failure of a gas storage well based on the collection time points corresponding to the mean of the failure values and the regression line comprises:
依据回归线运算失效值是零时的时点;The time point when the failure value calculated according to the regression line is zero;
运用失效值是零时的时点减去失效值均数相应的收集时点而得的差值就当做储气井出现失效的残留时段大小。依据以上运算取得的失效值均数,能经回归线取得相应的时点,所以能取得一可变时距中的时点和失效值的点是:在时点/>朝点(uk,0)(该点是储气井出现失效的时点)运动的期间所要的时段跨度大小就是储气井距出现失效所残留的时段大小;经回归线内能取得储气井失效值是零的时点,经失效值均数的时点至失效值是零的时点间的时段大小就是储气井要出现失效的残留时段大小;在随便一时点收集的储气井属性指标的值,这时该储气井出现失效的失效值是A,假使预测该储气井距出现失效的时段大小,就要把该点(u,A)送进可变时距M内,这里可变时距的大小是u-M/2至u+M/2,运用方程预测模式运算出可变时距M中收集到的属性指标相应的失效值为依据/>与回归线能取得相应的时点/>在/>的期间所要的时段大小就是该储气井距离出现失效的残留时段大小。The difference between the time point when the failure value is zero and the corresponding collection time point of the failure value mean is used as the residual time period of the gas storage well failure. According to the failure value mean obtained by the above calculation, the corresponding time point can be obtained through the regression line, so the time point and failure value point in a variable time interval can be obtained: At the time /> The time span required during the movement toward point ( uk , 0) (this point is the time point when the gas storage well fails) is the time span remaining before the gas storage well fails; the time point when the failure value of the gas storage well is zero can be obtained through the regression line, and the time span from the time point of the mean failure value to the time point when the failure value is zero is the time span remaining before the gas storage well fails; the value of the gas storage well attribute index collected at any time point, at this time the failure value of the gas storage well failure is A, if the time span of the gas storage well failure is predicted, the point (u, A) should be sent to the variable time interval M, where the variable time interval is uM/2 to u+M/2, and the corresponding failure value of the attribute index collected in the variable time interval M is calculated using the equation prediction model as the basis/> The time point corresponding to the regression line can be obtained/> In/> The required time period is the residual time period before the gas storage well fails.
本发明优选但非限制性的实施方式中,依据现时时点设置可变时距M的方法,包含:In a preferred but non-limiting embodiment of the present invention, the method for setting the variable time interval M according to the current time point comprises:
把可变时距M设成{现时时点-M/2}至{现时时间+M/2}。Set the variable time interval M to {current time point - M/2} to {current time + M/2}.
本发明优选但非限制性的实施方式中,设置各个属性指标的临界量的方法,包含:In a preferred but non-limiting embodiment of the present invention, the method for setting the critical amount of each attribute indicator includes:
取得事先设置数目的出现失效的储气井;Obtain a preset number of failed gas storage wells;
总计各个储气井出现失效时各个属性指标的值;Sum up the values of each attribute index when each gas storage well fails;
总计各个属性指标的一样值的数目;Total the number of identical values of each attribute indicator;
把各个属性指标的一样值的数目最高的值当做相应属性指标的临界量。The value with the highest number of identical values for each attribute indicator is regarded as the critical value of the corresponding attribute indicator.
在观察客体内带有设置数目的失效储气井设备,假使观察客体数目够高,假使仅考虑属性指标集内的一指标且嘉定储气井的失效只有指标d而定,且登记储气井出现失效时指标d的值是y;在y的值不高时很显示这时被登记成失效的储气井的数目不高,否则在y的值高时,被登记成失效的储气井的数目亦不高,由于大多数的储气井还为抵达该值时就已出现了失效。经由如上解析能得,指标值和储气井的失效数带有一些联系,该联系就是:在y的值愈贴近均数时,出现失效的储气井的数目就愈高,在y=ν时,相应有失效的储气井的失效数目是Ozg,这时的失效数目最高,亦就愈能映射出时愈贴近属性指标的临界量,运用该方法能大概的认定各个属性指标的临界量。There are a set number of failed gas storage wells in the observation object. If the number of observation objects is high enough, if only one indicator in the attribute indicator set is considered and the failure of the gas storage well is determined by the indicator d, and the value of the indicator d is y when the registered gas storage well fails; when the value of y is not high, it shows that the number of gas storage wells registered as failed is not high at this time, otherwise when the value of y is high, the number of gas storage wells registered as failed is also not high, because most of the gas storage wells have failed before reaching this value. Through the above analysis, it can be obtained that the indicator value and the number of failures of the gas storage well have some relationship, which is: when the value of y is closer to the mean, the number of failed gas storage wells is higher. When y=ν, the corresponding number of failed gas storage wells is Ozg , and the number of failures at this time is the highest, which can also map out the critical value of the attribute indicator. This method can roughly identify the critical value of each attribute indicator.
经由运用本发明的方案,可对各类规格的储气井执行失效预测,高效的减小了因储气井出现失效导致储气井漏气和服务器出现宕机的隐患,可预先提示工作人员替换将要出现失效的储气井。By applying the solution of the present invention, failure prediction can be performed on gas storage wells of various specifications, effectively reducing the hidden dangers of gas storage well leakage and server downtime caused by gas storage well failure, and can prompt staff in advance to replace gas storage wells that are about to fail.
如图2所示,本发明所述的一种基于机器学习的储气井寿命评估装置,包括:As shown in FIG2 , a gas storage well life assessment device based on machine learning according to the present invention comprises:
设置模块,其用于收集储气井的属性指标,且设置各个属性指标的临界量;A setting module, which is used to collect attribute indicators of gas storage wells and set critical quantities of various attribute indicators;
运算模块,其用于运算各个属性指标导致储气井失效的重要度,且依据重要度与临界量构造失效值方程;A calculation module, which is used to calculate the importance of each attribute index leading to the failure of the gas storage well, and construct a failure value equation based on the importance and the critical amount;
修正模块,其用于依据侦测值与失效值方程修正各个属性指标的临界量;A correction module, which is used to correct the critical amount of each attribute indicator according to the detection value and the failure value equation;
预测模块,其用于依据各个属性指标的变动量、失效值方程与修正后的临界量构造失效预测模式,且依据失效预测模式预测储气井出现失效的作为储气井寿命的残留时段大小。The prediction module is used to construct a failure prediction model based on the change amount of each attribute indicator, the failure value equation and the corrected critical amount, and predict the residual time period of the gas storage well as the life of the gas storage well based on the failure prediction model.
本发明的有益效果在于,与现有技术相比,本发明经由收集储气井的属性指标,且设置各个属性指标的临界量;运算各个属性指标导致储气井失效的重要度,且依据重要度与临界量构造失效值方程;依据侦测值与失效值方程修正各个属性指标的临界量;依据各个属性指标的变动量、失效值方程与修正后的临界量构造失效预测模式,且依据失效预测模式预测储气井出现失效的残留时段大小的方法,可对各类规格的储气井执行失效预测,高效的减小了由于储气井出现失效事故带来的隐患,可预先提示工作人员替换将要出现失效的储气井,更是运用机器学习的合理预测方法防止了现有技术的主观随意性强的缺陷,所预测而得的储气井寿命精度高。The beneficial effects of the present invention are that, compared with the prior art, the present invention collects attribute indicators of gas storage wells and sets critical quantities for each attribute indicator; calculates the importance of each attribute indicator leading to failure of the gas storage well, and constructs a failure value equation based on the importance and the critical quantity; corrects the critical quantity of each attribute indicator based on the detection value and the failure value equation; constructs a failure prediction model based on the change of each attribute indicator, the failure value equation and the corrected critical quantity, and predicts the residual time period of failure of the gas storage well based on the failure prediction model. Failure prediction can be performed on gas storage wells of various specifications, effectively reducing the hidden dangers caused by failure accidents of gas storage wells, and can prompt staff to replace gas storage wells that are about to fail in advance. Moreover, a reasonable prediction method of machine learning is used to avoid the defects of strong subjective arbitrariness in the prior art, and the predicted life of the gas storage well is highly accurate.
本公开能是系统、方法和/或计算机程序产品。计算机程序产品能包括计算机可读备份介质,其上载有用于使处理器达成本公开的每个方面的计算机可读程序指令。The present disclosure can be a system, method and/or computer program product. The computer program product can include a computer-readable backup medium carrying computer-readable program instructions for causing a processor to achieve each aspect of the present disclosure.
计算机可读备份介质能是能保持和备份由指令执行电网线路运用的指令的有形电网线路。计算机可读备份介质就像能是――但不限于――电备份电网线路、磁备份电网线路、光备份电网线路、电磁备份电网线路、半导体备份电网线路或上述的随意恰当的汇合。计算机可读备份介质的更进一步地例子(非枚举的列表)包括:便携式计算机盘、硬盘、随意存取备份器(RAM)、只读备份器(ROM)、可擦式可编程只读备份器(EPROM或闪存)、静态随意存取备份器(SRAM)、便携式压缩盘只读备份器(HD-ROM)、数字多用途盘(DXD)、记忆棒、软盘、机械编码电网线路、就像其上备份有指令的打孔卡或凹槽内凸起结构、与上述的随意恰当的汇合。这里所运用的计算机可读备份介质不被解释为瞬时信号本身,诸如无线电波或其它自由传播的电磁波、通过波导或其它传输媒介传播的电磁波(就像,通过输电线路电缆的光脉冲)、或通过电线传输的电信号。The computer readable backup medium can be a tangible network capable of retaining and backing up the instructions used by the instruction execution network. The computer readable backup medium can be, but is not limited to, an electrical backup network, a magnetic backup network, an optical backup network, an electromagnetic backup network, a semiconductor backup network, or any suitable combination of the above. Further examples of computer readable backup media (non-exhaustive list) include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disk read-only memory (HD-ROM), digital versatile disk (DXD), memory stick, floppy disk, mechanically encoded network, such as punch cards or protrusions in grooves with instructions backed up thereon, and any suitable combination of the above. Computer readable backup media as used herein is not to be construed as transient signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., light pulses through power line cables), or electrical signals transmitted through wires.
这里所表达的计算机可读程序指令能从计算机可读备份介质下载到每个推算/处理电网线路,或通过网络、就像因特网、局域网、广域网和/或无线网下载到外部计算机或外部备份电网线路。网络能包括铜传输电缆、输电线路传输、无线传输、路由器、防火墙、交换机、网关计算机和/或边缘业务器。每个推算/处理电网线路中的网络适配卡或网络接口从网络收取计算机可读程序指令,并转发该计算机可读程序指令,以供存放于每个推算/处理电网线路中的计算机可读备份介质中。The computer readable program instructions expressed herein can be downloaded from a computer readable backup medium to each inference/processing grid line, or downloaded to an external computer or external backup grid line through a network, such as the Internet, a local area network, a wide area network, and/or a wireless network. The network can include copper transmission cables, power line transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge service devices. The network adapter card or network interface in each inference/processing grid line receives the computer readable program instructions from the network and forwards the computer readable program instructions for storage in the computer readable backup medium in each inference/processing grid line.
用于执行本公开运作的计算机程序指令能是汇编指令、指令集架构(lSA)指令、机器指令、机器关联指令、微代码、固件指令、条件设置数值、或以一种或多种编程语言的随意汇合编写的源代码或目的代码,所述编程语言包括面向对象的编程语言—诸如SdalltalA、H++等,与常规的过程式编程语言—诸如“H”语言或类似的编程语言。计算机可读程序指令能完全地在客户计算机上执行、部分地在客户计算机上执行、当做一个独立的软件包执行、部分在客户计算机上部分在远程计算机上执行、或完全在远程计算机或业务器上执行。在涉及远程计算机的情形中,远程计算机能通过随意属别的网络—包括局域网(LAb)或广域网(WAb)—连接到客户计算机,或,能连接到外部计算机(就像运用因特网业务提供商来通过因特网连接)。在一些实施例中,通过运用计算机可读程序指令的状况数值来个性化定制电子电路,就像可编程逻辑电路、现场可编程门阵列(FPGA)或可编程逻辑阵列(PLA),该电子电路能执行计算机可读程序指令,以此达成本公开的每个方面。The computer program instructions for performing the operations of the present disclosure can be assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine-associated instructions, microcode, firmware instructions, conditional setting values, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Sdaletal A, H++, etc., and conventional procedural programming languages such as "H" language or similar programming languages. The computer-readable program instructions can be executed entirely on the client computer, partially on the client computer, as a separate software package, partially on the client computer and partially on the remote computer, or completely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the client computer through any other network, including a local area network (LAb) or a wide area network (WAb), or can be connected to an external computer (just like using an Internet service provider to connect through the Internet). In some embodiments, each aspect of the present disclosure is achieved by customizing an electronic circuit by using state values of computer-readable program instructions, such as a programmable logic circuit, a field programmable gate array (FPGA) or a programmable logic array (PLA), which can execute computer-readable program instructions.
最后应当说明的是,以上实施例仅用以说明本发明的技术方案而非对其限制,尽管参照上述实施例对本发明执行了详细的说明,所属领域的普通技术人员应当理解:依然能对本发明的具体实施方式执行修改或等同替换,而未脱离本发明精神和区间的任何修改或等同替换,其均应涵盖在本发明的权利要求保护区间之内。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents, and any modifications or equivalent replacements that do not deviate from the spirit and scope of the present invention should be included in the protection scope of the claims of the present invention.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311513602.2A CN117763941B (en) | 2023-11-14 | 2023-11-14 | A method for evaluating gas storage well life based on machine learning |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311513602.2A CN117763941B (en) | 2023-11-14 | 2023-11-14 | A method for evaluating gas storage well life based on machine learning |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117763941A CN117763941A (en) | 2024-03-26 |
CN117763941B true CN117763941B (en) | 2024-06-21 |
Family
ID=90324384
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311513602.2A Active CN117763941B (en) | 2023-11-14 | 2023-11-14 | A method for evaluating gas storage well life based on machine learning |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117763941B (en) |
Family Cites Families (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FR3023641A1 (en) * | 2014-07-11 | 2016-01-15 | Schlumberger Services Petrol | |
CN104376420A (en) * | 2014-11-20 | 2015-02-25 | 中国石油天然气股份有限公司 | Water breakthrough risk evaluation method and evaluation device for gas well with water gas reservoir |
US20160146709A1 (en) * | 2014-11-21 | 2016-05-26 | Satyadeep Dey | System for preparing time series data for failure prediction |
US10430725B2 (en) * | 2016-06-15 | 2019-10-01 | Akw Analytics Inc. | Petroleum analytics learning machine system with machine learning analytics applications for upstream and midstream oil and gas industry |
CN108170047B (en) * | 2017-12-18 | 2019-08-30 | 华润电力湖北有限公司 | Unit Boundary Failure switching method, device, equipment and computer storage medium |
CN108170974A (en) * | 2018-01-10 | 2018-06-15 | 石家庄爱科特科技开发有限公司 | A kind of system efficiency of pumping well durability analysis method |
US11578564B2 (en) * | 2018-05-30 | 2023-02-14 | Saudi Arabian Oil Company | Systems and methods for predicting shear failure of a rock formation |
NO20220431A1 (en) * | 2019-11-15 | 2022-04-08 | Halliburton Energy Services Inc | Value balancing for oil or gas drilling and recovery equipment using machine learning models |
US12106197B2 (en) * | 2020-03-25 | 2024-10-01 | International Business Machines Corporation | Learning parameter sampling configuration for automated machine learning |
CN213398329U (en) * | 2020-07-27 | 2021-06-08 | 江苏省特种设备安全监督检验研究院 | In-use gas storage well life monitoring device |
US11675687B2 (en) * | 2020-09-01 | 2023-06-13 | Bmc Software, Inc. | Application state prediction using component state |
CA3194153A1 (en) * | 2020-11-30 | 2022-06-02 | Jio Platforms Limited | System and method of predicting failures |
CN115481548A (en) * | 2021-05-31 | 2022-12-16 | 中国石油天然气股份有限公司 | Method for predicting residual life of oil well casing in variable corrosion environment |
CN114328513A (en) * | 2021-12-20 | 2022-04-12 | 国网天津市电力公司营销服务中心 | A cluster-based early warning method for the importance and identification of big data attributes |
CN114969952B (en) * | 2022-07-27 | 2022-10-04 | 深圳市城市公共安全技术研究院有限公司 | Building collapse risk assessment method and device, computer equipment and storage medium |
-
2023
- 2023-11-14 CN CN202311513602.2A patent/CN117763941B/en active Active
Non-Patent Citations (2)
Title |
---|
基于多属性TOPSIS决策的交通网络路段重要度计算;陆百川;舒芹;马广露;何相;;浙江工业大学学报;20200612(第03期);全文 * |
基于有限元分析的CNG储气井疲劳设计计算;宋成立;淡勇;;化工机械;20130615(第03期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN117763941A (en) | 2024-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3903112B1 (en) | System and method for evaluating models for predictive failure of renewable energy assets | |
EP3902992B1 (en) | Scalable system and engine for forecasting wind turbine failure | |
KR101978569B1 (en) | Apparatus and Method for Predicting Plant Data | |
EP3584657B1 (en) | Risk assessment device, risk assessment method, and risk assessment program | |
EP3584656B1 (en) | Risk assessment device, risk assessment method, and risk assessment program | |
CN117664281B (en) | Ultrasonic water meter fault detection and automatic calibration method and system based on Internet of Things | |
CN118585755B (en) | Charging pile safety monitoring and fault diagnosis method and system based on artificial intelligence | |
CN118330505A (en) | Line leakage current monitoring and leakage protection method based on wireless communication | |
CN114047266B (en) | Inspection method, device and system for gas relay light gas monitoring device | |
CN117909703B (en) | Data quality evaluation method and system based on alarm threshold trigger | |
CN119147141A (en) | Substation SF6 pressure gauge based data acquisition and processing method | |
CN104656053B (en) | Method and system for state estimation of electric energy metering device | |
CN107121943B (en) | Method and device for obtaining health prediction information of intelligent instrument | |
CN118776423A (en) | A dam surface and displacement monitoring system | |
CN117763941B (en) | A method for evaluating gas storage well life based on machine learning | |
CN117129815B (en) | Comprehensive detection method and system for multi-degradation insulator based on Internet of things | |
CN118962324A (en) | Transmission line fault hidden danger early warning system based on Beidou positioning system | |
CN118154166A (en) | Equipment maintenance method, device, equipment and storage medium | |
CN119085902A (en) | Method and device for detecting expansion force of battery cell, electronic device and storage medium | |
CN116485034A (en) | Urban drainage prediction method and system | |
CN115524556A (en) | An abnormal identification method for DC capacitors of electrochemical energy storage converters | |
CN119249766B (en) | Wind power blade fatigue damage prediction method, computer equipment and readable storage medium | |
CN119619810B (en) | Method and device for identifying operation status of crane circuit | |
CN119231757A (en) | Automatic monitoring method, device, electronic equipment and storage medium for hidden dangers of substation | |
CN119887445A (en) | Heating data processing method and device based on artificial intelligence and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |