From Prediction to Process Control
Guidelines:
Modalities:

The one idea
A prediction describes a process attribute. A control strategy defines what to do with that information, and how to establish that the action worked.
A model estimating blend concentration does not itself adjust a feeder. A good concentration result does not establish every tablet quality attribute. Diverting an affected segment does not, by itself, authorize release of the retained batch.
This reading follows an illustrative continuous direct-compression line. International Council for Harmonisation (ICH) Q13 supplies the framework for process dynamics, material traceability and control in continuous manufacturing (CM). The example and synthetic calculations explain principles; they are not a validated manufacturing recipe [1].
Follow the material through the line
Active pharmaceutical ingredient (API) and excipients enter through loss-in-weight feeders. The powders pass through a continuous blender, then the tablet press feed system and compression. A downstream device routes tablets to collection or diversion.
Different instruments answer different questions along this path:
| Measurement | Information supplied | What it does not establish alone |
|---|---|---|
| Feeder mass-flow signal | Delivered mass rate and its variation | Downstream concentration after mixing, losses or segregation |
| near-infrared (NIR) blend measurement | A model-based estimate of local blend concentration under supported conditions | Individual tablet content or every finished-product attribute |
| Press force, displacement or thickness signal | Information about compression and tablet formation | A universally valid dissolution prediction |
| Diverter position feedback | Evidence about the routing device’s position | Complete proof that every affected tablet reached the intended destination |
Together, measurements and process understanding can support a control strategy. Each signal needs a defined role, suitable performance, timing and a failure response.
Continuous manufacturing still produces defined batches. A batch can be defined by a justified quantity or production interval, with material traceability maintained across the process. Continuous operation does not remove batch disposition or the quality system [1].
The disturbance: a feeder refill
Suppose an API feeder refill causes a short delivery disturbance. Its mass-flow signal leaves the expected range. That could change the API-to-excipient ratio entering the blender.
The downstream effect depends on the size and duration of the disturbance, the process mixing, material properties and operating conditions. Some disturbances are attenuated without harming product quality. Others need adjustment, diversion, a stop or an investigation.
Do not treat every process alarm as a specification failure. Equally, do not assume a brief event is harmless because the next displayed average looks normal.
Separate detection, inference, decision and action
| Function | Example | Evidence needed |
|---|---|---|
| Detect | Feeder rate departs from its expected behavior | Signal validity, suitable sampling and event detection |
| Infer | Predict how blend concentration will change downstream | An appropriate process or analytical model, and an applicability assessment |
| Decide | Adjust feed, divert material, stop or escalate | Predefined rules justified for the process and the quality risk |
| Act | Change a feeder setpoint or move a diverter | Verified command execution and equipment response |
| Confirm | Establish recovery and identify affected material | Suitable measurements, timing, traceability and review |
Keeping these functions explicit helps locate a failure. A model may predict correctly while an actuator fails. An actuator may work correctly after a decision arrives too late.
One refill, all five functions

Read the figure one panel at a time, against the table above.
- Detect. The refill starts at 120 s. The rule is that the measured API rate must sit more than 10% from setpoint for two consecutive seconds, so it fires at 123 s. Detection says only that the feeder misbehaved; it says nothing yet about the product.
- Infer. The same RTD models used for diversion turn the feeder signal into a predicted concentration at the NIR probe and at the diverter. The NIR results, a 5 s average reported 3 s later, follow the prediction a few seconds behind and peak near 112% of target. Here the measurement confirms the model; on another day it might contradict it, and that disagreement is itself evidence.
- Decide. The model predicts that material at the diverter leaves the 97–103% action band from 195 s to 285 s. The rule commands diversion 15 s ahead, at 180 s. That is almost a minute after detection: feedforward lets the decision wait for the material, instead of reacting the moment the alarm sounds.
- Act. The diverter confirms its position 5 s after the command, at 185 s. The record keeps both times, because the gap between them is material that was commanded away but not yet shown to have moved.
- Confirm. Collection may resume only when both conditions hold. The model’s prediction must have been back in band for 10 s, which happens at 295 s. Three consecutive NIR results must also be in band, which happens at 253 s at the probe and becomes 298 s once carried forward by the 45 s NIR-to-diverter delay. The later time governs, so collection is commanded at 298 s and confirmed at 303 s. The true concentration at the diverter exceeded the 105% quality limit from 204 to 269 s, all of it inside the diverted window, and none of it reached collection.
How much material did the event divert?
Problem: The line runs at 30.0 kg/h. The diverter was confirmed in the divert position from 185 s to 303 s, and the out-of-limit material occupied 66 s of that window. How much material was diverted, and how much of it was within the quality limit?
Significant-figure rule: the times are subtracted first, which keeps whole seconds (no decimal places). The masses then come from multiplication and division, which keep the fewest significant figures among the measured inputs: 30.0 kg/h (three), 118 s (three) and 52 s (two). The conversion 1 h = 3600 s is exact. So the diverted mass has three significant figures and the within-limit part has two.
- Diverted time. 303 s − 185 s = 118 s, to the whole second.
- Rate in kilograms per second. 30.0 kg/h ÷ 3600 s/h = 0.0083333… kg/s. The hours cancel; carry all the digits.
- Diverted mass. 118 s × 0.0083333… kg/s = 0.98333… kg → 0.983 kg to three significant figures (the dropped 3 rounds down).
- Within-limit time. 118 s − 66 s = 52 s of diverted material that was inside the 95–105% limit.
- Within-limit mass. 52 s × 0.0083333… kg/s = 0.43333… kg → 0.43 kg to two significant figures, limited by 52 s.
- Interpret. Of 0.983 kg diverted, about 0.55 kg was out of limit and 0.43 kg was good material, thrown away because the rule acts early (the 97–103% action band and the 15 s lead) and waits for confirmation. That margin is a deliberate cost: it is what bought “none collected”.
- Rules used. Subtraction kept whole seconds; multiplication and division kept the fewest significant figures of the measured inputs; the exact hour-to-second conversion didn’t limit.
Feedback: respond to the measured result
Feedback uses a measured or estimated controlled variable to respond to a deviation from its target. A downstream blend-concentration estimate might, for example, support adjusting an upstream feeder ratio within an established strategy.
The effect of that adjustment takes time to reach the downstream measurement. Changing the feeder repeatedly before earlier changes arrive can cause overcorrection or oscillation.
A suitable controller therefore accounts for process dynamics, measurement delay, noise, actuator constraints and interactions with other operating variables. Speeding up one feeder without considering total throughput and the other feed rates can introduce new disturbances.
An NIR calibration predicts concentration. The controller decides an action. The two may be integrated in software, but each needs its own development and evaluation evidence.
Feedforward: respond to an upstream disturbance
Feedforward uses information about an upstream disturbance to choose an action before its full downstream effect is observed. Here, feeder measurements and a process model might support timing a diversion in advance, or a justified compensating adjustment.
The advantage is earlier action. The limitation is dependence on the disturbance measurement and on the model linking it to downstream behavior. An unmeasured disturbance or a wrong model defeats the intended response.
Feedforward and feedback can be combined: the upstream signal supports anticipation, and downstream measurements show what actually happened. The choice depends on the process and the control function, not on a rule that one approach is always better.
Residence time is a distribution
Material entering a blender at one moment does not leave as a single sharply bounded packet. Mixing and flow create a range of transit times. The residence time distribution (RTD) describes that spread for a specified path and operating condition [1, 2].
A mean transit time is useful but incomplete. Shifting an event by the mean alone ignores the material that arrives early and the tail that leaves late.
RTD characterization can use a suitable tracer, or other justified experiments and models, relevant to the materials, operating conditions and units of interest. A tracer that segregates differently from the API may misrepresent the movement we need to understand.
RTDs change with throughput, hold-up, equipment settings and material properties. A single curve is not automatically valid across every operating condition.
A worked timing example

The input disturbance lasts from 2.0 to 2.5 minutes, and the RTD has a mean residence time of 1.0 minute. A simple mean-delay shift would suggest the affected output is confined to 3.0–3.5 minutes.
The calculated response tells a different story: the effect is delayed, broadened and smaller at its peak (about 0.42 of the input deviation). It begins before the mean-shift interval and continues well after it.
For the shading, the start of the input event is combined with the RTD’s 0.5th-percentile time (0.17 min) and the end with its 99.5th-percentile time (2.74 min), giving an interval of about 2.2 to 5.2 minutes. This construction shows the timing spread. It does not guarantee acceptable output outside the shaded region, because the mathematical tails remain, and the quality impact also depends on the event’s size, the limits and the uncertainty.
Download the synthetic input and output data.
Translate process understanding into diversion
Diversion keeps defined material out of the accepted collection stream. The strategy needs a justified trigger and defensible start and end times. The RTD and process dynamics support that timing; they do not choose the quality criteria [1].
For the feeder event, investigate:
- When the disturbance started and ended at its source.
- How it propagates to the relevant quality measurement and to the diversion point.
- Whether detection, computation, communication and actuator delays allow the intended routing.
- Which uncertainties need additional coverage or a different response.
- What evidence supports ending diversion and resuming collection.
The RTD has to cover the right path. A feeder-to-NIR model is not automatically a feeder-to-diverter model; intermediate hold-up and further flow behavior matter.
If a disturbance is recognized only after affected tablets have passed the diverter, moving the gate now cannot retrieve them. The strategy has to identify and manage potentially affected collected material.
Recovery is more than one good number
A single normal NIR prediction may not establish recovery. It may reflect averaging, a local sample, or a temporary return while affected material is still elsewhere in the system.
Predefined recovery criteria can combine valid analytical results, process conditions, diagnostics and a justified timing or material-clearance requirement. Their form is process-specific.
Likewise, a constant output trend is not proof of control. Steady state describes behavior over time; a state of control concerns assurance of continued process performance and product quality. A process can be stable at an unsuitable condition, while an understood and controlled transition can involve changing signals [1].
What if the measurement fails?
Imagine the NIR predictions stop updating while the feeder values stay normal. A previous acceptable prediction must not silently stand in for current evidence.
The established response might be diversion, a stop, an investigation, or a justified alternative measurement strategy, depending on what evidence remains and on the approved operating strategy. There is no universal rule that every analyzer failure calls for the same action.
Record signal validity, result age, model version, alarms, commands, actual device states and the material-routing history. An investigation needs evidence of what the system actually did, not only what the software requested.
Diversion and release answer different questions
Diversion asks which material should be kept out of a defined collection stream. Release asks whether the retained batch meets the applicable requirements and whether the complete evidence supports disposition.
Handling an API-feeder disturbance well does not establish dissolution, impurity control, tablet strength or any other required attribute. Real-time release testing (RTRT), where justified, needs its own strategy for the attributes it covers. That is the subject of the next reading.
Where the analyst sits
The analyst connects chemistry, signals and material history. Is a concentration excursion real or a probe artefact? Does the RTD describe this throughput and this material? Did the control action happen in time? Which collected output is potentially affected?
Those questions turn a numerical prediction into evidence that can support process decisions. Control comes from the coordinated system of measurements, models, rules, actions and verification.
For discussion
- Why can an accurate concentration model coexist with an ineffective control loop?
- Explain how feedback delay can cause overcorrection in the tablet-line example.
- Why is shifting an input event by the mean residence time insufficient for diversion timing?
- An upstream alarm is recognized after potentially affected tablets were collected. What evidence would you need to identify and manage that material?
- Why does successful diversion not establish that the retained batch can be released?
Bridge back to the week
Next: When a Model Can Support Release, on the evidence that lets process data stand in for a finished-product test. Return to Week 11.
Data and sources
Synthetic RTD response: the input pulse, the gamma RTD density and the convolved output at 0.005-minute steps; RTD summary: the percentiles, shaded interval and output peak quoted above. Feeder event: time series at 1 s steps (measured feeder rate, predicted and true concentration at the NIR and at the diverter, route), NIR results, event summary (every time and mass quoted above) and the rules used; reproduction script and requirements. Figures: 3840 × 2160 pixels, computed with fixed seeds.
[1] ICH Q13, Continuous Manufacturing of Drug Substances and Drug Products. Read the control-strategy and material-traceability discussions and the illustrative oral-solid-dose annex. Guidance page.
[2] US Food and Drug Administration (FDA), Predictive Residence Time Distribution Models for Continuous Powder Blending. Research summary connecting RTD, process conditions and material traceability. FDA research.
[3] ICH Q13 training materials, particularly Modules 3–6 on control and process dynamics, Module 8 on diversion, Module 9 on monitoring and control, and Module 10 on models. ICH quality guidelines and training.
The line, the feeder event and the RTD are constructed teaching examples, not a validated manufacturing strategy.