Aarhus University’s NMR spectrometer learned to improve its own experiments by testing microwave pulses on a real sample, then using each result to choose what to try next. In a complex test system, that approach produced about 70% more signal enhancement than the researchers’ comparison method.

Nuclear magnetic resonance, or NMR, can show the structure of molecules down to the level of their atoms. The same underlying science is used in MRI scanners. But both methods face a basic challenge: their signals can be weak. Only a small excess of atomic nuclei line up in the same direction, so samples often need to contain a high concentration of the material being studied.

Aarhus professor Niels Chr. Nielsen and his colleagues are working to make those signals stronger. They use a technique called dynamic nuclear polarization, or DNP, which transfers some of the strong magnetic order of electrons to atomic nuclei. An electron’s magnetic moment is about 660 times larger than a proton’s, making electrons useful helpers in this process.

The challenge is finding the right sequence of microwave pulses to make that transfer work well. A sample may contain hundreds or thousands of interacting spins, the quantum property that makes particles behave somewhat like tiny magnets. Their many interactions make the best pulse sequence hard to calculate in advance. Computer models can also miss small flaws in the real equipment.

Instead of relying on a perfect simulation, the researchers put the sample and instrument inside the learning process. They connected a home-built DNP spectrometer to an AI method called Bayesian optimization. The system runs a pulse sequence on the sample, measures the signal, and feeds that result to the algorithm. The algorithm then proposes another sequence based on what it has learned.

“What is new is that we let the spectrometer learn for itself how to perform the best experiments,” said Filip V. Jensen, a Ph.D. student and first author of the study, published in Science Advances. The team tested its method on two spin systems. In one, it found results comparable to some of the strongest existing approaches. In the more complex system, its sequence delivered around 70% greater signal enhancement than the reference method used in the study.

Finding a good sequence was not instant: each optimization took from just under two days to almost five days. But once researchers find an effective sequence, they can reuse it. A stronger signal may also mean fewer repeated measurements are needed, cutting the total time required to collect useful data.

The work is a proof of concept using model systems, not a finished tool for routine use. Still, Nielsen sees promise for magnetic-resonance-based quantum sensors, which must control complex spin systems that can be difficult to simulate in full. In the longer term, the approach could be explored in advanced laboratories, industrial process monitoring, environmental measurements and food analysis. NMR’s strength is not simply detecting tiny traces; it can reveal how molecules and materials are built. Helping instruments learn directly from samples could make that detailed view easier to obtain.