Scientists have built an AI tool that can tell if a common mineral formed with help from living things — and it's already working with the same technology that probes Mars today.

The mineral is called apatite. You probably have some in your body right now: it's the stuff that makes up your teeth and bones. But apatite also hides inside volcanic rocks and old sedimentary layers on Earth, and scientists believe the same mineral exists on Mars and other rocky worlds.

The new study, published in the journal PNAS Nexus by researchers including Yanzhang Li and colleagues, shows that a machine learning system can examine apatite samples and figure out whether living things helped create them. To train the system, the team collected 331 Raman spectra — basically unique chemical fingerprints — of apatite from both biological and non-biological sources. The AI learned to spot tiny differences in those fingerprints with remarkable accuracy: over 96 percent.

The most helpful clues turned out to be two specific features of the mineral's chemical signature. The brightness of something called the carbonate band reveals chemical composition, while the width of the phosphate band reflects the crystal's structure. Living things leave a slightly different imprint on apatite than geology alone, and the machine learning model learned to detect that difference.

"Minerals such as apatite can preserve evidence of biological activity over long geological timescales," the researchers noted. That means billions-year-old rocks might still carry hints of ancient life — on Earth, on Mars, or even farther out in the solar system.

The technique uses Raman spectroscopy, which is already aboard several Mars missions. That means the same approach could someday help a rover or lander decide which rocks on Mars are worth bringing home for closer study, or even whether they once hosted life at all.

For now, the tool is a research breakthrough — a new way to read the chemical history written in everyday minerals. But it points toward something bigger: the possibility that we might actually recognize the fingerprints of life when we find them, even in rocks billions of years old and millions of miles away.