A machine-learned expression for the excess Gibbs energy
Marco Hoffmann, Thomas Specht, Quirin Göttl, Jakob Burger, Stephan Mandt, Hans Hasse, Fabian Jirasek · 2025
Read A machine-learned expression for the excess Gibbs energy by Marco Hoffmann, Thomas Specht, Quirin Göttl, Jakob Burger, Stephan Mandt, Hans Hasse, Fabian Jirasek (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2509-06484.txt.
Introduction
A machine learning model that cannot break the laws of thermodynamics is presented by Marco Hoffmann and six co-authors in a 2025 chemical engineering paper. Their subject is excess Gibbs energy, a quantity that helps predict how liquid mixtures behave. Guessing it for many-component mixtures from molecular structure alone has long been difficult.
The model, HANNA, builds physical laws in as hard limits, so its answers always stay consistent. It learns from experiments on vapor-liquid and liquid-liquid balance, activity coefficients at extreme dilution, and excess heat in two-part mixtures. A stand-in solver makes training on liquid-liquid data possible, and a geometric step extends results to mixtures with many parts. HANNA proves accurate and covers far more cases than leading rivals, and the trained model is freely available online.
Catalog record
| CREATOR | Marco Hoffmann, Thomas Specht, Quirin Göttl, Jakob Burger, Stephan Mandt, Hans Hasse, Fabian Jirasek |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 64 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2509-06484
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
A machine-learned expression for the excess Gibbs energy Marco Hoffmann, Thomas Specht, Quirin Göttl, Jakob Burger, Stephan Mandt, Hans Hasse, Fabian Jirasek Abstract The excess Gibbs energy plays a central role in chemical engineering and chemistry, providing a basis for modeling the thermodynamic properties of liquid mixtures. Predicting the excess Gibbs energy of multi-component mixtures solely from the molecular structures of their components is a long-standing challenge. In this work, we address this challenge by integrating physical laws as hard constraints within a flexible neural network. The resulting model, HANNA, was trained end-to-end on an extensive experimental dataset for binary mixtures from the Dortmund Data Bank, guaranteeing thermodynamically consistent predictions. A novel surrogate solver developed in this work enabled the inclusion of liquid-liquid equilibrium data in the training process. Furthermore, a geometric projection method was applied to enable robust extrapolations to multi-component mixtures, without requiring additional parameters. We demonstrate that HANNA delivers excellent predictions, clearly outperforming state-of-the-art benchmark methods in accuracy and scope. The trained model and corresponding code are openly available, and an interactive interface is provided on our website, MLPROP. † † footnotetext: These authors contributed equally. 1 Main Accurate knowledge of the thermodynamic properties of liquid mixtures is crucial in chemistry, chemical engineering, and environmental science. Among these properties, the molar excess Gibbs energy, g^{\mathrm{E}} , plays a central role: it provides the foundation for deriving many other thermodynamic quantities through established relations. In particular, g^{\mathrm{E}} serves as the basis for determining the activity coefficients of the mixture’s components. Activity coefficients, in turn, govern phase equilibria, such as vapor-liquid (VLE), liquid-liquid (LLE), and solid-liquid (SLE) equilibria, and are key to describing chemical equilibria. They are also used in modeling reaction kinetics, and transport phenomena. This makes g^{\mathrm{E}} a central property in model-based process design and optimization. However, g^{\mathrm{E}} and the derived activity coefficients cannot be measured directly but must be inferred from phase equilibrium data, and the corresponding experiments are costly and time-consuming. Given the many thousands of technically relevant components that can form an enormous number of mixtures, and the fact that g^{\mathrm{E}} depends on the state point (especially temperature and composition in liquid mixtures), only a tiny fraction of all relevant mixtures can be studied experimentally. This makes the development of predictive models for g^{\mathrm{E}} a central task in thermodynamics. We thereby distinguish different classes of predictions, namely, to: • Unstudied state points : temperatures and/or compositions of a mixture for which data exist at other conditions. • Unstudied systems : combinations of components for which data exist in other systems. • Unstudied components : entirely new substances for which no data exist. All common g^{\mathrm{E}} -models are based on the concept of pair interactions. The most widely used g^{\mathrm{E}} -models are lattice models, such as NRTL [ 1 ] and UNIQUAC [ 2 ] , in which the molecular interactions are described by pair-interaction parameters between components, which are usually fitted to experimental data for each binary system of interest. These models enable predictions for unstudied temperatures and compositions, as well as predictions for multi-component mixtures, if data exists to fit the model parameters of all constituent binary subsystems. However, these models do not allow predictions for unstudied components, binary systems, and multi-component mixtures comprising unstudied binary subsystems. Furthermore, these models suffer from limited flexibility, which often hinders the simultaneous description of VLE and LLE with a single parameterization [ 3 , 4 ] . To address the lacking capability of predictions to unstudied systems and components, group-contribution (GC) g^{\mathrm{E}} -models have been developed, with the different variants of UNIFAC being the most successful ones [ 5 , 6 , 7 , 8 ] . UNIFAC decomposes components into structural groups and utilizes parameters that describe pair interactions between these groups, significantly reducing the number of parameters and enabling extrapolations to unstudied systems and components. However, UNIFAC is limited to mixtures for which all involved structural groups (and their interactions) have previously been parametrized. Furthermore, since UNIFAC is unable to describe both VLE and LLE with high accuracy, a special UNIFAC parameterization for LLE has been introduced [ 9 ] . Additionally, for describing complex systems, such as those containing ionic liquids [ 10 , 11 ] or formaldehyde [ 12 , 13 ] , tailored groups had to be introduced, compromising the GC nature of UNIFAC and the generality of the approach. Despite the described shortcomings, the different UNIFAC variants have long been and remain the standard g^{\mathrm{E}} -models used for phase equilibrium calculations in process simulations across industry and academia. An alternative to the GC models of the UNIFAC family are the g^{\mathrm{E}} -models from the COSMO family, in which the energetic contribution to g^{\mathrm{E}} is calculated using COSMO methods from quantum chemistry [ 14 ] , avoiding the need for group-interaction parameter tables. Several variants of COSMO-based g^{\mathrm{E}} -models have been developed [ 15 , 16 , 17 , 18 ] , which will be referred to as COSMO models for brevity in the following. These models are based on quantum-chemical calculations of the individual components of the mixture embedded in an ideal conductor. These quantum-chemical calculations are feasible for most molecules; however, they are associated with considerable effort, and challenges regarding the treatment of conformers arise, with the results depending on the level chosen for the quantum-chemical calculation [ 17 , 19 , 20 , 21 ] . While the COSMO models have a larger scope than UNIFAC, the predictions of UNIFAC are often found to be more accurate than those of COSMO for systems for which both methods can be applied [ 17 , 22 , 23 ] . Recently, several authors used machine learning (ML) methods to further extend the scope of the classical g^{\mathrm{E}} -models by predicting their pair-interaction parameters. This was done for UNIQUAC [ 24 ] , NRTL [ 25 ] , and UNIFAC [ 26 , 27 ] . These new hybrid methods rely on the underlying g^{\mathrm{E}} -models and are therefore intrinsically physically consistent. However, these models also inherit all the limitations of the underlying g^{\mathrm{E}} -models, e.g., the problems of simultaneously describing VLE and LLE, or the restriction to a predefined list of structural groups [ 26 , 27 ] or components [ 24 ] . The SPT-NRTL model [ 25 ] is, in principle, applicable to arbitrary mixtures (although the limitations to simultaneously describe VLE and LLE still hold), but it is not openly available. To overcome all described limitations, we present the first ML-based g^{\mathrm{E}} -model that does not build on an existing physical model, but instead combines the flexibility of artificial neural networks with explicit physical knowledge hard-coded into the network architecture. This model, called HANNA (hard-constraint neural network for consistent activity coefficient prediction), builds on a prototype from our recent work [ 28 ] , which was restricted to modeling VLE in binary systems. In this work, a generalization of HANNA is presented that is flexible enough for the holistic description of different phase equilibria (namely VLE and LLE), enables predictions for arbitrary components, binary and multi-component systems, and state points, and strictly complies with all relevant physical laws and constraints. The only input required for HANNA is