Petroleum, Oil and Gas Engineering Explanation

Pipeline Leak Detection Methods: CPM and External

Pipeline Leak Detection Methods: CPM and External: featured diagram
Short answer

Pipeline leak detection is the set of methods used to find product escaping from a pipeline quickly and locate it. Internal methods (computational pipeline monitoring) use flow, pressure and temperature data with mass balance, transient models or pressure wave timing. External methods use fibre optic cables, sensing cables, acoustic sensors or patrols.

A leak from a crude oil or product line can pollute soil and water, start a fire and shut down supply. Pipeline leak detection aims to find it before a small seep becomes a large spill. In practice operators run several methods together, because each one catches a different kind of leak.

Watch: How pipeline leak detection works in 18 seconds

Why pipeline leak detection is needed

Pipelines lose containment through corrosion, third party damage from digging, weld or material defects, ground movement and operating errors such as overpressure. Corrosion control with cathodic protection and inline inspection by pipeline pigging try to prevent leaks. Leak detection catches the ones that still happen.

In the United States, 49 CFR 195.444 requires hazardous liquid pipeline operators to have a means of detecting leaks. Where an operator uses a computational pipeline monitoring (CPM) system, it must be operated, maintained, tested and documented following API RP 1130. Other countries have similar rules.

Internal and external leak detection methods

API RP 1130 groups methods by what they measure. Internal methods work on the pipeline’s own field data. External methods sense the leaked product or its noise from outside the pipe.

  • Line balance and volume balance: compare metered volume in with volume out over a time window. A persistent shortfall points to a leak.
  • Compensated mass balance: the same idea, but corrected for line pack, the change in stored inventory caused by pressure and temperature changes along the line.
  • Real-time transient model (RTTM): a hydraulic model of the line runs in real time on SCADA data and compares predicted pressure and flow with measured values.
  • Pressure and flow monitoring: alarms on an unexpected fall in pressure or a rise in flow rate.
  • Negative pressure wave (acoustic) method: detects the sudden pressure drop a leak sends along the line and locates it by timing.
  • Statistical analysis: tests the flow and pressure balance for a change that is statistically significant, which cuts false alarms.
  • Fibre optic sensing: a cable laid along the pipe senses vibration (distributed acoustic sensing) or temperature change (distributed temperature sensing) where product escapes.
  • Hydrocarbon sensing cables and vapour tubes: the cable changes its electrical property, or vapour diffuses into a tube, when hydrocarbon reaches it.
  • Acoustic sensors: listen for the hiss of fluid escaping through a hole.
  • Patrols and surveillance: ground patrols, aerial flights and infrared cameras look for stained ground, dead vegetation or vapour.
  • Inline tools: some pigs carry acoustic sensors that listen for leaks from inside the line.

Internal methods are cheap to add because the instruments already exist, and they cover the whole line. External methods can find smaller leaks and give a precise location, but only where the sensor is installed.

How negative pressure wave leak detection works

SCADA and CPMPumpTerminalPT APT BLeakwave to Awave to BFlowxL - x
A leak causes a sudden pressure drop that travels upstream and downstream at the wave speed. The difference in arrival time at transmitters A and B gives the leak position.
Download diagram (WebP)

When a hole opens, the pressure at that point falls suddenly. That drop travels away from the leak in both directions as a pressure wave, at the acoustic wave speed of the liquid in the pipe. Pressure transmitters at each end record the moment the drop arrives.

A leak closer to station A is heard at A first. Since the wave speed and line length are known, the time difference between the two stations fixes the position.

  1. Both stations sample pressure fast and stamp every reading with synchronised (usually GPS) time.
  2. A sudden drop at A and B within the possible travel time window is flagged as a candidate event.
  3. The software checks that the drop is not caused by a pump trip or valve movement it already knows about.
  4. The arrival time difference and the wave speed give the leak distance from A.
  5. The control room gets a leak alarm with the estimated location and starts the shutdown procedure.

The method is fast for sudden leaks and ruptures, within the travel time across the line. It cannot see a slow seep that opens gradually, because no sharp wave is formed. Mass balance and external sensing cover that case.

Key formulas for pipeline leak detection

QuantityFormulaSymbols and units
Pressure wave speed (thin wall pipe)a=K/ρ1+KDEea = \sqrt{\dfrac{K/\rho}{1 + \dfrac{K D}{E e}}}K bulk modulus of liquid (Pa), ρ density (kg/m³), D inside diameter (m), E pipe Young’s modulus (Pa), e wall thickness (m)
Leak position from station Ax=L+a (tA−tB)2x = \dfrac{L + a\,(t_A - t_B)}{2}L distance A to B (m), t arrival times at A and B (s), a wave speed (m/s)
Location error from timing errorΔx=a Δt2\Delta x = \dfrac{a\,\Delta t}{2}Δt timing error (s)
Compensated volume balanceI=Qin−Qout−dVpackdtI = Q_{in} - Q_{out} - \dfrac{dV_{pack}}{dt}I imbalance (m³/h), Q metered flows (m³/h), dV/dt rate of change of line pack (m³/h)

The wave speed formula is the Korteweg relation from fluid transient theory. The position formula comes from writing the arrival times as tA=x/at_A = x/a and tB=(L−x)/at_B = (L - x)/a and subtracting.

Worked example: locating a leak

Worked example
Given
A crude oil line has stations A and B 60 km apart. Inside diameter D = 0.5 m, wall e = 9.5 mm, steel E = 207 GPa. Oil K = 1.5 GPa, ρ = 850 kg/m³. A pressure drop reaches A at 15.0 s before it reaches B. Metering shows 1000 m³/h in, 994 m³/h out, and line pack rising at 2 m³/h.
Find
(a) Wave speed. (b) Leak distance from A. (c) Location error for a 0.1 s timing error. (d) Volume imbalance.
Assumptions
Thin wall pipe, flow velocity small compared with wave speed, same wave speed along the line.
Solution
(a) K/ρ = 1.5 × 10⁹ ÷ 850 = 1.765 × 10⁶ m²/s²
KD/(Ee) = (1.5 × 10⁹ × 0.5) ÷ (207 × 10⁹ × 0.0095) = 0.381
a = √(1.765 × 10⁶ ÷ 1.381) = 1130 m/s
(b) t_A − t_B = −15.0 s
x = (60 000 + 1130 × (−15.0)) ÷ 2 = (60 000 − 16 950) ÷ 2 = 21 525 m
(c) Δx = 1130 × 0.1 ÷ 2 = 56.5 m
(d) I = 1000 − 994 − 2 = 4 m³/h, which is 0.4% of inlet flow
Answer
The leak is about 21.5 km from station A, within about ±57 m for a 0.1 s timing error, and the balance shows a 4 m³/h (0.4%) shortfall.
Limitations
Wave speed changes with temperature, product and dissolved gas; flow velocity shifts the upstream and downstream wave speeds slightly; meter uncertainty can hide an imbalance this small over a short window.

A clock error of one tenth of a second moves the answer by more than 50 m, so the station clocks have to be synchronised.

How leak detection performance is judged

API RP 1130 describes four performance measures for a CPM system:

  • Sensitivity: the smallest leak rate it can detect, and how long it takes.
  • Reliability: how rarely it raises a false alarm under normal operation.
  • Accuracy: how well it estimates leak rate, volume lost and location.
  • Robustness: whether it keeps working during transients, instrument failure or missing data.

These pull against each other. Making a mass balance more sensitive by narrowing its alarm limit raises false alarms. Too many false alarms train controllers to ignore real ones.

Leak detection program management (API RP 1175)

API RP 1175 looks beyond the software. It asks operators to manage leak detection as a program: choose methods by pipeline risk, set performance targets, train controllers, test the system with real or simulated leaks, track key performance indicators and review alarms. It also stresses a culture where controllers are expected to shut down when a leak cannot be ruled out.

Choosing a method

MethodGood atWeak at
Volume or mass balanceSmall, long-running leaks over the whole lineSlow to alarm; needs good meters at both ends
RTTMDetection during transients, leak size estimateNeeds a tuned model and good instrument data
Negative pressure waveFast alarm and location for sudden leaksSlow seeps that open gradually
Fibre optic sensingSmall leaks with precise locationOnly where cable is installed; cost on long existing lines
Patrols and surveillanceVisible stains and vapour on the routeLong intervals between checks

Mass balance and pressure wave systems depend on good field measurement. Flow meters at each end set how small an imbalance can be trusted, and fast pressure transmitters set how sharp the wave timing is. Data reaches the control room through the SCADA system architecture, so communication delays and outages also affect detection.

For buried lines in sensitive areas, operators often add an external cable to a CPM system so a small leak near a river is not missed. Knowing which types of corrosion the line suffers helps decide where the extra coverage goes.

Pipeline leak detection interview and viva questions

  1. What does CPM stand for in pipeline leak detection? Computational pipeline monitoring, the group of internal methods that infer a leak from flow, pressure and temperature data using software, as described in API RP 1130.
  2. Why must a mass balance be compensated for line pack? Pressure and temperature changes alter the volume stored in the pipe, so inlet and outlet flows can differ without a leak. Correcting for line pack stops these changes from looking like a leak.
  3. How does a negative pressure wave system locate a leak? It measures when the pressure drop from the leak arrives at two stations and uses the time difference and wave speed, x = (L + a(tA − tB))/2.
  4. Name the four CPM performance measures in API RP 1130. Sensitivity, reliability, accuracy and robustness.
  5. Why are internal and external methods often used together? Internal methods cover the whole line using existing instruments, while external sensors catch smaller leaks precisely where installed, so together they cover more leak types.

Frequently asked questions

What is the difference between CPM and external leak detection?

Computational pipeline monitoring (CPM) uses the pipeline's own field instruments, such as flow meters, pressure and temperature transmitters, and software to infer a leak. External methods put a separate sensor along or above the pipe, such as fibre optic cable, hydrocarbon sensing cable or patrols, and detect the escaping product or the noise it makes.

Why does a negative pressure wave system need accurate clocks?

The leak position is calculated from the difference in arrival times of the pressure drop at two stations. Each 0.1 s of timing error moves the calculated position by half the wave speed times 0.1 s, so the stations need synchronised time stamps, usually from GPS.

Can one leak detection method cover every leak?

No. Mass balance methods are good at small long-running leaks but slow, pressure wave methods are fast for sudden ruptures but weak for slow seepage, and external sensors depend on where they are installed. API RP 1175 asks operators to choose a combination based on the risk of each pipeline.

References

  1. API RP 1130, Computational Pipeline Monitoring for Liquids, American Petroleum Institute, updated 2022
  2. API RP 1175, Pipeline Leak Detection: Program Management, American Petroleum Institute, updated 2022
  3. US Code of Federal Regulations, 49 CFR 195.444 CPM leak detection, and 49 CFR 195.134 CPM leak detection design
  4. E. B. Wylie, V. L. Streeter and L. Suo, Fluid Transients in Systems, Prentice Hall, 1993
  5. E. S. Menon, Liquid Pipeline Hydraulics, Marcel Dekker, 2004

Get one engineering email a week

New articles, worked examples and study notes every week. Free, no spam, unsubscribe any time.

Zenta Engineering

Articles written by the Zenta Engineering editorial staff are checked by our technical team against the references listed on each page, following our editorial policy. Editorial policy.

Related articles