[Paper Review] SPT-NRTL: A physics-guided machine learning model to predict thermodynamically consistent activity coefficients
SPT-NRTL is a physics-guided machine learning model that predicts concentration-dependent, thermodynamically consistent activity coefficients using a transformer architecture trained on SMILES representations. It outperforms UNIFAC and COSMO-RS in accuracy, achieves near-experimental precision in vapor-liquid equilibrium predictions for mixtures like water/ethanol and chloroform/n-hexane, and provides NRTL parameters for 100 million mixtures online for direct use in process simulation.
The availability of property data is one of the major bottlenecks in the development of chemical processes, often requiring time-consuming and expensive experiments or limiting the design space to a small number of known molecules. This bottleneck has been the motivation behind the continuing development of predictive property models. For the property prediction of novel molecules, group contribution methods have been groundbreaking. In recent times, machine learning has joined the more established property prediction models. However, even with recent successes, the integration of physical constraints into machine learning models remains challenging. Physical constraints are vital to many thermodynamic properties, such as the Gibbs-Duhem relation, introducing an additional layer of complexity into the prediction. Here, we introduce SPT-NRTL, a machine learning model to predict thermodynamically consistent activity coefficients and provide NRTL parameters for easy use in process simulations. The results show that SPT-NRTL achieves higher accuracy than UNIFAC in the prediction of activity coefficients across all functional groups and is able to predict many vapor-liquid-equilibria with near experimental accuracy, as illustrated for the exemplary mixtures water/ethanol and chloroform/n-hexane. To ease the application of SPT-NRTL, NRTL-parameters of 100 000 000 mixtures are calculated with SPT-NRTL and provided online.
Motivation & Objective
- To overcome the bottleneck of scarce experimental property data in chemical process development.
- To develop a machine learning model that predicts concentration-dependent activity coefficients with thermodynamic consistency.
- To integrate physical constraints—particularly the Gibbs-Duhem equation—into a data-driven model for reliable phase equilibrium prediction.
- To enable direct application in standard process simulation software by providing pre-calculated NRTL parameters.
- To extend the predictive capability of machine learning beyond limiting activity coefficients to full binary mixture behavior.
Proposed method
- A transformer-based deep learning model (SPT) is fine-tuned to predict activity coefficients from SMILES strings.
- The model is constrained by the Gibbs-Duhem equation to ensure thermodynamic consistency across all mole fractions.
- NRTL parameters (α, Aij, Bij) are predicted directly from the model output using a differentiable differentiable parameterization.
- The model is trained on a large database of concentration-dependent activity coefficient data, including experimental and COSMO-RS reference data.
- A multi-head attention mechanism enables the model to capture complex molecular interactions and functional group contributions.
- The final model, SPT-NRTLFull, is validated on mixtures not in the training set, including azeotropic systems.
Experimental results
Research questions
- RQ1Can a machine learning model predict concentration-dependent activity coefficients with thermodynamic consistency, surpassing traditional group contribution methods?
- RQ2How accurately can SPT-NRTL predict vapor-liquid equilibria for binary mixtures, including azeotropic systems?
- RQ3To what extent does the model generalize to mixtures outside the training data, especially for challenging components like water and carboxylic acids?
- RQ4Can the integration of physical constraints like the Gibbs-Duhem equation into a neural network architecture yield more reliable and generalizable predictions than unconstrained models?
- RQ5Can the model generate high-quality NRTL parameters for large-scale process simulation without requiring experimental fitting?
Key findings
- SPT-NRTL reduces the mean absolute error in activity coefficient prediction by approximately 50% compared to UNIFAC across all functional groups.
- For water and carboxylic acids—previously challenging groups—the mean absolute error is 0.4 and 0.5 in ln γ, respectively, still significantly lower than UNIFAC.
- The model predicts vapor-liquid equilibria for water/ethanol and chloroform/n-hexane mixtures with near-experimental accuracy, correctly capturing the azeotrope position and behavior.
- The uncertainty in prediction results in a maximum deviation of about 1 K in bubble/dew point temperatures, which is acceptable for most engineering applications.
- SPT-NRTL provides NRTL parameters for 100 million mixtures, including 10,000 unique molecules, enabling immediate use in process simulation software.
- The model demonstrates that physics-guided machine learning can reliably predict complex thermodynamic properties while maintaining consistency with fundamental physical laws.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.