PSIG 0301: Leak Detection and Locating - A Survey
PSIG 0301: Leak Detection and Locating - A Survey
presentation,
EXTERNALLY BASED SYSTEMS
• operation, maintenance and testing, and
Local leak sensors of externally based systems generate a leak
• descriptions of types of internally based CPM systems. alarm which e.g. can be evaluated by SCADA-systems. This
kind of LDS is characterized by a very good sensitivity to
leaks and is very accurate with respect to the leak locating. On
TRFL (Germany) the other side, system costs and complexity of installation
usually are high; applications therefore are limited to special
TRFL is the abbreviation of “Technische Regel für Fernlei- high-risk areas, e.g. near rivers or nature protection areas.
tungsanlagen” (Technical Rule for Pipeline Systems); it is the
successor of the TRbF 301, “Technische Richtlinie für
brennbare Flüssigkeiten” (Technical Guideline for flammable Acoustic emission detectors
Liquids). Up to now, the TRFL is not officially published; the
actual proposal dates from June, 2002. Nevertheless, all new Escaping liquids creates an acoustic signal as it passes through
pipeline systems must comply with the TRFL, which therefore a perforation in the pipe. Acoustic sensors affixed to the out-
in fact is valid. side of the pipe monitor internal noise levels and location,
creating a baseline acoustic “fingerprint” of the line. When a
The TRFL summarizes requirements for pipelines being sub- leak occurs, the resulting low frequency acoustic signal is de-
ject of official regulations. It covers tected and analyzed. Deviation from the baseline “fingerprint”
would signal an alarm [6]. The received signal is stronger near
• pipelines transporting flammable liquids, the leak site thus enabling leak locating, see below.
• pipelines transporting liquids being dangerous for water, Fiber optic sensing cables
and
The fiber optic sensing leak detection method involves the
• many pipelines transporting gas. installation of a fiber optic cable along the entire length of the
pipeline, Fig. 3. The substances to be measured come into con-
The TRFL is divided into the two parts “Operation” and tact with the cable in case of a leak occurrence, changing the
“Constitution” of pipeline systems. Only a small part is con- temperature of the cable. The distributed fiber optical tempera-
cerned with leak detection and locating, focusing to the speci- ture sensing technique offers the possibility to measure
fication of measures necessary in order to detect and locate temperature along the pipeline.
leaks. Five different LDS and LDS functions are required1, see
Fig. 2: This technique is based on the Raman Effect and the so-called
Optical Time Domain Reflectometry (OTDR). A pulsed laser
• Two independent LDS for continuously operating leak is coupled into the optical fiber which is the sensing element.
detection during steady state operation. One of these sys- In the fiber the photons interact with the molecules of the fiber
tems or an additional one must also be able to detect leaks material. Therefore, the laser light is scattered as the laser
during transient operation, e.g. during start-up of the pipe- pulse propagates through the fiber owing to changes in density
line. and composition of the fiber as well as to molecular and bulk
vibrations. Some of the photons are scattered backwards. The
• One LDS for leak detection during stand-still operation. spectrum of the backscattered will be analyzed. The spectral
analysis is combined with measuring propagation time of the
• One LDS for creeping leakages. laser pulses along the fiber (radar principle) because the veloc-
ity of the light in the fiber is known. Scanning the entire length
• One LDS for fast leak locating. of the fiber by short intervals (e.g. 3ft) the temperature profile
along the fiber is determined, leading to leak detection and
The TRFL is focused to general requirements necessary to
locating [7].
detect and locate leaks; it gives not much information about
technical aspects like design or implementation of LDS.
Vapor sensing cables
There are many possibilities to classify externally and inter-
nally based systems; we want follow the API classification The vapor sensing tube leak detection method involves the
scheme [4]. installation of a tube along the entire length of the pipeline,
Fig. 4. This tube is highly permeable to the substances to be
detected in the particular application. If a leak occurs, the sub-
stances to be measured come into contact with the tube in the
1
It is partially possible to combine different LDS functions form of vapor, gas or dissolved in water. The tube is pressure-
into one LDS device. tight and is filled with air (at atmospheric pressure) when in-
PSIG 0301 Leak Detection and Locating – A Survey 3
stalled. In the event of a leak, some of the leaking substance with mass flow M i and M O at inlet (I) and outlet (O), re-
diffuses into the tube due to the concentration gradient. After a
spectively, and the mass M L stored in the line. In general, line
certain period of time, the inside of the tube produces an accu-
rate image of the substances surrounding the tube, regardless fill2 M L for a pipeline of length L changes over time due to
whether the tube is installed in air, water or in the ground. changes of the fluid density ρ and cross-sectional area A ac-
cording to
In order to analyze the concentration distribution present in the
sensor tube, a pump pushes the column of air in the tube past a L L
dM L d d
detection unit at a constant speed, thus recording the measured
level as a function of the pumping time. The concentration dt
=
dt ∫ ρ ( x) A( x) dx = ∫
0 0
dt
ρ ( x) A( x) dx (2)
dM L
M I (t ) − M O (t ) = (1) 2
Terms like „line pack“ or „pipeline inventory“ are also used.
dt 3
Also referred as „residual“.
4 GERHARD GEIGER, THOMAS WERNER, DRAGO MATKO PSIG 0301
dV L momentum equation
R (t ) ≡ V I (t ) − VO (t ) − (6)
dt
dv 1 ∂p
+ ⋅ + fD = 0 , (11)
Volume balance permits very simple line pack elimination. dt ρ ∂x
Compensated mass balance. Returning to eq. (1), a more and energy equation
rigorous approach leads to the residual definition
dh 1 dp
dM L − ⋅ − lL = 0 . (12)
R(t ) ≡ M I (t ) − M O (t ) − (7) dt ρ dt
dt
Remarks:
with dM L dt according to eq. (2). Dividing the pipeline into
n segments where p, T and ρ can be regarded as uniform re- • These equations describe (for simplicity) one-dimensional
(location x) transient (time t) single-phase fluid (liquid
sults in the line fill calculation
and gas) flow in a single pipeline segment without diffu-
L n sion. It is a hyperbolic type PDE system.
M L = ∫ ρ ( x) A( x) dx ≈ ∑ ρ i Ai . (8)
0 1 • Appropriate thermodynamic state equations p = p ( ρ , T )
and h = h( ρ , T ) are required to eliminate enthalpy h ,
with uniform segment density ρ i . For liquids (especially oil leading to three equations with three unknowns ρ , v and
products), ρ i can be calculates using the thermodynamic rela- p.
tion
• Drag force f D per unit mass includes force of gravity per
ρ = ρ ( p, T ) = C p ( p − p 0 , T − T0 ) ⋅ C T (T − T0 ) ⋅ ρ 0 (9)
unit mass and friction force per unit mass: f D ≡ f G + f F .
with volume correction factors for pressure Cp and CT for tem-
• Losses l L per unit mass includes heat flow per unit mass
perature [9]. ρ 0 denotes the liquid density at some reference
point p0, T0. Using eq. (9) together with the cross-sectional and dissipative losses per unit mass: l L = lQ + v ⋅ f F .
area A = A( p, T ) (see [9]), line fill eq. (8) can be computed
numerically providing segment variables pi, Ti, e.g using addi- • The computation of heat flow per unit mass lQ requires
tional measurements or a steady-state model of the pipeline. an additional thermal model.
Model compensated mass balance. Using Real-time Tran- • Special model extensions could be required for multi-
sient Models (RTTM) allow for the computation of density phase conditions and other non-standard conditions (slag-
ρ ( x, t ) along the pipeline, see below [4]; model inputs are a line, usage of drag reducing agents, DRA).
choice of variables pI, M I ( V I ), TI at inlet and pO, M I ( V I ), Up to now, there is no known analytical solution. Therefore,
TO at outlet. Therefore, line fill ML in eq. (8) can be computed numerical algorithms have to be used instead [11]. Examples
using model output ρ ( x, t ) . From a theoretical point of view, are method of characteristics (MOC) and finite difference,
this is the most rigorous balancing approach. finite volume and finite element methods.
4
Relation to volume flow is given by V = A ⋅ v .
PSIG 0301 Leak Detection and Locating – A Survey 5
with Reynolds number R and roughness height ε ; see [13] Alternative approaches. Transfer function models for the
and [14] for alternative turbulent flow formulas. For laminar PDE system eq. (10-12) are obtained by linearizing these
flow, eq. (14) simplifies to equations and carrying out a Laplace transformation. The re-
sulting transfer function is transcendent. Simple models of the
64 pipeline in the form of a lumped parameter system can be ob-
f = . (15) tained by a Taylor series expansion of transcendent transfer
R
functions. The resulting algorithms are less time-consuming
State equations. It is interesting to see, that the thermody- and hence better suited for critical real time applications [18].
Use of Neural Nets (NN) presents another possibility for sys-
namic state equations p = p ( ρ , T ) and h = h( ρ , T ) are the
tem modeling using a black box approach: trained by field
only fluid specific equations in eq. (10-12). The simplest ap- data, NN are able to describe the pipeline behavior without
proach for an ideal gas results in [15] any knowledge about pipeline physics. NN are of special in-
terest [19]
R
p = p( ρ , T ) = 1⋅ ⋅ ρ ⋅T (16)
M • for pipelines with complex physical behavior, where a
physical description is time consuming (or maybe not
with gas constant R and molecular weight M, and possible to find), or
according to eq. (2) in real-time. The imbalance subsequently tively. Pressure drop ∆p is estimated using
can be compared with
∆pˆ (k ) = µˆ 0 (k ) − µˆ 1 (k ) . (26)
< A ⇒ no leak
R (20)
≥ A ⇒ leak Appropriate alarm thresholds α arise from the fact, that
λ
< B ⇒ no leak
(32) dp ρv v (
M − M leak M − M leak )( )
= f = f . (35)
≥ A ⇒ leak dx 2D 2 DA 2 ρ
against two thresholds A and B with A>B to evaluate the leak Eq. (34) and eq. (35) define two straight lines, which intersect
alarm. No decision is mad if B ≤ λ < A . Mean µ 0 and stan- at the leak location, Fig. 6. Measuring the straight line gradi-
dard deviation σ are not known; therefore estimates are re- ents (assuming that the friction factor f is known and estimates
quired. A simple approach is to use running estimates like eq. of the leak rate M leak are available) and calculation of the
(24), leading to a sequential generalized likelihood ratio test. It
point of intersection therefore allow for leak location estima-
is also possible to use different pre-assigned values for σ ac-
tion [21].
cording to the actual operating condition, e.g. during transient
operation, hereby decreasing the false alarm probability at the
Wave propagation analysis. If a sudden leak M leak occurs
expense of increasing the lowest detectable leak rate.
at time tleak, a negative pressure wave with wave front ampli-
tude ∆p can be observed propagating with wave speed a
LEAK LOCATING through the pipeline with cross-sectional area A, downstream
and upstream with respect to the leak location xleak. Applying
Externally based LDS eq. (21) yields6
Local leak sensors of externally based systems often provide 1
very accurate leak locating at the expense of high system costs ∆p = − ρ ⋅ a ⋅ ∆v = − ⋅ a ⋅ M leak . (36)
A
and complexity of installation.
Using pressure transducers installed downstream and upstream
Internally based LDS of the leak location, this wave can be detected at time
dp ρv v M M
= f = f , (34)
dx 2D 2 DA 2 ρ
6
In real applications, the wave amplitude ∆p decreases due to
5
Unchanged mass flow of inlet had been assumed for simplic- heat transfer and friction losses, leaving the basic principle
ity but without loss for generality. untouched.
8 GERHARD GEIGER, THOMAS WERNER, DRAGO MATKO PSIG 0301
Optimization methods. It is possible to extend the mathe- solvable by well known statistical methods, e.g. multiple
matical model eq. (10-12) with a leak described by leak rate hypothesis testing.
M leak at leak location xleak. This can be used using a RTTM-
Exponents of this kind of thinking come to the point: leak
based deviation analysis approach. If a leak occurs, simulated detection is a decision problem, and they can apply well
and measured values from redundant variables differ at the known statistical methods like SPRT. But they tend to ne-
first moment. After leak detection, model parameters glect the process variables are not stationary at all, hereby
M leak and xleak will be tuned automatically using an optimiza- reducing the possibility of include a-priori-knowledge.
tion method, e.g as proposed by Levenberg and Marquard.;
goal of the optimization is to minimize the difference between In order to combine the advantages and eliminates the disad-
vantages of both points of view, the now presented extended
measured and simulated variable. M leak and xleak correspond to
RTTM (E-RTTM) approach [21, 24, 25] combines both meth-
the minimum of the difference. odologies:
Multiple hypothesis testing. If an extended mathematical • A “classical” RTTM generates residuals basing on the
model with model parameters M leak and xleak is available, mul- RTTM deviation analysis. This module will be called
tiple mathematical models can be computed in parallel. Each subsequently “pipeline observer”.
model corresponds to a specific hypothesis, associated to spe-
cific values of the model parameters M leak and xleak. Leak lo- • A statistical classifier uses the residuals as input. It as-
signs the pipeline to one of two classes: class “no leak”
cation estimation is equivalent with finding the best-matching and class “leak”. This module will be called subsequently
mathematical model by means of a statistical hypothesis test. “pipeline classifier”.
AN EXTENDED RTTM APPROACH This forms an online pattern recognition scheme [26] with a
feature extraction module (pipeline observer) and a classifica-
The internally based LDS methodologies presented previously tion module (pipeline classifier), Fig. 8.
point up two different points of views:
Pipeline observer. The pipeline observer computes residuals
• Simulation point of view. From this point of view, detect-
ing a leak mainly requires the knowledge of the transient x(t ) ≡ v I (t ) − vˆ I (t )
(40)
behavior of a pipeline, either without or with leak. Model y (t ) ≡ v O (t ) − vˆ O (t )
compensated mass balance techniques are an example:
Assuming that the mathematical model (e.g. eq. (10-12)) with measured flow v I (t ) and v O (t ) at inlet an outlet, respec-
is correct, the computation of the corrected imbalance (re-
sidual) eq. (1) leads to the straightforward leak detection tively8. vˆ I (t ) and vˆ O (t ) denote estimated flows at inlet and
eq. (20); not much statistics are required. outlet, assuming that there is no leak.; calculation is computer
based solving the PDE system eq. (10-12) for given boundary
Exponents of this kind of thinking are able to include a- conditions. Up to that point, the extended LDS just is a RTTM
priori-knowledge of the pipeline in a very sophisticated LDS using the deviation principle as described before.
way. But they tend to neglect the decision nature of leak
detection: at the end, beside all sophisticated computa- Pipeline classifier. The residuals are inputs to the pipeline
tions, there must be the simple binary decision: “no leak” classifier, which uses them as features in the context of a pat-
or “leak”. tern recognition scheme. Transient effects are compensated to
some extend by the pipeline observer; so the classifier doesn’t
• Statistical point of view. Statisticians strongly emphasize need to consider them. From a theoretical point of view, ne-
the decision aspect of leak detection: at the end, the LDS glecting model errors and assuming appropriate measurement
has automatically to decide if there is a leak or not. This noise characteristics, the residuals are stationary normal dis-
leads to decision theory [27]. The LDS basing on Wald’s tributed process variables. It is then straightforward to use
Sequential Probability Ratio Test (SPRT) described in well known statistical classification tools to perform leak de-
[23] and the Pressure Point Analysis PPA [22] are previ- tection; a rich set of them is available [26]. An appropriate
ously discussed examples: Assuming that process vari- technique is described in [27]: to perform leak detection, the
ables like uncompensated mass imbalance (SPRT) or residual sequence will be analyzed to discover changes in the
pressure (PPA) behave in a statistical “good” manner7, statistical model behavior. If a significant change of parame-
leak detection reduces to a statistical detection problem, ters describing the mathematical model will be detected, leak
8
7
Usually meaning stationary normal distributed process vari- Volume flow V and mass flow M could also be used instead
ables. of v ; F in Fig. 8 therefore denotes one of these three variables.
PSIG 0301 Leak Detection and Locating – A Survey 9
alarm is raised. Leak persistence is tested using a simple out- • If a leak occurs during start-up with severe transients,
lier removal algorithm: during a test phase, the leak test must mean value increases to 164l (1.040bbl, 43.7 US gal).
steadily indicate a leak; otherwise, the leak alarm will be dis-
carded. Accuracy of leak locating. Near the middle of the pipeline, a
test quantity had been removed from the line; Fig. 11 summa-
Leak locating. The pipeline classifier additionally estimates rizes the results of the leak locating algorithm.
leak location (and rate) using two methods described previ-
ously: gradient intersection method [22] and wave propagation Conclusion. The E-RTTM LDS according to Fig. 8 has
analysis. The algorithm automatically uses the method best proven his applicability and very good performance for a liq-
suited for the specific application and operation condition. uid application, a multi-batch-pipeline transporting up to 7
different batches.
Field Test 1: Liquid Pipeline, Multi-Batch
Field Test 2: Gas Pipeline
The first application is al liquid pipeline of length L=9,854m
(6.123miles), see Table 1. The pipeline is operated in multi- The second application [28] for testing the E-RTTM method is
batch-mode with 7 different batches. E-RTTM applicability concerned with a gas pipeline of length L=10,625m
had been tested performing extensive tests including leak tests. (6.602miles), see Table 2. Gas is CO (carbon monoxide),
Three different operating conditions were defined: which has in the present case nearly ideal gas properties; state
equation eq. (16) can therefore be used.
• Normal operation, steady state. The pipeline is pressur-
ized with nominal pressures, nominal flow is present; we Leak tests. Leak tests had been accomplished by flaring gas at
have (more of less) steady state. the inlet section. Three different kinds of leaks had been intro-
duced: 0.5%, 1% and 2.5% with respect to the nominal flow of
• Normal operation, small transients. The pipeline is 4000m3/h (~40ft3/s) at standard conditions 0°C, 1.013bar
pressurized with nominal pressures, nominal flow is (32°F, 14.7psi).
present. Controlling a valve behind the outlet area, small
transients were generated. Fig. 12 compares measured flows v I (t ) and v O (t ) and esti-
mated flows vˆ I (t ) and vˆ O (t ) for inlet out let, respectively.
• Start-up, severe transients. Staring the pumps, severe
The differences are the residuals according to eq. (40). Due to
transients were generated.
the deviation principle, significant differences indicate a leak
Smallest detectable leak rate. The smallest detectable leak in the pipeline, which occurs for the application at time
rate was determined using a statistical analysis [24]; results are t=8900s; please notice the significant reactions of the pipeline
shown by Fig. 9. This quantity depends on operating condition observer. Results of the pipeline classification are shown by
and kind of batch.. Fig. 13. A test variable T is tested against a alarm threshold A.
T exceeds A shortly after leak occurrence; now, testing leak
• If a leak occurs during normal operation, steady state, the persistence within the scope of outlier removal procedure
mean for the smallest detectable leak rate is about 0.5%. starts. Leak alarm is raised after leak persistence has been con-
firmed.
• If a leak occurs during normal operation with small tran-
sients, mean value increases to 0.9% Lost gas mass. Like for liquids, the lost gas mass up to the
leak alarm is a more comprehensive measure of environmental
• If a leak occurs during start-up with severe transients, pollution; Table 3 summarizes the results fro different leak
mean value increases to 1.2%. detection time parameters. Finally, leak detection time pa-
rameter had been chosen to 320s; corresponding lost gas
Lost batch volume. The lost batch volume up to the leak masses are between 2.64kg (5.82lb) and 11.38kg (25.09).
alarm is a more comprehensive measure of environmental
pollution; Fig. 10 summarizes the results. Zero false alarm warranty. Alarm threshold A has been cho-
sen to A=0.041m/s (0.135ft/s) to ensure no false alarm for the
• If a leak occurs during normal operation, steady state, the whole test time period of more then 4 months. Detection of
mean value for the lost batch volume up to leak alarm is leak according to Fig. 8 is therefore possible without any false
about 69l (0.434bbl, 18.2 US gal). alarm.
• If a leak occurs during normal operation with small tran- Conclusion. The E-RTTM LDS according to Fig. 8 has
sients, mean value increases to 120l (0.752bbl, 31.6 US proven his applicability and very good performance for a gas
gal). application, a pipeline transporting carbon monoxide (CO).
10 GERHARD GEIGER, THOMAS WERNER, DRAGO MATKO PSIG 0301
ACKNOWLEDGEMENTS
The author thanks KROHNE Duisburg for (financial) support
and all staff members of both (unnamed) companies from the
application area for their patience and enthusiasm.
12 GERHARD GEIGER, THOMAS WERNER, DRAGO MATKO PSIG 0301
TABLES
Leak detection time MLost (2,5% leak) MLost (1 % leak) MLost (0,5 % leak)
80s 2.84 kg (6.26 lb) 0.94 kg (2.07 lb) 0.66 kg (1.46 lb)
140s 4.97 kg (10.96 lb) 1.65 kg (3.64 lb) 1.16 kg (2.56 lb)
200s 7.11 kg (15.67 lb) 2.35 kg (5.18 lb) 1.65 kg (3.64 lb)
260s 9.24 kg (20.37 lb) 3.06 kg (6.75 lb) 2.15 kg (4.74 lb)
320s 11.38 kg (25.09 lb) 3.76 kg (8.29 lb) 2.64 kg (5.82 lb)
380s 13.51 kg (29.78 lb) 4.47 kg (9.86 lb) 3.14 kg (6.92 lb)
440 s 15.64 kg (34.48 lb) 5.17 kg (11.40 lb) 3.64 kg (8.02 lb)
FIGURES
Figure 1 – Leak Detection Systems (LDS) according to API 1130 2nd Edition (USA).
14 GERHARD GEIGER, THOMAS WERNER, DRAGO MATKO PSIG 0301
Figure 3 – Externally based leak detection and locating using optical fiber. ©GESO GmbH, Jena (Germany).
PSIG 0301 Leak Detection and Locating – A Survey 15
Figure 4 – Externally based leak detection and locating using vapor sensing tube. ©Framatome ANP, Erlangen (Germany).
Figure 5 – Pressure Point Analysis (PPA) principle. ©EFA Technologies, Inc., Sacramento (USA).
16 GERHARD GEIGER, THOMAS WERNER, DRAGO MATKO PSIG 0301
Figure 10 – Lost batch volume up to a leak alarm using E-RTTM (liquid application).
Figure 12 – Measured and estimated flow using E-RTTM, leak rate 1% (gas application).
BIOGRAPHY
Gerhard Geiger (author and presenter)
Born in Kaufbeuren, Germany on October 6, 1954. 1974 –
1979 student at the Faculty of Electrical Engineering in Darm-
stadt, Germany. Master degree 1979, Doctor degree 1985,
both on the Faculty of Electrical Engineering in Darmstadt and
in the field of Control Systems. Founder of the MAGNUM
GmbH (process automation) in 1987. MAGNUM CEO from
1987 – 1995. Since 1995 full professor at the University of
Applied Sciences in Gelsenkirchen, Germany. Lectures: In-
dustrial Instrumentation and Communication Technology,
Applied Computer Science. Main focus of research: Leak
monitoring systems for pipelines. 31 scientific papers and con-
ference papers.