
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.

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.

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.

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






Where laboratory predictions meet operations


-strategies-0.jpg)



