Development of an AI pipeline leak detection system

A rupture on the route is noticed by a pressure drop when losses already amount to tons. We develop and implement a turnkey AI leak detection system: from route survey to transferring the trained model to your specialists. Detection time is reduced severalfold, and the dispatcher receives accurate localization to the section.
Frequently Asked Questions

Why ruptures are detected late: AI leak detection in pipelines

A leak almost never begins with an instantaneous rupture — first it is a pinhole or crack with low flow.

The rarefaction wave travels from the rupture point to the ends of the section and attenuates along the way, so pressure sensors at metering stations see the change later and weaker than it is at the source.

Against the background of pump switching and pumping mode changes, such a signal is indistinguishable from ordinary noise.

Hence the bottlenecks in dispatching. A decision is made by setpoint, not by flow picture: while measured balance agrees within error, late rupture detection looks like a routine imbalance, and the dispatcher waits for confirmation from a second measurement.

Every minute of this pause is emergency product release not into the pipe but into the soil, plus pressure drop along the entire section and pumping shutdown.

Route patrol adds another delay. Hours pass between patrols, and a persistent stain or odor appears already at an advanced stage, when loss volume is measured not in liters.

By the time of the first reliable signal, emergency product release has already formed a contamination zone, and restoration requires cutting out a section, not tightening a joint.

That is why classical pipeline leak detection by thresholds and periodic balance hits a physical limit, not a personnel discipline issue.

We explain how this is closed: AI leak detection works with a section flow model, estimates material balance residual in real time, and recognizes the hydrodynamic fingerprint of a rupture against normal transient processes.

What a predictive system delivers: four measurable effects

The effect of a predictive system is measured not by model accuracy, but by how route operation changes: when the dispatcher receives a signal, how often it triggers falsely, and which accidents do not reach rupture. Below are four metrics by which we record implementation results.

Time from start of outflow to signal

The model compares actual pressure and flow balance on the section with the calculated one and catches the discrepancy while the leak is still small. The alarm goes to SCADA and the dispatcher panel within minutes — instead of route patrol and clarifying calls. This is enough to pause pumping before soil subsidence and consumer outages.

Reduction of false alarms

Thresholds are tuned to the hydraulics of a specific section, not a common one for the entire route. An alarm is confirmed by the coincidence of independent signs — pressure drop, flow increase, acoustic anomaly.

The dispatcher reviews units of signals per shift instead of dozens, and a real leak does not drown in noise.

Coverage of sections by monitoring

The model reconstructs the picture between sensors and pulls into observation spans that were previously checked by patrol. The share of route under continuous monitoring grows — including waterlogged and hard-to-reach sections, where patrol is most expensive.

Prevention of accidents on route

Early leak detection moves an incident from the class of "rupture with spill and pumping shutdown" to the class of "local leak remediated per procedure." What is eliminated is not the probability of an individual failure, but an entire class of them — scenarios where the signal arrives when damage has already developed.

Comparison of approaches to pipeline leak-tightness monitoring

No leak-tightness monitoring method works across the entire range of modes. Hydraulic balance maintains the overall flow picture but does not distinguish a leak from planned offtake, while acoustic leak monitoring catches a pinhole faster but is deafened by pump noise.

Comparing methods means choosing the class of failures to catch and the acceptable false alarm level.

The requirements framework is set by API 1130: a monitoring system is considered together with the pipeline model and pumping modes, not as a set of sensors. Below are real alternatives and their limitations.

Method Where it works What breaks the logic Limitations
Hydraulic balance Steady pumping, long sections Start-stop, product change, intermediate offtakes Volume threshold: small losses drown in measurement error
Acoustic leak monitoring Valve assemblies and local zones Pump noise and vibration mask the signal Tuning for each node and scheduled checks
Fiber-optic monitoring Entire route with one cable Machinery nearby and soil movements cause false alarms Installation and maintenance of fiber along the entire line
Periodic inspections Plan, acceptance after repair Leak grows between inspections, no one to notice No monitoring between inspections

In practice, a combination works: balance as background estimate, acoustics at nodes, fiber on the linear part. We start with a map of pumping modes and failure history of the line — they determine where one loop is enough and where a second is needed.

Implementation stages: from route audit to model handover

The work sequence is the same for trunk and field pipelines: first we determine what telemetry on this route can actually see, and only then build the model.

Pump and valve scheme, elevation profile, pumping modes, and depth of measurement archive determine which class of leaks is physically distinguishable and which will remain beyond sensitivity.

  1. Route and archive audit. We review the process scheme — stations, valves, crossovers, planned discharge points — and compare it with what is actually written to history.

    The output is a coverage map: where measurements are sufficient, where the section is "blind," and which events are not reflected in the archive at all.

  2. Measurement placement layout. We determine points where pressure and flow sensors need to be added and at what spacing, so that the wavefront from outflow is distinguishable against normal mode fluctuations. We formulate requirements for polling rate and time synchronization.

  3. History collection and labeling. We pull telemetry, repair logs, work orders, and shutdown records. We label each event by class — leak, water hammer, pump shutdown, false signal; without labeling, the model learns on a mixture of accidents and scheduled works.

  4. Model training. We calculate mass balance and a reference hydraulic model of the section, and on top — statistics of deviations from it.

    Separately, we tune adaptation to season, soil temperature, and product viscosity; otherwise thresholds "drift" when the mode changes.

  5. Validation on real events. We run the model retrospectively over confirmed accidents and quiet periods: how many leaks were found, how many false alarms occur per dispatcher shift, and how long after outflow starts the signal arrives.

  6. Commissioning and handover to operations. The model works in advisory mode alongside the dispatcher, and thresholds are refined based on actual confirmations. We hand over the retraining procedure, quality drift monitoring, and rollback procedure to the previous model version.

Delivery package: models, layouts, procedures, and documentation

The delivery package is not an archive of files, but everything needed for the system to work and evolve without our involvement.

Model handover to the customer comes together with the environment: feature description, alarm thresholds, and retraining procedure — so that after six months of operation no one wonders why detection behaves differently than at acceptance.

  • Trained model with fixed weights, threshold configuration, and feature description — using it, the model is reproduced on new data without us.
  • Sensor placement layouts: binding to sections, distances between stations, justification of each point, and list of locations not covered by one loop.
  • Monitoring system documentation: architecture, node composition, polling rate, behavior on loss of communication with a sensor and on discrepancy between readings of neighboring stations.
  • Leak response procedure: alarm levels, confirmation times, procedure for stopping pumping and localizing the section, responsible roles at each stage.
  • Role model and access rules: who sees raw data, who is authorized to change thresholds, how changes are recorded and rolled back.
  • Shift instructions: how to read an alert, what to do on a false alarm, and when to escalate to the duty engineer.
  • Quality verification methodology: test scenarios, metrics on labeled incidents, and procedure for repeated runs after changes at the site.

Each artifact is handed over together with training for the customer's team: dispatchers go through alarm scenarios, engineers through threshold tuning and false alarm analysis.

After that, the system can be developed in-house, and we can be engaged selectively — for model retraining or expanding section coverage.

Case study: how leak detection time was reduced on a section

A section between two pumping stations, one dispatcher per shift. Before implementation, monitoring relied on patrols and periodic readings: a pressure drop was attributed to a pumping mode change, and the fact of damage was confirmed by volume discrepancy per shift.

From the start of outflow to a confirmed alarm, several hours passed; some leaks were found visually — already after the section was shut down. Below is what changed after the model was trained on archived telemetry from the SCADA control room system.

Measured on the same section before and after launch, under similar pumping modes:

Metric Before After
Leak detection time 3–5 hours 6–12 minutes
Confirmed signals 4 out of 10 9 out of 10
Small leaks found by balance per shift visible at the moment of growth
Search area entire line between stations interval of 1–2 km

What we did: combined readings from pressure, flow, temperature, and pump current sensors into a single stream with a common timestamp, trained the model on the archive and on simulated small-flow leaks — real examples for training were insufficient.

Thresholds were configured separately by segment: the pressure profile on elevation rise and descent differs, and a single threshold caused false alarms.

The dispatcher receives an alarm with interval estimate and confidence level and checks a couple of kilometers instead of the entire line.

False signals no longer occupy the shift, while small-flow leaks that previously waited for balance recalculation are visible at the moment of growth.

The effect of monitoring implementation is not only speed: the class of failures that previously went to losses became manageable.

How acoustic monitoring differs from fiber-optic monitoring

Both methods solve one task — catch outflow and indicate its location — but they acquire the signal in fundamentally different ways.

Acoustics listens to the pipe itself and the medium in it: the wave from a pinhole or microcrack is caught by sensors mounted along the route or by in-line probes.

The optical channel measures distributed change in temperature and strain along fiber laid next to the pipe or in its tie-in.

The difference is primarily in sensitivity to small outflows. The acoustic channel confidently captures the early stage — pinholes, seal ruptures — if sensor spacing is consistent with the route profile and tie-in locations.

Optics has a harder time where thermal contrast is small: at depth, soil is inert, the pumped medium is close to ground temperature, and the response comes with a delay. However, fiber requires no power or field electronics along its entire length.

Deployment cost runs counter to sensitivity. Acoustic sensors are more expensive per meter of route and bring tie-in infrastructure — power, communication, protection from interference and stray currents, and node maintenance.

The optical channel is cheaper on long sections, but inseparable from earthworks, and location accuracy is built into the fiber laying scheme.

Soil and tie-in have the strongest influence on the choice of signal acquisition method.

Heaving, waterlogged, and rocky foundations cause false alarms in both cases, just for different reasons: acoustics is "clogged" by pumps and valves, optics by seasonal soil movements and sections with damaged thermal insulation.

Therefore, we calculate not the "best" method, but a working combination for a specific route.

Hybrid monitoring systems are built as follows: fiber works as a long detection loop along the entire length, acoustics as a refining localization loop on a suspicious section, and a hydraulic mode model cuts off alarms from planned pumping changes.

Such a loop provides both early detection and precise location, as well as a manageable false alarm level.

Typical technical doubts before system launch

Engineers and operations ask the same questions before launch: are existing sensors enough, what happens if communication is lost, and who is responsible for a night false alarm. Below are our practical answers.

Are existing sensors enough?

Usually yes: the model runs on flow, pressure, and temperature from already installed metering units. If the balance method sees a leak only from several percent of flow, two or three additional pressure points on spans reduce the detection threshold many times over. Additional sensors are planned by section sensitivity map, not "just in case."

What happens if communication with the control room is lost?

Inference lives on a local node, telemetry is buffered, so detection continues without a channel. The alarm is queued and goes upstream when communication is restored, along with the missed data interval.

Standard automation and pressure protection operate independently — the model does not block anything.

How is the false alarm threshold configured?

The model outputs probability and section, not "alarm/normal," so the threshold is set for the operating mode: how many false callouts the crew is willing to handle to reduce detection time.

Separately, we configure start, stop, and flow change — during transient modes the threshold is higher. We are responsible for false alarms caused by our configuration.

Can the model be retrained on our data?

Yes, this is the main path: the base model is transferred to site history, then operator-confirmed events go into the loop — accidents and analyzed false alarms.

Retraining is carried out per procedure with validation on a held-out period, so that an increase in leak detection accuracy is not achieved at the cost of rare large events.

Let's discuss the task: what is needed to assess your site

For the site assessment to be substantive, not averaged across the market, we need a technical snapshot of a specific route. Below is what we request in order to return with a model calculation, work plan, and acceptance criteria.

If some data is missing — it is not a blocker; we will say what to replace it with and how this affects achievable sensitivity.

  • Route layout: length, elevation profile, diameters and material of sections, wall thickness, tie-ins and crossings — the physical flow model depends on geometry.
  • Measurement composition: flow meters, pressure and temperature sensors, their coordinates on the layout, polling rate, redundancy availability, and timestamp synchronization.
  • Long-term signal archives: intervals with known leaks and "clean" sections, including starts, stops, and pumping mode changes.
  • Incident and repair log: date, location, loss volume, how the accident was noticed — this labeling defines what the model must catch and what it must not.
  • Operating modes: typical throughput profiles, reverse flow, recirculation, planned shutdowns, influence of neighboring consumers, and seasonal changes.
  • Data quality: gaps, noise, transmission delays, sensor drift, manual operator edits in the control room system.
  • What is already implemented: existing detection systems, their thresholds, causes of false alarms — we assess what to reuse and what to rebuild.
  • Computing environment: where data processing is allowed, available communication channels, notification delay requirements, and who decides to stop pumping.
  • Result requirements: detection sensitivity, acceptable false alarm rate, confirmation time — from these we assemble measurable acceptance criteria.

After reviewing this source data, we return with a work plan: sequence of stages, team composition, checkpoints on real archive records, and a list of risks. Describe the task and current situation at the site — we will discuss what data is sufficient for the first calculation.

AI Development Areas

Latest works

  • Development of a web application for FEEDME
    Development of a web application for FEEDME
    1393
  • Development of an online store for the company FURNORO
    Development of an online store for the company FURNORO
    1368
  • B2B Advance company logo design
    B2B Advance company logo design
    815
  • Development of a web application for Enviok
    Development of a web application for Enviok
    1139
  • AIDER company logo development
    AIDER company logo development
    1057
  • CRM development for Chasseurs
    CRM development for Chasseurs
    1152