Blog · 27 November 2026 · 8 min read
AI in refineries: where it helps in process, maintenance, turnarounds and the control room
AI in refineries is most useful in five places: inferring product quality between lab samples, tracking energy loss and exchanger fouling, ranking the equipment that keeps failing, watching integrity operating windows, and turning work orders and inspection records into turnaround scope. A sixth use, an assistant that answers from procedures and shift logs, is newer and needs the most care. None of these replaces the DCS, the APC layer or the LP model. They sit beside them, read-only, and leave every decision with a named engineer or operator.
What a refinery already has before any AI arrives
A refinery is not a blank sheet. Most sites already run more optimisation than any other part of the oil and gas chain. Anyone selling AI into a refinery should start by naming what is there, because the honest value is in the gaps between these layers.
| Layer | What it does today | Where the gap usually is |
|---|---|---|
| DCS and safety systems | Control loops, interlocks, alarms | Alarm floods, nuisance alarms, nobody reads the alarm history |
| Advanced process control (APC) | Multivariable control to push units against constraints | Models drift, controllers get switched off, quality inferentials go stale |
| Planning and scheduling (LP) | Crude selection, unit targets, product blending | Plan versus actual is reviewed monthly, by hand |
| Historian | Years of tag data at second or minute resolution | Data is kept, rarely read across units or years |
| CMMS (SAP PM, Maximo) | Work orders, failure codes, PM schedules | Free-text work orders, codes chosen inconsistently |
| Inspection and RBI | Thickness data, damage mechanisms, inspection plans | Not linked to process excursions in time |
| Documents | Procedures, MOCs, P&IDs, incident reports | Hard to search, revisions unclear on shift |
Most of the AI value in refining comes from connecting these. The historian knows the exchanger outlet temperature fell for six weeks. The CMMS knows the bundle was cleaned twice last year. The inspection system knows the shell side corrodes above a certain temperature. Nobody has the time to put the three side by side every week. That is the job to give a model.
Six AI use cases in refineries, ranked by how easy they are to prove
1. Soft sensors for product quality
Lab results for sulphur, flash point, cut points or RVP arrive a few times a shift. Between samples, operators and APC rely on inferentials. A machine learning soft sensor trained on historian data and lab history can estimate the property every minute, and say when its own estimate is drifting from the lab. It is one of the easiest uses to prove, because every new lab result is a free test of the model.
What to check: the model must be retrained or bias-corrected when crude slate or catalyst changes, and its confidence must be shown. A soft sensor that is quietly wrong is worse than none, because APC will act on it.
2. Energy, furnace efficiency and exchanger fouling
Fired heaters and preheat trains carry a large share of a refinery's energy bill. AI helps in two ways. It tracks heat transfer coefficients on every exchanger against its clean baseline, so fouling is seen as a trend instead of a surprise. And it compares furnace excess oxygen, stack temperature and duty with what the same furnace achieved on similar feed, so a slow efficiency loss shows up within days. The output is a ranked cleaning list with the energy cost of waiting, not a new controller.
The IEA, in its Energy and AI report, notes that AI is already used across industry to optimise production processes. The figures it gives are for light industry and power, not refining, so treat any refinery-wide percentage from a slide with caution until it is measured on your own units.
3. Bad actors and repeat failures
Every refinery has a short list of pumps, compressors and valves that cause most of the maintenance work. Finding them should be easy, but work orders are free text and failure codes are chosen by whoever closes the order. A language model can read every work order for five years, assign a consistent failure mode, and rank equipment by count, cost and lost throughput. This is the same method that works for drilling NPT, applied to the CMMS. Our article on predictive maintenance in oil and gas covers the step after: watching vibration and temperature on the bad actors you find.
4. Integrity operating windows and excursions
API RP 584 sets out integrity operating windows (IOWs): the process limits beyond which equipment damage speeds up. A critical limit, if exceeded, can cause rapid deterioration and needs immediate operator action. A standard limit causes damage over time, so the response depends on how long the excursion lasts. Informational limits are used by engineers to check long-term integrity and inspection assumptions.
AI does not set these limits. Corrosion and process engineers do. What it can do is watch every IOW tag in the historian, log each excursion with its duration, and write the weekly summary the inspection team needs: which circuit, which limit, how long, and which inspection plan assumed it would not happen. This links the process world and the inspection world, which is where many refinery integrity problems start.
5. Turnaround scope and work packs
A turnaround scope is built from deferred work orders, inspection findings, RBI due dates, MOCs waiting for a shutdown and last turnaround's lessons. These sit in different systems and different people's spreadsheets. AI can read them together, propose a draft scope list with the reason for each item and its source, flag duplicates, and draft work pack text from past packs for the same equipment. The planner still decides what goes in. The time saved is in collecting and cross-checking, which is weeks of work on a large event. See our maintenance planning solution for how this is set up.
6. Operator and engineer assistants
An assistant that answers "what does the procedure say about restarting the charge pump after a seal leak?" with the current revision, the page and the last two shift log entries on the same pump. Used well, it shortens the time a new operator spends searching. Used badly, it gives a confident answer from an old revision. It must cite the document and revision every time, refuse when the source is not found, and never be the only check before a step on a live unit.
The control room: alarms, abnormal situations and what AI should not do
The US Chemical Safety Board's report on the September 2022 fire at the BP-Husky Toledo refinery, which killed two workers, found that board operators had been dealing with an alarm flood for nearly 12 hours, with 3,712 alarms, and that the flood caused delays and errors in responding to critical alarms. The CSB also found that abnormal situations across several units were not managed effectively, and pointed to guidance from the ASM Consortium and CCPS.
This is a useful test for any AI product aimed at a control room. More alerts would have made Toledo worse. What helps is the opposite.
- Analysing the alarm history offline to find chattering, standing and duplicate alarms for the rationalisation team.
- Grouping a flood after the event into the few root disturbances that caused it, for the incident review.
- Writing the shift handover from the alarm and event log, so the next crew knows what is still abnormal.
- Answering procedure questions with citations, outside the alarm response path.
What AI should not do in a refinery: write setpoints, acknowledge or suppress alarms, bypass interlocks, or be the source of truth for an emergency procedure. Read-only to the DCS and the safety system is a firm line, not a phase-one compromise.
Data each use case needs
| Use case | Data needed | Minimum history | How you know it works |
|---|---|---|---|
| Soft sensors | Historian tags around the unit, lab results with sample times | 1 to 2 years, covering crude and catalyst changes | Error against each new lab sample |
| Energy and fouling | Exchanger and furnace temperatures, flows, O2, cleaning dates | 2 to 3 cleaning cycles | Predicted versus actual duty after cleaning |
| Bad actors | CMMS work orders, costs, equipment hierarchy | 3 to 5 years | Maintenance engineers agree the top 10 |
| IOW monitoring | IOW list with limits, historian tags, inspection plans | Since the IOWs were set | Excursion log matches manual review |
| Turnaround scope | Deferred work, inspection findings, RBI dates, MOCs, past packs | Last 1 to 2 turnarounds | Draft scope items traced to a source |
| Operator assistant | Current procedures with revisions, shift logs | Current documents only | Test questions with known answers |
Notice that three of the six need no real-time connection at all. Bad actors, turnaround scope and the assistant run on records that already exist. That is why they make the best first projects, especially for refineries where getting historian access approved takes months.
A worked example (illustrative)
The figures below are illustrative, not from any refinery. A crude unit preheat train has 14 exchangers. AI compares each one's heat transfer coefficient with its clean value over 18 months of historian data.
| Exchanger | U now as % of clean | Trend | Last cleaned | Suggested action |
|---|---|---|---|---|
| E-104 | 58% | Falling 2% a month | 20 months ago | Clean at next opportunity; largest furnace duty penalty |
| E-109 | 71% | Stable | 9 months ago | Watch |
| E-112 | 64% | Falling fast since crude change | 6 months ago | Check feed and desalter performance before cleaning |
| Others (11) | 80% or better | Stable | Varies | No action |
The value is not the table. It is that someone reads it every week, and that E-112 points to a crude or desalter question rather than a cleaning job. The process engineer still decides.
How to start: a 90-day refinery pilot
- Pick one unit and one use case from the three that need no live connection: bad actors, turnaround scope or a procedure assistant. Write down how the work is done today and how long it takes.
- Export the records: five years of work orders for the unit, or the deferred work and inspection lists for the next turnaround, or the current procedures with revision numbers.
- Agree the categories first: failure modes for bad actors, scope reasons for the turnaround, test questions for the assistant. Engineers write these, not the vendor.
- Run the AI on the records. Every output line must trace to a work order, a finding or a page.
- Have the unit's maintenance or process engineer review a sample each week and correct it. Corrections become the test set.
- At day 60, compare against the baseline: hours spent, items found that the manual method missed, items wrongly included.
- Only then ask for read-only historian access, and add soft sensors, fouling or IOW monitoring on the same unit.
Our guide to AI search for procedures and records shows how to set up the document side with citations, and the same rules apply to refinery procedures and MOCs.
Mistakes refineries make with AI
- Starting with a plant-wide optimisation platform before one unit has shown a measured result.
- Treating vendor percentages as a business case. Measure on your own unit against your own baseline.
- Building a soft sensor nobody maintains. Assign an owner, and a rule for when it is taken out of APC.
- Adding AI alerts to a control room that already has an alarm problem. Fix the alarm system first.
- Letting an assistant answer from old procedure revisions. Load current revisions only, and show the revision on every answer.
If you are testing the idea on your own first, ChatPetroleum can read an export of work orders or a set of procedures and return a ranked, cited table you can check in an afternoon.
For refineries, we scope AI one unit at a time: records first, then read-only historian and CMMS connections, tested against your own past events before anyone relies on it. See AI implementation or talk to us about a one-unit pilot.
Questions people ask
How is AI used in refineries?
Mainly for soft sensors that estimate product quality between lab samples, tracking energy loss and exchanger fouling, ranking repeat equipment failures from work orders, monitoring integrity operating window excursions, drafting turnaround scope from deferred work and inspection findings, and answering procedure questions with citations.
Does AI replace advanced process control in a refinery?
No. APC and the LP planning model stay in place. AI adds to them, for example with better quality inferentials or by showing where plan and actual diverge. It should not write setpoints or touch the safety system.
What is the best first AI project for a refinery?
One that runs on records you already have, so it needs no live connection: ranking bad-actor equipment from five years of work orders, building a turnaround scope draft, or a procedure assistant with citations. Each can be measured within 60 to 90 days.
Can AI help with refinery alarm floods?
Offline, yes: it can find chattering, standing and duplicate alarms for rationalisation, and group a past flood into its root disturbances. It should not acknowledge or suppress alarms. The CSB's Toledo report shows that alarm floods overwhelm operators, so more alerts are not the answer.
How does AI support turnaround planning?
It reads deferred work orders, inspection findings, RBI due dates and pending MOCs together, proposes a draft scope with the source of each item, flags duplicates and drafts work pack text from past packs. The planner decides what is in scope.
What data does a refinery need for AI?
It depends on the use: historian tags and lab results for soft sensors, CMMS work orders for bad actors, IOW limits and inspection plans for integrity, and current procedures for an assistant. A data lake is not needed to start.
Sources
- U.S. Chemical Safety Board issues final report into fatal 2022 fire at BP-Husky refinery near Toledo, Ohio (CSB, 2024)
- Energy and AI: AI for energy optimisation and innovation (IEA, 2025)
- Implementing an integrity operating window program (Chemical Engineering)
- ASM Consortium (Honeywell Process Solutions)
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