Project Management
November 19, 2026
Optimization of sequencing in cell and gene therapies: an architecture of predictive and deterministic models
Fausto Regis de Oliveira Motter; Johnny Victor Matos Abjaud
DOI: 10.22167/2675-6528-202603863
Article derived from a Final Course Work (TCC), with content based on the student’s original work and adapted to the editorial format of the E&S Magazine with the support of the ResumeAI tool, an artificial intelligence solution developed by Instituto Pecege for textual synthesis and organization.
Summary
The challenge of production planning and sequencing in autologous cell and gene therapies, with an emphasis on the vein-to-vein cycle of CAR-T therapies, was analyzed. The study aimed to evaluate whether a hybrid architecture, composed of a Machine Learning predictive engine and a deterministic optimization engine, could improve planning robustness in the face of biological variability and GxP environment compliance constraints. To this end, an exploratory literature review guided by PRISMA 2020, validation of the main technical references, and a computational simulation with synthetic data were used. In the simulation, a Random Forest estimated processing times from synthetic biomarkers, and a deterministic model, equivalent to a MILP formulation, solved the batch sequencing on parallel resources with cleaning/setup time. The results indicated that the hybrid policy reduced the weighted average delay penalty to 18.67 penalty points, compared to 21.84 in static MILP and 75.25 in FIFO. It was concluded that the hybrid architecture contributed to optimizing production sequencing, showing favorable performance in extreme scenarios. The findings were interpreted as conceptual validation, not as clinical or industrial proof, due to the use of synthetic data and the influence of factors such as plant layout and real demand flow. The main contribution was to indicate, in a simulated and conceptual way, that the use of predictive estimates improves decision-making compared to deterministic models.
Keywords: CAR-T; Artificial Intelligence; Production Planning; Pharma 4.0; Gene Therapy.
1. Introduction
The pharmaceutical industry operates in a peculiar economic juncture, characterized by intensive investments in research and development, essential for the innovation and sustainability of the ecosystem. However, the advent of generic drugs and patent expiration, regulated by legislation such as the Hatch-Waxman Act of 1984 in the United States and the Generic Drugs Law (Law No. 9.787) of 1999 in Brazil, impose a validity period for the return on these investments. In this scenario, many R&D resources have migrated from “pills” and “copyable” drugs to gene therapies, which, besides presenting greater effectiveness, have an extremely complex production cycle.
The 2017 regulatory and technological milestone, with the FDA’s approval of tisagenlecleucel (Kymriah) for the treatment of refractory acute lymphoblastic leukemia, consolidated the commercial viability of personalized CAR-T therapies. From this point on, manufacturing operations began to adopt a pull production model, driven by specific patient orders. This model is characterized by high cost, low error tolerance, and a rigorous demand for end-to-end traceability.
Gene therapies, the focus of this work, operate in a closed cycle called Vein to Vein (V2V), which begins with apheresis collection. Subsequently, the patient’s leukocytes are extracted in certified hospital centers, and the biological material undergoes treatments and preparations that result in “fresh” or “cryopreserved” components. In the laboratory environment, cell engineering occurs, where cells are modified and multiplied until they reach therapeutic doses. After the production process, exhaustive quality tests are performed, with the product being approved or rejected, with the possibility of reprocessing.
This cycle concludes with the reinfusion of the finished product within absolutely critical clinical time windows. From initial collection to infusion, the biological material may cross different continents, representing a significant challenge not only for production but also for the logistics network, which sometimes requires product delivery anywhere in the world within 36 hours of quality release. This entire scenario of variability introduces immense stochastic uncertainty, linked to both the patient’s critical health status and the complexity of biological processing and logistical readiness.
Traditionally, planning tools operate with deterministic models, which prove insufficient to capture the full dynamics of planning, prioritization needs, and real-time sequencing changes. In this context of transformation, the application of predictive Artificial Intelligence techniques has consolidated itself as a strategic vector for modernizing production sequencing. However, these complex models face the “black box” challenge, where the difficulty in mathematically explaining the algorithm’s decision prevents its regulatory validation. For computerized systems under ANVISA (RDC 658/2022), FDA, and EMA regulations, it is imperative that the decision-making process be traceable and predictable.
The need for robust planning in the face of biological variability and the compliance constraints typical of GxP environments justifies the search for innovative approaches. The development of this work aligns with the Pharma 4.0 paradigm, which proposes flexibility, collaboration, optimization, and real-time visualization of operations, seeking to overcome the limitations of conventional planning algorithms in the face of biological and market stochasticity. Thus, the objective is to evaluate whether a hybrid architecture, composed of a predictive Machine Learning engine and a deterministic optimization engine, can improve planning robustness in the face of biological variability and compliance constraints typical of GxP environments.
2. Material and Methods
The present study was characterized by a mixed methodological approach, combining an exploratory literature review and a computational simulation. The research sought to evaluate the robustness of planning in scenarios of high biological variability and GxP compliance constraints, through a hybrid architecture of models. This architecture was designed to integrate predictive Machine Learning capabilities with deterministic optimization, aligning with the Pharma 4.0 paradigm for production sequencing in autologous cell and gene therapies.
The exploratory literature review was conducted following the principles of PRISMA 2020 (Page et al., 2021). Initially, 345 documents were identified in the SCOPUS, WEB of SCIENCE, and IEEE Xplore databases. The search strings used were formulated to integrate clinical contexts, engineering challenges, and technological approaches related to the topic. This procedure aimed to map the state of the art and the existing gaps in the planning of advanced therapies.
In the screening and selection stage, the Gemini Pro tool was employed to support the preliminary extraction of metadata and the identification of studies with a clinical focus. The results generated by the tool were subsequently reviewed manually to mitigate risks of incorrect classification and inclusion of unverifiable references. Generative artificial intelligence was used as an auxiliary resource, without replacing researcher judgment. After the eligibility assessment, 42 articles were analyzed in full, resulting in the final selection of 12 works that presented quantitative models pertinent to the vein-to-vein cycle.
The hybrid architecture was proposed with the objective of isolating and treating distinct problems with adequate methods, addressing biological uncertainties and operational decisions. The model was designed in two main modules: a predictive Machine Learning engine and a deterministic optimization engine. This conception sought compatibility with good practices for computerized systems in GxP environments, according to the GAMP 5 Guide (ISPE, 2022), which emphasizes the transparency and auditability of decision-making processes.
The first module, the predictive engine, used a Random Forest-based technique to estimate batch processing times. This estimation was performed using variables associated with the production process, represented by synthetic biomarkers. The application of Machine Learning in CAR-T therapy manufacturing is supported by studies that discuss computational approaches for predictive quality and automation processes (Odeh-Couvertier et al., 2022; Bäckel et al., 2023).
The second module, the decision engine, employed a Mixed-Integer Linear Programming (MILP) model to solve the sequencing of batches on parallel resources. This model considered operational constraints, such as mandatory cleaning and setup times between operations, essential in biological processes to avoid cross-contamination. The MILP objective function was defined to minimize the weighted lateness penalty, where the lateness of each batch was weighted by a patient’s clinical criticality factor.
The computational simulation was conducted with 1000 iterations, using 6 batches of patients per scenario and 2 parallel resources, with a cleanup/setup time of 0.5 days. The data used in the simulation were exclusively synthetic, generated through Python code, with the aid of accelerators based on Open AI Codex. This approach aimed at a conceptual validation of the proposed architecture, allowing for performance analysis in a controlled and replicable environment, without the need for real manufacturing data.
For the simulation, synthetic biomarker data were generated to estimate processing times. Patient clinical criticality weights were assigned on a scale of 1 to 5, and clinical infusion windows were synthetically defined. The accuracy of the Random Forest model in estimating processing time was evaluated by metrics such as Mean Absolute Error (MAE), Root Mean Squared Error (RMSE), and the coefficient of determination (R²).
Regarding ethical considerations, the institution’s Ethical Considerations Form (ECF) was used. This form confirmed the waiver of submission to the Research Ethics Committee (CEP), as the study was based exclusively on the analysis of secondary literature data and synthetic data, not involving human or animal subjects directly.
3. Results and Discussion
The computational simulation developed in this study covered the central stage of the Vein to Vein macroprocess, focusing on laboratory manufacturing and logistical planning for reinfusion. This methodological choice allowed the process to be segmented into two distinct algorithmic behaviors, optimizing the analysis of the complexity inherent in CAR-T therapies. In the manufacturing of the finished product, the cell expansion time, along with biomarkers from the patient donating the apheresis, constituted the prediction variable, while the physical allocation of batches in the bioreactors and the operational sequencing represented the challenge to be solved. The integration of these elements allowed the algorithm to propose the final reinfusion date of the medication, addressing stochastic uncertainty and regulatory constraints.
For the first stage, which involved the estimation of cell expansion time, the simulation employed a predictive model inspired by supervised learning approaches, as demonstrated in studies applied to manufacturing. Previous research, such as that by Odeh-Couvertier et al. (2022), highlights the potential of artificial intelligence-based platforms to predict T-cell quality attributes from initial process measurements. Similarly, Bäckel et al. (2023) discuss the relevance of artificial intelligence in automated manufacturing, corroborating the choice of a predictive engine for this phase of planning.
The second stage of the hybrid architecture used a Mixed Integer Linear Programming (MILP) model, whose main advantage lies in the possibility of auditing from the perspective of GxP compliance. This aspect is crucial for regulated environments, as it allows for adherence to traceability guidelines for decision variables and the use of linear equations, facilitating validation before regulatory bodies such as ANVISA and FDA. The logic of the MILP model ensures that the decision-making process is transparent and explainable, overcoming the “black box” challenge often associated with purely predictive artificial intelligence models.
The central metric used to evaluate simulation performance was the weighted total delay penalty, designated as Z. This metric was defined to quantify the impact of delays on scheduling, assigning greater weight to patients or batches with higher clinical criticality. The mathematical formulation of Z is the sum of the products of the patient’s clinical criticality weight (wj) by the tardiness relative to the clinical infusion window (Tj) for each batch j, considering N as the total number of batches in processing. This approach recognizes that not all delays have the same clinical impact, allowing for more effective prioritization.
The proposed hybrid architecture sought to reconcile the uncertainty inherent in stochastic biological processes with the regulatory rigidity of deterministic processes. The model operates with a logical flow where optimization is a function of MILP, which receives as input the predictions from Random Forest based on biomarkers and the Good Manufacturing Practices (GMP) restrictions. This integration allows the predictive engine to act as a “virtual sensor”, providing estimated processing times that are then injected into the deterministic engine for sequencing calculation, considering the operational restrictions of the GMP environment.
The predictive engine, based on Random Forest (RF) for regression, estimates the processing time (pj) for each patient batch j, using the average of predictions from multiple decision trees. This approach minimizes the individual error of each model and protects the system against atypical variations in cell growth, a critical factor in cell and gene therapies. The individual prediction of each tree (hk(xj)) is based on the feature vector xj, and K represents the number of independent decision trees created in the forest, according to the simplified representation pj = (1/K) * Σk=1K hk(Xj).
The decision engine, Mixed Integer Linear Programming (MILP), had its objective function defined as the minimization of the weighted delay penalty (Min Z = Σj=1N (wj * Tj)). Here, Z represents the total penalty value to be minimized, which can be interpreted as an operational or clinical cost. The clinical weight (wj) is a criticality factor ranging from one to five, indicating treatment urgency, while Tj corresponds to the effective delay relative to the planned infusion window. This formulation allows the system to prioritize patients with higher criticality, aligning sequencing with clinical needs.
The sequencing and cleaning restrictions (GMP) were incorporated into the MILP model to reflect the complexity of biological therapy production. The process requires extensive setup and decontamination time between batches to prevent cross-contamination, which is a critical requirement in GxP environments. The precedence constraint, simplified for simulation purposes, ensures that batch allocation considers not only equipment selection but also the processing order on each resource, ensuring that each reactor runs only one batch at a time with proper cleaning intervals.
The simulation was conducted with one thousand iterations, involving six batches of patients per scenario and two parallel resources, with a cleanup and setup time of 0.5 days. It is crucial to emphasize that the data used were synthetic, which implies that the results should be interpreted as a conceptual validation, and not as definitive clinical or industrial proofs. The Random Forest model, trained with this synthetic data, demonstrated a mean absolute error (MAE) of approximately 1.04 days in estimating processing time, a root mean squared error (RMSE) of 1.36 days, and an out-of-sample R² of 0.59.
These metrics indicate that the Random Forest captured a relevant part of the relationship between synthetic biomarkers and processing time, although about 41% of the variability was not explained by the current simulation. For a conceptual simulation of cellular manufacturing, this accuracy was considered reasonable, especially when considering the natural variability inherent in biological processes. Conceptual validation is an important step for future applications with real data, which will allow refining the predictive capacity of the model.
The analysis of the weighted average delay penalty (Z) revealed a superior performance of the hybrid architecture compared to traditional sequencing policies. The FIFO (First-In, First-Out) policy resulted in an average penalty of 75.25 points. The static MILP model, which does not incorporate Machine Learning predictions, presented an average penalty of 21.84 points. In contrast, the hybrid policy, which integrates Random Forest with MILP, significantly reduced this penalty to 18.67 points, demonstrating its effectiveness in optimizing production sequencing in variability scenarios.
The distribution of the weighted penalty (Z) in the Monte Carlo simulation also evidenced the robustness of the hybrid architecture. It was observed that, while the FIFO policy exhibited a wide distribution with high extreme values, the static MILP and, mainly, the hybrid model presented more concentrated distributions with lower penalty values. This characteristic is crucial, as it indicates that the hybrid architecture not only reduces the average penalty but also provides greater consistency and predictability in planning, minimizing the occurrence of significant delays.
The assessment of tail risk, which represents the system’s exposure to low-frequency, high-impact extreme events, was a critical point of the analysis. CAR-T therapies are often authorized for patients in severe clinical condition, in cases of relapse, or as a third treatment option, making the mitigation of extreme delays vital. The simulation demonstrated that the hybrid policy substantially reduced the P95 (95th percentile) and the observed maximum values of the weighted penalty (Z) compared to the other policies, indicating greater protection against critical delays.
Additionally, the analysis of critical scenarios, defined as those with a penalty Z equal to or greater than the P90 of the FIFO policy, reinforced the superiority of the hybrid approach. While the FIFO policy resulted in one hundred critical scenarios, the static MILP reduced this number to only two. The hybrid architecture, in turn, managed to decrease it further, registering only one critical scenario. These findings suggest that the incorporation of predictive estimates improves the operationalization of sequencing, offering favorable performance even under extreme conditions and contributing to increasing the chances of timely treatment for patients.
The results obtained, although based on synthetic data and arbitrary operation and criticality weighting times, offer a promising conceptual validation. They indicate that the use of predictive estimates in processing improves decision-making compared to purely deterministic models or static policies. However, confirmation of these findings will require the application of the model with real data on manufacturing, demand, production layout, setup times, and clinical windows, as well as validation governance compatible with GxP environments, to transpose the results to the clinical and industrial context.
In summary, the research demonstrated that the hybrid architecture, which integrates a predictive engine based on Random Forest and a decision engine based on Mixed Integer Linear Programming, contributes significantly to optimizing the production sequencing in cell and gene therapies. The simulation results indicated a significant reduction in the weighted average delay penalty and in the occurrence of critical scenarios, conceptually validating the model’s ability to improve planning robustness in the face of biological variability and compliance constraints, thus responding to the study’s central objective.
4. Conclusion
This study sought to evaluate whether a hybrid architecture, integrating a Machine Learning predictive engine and a deterministic optimization engine, could enhance planning robustness against biological variability and compliance constraints in GxP environments, specifically in the production sequencing of autologous cell and gene therapies. It was found that the hybrid policy, by combining processing time estimation by Random Forest with optimization via Mixed Integer Linear Programming (MILP), significantly reduced the weighted average delay penalty to 18.67 points, compared to 21.84 points for static MILP and 75.25 points for the FIFO policy. It was also observed that this hybrid approach demonstrated favorable performance in extreme scenarios, mitigating the risk of critical delays and increasing planning predictability. The main contribution of this work lies in the conceptual validation that incorporating predictive estimates improves decision-making in production sequencing, facilitating traceability and documentation of business processes, crucial aspects for industry regulation.
However, it is essential to recognize that the findings were obtained through computational simulation with synthetic data, which qualifies them as conceptual validation and not as definitive clinical or industrial proofs. Factors such as the production plant layout, real demand flow, operation times, and arbitrary criticality weighting may influence manufacturing processes and were not fully considered. For future studies, it is suggested to apply the model with real manufacturing data, demand, production layout, setup times, and clinical windows, in addition to a validation governance compatible with GxP environments. Additionally, it is recommended to explore the use of multi-objective data, which consider operational costs, idle equipment costs, and clinical window loss, as well as to investigate the creation of federated algorithms among multiple industries and treatment centers.
Bibliographic References
ANVISA. (2022). Resolução da Diretoria Colegiada – RDC n° 658, de 30 de março de 2022. Dispõe sobre as Diretrizes Gerais de Boas Práticas de Fabricação de Medicamentos. Brasília, DF: ANVISA.
BÄCKEL, Niklas B. et al. (2023). Elaborating the potential of Artificial Intelligence in automated CAR-T cell manufacturing. Frontiers in Molecular Medicine, v. 3. DOI: 10.3389/fmmed.2023.1250508.
ISPE. (2022). GAMP 5: A Risk-Based Approach to Compliant GxP Computerized Systems. International Society for Pharmaceutical Engineering. 2. ed. North Bethesda: ISPE.
ODEH-COUVERTIER, Valerie Y. et al. (2022). Predicting T-cell quality during manufacturing through an artificial intelligence-based integrative multiomics analytical platform. Bioengineering & Translational Medicine, v. 7, n. 2, e10282. DOI: 10.1002/btm2.10282.
PAGE, Matthew J. et al. (2021). The PRISMA 2020 statement: an updated guideline for reporting systematic reviews. BMJ, London, v. 372, n. 71. DOI: 10.1136/bmj.n71.
Article originating from the Final Course Work of the Specialization in Project Management of the MBA USP/Esalq
To learn more about the course, click here and access the MBX Academy platform