Skip to main content
HHS Author Manuscripts logoLink to HHS Author Manuscripts
. Author manuscript; available in PMC: 2023 Feb 13.
Published in final edited form as: Int Symp Process Syst Eng. 2022;49:2149–2154. doi: 10.1016/b978-0-323-85159-6.50358-4

Application of MHE-based NMPC on a Rotary Tablet Press under Plant-Model Mismatch

Yan-Shu Huang a, M Ziyan Sheriff a, Sunidhi Bachawala b, Marcial Gonzalez b,c, Zoltan K Nagy a, Gintaras V Reklaitis a
PMCID: PMC9923513  NIHMSID: NIHMS1870574  PMID: 36790937

Abstract

Active control strategies play a vital role in modern pharmaceutical manufacturing. Automation and digitalization are revolutionizing the pharmaceutical industry and are particularly important in the shift from batch operations to continuous operation. Active control strategies provide real-time corrective actions when departures from quality targets are detected or even predicted. Under the concept of Quality-by-Control (QbC), a three-level hierarchical control structure can be applied to achieve effective setpoint tracking and disturbance rejection in the tablet manufacturing process through the development and implementation of a moving horizon estimation-based nonlinear model predictive control (MHE-NMPC) framework. When MHE is coupled with NMPC, historical data in the past time window together with real-time data from the sensor network enable model parameter updating and control. The adaptive model in the NMPC strategy compensates for process uncertainties, further reducing plant-model mismatch effects. The frequency and constraints of parameter updating in the MHE window should be determined cautiously to maintain control robustness when sensor measurements are degraded or unavailable. The practical applicability of the proposed MHE-NMPC framework is demonstrated via using a commercial scale tablet press, Natoli NP-400, to control tablet properties, where the nonlinear mechanistic models used in the framework can predict the essential powder properties and provide physical interpretations.

Keywords: pharmaceutical manufacturing, continuous manufacturing, process control, nonlinear model predictive control, moving horizon estimation

1. Introduction

Several factors currently drive the transition of the pharmaceutical manufacturing industry from batch to continuous process operation. These include potential improvement in both product quality homogeneity and process controllability. Quality control traditionally followed a Quality-by-Testing (QbT) approach, wherein product quality was tested at the end of each batch processing step. However, with improved product and process understanding, a Quality-by-Design (QbD) approach was adopted to enable systematic design of the operating space using mechanistic models. More recently, there has been a desire to adopt a Quality-by-Control (QbC) approach, wherein quantitative and predictive understanding can be leveraged for active process control and aid robust process design and operation, thereby enabling smart manufacturing (Su et al., 2019).

An important part of any real-time process monitoring and control strategy is the ability to identify and manage the impact of plant-model mismatch (PMM). PMM can arise in the continuous manufacture of oral solid dosage for numerous reasons, e.g., disturbances that affect critical material attributes (CMAs) such as the bulk density can be introduced during the feeder refill step (Destro et al., 2021). As this can result in a deviation in the critical quality attributes (CQAs), PMM needs to be identified and handled appropriately. Several approaches have been developed in order to identify and assess the impact of PMM, e.g., based on mutual-information (Chen et al., 2013) or autocovariance (Wang et al., 2017). Stringent regulations placed by regulatory bodies make it essential to track CQAs and CMAs online, but they may be unmeasurable in practice as process analytical technology (PAT) sensing methods may not be available to track these states or parameters, e.g., bulk density. Therefore, this work proposes the use of an on-line, real-time parameter estimation approaches to accurately track model parameters online, to guide operating decisions. It is important to note that most work in the continuous manufacturing domain utilize linear model predictive control (MPC) strategies, that are derived from the linearization of the nonlinear system and may not be adequate for nonlinear process models and unit operations such as the rotary tablet press (Ierapetritou et al., 2016).

A recent in-silico study by (Huang et al., 2021) demonstrated that a combined MHE-NMPC framework could satisfy the dual requirement of efficient estimation and control. Unfortunately, there are no case studies in the literature that demonstrate the application of the proposed framework to real data from a continuous pharmaceutical manufacturing process. Therefore, the primary objective of this work is to validate the practical applicability of the proposed framework using a Natoli NP-400 rotary tablet press.

2. Methodology

The moving horizon estimation-based nonlinear model predictive framework (MHE-NMPC) aims to satisfy the dual requirement of estimation and control, by combining the effective estimation capabilities of MHE with the control performance provided by NMPC. Given a nonlinear state-space model:

x˙=g(x,u,θ,w) (1)
y=l(x,u,θ,v) (2)

where x, u, θ, and y are vectors that represent the state variables, input variables, model parameters, and measurements, respectively. Process and measurement noise are denoted by w and v, respectively. In this work, the model is described by a set of explicit algebraic equations with no differential states, and f and h will represent these algebraic equations. MHE can then be formulated as follows (López-Negrete and Biegler, 2012):

minθ^kJ=∑t=k−Npastk(ϵt)TWEϵt+(θ^k−θ^k−1)TWθ(θ^k−θ^k−1) (3a)

subject to

x^k−Npast+j+1=f(x^k−Npast+j,uk−Npast+j,θ^k) (3b)
y^k−Npast+j=h(x^k−Npast+j) (3c)
ϵk−Npast+j=yk−Npast+j−y^k−Npast+j (3d)
x^k−Npast+j+1∈X,   ϵk−Npast+j∈Ωϵ,   θ^k∈Ωθ (3e)
j=0,1,…,Npast (3f)

where θ^k are estimated uncertain parameters, bounded in compact set Ωθ. yt and ut are measurements of output and input variables at time t, respectively; y^t and x^t are estimated output and state values, respectively; εt are output disturbances, bounded in compact set Ωϵ; and WE and Wθ are weighting matrices. Once the MHE optimization problem is solved at time t = k, the estimated state x^k−Npast+1∣t=k is chosen as the initial state value for the next time step t = k + 1, i.e., x^k−Npast+1∣t=k+1=x^k−Npast+1∣t=k.

This study utilizes the median of the error distribution in the past time window to represent output disturbances ζk at time t = k, i.e.,

ζk=median{ϵk−Npast+j},   for j=0,1,…,Npast (4)

The NMPC framework at time t = k is defined as follows:

minΔutJ=∑t=kk+Np(y^t−ysp)TWy(y^t−ysp)+∑t=kk+Nc−1(ΔutTWΔuΔut) (5a)

subject to

x^k+j+1=f(x^k+j,u^k+j,θ^k) (5b)
y^k+j=h(x^k+j)+ζk (5c)
Δuk+j=u^k+j+1−u^k+j (5d)
x^k+j∈X,   u^k+j∈U,   Δuk+j∈ΩΔu (5e)
j=0,1,…,Np−1 (5f)

where Nc is the length of the control time window, and ysp are the setpoints of the output variables. Wy and WΔu are weighting matrices. Control movements Δu are constrained in compact set ΩΔu. A detailed discussion of the MHE-NMPC framework including its computational feasibility is provided in (Huang et al., 2021).

3. Case Study

3.1. Tablet press model

The tablet press is responsible for the formation of solid tablets via mechanical compression. The weight of a convex tablet W and the tablet production rate m˙tablet are given by the following relationships (Huang et al., 2021):

W=ρbVfill(1−ξ1nTnF+ξ2HfillD) (6)
m˙tablet=WnTNstation (7)

where D, Vfill, Hfill, ρb, nT, and nF, are the diameter of the die, volume of the die cavity, dosing position, powder bulk density, turret speed, and feed frame speed, respectively. Nstation refers to the number of stations in the tablet press. ξ1 and ξ2 are empirical model parameters that are estimated from experimental data. The volume of the die cavity for the D-type tooling is provided by (Huang et al., 2021).

The pre-compression force Fpc and the main compression force Fpunch can be computed as follows:

Fpc=πD24b[ρpc−ρcρpc(a−1)+ρc] (8)
ρpc=WVpcρt (9)
Fpunch=πD24b[ρin−die−ρcρin−die(a−1)+ρc] (10)
ρin−die=WVin−dieρt (11)

where parameters a and b are Kawakita constants, which represent the maximum degree of compression and the reciprocal of the pressure applied to attain this degree of compression, respectively. ρpc and ρin−die are the pre-compression and in-die relative densities, respectively. ρt refers to the true density of the powder. The pre-compression volume, Vpc, and in-die volume Vin−die are provided by (Huang et al., 2021).

3.2. Applying MHE to tablet press: Comparison of fix ed model and adaptive model

To investigate state estimation and parameter updating, an experiment was performed via open-loop control. Setpoint changes of input variables were introduced to the tablet press, and corresponding measurements of output variables and model predictions are recorded and shown in Figure 1 (a) with fixed model parameters and Figure 1 (b) with adaptive model parameters.

Figure 1.

Figure 1.

Real-time monitoring of PMM when uncertain parameters are (a) fixed or (b) adaptive with (c) error distribution of estimated output variables.

In this study, since the mathematical model is represented by a set of explicit algebraic equations the MHE only updates two uncertain parameters: (1) the bulk density (ρbulk), to compensate for the effects of disturbance on the estimated value of the tablet weight, which further affects estimated values of pre-compression force, main compression force, and the production rate, and (2) the critical relative density (ρc) to provide flexibility to estimate the pre-compression and main compression forces more accurately in the adaptive model compared to the case of only bulk density being updated. The adaptive model predicts output variables more accurately compared to the fixed model.

To quantify model accuracy and precision, error distributions of the estimated output variables are provided in Figure 1 (c), where the probability density functions (pdf) of the error distributions are rescaled (meaning that the area under the density curve is not 1). Once MHE is applied to update the bulk and critical relative densities, the absolute values of the median error and error spans of all output estimations are significantly reduced, as shown in Figure 1 (c). However, an exception is found in pre-compression force, whose error span is reduced from 0.75 kN to 0.37 kN, while median error is increased from 0.07 kN to 0.22 kN. Since pre-compression force and main compression force share the same model parameters as shown in Equation (8–11), there exists the need to establish a compromise between the accuracy of these two output variables.

3.3. Ex perimental verification of MHE-NMPC

Control profiles for a representative experimental run of the 4 input variables, 4 output variables, and 2 uncertain model parameters are shown in Figure 2 (a), (b), and (c), respectively. Offsets in the output variables are observed as open-loop control is applied at the start of operation (highlighted in red). When the MHE-NMPC algorithm is implemented from t = 200 s, offset free control is achieved. Additional setpoint changes are introduced for the tablet weight at t = 600 s, 800 s, 1500 s, the main compression force at t = 1100 s, and the production rate at t = 1000 s.

Figure 2.

Figure 2.

MHE-NMPC control performance of the tablet press with (a) input variables, (b) output variables, and (c) uncertain parameters.

All results of setpoint tracking are satisfactory as shown in Figure 2 (b). During the experimental run, an internal alarm stopped the tablet press twice at t = 820 s and t = 1160 s (highlighted in yellow) forcing the turret speed to drop to 0 rpm. The machine stop prevents the distributed control system (DCS) from collecting in-house tablet weight and production rate measurements, where the time delay can be attributed to the 10 s moving average window. The strength of the MHE-NMPC algorithm can once again be noted, as offset-free control is quickly achieved once the tablet press resumes operation. As the uncertain parameters are updated in real-time as shown in Figure 2 (c), the mismatch can be mitigated as presented in Figure 2 (b). While mismatch for pre-compression force cannot be completely mitigated, as it shares the same parameters as the main compression force, the disturbance term used in controller model described in Equation 5c still guarantees offset-free control of the pre-compression force.

4. Conclusions

Real-time process monitoring and control are essential to enable continuous operation of modern pharmaceutical manufacturing processes. The MHE-NMPC framework demonstrates satisfactory control performance and parameter updating in the rotary tablet press to handle plant-model mismatch (PMM). Future work will include sensor fusion studies to incorporate at-line measurements with long sampling time to the framework. Accurate estimation is required to enable the control of critical quality attributes such as tensile strength, which need to be predicted from soft sensors due to limited availability of real-time measurements because of the destructive nature of the testing methods used.

Acknowledgement

This work was supported by the United States Food and Drug Administration under grant 1U01FD006487-01. The authors would like to thank Natoli Engineering Company for the availability of the tablet press and Carmelo Hernandez-Vega for his technical support.

References

  1. Chen G, Xie L, Zeng J, Chu J, Gu Y, 2013. Detecting Model–Plant Mismatch of Nonlinear Multivariate Systems Using Mutual Information. Industrial & Engineering Chemistry Research 52, 1927–1938. [Google Scholar]
  2. Destro F, García Muñoz S, Bezzo F, Barolo M, 2021. Powder composition monitoring in continuous pharmaceutical solid-dosage form manufacturing using state estimation – Proof of concept. International Journal of Pharmaceutics 605, 120808. [DOI] [PubMed] [Google Scholar]
  3. Huang Y-S, Sheriff MZ, Bachawala S, Gonzalez M, Nagy ZK, Reklaitis G. v., 2021. Evaluation of a Combined MHE-NMPC Approach to Handle Plant-Model Mismatch in a Rotary Tablet Press. Processes 9, 1612. [DOI] [PMC free article] [PubMed] [Google Scholar]
  4. Ierapetritou M, Muzzio F, Reklaitis G, 2016. Perspectives on the continuous manufacturing of powder-based pharmaceutical processes. AIChE Journal 62, 1846–1862. [Google Scholar]
  5. López-Negrete R, Biegler LT, 2012. A Moving Horizon Estimator for processes with multirate measurements: A Nonlinear Programming sensitivity approach. Journal of Process Control 22, 677–688. [Google Scholar]
  6. Su Q, Ganesh S, Moreno M, Bommireddy Y, Gonzalez M, Reklaitis G. v, Nagy ZK, 2019. A perspective on Quality-by-Control (QbC) in pharmaceutical continuous manufacturing. Computers & Chemical Engineering 125, 216–231. [DOI] [PMC free article] [PubMed] [Google Scholar]
  7. Wang S, Simkoff JM, Baldea M, Chiang LH, Castillo I, Bindlish R, Stanley DB, 2017. Autocovariance-based MPC model mismatch estimation for systems with measurable disturbances. Journal of Process Control 55, 42–54. [Google Scholar]

RESOURCES