NeurIPS 2026Coming to NeurIPS in Sydney?Explore papers, orals & directions

Machine Learning in Thermodynamics: Prediction of Activity Coefficients by Matrix Completion

Fabian Jirasek, Rodrigo Alves, Julie Damay, Robert A. Vandermeulen, Robert Bamler, Michael Bortz, Stephan Mandt, Marius Kloft, Hans HasseThe Journal of Physical Chemistry Letters 2020 · DOI

Abstract

Activity coefficients, which are a measure of the nonideality of liquid mixtures, are a key property in chemical engineering with relevance to modeling chemical and phase equilibria as well as transport processes. Although experimental data on thousands of binary mixtures are available, prediction methods are needed to calculate the activity coefficients in many relevant mixtures that have not been explored to date. In this report, we propose a probabilistic matrix factorization model for predicting the activity coefficients in arbitrary binary mixtures. Although no physical descriptors for the considered components were used, our method outperforms the state-of-the-art method that has been refined over three decades while requiring much less training effort. This opens perspectives to novel methods for predicting physicochemical properties of binary mixtures with the potential to revolutionize modeling and simulation in chemical engineering.

Introduction: The Challenge of Chemical Space

In chemical engineering, the activity coefficient ($\gamma^\infty$) is a fundamental parameter. It quantifies how much a liquid mixture deviates from ideal behavior, a factor essential for the design of industrial processes like distillation and extraction. However, the sheer scale of chemical space presents a significant hurdle. While experimental databases like the Dortmund Data Bank (DDB) contain thousands of entries, they represent only a tiny fraction of the millions of possible binary combinations.

For over 30 years, the industry "gold standard" has been UNIFAC, a phenomenological model that estimates properties by breaking molecules down into functional groups. While powerful, UNIFAC requires extensive expert calibration and often fails when encountering molecules with unparameterized functional groups.

Methodology: "Netflix-Style" Thermodynamics

To overcome these limitations, researchers have turned to a technique common in recommendation systems: Probabilistic Matrix Completion. By treating the problem as a giant, sparse spreadsheet where rows are solutes and columns are solvents, the task becomes filling in the missing "ratings" (activity coefficients) based on patterns in the existing data.

Conceptual illustration of matrix completion for predicting activity coefficients.

The researchers employed Probabilistic Matrix Factorization (PMF). In this framework, each solute and solvent is mapped to a 4-dimensional "latent feature" vector. These vectors do not represent physical properties like boiling points; instead, they are abstract coordinates learned by the model through Bayesian inference. Using the Stan framework and Variational Inference, the model calculates the log of the activity coefficient as the dot product of these latent vectors. To handle the inherent noise in experimental thermodynamic data, a Cauchy distribution was used for the likelihood, providing greater robustness against outliers.

Key Results and Performance

The model was rigorously tested using leave-one-out cross-validation on a dataset of 240 solutes and 250 solvents from the DDB. Despite having access to only 6.8% of the possible data points and using zero chemical "expert knowledge," the Matrix Completion Method (MCM) demonstrated remarkable accuracy.

Approximately 48.1% of predictions for $\ln(\gamma^\infty)$ had an absolute error below 0.1, and nearly 80% were below 0.3—a level of precision comparable to experimental uncertainty (typically 0.1 to 0.2).

Error distribution comparison between the Matrix Completion Method (MCM) and the industry-standard UNIFAC model.

When compared head-to-head with UNIFAC on the subset of data where UNIFAC is applicable, the MCM significantly outperformed the traditional model. The MCM achieved an absolute error below 0.1 in 50% of cases, whereas UNIFAC only reached this level of accuracy in 37.4% of cases. Furthermore, while UNIFAC was limited by missing group parameters for about one-third of the mixtures, the MCM provided 100% coverage once the latent features were learned.

Insights and Future Directions

The success of this approach reveals a profound insight: thermodynamics possesses a "hidden" structure that can be captured without explicit physical descriptors. By focusing on collaborative filtering (learning from the matrix itself) rather than content-based QSPR methods, the model identifies behavioral similarities between molecules that traditional group-contribution methods might miss.

While the current model faces a "cold start" problem—requiring at least some data for a molecule to place it in latent space—future work could integrate physical descriptors (like $\sigma$-profiles) to improve generalization. Expanding this matrix into a higher-dimensional tensor to include temperature and pressure dependencies could potentially revolutionize chemical process simulation.

Summary updated

Abstract

Activity coefficients, which are a measure of the nonideality of liquid mixtures, are a key property in chemical engineering with relevance to modeling chemical and phase equilibria as well as transport processes. Although experimental data on thousands of binary mixtures are available, prediction methods are needed to calculate the activity coefficients in many relevant mixtures that have not been explored to date. In this report, we propose a probabilistic matrix factorization model for predicting the activity coefficients in arbitrary binary mixtures. Although no physical descriptors for the considered components were used, our method outperforms the state-of-the-art method that has been refined over three decades while requiring much less training effort. This opens perspectives to novel methods for predicting physicochemical properties of binary mixtures with the potential to revolutionize modeling and simulation in chemical engineering.
BibTeX
@article{jirasek2020machine,
  author = {Fabian Jirasek and Rodrigo Alves and Julie Damay and Robert A. Vandermeulen and Robert Bamler and Michael Bortz and Stephan Mandt and Marius Kloft and Hans Hasse},
  title = {{Machine Learning in Thermodynamics: Prediction of Activity Coefficients by Matrix Completion}},
  journal = {The Journal of Physical Chemistry Letters},
  year = {2020},
  doi = {10.1021/acs.jpclett.9b03657},
}
Figure