By Lou Farrell, Senior Writer, Red Planet Bound
Mars sits far enough away that waiting on instructions from Earth is a poor way to handle a fault. Real-time diagnostics in space solve the problem by moving analysis onto the spacecraft, where sensor readings get judged as they arrive.
Several versions of this already run on Mars, and researchers are now sizing the same techniques for much smaller spacecraft.
When Every Signal Takes Up to 22 Minutes
Radio waves cross the Earth–Mars gap at high speeds, but the distance itself keeps changing. One-way signal travel runs from about three minutes when the planets are closest to just over 22 minutes when they are farthest apart.
Perseverance’s 2021 landing reveals what that means in practice. Nobody on Earth could intervene during the fully autonomous descent, so controllers learned the outcome roughly 11 minutes afterward.
Orbital geometry adds another problem. Every 25 months or so, the Sun sits between the two planets, and NASA pauses commands to its Mars fleet for about two weeks, as it did in November 2023. The rovers kept working through that situation, collecting weather data and running ground-penetrating radar.
The Value That Instant Analysis Gives a Mission
A significant payoff is time. When the Perseverance team selects laser targets, the observations are typically delayed until the following day. A program called AEGIS, developed at JPL for earlier rovers and adapted for the SuperCam instrument, removes that wait. After a drive, it requests navigation camera images, finds rocks in them and ranks the candidates by features like size or brightness. SuperCam then fires its laser at the top one or two to read their chemical makeup.
With the rover choosing its own targets, SuperCam can fire many hours before the team on Earth has received and studied the images. Early results can also tell scientists whether an unusual rock deserves a closer look before the rover drives away.
Since October 2023, Perseverance has also run an onboard planner, which JPL’s developers describe in Eos, that rebuilds the rover’s activity schedule from real-time data. It replans more than 15 times per sol (meaning per Martian day), starting tasks early when earlier ones finish faster and adjusting instrument preheating to the measured temperature. The developers credit it with raising the rover’s available energy by more than 10%.
Deciding Mid-Scan Where to Look Harder
Rock chemistry gets mapped one point at a time by PIXL, Perseverance’s X-ray fluorescence spectrometer. A typical scan runs 2,337 steps and takes about 10 hours. Adaptive sampling lets the instrument spend extra time wherever the chemistry looks interesting, as opposed to treating every point alike.
Onboard software reduces each X-ray spectrum to 22 values, then checks them against stored rules, with up to 32 rules in a single set. A point that matches a rule, such as one written for carbonate minerals, earns an extra 30 seconds on top of the standard 10-second measurement. This nearly doubles the signal-to-noise ratio, a measure of how clearly a reading stands out from background noise.
Overhead stays modest, with the longer dwells in a typical scan totaling about 22.5 minutes, roughly what 135 more standard measurements would take. Spending that time on additional points would widen the scanned area by only about 6%.
The chromium oxide rule flagged about 98.4% of the points it should have, while the carbonate rule flagged only 12.2%, underscoring how results vary by mineral. The authors note that, to their knowledge, this is the first autonomous decision-making based on real-time compositional analysis by a spacecraft on the surface of another planet.
Checking Hardware With Instant Imaging
Instant feedback helps on the ground, before launch. Digital detector array panels display an X-ray image when the exposure ends, with no film to develop, so technicians can start judging a part right away.
That kind of immediate inspection supports spacecraft component checks, rover hardware testing and other preflight diagnostics where delays can slow mission preparation. They can enhance the image to bring out a small defect, then save and share it digitally.
Portable versions are valuable in the field, where aerospace crews check composite structures for fatigue or cracks. Skipping film and chemical processing also helps reduce material costs and overall waste.
Spotting Sensor Faults Without Waiting for the Ground
Science instruments are one aspect of the story. Another important aspect is housekeeping telemetry, which consists of readings such as temperatures and voltages that indicate whether the spacecraft itself is healthy. Sensor diagnostics entails monitoring that stream for readings that drift or spike before they become failures.
University of Luxembourg researchers tested whether neural networks could catch anomalies onboard a CubeSat, a small standardized satellite with very limited computing resources.
Their data came from a lab CubeSat in which a malfunctioning component caused temperature swings in the control system. The resulting model watches the temperature-related telemetry for anything out of the ordinary.
According to the authors, its precision and recall beat those of out-of-limit methods, which only raise an alarm once a reading crosses a fixed threshold. They also released an open-source version for a typical microcontroller, which they say can run alongside existing control software without any new hardware.
Giving Onboard Software More Processing Power
Software like this relies on the processor that’s running it. A 2024 review of hardware for onboard neural network inference notes that such networks usually run on the ground after data is downlinked. This adds latency, which hurts time-sensitive jobs such as wildfire detection and oil spill identification.
CubeSats and other low-budget missions face tight limits on computing power and energy, so complex networks are hard to run onboard. Some missions now use neural network accelerators, specialized chips that cut both power draw and inference time, meaning the time a trained model needs to produce a result.
The space environment often complicates the choice. Radiation threatens hardware reliability and lifespan, so a chip has to be judged on durability as well as speed. The review surveys accelerators from industry and academia, as well as software techniques that reduce a model’s computational demands for low-power use.
Bringing Real-Time Analysis Into a Mission Design
Mission teams that run analysis onboard must first determine which calls cannot wait. Choosing laser targets is one. When the team picks them from Earth, the observations slip to the next day, so Perseverance’s software makes that pick itself. Other calls stay with scientists, who can use AEGIS’s early results to decide on further analyses before the rover moves on.
Testing is also critical, since rules perform unevenly. Teams need to validate each rule or model against known samples, simulated mission conditions and real operating constraints before trusting it during flight. PIXL’s rule for chromium oxide flagged nearly every point it should have, while its carbonate rule missed most of them. That contrast shows why each rule gets checked against known samples.
What can run onboard also depends on the processor. Compact models can sit alongside existing flight software on a microcontroller, as in CubeSat research, while heavier methods require faster chips or software that trims computational demands.
Through all of it, people must stay in the loop. Real-time systems should explain what they detected, why they acted and which data operators should review next. Perseverance’s onboard planner can explain its decisions to operators. Scientists still receive the flagged results and make the next call.
Moving the Analysis Closer to the Data
With distance fixed, analysis has to move closer to the instruments and sensors that produce the data.
Missions already doing this on Mars show the payoff in faster science and earlier warnings. Lighter models and faster processors extend the same approach to smaller spacecraft.
Author’s Personal Note: When it can feel like it takes hours for a text you send to reach your friend who lives in a more rural area, it can be easy to also make the assumption that diagnostics and transmissions to-and-from Mars and Earth must take days. Of course, that isn’t the reality at all, and it’s so impressive just how much we have been able to accomplish because of this!
Images: NASA/JPL-Caltech/LANL/CNES/IRAP, Terran Orbital, NASA/EQUULEUS


