BASIL: Fast broadband line-rich spectral-cube fitting and image visualization via Bayesian quadrature

Ya-Yun Lin, M. Adachi, S. Spezzano, Gordian Edenhofer, Vincent Eberle, Michael A. Osborne, P. Caselli · Astronomy and Astrophysics · 2025

Context . Mapping the spatial distributions and abundances of complex organic molecules in hot cores and hot corinos surrounding nascent stars is crucial for understanding the astrochemical pathways and the inheritance of prebiotic material by nascent planetary systems. However, the line-rich spectra from these sources pose significant challenges for robustly fitting molecular parameters due to severe line blending and unidentified lines. Aims . We present an efficient framework, Bayesian Active Spectral-cube Inference and Learning (BASIL), for estimating molecular parameter maps – excitation temperature, column density, centroid velocity, and line width – for hundreds of molecules based on the local thermodynamic equilibrium (LTE) model, applied to wideband spectral datacubes of line-rich sources. The main aim is to allow the simultaneous fitting of hundreds of molecules to disentangle line blending issues and map the kinematic and abundance spatial distributions of the molecular parameter maps. Methods . We adopted stochastic variational inference (SVI) to infer molecular parameters from spectra at individual positions, achieving a balance between fitting accuracy and computational speed. For obtaining parameter maps, instead of querying every location or pixel, we introduced an active learning framework based on Bayesian quadrature and its parallelization. Specifically, we assessed and selected the locations or pixels of spectrum that are most informative for estimating the entire set of parameter maps by training a Gaussian processes (GP) model. By greedily selecting locations with maximum information gain, we achieve sublinear convergence: the estimation error of the GP model for parameter maps drops rapidly in the early stages of iterations and then stabilizes. At this point, we can halt the fitting process, providing a fast and reasonably accurate visualization of the molecular parameter maps, while further accuracy is obtained through additional iterations of model training by querying more locations. Results . We benchmarked our algorithm using a synthetic spectral cube of 40 000 (200 × 200) pixels, in which each pixel contains 138016 frequency grids, and fit an LTE model with SVI to obtain four spectral parameters for a list of 117 molecules (117 × 4 dimensions). Our algorithm is able to estimate 468 molecule parameter maps for 40 000 pixels in ~180 hours (18 iterations of 50 parallel fittings, ~10 hours per batch), achieving a comparable root mean square error across all data points. The full analysis is done on a high-memory server with multi-core CPUs. In contrast, a traditional MCMC fitting would take approximately ~2 × 10 6 hours to achieve the same level of accuracy, while requiring significant manual tuning. In particular, with two iterations of ~20 hours computational time, the GP model predicts parameter maps that are visually accurate. Additional training iterations provide progressively more accurate results. This quick visualization meets the demands of big data in modern astronomical surveys.

Read the paper · More papers on PaperTik