Blog · 1 December 2026 · 8 min read

Pipeline leak detection AI: what machine learning adds to CPM, acoustic and fibre systems

Pipeline leak detection AI is machine learning added to the leak detection systems a pipeline already has: computational pipeline monitoring (CPM), pressure wave and acoustic methods, and fibre optic sensing. It does not replace them. Its job is to cut the false alarms that make controllers distrust the system, to separate a real leak from a pump start or a drifting meter, and to classify what a fibre is hearing. This guide explains what each method can and cannot see, where machine learning helps, how to judge a vendor's claims, and how to pilot it on one line.

Why pipeline leak detection still misses leaks

The best public evidence on how leaks are actually found is a study Kiefner and Associates wrote for PHMSA, the US pipeline regulator, in 2012. It went through operator incident reports from January 2010 to July 2012. For the 197 hazardous liquid releases on the right-of-way, this is who identified the release first.

First to identify the release (hazardous liquids, on the right-of-way)Number of releases
Member of the public45
Local operating personnel38
CPM leak detection or SCADA23
Emergency responder14
Air patrol10
Pipeline controller10
Ground patrol4
Pressure test2
Other8

The same study found that a CPM system was the first to identify the leak in 17 of 86 releases (20%) where one was working at the time, and SCADA in 43 of 152 (28%) where SCADA was working. Its authors also noted that in several of the larger releases, procedures seem to have allowed alarms to be ignored, or pumps to be restarted, which made the release bigger. The data is old and American, but the lesson travels: the technology often had the signal, and the system around it did not act on it.

That is the gap AI can help with. Not a new sensor, but better judgement on the signals you already collect, so that a real alarm is believed and a false one is explained.

The leak detection methods, and what each one sees

The PHMSA study splits leak detection into internal methods, which infer a leak from flow and pressure inside the pipe, and external methods, which sense product escaping from outside it. It also recommends at least two methods that rely on entirely separate physical principles.

MethodTypeWhat it detects wellWhere it struggles
Pressure and flow monitoring (SCADA alarms)InternalRuptures: a sudden pressure drop or flow changeSmall leaks; leaks near the inlet, outlet or a pump station
Volume or mass balanceInternalSustained leaks above the metering uncertaintySmall leaks, which hide in meter error and line-pack changes
Real-time transient model (RTTM)InternalLeaks during transients, with an estimate of locationNeeds good instruments, fluid properties and tuning; complex to maintain
Negative pressure waveInternalSudden-onset leaks, located by the wave's arrival timesSlow seeps that make no sharp wave; noise from valves and pumps
Statistical methodsInternalChanges in the pattern of inlet and outlet flow and pressureTuning; they inherit any instrument fault
Distributed acoustic sensing (DAS, fibre)ExternalVibration from escaping fluid, and third-party digging before it hits the pipeHuge data volumes; many non-leak sounds to classify
Distributed temperature sensing (DTS, fibre)ExternalTemperature change around the pipe where product escapesResponse depends on product, soil and whether the fibre is close to the pipe
Hydrocarbon sensing cables and point sensorsExternalProduct in contact with the sensorOnly where the sensor is; covers short sections
Patrols, aerial and satellite surveysExternalVisible spills, staining, vegetation changePeriodic, not continuous

The study also points out a basic limit: CPM is bounded by metering accuracy and uncertainty in the line fill, both of which scale with flow rate. A high-flow line will tolerate a larger spill before a balance method can see it. No algorithm can see a leak smaller than the noise in the measurements it is given.

A worked example: what a balance method can see (illustrative)

These numbers are illustrative, not from any pipeline. Take a crude line moving 20,000 barrels a day, with a volume balance alarm set at 0.5% over 24 hours because tighter settings gave too many false alarms.

  • Alarm threshold: 20,000 × 0.005 = 100 barrels per day, or about 4.2 barrels an hour.
  • A leak of 2 barrels an hour loses 48 barrels a day, about 7,600 litres, and stays under the threshold indefinitely.
  • Halving the meter and line-pack uncertainty would let the threshold drop to around 0.25%, or 50 barrels a day, which this leak would just cross.

This is where machine learning earns its place in CPM. It cannot make a meter more accurate. It can learn how the imbalance normally behaves for each operating state (batch changes, temperature swings, pump starts, slack line), so the noise left over is smaller and the threshold can be tighter without flooding the control room.

Where machine learning adds to leak detection

1. Explaining alarms before the controller has to

The PHMSA study found that false alarms are a recurring theme, and that most methods infer a leak from a secondary effect, such as abnormal pressure or an imbalance, which can have many causes besides a leak. A model trained on years of alarms and their outcomes can attach a likely cause to each new alarm: meter drift on station 3, a pump trip upstream, a batch interface passing, or none of these. The controller still decides. They just start with a ranked checklist instead of a bare alarm.

2. Learning normal behaviour per operating state

Normal-behaviour models learn what inlet and outlet flow, pressure and temperature look like for each mode of operation. Deviations from that learned normal are more meaningful than deviations from a fixed limit, especially on lines with frequent transients.

3. Watching the instruments themselves

A balance method is only as good as its meters and transmitters. Models that flag a drifting meter, a frozen transmitter or a communication gap stop instrument faults from being read as leaks, and stop real leaks from being hidden by them.

4. Classifying what a fibre hears

A DAS system on a long line hears vehicles, trains, wind, animals and machinery all day. Machine learning is how these events are sorted into leak, digging, vehicle or noise. Read the research with care. A 2025 paper in Frontiers in Big Data fused fibre temperature and vibration signals with a neural network and reported 92.16% classification accuracy and 1 m location accuracy, but on a 20 m test pipe with drilled holes, and the authors say the data was collected without considering soil and weather. That is a lab result, not field performance.

5. Combining methods

When a pressure wave, a balance trend and a fibre event all point at the same kilometre within minutes, the case for a leak is much stronger than any one alarm. Fusion models weight each method by how reliable it has been on that line.

6. The paperwork around the system

A leak detection programme also means alarm logs, test records, controller training, incident reviews and procedures. A language model can read years of alarm and shift logs and list every alarm with what was done and why, cited to the log, which is the raw material for tuning and for the programme reviews described below.

What the standards and regulations expect

In the US, 49 CFR 195.444 requires hazardous liquid pipelines carrying single-phase liquid, apart from offshore gathering and regulated rural gathering lines, to have an effective leak detection system, and to evaluate it against factors including the line's length and size, product, swiftness of detection, location of the nearest response personnel and leak history. Any CPM system must comply with API RP 1130 for its operating, maintaining, testing, record keeping and dispatcher training.

API published second editions of RP 1130 (computational pipeline monitoring for liquids) and RP 1175 (pipeline leak detection programme management) in 2022. API says RP 1175 guides operators in creating effective leak detection programmes, and that the new editions incorporate new technologies, including the role of fibre optic sensing. Many operators outside the US use these documents as their reference even where local rules differ; check what your own regulator and concession terms require.

For AI, the practical point is this: a model that changes how alarms are raised or ranked is part of the leak detection system. Its tuning, testing and records belong in the same programme as the CPM, not in a separate data science project.

How to judge a leak detection AI vendor

QuestionGood answer
What was it tested on?Real or field-simulated leaks (fluid withdrawals) on operating lines, not only lab rigs or simulations
Smallest leak detected, and how fast?Stated as a percentage of flow with a time to detect, for your line's conditions
False alarms per month on a normal line?A number, measured over months, with the operating states included
How does it treat transients and shut-in?Learns each operating mode; says when it is blind
What happens when an instrument fails?Flags the instrument, degrades gracefully, tells the controller
Is it read-only to SCADA?Yes. Shutdown stays with the controller and the procedures
Can every alarm be traced?Inputs, model version and reasoning logged for each alarm, for audits and incident reviews

How to start: a pilot on one line

  1. Pick one line with working flow and pressure at both ends, a few years of historian data and a known alarm problem: too many false alarms, or a threshold set loose to avoid them.
  2. Collect the history: SCADA tags at the highest rate kept, the CPM alarm log, controller shift logs, maintenance on meters and transmitters, and any confirmed leaks or fluid withdrawal tests.
  3. Label every past alarm with what it turned out to be (meter fault, transient, communication loss, real leak). A language model can do the first pass from the logs, cited to each entry, for an engineer to check.
  4. Build the baseline: alarms per month, time to investigate each one, and the current balance threshold for each window.
  5. Replay history through the model with some months held back, and count alarms explained correctly, alarms missed and new false ones.
  6. Agree in writing with the control room what the model's output means, where it appears on screen and what the controller does with it. Update procedures and training to match.
  7. Run it advisory for three to six months alongside the existing CPM. Only then discuss tightening thresholds, and confirm any change with a controlled fluid withdrawal test.

For the maintenance side of the same assets, see our guide to predictive maintenance in oil and gas. For how AI supports safety work more widely, see AI for HSE in oil and gas.

ChatPetroleum helps pipeline teams with the part that comes before any model: turning years of alarm logs, shift notes and incident reports into a clean, cited history. Talk to us about a leak detection pilot on one line, see how we approach AI implementation, or ask ChatPetroleum to work through a balance threshold or line-pack calculation now.

Questions people ask

How is AI used in pipeline leak detection?

It is added to existing systems such as CPM, pressure wave and fibre sensing. It learns normal operation for each mode, explains alarms (meter drift, transients, pump trips), flags faulty instruments, classifies fibre events and combines evidence from several methods. The controller still decides.

Can machine learning detect smaller pipeline leaks?

Only indirectly. It cannot see a leak smaller than the noise in the measurements, but by reducing false alarms it can let operators set tighter thresholds safely. Claims should be stated as a percentage of flow with a time to detect, and checked with a fluid withdrawal test.

What is computational pipeline monitoring (CPM)?

Software that uses flow, pressure and temperature from the pipeline to infer a leak, through methods such as volume balance, real-time transient models and statistical analysis. In the US, CPM on hazardous liquid lines must comply with API RP 1130.

What is the difference between API RP 1130 and API RP 1175?

RP 1130 covers computational pipeline monitoring for liquids: the algorithmic tools that help a controller spot hydraulic anomalies. RP 1175 covers management of the whole leak detection programme. Both were reissued as second editions in 2022.

Is fibre optic leak detection better than CPM?

They see different things. Fibre can detect small leaks and third-party digging along its length, but produces vast data that must be classified. CPM uses existing instruments and suits sustained leaks above metering uncertainty. Good practice is at least two methods based on different physical principles.

Sources

Try Petroleum Chatbot on your own work

Ask a drilling, production or maintenance question now, free. Create an account to keep projects, add your reports and make Excel, Word and PowerPoint files.

Read next