arXiv:2609.04011cs.CESep 2026

Manuscript Offprint

arXiv:2609.04011

Differentiable Hybrid Modelling for Learning and Optimising Chemical Transport Processes from Experimental Data

Arthur Jessop, Mohammed Alsubeihi, Ben Moseley, Ashwin Kumar Rajagopalan

Abstract

Reliable transport models are essential when modelling and optimising many chemical engineering processes, yet, most models assume hand-picked constitutive laws which may not reflect reality, and often assume initial conditions are known exactly. Both restrictions can significantly bias model predictions and lead to systematic error when used in predictive and control settings. Black-box neural surrogate alternatives for modelling can better match real example data, but are confined to the task they were trained on and cannot be interrogated for physical consistency. Here we introduce a general-purpose differentiable hybrid modelling framework for transport processes, specifically for the case of population balance equations. Our framework integrates a JAX finite volume population balance solver with learnable neural network components which are trained to both discover constitutive laws and fit initial conditions from real experimental data, allowing us to better model real experimental transport systems. Furthermore, we use our framework for process optimisation, using its differentiability to allow us to direct optimising experimental settings for quantities of interest. This work highlights the huge potential of such differentiable hybrid modelling frameworks for learning and optimising any given chemical separation which involves mass, energy, and/or momentum transport.

Keywords: Differentiable physics, Hybrid modelling, Population balance equations, Data assimilation

1 Introduction

Transport equations are the mathematical foundation for modelling dynamic systems across chemical engineering. They describe how mass, heat, and energy are transported within complex systems. Their applications are broad, ranging from predicting the rheology of consumer products [1], to quantifying adsorption processes for carbon capture [2], analysing population balances in pharmaceutical and agrochemical processes [3], and guiding the design of fluidized beds [4], bioreactors [5], and heat exchangers [6]. With suitably constructed process models built on these governing equations, engineers can explore design spaces, predict, optimise and troubleshoot process outcomes, and implement model predictive control. Consequently, the ability to construct expressive and accurate models is a key enabler for the digital and autonomous manufacturing goals of Industry 4.0 and 5.0 [7].

Transport equations themselves express the conservation of mass, heat, and momentum. To model specific systems, constitutive laws and equations must be fit within these transport equations to capture system dynamics. Traditionally these equations are hand-picked by experts and fitted via trial-and-error for every new problem. However, selecting a fixed functional form inherently limits the model to a physical interpretation that may not capture the true underlying phenomena. Even if a proposed equation fits the available data, there is no guarantee it correctly describes the physics. A second assumption that is often made and rarely stated is that the initial conditions from which the laws are learned are exactly known. For dynamical systems where one tracks a quantity of interest over time, solutions can be very sensitive to initial conditions [8]. In practice these are experimentally measured and therefore subject to noise or inherent measurement device limitations but often treated as ground truth. Together these force trial-and-error workflows in both model development and in the experimental conditions that these models are fitted to, limiting experimental efficiency and slowing model development.

While these issues affect all transport equations, this work focuses on population balance equations (PBEs) [3, 9]. These are number balance equations frequently applied to crystallisation, a unit operation common in the pharmaceutical, agrochemical, and fine chemicals industries to manufacture solid-form products [3]. Formulated as partial differential equations (PDEs), they track the number of particles of a given size and shape to model how the overall particle size and shape distribution (PSSD) evolves over time. We take crystallization as our demonstration system as the issues raised so far are acutely relevant. Process kinetics are unknown and system-specific [10], meaning a model must be built for every new system. Most commercial monitoring tools also reduce particle shapes down to a single dimension, where a multidimensional approach would be more descriptive and facilitate the recovery of multidimensional laws [11]. Additionally, a recent comparative study has shown that many of the most popular tools frequently disagree with one another and ground-truth measurements [12]. Ultimately, if measured data does not contain enough information to describe the behaviour we are trying to learn, no amount of model sophistication will be able to capture it [13]. This means that models for these systems are both hard to formulate, and often limited due to the measurement techniques available.

An alternative to mechanistic approaches is to use completely 'black box' methods, such as neural networks (NNs), which offer high flexibility, but lack physical intuition and constraints. These models can violate physical laws and be neither interpretable nor explainable, both of which are essential in highly regulated industries [14], such as pharmaceuticals. A more basic limitation of these methods is that their task is often limited to the one proposed in training. Recent approaches in crystallisation have focused on training black-box or surrogate models [15–18], which show promise for their specific tasks but cannot estimate quantities that were not inputs during training, or immediately extend to different types of simulation or systems. Physics-informed approaches [19, 20] which instead guide training with physical knowledge and equations have seen growing interest in crystallisation [21–25]. Hybrid approaches that instead embed black-box components in mechanistic models have a longer history in process engineering [26] and have recently been applied to crystallisation [27]. However, these methods rarely support forward simulation (predicting process behaviour), model inversion (discovering governing laws), optimising experimental conditions (essential for process design), and targeting specific process outcomes (critical for product quality) all within the same model - no unified framework currently exists [28]. Conventional approaches, such as purely mechanistic models, that do extend to all of these tasks are limited to using numerical gradient-based methods which require a new forward model evaluation for every optimised parameter at each iteration. This, combined with slow simulation times, limits training and optimisation to just a handful of parameters. Automatic differentiation and the tools of differentiable physics [29] remove this scaling entirely and open the door to exploring much more flexible mechanistic and hybrid methods.

Here, we introduce a differentiable hybrid modelling framework that combines mechanistic transport equations with learnable components, built on an accelerated JAX-based HR-FVM PBE solver [30, 31]. Its differentiable formulation also enables end-to-end optimisation of experimental design and operating conditions with respect to process trajectories and downstream performance metrics, unifying model building, simulation and process design into a single framework. Together with an experimental dataset [32], we demonstrate how this framework can address both sources of model uncertainty, unknown functional form and partially uncertain initial conditions, while extending to process optimisation and design tasks.

Specifically, this work makes the following contributions:

  • Framework: a differentiable hybrid modelling framework for joint discovery of physical laws and initial conditions in transport equations from experimental data, built

on JAX and leveraging automatic differentiation to remove parameter scaling limits of numerical-gradient based methods.

  • Data-Driven Model Discovery: a workflow comparison against the conventional pipeline for the same system [32], in which a hand-picked rate law is fitted to measured initial conditions. Jointly learning the rate law and assimilating the initial conditions recovers physically consistent, non-linear kinetics and reduces the trajectory loss on the validation experiments sevenfold, without additional experiments.

  • Process Optimisation: demonstration of trajectory and product specification optimisation enabled by end-to-end model differentiability, targeting relevant downstream metrics such as aspect ratio and yield.

Figure

Fig. 1 A differentiable hybrid framework for discovering transport laws, calibrating initial conditions, and optimising process trajectories.

(a) Experimental system. Batch temperature driven dissolution of L-glutamic acid in water, monitored in situ by the DISCO [33] which characterises crystals in two characteristic lengths (length L1L_1, width L2L_2). The dataset contains 13 real experimental trajectories [32] with varying temperature profiles and initial conditions (f0,c0f_0, c_0). Example seed (f0f_0) and product (ffinalf_{\text{final}}) distributions are shown along observed time series data. (b) System modelling. The simplified batch dissolution population balance equation is shown with the learned dissolution law (DD) parametrised by Θ\Theta highlighted. Different options for formulating the law are shown. (c) Hybrid framework and tasks. All inputs pass through the differentiable solver to give predicted outputs, and automatic differentiation is used to propagate gradients back from the trajectory mean squared error (MSE) loss function L(Φ)\mathcal{L}(\Phi) to any subset of these inputs. This supports two tasks: model building, where predicted trajectories are matched to observed trajectories by optimising Φ=[θ,f0,c0]\Phi = [\theta, f_0, c_0], and process optimisation, where a specific trajectory or process objective is targeted by optimising Φ=T(t)\Phi = T(t) or [T(t),f0,c0][T(t), f_0, c_0].

References (43)