Leveraging Machine Learning for Accurate and Fast Stellar Mass Estimation of Galaxies

Vahid Asadi, Akram Hasani Zonoozi, Hosein Haghi, Fatemeh Abedini, Atousa Kalantari, Marziye Jafariyazani, Nima Chartab · 2025

Read Leveraging Machine Learning for Accurate and Fast Stellar Mass Estimation of Galaxies by Vahid Asadi, Akram Hasani Zonoozi, Hosein Haghi, Fatemeh Abedini, Atousa Kalantari, Marziye Jafariyazani, Nima Chartab (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2506-21067.txt.

Introduction

Vahid Asadi and co-authors test in 2025 whether machine learning can weigh a galaxy as well as the standard method, but much faster. The standard method fits a model to how a galaxy's light spreads across colors. That fit gives traits like the mass in stars, but it is slow and heavy when a survey holds millions of galaxies.

The team tried a range of learning methods, both guided by labeled data and not. They included grouping methods, tools that shrink data to its main traits, and tools that lay data out in a flat map. Each method was judged on how close its mass values came to the standard fits. A fast method that stays accurate would let astronomers work through huge sky surveys in far less time. That speed opens the door to new studies of how galaxies grow.

Catalog record

CREATORVahid Asadi, Akram Hasani Zonoozi, Hosein Haghi, Fatemeh Abedini, Atousa Kalantari, Marziye Jafariyazani, Nima Chartab
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE51 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2506-21067

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

Leveraging Machine Learning for Accurate and Fast Stellar Mass Estimation of Galaxies Vahid Asadi, Akram Hasani Zonoozi, Hosein Haghi, Fatemeh Abedini, Atousa Kalantari, Marziye Jafariyazani, Nima Chartab Abstract Unveiling the evolutionary history of galaxies necessitates a precise understanding of their physical properties. Traditionally, astronomers achieve this through spectral energy distribution (SED) fitting. However, this approach can be computationally intensive and time-consuming, particularly for large datasets. This study investigates the viability of machine learning (ML) algorithms as an alternative to traditional SED-fitting for estimating stellar masses in galaxies. We compare a diverse range of unsupervised and supervised learning approaches including prominent algorithms such as K-means, HDBSCAN, Parametric t-Distributed Stochastic Neighbor Embedding (Pt-SNE), Principal Component Analysis (PCA), Random Forest, and Self-Organizing Maps (SOM) against the well-established LePhare code, which performs SED-fitting as a benchmark. We train various ML algorithms using simple model SEDs in photometric space, generated with the BC03 code. These trained algorithms are then employed to estimate the stellar masses of galaxies within a subset of the COSMOS survey dataset. The performance of these ML methods is subsequently evaluated and compared with the results obtained from LePhare, focusing on both accuracy and execution time. Our evaluation reveals that ML algorithms can achieve comparable accuracy to LePhare while offering significant speed advantages (1,000 to 100,000 times faster). K-means and HDBSCAN emerge as top performers among our selected ML algorithms. Supervised learning algorithms like Random Forest and manifold learning techniques such as Pt-SNE and SOM also show promising results. These findings suggest that ML algorithms hold significant promise as a viable alternative to traditional SED-fitting methods for estimating the stellar masses of galaxies. I Introduction A key objective of observational astronomy is to understand the evolution of galaxies over time. This requires deciphering the information encoded in their spectral energy distributions (SEDs) which provide insights into their key physical properties such as stellar mass, star formation rate (SFR), redshifts, age, and dust content. Assuming the galaxy’s star formation history (SFH), the initial mass function (IMF), and how dust affects light as the initial input, one can generate a theoretical SED and compare it to the observed photometric data of the galaxy. The model parameters are then adjusted until the theoretical SED closely matches the observations. Finally, the best-fitting model is used to infer the galaxy’s physical properties ( Maraston & Stromback 2011 ; Walcher et al. 2011 ; Conroy 2013 ; Hayward & Smith 2015 , e.g.,) . Despite their widespread use, traditional galaxy analysis methods based on fitting SEDs are known to introduce uncertainties. These uncertainties arise from the inherent assumptions required about the galaxy’s composition, including its SFH, IMF, and dust content. Each of these choices can dramatically impact the derived physical properties. For instance, Acquaviva et al. 2015 evaluated the impact of different modeling assumptions on the recovered SED parameters and found that incorrect parameterizations of the SFH can lead to substantial changes in the derived physical properties. This finding has been corroborated by the works of Wuyts et al. 2009 , Michałowski et al. 2014 , Sobral et al. 2014 , and Simha et al. 2014 , all of whom reported significant effects of SFH on the derived galaxy stellar mass across various observational datasets. Additionally, Pacifici et al. 2015 discovered that the simplistic assumption of an exponentially declining SFH, along with a basic dust law and no contribution from emission lines, fails to accurately recover the true star formation rate–mass relationship for star-forming galaxies. Similarly, Iyer & Gawiser 2017 and Lower et al. 2020 found that fitting the SFH using simple functional forms can introduce biases of up to 70% in the recovered total stellar mass. Hemmati et al. 2019 demonstrated that Self-Organizing Maps ( Kohonen 1981 , SOM,) , trained on a set of SEDs generated using the stellar population synthesis models of Bruzual & Charlot 2003 (hereafter BC03), can achieve accuracy comparable to traditional SED-fitting for estimating galaxy masses at z\sim 1 . By learning from extensive and diverse synthetic SED samples, machine learning (ML) models like SOM can efficiently map observed photometry to underlying physical properties of galaxies across a broad and continuous parameter space. In contrast, traditional fitting methods rely on predefined parameter grids, which limit flexibility and may inadequately sample the full parameter space. The key advantage of ML approaches lies in their ability to capture complex, nonlinear relationships between SEDs and physical properties—relationships that are often difficult to model explicitly using template-based methods. For instance, ML methods can help break classical degeneracies (e.g., age–dust–metallicity) that plague \chi^{2} -based SED fitting. Additionally, ML algorithms exhibit greater robustness to noisy or incomplete data, as they dynamically weight photometric bands based on predictive relevance rather than relying on rigid template matching. While ML methods inherit some limitations from the synthetic training data-such as simplified SFHs, fixed IMFs, and idealized dust attenuation laws-it mitigates certain biases inherent in traditional approaches and offers significant improvements in computational efficiency. Moreover, traditional SED fitting can be computationally intensive, which may hinder the analysis of large datasets. This computational challenge is particularly relevant for upcoming large-scale surveys, where efficient analysis methods are critical for timely scientific insights. Hemmati et al. 2019 showed that SOM can achieve speed improvements of up to 10^{4} on a CPU and 10^{6} on a GPU compared to conventional SED-fitting methods. For example, this enables Rubin-LSST’s expected 30 billion galaxies to be processed in hours—rather than the several years required by traditional SED-fitting making large-scale survey analysis feasible. Furthermore, advancements in the emulation of expensive SED models, such as neural network-based approaches, offer another promising avenue for mitigating computational costs while retaining accuracy ( Alsing et al. 2020 ; Kwon et al. 2023 ; Mathews et al. 2023 , e.g.,) . This study expands upon prior work by conducting a comprehensive comparison of multiple ML algorithms—both supervised and unsupervised—for galaxy mass estimation. Unlike previous studies focused on SOM ( Hemmati et al. 2019 ; Davidzon et al. 2022 , e.g.,) , we evaluate underexplored techniques, including Parametric t-SNE (Pt-SNE; Policar et al. 2021 ), PCA ( Maćkiewicz & Ratajczak 1993 ) , K-means ( MacQueen 1967 ) , and Random Forest ( Breiman 2001 ) . We benchmark their accuracy and computational efficiency against traditional SED-fitting using LePhare ( Arnouts et al. 1999 ; Ilbert et al. 2006 ) . Our goals are twofold: (1) to demonstrate the broad applicability of ML algorithms for galaxy mass estimation, and (2) to identify the optimal balance of accuracy and speed relative to SED-fitting. This paper is organized as follows: Sect. II describes the data used in this study. Sect. III provides a concise overview of the algorithms employed. Sect. IV explains the methods used for stellar mass estimation. Sect. V delves into a comparison of the performance of different trained models. Finally, Sect. VI discusses our most successful models and potential future directions. We adopt a flat \Lambda CDM cosmology with parameters H_{0}=70kms^{-1}Mpc^{-1} , \Omega_{m}=0.3 and \Omega_{\Lambda}=0.7 . All magnitudes are reported in the AB system ( Oke 1974 ) . II Data II.1 COSMOS galaxies In our comparative analysis of ML algorithms, we utilize broadband photometry data from the COSMOS2015 survey ( Scoville et al. 2007

Read the complete text