This is an archived edition. Read the latest Petroleum AI Field Report.

PIPELINE PUNKS · INTELLIGENCE SERIES
Petroleum AI Field Report
Less artificial. More intelligence.
Thursday, November 19, 2026 | Use case: Bulk-plant inventory variance
PP-AI-2026-11-19 | Revision 1
BOTTOM LINE
Bulk-plant inventory variance is mostly an arithmetic and statistics job. AI plays only a small part. The first step for a small or midsize distributor is a daily book-versus-gauge reconciliation for each tank, with a running total, that a person reviews every morning. Machine learning shows up in some vendor wetstock products. Generative AI is useful mainly for reading paper bills of lading (BOLs). If an underground tank at the site uses inventory records for leak detection, a variance is also a possible regulatory event, so the rules below apply as well as the accounting.
1. THE OPERATOR PROBLEM
Every bulk plant runs on one equation: opening inventory, plus receipts, minus withdrawals, should equal closing inventory. When it doesn't, accounting books a gain or loss and someone has to explain it. The usual causes are a miskeyed BOL, a tank-wagon load that never made it into the ERP, meter drift, a wrong tank chart, water, theft, or a leak.
EPA's own guide says a failed statistical reconciliation can point to miscalibrated dispensers, inaccurately metered deliveries, or stolen product, not just a leak (EPA, Introduction to Statistical Inventory Reconciliation (https://www.epa.gov/sites/default/files/2014-03/documents/sir.pdf)). In Colorado, the Division of Oil and Public Safety (OPS) says that for a suspected release from a tank system it regulates, owners must notify OPS within 24 hours, test system integrity, and provide inventory and testing data within ten calendar days (Colorado OPS Petroleum Guidance Guide (https://ops.colorado.gov/Petroleum-Guidance-Guide)).
Interpretation: the expensive failure is usually not the missing gallons. It is a variance nobody looked at until month-end, a 24-hour notice that was missed, or a reconciliation file that can't show what happened.
2. WHAT ACTUALLY DOES THE WORK
Plain rules (not AI): daily over/short for each tank, with receipts matched to the change in gauge reading from before to after the drop. For underground tanks, federal inventory control must be able to detect a monthly loss of 1.0 percent of flow-through plus 130 gallons, using daily readings, gauging to the nearest one-eighth inch, delivery reconciliation, and monthly water checks (40 CFR 280.43(a) (https://www.ecfr.gov/current/title-40/chapter-I/subchapter-I/part-280)). For example, a tank with 40,000 gallons of monthly flow-through has a 530-gallon threshold.
Statistics (not AI): a running total of variance, control bands based on each tank's own history, and statistical inventory reconciliation (SIR). The federal standard for SIR is detecting 0.2 gallon per hour or 150 gallons within 30 days, with a threshold no higher than half the minimum detectable leak rate (40 CFR 280.43(h) (https://www.ecfr.gov/current/title-40/chapter-I/subchapter-I/part-280)).
Machine learning: sits inside vendor wetstock platforms. Dover Fueling Solutions says its DX Wetstock product, built on Microsoft Azure, finds losses across more than 45 root causes (claim; CSP (https://www.cspdailynews.com/fuels/dover-releases-fuel-management-product)). That product is aimed at retail and fleet sites, not bulk plants.
Generative AI: reading BOLs. Key Information Technologies says its Pulse feature reads BOL photos and PDFs and imports them into its BookWorks ERP as receipts (claim; BookWorks (https://keyinfotech.com/solutions/fuel-wholesale)). Fewer keying errors means fewer false variances. The AI does not decide what caused a variance.
Interpretation: at a bulk plant, temperature is the biggest source of variance that isn't a real loss. This is especially true when receipts are booked in net (temperature-corrected) gallons and loads go out in gross gallons. Test your system on how it handles net versus gross before you test anything else.
3. DATA REQUIRED AND WHERE IT LIVES
- Tank gauges or monitors: level, temperature, and water, from an automatic tank gauge (ATG), a cloud tank monitor, or a stick log.
- ERP: receipts with BOL gross gallons, net gallons, and temperature; transfers; inventory adjustments.
- Loading rack and truck meters: tank-wagon load tickets and in-truck delivery records.
- Calibration records: meter calibration certificates and the tank chart actually used for each tank.
- Supplier and terminal data: BOL feeds and invoices.
- Email and paper: driver notes, plus repair and maintenance tickets.
4. BUILD, BUY, OR CONFIGURE WHAT YOU OWN
Configure: check whether your ERP already keeps gauge readings separate from adjustments. BookWorks documents separate "Readings" and "Adjustments" types, along with ATG imports covering bulk plants, trucks, and customer tanks (BookWorks (https://keyinfotech.com/solutions/fuel-wholesale)). The cost is staff time.
Build: one spreadsheet or database query for each plant, using the equation above, a running total, and five flags. No model is needed.
Buy: SIR or wetstock services. EPA notes that SIR vendors' methods differ, and that EPA neither certifies nor approves any vendor or method. Evaluations are done by third parties (EPA SIR guide (https://www.epa.gov/sites/default/files/2014-03/documents/sir.pdf)). Ask for the third-party evaluation, and confirm it covers your tank type, especially aboveground tanks.
5. A 30-DAY PILOT
Scope: one bulk plant and one high-throughput product, usually diesel.
Days 1 to 3: confirm the tank chart, the gauge's temperature probe, the last meter calibration date, and how the ERP books net versus gross gallons.
Days 4 to 30: each morning, compute yesterday's over/short and the running total. Flag:
1. A daily variance outside the tank's 60-day band.
2. A receipt where the tank's rise differs from the BOL by more than a set amount.
3. A running total that moves in one direction for seven days.
4. A rise in water level.
5. A load ticket with no matching ERP entry.
Human review point: the plant manager works the list by 10:00 AM MT. The controller approves any month-end adjustment.
Measure: minutes per day, exceptions raised, causes found (keying error, missing ticket, meter, temperature), false alarms, and gallons still unexplained at day 30.
Stop condition: if, after two threshold adjustments, more than half of the flags are false alarms and no keying or meter error has been found, drop back to a weekly review and look at your gauge quality first.
6. CONTROLS AND FAILURE MODES
Audit trail: never overwrite a reading. Post every adjustment with user, time, reason code, and the supporting document.
Permissions: whoever posts adjustments does not approve them. Only a named person can change a tank chart.
Sign-off: the controller signs off the monthly gain or loss. For underground tanks, the person responsible for compliance decides whether a variance is a suspected release. Federal rules require reporting a sudden loss of product within 24 hours unless the cause is found and fixed (40 CFR 280.50 (https://www.ecfr.gov/current/title-40/chapter-I/subchapter-I/part-280)).
Failure modes:
- Comparing net receipts to gross withdrawals.
- A stale tank chart after a tank is repaired or re-leveled.
- Gauge drift.
- Manifolded tanks reconciled as if they were separate.
- A run of "inconclusive" results. EPA's SIR guide says an inconclusive month effectively means no leak detection for that month.
Never automated: posting a write-off, deciding that a variance is or is not a release, notifying a regulator, and naming a driver.
THREE DEEPER READS
- 40 CFR Part 280, eCFR (inventory control, SIR, suspected release reporting) (https://www.ecfr.gov/current/title-40/chapter-I/subchapter-I/part-280)
- EPA: Introduction to Statistical Inventory Reconciliation (1995) (https://www.epa.gov/sites/default/files/2014-03/documents/sir.pdf)
- Colorado OPS Petroleum Guidance Guide (https://ops.colorado.gov/Petroleum-Guidance-Guide)
Not legal advice. Confirm which rules apply to your tanks with OPS or your state tank agency.
Pipeline Punks // Petroleum briefs
Six briefs. Less noise. Pick your signal.
Six sourced petroleum briefs. We chase the dates, test the claims, and call out the avoidable mess before it ruins your week. No fake urgency. No vendor worship. No twelve-page introduction to a two-line answer. Choose any mix, confirm by email, and stop any one with a link.