# Learning in Orbit: Onboard Training and Closed-Loop Attitude Control with a Thermal Segmentation Model on a Spacecraft

Robotics.world

> Deep-space missions face communication delays and bandwidth limits that make ground-in-the-loop operation impractical, so spacecraft need to perceive, learn, and act on their own.

**arXiv**: 2610.19122 · Preprint · not peer-reviewed

**Published**: 2026-10-13

**Authors**: Elena Sorina Lupu, Hannah Grauer, Phaedrus Leeds, Nikhil Ranganathan, Connor Lee, Sulekha Kishore, Cailyn Smith, Shon Cortes, Brian Hardy, Benjamen Bycroft, Darren W. Rowen, Soon-Jo Chung

## In plain words

Deep-space missions face communication delays and bandwidth limits that make ground-in-the-loop operation impractical, so spacecraft need to perceive, learn, and act on their own.

## AI summary

## Overview

**Research area:** Spacecraft autonomy — onboard machine learning, vision-based attitude control, and flight software infrastructure for small satellites.

**Technical level:** Intermediate. The paper is readable by engineers familiar with basic CNN/segmentation concepts and spacecraft attitude control terminology; the system-integration and operations details are concrete rather than theoretical.

**Scope (one sentence):** A flight demonstration on a 6U CubeSat showing that a thermal segmentation network can be fine-tuned and run onboard an NVIDIA Jetson TX2 NX in Low Earth Orbit, and that its output can close the loop with the spacecraft's attitude control system to point at the Moon.

## What This Paper Is About

Deep-space missions face communication delays and bandwidth limits that make ground-in-the-loop operation impractical, so spacecraft need to perceive, learn, and act on their own. This paper reports a flight demonstration on the Edge Node Lite 6U CubeSat in which a segmentation model was trained on-orbit on the spacecraft's GPU (using labels uplinked from Earth) and then used in a real-time loop to command the spacecraft's attitude toward the Moon. The work also documents the supporting software stack — ROS 2 Foxy, OpenZFS, Docker, and micro-ROS — plus thermal, CPU/GPU, and radiation data gathered over roughly a year in orbit.

## Key Contributions

1. **Onboard GPU training and inference in orbit.** Training and inference of a DINO-distilled Fast-SCNN segmentation model ran on the Jetson TX2 NX's GPU on a free-flying CubeSat. The authors state that, based on publicly available information, this is the first time ML models were trained on a GPU on a free-flying spacecraft, noting that earlier in-space training used low-power CPUs or VPUs.
2. **Closed-loop autonomy with a learned model.** The segmentation output (Moon centroid) is filtered by a Kalman filter and sent to the ADCS as attitude commands — a pipeline the paper calls "dynamic targeting."
3. **ROS 2 in space.** ROS 2 Foxy with the Fast DDS implementation was deployed as the middleware between the segmentation module and the bus avionics; the authors state that, to their knowledge, ROS had not previously been demonstrated on a free-flying spacecraft.
4. **Open-source file system and hardware characterization.** OpenZFS was integrated for data-integrity and self-healing guarantees and robustness to sudden power loss, and the paper reports thermal measurements, CPU/GPU usage during training and inference, and ground proton-beam radiation testing of candidate NVMe SSDs.

## Main Findings

- **Onboard training converged.** With a batch size of 2, a 75%/5%/20% train/validation/test split, and 40 down-selected Moon images, training ran as 30 epochs plus an additional 30 epochs (60 total) in approximately 13 minutes, reaching a final mIoU exceeding 0.9, with rapid improvement after the first epoch followed by stabilization. Training was split into two phases to demonstrate fine-tuning from on-orbit-generated weights, not only from ground-uploaded ones.
- **Closing the loop worked, but tuning mattered.** Early dynamic targeting runs oscillated in the horizontal plane, overshooting the target. Fixes were: reducing the OpenCV frame buffer from the default of 4 frames to 1, raising the camera frame rate from 1 Hz to 2 Hz (with the Kalman filter prediction rate matched at 2 Hz), reducing the control gain twice (from 2 to 1 to 1/2), and disabling the low-pass filter that had been introduced on Jan. 10, 2026.
- **Pointing error dropped sharply in later runs.** Over the first 3 minutes of each run, mean radial pixel error was 167.8 (Dec. 10, 2025), 199.7 (Jan. 6, 2026), 579.8 (Jan. 9, 2026), 176.8 (Jan. 10, 2026), 7.4 (Jan. 26, 2026), and 13.5 (Jan. 30, 2026); final errors were 197.2, 188.1, 2356.6, 37.0, 4.0, and 1.2 pixels respectively. Run 1 was excluded because the code crashed.
- **Residual oscillation traced to perception noise.** The small remaining oscillations in the best runs were attributed to noise in the segmentation output.
- **Thermal behavior was mild.** During the August 8 training experiment, run while the spacecraft was in eclipse, GPU temperature spikes of about 1–4 °C were observed, with an overall decreasing trend as the spacecraft spent more time in eclipse; GPU usage was more pronounced during training than inference. Bursty GPU utilization appeared during dynamic targeting, with bursts around 3–4 seconds at a 1 Hz recording rate.
- **No file corruption detected.** ZFS scrubs at six months and twelve months after launch found no checksum errors, attributed to the SSD's radiation-tolerant design, the relatively benign LEO radiation environment, and the payload being powered off most of the time. The SSD logged approximately 45 hours powered on after a year in orbit, and no behavior suggesting Single Event Effects was observed during experiments.
- **Radiation testing favored Western Digital drives.** In August 2022 proton testing at 202 MeV over about 8 hours, all WD devices had 10 times fewer Single Event Function Interrupt faults than Greenliant or Swissbit drives, and one destructive event permanently destroyed a Greenliant device. For a ~500 km orbit, the expected SN530 rate is approximately 0.5 SEFI per year, with destructive events at approximately 0.05 per year, translating to roughly a 10% probability of permanent device failure after 2 years. The recommendation is to fly the WD IX SN530 1 TB NVMe SSD for LEO.
- **Twelve experiments over about a year.** Training occurred on Aug. 8, 2025 and Dec. 15, 2025 (three training experiments total, with the August one run in two 30-epoch cycles); weights from August were used for the September, November, and December experiments, and the December weights for the January experiments. Most experiments were inference and dynamic targeting.

## Methodology in Plain English

The perception model is Fast-SCNN, a small convolutional network chosen for fast inference on edge hardware. Because real spacecraft datasets are tiny, the team first "distilled" a large frozen vision foundation model (DINO V1) into Fast-SCNN on the ground: they fed images from ImageNet-21k (about 14.2 million images) through both networks and trained Fast-SCNN to reproduce DINO's intermediate feature map using a mean-squared-error loss with bicubic upsampling, updating only the encoder via stochastic gradient descent (Adam). To handle the single-channel thermal camera, the first convolutional layer was changed from three input channels to one by averaging across RGB.

On orbit, the distilled network was fine-tuned on labeled thermal Moon images uplinked from Earth, using hyperparameters kept consistent with the original Fast-SCNN paper. At inference time, the segmented Moon's centroid provides X/Y pixel coordinates, which feed a Kalman filter built on a constant-velocity model with state [u, v, u̇, v̇]; the filter resets when the square root of its covariance trace exceeds a threshold. The filtered coordinates become attitude commands through a ROS 2 pixel-based command service that reaches the Attitude Control Board via a microcontroller running micro-ROS, bridged to DDS by a micro-ROS Agent over UDP.

The spacecraft itself is a 6U CubeSat in a sun-synchronous near-polar orbit at approximately 500 km altitude with a roughly 94-minute period; the beta angle varied from about −26.2° to −16.0° over roughly a year, and the spacecraft is in eclipse about 30% of the time. The Jetson TX2 NX was thermally sunk to the spacecraft wall. The software stack ran on a customized NVIDIA Linux for Tegra 32.7.3 (Ubuntu 18.04) with Docker images for resource/temperature monitoring, camera capture, ML packages, and the networks.

## Why This Matters

**Impact on research.** The paper moves onboard learning from "inference only" to a full cycle — train, then act — on flight hardware, and pairs it with an open-source middleware and file-system stack. It also provides engineering evidence (thermal traces, GPU/CPU load, proton-beam SSD data, scrub results) that is often missing from autonomy papers.

**Real-world applications:**

- Deep-space and cislunar spacecraft that must respond to targets or events without waiting for a ground command cycle.
- Earth observation, where onboard segmentation can decide what to downlink rather than sending raw imagery.
- Inspection, rendezvous, and proximity operations, where vision-based pointing and tracking are needed.
- Small-satellite and CubeSat operators who want to fly COTS compute with a known radiation and file-integrity picture.

**Industry relevance.** The results give concrete, publishable numbers for how a Jetson-class GPU behaves thermally and computationally in LEO, and a vendor-by-vendor SSD radiation comparison with an explicit flight recommendation — both directly usable by mission designers choosing COTS avionics.

## Future Directions

- **Faster, tighter loops.** Higher frame rates and inference rates are noted as future work; the Boson camera supports 60 Hz, far above the 1–2 Hz used here.
- **Cleaner perception for control.** The residual pointing oscillation was traced to segmentation noise, motivating better segmentation or more robust filtering for fast target tracking.
- **Radiation characterization gaps.** Total ionizing dose was not comprehensively assessed, and additional Cobalt-60 testing is recommended; USB power consumption could not be measured to determine latchup-freedom, and concepts of operations must accommodate periodic power cycling for SEFI recovery.
- **Toward flight-certifiable robotics middleware.** The authors frame the ROS 2 demonstration against the absence of a reusable, accessible flight software framework for robotic space systems, pointing at efforts such as NASA's Space ROS, and at the broader Edge Node multi-satellite formation-flying mission that Edge Node Lite precedes.

## Target Audience

Spacecraft systems engineers and autonomy researchers evaluating COTS compute for flight; robotics practitioners interested in porting perception-and-control stacks from terrestrial platforms to space; small-satellite and CubeSat teams selecting SSDs, file systems, or middleware; and graduate students studying onboard learning, vision-based control, or spaceflight software architecture. Readers seeking ground benchmark tables against the non-distilled Fast-SCNN baseline should note that the datasets and benchmarking promised in Section 5.6 are outside the portion of the text available here, so those specific comparison numbers are not reported in this summary.

## Authors’ abstract

Deep space missions increasingly require spacecraft capable of autonomously operating in environments with communication delays and bandwidth limitations. A key enabler of such autonomy is the ability to run learning-based algorithms directly onboard. In this work, we present a flight deployment on a 6U CubeSat that demonstrates (1) onboard training and inference of a thermal segmentation model on an NVIDIA Jetson TX2 NX GPU in space and (2) closed-loop attitude control…

[The full abstract on arXiv](https://arxiv.org/abs/2610.19122)

[Read the original paper](https://arxiv.org/abs/2610.19122)

## Related papers

- [CLIS-MPPI: Closed-Loop Model Predictive Path Integral Control With Initial-State Sampling Under Execution Delay](https://robotics.world/paper/clis-mppi-closed-loop-model-predictive-path-integral-control-with-2610.21239) 2026-10-15 · cs.RO · Key terms of the title in common
- [Adaptive Mean Flow for Responsive Closed-Loop Robot Control](https://robotics.world/paper/adaptive-mean-flow-for-responsive-closed-loop-robot-control-2610.06089) 2026-10-05 · cs.RO · Key terms of the title in common
- [Suppression Sticks, Locality Is Fragile: A Closed-Loop Target-and-Control Audit of Task-Vector Negation in VLA Policies](https://robotics.world/paper/suppression-sticks-locality-is-fragile-a-closed-loop-target-and-control-2608.04692) 2026-08-05 · cs.RO · Key terms of the title in common
- [AutoAgent0: An Agentic Runtime for Safe Closed-Loop Driving](https://robotics.world/paper/autoagent0-an-agentic-runtime-for-safe-closed-loop-driving-2610.18866) 2026-10-13 · cs.RO · Key terms of the title in common
- [LoopWAM: Closed-Loop Generalist Policy Improvement from Deployment Rollouts](https://robotics.world/paper/loopwam-closed-loop-generalist-policy-improvement-from-deployment-2610.18873) 2026-10-13 · cs.RO · Key terms of the title in common

---

Canonical: https://robotics.world/paper/learning-in-orbit-onboard-training-and-closed-loop-attitude-control-2610.19122
