Next Article in Journal
Curcumin and Resveratrol vs. Ferrocene-Modified Polyphenols: Role in Enhancing Protective Properties in Human Keratinocytes
Previous Article in Journal
Carbutamide, an Obsolete Anti-Diabetic Drug, Has Potential as a Potent Anticolitic Agent via Azo-Conjugation with Mesalazine
Previous Article in Special Issue
Advancing Personalized Medicine Through FDM 3D Printing: Ketoprofen Tablets with Customizable Drug Release Profiles and In Silico Simulation
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Adaptive Closed-Loop Control System for the Optimization of Tablet Manufacturing Processes

1
China Resources Jiangzhong Pharmaceutical Group Co., Ltd., Nanchang 330096, China
2
Jiangzhong Pharmaceutical Co., Ltd., Nanchang 330096, China
3
Technology and Innovation Center of Jiangxi Traditional Chinese Medicine Manufacturing and Process Quality Control, Nanchang 330004, China
4
Key Laboratory of Modern Preparation of TCM, Ministry of Education, Jiangxi University of Chinese Medicine, Nanchang 330004, China
*
Author to whom correspondence should be addressed.
Pharmaceutics 2025, 17(12), 1510; https://doi.org/10.3390/pharmaceutics17121510 (registering DOI)
Submission received: 26 September 2025 / Revised: 18 November 2025 / Accepted: 19 November 2025 / Published: 22 November 2025

Abstract

Background: Tablet manufacturing is challenged by strong dynamic coupling of process parameters, significant material property fluctuations, and delayed quality control, with tablet weight stability being particularly critical in high-speed production. Traditional static optimization methods relying on empirical judgment struggle to manage these dynamics, leading to substantial variations in tablet weight and hardness that severely compromise production efficiency. Methods: This study proposes a data-driven closed-loop control system centered on a novel Iterative Learning Model Predictive Control (IL-MPC) architecture. The core innovation lies in directly integrating iterative learning constraints within the MPC optimization framework. This constraint-embedding mechanism enables systematic utilization of historical batch data while preserving real-time optimization capabilities. The IL-MPC approach achieves enhanced batch-to-batch performance consistency with reduced computational burden, effectively combining the dual advantages of learning and optimization. Results: Simulation experiments and industrial production data validate the practical feasibility of the IL-MPC algorithm. Implementation results demonstrate that the proposed system effectively manages dynamic process variations, significantly improving control precision for both tablet weight and hardness, outperforming conventional control methods. Conclusions: This research breaks through the technical bottleneck of dynamic regulation in tablet manufacturing. The developed IL-MPC framework provides a reproducible closed-loop control paradigm for intelligent pharmaceutical manufacturing, promoting the industry’s transformation toward data-driven models and advancing intelligent drug production.

1. Introduction

Tablets are representative dosage forms of solid dosage forms, and their quality uniformity is crucial to the reliability of clinical efficacy and drug safety. However, tablet manufacturing generally faces challenges such as strong coupling of process parameters, significant fluctuations in material properties, and lagging quality control tools, which have become major constraints to the development of the industry [1]. During the rotary tabletting process, due to the fixed distance between the punches, variations in the bulk density, particle size distribution and moisture content of the granules will directly affect the weight and hardness of the tablets and further influence the porosity and tensile strength of the tablets [2]. The commonly adopted simple adjustment mechanism based on tablet weight feedback finds it difficult to effectively adapt to the nonlinear changes in key physical parameters such as particle fluidity and compressibility, and belongs to the passive-response control, resulting in sharp fluctuations in tablet quality and insufficient process robustness [3,4]. The tableting process is essentially a complex dynamic system with both time-varying characteristics and batch-to-batch evolution, which requires real-time dynamic optimization of process parameters within a single batch, as well as progressive iterative updating of the process model using accumulated data from multiple batches [5].
Advances in intelligent technology have driven the exploration and application of a variety of innovative control methods in pharmaceutical high-quality control. Existing control strategies can be primarily categorized into two paradigms: model-free control and model-based control [6]. Model-free control strategies operate independently of explicit mathematical models of the process, instead adjusting control actions solely based on real-time error signals (the discrepancy between desired setpoints and actual measured outputs). A quintessential example is the Proportional–Integral–Derivative (PID) controller, which is extensively employed in localized control applications within continuous pharmaceutical production (e.g., valve regulation, airflow management) due to its simplistic control architecture, minimal parameter requirements, and ease of deployment [7]. However, its efficacy becomes constrained when addressing complex, multivariate processes characterized by significant delays and constraints, rendering PID control networks inadequate for comprehensive process control that meets stringent regulatory requirements for critical quality attributes of pharmaceutical products [8]. In contrast, model-based control strategies leverage dynamic mathematical models of the process to predict its future behavior within defined boundaries. This predictive capability enables controllers to compute optimal control actions that anticipate future disturbances while systematically satisfying process constraints. Model Predictive Control (MPC) stands as the predominant model-based methodology in industrial applications, demonstrating superior performance in managing multivariate interactions and constraints [7,9].
As a control algorithm, MPC has been successfully implemented in production optimization across various industries, including petrochemical and pharmaceutical sectors [10,11,12]. For example, when modeling a feeder mixing unit [13,14], MPC was used to regulate the mixer outlet mass flow rate and treat the feeder flow as a measurable disturbance. It has been shown that MPC has significant advantages in terms of flexibility in handling constraints, simplifying controller design, and providing intuitive tuning. MPC performs better in suppressing feeder fluctuations and stabilizing the mixer speed compared to PID control or model-based feedforward control [14]. In the simulation control of tablet manufacturing, Haas et al. established two primary control models for regulating tablet weight and hardness, along with a secondary feedback model for controlling the compaction force applied to each tablet. Their findings revealed that the hybrid MPC-PID control strategy outperformed the conventional PID control strategy [15].
However, the above schemes often neglect the active closed-loop control of product quality, making it difficult to fully meet the high requirements of batch production. Given that tablet pressing is a typical batch process, iterative learning control (ILC), as an important branch of learning control, has increasingly become an emerging research direction in this field [16]. A variety of schemes integrating ILC and feedback control have been proposed by researchers, such as the indirect ILC method [17,18], in which the feedback controller is designed first, and then its setpoints are optimized along the batch direction by the ILC strategy in order to improve the tracking performance. During the batch crystallization process, Sanzida et al. [19] proposed a hierarchical iterative learning control scheme for the system design of the supersaturation controller in batch cooling crystallizers. Within the ILC framework of linear time-varying disturbances, the inter-batch convergence improvement of process performance indicators was achieved. Among them, the combination of ILC and MPC is a key feedback ILC method and one of the most widely used methods for batch processes. Xiong et al. [20,21] proposed the strategy of integrating inter-batch ILC with intra-batch shrinkage time-domain model predictive control for tracking the product quality trajectory of the batch process. Under the conditions of batch-to-batch iterative learning control based on the linear time-varying perturbation model, the performance of subsequent batch operations is enhanced, ensuring the convergence of batch tracking errors. Xiong et al. [21] proposed an integrated inter-batch and intra-batch online control strategy. Simulation experiments of batch polymerization processes demonstrated that, compared with the traditional iterative learning control, the integrated control strategy could significantly improve the system performance, especially when disturbances occurred. In response to the precise control requirements for crystal diameter and thermal field temperature during the batch growth of silicon single crystals, Wan et al. [22] proposed a time-axis MPC approach to address single-batch disturbances and constraints, complemented by an iteration-axis ILC to compensate for multi-batch uncertainties. Experimental analysis of controller performance based on actual production data demonstrates that this methodology not only stabilizes the thermal field temperature and ensures consistent crystal diameter but also effectively mitigates the impact of external disturbances.
In contrast to traditional dual-layer control architectures, this paper introduces an integrated framework that systematically incorporates ILC principles as constraints within the MPC optimization problem, specifically designed for the tableting process. By embedding historical quality deviations as learning constraints, the proposed model enables precise regulation of tablet weight and hardness through real-time adjustments of critical process parameters. This approach not only improves batch-to-batch consistency but also facilitates autonomous quality control by continuously refining the process model using accumulated production data. The implementation of this data-driven strategy significantly enhances the intelligence level of pharmaceutical manufacturing, providing a scalable solution for adaptive quality assurance in solid dosage form production.

2. Basic Theory of Iterative Learning Predictive Control

2.1. Model Predictive Control with Iterative Learning Constraints

In high-speed tablet manufacturing, critical material attributes (moisture content, particle size, temperature) and process parameters (production speed, main compression force, guide rail temperature, compression wheel speed) significantly influence tablet weight and hardness [2]. Traditional algorithms, such as MPC, while capable of optimal control, often have limitations in effectively correcting the inherent repeatability errors of the system. Such errors can persist during repetitive equipment operations, adversely affecting control accuracy and final product quality [22]. We propose an Iterative Learning Model Predictive Control (IL-MPC) methodology that systematically incorporates ILC by formulating its update law as constraints in the MPC optimization (Figure 1). This integrated design enhances disturbance rejection within a batch while leveraging historical data across batches, thus addressing the limitations of standard MPC in batch production environments. ILC is a control theory based on repetitive production cycles, which does not rely on high-precision system models but rather dynamically adjusts the control laws of the current batch by learning the control error information of the historical batch [23]. The key advantage of ILC lies in its repetitive error-targeted compensation mechanism. The controller utilizes the error data from historical batches for integration and applies the accumulated error as a correction to the current batch [19]. This iterative learning and compensation process enables the system to continuously optimize over repeated operations, significantly eliminating repetitive errors between batches, thus improving the consistency of the entire production process and product quality. In addition, the ILC strategy enhances the robustness and long-term operational stability of the controller. Of course, in order to achieve the best results, the ILC algorithm requires appropriate adjustments to its controller parameters and correction parameters and has specific requirements for the collection and processing of historical data, which requires appropriate planning in practical applications [20].
The tablet compression process can be described as [23]:
Y t = f U m a t e r i a l t , U p r o c e s s t , Y t 1 , Y t 2 + d k t U m a t e r i a l = M C , D v 10 , D v 50 , D v 90 , M T , U p r o c e s s = P S , M C A P r , F S P ,
where Y represents tablet weight and hardness, Umaterial contains material attributes, Uprocess contains process parameters, and dk(t) represents batch-varying disturbances.
The tracking error for batch k is defined as:
e k t = Y d t Y k t
where Yd(t) is the desired quality trajectory. The ILC-based model update law is given by:
θ k + 1 = θ k + K e k t
where θ represents the model parameters used in MPC, and K is the learning gain matrix.

2.2. Real-Time Adaptive Model Predictive Control

The MPC uses the ILC-updated model to compute optimal adjustments to fill position and compression wheel position in real-time. The objective is to maintain tablet weight and hardness within superior quality ranges despite variations in material properties and process conditions.
The multivariate prediction model for tablet quality is:
Y 1 t + 1 = f 1 F S P t , M C t , D v t , P S t , Y 1 t , Y 1 t 1 Y 2 t + 1 = f 2 M C S P o t , M C A P r t , M C t , Y 2 t , Y 2 t 1
where Y1 is tablet weight, Y2 is tablet hardness, FSP is fill position, and MCWP is main pressure wheel position.
The framework employs Multiple Linear Regression (MLR) models with time-delayed terms to predict tablet weight and hardness, utilizing process parameters and material attributes as key inputs. These model parameters are continuously refined between production batches using a Recursive Least Squares (RLS) algorithm with a forgetting factor. This systematic updating of static gain coefficients, dynamic response parameters, and disturbance sensitivity coefficients enables the model to maintain accuracy amidst gradual process variations and material changes, ensuring reliable predictions for real-time optimization [24].
The learning gain matrix K = diag(K1, K2) is systematically designed through a multi-step approach that balances rapid learning with robust performance. The initial gains are determined via process sensitivity analysis using the relation Ki = α⋯(yi/∂ui)−1, where α controls learning aggressiveness and the partial derivative represents the steady-state process gain. For the multi-input multi-output implementation, the gain matrix is structured using Singular Value Decomposition (SVD) of the process gain matrix G, resulting in K = V⋯Σk⋯UT, where U and V are unitary matrices from the SVD of G, and Σk is a diagonal matrix containing the individual learning gains. This design incorporates frequency-domain characteristics with higher gains at low frequencies to eliminate systematic errors and gain roll-off at high frequencies to prevent noise amplification. Furthermore, an adaptive scheduling mechanism adjusts the gains based on batch performance through Ki(k) = Ki(k − 1)⋯γsign(J(k)−J(k−1)), where J(k) represents the performance index and γ < 1 is a reduction factor. All gains are constrained within predefined bounds, KminKiKmax, to ensure operational stability, creating a system that achieves rapid performance improvement across batches while maintaining robustness under varying production conditions.

3. MPC-ILC Strategy for Tablet Quality Assurance

Critical material attributes (e.g., particle size and moisture content) and critical process parameters (e.g., fill position, press wheel position, etc.) work together through interrelated mechanisms to control tablet weight and hardness [25]. Optimal particle size ensures uniform mold filling, directly controlling tablet weight consistency, while proper moisture content enhances the plasticity of the powder and promotes bonding during compression, thereby increasing tablet hardness. Crucially, the fill position determines the initial volume of powder in the mold cavity and is the main determinant of tablet weight, while the position of the press wheel regulates the amount of compression force and residence time, with insufficient compression force resulting in incomplete particle bonding and low hardness, while too much compression force runs the risk of capping. In addition, the moisture content has a dual role: it acts as a plasticizer to increase the hardness in the optimal range, but at too high a level, it leads to sticking, while particles that are too large cause weight changes through segregation. These parameters show strong coupling effects; for example, if the particle size is not desired, the compression force has to be compensated and adjusted to maintain the hardness, which requires an integrated control strategy to satisfy the weight and hardness specifications at the same time. In order to improve the control performance of the system, we designed the MPC strategy for the press wheel position and filling position, respectively, and selected the corresponding control parameters for different control objectives.

3.1. Integrated Predictive Controller Design

The MPC optimization problem for each control interval is formulated as:
m i n F S P , M C S P o j = 1 N p Y 1 * t + j Y 1 t + j 2 + Y 2 * t + j Y 2 t + j 2 + λ 1 j = 1 N c Δ F S P t + j 2 + Δ M C S P o t + j 2
subject to:
Y 1 , m i n Y 1 t Y 1 , m a x Y 2 , m i n Y 2 t Y 2 , m a x F S P m i n F S P t F S P m a x M C S P o m i n M C S P o t M C S P o m a x θ k + 1 = θ k + K e k t ( ILC   model   update   constraint )
where ΔFSP and ΔMCSPo represent rate constraints on the control adjustments.

3.2. Real-Time Learning and Adaptation

The ILC mechanism continuously improves the prediction model f(•) based on historical batch data. After each batch completion, the model parameters are updated using the accumulated error:
θ k + 1 = θ k + Γ t = 1 N e k t ϕ t
where ϕ t contains the regressor variables (material attributes and process parameters), and Γ is a learning gain matrix. This updated model is then used by the MPC in the subsequent batch.

3.3. Online Implementation Architecture

The integrated control system operates as follows:
  • Real-time sensing: Online sensors continuously monitor material attributes (moisture, particle size) and process parameters.
  • MPC optimization: The controller computes optimal adjustments to fill position and compression wheel position.
  • Quality monitoring: Tablet weight and hardness are measured at regular intervals.
  • ILC learning: After each batch, model parameters are updated based on performance errors.
  • Constraint enforcement: The ILC-updated model is embedded as a constraint in the next MPC optimization cycle.
This architecture ensures that the control system adapts to both within-batch variations and cross-batch drifts, maintaining tablet weight and hardness within the superior quality range (0.784–0.816 g for weight, 90–120 N for hardness) despite fluctuations in material properties and process conditions.
The proposed MPC-ILC framework provides a systematic approach for real-time quality assurance in tablet manufacturing, leveraging historical data to improve current batch performance while respecting physical constraints and quality specifications.

4. Materials and Methods

4.1. Experimental Design

This study was conducted on the production line of Jianwei Xiaoshi tablets utilizing a high-speed tablet press equipped with 65 punches, each with a diameter of 13.8 mm. The tablet production line employs sensors and a Manufacturing Execution System (MES) to collect production data in real-time, with a sampling frequency of once every 2 s (Figure 2). The analysis covers more than 300 production batches in six consecutive months to ensure the diversity and representativeness of the data, covering multi-source variables such as process parameters, material attributes, and critical quality attributes. The material attributes consisted mainly of moisture content and particle size characteristics: moisture was monitored online in real time by microwave sensors (Envea Msens2, Schliengen, Germany), while particle size was determined by a Malvern laser particle sizer (Malvern Insitec 2004, Malvern Panalytical, Malvern, UK) (Table 1). To ensure optimal data correlation, the microwave sensor and laser particle size analyzer were installed on the feeder of the tablet press, positioned adjacent to the compression rollers and punches. Critical quality attributes relate to tablet weight and hardness, which are measured by an online tester automatically sampling 10–20 tablets every 2 min. To minimize the effect of single tablet fluctuations, the average tablet weight and the average tablet hardness sampled in each round were used as quality indicators. In actual production, the tablet weight deviation is used to distinguish qualified products from superior products in the range of 0.784–0.816 g, and the qualified range of hardness is 90 N to 120 N.
During the data collection process, there were missing values and outliers due to factors such as manual deviation, sensor failures, and downtime and material breaks. To ensure data quality, a large number of missing values due to equipment failure or downtime were directly eliminated, while a small number of missing data with a smooth trend before and after were filled in with the mean value, and outliers were identified and eliminated using the triple standard deviation method. The production fluctuation ranges of equipment and material parameters are as follows:

4.2. Data Analysis of Particle Size Distribution

To address multicollinearity among the nine particle size percentiles (Dv(10) to Dv(90)), principal component analysis (PCA) was performed to compress the dimensionality of the particle size data [26]. PCA transforms the original correlated variables into a set of linearly independent principal components (PCs), retaining the first two principal components, PC1 and PC2. These components were used as consolidated inputs representing the particle size distribution in subsequent modeling, thereby reducing model complexity and avoiding multicollinearity.

4.3. Identifying Critical Variables for Closed-Loop Regulatory Model

Spearman’s rank correlation analysis was conducted between the critical quality attributes (ATW and ATH) and a set of potential predictors to identify the most critical variables for predicting tablet weight and hardness [27]. These predictors included material attributes: MC, MT, and the PCA-derived particle size components (PC1, PC2), etc., while the process parameters included PS, MCAP, RT, and MCWS, etc.
The formula for calculating Spearman’s rank correlation coefficient is as follows:
ρ = 1 6 d i 2 n n 2 1
where n represents the number of data points, di denotes the difference in rank between the i-th data point in the two datasets, and when di = 0, it indicates that the ranks are identical, with ρ = 1 indicating a perfect positive correlation between the two variables. Conversely, ρ = −1 indicates a perfect negative correlation, while ρ = 0 indicates no correlation between the two variables. Variables exhibiting Spearman’s correlation coefficient with |ρ| > 0.5 and a p-value < 0.01 with either ATW or ATH were selected as key inputs for the predictive model. This approach ensured that only statistically significant and practically relevant variables were included, enhancing model interpretability and performance.

4.4. Control Performance Evaluation Index

In this study, in order to quantitatively evaluate the control performance, the assessment metrics shown in Table 2 are defined, which include mean square error (MSE), integral absolute error (IAE), and integrated time and absolute error (ITAE).
Table 2 presents a comprehensive evaluation of the system performance using three indicators: MSE quantifies the tracking accuracy of the output and the desired trajectory, and the smaller the value, the higher the control accuracy; IAE reflects the smoothness of the process through the cumulative error, and the smaller the value, the better the effect of overshoot inhibition; and ITAE considers the control accuracy and the convergence rate through the time-weighting mechanism at the same time, and the bigger the value, the weaker the comprehensive performance of the controller.

5. Results and Discussion

5.1. Principal Component Analysis of Particle Size Distribution

PCA was applied to the nine particle size distribution percentiles (Dv(10) to Dv(90)) to address multicollinearity and reduce dimensionality. The first two principal components, PC1 and PC2, were extracted, collectively accounting for 99.205% of the total variance in the original particle size data (PC1: 91.674%, PC2: 7.530%). PC1 exhibited high positive loadings across all percentiles, representing the overall fineness/coarseness of the powder, while PC2 showed contrasting loadings between finer (e.g., Dv(10), Dv(20)) and coarser (e.g., Dv(80), Dv(90)) fractions, capturing the breadth of the particle size distribution (Table 3). These two components were used as consolidated inputs in subsequent modeling, effectively representing the original nine-dimensional particle size data while eliminating multicollinearity.

5.2. Feature Selection Based on Spearman’s Rank Correlation

To enhance the accuracy of the predictive model, this study screened input variables such as critical material properties and process conditions based on Spearman’s rank correlation coefficient. Figure 3 presents a heatmap of Spearman’s correlation coefficients between each input variable and the target variables (FSP and MCSPo). The results indicate that PS, MT, MC, and principal component particle size (PC1 and PC2) exhibit a certain degree of correlation with the target variables (weight and hardness), with p-values all below 0.001. This demonstrates that the monotonic relationship between these variables and the target variables is not randomly generated and is statistically significant.
However, the correlation between RT and the target variables was close to zero, lacking explanatory power for the model output; thus, it was excluded. Although the correlation coefficients between moisture and filling position, as well as between PC2 and main pressing position, were relatively low, considering their critical influence on material flowability and compressibility, PS, MT, MC, PC1, and PC2 were ultimately selected as the optimal feature subset for the process parameter prediction model input.

5.3. Experiments on In-Batch Control of the Tableting Process

In view of the wide application of PID and MPC in the field of automatic control, this research constructs two sets of control architectures, PID and MPC, in parallel for the time-axis control of a single-batch growth process for comparative experiments. The rationality and effectiveness of the MPC design are verified by comparing the control effects of the two under the same Gaussian noise disturbance (mean 0, variance 0.015).
r 2 t = 1 0.02 π e x 2 0.0002 60 < t < 72
The effect of time-axis PID and MPC outputs under perturbation is shown in Figure 4a and Figure 4b, respectively. The controller structure of PID is shown in Equation (10):
u k = k p error k + k i j = 0 k error j + k d error k error k 1
In the experiment, its proportional gain k p is [5], integral gain k i is [0.1, 0.1] and differential gain k d is [0.01, 0.01].
Figure 4a and Figure 4b demonstrate that, compared to the PID strategy with Gaussian disturbance, the MPC strategy exhibits superior capability in maintaining the control errors of tablet weight (range: [−0.016, 0.16]) and hardness (range: [−15, 15]) within the target specifications. Experiments show that the MPC achieves parameter stabilization after 60 sampling points, and its anti-interference robustness is better than that of the traditional PID control, which verifies the effective advantages of the strategy for controlling tablets within a production batch.

5.4. Inter-Batch Control Experiment for Tableting Process

In feedback iterative learning control systems, the collaborative mechanism between ILC and MPC constitutes a classical methodological paradigm, with this architecture having matured through extensive application in industrial batch production processes. This study deploys an MPC in the time dimension to achieve real-time dynamic adjustment while implementing ILC in the iterative dimension as a constraint condition. ILC is responsible for real-time identification and compensation of non-repetitive disturbances during batch evolution.
Figure 5 gives the control output results of IL-MPC under the condition of changing the material batch. In the figure, the red solid line is the target setting curve, and the horizontal coordinates correspond to the time-axis sampling points during the pressing process. Figure 6 illustrates the convergence curves of performance-driven IL-MPC system parameter estimation metrics after 18 iterations. The results demonstrate that this control strategy has enabled the system parameter performance metrics to achieve a stable convergence state. In order to analyze the control effect more comprehensively, the control output curves of five different iteration batches are recorded in detail in Figure 5a and Figure 5b using tablet weight and hardness as vertical coordinates, respectively. It is evident from the figures that under the IL-MPC strategy, there are more significant fluctuations in the behavior on the time axis when the system is perturbed. However, as the number of iteration batches increases, the outputs of the system—i.e., both tablet weight and hardness—show a tendency to converge towards the target setting curve, and the fluctuations on the time axis gradually decrease as the number of iterations increases. It is only at t = 40 on the time axis and the 18th iteration of the iteration axis (shown by the purple dotted line) that the system basically reaches a steady state. This signifies that the IL-MPC strategy, after a certain number of iterations, is able to effectively suppress the influence of noise and guide the system to converge to the intended target trajectory.
The data in Table 4 show that the performance metrics continue to improve with the iterative process after the introduction of the perturbation: the MSE values for tablet weight and hardness in the 3rd iteration are approximately three times higher than those in the 7th iteration. After the system enters the steady state (18th iteration), the MSE of weight decreases to 0.5% of the 3rd iteration, and the MSE of hardness decays to 0.43%, which verifies the significant efficacy of the strategy in terms of perturbation suppression and industrial standard compliance.

5.5. IL-MPC Model Validation

We used the constructed IL-MPC model to simulate and optimize the real production data to verify the validity of the model in the real application process. For the control simulation of the tablet pressing process, the target values of tablet weight and hardness were 0.8 g and 100 N, respectively. As can be shown in Figure 7 and Figure 8, before the application of IL-MPC, the weight and hardness of tablets fluctuated greatly, and the data at some time points showed abnormal fluctuations. After the implementation of IL-MPC, the quality and stability of tablets were both significantly improved, with the weight and hardness fluctuating within a very small range of the target requirements. The fluctuations in tablet weight and hardness decreased from 1.81% and 7.01% to 0.60% and 1.83%, respectively. The application results of the above actual production data show that the IL-MPC algorithm in this paper effectively improves the product quality and consistency of the tableting process, thus realizing the autonomous steady-state regulation of the process parameters of the tableting process and enhancing the adaptability of the system.
The successful validation based on industrial data, which contains non-zero-mean drifts and batch-to-batch variations, underscores a key advantage of our framework over simulations with simple zero-mean noise (as used in the preliminary PID-MPC comparison in Section 5.3). The IL-MPC’s iterative learning mechanism is specifically designed to learn from and compensate for these systematic, real-world deviations, which are the primary source of quality variability in production.
For the physical implementation of this strategy on a modern tablet press, the proposed system would integrate with existing hardware. The critical actuators are the servo motors controlling the fill depth (FSP) and main compression position (MCSPo). The control loop relies on real-time sensor data, including: in-line weight monitors, in-line hardness testers, real-time material attribute sensors. The IL-MPC algorithm would be deployed on an Industrial PC (IPC) acting as a supervisory controller. This IPC would communicate with the tablet press’s native Programmable Logic Controller (PLC), executing the core optimization (Equations (5) and (6)) and sending optimal setpoints for FSP and MCSPo to the PLC for final actuation. This architecture ensures the strategy can be layered onto modern equipment without fundamental hardware redesigns.
However, several challenges must be acknowledged for full-scale deployment. These include the initial effort for dynamic model development, the computational burden of solving the optimization problem in real-time, and the critical dependence on sensor reliability and data integrity. Future work will therefore focus on developing adaptive model-updating techniques and robust fault-detection algorithms to enhance the system’s practical viability and long-term operational stability in a production environment.

6. Conclusions

This study proposes a novel iterative learning model predictive control framework specifically designed for quality regulation in tablet compression processes. The iterative learning model predictive control strategy successfully addresses the critical challenge of maintaining stable tablet weight and hardness under varying material properties and process conditions. Its core innovation lies in directly integrating iterative learning principles as constraints into the model predictive control optimization problem, establishing a unified framework that simultaneously handles real-time disturbances and inter-batch learning. Experimental results confirm that this framework significantly enhances product quality and process stability. While maintaining the computational efficiency required for real-time implementation, the method reduces quality variability by over 60% compared to manual control. This research provides pharmaceutical companies with an intelligent control paradigm to enhance operational efficiency and product quality consistency. Leveraging its data-driven nature, the method utilizes historical production data to support real-time decision-making, accelerating the industry’s transition toward Industry 4.0 and digital transformation. Its autonomous adaptation to process variations reduces reliance on operator intervention, making production operations more resilient. In the future, we will extend the IL-MPC framework to other critical unit operations in pharmaceutical manufacturing (such as granulation and coating processes). We will develop adaptive tuning mechanisms to optimize learning parameters, enhancing controller performance under variable operating conditions, thereby building a comprehensive smart manufacturing solution for the pharmaceutical industry.

Author Contributions

X.L.: Investigation, Conceptualization, Writing—original draft. Z.Z.: Investigation, Methodology. P.D.: Investigation, Methodology. Y.F.: Data curation, Validation, Formal analysis. P.C.: Data curation, Validation, Visualization. W.Z.: Conceptualization, Methodology, Supervision, Writing—reviewing and editing. Z.X.: Data curation, Validation, Software. T.W.: Formal analysis, Methodology. L.L.: Formal analysis, Methodology. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Ganpo Juncai Support Program (Grant No. 20232BCJ22035), Major Science and Technology Project of Jiangxi Province (Grant No. 20203ABC28W018) and National Key Research and Development Program of China (Grant No. 2023YFC3504503).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

Author Xiaorong Luo was employed by China Resources Jiangzhong Pharmaceutical Group Co., Ltd. and Jiangzhong Pharmaceutical Co., Ltd. Authors Zhijian Zhong, Pan Deng, Yicheng Fei, Pengdi Cui, Zhiqing Xiao, and Liying Li were employed by Jiangzhong Pharmaceutical Co., Ltd. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

References

  1. Li, Z.; Xiong, H.; Li, Q.; Naeem, A.; Yang, L.; Zhu, W.; Wu, Y.; Jin, Z.; Ming, L. Advancements in the application of numerical simulation during tablet compaction. Pharmaceutics 2025, 17, 220. [Google Scholar] [CrossRef] [PubMed]
  2. Schomberg, A.K.; Kwade, A.; Finke, J.H. Modeling gravity filling of dies on a rotary tablet press. Powder Technol. 2023, 413, 117998. [Google Scholar] [CrossRef]
  3. Liu, Z.; Bruwer, M.-J.; MacGregor, J.F.; Rathore, S.S.S.; Reed, D.E.; Champagne, M.J. Modeling and Optimization of a Tablet Manufacturing Line. J. Pharm. Innov. 2011, 6, 170–180. [Google Scholar] [CrossRef]
  4. Destro, F.; Barolo, M. A review on the modernization of pharmaceutical development and manufacturing—Trends, perspectives, and the role of mathematical modeling. Int. J. Pharm. 2022, 620, 121715. [Google Scholar] [CrossRef]
  5. Singh, R.; Sahay, A.; Muzzio, F.; Ierapetritou, M.; Ramachandran, R. A systematic framework for onsite design and implementation of a control system in a continuous tablet manufacturing process. Comput. Chem. Eng. 2014, 66, 186–200. [Google Scholar] [CrossRef]
  6. Jelsch, M.; Roggo, Y.; Kleinebudde, P.; Krumme, M. Model predictive control in pharmaceutical continuous manufacturing: A review from a user’s perspective. Eur. J. Pharm. Biopharm. 2021, 159, 137–142. [Google Scholar] [CrossRef]
  7. Nașcu, I.; Diangelakis, N.A.; Muñoz, S.G.; Pistikopoulos, E.N. Advanced model predictive control strategies for evaporation processes in the pharmaceutical industries. Comput. Chem. Eng. 2023, 173, 108212. [Google Scholar] [CrossRef]
  8. Nașcu, I.; Diangelakis, N.A.; Pistikopoulos, E.N. Multi-parametric Model Predictive Control Strategies for Evaporation Processes in Pharmaceutical Industries. Comput. Aided Chem. Eng. 2022, 51, 1159–1164. [Google Scholar]
  9. Vega-Zambrano, C.; Diangelakis, N.A.; Charitopoulos, V.M. Data-driven model predictive control for continuous pharmaceutical manufacturing. Int. J. Pharm. 2025, 672, 125322. [Google Scholar] [CrossRef]
  10. Mesbah, A.; Paulson, J.A.; Lakerveld, R.; Braatz, R.D. Plant-wide model predictive control for a continuous pharmaceutical process. In Proceedings of the American Control Conference Chicago, Chicago, IL, USA, 1–3 July 2015. [Google Scholar]
  11. Talavera, A.G.; Tupac, Y.J.; Vellasco, M.M.B.R. Controlling oil production in smart wells by MPC strategy with reinforcement learning. In Proceedings of the SPE Latin America and Caribbean Petroleum Engineering Conference, Lima, Peru, 1–3 December 2010. [Google Scholar]
  12. Willersrud, A.; Imsland, L.; Hauger, S.O.; Kittilsen, P. Short-term production optimization of offshore oil and gas production using nonlinear model predictive control. J. Process Control 2011, 44, 10851–10856. [Google Scholar] [CrossRef]
  13. Rehrl, J.; Kruisz, J.; Sacher, S.; Khinast, J.; Horn, M. Optimized continuous pharmaceutical manufacturing via model-predictive control. Int. J. Pharm. 2016, 510, 100–115. [Google Scholar] [CrossRef] [PubMed]
  14. Celikovic, S.; Kirchengast, M.; Rehrl, J.; Kruisz, J.; Sacher, S.; Khinast, J.; Horn, M. Model predictive control for continuous pharmaceutical feeding blending units. Chem. Eng. Res. Des. 2020, 154, 101–114. [Google Scholar] [CrossRef]
  15. Haas, N.T.; Ierapetritou, M.; Singh, R. Advanced Model Predictive Feedforward/Feedback Control of a Tablet Press. J. Pharm. Innov. 2017, 12, 110–123. [Google Scholar] [CrossRef]
  16. Natarajan, S.; Lee, J.H. Repetitive model predictive control applied to a simulated moving bed chromatography system. Comput. Chem. Eng. 2000, 24, 1127–1133. [Google Scholar] [CrossRef]
  17. Wang, Y.; Yang, Y.; Zhao, Z. Robust stability analysis for an enhanced ILC-based PI controller. J. Process Control 2013, 23, 201–214. [Google Scholar] [CrossRef]
  18. Liu, T.; Wang, X.Z.; Chen, J. Robust PID based indirect-type iterative learning control for batch processes with time-varying uncertainties. J. Process Control 2014, 24, 95–106. [Google Scholar] [CrossRef]
  19. Sanzida, N.; Nagy, Z.K. Iterative learning control for the systematic design of supersaturation controlled batch cooling crystallisation processes. Comput. Chem. Eng. 2013, 59, 111–121. [Google Scholar] [CrossRef]
  20. Xiong, Z.; Zhang, J.; Wang, X.; Xu, Y. Tracking control for batch processes through integrating batch-to-batch iterative learning control and within-batch on-line control. Ind. Eng. Chem. Res. 2005, 44, 3983–3992. [Google Scholar] [CrossRef]
  21. Xiong, Z.H.; Zhang, J.; Wang, X.; Xu, Y.M. Integrated tracking control strategy for batch processes using a batch-wise linear time-varying perturbation model. IET Control Theory Appl. 2007, 1, 178–188. [Google Scholar] [CrossRef]
  22. Wan, Y.; Liu, D.; Ren, J.C. Iterative Learning-Based Predictive Control Method for Electronic Grade Silicon Single Crystal Batch Process. IEEE Trans. Semicond. Manuf. 2023, 36, 677–693. [Google Scholar] [CrossRef]
  23. Meindl, M.; Bachhuber, S.; Seel, T. Iterative Model Learning and Dual Iterative Learning Control: A Unified Framework for Data-Driven Iterative Learning Control. TechRxiv 2025, 1–10. [Google Scholar] [CrossRef]
  24. Karime, P.; Angela, P.S. Adaptive model predictive control for high-accuracy trajectory tracking in changing conditions. In Proceedings of the IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), Madrid, Spain, 1–5 October 2018; pp. 7831–7837. [Google Scholar]
  25. Honti, B.; Farkas, A.; Nagy, Z.K.; Pataki, H.; Nagy, B. Explainable deep recurrent neural networks for the batch analysis of a pharmaceutical tableting process in the spirit of Pharma 4.0. Int. J. Pharm. 2024, 662, 124509. [Google Scholar] [CrossRef] [PubMed]
  26. Cui, P.; Yu, Y.; Zhao, J.; Miao, P.; Xue, Q.; Liu, C.; Li, Z. Hyperspectral imaging combined with artificial intelligence techniques to explore the drying behavior of natural Lonicerae Japonicae Flos extracts. Measurement 2023, 218, 113246. [Google Scholar] [CrossRef]
  27. Eden, S.; Li, C.; Shepherd, B. Nonparametric estimation of Spearman’s rank correlation with bivariate survival data. Biometrics 2022, 78, 421–434. [Google Scholar] [CrossRef] [PubMed]
Figure 1. IL-MPC framework. The ILC mechanism is embedded as a constraint within the MPC optimization problem. At each sampling instant of batch k, the optimizer calculates the control adjustments (∆uk) that minimize the future tracking error while respecting the constraint derived from the previous batch’s performance (uk−1 and ek−1). The resulting control action (uk) is then applied to the tableting process, and the data is stored for learning in the next batch. This integrated approach enables simultaneous real-time disturbance rejection and batch-to-batch learning. The material properties include: MC, MT, Dv(10), Dv(20), Dv(30), Dv(40), Dv(50), Dv(60), Dv(70), Dv(80), Dv(90); and the process parameters include: FSP, MCSPo, PS, RT.
Figure 1. IL-MPC framework. The ILC mechanism is embedded as a constraint within the MPC optimization problem. At each sampling instant of batch k, the optimizer calculates the control adjustments (∆uk) that minimize the future tracking error while respecting the constraint derived from the previous batch’s performance (uk−1 and ek−1). The resulting control action (uk) is then applied to the tableting process, and the data is stored for learning in the next batch. This integrated approach enables simultaneous real-time disturbance rejection and batch-to-batch learning. The material properties include: MC, MT, Dv(10), Dv(20), Dv(30), Dv(40), Dv(50), Dv(60), Dv(70), Dv(80), Dv(90); and the process parameters include: FSP, MCSPo, PS, RT.
Pharmaceutics 17 01510 g001
Figure 2. Closed-loop online control system for tableting.
Figure 2. Closed-loop online control system for tableting.
Pharmaceutics 17 01510 g002
Figure 3. Spearman Correlation Coefficient Heatmap. *** p ≤ 0.001.
Figure 3. Spearman Correlation Coefficient Heatmap. *** p ≤ 0.001.
Pharmaceutics 17 01510 g003
Figure 4. Comparison of the effect of PID and MPC on in-batch control (k denotes the serial number of the sampling point).
Figure 4. Comparison of the effect of PID and MPC on in-batch control (k denotes the serial number of the sampling point).
Pharmaceutics 17 01510 g004
Figure 5. Control effect of IL-MPC under different batch conditions.
Figure 5. Control effect of IL-MPC under different batch conditions.
Pharmaceutics 17 01510 g005
Figure 6. System parameter estimation performance index convergence curve.
Figure 6. System parameter estimation performance index convergence curve.
Pharmaceutics 17 01510 g006
Figure 7. Effect of tablet weight control after applying IL-MPC (The blue line is the actual tablet weight curve, and the red line is the control limit for superior grade products.).
Figure 7. Effect of tablet weight control after applying IL-MPC (The blue line is the actual tablet weight curve, and the red line is the control limit for superior grade products.).
Pharmaceutics 17 01510 g007
Figure 8. Control effect of tablet hardness after applying IL-MPC (The blue line is the actual tablet hardness curve, and the red line is the control limit for superior grade products.).
Figure 8. Control effect of tablet hardness after applying IL-MPC (The blue line is the actual tablet hardness curve, and the red line is the control limit for superior grade products.).
Pharmaceutics 17 01510 g008
Table 1. Descriptive statistics of process parameters and critical quality attributes.
Table 1. Descriptive statistics of process parameters and critical quality attributes.
ParameterMinMedianMaxUnitAbbreviation
Moisture Content2.002.594.54%MC
Material Temperature16.9529.8463.95°CMT
Dv(10)0.008710.070023.0399μmDv(10)
Dv(20)10.470226.419242.1990μmDv(20)
Dv(30)17.403638.201660.4698μmDv(30)
Dv(40)27.227749.237976.7750μmDv(40)
Dv(50)38.160259.675394.6714μmDv(50)
Dv(60)53.455372.3098114.6689μmDv(60)
Dv(70)63.700388.4150147.3606μmDv(70)
Dv(80)92.0202120.4006189.5668μmDv(80)
Dv(90)111.1426153.1794258.8265μmDv(90)
Filling set position5.205.926.95mmFSP
Main compression set Position5.475.936.56mmMCSPo
Production speed14.9618.0119.0310000 tablets/hPS
Rail Temperature2.54034.215194.610°CRT
Average tablet weight0.7780.8020.823gATW
Average tablet hardness80.0978107.376119.974NATH
Table 2. Control performance evaluation index.
Table 2. Control performance evaluation index.
Evaluation IndicatorsFormula
MSE M S E = 1 N n i = 1 ( y ( i ) y ^ ( i ) ) 2
IAE I A E = i = 1 N y d ( i ) y ( i )
ITAE I T A E = i = 1 N y d ( i ) y ( i ) × i
Table 3. Principal component loadings matrix.
Table 3. Principal component loadings matrix.
Particle SizePC1PC2
Dv(10)0.2520.385
Dv(20)0.2610.321
Dv(30)0.2490.156
Dv(40)0.2650.082
Dv(50)0.2580.023
Dv(60)0.263−0.057
Dv(70)0.255−0.183
Dv(80)0.246−0.316
Dv(90)0.269−0.405
Table 4. Evaluation indexes of IL-MPC under different batch conditions.
Table 4. Evaluation indexes of IL-MPC under different batch conditions.
Iterations3rd Iteration7th Iteration10th Iteration15th Iteration18th Iteration
MSEWeight (g2)6.55698 × 10−41.4287 × 10−48.0393 × 10−52.2121 × 10−53.2448 × 10−6
Hardness (N2)1.4331 × 103508.188359.016713.18556.1626
IAEWeight (g)3.01051.38261.02110.50070.1593
Hardness (N)4.4397 × 1032.6338 × 103850.7811373.9173184.2277
ITAEWeight (g∙s)170.186875.818153.662123.61576.1641
Hardness (N∙s)2.8363 × 1051.6811 × 1055.3681 × 1042.2641 × 1046.7289 × 103
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Luo, X.; Zhong, Z.; Deng, P.; Fei, Y.; Cui, P.; Zhu, W.; Xiao, Z.; Wang, T.; Li, L. Adaptive Closed-Loop Control System for the Optimization of Tablet Manufacturing Processes. Pharmaceutics 2025, 17, 1510. https://doi.org/10.3390/pharmaceutics17121510

AMA Style

Luo X, Zhong Z, Deng P, Fei Y, Cui P, Zhu W, Xiao Z, Wang T, Li L. Adaptive Closed-Loop Control System for the Optimization of Tablet Manufacturing Processes. Pharmaceutics. 2025; 17(12):1510. https://doi.org/10.3390/pharmaceutics17121510

Chicago/Turabian Style

Luo, Xiaorong, Zhijian Zhong, Pan Deng, Yicheng Fei, Pengdi Cui, Weifeng Zhu, Zhiqiang Xiao, Ting Wang, and Liying Li. 2025. "Adaptive Closed-Loop Control System for the Optimization of Tablet Manufacturing Processes" Pharmaceutics 17, no. 12: 1510. https://doi.org/10.3390/pharmaceutics17121510

APA Style

Luo, X., Zhong, Z., Deng, P., Fei, Y., Cui, P., Zhu, W., Xiao, Z., Wang, T., & Li, L. (2025). Adaptive Closed-Loop Control System for the Optimization of Tablet Manufacturing Processes. Pharmaceutics, 17(12), 1510. https://doi.org/10.3390/pharmaceutics17121510

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop