# AI soft sensors predict lab quality values from process data every few minutes instead of waiting hours for samples, so operators correct the process sooner and the lab runs fewer analyses (Sasol, HPCL, LANXESS)

> AI soft sensors predict lab quality in real time: Sasol cut lab analyses 50%, HPCL saved an estimated $100k-400k a year, LANXESS pH within 3%.

- Canonical URL: https://aiagentsformanufacturing.com/use-cases/ai-soft-sensor-virtual-analyzer-predict-lab-quality-continuous-process-sasol-hpcl-lanxess/
- Department: Quality (https://aiagentsformanufacturing.com/departments/quality/)
- Evidence level: Verified. Real deployment at a named or precisely described company, with a measured result from a primary source.
- Added: 2026-11-25
- Last updated: 2026-11-25
- Publisher: AI Agents for Manufacturing (https://aiagentsformanufacturing.com)
- Manufacturers named: Sasol (https://aiagentsformanufacturing.com/companies/sasol/), HPCL (https://aiagentsformanufacturing.com/companies/hpcl/), LANXESS (https://aiagentsformanufacturing.com/companies/lanxess/)
- AI tools deployed: Aspen AI Model Builder (https://aiagentsformanufacturing.com/tools/aspen-ai-model-builder/), Aspen HYSYS (https://aiagentsformanufacturing.com/tools/aspen-hysys/)

## Role

Real-time prediction of product quality parameters normally measured in the lab (chain length, viscosity, pH) in chemical and refining processes, between lab samples. Typical users: process engineer, quality or lab manager, control room operator, process control engineer, data scientist

## The problem

In continuous chemical and refining processes, sensors measure temperature, pressure and flow, but the quality values that matter, such as chain length, viscosity or pH, are measured only by taking a sample and waiting for the lab or for an expensive online analyzer. Between samples, operators run blind: a drift is noticed hours later, off-spec product is made in the meantime, and plants keep a safety margin (quality giveaway) to stay on spec. At Sasol's fatty alcohol production (Ziegler process), the key mean chain length value was tested by manual sampling once a day plus lab analysis (Rockwell Automation case study). At Hindustan Petroleum Corporation's (HPCL) Mumbai Refinery in India, frequent crude changeovers disrupted operating conditions, product quality giveaway was a major issue, and manual liquid sampling caused delays and sampling errors (AspenTech case study). At LANXESS, a specialty chemicals company in Belgium, pH was controlled by in-line sampling and measurement that was costly and time-consuming, so operators could wait a couple of hours to notice pH was out of specification (AG Solution case study).

## How AI helps

A soft sensor (or virtual analyzer) is a model trained on historian data and past lab results that estimates the quality value continuously from the process measurements already available. At Sasol, Rockwell Automation analyzed historical data from the plant information system, combined it with process knowledge and sensitivity studies, reduced 25 candidate variables to 9 relevant inputs, modeled their time delays, and put the soft sensor online to predict mean chain length every 10 minutes. At HPCL Mumbai, the refinery team built several machine learning models in Aspen AI Model Builder combined with an Aspen HYSYS process simulation, picked the most accurate, and deployed a soft sensor that predicts the viscosity of the vacuum gas oil stream every three minutes and recalibrates on real-time plant data. At LANXESS, AG Solution's Quariq team built a machine learning soft sensor that predicts pH in real time from historical automation data and writes it back to the historian and the SCADA system operators already trust. In all three, lab analyses continue at a lower frequency to check the model.

## Step by step

1. Choose one quality value that is measured slowly (lab or offline analyzer), drives corrections or giveaway, and has at least several hundred past lab results.
2. Export the process measurements around each sample with exact sampling times, and account for the delay between process conditions and the sample.
3. With process engineers, shortlist the variables that physically influence the value, then build and compare simple models (linear first, then machine learning).
4. Test the model on recent months it has not seen, especially after crude, feed or grade changes and shutdowns, and define when it should not be trusted.
5. Show the prediction to operators next to lab results for a trial period before using it for corrections, and keep lab checks at a reduced frequency.
6. Track prediction error, giveaway, off-spec time and lab workload, and retrain when the process or the feed changes.

## Tools

- Rockwell Automation soft sensor built with its multivariate data analysis and modeling tools on plant information system data: used at Sasol
- Aspen AI Model Builder with Aspen HYSYS (AspenTech): used at HPCL Mumbai Refinery
- Machine learning soft sensor by AG Solution (Quariq), integrated into the historian and SCADA: used at LANXESS
- Other tools to evaluate: soft sensor and virtual analyzer features in process historians and analytics software (AVEVA PI, Seeq, Fero Labs, TrendMiner), or a regression model built by your own team
- To start without new software: an export of hourly process data and lab results with timestamps, plus any LLM (ChatGPT, Claude, Copilot, Gemini) with the prompt below

## Result

Sasol (Rockwell Automation case study, the vendor): quality insight went from once a day to every 10 minutes, laboratory analyses were cut by 50%, the time to reach on-spec quality after a shutdown was reduced, and the soft sensor stayed online for two years without re-modeling while keeping its accuracy against lab results. HPCL Mumbai Refinery (AspenTech case study, the vendor): faster corrective actions reduced quality giveaway and increased yield, saving an estimated 100,000 to 400,000 US dollars per year, and the need for sampling and lab analysis fell by around 15 to 20%. LANXESS (AG Solution, the integrator): pH predicted with an accuracy of 3%, allowing operators to adjust the process continuously instead of waiting hours for out-of-spec results; no cost figure is published.

As reported by the source; most figures are vendor or self-reported and not independently verified.

## Human review: cautions

- All three results come from vendor or integrator case studies (Rockwell Automation, AspenTech, AG Solution) and are not independently audited; HPCL's savings are an estimate.
- A soft sensor is only reliable inside the conditions it was trained on: define what happens after feed or grade changes, shutdowns or instrument failures, and keep lab checks.
- For released product and regulated specifications, the lab or a qualified analyzer stays the reference; the soft sensor supports corrections, it does not certify quality.
- Bad timestamps and wrong process-to-sample delays are the most common cause of poor models; check them first.
- Models drift as catalysts, equipment and raw materials age: monitor prediction error and retrain on a schedule.

## Try it yourself (prompt)

```text
You are a process engineer in a chemical, food or refining plant. A key quality value is only measured in the lab a few times a day, and I want to know whether a soft sensor could predict it from our process data.

I will paste: (1) lab results [sample time, quality value, sample point]; (2) process data around the same times [timestamp, tag name, value] for the tags we think matter; (3) the specification limits and the target we run to today.

Do this:
1. Align each lab result with the process data, and ask me for the process-to-sample delay if it is not given.
2. Rank the process tags by how strongly they move with the quality value, and flag tags that are probably just correlated, not causes.
3. Suggest a first simple model (which inputs, which method) and how to test it on data it has not seen.
4. Estimate from the data how far we run from the specification today (giveaway) and what a prediction every few minutes could change; say clearly where the data is too thin.
5. Draft a one-page proposal for the plant and quality managers with a trial plan, the lab checks we keep, and open questions.

Use only the data I paste in; if something is missing, write 'not found' or list it as a question instead of guessing. Do not send, order, post or change anything in any system: produce drafts for my review and approval.
```

## Related use cases

- [Reinforcement learning AI takes over valves that operators had to adjust by hand, and runs the process unit on its own within set limits (ENEOS Materials, Oxbow, Aramco)](https://aiagentsformanufacturing.com/use-cases/reinforcement-learning-ai-autonomous-process-control-chemical-plant-eneos-materials-oxbow-aramco/)
- [Automation and AI check supplier certificates of analysis against your specifications before material is released (Georgia-Pacific, C.H. Guenther, two anonymous manufacturers)](https://aiagentsformanufacturing.com/use-cases/ai-supplier-certificate-of-analysis-check-georgia-pacific/)
- [Deep learning classifies wafer defects and wafer map patterns in the chip fab, takes over most of the manual defect labeling and sends only uncertain cases to engineers (Micron, Intel, GlobalFoundries)](https://aiagentsformanufacturing.com/use-cases/ai-semiconductor-wafer-defect-classification-wafer-map-patterns-micron-intel-globalfoundries/)
- [AI reads every screw tightening curve on the assembly line, finds faulty joints the OK/NOK rules let through and points to the likely cause, so the share of OK tightenings reaches 98% (CNH Industrial, BMW Group)](https://aiagentsformanufacturing.com/use-cases/ai-tightening-curve-analysis-screwdriving-anomaly-detection-assembly-cnh-industrial-bmw/)

## Sources

- https://literature.rockwellautomation.com/idc/groups/literature/documents/ap/rscs24-ap035_-en-p.pdf
- https://solutions.aspentech.com/-/media/aspentech/home/resources/case-study/pdfs/fy25/q5/at-4331_cs_hpcl_real_time_quality_control_v3.pdf
- https://www.agsolutiongroup.com/stories/lanxess-case

## How to cite this case

AI Agents for Manufacturing. (2026). AI soft sensors predict lab quality values from process data every few minutes instead of waiting hours for samples, so operators correct the process sooner and the lab runs fewer analyses (Sasol, HPCL, LANXESS). Evidence level: Verified. Last updated November 25, 2026. https://aiagentsformanufacturing.com/use-cases/ai-soft-sensor-virtual-analyzer-predict-lab-quality-continuous-process-sasol-hpcl-lanxess/

Short form: Sasol, HPCL, LANXESS, as reported in "AI soft sensors predict lab quality values from process data every few minutes instead of waiting hours for samples, so operators correct the process sooner and the lab runs fewer analyses", AI Agents for Manufacturing (Verified evidence), https://aiagentsformanufacturing.com/use-cases/ai-soft-sensor-virtual-analyzer-predict-lab-quality-continuous-process-sasol-hpcl-lanxess/

---
Please cite the canonical URL: https://aiagentsformanufacturing.com/use-cases/ai-soft-sensor-virtual-analyzer-predict-lab-quality-continuous-process-sasol-hpcl-lanxess/
