Yun-Tao Li,Xiao-Ning He,Jian Shuai
College of Safety and Ocean Engineering,China University of Petroleum,Beijing,China
Keywords:
ABSTRACT
Most natural gas transportation occurs through pipelines due to their high efficiency,low cost,and inability to be easily affected by the transportation environment(Cui et al.,2020;Wang et al.,2020;Turkowski and Szudarek,2019;Hao et al.,2019).The extension of pipeline service life leads to a greatly increased probability of pipeline accidents(Xing et al.,2020;Wang et al.2017,2020;Liu et al.,2018;Lu et al.,2015;Badida et al.,2019;Guo et al.,2016).Some characteristics of the soil,such as salinity,may have a negative effect on pipelines due to long-term contact.(Li et al.,2018;Wang et al.,2015a).External corrosion has been determined to be one of the main reasons for the failure of buried pipelines(Liu et al.,2018;Li et al.,2018;Gadala et al.,2016).Once a pipeline fails,disastrous consequences such as fires,explosions,and environmental pollution can result(Cui et al.,2020;Zhou et al.,2020;Liu et al.,2018).The timely maintenance of corroded pipelines is important for preventing unnecessary losses(Bastian et al.,2019;Liu et al.,2018).However,excessive maintenance may reduce the efficiency of pipeline transportation.For this reason,risk-based maintenance has been applied to provide a balance between safety and efficiency(Li et al.,2017).In other words,maintenance plans need to be optimized with a consideration of both the costs and the failure risks of pipelines.
It is necessary to analyse the causes of buried pipeline external corrosion and consider how to take targeted maintenance measures.Several studies have been conducted in the fields of pipeline risk analysis in both qualitative and quantitative ways,especially for the assessment of failure probability and the prediction of corrosion rate(Wang et al.,2015b;Caleyo et al.,2015;Badida et al.,2019;Lecchi,2011;Guo et al.,2016;Vanaei et al.,2017;Valor et al.,2013;Wang and Duan,2019;Chen et al.,2020).For example,Allahkaram et al.(2015)estimated the corrosion rate of pipelines under the influence of stray currents.Shan et al.(2018)established an assessment model of gas transmission pipeline failure probability based on historical failure-related data and modification factors.The establishment of maintenance strategies can reduce the probability of failure to some extent.Zakikhani et al.(2020)proposed a maintenance planning framework for the external corrosion of gas transmission pipelines through an availabilitycentred reliability-based maintenance planning procedure.A multilevel strategy was proposed for the maintenance optimization of pipeline systems subjected to external corrosion by XQ Liu et al.(2018).At present,many studies have been conducted on pipeline risk assessment and maintenance(Kimiya et al.,2020).How to combine maintenance decisions and risk assessments to effectively improve the safety of pipeline operation is necessary.
Pipeline risks change when different maintenance decisions are made.This dynamic feature places a high demand on the risk analysis method(Wu et al.,2017;Kabir et al.,2015).However,conventional risk analysis methods like fault tree analysis and event tree analysis(Wu et al.,2017;Naghavi-Konjin et al.,2020)have limitations,such as the inability to analyse the relationship between variables and the absence of specific probability expressions of the events(Guo et al.,2020).Therefore,a risk analysis method that can describe the relationship among variables with uncertainty and multi-state issues is needed(Zhang et al.,2018;Wang et al.,2017).Bayesian network(BN)are one of the most effective theoretical models in the field of uncertain knowledge expression and inference(Zhou et al.,2020).The main advantage of a Bayesian network is that it can update the probability and act as a special dynamic manifestation according to the different settings of the evidence nodes(Li et al.,2020;Dahire et al.,2018;Wang et al.,2017).This advantage can be applied in the external corrosion risk assessment of pipelines with a consideration of pipeline maintenance.During pipeline operation,specific parameters can be obtained through detection or pipeline properties.Those parameters,as well as the assumed maintenance decisions,can appear as evidence nodes in a Bayesian network to update the predicted failure probability.
To reduce the pipeline failure probability caused by external corrosion with reasonable maintenance methods,a maintenance decision model based on a Bayesian network is proposed in this paper.Section 2 describes the framework and the methods employed in this work.Section 3 and Section 4 introduce the risk assessment model and maintenance decision model,respectively.Section 5 illustrates the application of the model through a case study.Section 6 offers conclusions.
This section provides an overview of the proposed methodology.The framework is shown in Fig.1.First,a fault tree model is established to analyse the risk factors for buried natural gas pipelines.Then,the Bayesian network is determined accordingly.Second,a probability estimation model that combines expert experience and fuzzy set theory is established to determine the conditional probability tables(CPTs)and some parts of the prior probability in the BN.Finally,the maintenance decision model based on the BN is proposed.
Fault tree(FT)is a deductive failure analysis method used to analyse the unwanted state of a system from the result to the causes(Gachlou et al.,2019;Badida et al.,2019;Yin et al.,2020).It is mainly used in the fields of reliability engineering and safety engineering to find the causes of accidents.In practical applications,fault tree analysis is good at finding the weak part of a system.However,a FT cannot express the uncertainty of an event accurately.The probability of the events in a FT is expressed in Boolean algebra with“AND”and“OR”gates.Its conditional probability has only two values,0 or 1.This is much different from a real situation.For example,the occurrence of a stray current could enhance the possibility of external corrosion but not definitely lead to the failure of a pipeline.In contrast,a Bayesian network has a flexible structure and a better representation of the probability of events(Badida et al.,2019;Villa et al.,2016).
Fig.1.The framework of the proposed methodology.
A Bayesian network,also known as a belief network,is a directed acyclic graph model.It is comprised of nodes representing stochastic variables and directed arcs symbolizing probabilistic conditional dependencies among the variables(Khakzad et al.,2011;Tien and Kiureghian,2016).A Bayesian network is a causal association model that has a strong ability to deal with uncertainties.This was first proposed by Judea Pearl in 1985 and has since become one of the main techniques for dealing with uncertain information(Pearl,1985).Usually,a BN consists of nodes,directed edges and conditional probabilistic tables(CPTs)(Li et al.,2020).The nodes,including parent nodes and child nodes,represent random variables.The directed edges show the dependencies among the variables.The CPTs show the conditional probabilities between the dependent variables and the parent nodes.(Khakzad et al.,2013).
A joint probability distribution over a set of variables X={X1,X2,…,Xn}is shown as follows:where Xi?X.Pa(Xi)is the parent set of the variable Xi(Li et al.,2020).
Given new observations or evidence,the prior probability of the variable can be updated.Then,the posterior probability of the variable can be obtained as(Caleyo et al.,2015):
For accurate failure probabilities that are difficult to obtain through inadequate historical data,a probabilistic estimation model combining experts’judgement and fuzzy set theory can be used as an alternative.There are many applications of fuzzy set theory that deal with uncertainty and inaccuracy in expert judgements in linguistic terms(Yazdi and Kabir,2017).Trapezoidal fuzzy numbers are adopted in this study to express the probability of occurrence of an event(Li et al.,2019).
The membership function of a trapezoidal fuzzy number has the following form:
Fig.2.Fault tree diagram.
Fig.3.Bayesian network for buried pipeline external corrosion.
Where A=(a,b,c,d)is a group of trapezoidal fuzzy numbers.
In this paper,9 linguistic terms are used to estimate the occurrence probability of events.Three experts are asked to describe the probability of the basic events with“Very low,Low-Very Low,Low,Fairy low,Medium,Fairy high,High,High-Very High,and Very high”.Fuzzy set theory is applied to transform the description of linguistic terms into fuzzy numbers,as shown in Table 1.Because the professional and education levels of experts are not exactly the same,different experts are assigned weights expressed byω=(ω1,ω2,ω3).The influencing factors of the weights are professional position,education level,experience and age(Ramzali et al.,2015).The fuzzy failure possibility of event i in state j can be calculated with Eq.(4)where P(~)ijis the trapezoidal fuzzy probability of event i,Aijis the expert's description of event i corresponding to a fuzzy array,andωlis the weight of expert l,l=1,2,3.In general,the number of experts should be at least 3 to reduce the subjectivity of judgment.
Table1 Linguistic terms and their corresponding fuzzy numbers used to describe the likelihood of an event(Chen and Hwang,1992).
Fig.4.Bayesian network of soil corrosivity.
To obtain a representative probability value of the basic events,the fuzzy numbers must be defuzzified.Based on obtaining the trapezoidal fuzzy probability,the fuzzy possibility scores P*of the node are calculated with the centre area method,as shown in Eq.(5)
Finally,the fuzzy probability scores are converted to the fuzzy probability based on a function developed by Onisawa(1988),as shown in Eq(6).where K is a constant and FP is the fuzzy probability of the event.
Table 1 shows the probability ranges and fuzzy numbers corresponding to different fuzzy terms for event likelihood.For the prior probability that cannot be obtained according to the historical data,as well as the CPTs that are not simply converted from the logic gates,the probabilistic estimation model is an alternative.
Maintenance plays an important role in reducing the risk.The main concept of the maintenance decision model is to analyse the effect of maintenance strategies on reducing the failure probability.At the same time,the cost of the maintenance method should also be reasonable.
For pipeline external corrosion,the maintenance cost,inspection cost and expected failure loss are considered.The maintenance decision is made based on the optimization of the total cost,which can be calculated as:
where R is the total cost.CRiis the cost when choosing maintenance method i.CFjis the loss of failure mode j,and PFjis the probability of failure mode j after maintenance implementation.CDkis the cost of the routing inspection,and PDkis the certain inspection frequency,which is determined by DS evidence theory.m is the total number of failure modes,while s is the total number of inspection frequency classifications.
Fig.5.Maintenance decision model.
In this part,a fault tree that takes external corrosion as the target event is built to analyse the possible reasons for the external corrosion.External corrosion can be categorized into two types:1)soil corrosion and 2)stray current corrosion(Cui et al.,2016).Either of them will lead to external corrosion of the pipeline.Direct causes are further discussed for these two forms of corrosion,and 18 basic events leading to pipeline external corrosion are obtained.Fig.2 shows the analysis process of hazard identification,and the basic events are listed in Table 2.
Table2 Basic events of FT.
Fig.2 analyses the possible causes of external corrosion for buried pipelines.However,“Yes”or“No”cannot represent the actual states of some basic events of the fault tree.For example,the nodes“inspection frequency”and“service time of the pipe”have 3-4 states.For this reason,the FT needs to be transferred into a BN to solve those problems,especially for events with multiple states.
Fig.6.Marked observable nodes in the Bayesian network.
All the basic events in the FT correspond to the root nodes in the Bayesian network.According to the relationship of the events in the FT,the nodes are connected in a Bayesian network with directional edges.It should be noted that the directional direction of the edges is consistent with the output direction of the logic gates in the FT.The established FT in Fig.2 is transformed into a Bayesian network,and the corresponding revisions are made.The revised structure of the Bayesian network is shown in Fig.3.
The nodes in this Bayesian network and their corresponding states are described in detail in Section 4.2.
Soil corrosivity plays an important role in influencing factors of the external corrosion of buried pipelines.Many factors influence soil corrosivity,and the classification is complex.Therefore,soil corrosivity was modelled separately in this study.According to GB/T 19,285-2014,there are 8 main factors affecting soil corrosivity.Fig.4 shows the Bayesian network of the soil corrosivity,which includes the soil resistivity,redox potential,free corrosion potential,pH value,chloride content,soil salinity,soil moisture,and soil texture.Table 3 exhibits the nodes and the states variables.
Table3 Nodes illustration in the Bayesian network of soil corrosivity.
According to GB/T 19,285-2014,each grade of the above parameters was assigned a score.The sum of the scores of the 8 parameters can be divided into 4 grades presenting the soil corrosivity.The CPT of soil corrosivity is determined by the sum of the evaluation scores.The probability of soil corrosivity at different levels can then be obtained from the BN mentioned in Fig.4 accordingly.
To address the external corrosion of natural gas pipelines,maintenance measures are divided into four parts:1)maintenance of coating;2)maintenance of cathodic protection system;3)stray current;and 4)pipeline replacement.The corresponding maintenance means for each part are shown in Table 4.
Table4 Description of means of maintenance.
In the engineering practice,“direct drainage”and“ground drainage”are more convenient and economical.Therefore,other drainage modes were not considered in this study.All the repair parts of the pipe are listed in Table 4.The external corrosion caused by the different parts of the pipeline refers to different failure scenarios.In the face of various maintenance methods,choosing appropriate maintenance means in the face of different failure scenarios is a problem that needs to be solved.
A Bayesian network can flexibly delete and add nodes.Taking advantage of this feature,maintenance strategies are considered the parent nodes of pipeline failure causes and are inserted into the BN in Fig.3.The risk,or the pipeline failure probability,can then be reassessed under the assumption that maintenance measures have been conducted.A decision can be made according to the optimization function combining the reassessed risk and the costs,as mentioned above in Eq.(7).For a given pipeline,the costs of specific maintenance measures,failure loss and inspection frequency can be obtained from historical experience and expert estimation.
I lay down on the examining table. I d worn a big plaid flannel6 shirt and a camisole underneath. It was a carefully thought out costume that I hoped others would regard as a casual wardrobe choice. The plaid camouflaged7 my new chest, the camisole protected it and the buttons on the shirt made for easy medical access.
Fig.5 shows the maintenance decision model,which is based on the BN in Fig.3,with the maintenance nodes added.The illustrations of the nodes are listed in Table 5.
Table5 Node illustration in the maintenance decision model.
The prior probabilities and the CPTs are pre-set parameters in the BN.In this work,the prior probabilities and the CPTs are obtained by combining historical statistical data and expert estimations.
The prior probability of some nodes can be obtained from statistics.For example,according to statistics,the probability of a pipe being less than 20 years old is 0.61,and the probability that it is between 20 and 30 years old is 0.26.The specific statistical results are taken as the prior probabilities of the“service time of the pipe”node.However,it is not practical to obtain all prior probability from historical statistics because of the limitation of data access.The probabilistic estimation model based on expert experience can be an alternative.
Experts are asked to describe the probability of BN nodes using linguistic terms.Based on the methods proposed in Section 2.3,the fuzzy probability(FP)can be calculated as the prior probability of root nodes.Table 6 lists the prior probability of each basic event.
Table6 Prior probability of root nodes.
It is particularly noted that maintenance strategies are observable nodes in the BN.The states of the maintenance nodes can be directly determined through observation.Therefore,no prior probability is assigned to such nodes.Regarding another observable node“inspection frequency”,the experts'judgement may differ due to different statistical cycles and methods.DS evidence theory is applied here to calculate the posterior probability distribution,considering all expert judgements.The use of DS evidence theory in Bayesian networks can be found in Ref(Hui et al.,2017).The observable nodes are marked in a deeper colour in the Bayesian network,as shown in Fig.6.
The BN is mapped from the FT,but the logic gates in the FT cannot be converted to the CPTs in the BN directly.In this paper,the CPTs are determined with both logic gates and the probability estimation model mentioned in Section 2.3.Logic gates represent deterministic relationships among variables(Gachlou et al.,2019;Badida et al.,2019;Yin et al.,2020;Yu et al.,2019).The external corrosion node reflects the OR gate relationship.It's assumed that when“replace the pipe”is“Yes”,external corrosion is eliminated.If no maintenance measures are taken,either soil corrosion or stray current corrosion occurs,the state of external corrosion is“Yes”.Table 7 shows this relationship.
Table7 The CPT of the node“External corrosion”.
For the BN in Fig.6,the CPTs of some nodes are complex.For example,“coating failure”has 7 parent nodes,leading to the CPT of 192 combinations.It is difficult to ask experts to put such numerous cases into linguistic terms.For the sake of simplification,some assumptions are employed.It is assumed that replacement of the coating leads to a coating failure probability of zero.When the coating is not replaced,the coating failure risk is the sum of the failure probabilities of each risk factor separately.
Fig.7.Initial condition of Bayesian network.
The part of the fuzzy probability of the“coating failure”node after simplification is shown in Table 8,where“C”“T”“P”“I”and“S”represent“construction quality issues”,“third party activities”,“poor quality of coating”,“improper selection of coating”,and“service time of the pipe”,respectively.
Table8 Part of CPT for“coating failure”node.
Table9 Soil parameter hypothesis.
Fig.8.Bayesian network after taking maintenance measures.
Under the above conditions,a decision should be made on how to maintain the pipeline.It is assumed that coating repair and grounding drains are adopted,and parts of cathodic protection are determined to be repaired.At this point,it can be observed that the probability of external corrosion is reduced to 2.56E-08,as shown in Fig.8.According to the historical data and expert judgements,the cost values of different repair parts and methods are determined in Table 10.The inspection costs and the failure losses are also obtained in the same way.To simplify the calculation,all descriptions are specific to a pipe segment.
Table10 The cost setting.
Different combinations of maintenance means correspond to different cost values.The loss amount of external corrosion is considered to be 80 million.If the pipe is replaced,the external corrosion probability is reduced to zero,but the total cost is 2.018 million.In addition,a summary of all available means of maintenance and the corresponding cost values are given in Table 11.
The variation in the risk of external corrosion and the costs under the above four maintenance conditions are shown in Fig.9.The numbers 1-17 correspond to the 17 maintenance plans in Table 11.According to the optimization function proposed in Section 2.4,the maintenance methods of coating repair will optimize the situation.
Table11 Maintenance means summary.
In this paper,a fault tree model is first used to analyse the causes of external corrosion in buried pipelines,including corrosion factors and anti-corrosion measures.A novel maintenance decision model based on a Bayesian network is proposed accordingly to analyse the maintenance cost and the effect of external corrosion maintenance strategies on failure probability.Fuzzy set theory was employed with domain expert knowledge to estimate the occurrence probabilities of the root events and the CPTs.Events with observable or measurable states are set as evidence nodes to represent the pipeline conditions and the implemented maintenance measures.The effect of maintenance on failure reduction is illustrated through a case study.It shows that the maintenance decision model is practicable for selecting the optimal maintenance plan,as well as realizing the risk reassessment after the implementation of maintenance measures.It is verified that the method proposed in this paper is feasible for decision making regarding the maintenance of pipeline external corrosion,as well as other failure scenarios,which will be studied in the future work.
Fig.9.External corrosion risk and cost variation.
Acknowledgment
This work was supported by the National Key R&D Program of China(Grant No.2018YFC0809300),the National Natural Science Foundation of China(Grant No.51806247),the Key Technology Project of PetroChina Co Ltd.(Grant No.ZLZX2020-05),the Foundation of Sinopec(Grant No.320034),and the Science Foundation of China University of Petroleum,Beijing(Grant No.2462020YXZZ052).