Skip to main content

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

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…
Mysterious colorful clouds drift through Mars’s sky in new Curiosity images
NASA's Curiosity Mars rover captured this feather-shaped iridescent cloud just after sunset on Jan. 27, 2023, the 3,724th Martian day, or sol, of the mission. Studying the colors in iridescent clouds tells scientists something about particle size within the clouds and how they grow over time.

As the Curiosity rover explores its way around Mars, it isn't only looking down at the martian rocks and regolith -- it is also looking up at the martian sky. Like Earth, Mars has its own seasonal weather patterns, but with its different atmosphere that weather can include some unusual phenomena, such as striking colorful clouds.

A recent video created from images captured by Curiosity shows clouds tinted red and green flowing though the sky over Mars. Captured using the rover's Mastcam instrument on January 17, 2025, the video shows the clouds during twilight on the red planet.

Read more
NASA’s Mars rover collects rock sample ‘unlike anything we’ve seen before’
Perseverance's 26th rock sample collected from the Martian surface.

NASA’s Mars Perseverance rover acquired this image of its 26th collected rock sample, named “Silver Mountain,” using its onboard Sample Caching System Camera, located inside the rover's underbelly. The camera looks directly down into the top of a sample tube to take close-up pictures of the sampled material and the tube ahead of sealing and storage. NASA/JPL-Caltech

NASA is getting excited about a special rock that its Perseverance rover has just scooped up from the surface of Mars.

Read more
Elon Musk voices renewed hope for first crewed Mars mission
In this artist’s concept, NASA astronauts drill into the Martian subsurface. The agency has created new maps that show where ice is most likely to be easily accessible to future astronauts.

With his new buddy Donald Trump now back in the White House, SpaceX boss Elon Musk has renewed hope of getting the first humans to Mars before the end of this decade.

During his inauguration speech on Monday, President Trump said that his administration “will pursue our manifest destiny into the stars, launching American astronauts to plant the Stars and Stripes on the planet Mars.”

Read more