← Back to all posts

Orbital Edge Intelligence: TinyML on Sub-Watt Space Microcontrollers

By Shaunak Balkundi · · 8 min read · Research Project (CSC-610, Fergusson College)
TinyML Orbital Edge Computing Quantization Embedded C++ Astrophysics

Modern spaceborne instruments generate gigabits of telemetry per second, yet Low Earth Orbit (LEO) ground contacts last only 8 to 12 minutes per pass. AstroTinyML bridges that gap by turning spacecraft from passive data recorders into autonomous, sub-watt "extract-and-actuate" edge nodes.

1. The Store-and-Downlink Latency Trap

Satellites in LEO (400–700 km altitude, traveling at ~7.6 km/s) get just 60 to 90 minutes of total ground-station contact per 24-hour cycle. Under the traditional store-and-downlink model, raw telemetry is buffered to solid-state recorders, dumped during an overpass, and processed hours or days later on Earth.

That 4-to-24-hour delay breaks down in two critical regimes:

  • Disaster Response (NISAR Nepal Floods): High-resolution dual-frequency SAR imagery captured over flooded Himalayan valleys waited in downlink and server queues for days after the disaster unfolded, instead of beaming emergency flood vectors over low-bandwidth relays within minutes.
  • Multi-Messenger Astrophysics & Alert Deluges: Wide-field surveys like the Vera C. Rubin Observatory generate ~15 TB and 10 million alerts per night, while Gamma-Ray Bursts (GRBs) and kilonovae fade rapidly via steep power-law decay:

$$F(t) = F_0 \cdot \left(\frac{t}{t_0}\right)^{-\alpha}, \quad \alpha \ge 1.2$$

By the time ground operators verify an event and uplink a repointing command, the transient has faded by 3 to 5 orders of magnitude.

Legacy Ground-in-the-Loop (4–24 hrs):
Sensor → SSR Buffer → Ground Pass (1–12 hrs) → Ground Ingestion / MOC (1–4 hrs) → Uplink Slew

AstroTinyML Extract-and-Actuate (≤ 250 ms):
DMA Raw Stream → AstroTinyML INT8/INT4 Edge Inference (≤ 200 ms) → Event ID → Autonomous Slew / ISL Alert

2. One Mathematical Abstraction Across 1D and 2D Sensors

Whether monitoring 1D gamma-ray photon ratemeters (AGILE, Fermi GBM), 2D optical difference images (Vera C. Rubin), or 2D SAR log-ratio maps (NISAR), quiescent background accounts for over 99.8% of samples. AstroTinyML models all three as an inhomogeneous point process and extracts a unified standardized statistical excursion $S_i$ over a causal background window:

$$S_i = \frac{x_i - \hat{b}_i}{\hat{\sigma}_{b,i}}$$

In 1D high-energy ratemeters this reduces to Li-Ma Poisson significance; in 2D optical surveys to normalized difference excursions; and in 2D SAR to normalized log-ratio amplitude deviations. Operating directly on $S_i \ge 2.0$ gives complete mathematical invariance across sensor modalities.

3. Why Standard Quantization Fails—and How SNR-QAT Fixes It

Standard 8-bit or 4-bit quantization minimizes global Mean Squared Error (MSE) across calibration data. Because 99.8% of orbital telemetry is background noise, the resulting quantization step size $\Delta = \frac{x_{\max} - x_{\min}}{2^b - 1}$ rounds subtle $2\sigma\text{--}3.5\sigma$ astrophysical transients straight to zero—causing over a 40% drop in sub-threshold recall.

AstroTinyML resolves this with SNR-Weighted Quantization-Aware Training (SNR-QAT) paired with Learned Step Size Quantization (LSQ). Each training sample receives a dynamic excess-significance weight $w_i$ and an asymmetric hinge loss $\mathcal{L}_{\text{asym}}$ that heavily penalizes missed events (false negatives):

$$w_i = 1.0 + \gamma \cdot \max\left(0,\; \frac{y_i - b_i}{\sqrt{b_i + \epsilon}}\right), \qquad \mathcal{L}_{\text{total}} = \frac{1}{N}\sum_{i=1}^{N} w_i \cdot \left[\mathcal{L}_{\text{CE}}(y_i, \hat{y}_i) + \beta\,\mathcal{L}_{\text{asym}}(y_i, \hat{y}_i)\right]$$

Backpropagating $\frac{\partial \mathcal{L}_{\text{total}}}{\partial \alpha_l}$ directly into the LSQ scale factors adaptively shrinks $\alpha_l$ in early convolutional layers so sub-$\sigma$ signals remain resolvable.

4. Asymmetric Mixed-Precision & 73.4 KB Deterministic SRAM

Aerospace standards (ECSS-E-ST-40C, NASA-STD-8739.8) strictly forbid dynamic heap allocation (malloc/free) during flight. Space-grade microcontrollers such as the ARM Cortex-M4/M7 (STM32F756, Vorago VA416x0) or RISC-V cores (Cobham Gaisler NOEL-V) offer less than 512 KB of on-chip SRAM.

  • Front-End Stem & Backbone Activations (INT8): Kept in native INT8 to match ARM CMSIS-NN SMLAD SIMD instructions with zero runtime casting.
  • Deep Layer Weights (INT4): Packed two weights per byte in read-only Flash (50% Flash savings) and unpacked in-register via single-cycle bit-shifts.
  • Single-Point Decision Head (FP16): Cast only once after Global Average Pooling on a 64–128 element vector to prevent sigmoid saturation.

Using an offline interval-graph coloring memory scheduler, overlapping tensor lifetimes are packed into a single statically allocated .bss array:

// 75 KB static .bss tensor arena (bounded peak: ~73.4 KB)
alignas(16) static uint8_t g_tensor_arena[75 * 1024];

Memory Guarantee: Because model weights execute in-place from Flash (XIP), peak dynamic SRAM is bounded to ~73.4 KB (14.7% of a 512 KB budget)—leaving over 425 KB of headroom for telemetry buffers and ADCS flight control.

5. Surviving Vacuum Thermal Limits & Eclipse Brownouts

In a vacuum, there is no convective cooling—only radiative dissipation ($Q_{\text{rad}} = \epsilon \sigma_{\text{SB}} A_{\text{rad}} (T_{\text{rad}}^4 - T_{\text{space}}^4)$). While COTS accelerators (5–15 W) quickly exceed thermal limits on smallsats, AstroTinyML runs below 0.8 W and ≤ 45 mJ per 1.0 s inference window, maintaining steady operation through 35-minute orbital eclipses. Atomic 1-second windows write a 32-byte checkpoint token to non-volatile FRAM/MRAM so inference resumes immediately after a power brownout.

6. Target Dual-Domain Benchmarks

Domain Metric Target Specification
Astrophysics Sub-threshold ($2\sigma\text{--}3.5\sigma$) Recall ≥ 92.0% (vs. ≤ 55% uniform INT8)
Astrophysics Bright (> $5\sigma$) Recall ≥ 99.5%
Astrophysics False Alarm Rate (FAR) ≤ 1 / orbit (90 min)
Embedded Peak Dynamic SRAM ≤ 75.0 KB (Ceiling: 500 KB)
Embedded Inference Latency (Cortex-M7) ≤ 120 ms per 1.0 s window
Embedded Heap Fragmentation 0 bytes (strictly zero heap)

By uniting statistical excursion modeling, SNR-preserving quantization, and compile-time memory verification, AstroTinyML lays the groundwork for autonomous space observatories capable of reacting to cosmic and terrestrial emergencies in milliseconds rather than days.