When two neutron stars spiral into each other and collide, they explode in a blinding flash that forges some of the rarest and most valuable elements in the universe — gold, platinum, uranium. Now, scientists have built a new artificial intelligence tool that can simulate these cosmic fireworks in far greater detail than ever before.

The AI model, called RHINE, was developed by researchers at GSI/FAIR, a major physics laboratory in Darmstadt, Germany. Dr. Oliver Just, a scientist in the Nuclear Astrophysics & Structure department at GSI/FAIR, led the research, working alongside Dr. Zewei Xiong, who helped design the machine learning component. Their findings appeared in the journal Physical Review D.

Scientists have long known that extremely heavy elements — the kind that make up everything from wedding rings to nuclear fuel — are created during violent events like neutron star mergers. The process, called the r-process (short for rapid neutron capture), works like this: atomic nuclei in the extreme heat and pressure absorb loose neutrons at incredibly fast speeds. Some of those neutrons then change into protons, allowing the nuclei to grow larger and larger, eventually forming the heavy elements we find on Earth.

The challenge is that simulating this process requires enormous computing power. Scientists must calculate thousands of nuclear reactions happening all at once, which even the fastest supercomputers struggle to handle efficiently. That's where RHINE comes in.

RHINE uses deep learning — a type of artificial intelligence that learns patterns from vast amounts of data — to estimate how much energy is released during these nuclear reactions. That energy release, called heating, determines how fast material gets blasted outward during a collision and what kind of light the explosion produces. In neutron star mergers, that brilliant glow is called a kilonova.

"Our new model RHINE, which uses artificial intelligence, offers an efficient alternative," Dr. Just explained. The AI learns by studying a library of complete calculations first, then applies that knowledge to running simulations, dramatically cutting down the time and computer power needed.

Dr. Xiong added that the team validated their approach by comparing AI results against detailed reference data. "The high degree of agreement suggests that the use of ML models can save a tremendous amount of computing time," he said. The researchers concluded that heating effects deserve more attention in future models of stellar explosions.

The team has released RHINE's source code publicly so other scientists can use and improve upon it. The project was co-funded by the European Research Council.

Looking ahead, RHINE could help scientists at the upcoming FAIR facility — currently under construction in Germany — connect their laboratory experiments with actual observations of distant neutron star collisions made by astronomers. In other words, scientists may soon be able to recreate, in computer simulations, the very same process that forged the gold in your jewelry.