Demo: from raw data to an approved change
All data on this page is synthetic. It was generated for this demo and mimics a pharma batch process. It is not production data from any company.
Follow one process in five steps. Each step links to how it is secured and what it costs.
1Raw data from the process
The demo process is a pharma batch step. The synthetic data set holds 300 batches. Per batch it records mean and maximum temperature, mean and peak pressure, the number of pressure excursions, measured pH, hold time, and the result: yield and purity.
Three patterns were planted on purpose, so the analysis can be checked against a known answer. A real case has patterns nobody planted, and that is where the analysis earns its keep.
Download the synthetic data (CSV, 300 rows)
Security: raw data · Cost: extracting data
2Into the data lake
Batch files are loaded into the lake, for example once an hour or once a day. The original data is kept untouched, so any analysis can be repeated and checked later. Data moves one way only, from the OT side to the lake.
Security: one-way transfer and the private lake · Cost: storage, scaling to real volumes
3Claude analyses the data
Claude works on a read-only copy of the data and writes its own queries and statistics. It is not limited to a fixed list of reports. Here it used regression, a break-point search and a random forest, a machine-learning method that builds many decision trees and ranks which sensors matter most. The four analyses below were run once on the synthetic data and are shown as recorded. Visitors cannot ask new questions in this demo.
Question 1: What happens to yield if the temperature goes up?
Finding. Between about 70 and 74 °C the temperature has no measurable effect on yield (about −0.04 percentage points per °C). Above a break point at about 74.2 °C yield falls by roughly 4.6 percentage points per °C. Batches above the break point averaged 88.6 % yield, against 90.9 % below it. A single straight line through all batches would show only a weak link (correlation −0.27) and hide this threshold.
How certain. Only 10 of 300 batches ran above the break point, so the exact break point and slope are uncertain. The existence of the threshold is much firmer: a two-segment fit removes about 30 % of the variation a straight line leaves unexplained.
Question 2: Do pressure excursions affect purity?
Finding. Purity falls by about 0.18 percentage points per excursion (correlation −0.84). Batches with no excursions averaged 99.41 % purity and the 19 batches with four or more averaged 98.69 %. The effect is stronger in hotter batches (−0.22 per excursion) than in cooler ones (−0.13), so high temperature and pressure excursions compound each other.
Question 3: Did something change in the process after batch 230?
Finding. Measured pH rises steadily after batch 230, from a mean of 6.80 to 6.94 (about +0.0035 per batch). Yet yield did not change (90.9 % before, 90.7 % after) and pH is unrelated to yield in the later batches (correlation 0.02). A real process change would normally show up in the results. This looks like a drifting pH sensor, not a drifting process.
Question 4: Which sensors matter most?
Finding. For yield, mean temperature accounts for 87 % of the importance, hold time for 7 %, and the rest is close to zero. For purity, pressure excursions account for 83 % and temperature for 17 %. Mean pressure, hold time and measured pH hardly matter for either result. This agrees with questions 1 and 2, and with question 3: pH shows up as unimportant, which fits a sensor problem rather than a process problem.
How certain. The forest predicts purity well (cross-validated R² 0.79) but yield only modestly (0.17), because most of the variation in yield is noise and only a few batches ran hot. The ranking is reliable, but the forest is not a good yield predictor on this data. Unlike the break-point fit, it does not give a threshold.
Security: the analysis sandbox · Cost: analysis
4Recommended changes
The analysis ends in recommendations with the evidence attached. It does not change anything.
| Recommendation | Evidence | Status |
|---|---|---|
| Keep mean batch temperature at or below about 73.5 °C and alarm at 74.0 °C, a margin under the break point. | Question 1. Break point about 74.2 °C, steep yield loss above it. The random forest also ranks temperature first for yield (question 4). Few batches ran that hot, so confirm with a trial. | Proposed, awaiting human approval |
| Find and fix the cause of pressure excursions, starting with hot batches. | Questions 2 and 4. About 0.18 points of purity per excursion, more when hot. Excursions rank first for purity in the random forest. | Proposed, awaiting human approval |
| Calibrate or replace the pH probe. Do not change process setpoints because of the pH trend. | Questions 3 and 4. pH rises, results do not move, and pH ranks as unimportant. | Proposed, awaiting human approval |
Security: no write path to control systems · Cost: review effort
5A human approves, and the loop closes
An engineer reviews each recommendation against process knowledge. In a regulated plant, an approved change then goes through the site's normal change control, including validation where required. People make the change in the process. New batches flow into the lake, and the next analysis shows whether the change worked.
Claude never writes setpoints or any other value to a control system. That is a design rule, not a setting.
Security: human approval · Cost: people and change control
Want this on your own data?
This demo uses synthetic data, but a real case can be set up on a company's own data, with the same security principles. Email wroff@wroff.com.