SatMAE: Pre-training Transformers for Temporal and Multi-Spectral Satellite Imagery

Yezhen Cong, Samar Khanna, Chenlin Meng, Patrick Liu, Erik Rozi, Yutong He, Marshall Burke, David B. Lobell, Stefano Ermon · DOI

Introduction

Self-supervised learning (SSL) has revolutionized computer vision by enabling models to learn from vast amounts of unlabeled data. However, most existing SSL techniques are "RGB-centric," designed for natural images like those found in ImageNet. These models often fail to exploit the unique properties of satellite imagery, which is characterized by temporal sequences and multi-spectral data cubes.

SatMAE addresses this gap by adapting the Masked Autoencoder (MAE) framework to the specific dimensions of remote sensing. By introducing specialized positional encodings and a novel "independent masking" strategy, SatMAE sets new benchmarks for tasks such as land cover classification and semantic segmentation, outperforming previous methods by significant margins.

The Challenge of Satellite Data

Satellite imagery is fundamentally different from standard photography. It is not merely a static picture but a time series with irregular intervals, capturing how landscapes evolve over months or years. Furthermore, it contains a multi-spectral data cube with dozens of bands—including infrared and thermal—that extend far beyond the visible light spectrum.

Standard models typically treat these extra bands as simple additional channels or ignore the temporal gaps between snapshots entirely. The authors of SatMAE argue that to truly "understand" the Earth from space, architectures must natively handle irregular temporal spacing and the distinct physical characteristics of different spectral bands.

Methodology

SatMAE builds upon the Masked Autoencoder (MAE) architecture, where a Vision Transformer (ViT) learns by reconstructing missing patches of an image. The researchers introduced two primary variants to handle the complexities of satellite data:

1. Temporal SatMAE

To process time-series data, the model incorporates temporal encoding based on the year, month, and hour of capture. A critical innovation here is Independent Masking. Unlike video models that often mask the same spatial region across all frames, SatMAE masks different patches at different time steps. This prevents the model from "cheating" by simply copying pixels from a previous frame, forcing it to learn the underlying dynamics of seasonal cycles and land-use changes.

2. Multi-spectral SatMAE

Rather than stacking all spectral bands into a single high-dimensional input, SatMAE groups bands (e.g., RGB+NIR, Red Edge, SWIR) based on their spatial resolution and wavelength. Each group is assigned a unique spectral positional encoding. This allows the transformer to capture the specific physical correlations and "spectral signatures" associated with different land types and sensors.

Datasets and Benchmarking

The study utilized several major remote sensing datasets for pre-training and evaluation:

  • fMoW (Functional Map of the World): A standard high-resolution RGB dataset.
  • fMoW-Sentinel: A new multi-spectral dataset created by the authors by cross-referencing fMoW locations with Sentinel-2 data, providing 13 spectral bands for over 700,000 images.
  • Downstream Benchmarks: Evaluation was conducted on NAIP (land cover), EuroSAT (13-band land cover), BigEarthNet (multi-label classification), and SpaceNet v1 (building segmentation).

Key Insights and Results

The research yielded several critical insights into the performance of Vision Transformers in remote sensing:

  • Overcoming the "Cheating" Problem: Independent masking proved essential. In high-framerate video, temporal redundancy allows models to guess missing patches easily. In satellite imagery, where the "delta" between images involves significant seasonal or structural changes, independent masking forces the model to perform complex reasoning about the Earth's surface.
  • Spectral Grouping: Treating 13 bands as 13 channels in a standard convolutional layer is sub-optimal. Grouping them by physical properties allows the model to better capture fine-grained spectral data.
  • State-of-the-Art Performance: On the fMoW RGB benchmark, SatMAE achieved a 6.29% improvement in Top-1 accuracy over previous self-supervised leaders. Incorporating temporal information provided an additional 4.48% gain.
  • Transfer Learning Success: When fine-tuned on EuroSAT, SatMAE reached a staggering 98.98% accuracy, significantly outperforming models initialized with standard ImageNet weights.

Limitations and Future Work

While SatMAE represents a significant leap forward, it faces challenges regarding computational complexity. Adding temporal and spectral dimensions increases the sequence length of tokens, which raises memory and compute requirements for the Transformer. Future work may involve exploring more efficient architectures, such as Swin Transformers, or using neural architecture search to determine the mathematically optimal way to group spectral bands beyond human intuition.

Summary updated

BibTeX
@inproceedings{cong2022satmae,
  author = {Yezhen Cong and Samar Khanna and Chenlin Meng and Patrick Liu and Erik Rozi and Yutong He and Marshall Burke and David B. Lobell and Stefano Ermon},
  title = {{SatMAE: Pre-training Transformers for Temporal and Multi-Spectral Satellite Imagery}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=WBhqzpF6KYH},
}
Figure