How AI Estimates Crude Oil Properties from Infrared Light

Follow the evidence from infrared spectra to asphaltene and total acid number estimates, with a worked check of prediction errors.

A benchtop spectrometer beside four small vials of amber and dark oil.
Calibration pairs the spectral fingerprint of a physical sample with a separately measured property.

Two dark crude oils can look alike in a vial yet give different laboratory results for acidity or asphaltene content. A regression trained on infrared spectra is a simple predictive AI model for this task. Its value depends on whether the calibration links a new sample’s spectral fingerprint to a relevant laboratory reference with a known error.

How 38 physical samples become a calibration

Anguebes-Franseschi and colleagues studied 38 heavy and extra-heavy crude oils from the Bay of Campeche, Mexico. They measured infrared spectra in triplicate and obtained laboratory reference values for total acid number and asphaltene content. Partial least squares regression learned a relationship between the many correlated spectral readings and each property. This is a form of statistical chemistry called chemometrics. Infrared estimates of asphaltenes and total acid number in Mexican crude oils.

A person intently views a computer screen displaying a complex network or graph illuminated by yellow lights.
An infrared fingerprint acquires quantitative meaning through comparison with reference assays.

Two properties, two kinds of error

Total acid number is expressed as milligrams of potassium hydroxide equivalent per gram of oil. It measures the amount of base required under the assay conditions. Asphaltene content is a mass percentage determined by the reference method. An error of one percentage point in asphaltenes has a different meaning from an error of one milligram per gram in acid number.

The study reported standard errors of prediction of 0.236 mg KOH/g for acid number and 1.021 percentage points for asphaltenes. These summarize errors in the authors’ test. They do not bound the error of every future sample. When the cost of a wrong decision depends on crossing a threshold, inspect the individual errors near that threshold as well as the overall fit.

A complex network of interconnected lines and nodes, with a central hub at its core.
Repeated analysis of a physical sample can reveal instrument instability.

Why three scans still count as one oil

Keep repeat scans of the same physical sample together when splitting data. Otherwise the model can see one scan in training and recognize a nearly identical fingerprint in testing. To evaluate transfer to a new source, reserve independent physical samples from that source and obtain fresh reference assays. Check concentration ranges, instrument conditions and sample preparation against the original calibration.

A practical laboratory record pairs the prediction with units, calibration identifier, signal-quality checks and any reference result. A sample far outside the training range or close to a consequential decision boundary is a good candidate for another assay. A predicted acid number alone cannot characterize corrosion under a specific plant’s operating conditions.

A laboratory scene featuring a woman in a white lab coat working with various scientific equipment and tools.
An estimated assay value is easier to review when recorded alongside its calibration and units.

Try it with the evidence

Audit a spectroscopy validation split

Source notes. Illustrative laboratory case. Oil A has three repeat scans. The AI estimate for total acid number is 1.30 mg KOH/g and the independent reference assay gives 1.05 mg KOH/g. A proposed evaluation places two scans of A in training and the third in testing.

Prompt. Calculate the signed error and percentage error relative to the reference. Explain how to redesign the split to test a new physical oil and what evidence would be needed before transferring the calibration to another basin.

Check your reading

The estimate exceeds the assay by 0.25 mg KOH/g, about 23.8% of the reference. Keep all scans of A on one side of the split. Reserve independent oils and compare predictions with their reference assays. For another basin, include representative oils from that basin and check their spectral and property ranges.

Illustrated field notes

Recognizing mixtures and checking their origin
An abstract watercolor painting featuring a vibrant color palette with blue, orange, and purple hues.
Overlapping chromatography peaks can make the identity of a component uncertain.
An abstract illustration of a reservoir fluid analysis, featuring stylized components and processes.
Pressure, temperature and sample handling can affect measured fluid properties.
This image represents chemical fingerprinting for crude oil analysis with a gold teardrop shape suspended above a dark background.
Similar spectral fingerprints need supporting evidence before assigning a common origin.
The image shows a cross-section of rock layers with distinct colors and textures, indicating geological processes such as sedimentation, compaction, and deformation.
Geochemical signals can vary across a reservoir and with sampling depth.
A desert landscape with a stream of water and oil rigs in the background.
Sparse observations leave uncertainty between sampled positions.
A row of large, shiny metal tanks with pipes running along their sides.
Different blends made from the same parent oils may share familiar spectral features.
Where laboratory predictions meet operations
A 3D rendering of an industrial facility with complex machinery and lighting.
Predicting product yield requires independently measured outcomes for comparable feeds.
A close-up view of a corroded wooden surface with visible signs of decay and potential human intervention.
A corrosion assessment depends on the operating environment as well as feed chemistry.
A detailed 3D rendering of an Optimized Enhanced Oil Recovery (EOR) strategy, highlighting its complex components and hierarchical structure.
Recovery planning needs independent evidence of how fluids behave in the formation.
An abstract representation of data visualization featuring interconnected nodes and geometric shapes.
Catalyst performance must be checked under relevant experimental conditions.
An industrial facility with multiple structures and pipes emitting smoke or steam.
A methane plume observation measures a different phenomenon from crude oil spectroscopy.
A detailed and artistic representation of a petrochemical product design featuring intricate lines and shapes.
A formulation prediction benefits from testing the finished mixture.
An industrial facility with machinery and equipment lit up at night.
Diagnosing a process change requires the timing and operating conditions of the observation.