Skip to main content
  1. Home
  2. Space
  3. News

How NASA is using AI on the Perseverance rover to study Mars rocks

Add as a preferred source on Google

Space engineers have been using AI in rovers for some time now — hence why today’s Mars explorers are able to pick a safe landing site and to drive around a region autonomously. But something they haven’t been able to do before now is to do science themselves, as most of that work is done by scientists on Earth who analyze data and point the rover toward targets they want to investigate.

Now, though, NASA’s Perseverance rover is taking the first steps toward autonomous science investigation on Mars. The rover has been testing out an AI capability for the last three years, which allows it to search for and identify particular minerals in Mars rocks. The system works using the rover’s PIXL instrument (Planetary Instrument for X-ray Lithochemistry), a spectrometer that uses light to analyze what rocks are made of. The software, called adaptive sampling, looks though PIXL’s data and identifies minerals to be studied in more detail.

Recommended Videos

“We use PIXL’s AI to home in on key science,” explained PIXL’s principal investigator, Abigail Allwood of NASA’s Jet Propulsion Laboratory, in a statement. “Without it, you’d see a hint of something interesting in the data and then need to rescan the rock to study it more. This lets PIXL reach a conclusion without humans examining the data.”

The system runs on board the rover, with no intervention from Earth required. That means it saves on precious time, not only by choosing targets for the scientists but also because it doesn’t require lengthy communication times.

“The idea behind PIXL’s adaptive sampling is to help scientists find the needle within a haystack of data, freeing up time and energy for them to focus on other things,” said Peter Lawson, one of the developers of the software. “Ultimately, it helps us gather the best science more quickly.”

The AI system works by taking data from PIXL, then repositioning the instrument (which is mounted on Perseverance’s arm) using its camera so it can get in close to take a detailed reading without hitting the rock. You can see the system in action in a (kind of adorable) video of an Earth-based model of PIXL. The system will take a reading from one small patch of rock, and if it finds indications of minerals that are interesting to science, it can automatically collect more data on that area.

“PIXL is kind of a Swiss army knife in that it can be configured depending on what the scientists are looking for at a given time,” said David Thompson, who helped develop the software. “Mars is a great place to test out AI since we have regular communications each day, giving us a chance to make tweaks along the way.”

Georgina Torbet
Georgina has been the space writer at Digital Trends space writer for six years, covering human space exploration, planetary…
China’s answer to SpaceX’s reusable rockets literally catches boosters in a net
SpaceX catches boosters on legs. China just used a net.
Ammunition, Missile, Weapon

SpaceX's playbook for recovering a rocket booster generally involves legs, a precisely controlled vertical landing, and either a concrete pad or a drone ship. 

China just managed to pull off something similar, but in a slightly different way, and on July 10, it tested the method as well.

Read more
Dimming the sun sounds unhinged, but this new study on El Niño makes a surprisingly good case for it
A natural test case, Australia's worst-ever wildfire season, suggests the idea deserves serious consideration.
Nature, Outdoors, Sky

When I first saw "scientists propose dimming the sun," I rolled my eyes. It sounds like a science fiction movie cooked up after watching many climate documentaries. But a new study, published on July 8, 2026, in the journal Science Advances, seems to have a genuinely compelling argument.

A Super El Niño is currently forming in the Pacific, feared to be the most intense in decades. It could escalate floods, wildfires, and extreme heat events worldwide. However, Researchers at UC San Diego's Scripps Institution of Oceanography, led by climate scientists Kate Ricke and Jessica Wan, are now proposing one of the most interesting solutions I’ve come across.

Read more
You can now walk through space and gaze into a black hole at this VR exhibit
Smithsonian Starstruck lets you drift past dying stars and see the origin point of the universe for as little as $18 a person.
Smithsonian Starstruck featured

Most planetarium shows ask you to sit still and look up. The Smithsonian's new VR exhibit takes a different approach, letting visitors walk through the vast expanse of the universe, drifting past stars, planets, and a black hole to get a physical sense of its true scale.

A $29 ticket to the edge of the galaxy

Read more