skip to main content

gaia data release 4 documentation

16.3 Apsis modules

16.3.10 UGC

Author(s): Despina Hatzidimitriou, Ioannis Bellas-Velidis

16.3.10.1 Goal

The Unresolved Galaxy Classifier (UGC) module aims to estimate the redshift of candidate unresolved galaxies observed by Gaia, using a number of supervised learning models based on Support Vector Machines (SVM, Cortes and Vapnik 1995), applied to BP/RP spectra.

UGC performs three tasks:

  • 1:

    Galaxy candidate selection using a Support Vector Machine classifier (SVM-C) applied to sources with BP/RP spectra and magnitudes in the range 13≤G≤22.

  • 2:

    Redshift prediction for the selected galaxies using regression SVMs (SVM-R) trained on Gaia spectra with known redshifts in the range 0.0−0.6 and magnitudes in the range 13.5≤G≤21.5.

  • 3:

    Quality assessment of the predicted redshifts for publication.

16.3.10.2 Training data and models

This section presents an overview of the training data and SVM models trained offline for use by the UGC module in Apsis. For details see Section 16.3.10.9, Section 16.3.10.10, Section 16.3.10.11, and Hatzidimitriou and Bellas-Velidis (2026).

The SVM models used in UGC are pre-trained by a dedicated module, UgcLearn. This learning module, which operates independently of the Apsis chain, runs locally. The trained models are then exported as files and can be imported into the chain. The learning module utilizes the LIBSVM software library (Chang and Lin 2011) to provide configuration, tuning, training and testing functions for developing the required SVM models.

Two types of models are produced by UgcLearn, a classification (SVM-C) and parameter regression models (SVM-R). An SVM-C classification model is used in the candidate galaxy selection task, while a set of SVM-R regression models contributes to the UGC redshift estimator.

A common setup is implemented for the SVM model preparation (see LIBSVM for details):

  • •

    The s⁢v⁢m⁢_⁢t⁢y⁢p⁢e is `⁢C⁢-⁢S⁢V⁢C′ for SVM-C and `⁢e⁢p⁢s⁢i⁢l⁢o⁢n⁢-⁢S⁢V⁢R′ for SVM-R.

  • •

    The radial basis function (RBF) K⁢(𝐱𝐢,𝐱𝐣)=e⁢x⁢p⁢(−γ⁢|𝐱𝐢−𝐱𝐣|2) is chosen as the kernel function to map the training vectors 𝐱 into a higher multidimensional space.

  • •

    The tolerance of the termination criterion is set to e=0.001.

  • •

    A four-fold cross-validation is applied to determine the optimal kernel parameter γ and the penalty parameter C of the error term in the optimization problem.

As a supervised learning method, SVMs require a training dataset to build the model. Each instance in the dataset contains a vector of several input features (input variables) and a target value (the desired output). To assess the predictive performance of the trained SVM model, a test set is prepared in the same way as the training set.

In both types of models used in UGC, the input features are identical: the fluxes of the sampled mean BP/RP spectrum. The spectrum is sampled by SMSgen (see Section 16.3.1) on a fixed wavelength grid and provided in two parts of 120 samples each. The edges of the BP and RP sections of the spectrum are clipped to avoid low S/N data. Specifically, we remove the first 34 and last 6 samples from the BP part, and the first 4 and last 10 samples from the RP part. The samples form an array of 186 flux values that always cover the same portion of the spectrum; therefore, the wavelength scale is redundant and not used as an input feature.

The input fluxes are normalized in a two-step process. First, the fluxes of each spectrum are simply divided by the maximum flux value in that spectrum. Then, an unbiased standardization is applied to each sample flux by subtracting the average flux of that sample across all input spectra and dividing by the corresponding standard deviation.

The target of the SVM-C model comprises three classes (galaxy, quasar, star), or more specifically, the probabilities that a source belongs to each of these classes. The target of the SVM-R model is a single value — the spectroscopic redshift of the source.

The dataset EmpLib

An auxiliary dataset, the EmpLib library (Section 16.3.10.9), is used to train and validate the SVM models. Originally designed for the redshift estimator, it is also employed for the source classifier. The library contains data for 1 482 650  Gaia-observed sources matched to SDSS DR17 (Abdurro’uf et al. 2022) extragalactic sources, each with a known spectroscopic redshift and other SDSS parameters, as well as a BP/RP spectrum. Selected Gaia parameters are provided, and a few flags were defined to characterize the usability of the sources with respect to UGC requirements. The library includes 904 683  GALAXY and 577 967  ‘QSO’ objects according to the SDSS spectral classification. A selected subset of EmpLib is used for the preparation of the redshift estimator, consisting of 526 461  sources accepted as suitable for this purpose (see Section 16.3.10.10). In contrast, the entire library is used for the source classifier. Additionally, BP/RP spectra of sources from the validation tables of the QSOC, DSC, and other work packages are also used for the classifier (see Section 16.3.10.11). The distribution of redshift versus magnitude for galaxies in the SDSS and EmpLib datasets is shown in Figure 16.15.

Refer to caption
Figure 16.15: Distribution of SDSS DR17 (Abdurro’uf et al. 2022) GALAXY-class sources by redshift zS⁢D⁢S⁢S and magnitude m⁢o⁢d⁢e⁢l⁢M⁢a⁢g⁢_⁢r: for the original dataset (left panel), for the subset of sources common to Gaia CompleteSource4.3 (middle panel), and for the subset of sources acceptable for preparing the UGC redshift estimator (right panel). There is a dense clump of SDSS galaxies with redshifts 0.4<z<0.7 that is completely absent from the subsets, because of the G magnitude limit imposed by UGC. The total number of sources is given in parentheses.

Redshift estimator, the set of SVM-R models

The redshift estimator in the UGC module implements eleven regression models (see Section 16.3.10.10). Each SVM-R model is trained on a separate set of 5956 sources included in EmpLib. A common, larger set of more than half a million sources from the library is used to test each model and evaluate its performance. As described above, the input consists of the 186 fluxes of the clipped BP/RP spectrum and the target is the SDSS redshift of the source provided by the library. The average value of the eleven individual model predictions is adopted as the final redshift estimate for each source.

The overall performance of the model is characterized by the mean and standard deviation of the differences between the predicted and reference redshifts. For the test set, these values are 0.003 and 0.037, for the mean difference and standard deviation, respectively. A comparison of the original and predicted redshift histograms (Figure 16.16, left panel) shows an almost identical distribution. However, a small deviation is observed for redshifts close to zero. Some peaks in the reference redshift distribution appear smoothed in the predicted histogram, and a small secondary peak around z≃0.42 is also evident. The differences between the reference and predicted redshifts exhibit extended wings (Figure 16.16, middle panel) corresponding to sources at both extremes of the redshift range (Figure 16.16, right panel). At large redshifts, where the number of training and testing sources is small, the performance decreases significantly due to the non-linear dependence described in Section 16.3.10.10. It is recommended to disregard predicted redshifts below 0.02 and not to use estimates greater than 0.4.

Refer to caption
Figure 16.16: Comparison of the reference redshift, zSDSS, and the predicted redshift, zUGC, obtained from the multiple SVM model estimator tested on 526 421  ‘acceptable’ sources from the EmpLib library. The predicted zUGC value is the average of the individual estimates from the estimator’s eleven SVM-R models for a given spectrum with a true redshift zSDSS. The histograms of the reference and predicted redshifts show good agreement (left panel), which is further confirmed by the distribution of the redshift differences, zDiff (middle panel), and by the direct comparison of the two redshifts for the test set (right panel). The mean and standard deviation of the differences are 0.003 and 0.037, respectively.

Candidate galaxies classifier, the SVM-C model

Unresolved galaxies constitute a very small fraction of the sources observed by Gaia, a few million compared to more than two billion objects. The UGC module implements a candidate galaxy selection phase before further processing with the redshift estimator, The selection is based on an SVM-C model, a classification variant of the SVM technique (Section 16.3.10.11). The aim of the model is to achieve a high selection rate of galaxy sources, while avoiding possible contamination by non-galactic objects is left to the processing. The input vector of SVM-C consists of 186 fluxes of the sampled mean spectrum BP/RP just like in SVM-R. However, the target in SVM-C is a numerical code that represents the type (or class) of the source. For this purpose, three classes are defined, GAL and QSO corresponding to the SDSS spectral classification, and STAR - known stellar objects. In the application to a source, the spectrum is input to the trained model, which estimates the most likely class of the object.

A working dataset consisting of 13 107 159  sources, which have BP/RP spectra, has been used in the preparation of SVM-C. The set includes all EmpLib galaxy sources (class GAL), quasars (QSO) and stars (STAR) listed in a global CU8 validation source table. The implemented SVM model was trained on a set consisting of 9000 sources (3000 per class). The GAL-type classification performance test with the entire dataset showed a completeness of 95.2% and a purity of 92.5% for this class. The purity is expected to be significantly lower for the entire Gaia dataset, due to the many more stellar objects that have been observed. However, completeness should not change, as it does not depend on the relative content of the source type.

16.3.10.3 Inputs

Primary input (used for the SVMs):

  • •

    Mean sampled BP/RP spectra fluxes provided by SMSgen (see Section 16.3.1)

Secondary input (used to pre-select sources and evaluate final results for publication):

16.3.10.4 Outputs

The outputs of UGC are stored in the galaxy_candidates table, which includes three fields, the redshift value and the redshift upper and lower prediction limits, as described below.

redshift_ugc : The redshift of a source considered to be a galaxy candidate by UGC. The value is the average of the individual estimates by the eleven SVM regression models applied to the sampled mean BP/RP spectrum of the source.

redshift_ugc_lower : The prediction lower limit corresponding to the estimated redshift (Equation 16.58).

redshift_ugc_upper : The prediction upper limit corresponding to the estimated redshift (Equation 16.59).

The pair of upper and lower limits determined for a r⁢e⁢d⁢s⁢h⁢i⁢f⁢t⁢_⁢u⁢g⁢c encloses the range of values within which the corresponding true redshift is expected to lie under particular tolerance conditions. Specifically, a 95% confidence level is assumed here. The limits depend on the prediction accuracy of the models and on the error of the predicted redshift and are defined as

r⁢e⁢d⁢s⁢h⁢i⁢f⁢t⁢_⁢u⁢g⁢c⁢_⁢l⁢o⁢w⁢e⁢r=r⁢e⁢d⁢s⁢h⁢i⁢f⁢t⁢_⁢u⁢g⁢c−s⁢v⁢m⁢_⁢a⁢v⁢e−u⁢g⁢c⁢_⁢e⁢r⁢r (16.58)
r⁢e⁢d⁢s⁢h⁢i⁢f⁢t⁢_⁢u⁢g⁢c⁢_⁢u⁢p⁢p⁢e⁢r=r⁢e⁢d⁢s⁢h⁢i⁢f⁢t⁢_⁢u⁢g⁢c−s⁢v⁢m⁢_⁢a⁢v⁢e+u⁢g⁢c⁢_⁢e⁢r⁢r (16.59)

where:

  • •

    u⁢g⁢c⁢_⁢e⁢r⁢r is the combined prediction error, defined as follows:

    u⁢g⁢c⁢_⁢e⁢r⁢r=t95*(s⁢v⁢m⁢_⁢s⁢t⁢d2+u⁢g⁢c⁢_⁢s⁢t⁢d2)1/2*s⁢v⁢m⁢_⁢n⁢u⁢m−1/2 (16.60)

    where t95 is the Student’s value, t=2.228, for a confidence level of 95% and ten degrees of freedom in a two-sided test and s⁢v⁢m⁢_⁢n⁢u⁢m is the number of SVM-R models (11).

  • •

    s⁢v⁢m⁢_⁢a⁢v⁢e and s⁢v⁢m⁢_⁢s⁢t⁢d are empirical measures of prediction performance evaluated in bins of the predicted redshift, redshift_ugc. They correspond to the mean (AVE) and standard deviation (STD) of the residuals between predicted and reference redshifts within each bin, and thus provide estimates of bias and uncertainty in prediction space (see Section 16.3.10.10).

  • •

    u⁢g⁢c⁢_⁢s⁢t⁢d is defined as the standard deviation of the 11 redshift predictions produced by the individual SVM models, and provides a measure of the internal consistency of the redshift_ugcestimate.

The value of (r⁢e⁢d⁢s⁢h⁢i⁢f⁢t⁢_⁢u⁢g⁢c⁢_⁢u⁢p⁢p⁢e⁢r−r⁢e⁢d⁢s⁢h⁢i⁢f⁢t⁢_⁢u⁢g⁢c⁢_⁢l⁢o⁢w⁢e⁢r)/2 can be used as an estimate of the uncertainty (at 95% confidence level) in the redshift_ugc.

16.3.10.5 Method

UGC has two basic functions that are applied to each input source in sequence (Hatzidimitriou and Bellas-Velidis 2026):

  • 1:

    Selection sub-module: applies three conditions to determine whether a source is selected for further processing.

    • a:

      Initially, the availability of mean photometry in the three bands, G, GBP, and GRP, is checked. Then it is verified whether the requirement Gmin≤G≤Gmax is satisfied. The limits are defined in a properties file; the current values are 13.0 and 22.0, respectively. If any of the conditions are not met, the source is marked as ineligible for processing and the selection is terminated. Otherwise, the next check is performed.

    • b:

      The existence of the two parts of the average BP/RP spectrum and the number of samples in each are checked as required (a property parameter, currently set to 120). As above, if a condition is not met, the source is marked as ineligible. Otherwise, the next check is performed.

    • c:

      Finally, a source classifier implementing an already trained SVM-C model (Section 16.3.10.11) is applied to the BP/RP spectrum. The classifier predicts the most likely class of the source. If the classification fails, or if the predicted category is not GAL (candidate galaxy), the source is marked as ineligible; otherwise, it is marked as eligible for processing.

  • 2:

    Application sub-module: predicts the redshift and assesses publishability based on a set of requirements.

    • a:

      UGC estimates the redshift of the input source classified as a candidate galaxy. A set of pre-trained SVM-R regression models is applied to the averaged BP/RP spectrum using a multiple-SVM approach (see Section 16.3.10.10). Each model predicts the redshift of the source. The mean redshift and other statistical quantities are then calculated. Although several statistical quantities are computed, only three values are published in the archive: the mean redshift and the upper and lower prediction limits (Section 16.3.10.4).

    • b:

      The quality of the output parameters is assessed through an internal verification process. Each processed source is evaluated for potential issues related to the reliability of its classification as a galaxy and the quality of the redshift estimate. This evaluation applies a set of predefined conditions based on specific input parameters and the UGC processing results.

      Only sources that satisfy all the requirements listed below are considered suitable for publication and are included in the redshift_ugc table. The requirements are as follows:

      • *

        Proper motion (pmra, pmdec) upper limit: (p⁢m⁢r⁢a2+p⁢m⁢d⁢e⁢c2)1/2<300⁢[m⁢a⁢s⁢y⁢r−1]

      • *

        G-band magnitude, phot_g_mean_mag, range: 13.5≤G≤21.5

      • *

        UGC classifier SVM-C (Section 16.3.10.11) probability for galaxy class: u⁢g⁢c⁢G⁢a⁢l⁢P⁢r⁢o⁢b≥0.7

      • *

        Number of epoch spectra, bp_n_transits and rp_n_transits, used in the sampled mean XP spectrum: b⁢p⁢_⁢n⁢_⁢t⁢r⁢a⁢n⁢s⁢i⁢t⁢s≥5 and r⁢p⁢_⁢n⁢_⁢t⁢r⁢a⁢n⁢s⁢i⁢t⁢s≥5

      • *

        Mean flux and normalized standard deviation of the 186 XP spectral samples used by the SVMs (Section 16.3.10.2): 0.1≤b⁢p⁢A⁢v⁢e≤100 and 0.1≤r⁢p⁢A⁢v⁢e≤100 and 0≤b⁢p⁢S⁢t⁢d⁢N⁢r⁢m≤100 and 0≤r⁢p⁢S⁢t⁢d⁢N⁢r⁢m≤100

      • *

        Position outside any of the predefined dense regions on the galactic sky (Table 16.24)

      • *

        Individual SVM-R redshift predictions: for each of the 11 SVM-R models, the predicted redshift lies outside a Δ⁢z=0.005 interval around a narrow, high-density peak at z≈0.4. This peak (also seen in the EmpLib sources shown in Figure 16.16) is dominated by erroneous predictions for sources outside the training domain (e.g. stellar sources, high-redshift galaxies, and quasars).

      Table 16.24: Parameters of the predefined elliptical sky regions excluded from the published UGC results. The centres and radii are expressed in Galactic coordinates (l, b).
      Name centre l[∘] centre b[∘] radius l[∘] radius b[∘] position angle [∘]
      Galaxy plane region 0 0 180 17.5 0
      Galaxy central region 0 0 60 25 0
      Large Magellanic Cloud 279.15 -32.58 7.5 6.5 0
      Small Magellanic Cloud 302.5 -44.0 2.5 2.0 0
      M31 galaxy region 121.2 -21.6 1.0 0.3 50
      47 Tuc region 305.9 -44.9 0.3 0.3 0

16.3.10.6 Scope

UGC processes all sources with BP/RP spectra and with magnitudes in the range of 13≤G≤22. A set of additional requirements is then applied to determine whether the results are suitable for publication. The published output is restricted to sources with magnitudes in the range 13.5≤G≤21.5 and the reported redshifts range up to 0.6.

16.3.10.7 Uses and limitations

  • •

    Redshift estimates above z≳0.35⁢–⁢0.4 should be treated with caution. This limitation arises from the small number of high-redshift galaxies with BP/RP spectra suitable for training the SVM models.

  • •

    The SDSS sources used for training are limited to low-extinction regions (SDSS e⁢x⁢t⁢i⁢n⁢c⁢t⁢i⁢o⁢n⁢_⁢r≤0.5). Although the geometric masking of most of the Galactic disk and bulge removes the highest-extinction areas, some regions with relatively high extinction remain in the published data. In such cases, the redshift estimates are less reliable, as the SVM models have not been trained on highly reddened sources. Consequently, heavily reddened sources may be assigned systematically higher redshifts. This effect is visible in the top right panel of Figure 16.136.

  • •

    Galaxies with true redshifts z>0.6 that satisfy the criteria to publish (see Section 16.3.10.5) will be assigned systematically lower redshift values by UGC. However, such cases are expected to be rare, given the magnitude limit (G≤21.5) and the general correlation between redshift and apparent magnitude.

  • •

    The purity with respect to QSO contamination can be quantified using EmpLib and is estimated to be 1 .12  % (see Section 16.4.12.1). Approximately 7 000  SDSS QSOs (out of 577 967  in EmpLib) are misclassified as galaxies and included in the result table. Most of these sources have reference redshifts below z=0.6.

  • •

    The purity with respect to stellar contamination is less well constrained. The geometric masking removes regions of very high stellar density and therefore significantly improves the purity of the published sample. However, some resolved high-density stellar regions (e.g. globular clusters) remain, where stellar contamination is expected to be high.

16.3.10.8 Changes with respect to Gaia DR3

  • 1:

    The UGC module implements the selection of candidate galaxies based on the class-probabilities from its own SVM-C classifier (replacing the use of DSC probabilities in Gaia DR3)

  • 2:

    Magnitude limit G =21.5 in Gaia DR4 (compared to G =21.0 in Gaia DR3)

  • 3:

    Redshift estimator based on multiple SVMs (replacing the single-SVM approach in Gaia DR3)

  • 4:

    Updated criteria for publication (selection requirements)

16.3.10.9 EmpLib: UGC empirical data library

An auxiliary dataset, the EmpLib library, is used to train and validate the SVM models. The library contains a large number of classified extragalactic sources, each with a known spectroscopic redshift and other parameters, as well as a spectrum observed by Gaia. The SDSS DR17 archive (Abdurro’uf et al. 2022) forms the basis of the library, specifically the SpecObj and PhotoObj tables (SDSS “views”). The archive provides a spectroscopic classification (GALAXY, QSO), magnitudes in five bands, photometric sizes (Petrosian radii), and spectroscopic redshifts, among other parameters. We discard sources with poor or missing photometry, size or redshift data, thus reducing the initial number of objects to 3 642 496  objects, of which 2 778 569  are of class ’GALAXY’ and 863 927  of class QSO. In addition, we apply quality cuts by imposing limits on magnitude, size, extinction, and redshift, and assign flags to each source to define a clear subset of high-quality data.

The entire dataset is cross-matched with the observed Gaia sources included in the AST_CS4.3 table. A matching radius of 0.54′′was applied to the source positions defined by their sky coordinates (RA, DEC). The result is a table that includes 1 482 650  of the SDSS sources (904 683  of class GALAXY and 577 967  of class QSO). Relevant Gaia data (astrometry, photometry, spectra) were obtained and appended to the SDSS parameters of the matched sources. Additional flags were defined and assigned to each source to indicate missing or large proper motion, a low number of observation epochs, extremely low or high flux, or membership in a multi-match group. The updated data set of matched sources constitutes the final EmpLib version, that consists of two CSV files. The first file lists, for each source, the source parameters, SDSS data and flags, and Gaia data and flags. The second file provides, for each source, the array of fluxes from the sampled mean BP/RP spectrum.

Each line in both files begins with the identifier sourceId. The identifiers of all EmpLib sources are included in the global CU8 source list used in Apsis validation runs; however, the library is intended for internal use and is not publicly released.

16.3.10.10 Multi-SVM redshift estimator

The redshift estimator in the UGC module implements 11 regression models. Each SVM-R model is trained on a separate set of sources included in EmpLib (Section 16.3.10.9). A common large set is used to test each model and estimate its performance. As described above, the input is the Gaia spectrum and target is the SDSS redshift of the sources provided by EmpLib. However, only 611 736  sources are eligible for use in preparing the redshift estimator, as defined by its restriction to GALAXY-class sources, the redshift range 0.0≤z≤0.6, and the limit G≤21.5. In addition, some sources are flagged as unsuitable due to questionable parameter values, reducing the number of sources acceptable for SVM training and testing to 526 461 . Each training set, consisting of 5 956  sources, is generated using a simple algorithm designed to reduce the significant variance in the redshift distribution of sources (Table 16.25). This approach preserves both the randomness of the selection and the uniqueness of the training sets, although complete independence cannot be ensured for large redshifts. The entire set of acceptable sources is used for testing. Although this procedure can in principle introduce bias in the test results, the relatively small size of each training set ensures that the effect is negligible, as verified through comparison with unbiased tests.

Table 16.25: Number of sources in the training and testing sets in SDSS redshift sub-ranges.
zS⁢D⁢S⁢S 0.0≤z<0.1 0.1≤z<0.2 0.2≤z<0.3 0.3≤z<0.4 0.4≤z<0.5 0.5≤z≤0.6 Total
Training set 1 685 2 171 1 207 585 196 112 5 956
Testing set 180 489 247 297 76 094 19 712 2 156 713 526 461

For the eleven SVMs, the predicted redshift values, although slightly different, are closely consistent: the average difference for the test set ranges from 0.002 to 0.003, and the standard deviation from 0.038 to 0.039. However, the performance exhibits significant non-linear variation with redshift, due to the inherent non-linearity of the model and the imbalance in the training sample mentioned above. A detailed analysis of performance in small redshift bins introduces a duality, as the segments can be defined either on the reference redshift scale, zS⁢D⁢S⁢S or on the predicted redshift scale, zU⁢G⁢C. The performance in bins on the reference scale characterizes the SVM model’s ability to reproduce the input redshift values within that bin; in this case, the mean and standard deviation are referred to as BIAS and ERROR, respectively. Conversely, performance evaluated in bins on the predicted redshift scale quantifies the prediction accuracy, with the corresponding metrics referred to as AVE and STD.

Refer to caption
Figure 16.17: Performance metrics (BIAS and ERROR) of the SVM-R models and UGC prediction accuracy values (AVE and STD) derived from 0.1-wide bins of the redshift scale zSDSS (left panel) and zUGC (right panel), respectively. The results are based on individual estimates from the estimator’s eleven SVM-R models for each spectrum with a true redshift zSDSS. Tests were performed on 526 421  ‘acceptable’ sources from the EmpLib library.

Performance metrics and prediction accuracy values derived from 0.1-wide bins of the corresponding redshift scale are shown for the eleven SVM models in Figure 16.17, in the left and right panels, respectively. The individual SVM models exhibit slightly different performance, as expected, which forms the basis for implementing a multi–SVM-R estimator for the redshift in UGC. The average of the individual model predictions is adopted as the final redshift estimate for each source, while the variance characterizes the prediction uncertainty, serving as a warning indicator for potentially unreliable results. The performance and accuracy metrics of this ‘averaged’ response of the eleven SVM-R models are listed in Table 16.26 for 0.1-wide bins in both redshift scales. A more detailed view, based on 0.01-wide bins, is shown in Figure 16.18.

Table 16.26: The bias and error of the SVM performance, as well as the mean and standard deviation of the prediction accuracy derived from 0.1-wide bins of the reference scale zS⁢D⁢S⁢S and the predicted redshift zU⁢G⁢C respectively. Each value is the average of the eleven SVMs that make up the UGC redshift estimator. Note that, although the total number of sources in the test set is the same, the number in the bins depends on the redshift scale.
zS⁢D⁢S⁢S 0.0≤z<0.1 0.1≤z<0.2 0.2≤z<0.3 0.3≤z<0.4 0.4≤z<0.5 0.5≤z≤0.6 Total
Testing set 180 489 247 297 76 094 19 712 1 156 713 526 461
BIAS 0.012 0.000 -0.002 -0.009 -0.060 -0.137 0.003
ERROR 0.031 0.036 0.042 0.045 0.065 0.067 0.037
zU⁢G⁢C 0.0≤z<0.1 0.1≤z<0.2 0.2≤z<0.3 0.3≤z<0.4 0.4≤z<0.5 0.5≤z≤0.6 Total
Testing set 177 213 243 631 78 884 23 300 3 386 47 526 461
AVE -0.006 0.004 0.011 0.031 0.061 0.051 0.003
STD 0.026 0.032 0.044 0.067 0.123 0.102 0.037
Refer to caption
Figure 16.18: Average performance metrics (BIAS and ERROR) of the SVM-R models (left panel) and UGC prediction accuracy values (AVE and STD) of the UGC redshift estimator (right panel), derived from 0.01-wide bins of the redshift scales zSDSS and zUGC, respectively. The results are based on the differences between the average redshift predicted by the multi–SVM-R estimator and the reference redshift for all 526 421 ‘acceptable’ sources in the EmpLib library. The grey band shows the standard deviation of ±0.037 over the total redshift range up to z=0.6.

16.3.10.11 SVM-C classifier for candidate galaxy selection

The SVM-C classification model uses the same SVM configuration and the same input vector of 186 fluxes from the sampled mean BP/RP spectrum as those implemented in the SVM-R models (see Section 16.3.10.10). However, the training target in SVM-C is a numerical label representing the type (or class) of the source. The SVM-C model is trained on sources known to belong to one of three object types defined for this purpose. The classes are GAL and QSO, corresponding to the SDSS spectral classifications, and STAR, representing known stellar objects.

When applied to the input data of a source, the output of the trained classifier consists of three normalized probability values (ugcProbGAL, ugcProbQSO, and ugcProbSTAR), each representing the likelihood that the source belongs to a given class. These probabilities are then converted into a “winner” class for the source using a simple rule: the class with a probability greater than 0.5 is assigned as the winner. If no class exceeds this threshold, a virtual class UNK (unknown) is assigned. This rule is used only during testing and for selecting candidate galaxies in UGC, and is not an intrinsic feature of the SVM-C model.

The sources used for SVM-C training are selected from the global CU8 validation source table (v.Jan25). This table lists all sources used in Apsis validation runs and merges the individual lists from different sections. Sources from EmpLib (Section 16.3.10.9) constitute the UGC portion of this table. For SVM-C, the sample representing the GAL class contains 904 999 objects. It includes all sources of type ‘GALAXY’ from EmpLib, together with a small number of galaxies listed in the DSC section of the global table, but not found in EmpLib. Similarly, the SVM-C QSO sample (628 727 sources) comprises all quasars from the QSOC part of the CU8 validation source table, supplemented by additional quasars from the DSC section. All QSO-class sources in EmpLib are included in this list. The third sample, STAR, contains more than 11 million objects drawn from sections of the CU8 validation source table that include only stellar sources.

Table 16.27: Number of sources in the global CU8 validation source table, in the GAL, QSO, and STAR subsets used for the SVM-C classifier in UGC, and in the total working dataset.
Table/Sample cu8VST_jan25 class GAL class QSO class STAR Total
Sources 19 183 094 904 999 628 727 11 573 433 13 107 159

The total number of sources in the SVM-C working dataset is 13 107 159 (see Table 16.27), with a negligible number of objects fainter than G>22. All sources have BP/RP spectra, and the entire dataset is used for model testing. The relative proportions of the three classes in the dataset (3:2:38) roughly reflect, to a limited extent, the situation observed in real data. In contrast to this unbalanced class distribution, SVM-C is trained on a balanced subset containing an equal number of sources from each class. Several training sets with total sizes ranging from 3 000  to 30 000  sources were tested. The SVM-C model implemented in UGC is trained on a subset of 9 000  sources (3 000  per class).

Classification performance is typically presented in terms of completeness and purity, derived from the confusion matrix. Each element of the matrix gives the number of instances of the predicted class for a given actual class in the test set. Each entry represents one of four possible outcomes for a classifier with respect to a specific class: true positive (TP) − correct classification of an object belonging to the class; true negative (TN) − correct rejection of an object from another class; false positive (FP) − incorrect acceptance of an object from another class; and false negative (FN) − incorrect rejection of an object belonging to the class. The true positive rate, T⁢P/(T⁢P+F⁢N), represents completeness and characterizes the model’s ability to correctly identify sources of a given class. Conversely, purity measures the model’s ability to avoid false classifications of objects that do not belong to the given class and is defined as T⁢P/(T⁢P+F⁢P). The confusion matrix resulting from the SVM-C test is shown in Table 16.28. The diagonal elements (except UNK) correspond to the TP counts for the true classes. The performance for the GAL class (relevant for selection in UGC) is given by the first column (completeness) and the first row (purity). The completeness for the GAL class is 0.952, while the purity is 0.925. For comparison, the corresponding values for the model trained with 27 000 sources are 0.957 and 0.930, respectively.

Table 16.28: Results from testing the SVM-C classifier implemented in UGC. The model was trained on a source set containing three target classes (vst_GAL, vst_QSO, and vst_STAR), each consisting of 3 000 objects. Each element of the confusion matrix in the upper part of the table gives the number of predicted classes (svm) for the corresponding target class (vst). The diagonal elements represent the correct, or true positive (TP), predictions; specifically, the top-left element is the TP count for the GAL class. The sum of the remaining (non-TP) elements in the vst_GAL column corresponds to the false negative (FN) predictions for the GAL class, while the sum of the svm_GAL row corresponds to the false positive (FP) predictions. The performance of the SVM-C model with respect to the GAL class is summarized at the bottom of the table by the completeness and the purity, 0.952 and 0.925, respectively.
Sample vst_GAL vst_QSO vst_STAR svm-all
svm_GAL 861 293 12 057 57 807 931 157
svm_QSO 30 295 581 943 491 372 1 103 610
svm_STAR 9 222 31 201 10 973 792 11 013 792
svm_UNK 4 189 3 526 50 885 931 157
vst-all 904 999 628 727 11 573 433 13 107 159
Completeness 0.952 0.926 0.948
Purity 0.925 0.527 0.996

From its definition, completeness does not depend on the relative fraction of galaxies in the total sample. Purity, however, is strongly affected. In the case of SVM-C, purity is estimated from a sample in which approximately 7% of the sources are galaxies. A simple approximation suggests that the relative fraction of galaxies among all observed Gaia sources is much lower, around 0.2%. Therefore, the actual purity is expected to be significantly reduced. To obtain a realistic estimate, one would need to account for highly non-linear factors such as the size distribution of sources in each category and the dependence of the classifier’s performance on spectral quality. To improve the reliability of the published results, UGC applies a set of predefined criteria for publication at the final stage of processing, some of which are designed to enhance the purity of the sample. (see Section 16.3.10.5).