Spectral classification of OB-type stars using tree-based ensemble methods and evaluation of their explainability
J.E. Gonzales, S. Simón-Díaz, S. Cuellar, J.A. Conejero, G. Holgado, A. de Burgos
Key points
From the paper's conclusion- We aim to develop a robust machine learning framework for the automated spectral classification of massive OB-type stars by assessing the performance and evaluating the interpretability of several tree-based ensemble algorithms.
Abstract
The advent of large-scale spectroscopic surveys will deliver tens of thousands of spectra of blue massive stars spanning a wide range of spectral types (SpTs) and luminosity classes (LCs). This data volume renders traditional spectral classification techniques increasingly impractical and motivates the development of automated classification tools. We aim to develop a robust machine learning framework for the automated spectral classification of massive OB-type stars by assessing the performance and evaluating the interpretability of several tree-based ensemble algorithms. Using a large catalog of high-quality optical spectra of OB-type stars (plus a few A supergiants) compiled within the IACOB project, we designed three hierarchical experiments of increasing complexity: (1) classification into broad O, B, and A SpTs; (2) fine-grained classification within the O and B domains; and (3) joint classification of spectral subtype and LC. We evaluated six algorithms, ranging from single decision trees to ensemble methods (random forest and extra trees) and gradient boosting techniques (XGBoost, LightGBM, and histogram-based gradient boosting). We further analyzed model consensus and probabilistic outputs to assess the relative impact of epistemic and aleatoric uncertainties and employed Shapley additive explanations (SHAP) value analysis to provide an interpretation of the model decisions by identifying the features that drive each classification. The models achieve excellent performance for broad SpT classification when compared with SIMBAD, with LightGBM reaching an accuracy above 98%. For fine-grained spectral subtypes, random forest provides the most robust results (89%). For the most challenging task combining SpT subtypes and LCs, XGBoost reaches a ∼,77% accuracy. The decrease in performance is primarily driven by intrinsic degeneracies in the classical spectral classification scheme. Our SHAP analysis confirms that the models rely on meaningful spectral features. We also find a high level of agreement among different algorithms, indicating that current performance limits are largely set by the intrinsic complexity of the classification problem rather than by model choice. Tree-based ensemble methods provide a reliable and interpretable framework for the automated spectral classification of massive OB-type stars. The combination of full-spectrum modeling, algorithm comparison, and model interpretability offers a robust approach for future large-scale spectroscopic surveys.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Hybrid Machine Learning Classification of AGB Stars in Gaia DR3Proceedings of the International Astronomical Union · 2026
- Bayesian classification of astronomical spectra with class uncertaintiesarXiv · 2026
- Reliability‐Aware Star–Galaxy–Quasar Classification in SDSS DR17 : Feature Ablation, Magnitude Robustness, and Probability CalibrationAstronomische Nachrichten · 2026
- SpecFANN: Spectral Fitting via Artificial Neural Networks. I. A deep-learning-based emulator and fitting suiteAstronomy and Astrophysics · 2026
- Quantitative spectroscopy of single and multiple OB-type starsAstronomy and Astrophysics · 2026
- Multi-Method Machine Learning Classification of Astronomical Sources with Rubin Data Previews: a Spectroscopy-Free Approach with DP1 and DP2arXiv · 2026