arXiv:2609.31206cs.LGSep 2026

Manuscript Offprint

arXiv:2609.31206

Self-Supervised Representation Learning: From Spectral Foundation Models to Auroral Emission Spectra

Matthieu Le Lain, Gaël Cessateur, Sébastien Lefèvre

ABSTRACT

Auroral spectrographs such as the Auroral Spectrograph In Skibotn (ASIS) record hundreds of thousands of emission spectra, but only a few hundred can be labelled by an expert. To exploit the rest, we pretrain a 1D Vision Transformer with a masked autoencoder on 223 000 unlabelled spectra. Without labels, its representation recovers the emission-line intensity ratios that physicists use to diagnose the precipitating particles ( R2R^{2} 0.91 vs. 0.77 for an untrained control) and, under one linear probe, classifies as well as 13 features designed by experts. Fine-tuned, the model outperforms the previous supervised auroral classifier on its own benchmark (macro-AP 88.5 vs. 77.8), reaches 0.870 mAP, and exceeds the same architecture trained from scratch by +0.159 with 10 % of the labels; attribution shows that it uses both N2+N_{2}^{+} bands. Could an existing pretrained model replace it? Two astronomical spectral foundation models and a time-series model transfer according to their spectral window: SpectraFM, trained in the infrared, falls below the untrained control, whereas SpecFormer, trained in the optical, approaches in-domain pretraining without reaching it.

Index Terms— self-supervised learning, masked autoencoder, vision transformer, auroral spectroscopy, multilabel classification

1. INTRODUCTION

An auroral emission spectrum records which atoms and molecules of the upper atmosphere are excited by precipitating particles, and at which energy. Line intensities and their ratios are established diagnostics of this precipitation: the 630/557.7 nm ratio of the two forbidden oxygen lines traces the energy of precipitating electrons [1], and the hydrogen Balmer lines signal proton precipitation [2]. The ASIS spectrograph at Skibotn, Norway [3], has recorded nearly 330 000 calibrated spectra over 220 nights since 2023. Exploiting such a corpus requires knowing, for each spectrum, which signatures it contains, and today this is decided by an expert who inspects the spectra one by one: after three observing seasons, only 811 spectra have been labelled.

Two routes can exploit the unlabelled corpus. The first is self-supervised learning (SSL): pretraining an encoder on the spectra themselves, so that a classifier trained afterwards needs far fewer labels. The second is to reuse a spectral foundation model pretrained elsewhere, on stellar or galaxy spectra. Whether such models, built for the absorption spectra of astronomical sources, transfer to the emission spectra of the upper atmosphere has never been measured. The answer decides whether a new spectroscopic domain must pretrain its own encoder or can reuse an existing one: what transfers, and why?

Our contributions are twofold. (1) A self-supervised encoder for auroral spectra whose frozen representation, learned without labels, recovers these line ratios and, under the same linear probe, classifies as well as 13 hand-crafted features that encode the diagnostics an expert reads on a spectrum (line intensities, their ratios and the continuum level); fine-tuned, it beats the same architecture trained from scratch at every label budget and outperforms the previous supervised auroral classifier [4] on its own benchmark, and attribution shows that it relies on physically coherent emission systems. (2) Under one evaluation protocol applied identically to every representation, we compare this in-domain pretraining with two astronomical foundation models, SpectraFM [5] (infrared stellar spectra) and SpecFormer [6] (optical galaxy spectra), and with a generic time-series model, Mantis [7]: none replaces in-domain pretraining, and their transfer follows the overlap between their pretraining wavelength window and ours rather than the physical nature of the sources.

Machine learning for aurorae has focused on all-sky images, classified by morphology [8, 9, 10, 11]; spectra, which resolve the emitting species, have received little attention. Our earlier supervised 1D Vision Transformer (ViT-1D) [4], trained on 719 labelled spectra, had to use 8 coarse tokens of 35 nm to avoid overfitting and did not outperform a single-patch MLP (macro-AP 77.8 vs. 81.1). Masked autoencoders (MAE) [12] have been applied to 1D signals, from Raman spectra [13] to electrocardiograms [14]; autoencoders have been trained on astronomical spectra [15, 16], and spectral foundation models now exist: SpectraFM [5], trained on APOGEE infrared stellar spectra, a stellar Transformer trained on Gaia XP spectra [17], SpecFormer, the spectrum encoder of AstroCLIP [6], trained on DESI optical galaxy spectra, and OmniSpectra [18]. Informed masking, which concentrates the mask on informative regions, is established in vision [19, 20, 21, 22], but adapts the mask to each image, whereas in a spectrum the informative positions are fixed along the wavelength axis, which allows a static prior. Mantis [7], a generic time-series foundation model, provides a comparison point with no spectral prior. None of these works evaluates transfer to atmospheric emission spectra, where lines are in emission, there is no redshift, the continuum is a nuisance, and the classes are combinations of lines.

References (24)