
The one idea
A result describes material measured at a particular place and time. Its usefulness depends on how that material relates to the process decision.
Moving an instrument closer to a process can reduce delay and sample handling. It also changes how the sample is presented, its exposure to the process environment, and the evidence needed to show that the measurement is representative.
Week 1’s automation section introduced the at-line / on-line / in-line hierarchy at survey depth, and readings 2 and 3 introduced model development and spectral interpretation. Now we ask where those spectra come from, how quickly the results arrive, and which material the results actually describe.
One dryer, several ways to measure water
Imagine granules drying after wet granulation. The team needs water-content information to support an endpoint decision. Too much or too little residual water may affect downstream performance, depending on the formulation and process.
One option is to remove a sample and measure water by Karl Fischer in a laboratory. Another is to scan a removed sample with a near-infrared (NIR) instrument beside the dryer. A third is to acquire spectra through an in-line probe.
These arrangements do not simply rank from bad to good. The laboratory result can provide an important reference value. The nearby instrument can make timely operator decisions simpler. The in-line probe can give frequent measurements, but may interrogate only a local region of the bed.
Choose the arrangement for the decision, then establish its performance.
Four location terms
The US Food and Drug Administration (FDA) process analytical technology (PAT) framework distinguishes at-line, on-line and in-line measurements by the relationship between the sample and the process. Off-line is included here as the conventional laboratory comparison [1].
| Mode | Relationship to the process | Pharmaceutical example | Main question to investigate |
|---|---|---|---|
| Off-line | Material is removed and taken to a separate laboratory workflow | Karl Fischer water testing of a granule sample | Does the sample stay representative through sampling, transport and analysis? |
| At-line | Material is removed and measured close to the process | NIR scanning of granules beside a dryer | Is the sampling and cup presentation reproducible and timely? |
| On-line | Material is diverted from the process through an analyzer; it may be returned | A bioprocess liquid sidestream sent to an analyzer | Does transport through the sampling system preserve the relevant property and timing? |
| In-line | Material is measured without removal; the arrangement may be invasive or noninvasive | NIR measurement through a probe or window at a dryer | Does the interrogated material represent what the decision concerns? |
These definitions do not fix response times. A slow on-line separation can take longer than a rapid at-line scan. An in-line acquisition can include substantial averaging, calculation or communication delay.
Off-line: preserve the sample and its history
For our dryer, a laboratory water result might need sampling, sealing, labeling, transport, queue time, preparation, measurement and review.
The result can be accurate for the submitted sample and still be poorly matched to the current dryer state. Two different issues need considering:
- Sample change: did the removed granules gain or lose water before testing?
- Process change: did the dryer keep running while the result was being generated?
Record the sampling time and location, not only the time the result was reported. Establish suitable containers, handling and holding conditions. A sealed sample can preserve a historical state; it does not make that state current.
Off-line testing stays valuable for reference measurements, independent checks, investigations, and attributes the process analyzer does not adequately cover. Its usefulness depends on its defined role.
At-line: shorten the journey, control the presentation
An at-line NIR instrument shortens the transport distance and may give a rapid result. An operator still removes and presents a sample.
Cup fill, powder packing, surface condition, temperature, container optics and the material actually picked can all change the response. NIR guidance addresses sample presentation specifically, because the analyzer sees an optical interaction with one particular sample configuration [2].
A calibration developed on carefully prepared laboratory cups cannot simply be assumed to cover every production-floor presentation. Establish how the sample is collected, how much is used, how it is presented, and whether repeat measurements need repositioning or a fresh sample.
The operator is part of the measurement procedure. Training and usable instructions make that contribution reproducible.
On-line: the sampling system is part of the method
Consider a liquid sidestream from a bioprocess sent to an analyzer. The analyzer may run automatically, but the sample has to reach it first.
Tubing volume, flow rate, dead zones, settling, adsorption, bubbles, filtration and cleaning can all affect the sampled material or its timing. Returning material to the process also raises contamination and compatibility questions specific to that process.
In an idealized plug-flow calculation, the transport delay is approximately
Transport delay through a sampling loop
Problem: An illustrative on-line sampling loop has a flow-path volume of 20 mL and a sample flow of 10 mL/min. Assuming ideal plug flow, how long does material take to travel from the process to the analyzer?
Significant-figure rule: this is one division and one unit conversion, so the answer keeps the fewest significant figures among the measured inputs. Read both illustrative inputs as two significant figures: 20 mL (two) and 10 mL/min (two). The conversion 1 min = 60 s is exact and does not limit anything. The answer has two significant figures.
- Write the relation. t = V ÷ Q, with V the flow-path volume and Q the volumetric flow rate.
- Substitute and cancel units. t = 20 mL ÷ 10 mL/min = 20 mL × (1 min ÷ 10 mL). The millilitres cancel, leaving minutes.
- Divide. t = 2 min exactly in the arithmetic; to two significant figures that is written 2.0 min, so that the trailing zero shows the precision.
- Convert to seconds. 2.0 min × 60 s/min = 120 s. The trailing zero here is not significant, so write it as 1.2 × 10² s (two significant figures).
- Interpret. Transport alone takes about 2.0 min. The analyzer’s cycle time and the reporting time come on top. Real loops mix and disperse the sample, so this is a starting estimate, not a validated residence-time characterization.
- Rules used. Division keeps the fewest significant figures of the measured inputs (two); the exact minute-to-second conversion doesn’t limit; scientific notation shows that only two figures of 120 s are significant.
Timestamp alignment has to account for that delay. An analyzer value reported at 14:05 may describe material that left the process minutes earlier.
In-line: frequent measurements of a local interaction
An in-line NIR probe interrogates material without removing it. That can give frequent spectra while avoiding some manual handling.
It also raises questions about what the probe actually encounters. Does mixing repeatedly bring representative material past the window? Is the probe facing a moving bed, a stagnant pocket, or intermittent contact? Does fouling change the optical path? Are temperature and physical-property effects covered by the calibration?
Many scans at one location do not automatically substitute for spatial coverage. Highly correlated scans also do not carry the same independent information as the same number of independent samples.
Probe location, acquisition interval and averaging therefore belong in the analytical procedure and its development evidence. A probe installation is a sampling decision as well as an engineering one.
A delayed result can be right about the past

In this example, water content falls continuously. The delayed trace looks wetter because each reported value describes an earlier point in the process: the process crosses the illustrative 3% level at 20 minutes, but the reported value crosses it at 26 minutes.
If the operator waits for the delayed trace to cross the decision level while drying continues, the process crossed it 6 minutes earlier. That does not mean the analytical measurement is biased. It means the value is being used at a different time from the state it describes.
The right operational response depends on process dynamics, the decision rule, safety margins and the validated strategy. Stopping or holding the process pending a result changes the scenario and has to be considered explicitly.
Download the synthetic timing data.
Separate four ideas about time
| Term | Meaning | Example question |
|---|---|---|
| Sampling interval | Time between observations | Could a brief disturbance occur between samples? |
| Acquisition or averaging window | Period a measurement represents | Could averaging hide a short excursion? |
| Latency | Delay from the represented process state to the result being available | Is this value recent enough for the intended action? |
| Response dynamics | How the measurement system responds when the process changes | Does the sample path or sensor smooth the change? |
A display that updates every second can still show a delayed or heavily averaged value. Process understanding decides whether the information arrives soon enough to support the proposed action.
Soft sensors: inference is a separate dimension
A soft sensor estimates a hard-to-measure property from other measurements using a model. A drying model might estimate water content from inlet and outlet conditions, airflow and other process variables, with suitable reference support.
The physical sensors supplying those inputs still have locations, delays and failure modes. Soft sensing describes how the property is inferred; it is not a fifth location after in-line.
An NIR calibration is also model-based inference from a measured spectrum, though terminology varies between disciplines. The useful habit is to state both the physical measurement arrangement and the inference used to obtain the reported property.
If a temperature sensor drifts, the moisture estimate can change even though the model coefficients have not. Evaluating a soft sensor therefore covers the input measurement system, data alignment, the model and the operational response.
Build evidence across the whole measurement chain
For the dryer example, development should establish:
- Which process state and material the measurement represents.
- How reference samples are matched in place and time.
- Which sources of sampling and presentation variation are covered.
- Whether the total latency and response are adequate for the intended decision.
- How invalid, stale, missing or out-of-domain results are detected and handled.
Good diagnostic questions separate sampling, instrument, model and process effects. A high prediction error might come from an unsuitable model, but also from poor reference matching or a changed sampling environment.
An invalid current result must never quietly become a valid-looking old value. If a display holds the last result, its age and validity have to stay visible to the user or downstream controller.
Where the analyst sits
The analyst connects an instrument reading to the material’s history. The question to keep asking is: which material, at which time, does this number describe?
That question turns a fast analyzer into a defensible measurement system. It also sets up the next reading, where process measurements drive control actions and material diversion.
For discussion
- Why can an accurate laboratory result be unsuitable for a current endpoint decision?
- An in-line probe and an at-line sample disagree. How would you investigate spatial variation, sample handling, temperature and model applicability before deciding which is wrong?
- An analyzer updates every second but reports a rolling five-minute average. What kinds of events could it hide?
- Why is soft sensing a different category from on-line or in-line measurement?
- Which timestamps would you keep to reconstruct the relationship between a sidestream result and the process it came from?
Bridge back to the week
Next: From Prediction to Process Control, where these measurements feed control actions and diversion on a continuous line. Return to Week 11.
Data and sources
Synthetic delay data: the underlying drying curve and its 6-minute-delayed copy at 0.1-minute steps, from water = 1 + 7·exp(−0.0625 t) % w/w; reproduction script and requirements. Figure: 3840 × 2160 pixels.
[1] FDA, PAT — A Framework for Innovative Pharmaceutical Development, Manufacturing, and Quality Assurance (guidance, 2004). Source of the at-line, on-line and in-line distinctions and the process-understanding framework. Guidance.
[2] FDA, Development and Submission of Near Infrared Analytical Procedures (guidance, 2021). Sample presentation, sources of variability and model-based analytical procedures. Guidance.
[3] International Council for Harmonisation (ICH) Q14 and Q2(R2): development, control strategy and intended-use validation context. Q14 guidance · Q2(R2) guidance.
The dryer case, the sampling-loop numbers and the drying curve are constructed teaching examples, not production data or a validated design.