Towards Autonomous Crystallization Systems through Advanced Process Modelling and Optimization
Author:
Abstract:
Crystallization is the process by which a compound transforms from a fluid, dissolved state, or amorphous solid into an ordered, crystalline structure. Owing to its capacity to reject impurities, it is a critical unit operation in the production of small-molecule active pharmaceutical ingredients, directly influencing particle size and shape distribution, polymorphism, and product purity. It also strongly affects downstream steps such as washing, drying, and tableting, impacting both cost and processability. Despite its importance, crystallization research and development (R&D) faces persistent challenges, including high experimental demands, limited model fidelity, diverse chemical landscapes, and the complexity of incorporating both off-line and process analytical technology data within tight development timelines. In response to the growing industry, societal, and regulatory pressure for faster, quality-assured development, the integration of (semi-)mechanistic modeling, process optimization, and experimental design has emerged as a strategic necessity to complement classical data collection and heuristic-based methods. This thesis addresses these challenges by advancing approaches that leverage population balance modelling, machine learning, and optimal experimental design, with a strong emphasis on adaptability to new projects and applicability in data-rich, time-constrained industrial environments. A central theme in this work is improving solubility modelling, which underpins all subsequent crystallization modelling efforts. Traditional parametric solubility regressions often struggle to capture the complex thermodynamic behaviours of non-ideal solvent mixtures or compounds with notable heat capacity effects. In this direction, a hybrid approach was developed that combines parametric models with machine learning via a heterogeneous weighted bagging ensemble, which is then applied to ketoconazole crystallization in 2-propanol/water. Results indicate the optimal ensemble comprises of 58% stepwise VH-JA models and 42% machine learning models, reduced the training root-mean-squared error and maximum absolute percentage error by ≈30% compared to a single complete VH-JA model, while preserving a comparable prediction interval. Building on the solubility models, this thesis examines crystal growth kinetics with a focus on process-dependent phenomena like thermodynamic supersaturation and growth regime transitions. A case study with an industrial API reveals the coexistence of spiral growth and birth-and-spread mechanisms at varying supersaturation levels. This insight is better explained using activity-based supersaturation, which accounts for system non-idealities. The study also shows how simplified expressions can distort kinetic data interpretations, underscoring the need for adequate reporting rigor. The complexity of crystallization kinetics demands tailored data acquisition and calibration strategies. This is illustrated in the study of ketoconazole crystallization in 2-propanol/water, where agglomeration proved highly sensitive to seed quality and process conditions. Additionally, analysis using multiple techniques revealed that increasingly complex temperature profiles call for equally rigorous and detailed calibrations. In parallel, the thesis implements Optimal Experimental Design (OED) techniques for accelerating knowledge generation while reducing experimental burden. A series of case studies using several APIs and food-related products demonstrate how A-, D-, and most importantly I-optimal designs can strategically augment solubility and crystallization datasets under realistic physical and budgetary constraints. The OED strategy was also extended to non-standard design spaces using Monte Carlo integration, broadening its applicability to more convoluted process constraints. For dynamic optimization and model identification via OED, a High-Resolution Finite Volume Method with adaptive time stepping was implemented to solve population balances. Using single shooting and piecewise-linear control trajectories, this approach enables the identification of optimal temperature and solvent dosing profiles, moving past empirically derived, time consuming, and suboptimal crystallization recipes. Together, these contributions build a flexible, data-efficient, and accurate crystallization modelling and optimization framework. These findings are not only relevant for small-molecule APIs but also have implications for broader chemical and food crystallization systems. The approaches developed here are part of digitalization efforts within the context of Industry 4.0, enabling faster, smarter, and more reliable R&D across the life sciences sector.