
Tank Level Anomaly Detection: Methods, Data and Rollout
Tank level anomaly detection compares what a tank’s level is doing with what it should be doing, given pump rates, truck hauls, deliveries and temperature, and raises an alert when the two diverge. Done well, it catches slow leaks, stuck sensors, unlogged transfers and failing pumps before an operator would notice them on a trend screen. Most of the work is not the algorithm. It is deciding which decision the alert supports, cleaning the level data, and tuning the alert volume until people trust it. That is the part we help logistics, construction and oil and gas teams with, starting from an AI Readiness Audit.
TL;DR
- Anomaly detection works on tank level plus context (pump rate, hauls, transfers, temperature), not on level alone.
- Start with simple rules and rate-of-change checks, then add statistical or machine learning models where rules produce too much noise.
- Tuning decides success: define an acceptable number of daily alerts, name an owner and build a feedback loop.
- Keep AI monitoring separate from overfill protection and emergency shutdown. It adds insight and never replaces safety functions.
- Pilot on a small group of tanks first, then expand.
Table of Contents
- What tank level anomaly detection actually finds
- The data you need before choosing a model
- The three types of anomaly detection, applied to tanks
- Methods, from simple to advanced
- From alert to action
- Keeping false alarms under control
- Keep safety functions independent
- What it can be worth
- A rollout plan that works
- How we approach it
- Our view
- FAQ
- Sources
What tank level anomaly detection actually finds
A level reading is only a number. The anomaly is a mismatch between that number and the operating context. A tank that drops 2% overnight is normal if a pump ran. The same drop during a quiet period is a problem.
Ovintiv, a North American oil and gas producer, described one of its programs at a 2023 industry conference. Its tank level analytic watches for a slow rate of decline that falls outside what a normal pump rate or truck haul would explain, and flags a suspected leak quickly. After a few weeks of running, the same approach also surfaced plugged strainers, underpowered measurement units, leaking check valves, plugged filters, calibration issues and degraded pumps. The program now watches more than 180 anomalies across Canada and the United States.
In practice, the problems fall into four groups:
| Anomaly | What the level data looks like | Likely cause |
|---|---|---|
| Slow unexplained decline | Gradual drop outside pump or haul events | Leak, theft, unrecorded draw |
| Unexpected rise | Level climbs with no logged delivery or transfer | Unlogged delivery, valve passing, wrong routing |
| Flat or stuck signal | Value barely moves for days | Failed or fouled sensor |
| Erratic or saw-tooth signal | Rapid swings that the physical process cannot produce | Noise, loose wiring, turbulence, bad configuration |
The fourth group matters more than it sounds. A bad sensor produces alerts that look like process problems, and a team that chases them stops believing the system.
The data you need before choosing a model
Level alone is rarely enough. A useful detection model needs the events that legitimately move the level.
Level measurement. Continuous transmitters (radar, ultrasonic, guided-wave radar, pressure) give the trend. In Canada, outdoor tanks also face ice, condensation and deep winter cold, so a sensor that behaves in a lab may drift or stick in January. Treat winter data as its own operating regime when you validate.
Context signals. Pump status and rate, valve positions, truck load-out tickets, transfer schedules, temperature and, for product tanks, deliveries and dispensed volume. Anomaly detection without these tells you the level moved, not whether it should have.

Temperature compensation. Liquids expand and contract. Emerson’s engineering guide recommends that leak detection be based on net standard volume rather than level alone, so temperature-driven level movement is cancelled out. If your tanks swing between a cold night and a warm afternoon, a model trained on raw level will flag normal thermal movement.
Existing historian and SCADA data. Most sites already log level in a historian or SCADA system (the software that collects and stores readings from field equipment). Check how many months of clean history exist before buying new sensors. Our guide to enterprise data readiness covers how to assess that history.
Hybrid gauging for high-value tanks. The same Emerson guide describes combining a pressure sensor mounted 0.5 to 1 m above the tank bottom with a level gauge to compute density online. That gives the model a cleaner picture than level by itself.
The three types of anomaly detection, applied to tanks
Researchers sort anomaly detection methods by how much labeled data they need: supervised, semi-supervised and unsupervised.
- Supervised methods learn from examples labeled normal or abnormal. They need a library of confirmed leaks, stuck sensors and overfills. Most operators do not have enough of them, because real events are rare.
- Unsupervised methods learn what normal looks like and flag departures. No labels are needed, which suits tanks where confirmed failures are few.
- Semi-supervised methods train mainly on normal data plus a small set of labeled anomalies, which improves accuracy as operators confirm or reject alerts.
For tank level data, the practical path is unsupervised or semi-supervised first, with the operator feedback loop gradually supplying labels.
Methods, from simple to advanced
Start with the cheapest method that works, and move up only when it stops working.
Rules and rate-of-change checks
A rule such as “level falling slowly with no pump running and no truck on site” catches leaks and unlogged draws. A stuck-signal rule flags a level that has barely changed over several days. Anova’s documentation for its monitoring platform, for example, flags a possible sensor issue when seven days of level data change by 0.75% or less, and raises a maintenance case that closes automatically when a normal reading returns. The thresholds are product-specific, but the pattern is portable: define what “stuck” means in your data and route it to maintenance, not to the control room.
Rules are transparent, which operators like. Their weakness is that every new operating mode needs a new rule.

Statistical and model-based detection
A process model predicts what the level should be and watches the residual, the gap between predicted and measured. A 2025 simulation study of a storage tank used a Luenberger observer, a classic estimator, with a threshold set at about three times the maximum residual under nominal conditions. It detected ramp, pulse and inverted-ramp faults in roughly 5 to 9 seconds even with 6% sensor noise. That was a simulation, so treat it as a design pattern, not a field benchmark.
Machine learning on level time series
When tank behavior is irregular, a learned model of normal can outperform hand-written rules. Two studies illustrate the approach:
- A 2021 study trained a deep autoencoder (a neural network that learns to reconstruct normal data) on one-second water-level readings from tank sites. It flagged an anomaly when reconstruction error exceeded the training mean plus three standard deviations, and reported a 99.9% F1-score on its data.
- A 2022 study on oil-depot tanks compared several autoencoder designs on non-periodic level data. The convolutional version reached 98% accuracy and an 82% F1 score without labeled samples, which suits real-time use.
These results come from specific datasets. Your tanks, sensors and operating modes will differ, which is why validation on your own history matters more than any published score.
Detection at the edge
Remote tanks often sit behind weak connectivity. Running the first-pass detection on a local gateway and sending only flagged events to the cloud keeps alerts working when the link drops. We cover the approach in edge anomaly detection.
From alert to action
An alert nobody acts on is just a log entry. Ovintiv’s design shows a workable flow: analytics create an event frame when a possible leak appears, a notification emails the integrated operations center, the center reviews the trend data and then tells field operations to investigate. Results sit on dashboards with trending data.
A few design choices make that flow hold up:
- Route by type. Sensor faults go to maintenance. Suspected leaks and unexplained rises go to operations. Mixing them trains people to ignore both.
- Show context with the alert. Include the level trend, pump and haul events, and temperature for the same window, so the reviewer can decide in a minute.
- Track outcomes. Record whether each alert was a real event, a sensor issue or a false alarm. Those records become your labels and your tuning evidence.
If your alerts should open work orders automatically, the connection to maintenance software matters. See our look at CMMS software for AI-driven maintenance and at AI predictive maintenance in Alberta.
Keeping false alarms under control
This is where most projects succeed or fail. Ovintiv’s team reports that tuning and refinement is the biggest key to success, and that too many anomalies or false positives can lead to missing actual events. Their recommendations are practical:
- Start small, with a few anomalies, before expanding.
- Define an acceptable number of anomalies per day.
- Give tuning accountability to a small group of people.
- Build a feedback loop so each reviewed alert improves the next.
Two more habits help. First, test across operating modes: startup, shutdown, throughput changes and winter conditions. A model validated only on steady summer operation will misfire when the plant changes mode. Second, watch for drift. Sensors age, process conditions change and a model that was accurate in spring may degrade by autumn. Our guide to data drift detection explains the thresholds and monitoring plan.
Keep safety functions independent
Anomaly detection is an insight layer. Overfill prevention, high and low alarms, pump dry-run protection and emergency shutdown should stay on independent hardware and logic. Never route a safety function through a model that can be retrained, delayed or switched off. Hazardous-location requirements for tank farms also apply to any new sensor or gateway you add, so involve your site’s instrumentation and safety leads in the design.
What it can be worth
Ovintiv reported estimated savings in the millions across Canada and the US, from avoided production losses, saved people-hours, fewer equipment failures and reduced spill volumes, while noting that true costs are hard to estimate. The Ontario specialty chemical producer case study shows the measurement side: wireless radar transmitters replaced manual sight-glass checks on vessels holding liquid fertilizers and agricultural products, saving up to two hours a day and avoiding overfill spills that cost $5 to $10 CAD per liter. Better data feeding better detection is where the return starts.
A rollout plan that works
- Name the decision. Is the alert meant to catch leaks, theft, overfills or sensor failures? Each needs different data and a different responder.
- Audit the data. Check history length, timestamp consistency, tank-to-sensor mapping and gaps. Fix these before modeling.
- Pick a pilot group. A defined set of tanks with known past events you can use for validation.
- Begin with rules, add models where needed. Compare each against your known historical events.
- Set alert budgets and owners. Agree on a daily alert count and who tunes.
- Integrate. Connect to dashboards, notifications and maintenance workflow.
- Expand and monitor. Add tanks in stages and watch for drift.
How we approach it
Our work starts with the AI Readiness Audit, a one-off engagement published at $2,500 to $10,000, which identifies where automation pays off in operations such as logistics, construction and oil and gas. Our aim is tailored solutions, not generic consulting, delivered toward a 90-day business transformation. For tank monitoring, that means mapping your level data, context signals and alert workflow first, then building detection around them. If you want to see how an audit is priced and scoped, read our AI readiness assessment cost guide. When detection should trigger tickets, dispatch or reports, our workflow automation work covers that connection, and our oilfield service company app project shows how field operations can be put on mobile.

To scope a tank monitoring project, book an AI Readiness Audit with Digital Fractal.
Our view
Operators often ask which algorithm to use first. We think that is the wrong first question. The better one is which decision the alert supports and who will act on it.
Our approach is built on tailored, industry-specific solutions fitted to a client’s own workflows, systems and goals. For tanks, that means starting from your historian data, your pump and haul events, and the people who will review alerts, then choosing the simplest detection that serves them.
A readiness audit is the efficient way to begin. It shows whether your data can support detection today, what must be fixed first, and where a pilot should sit, so the build that follows is aimed at a real operating decision and not at a demo.
For leak-focused work on pipelines, our pipeline leak detection guide applies many of the same principles.
Souhail
FAQ
What is a tank level sensor?
A tank level sensor measures how much liquid is in a tank. Continuous types such as radar, ultrasonic and pressure sensors report the level as a signal, often over 4-20 mA or digital protocols, while point switches trigger at a fixed high or low level. Anomaly detection uses the continuous signal.
Do I need machine learning to detect tank level anomalies?
Not always. Rules on rate of change, stuck values and unexplained draws cover many cases. Machine learning becomes useful when tank behavior varies by operating mode and rules generate too many alerts. A readiness audit can show which of these fits your data.
How do I monitor a tank level remotely?
Connect the level transmitter to a SCADA system or a gateway that sends readings to a dashboard, then add alert rules and notifications. In the Ontario case above, a wireless transmitter network let staff stop manual checks. Remote sites with weak connectivity benefit from local detection at the edge.
How do I reduce false alarms?
Set a target number of daily alerts, assign a small team to tune thresholds, and record the outcome of every alert. Test across startup, shutdown and winter conditions, and monitor for drift so the model stays accurate as conditions change.
Sources
- Ovintiv: It’s RAD, operating by priority using anomaly detection (2023)
- The Engineer’s Guide to Tank Gauging, net standard volume
- The Engineer’s Guide to Tank Gauging, hybrid gauging
- Semi-supervised anomaly detection for sensor signals (arXiv)
- Possible sensor issue detection documentation
- Fault detection in a storage tank using a Luenberger observer (2025)
- Anomaly detection of water level using deep autoencoder (2021)
- Anomaly detection and analysis based on deep autoencoder (2022)
- Case study: specialty chemical producer in Ontario