Automated Stellar Classification of Main Sequence Stars Using eXtreme Gradient Boosting

The classification of main-sequence stars is a fundamental astrophysical task that has become increasingly data-heavy. With modern astronomical surveys generating unprecedented volumes of optical spectra, manual categorization is no longer computationally feasible. To address this issue, this study uses the latest robotic targeting data from the Sloan Digital Sky Survey V (SDSS-V) Data Release 20 (DR20) to categorize stars along the OBAFGKM spectral sequence. Rather than relying on raw flux arrays, this method focuses on physical chemistry by engineering a 16-dimensional feature vector which explicitly isolates temperature-dependent spectral lines such as Hydrogen Balmer series (H alpha, H gamma, H delta) for hot F/G stars and Titanium Oxide (TiO) molecular bands for cool M-type dwarfs. A baseline Random Forest classifier trained for this yielded an 86% accuracy initially. To improve upon this baseline and resolve the overlapping boundary classifications, we upgraded and compared this against an advanced eXtreme Gradient Boosting (XGBoost) architecture. The XGBoost architecture minimized boundary errors, achieving a final test accuracy of 87% across four spectral classes (F, G, K, and M). Crucially, the model successfully resolved the subtle F/G and K/M thermodynamic boundaries, confining misclassifications strictly to immediate sequence neighbours. This demonstrates a robust, automated pipeline capable of mapping true physical temperature gradients in massive modern datasets. This work was produced by young researchers through the International Scientific Youth Community (ISYC), a youth-led non-profit research community. It is shared as a preprint: it has not been peer reviewed by a journal, and the authors may develop it further and submit it to one.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-22
DOI
https://doi.org/10.5281/zenodo.24448519
Primary Topic
Stellar, planetary, and galactic studies
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Automated Stellar Classification of Main Sequence Stars Using eXtreme Gradient Boosting

Soumil Karmakar
Zenodo (CERN European Organization for Nuclear Research)
Stellar, planetary, and galactic studies
preprint

Automated Stellar Classification of Main Sequence Stars Using eXtreme Gradient Boosting

Soumil Karmakar
preprint en

Abstract

The classification of main-sequence stars is a fundamental astrophysical task that has become increasingly data-heavy. With modern astronomical surveys generating unprecedented volumes of optical spectra, manual categorization is no longer computationally feasible. To address this issue, this study uses the latest robotic targeting data from the Sloan Digital Sky Survey V (SDSS-V) Data Release 20 (DR20) to categorize stars along the OBAFGKM spectral sequence. Rather than relying on raw flux arrays, this method focuses on physical chemistry by engineering a 16-dimensional feature vector which explicitly isolates temperature-dependent spectral lines such as Hydrogen Balmer series (H alpha, H gamma, H delta) for hot F/G stars and Titanium Oxide (TiO) molecular bands for cool M-type dwarfs. A baseline Random Forest classifier trained for this yielded an 86% accuracy initially. To improve upon this baseline and resolve the overlapping boundary classifications, we upgraded and compared this against an advanced eXtreme Gradient Boosting (XGBoost) architecture. The XGBoost architecture minimized boundary errors, achieving a final test accuracy of 87% across four spectral classes (F, G, K, and M). Crucially, the model successfully resolved the subtle F/G and K/M thermodynamic boundaries, confining misclassifications strictly to immediate sequence neighbours. This demonstrates a robust, automated pipeline capable of mapping true physical temperature gradients in massive modern datasets. This work was produced by young researchers through the International Scientific Youth Community (ISYC), a youth-led non-profit research community. It is shared as a preprint: it has not been peer reviewed by a journal, and the authors may develop it further and submit it to one.

Zenodo (CERN European Organization for Nuclear Research)
Stellar, planetary, and galactic studies
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon