← Latest papers
🤖 machine learning

Thermodynamically consistent machine learning model for excess Gibbs energy

The paper introduces HANNA, a thermodynamically consistent machine learning model that integrates physical laws as hard constraints and utilizes a geometric projection method to accurately predict the excess Gibbs energy of multi-component liquid mixtures directly from molecular structures, outperforming state-of-the-art benchmarks in both accuracy and domain applicability.

Original authors: Marco Hoffmann, Thomas Specht, Quirin Göttl, Jakob Burger, Stephan Mandt, Hans Hasse, Fabian Jirasek

Published 2026-04-29
📖 5 min read🧠 Deep dive

Original authors: Marco Hoffmann, Thomas Specht, Quirin Göttl, Jakob Burger, Stephan Mandt, Hans Hasse, Fabian Jirasek

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are a master chef trying to predict exactly how a new soup will taste before you even mix the ingredients. In the world of chemistry and engineering, this "soup" is a liquid mixture, and the "taste" is a complex property called excess Gibbs energy. This value tells engineers how molecules in a mixture will behave—whether they will happily mix, separate into layers (like oil and water), or boil at a certain temperature.

For decades, predicting this behavior for new mixtures has been like trying to guess the flavor of a soup using a rigid, old recipe book. If the recipe book didn't have a specific entry for "tomato and basil," you were stuck.

This paper introduces HANNA, a new "smart chef" built with artificial intelligence (machine learning) that can predict these behaviors for any mixture, provided you know the molecular "ingredients" (the chemical structure).

Here is how HANNA works, explained through simple analogies:

1. The Problem with Old "Recipe Books"

Traditional methods (like UNIFAC) are like a library of pre-written recipes. They work great if you are mixing ingredients they have seen before. But if you introduce a new ingredient (like a rare chemical or an ionic liquid), the library has no entry for it, and the prediction fails. They are also often "stubborn," meaning they can't easily describe a mixture that acts differently at different temperatures without rewriting the whole recipe.

2. HANNA: The Flexible, Rule-Following Chef

HANNA is different. Instead of memorizing a list of recipes, it learns the fundamental laws of physics that govern how molecules interact.

  • The Input: You give HANNA the "blueprint" of the molecules (their chemical structure, written in a code called SMILES) and the conditions (temperature and how much of each you have).
  • The Brain: It uses a type of AI called a neural network, but with a special twist. It doesn't just guess; it is hard-wired with the laws of thermodynamics. Think of it like a chef who is so trained in the laws of flavor that they cannot make a dish that violates the laws of physics. If the math says a mixture must separate into two layers, HANNA is forced to predict that separation. It cannot "hallucinate" a result that breaks the rules.

3. The "Surrogate Solver": A Shortcut to the Answer

One of the hardest things to predict is when a mixture will split into two layers (Liquid-Liquid Equilibrium). Usually, solving this requires a slow, repetitive calculation, like trying to find a needle in a haystack by checking every single straw one by one.

  • The Innovation: The authors built a surrogate solver. Imagine a highly skilled assistant who has watched the needle-finding process thousands of times. Instead of doing the slow work, the assistant looks at the haystack and instantly points to where the needle is. HANNA uses this assistant to learn from experimental data much faster and more accurately than before.

4. The "Geometric Projection": From Pairs to Crowds

HANNA was trained mostly on data from pairs of chemicals (binary mixtures). But in the real world, we often mix three, four, or more chemicals at once.

  • The Trick: HANNA uses a geometric projection. Imagine you know exactly how two people (Chemical A and Chemical B) get along, and how two others (Chemical C and Chemical D) get along. HANNA uses a mathematical "map" to project these pairwise relationships into a complex crowd of many people. It doesn't need to be taught how every possible group of five people interacts; it calculates it based on how the pairs interact. This allows it to predict the behavior of complex mixtures it has never seen before.

5. The Results: Better and Broader

The authors tested HANNA against the current "gold standard" (modified UNIFAC) and other AI models.

  • Accuracy: HANNA was more accurate at predicting how mixtures behave, especially for tricky cases like infinite dilution (a tiny drop of one chemical in a huge pool of another) and liquid-liquid separation.
  • Versatility: While the old recipe books fail if a new chemical is introduced, HANNA can handle it because it only needs the molecular blueprint. It successfully predicted behaviors for mixtures containing ionic liquids (complex salts that are liquid at room temperature), which are very difficult for older models to handle.
  • Consistency: Unlike some other AI models that might give a result that looks good but breaks the laws of physics, HANNA is guaranteed to be thermodynamically consistent.

Summary

In short, the paper presents HANNA, a machine learning model that acts as a thermodynamic oracle. It combines the flexibility of modern AI with the strict rules of physics. It learns from experimental data on simple pairs of chemicals and uses a clever mathematical projection to predict the behavior of complex, multi-ingredient mixtures. It is more accurate than current industry standards and can handle a much wider variety of chemicals, including those the old methods couldn't even attempt to model.

The authors have made this "smart chef" and its code available to the public, allowing engineers to use it to design better chemical processes, from creating new solvents to optimizing industrial separation techniques.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →