Stable AGN/SFG classification with minimal labels: K-means sampling in the MIGHTEE-COSMOS field
Classifying radio sources as active galactic nuclei (AGN) or star-forming galaxies (SFGs) is essential for deep radio surveys, but obtaining spectroscopic labels for millions of sources is prohibitively expensive. We develop a label-efficient method that classifies radio sources with very few labeled examples while preserving astrophysical population trends. We present a semi-supervised learning (SSL) framework combining repeated K-means clustering with a CatBoost classifier. Using a sample of about 4,500 sources from the MIGHTEE-COSMOS survey, the method applies K-means clustering to unlabeled data in a five-dimensional feature space (the infrared-radio correlation parameter, optical compactness, stellar mass, and two mid-infrared colors), selects the 50 most frequent cluster centroids across repeated runs, and trains a CatBoost classifier on those 50 labeled sources. Evaluated on a held-out test set of 1284 sources, the classifier achieves a weighted F1-score of \(0.9112 \pm 0.0032\) (AGN F1 = \(0.8693 \pm 0.0042\), SFG F1 = \(0.9345 \pm 0.0027\)). The method is stable: over repeated independent runs the weighted F1-score varies with a standard deviation of only 0.0032, compared to \(\sim\)0.018 for random baselines. A fully supervised classifier using all labels achieves a weighted F1-score of 0.9464, within \(\sim\)4\% of this upper-bound performance. Active learning further improves performance to \(0.9284 \pm 0.0051\) at 100 labels. Beyond classification accuracy, the method recovers the known increase in AGN fraction with redshift and stellar mass. Our SSL framework provides a stable, label-efficient method for AGN/SFG classification that preserves astrophysical population trends, making it suitable for large radio surveys.