Gaia Data Release 3
Open Access
Issue
A&A
Volume 674, June 2023
Gaia Data Release 3
Article Number A31
Number of page(s) 34
Section Catalogs and data
DOI https://doi.org/10.1051/0004-6361/202243423
Published online 16 June 2023

© The Authors 2023

Licence Creative CommonsOpen Access article, published by EDP Sciences, under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

This article is published in open access under the Subscribe to Open model. Subscribe to A&A to support open access publication.

1. Introduction

The ESA Gaia mission was designed to create the most precise three dimensional map of the Milky way, along with its kinematics, through the repeated observation of about two billion stars. Gaia observes all objects in the sky down to an apparent G magnitude of about 21 mag, which includes millions of galaxies and quasars (Gaia Collaboration 2016). The data collected between 25 July 2014 and 28 May 2017 (34 months) have been processed by the Gaia Data Processing and Analysis Consortium (DPAC) to provide the third data release of the Gaia catalogue, Gaia DR3.

For sources with G ≤ 17 mag, typical positional uncertainties are on the order of 80 μas; parallax uncertainties on the order of 100 μas; proper motion uncertainties on the order of 100 μas yr−1; and G magnitude uncertainties on the order of 1 mmag. In addition to this exquisite astrometric and photometric performance, Gaia provides high-resolution spectroscopy (R = λλ ≈ 11 700) centred around the calcium triplet (845–872 nm), hence its name radial velocity spectrometer (RVS), as well as low-resolution spectrophotometry from two instruments: the blue photometer (BP) covering the wavelength range 330–680 nm with 30 ≤ R ≤ 100, and the red photometer (RP) covering the wavelength range 640–1050 nm with 70 ≤ R ≤ 100 (Carrasco et al. 2021).

Eight coordination units (CUs) were set up within the DPAC, each focusing on a particular aspect of the Gaia processing: CU1 for managing the computer architecture; CU2 for the data simulations; CU3 for the core astrometric processing; CU4 for the analysis of non-single stars, Solar System objects, and extended objects; CU5 for the photometric BP/RP processing; CU6 for the spectroscopic RVS processing; CU7 for the variability analysis; and CU8 for the determination of the astrophysical parameters (APs) of the observed sources. Finally, a ninth CU is responsible for the catalogue validation, access, and publication.

This paper is the third in a series of three papers describing the processing done within CU8. The first of these, Creevey et al. (2023), summarises the work done in CU8 and the various APs it produces. The second, Fouesneau et al. (2023), describes stellar APs. The present paper discusses the object classification and the non-stellar APs produced by CU8, namely the redshifts of extragalactic sources and total Galactic extinction map. We describe the results and methods of the relevant modules, as they have evolved since their description given prior to launch (Bailer-Jones et al. 2013), while focusing on technical details. A thorough scientific analysis of these results, seen from a cross-CU perspective, can be found in performance verification papers like in Gaia Collaboration (2023), where the classification and characterisation of the extragalactic sources are discussed in more details.

We provide an overview of the data products from the classification and non-stellar modules in Sect. 2. The Discrete Source Classifier (DSC), which classifies sources probabilistically into five classes that are known a priori from its training set (quasar, galaxy, star, white dwarf, and physical binary star), is described in Sect. 3. The Outlier Analysis (OA), which complements the DSC classification through a clustering algorithm applied to BP/RP spectra of sources with low DSC probability, is described in Sect. 4. The quasar classifier (QSOC) and Unresolved Galaxy Classifier (UGC), both based on BP/RP spectra, make use of the DSC probabilities in order to identify quasars and galaxies and subsequently determine their redshifts; these are described in Sects. 5 and 6, respectively. Finally, the global stellar parameters of giant stars, as inferred from BP/RP spectra, allow the Total Galactic Extinction (TGE) module to derive the Galactic extinction seen along a given line-of-sight as described in Sect. 7. Finally, we summarise the improvements that are currently foreseen for Gaia DR4 in Sect. 8. Additional information on the design and performance of the modules can be found in the Gaia online documentation.

2. Overview of the non-stellar astrophysical parameters from CU8 in Gaia DR3

The five non-stellar modules together contribute to 110 unique fields in the Gaia DR3. Table 1 provides an overview of the tables and fields that each of the modules contributes to, including the resulting number of entries in each table. These fields are spread over eight different tables and concern about 1.6 billion unique sources. Figure 1 sketches the inter-dependency between these modules, the selection they apply on the DSC probabilities, their input, output, and the number of sources for which they produce results in Gaia DR3. The different selection policies from each module are clearly seen in this plot; each leads to a different associated completeness and purity. The filtering applied by each module on the results they produced is not mentioned here, although we should generally not expect the number of sources satisfying the provided DSC selection criteria to be equal to the number of sources for which there are results in Gaia DR3 for each module.

thumbnail Fig. 1.

Dependency of the OA, UGC, QSOC, and TGE modules on the DSC combined probabilities for the selection of the sources to be processed (classprob_dsc_combod, see Sect. 3 for a definition). For each module, we provide a synthetic view of their input and output, and the number of sources for which the module produces results in Gaia DR3. In the case of TGE, we provide the number of extinction estimates that were computed in level 9 HEALPixes (see Sect. 7). Unlike the other modules described here, TGE additionally relies on the General Stellar Parametrizer from Photometry (GSP-Phot) for its source selection and processing, which is described in Andrae et al. (2022).

Table 1.

Individual contributions of the non-stellar CU8 modules to the Gaia DR3.

3. Source classification (DSC)

3.1. Objectives

DSC classifies Gaia sources probabilistically into five classes: quasar, galaxy, star, white dwarf, and physical binary star. These classes are defined by the training data, which are Gaia data, with labels provided by external catalogues. DSC comprises three classifiers: Specmod uses BP/RP spectra to classify into all five classes; Allosmod uses various other features to classify into just the first three classes; Combmod takes the output class probabilities of the other two classifiers and combines them to give combined probabilities in all five classes.

3.2. Method

3.2.1. Algorithms and I/O

Specmod uses an ExtraTrees classifier, which is an ensemble of classification trees. Each tree maps the 100-dimensional input space of the BP/RP spectrum – 60 samples each, minus 5 samples that are rejected at the edges of each spectrum – into regions that are then identified with each of the five classes. By using an ensemble of hundreds of trees, these individual discrete classifications are turned into class probabilities.

Allosmod uses a Gaussian Mixture Model (GMM). For each class, the distribution of the training data in an eight-dimensional feature space is modelled by a mixture of 25 Gaussians. This is done independently for all three classes (quasar, galaxy, star). Once appropriately normalised and a suitable prior applied, each GMM gives the probability that a feature vector (i.e. a new source) is of that class. The eight features are as follows; they are fields in the Gaia source table or are computed from these fields:

  • sine of the Galactic latitude, sin b,

  • parallax, parallax,

  • total proper motion, pm,

  • unit weight error (uwe), = astrometric _ chi 2 _ al astrometric _ n _ good _ obs _ al 5 $ =\sqrt{\frac{\tt astrometric\_chi2\_al}{{\tt astrometric\_n\_good\_obs\_al} - 5} } $,

  • G band magnitude, phot_g_mean_mag,

  • colour GBP − G, bp_g,

  • colour G − GRP, g_rp,

  • The relative variability in the G band (relvarg), = phot_g_n_obs/phot_g_mean_flux_over_error $ {\rm{ = }}\sqrt {{\rm{phot\_g\_n\_obs/phot\_g\_mean\_flux\_over\_error}}} $.

All eight features must exist for a given source for Allosmod to provide a probability. As explained below, we exploit some of the ‘failures’ of these features to help identify objects. For example, galaxies should have true proper motions (and parallaxes) very close to zero. Yet they sometimes have larger measured proper motions in Gaia DR3 on account of their physical extent combined with the variability in the calculation of the centroid during each scan made by Gaia (obtained at different position angles). This can give rise to spuriously large proper motions (although the uncertainties are also larger). In many cases, these solutions are rejected by the astrometric solutions (to give the so-called 2p solutions; see Lindegren et al. 2021 for the definitions), meaning that many galaxies lack parallaxes and proper motions and are therefore not processed by Allosmod.

Allosmod models the distribution of the data, and so it provides likelihoods. When combined with the class prior, this gives posterior class probabilities, which are the output from Allosmod. Specmod, in contrast, is a tree-based model that does not strictly provide posterior probabilities. Moreover, its output is influenced by the distribution in the training data (see below). However, by using the simple method described in the online documentation we can adjust the outputs from Specmod so that they are analogous to posterior probabilities that incorporate our desired class prior. Allosmod is described in more detail in Bailer-Jones et al. (2019), where it is applied to Gaia DR2 data.

The third DSC classifier, Combmod, takes the probabilities from Specmod and Allosmod for a source and combines them into a new posterior probability over all five classes. This is not entirely trivial, because it has to ensure that the global prior is not counted twice, and it has to allow for the fact that Specmod has more classes than Allosmod. The combination algorithm is described in Appendix B.

3.2.2. Class prior

Single stars hugely outnumber extragalactic sources in Gaia, and failing to take this into account would give erroneous probabilities and classifications. Specifically, if we were to assume equal priors for all classes, then when the attributes of a given source do not provide a strong discrimination between the classes, the source would be classified as any class with near equal probabilities. However, in reality, the source is far more likely to be a star, because extragalactic sources are so rare. We must therefore set appropriate priors for the classes. Failing to do so corresponds to the well-known base rate fallacy. We choose here to adopt a global prior that reflects the expected fraction of each class (as we define them) in the entire Gaia DR3 data set. This prior is given in Table 2. As the relative fraction of extragalactic to Galactic objects that Gaia observes varies with quantities such as magnitude and Galactic latitude, we could make the prior a function of these (and potentially other) quantities; but we have not introduced this in Gaia DR3.

Table 2.

DSC class prior.

Using the correct prior is important. A classifier with equal priors would perform worse on the rare objects than a classifier with appropriate priors, because the former would tend to misclassify many stars as being extragalactic. However, we would not notice this if we erroneously validated the classifier on a balanced set (equal numbers in each class), because such a validation set has an artificially low fraction of stars, and hence far too few potential contaminants. The classifier would perform worse but would appear to be performing better. This is demonstrated in Table 1 of Bailer-Jones et al. (2019). We address this issue in the context of our validation data in Sect. 3.3.

3.2.3. Training data

DSC is trained empirically, meaning it is trained on a labelled subset of the actual Gaia data it will be applied to (except for binary stars). The classes were defined by selecting sources of each class from an external database and cross-matching them to Gaia DR3. The sources used to construct the training sets –and which therefore define the classes – are as follows (see the online documentation and Bailer-Jones 2021 for more details):

  • Quasars: 300 000 spectroscopically confirmed quasars from the fourteenth release of the Sloan Digital Sky Survey (SDSS) catalogue, SDSS-DR14 (Pâris et al. 2018).

  • Galaxies: 50 000 spectroscopically confirmed galaxies from SDSS-DR15 (Aguado et al. 2019).

  • Stars: 720 000 objects drawn at random from Gaia DR3 that are not in the quasar or galaxy training sets. Strictly speaking, this is therefore an ‘anonymous’ class. But as the vast majority of sources in Gaia are stars, and the majority of those will appear in (spectro)photometry and astrometry as single stars, we call this class ‘stars’.

  • White dwarfs: 40 000 white dwarfs from the Montreal White Dwarf Database1 that have coordinates and that are not known to be binaries using the flag provided in that table. This class is not in Allosmod.

  • Physical binary stars: 280 000 BP/RP spectra formed by summing the two separate components in spatially-resolved binaries in Gaia DR3 (see the online documentation). This is only done for the BP/RP spectra, not for astrometry or photometry, so physical binaries are not a class in Allosmod.

The quasar, galaxy, and star class definitions are more or less the same as in Bailer-Jones et al. (2019).

The selected sources were filtered in order to remove obvious contaminants or problematic measurements (as described in the online documentation). The numbers above refer to what remains after this filtering. The remaining set was then split into roughly equally sized training and validation sets (per class). Generally speaking, the relative number of objects of each class – the class fraction – in the training data affects the output probabilities of a classifier, because it acts as an implicit prior in the classifier. However, for both Specmod and Allosmod, we remove this influence to ensure that their priors correspond to our class prior. We are therefore free to choose as many training examples in each class as we need, or can obtain, in order to learn the data distributions.

We note that for the common classes between Specmod and Allosmod, that is, quasars, galaxies, and stars, a common sample with complete input data was used to train both modules. In particular, this means that even though Specmod does not require parallaxes and proper motions as inputs, its training sample is restricted to those sources that do have parallaxes and proper motions. This is important because Specmod is also applied to sources that lack parallaxes and proper motions, meaning that some of its results are on types of objects that are not represented in its training set. This is particularly important for galaxies.

Figure 2 (top) shows the distribution of the eight Allosmod features in the training data for the quasar and galaxy classes. As we do not want the model to learn the sin b distribution of extragalactic objects, which is just the SDSS footprint (shown in the plot), we replace this with a random value drawn from a uniform distribution in sin b (i.e. uniform sky density) when training Allosmod. This plot also shows, for comparison, the distribution of the features for the star class in the training data. Figure 3 (top) shows the distribution of the two colours of the quasars and galaxies in a colour–colour diagram.

thumbnail Fig. 2.

Distribution (linear scale) of Gaia features for various samples used in DSC. Top: training data for quasars (blue), galaxies (orange), and stars (black). When training Allosmod, the sin b distributions for quasars and galaxies are replaced with uniform ones. Middle: Gaia sources assigned classlabel_dsc=‘quasar’ (blue) and classlabel_dsc=‘galaxy’ (orange). Bottom: Gaia sources assigned classlabel_dsc_joint=‘quasar’ (blue) and classlabel_dsc_joint=‘galaxy’ (orange).

thumbnail Fig. 3.

Colour–colour diagrams for various samples used in DSC. Top: training data for quasars (blue) and galaxies (orange). Middle: Gaia sources assigned classlabel_dsc=‘quasar’ (blue) and classlabel_dsc=‘galaxy’ (orange). Bottom: Gaia sources assigned classlabel_dsc_joint=‘quasar’ (blue) and classlabel_dsc_joint=‘galaxy’ (orange). The differences in the distributions are due to the various levels of completeness and purity in the two types of class label.

3.2.4. Class labels

The main output from DSC is the class probabilities from all three classifiers. For convenience, we also compute two class labels from the probabilities, which appear only for sources in the qso_candidates and galaxy_candidates tables in the data release. The first label, classlabel_dsc, is set to the class that gets the highest posterior probability in Combmod that is greater than 0.5. If none of the output probabilities are above 0.5, this class label is unclassified. This gives a sample that is fairly complete for quasars and galaxies, but not very pure.

The second class label, classlabel_dsc_joint, identifies a purer set of quasars and galaxies. It is set to the class that achieves a probability above 0.5 in both Specmod and Allosmod. This produces purer samples because the Specmod and Allosmod probabilities are not perfectly correlated. This lack of correlation may be unexpected, but is what we want, because it means the classifiers are providing non-redundant information.

Because DSC is not the only contributor to the qso_candidates and galaxy_candidates tables, sources in the qso_candidates table can have either classlabel set to galaxy, and vice versa.

3.3. Performance: Purity and completeness

By assigning each source to the class with the largest probability, it is uniquely classified. An alternative is to additionally adopt a minimum probability threshold, in which case we can get multiple classifications if the threshold is low enough, or no classification if it is high enough. Doing this on sources with known classes (assumed to be correct), we can then compute the confusion matrix, which tells us how many sources of each true class are assigned to each DSC class. From this, we then compute, for each class, the completeness – the fraction of true positives among all trues – and the purity – the fraction of true positives among all positives.

Here we use the largest probabilities to compute the completenesses and purities on the validation sets2. As the class fractions in this validation set are not representative of what they are in Gaia, the raw purities are meaningless. Specifically, stars are far less common in the validation data than they are in a random sample of Gaia data, and so there are too few potential contaminants of the other classes in the validation data, resulting in significantly overestimated purities. This fact is sometimes overlooked in the validation of classification results in the literature. Fortunately, we can easily correct for this. As explained in section 3.4 (especially Eq. (4)) of Bailer-Jones et al. (2019), we can modify the confusion matrix to correspond to a validation set that has class fractions equal to the class prior. The purity computed from this modified confusion matrix is then appropriate for any randomly selected sample of Gaia sources (this modification does not affect the completeness). We note that this modification is independent of the fact that DSC probabilities are already posterior probabilities that take into account this class prior (i.e. both modifications must be done). This should also serve as a warning when assessing any classifier: if the validation data set does not have a representative fraction of contamination, or if this is not adjusted, the predicted purities will be erroneous.

Table 3 shows the completenesses and purities for the DSC classes and classifiers. This is the performance we expect for a sample selected at random from the entire Gaia dataset that has complete input data for both Specmod and Allosmod. It accommodates the rareness of all these classes, as specified by the global class prior (Table 2), both in the probabilities and the application data set. It is important to bear in mind that these purity and completeness measures only refer to the types of objects in the validation set. For extragalactic objects, this means objects classified as such by SDSS using the SDSS spectra. The overall population of extragalactic objects classified by DSC is of course broader than this, and so the completeness and purity evaluated on other subsets of extragalactic objects could differ.

Table 3.

DSC performance evaluated on the validation data set.

Due to the dominance of single stars in Gaia, we are not really interested in the performance on this class. Indeed, it is trivial to get an excellent single-star classifier: simply call everything a single star and your classifier has 99.9% completeness and 99.9% purity.

The performance is modest overall, for reasons that are further discussed in Sect. 3.5. Results on binaries are very poor, partly because the validation set we used to compute the confusion matrix is not representative of the training set. This is because the validation set comprises only real Gaia objects, and so known unresolved binaries, whereas the training set was made by combining single star spectra. However, the internal performance on binaries was also poor. This suggests an intrinsic difficulty in separating binaries (as we define them) from single stars.

The performance in Table 3 refers to objects covering the full Gaia parameter space, in particular all magnitudes and Galactic latitudes. The purities tend to increase for brighter magnitudes, as can be seen from the plots in the online documentation and in Bailer-Jones (2021). There we see, for example, that for G ≤ 18 mag, the purities for quasars and galaxies when using Allosmod alone is 80% or higher. However, when looking at the performance in a specific part of the parameter space, one should adopt a new prior that is appropriate for that part of the parameter space, for example fewer extragalactic objects visible at low latitudes. We then recompute the posterior probabilities (Appendix C) and the completenesses and purities (remembering that the adjustment of the confusion matrix must use the class fractions in this subset of the validation set). This we have done for sources outside of the Galactic plane, with results reported in the bottom two lines of Table 3. For |b|> 11.54°, we adopt a prior probability for quasars of 2.64 × 10−3 (9.9 × 10−4 globally), and a prior probability for galaxies of 5.3 × 10−4 (2 × 10−4 globally). The purities of the quasar and galaxy samples are significantly higher, as expected because there are fewer contaminating stars per square degree. Using a probability threshold increases the purities even further, albeit at the expense of completeness (see online documentation for more plots). Clearly, if we were willing and able to push the prior for extragalactic objects higher, we would obtain higher purities.

3.4. Results

DSC was applied to all Gaia sources that have the required input data. Its results were not filtered in any way. In particular, we did not remove sources with lower quality input data, or that have input data lying outside the range of the training data. By including all results, we allow the user to apply their own filters according to their own goals and needs.

DSC produces outputs for 1 590 760 469 sources. All of these have probabilities from Combmod and Specmod, whereas 1 370 759 105 (86.2%) have probabilities from Allosmod3. This lower number from Allosmod is due to missing input data, usually missing parallaxes and proper motions (or missing colours in a few cases). That is, sources must have 5p or 6p astrometric solutions from the Gaia Astrometric Global Iterative Solution (AGIS) in order to have Allosmod results. This can be seen in Fig. 4, which shows the fraction of sources (per HEALPix) that have 5p/6p solutions, for those with dsc_classlabel=‘quasar’ (left) and dsc_classlabel=‘galaxy’ (right). While most objects classified as quasars have measured parallaxes (i.e. 5p or 6p solutions), most sources outside of the Galactic plane classified as galaxies do not. Those objects that lack parallaxes and proper motions (the 2p solutions) also lack Allosmod results, and so their Combmod results (and hence dsc_classlabel) are determined only by Specmod. We explore the differences between the 5p/6p and 2p solutions at the end of this section.

thumbnail Fig. 4.

Galactic sky distribution of the fraction of sources that have 5p/6p astrometric solutions (i.e. have parallaxes and proper motions) for sources that also have dsc_classlabel=‘quasar’ (left) and dsc_classlabel=‘galaxy’ (right). The plot is shown at HEALPix level 7 (0.210 deg2) in a Hammer–Aitoff equal area projection with the Galactic centre in the middle, north up, and longitude increasing to the left. White indicates no sources.

The vast majority of sources have high probabilities of being stars, and because the purities of the white dwarf and physical binary classes are low (see the online documentation), we focus here on the results for the quasar and galaxy classes.

The label classlabel_dsc (defined in Sect. 3.2.4) classifies 5 243 012 sources as quasars and 3 566 085 as galaxies. Their sky distributions are shown in the top two panels of Fig. 5. The analysis in Sect. 3.3 suggests that these samples are not very pure (see Table 3). In these sky plots, we see large overdensities of supposed quasars in several regions, in particular the LMC and SMC, suggesting that this sample is not very pure. However, such overdensities are expected when we have a constant misclassification rate over the whole sky, because any high-density region will have a high density of both correctly and incorrectly classified objects. However, it turns out that the fraction of sources classified as quasars is also higher than average in these regions (see below). The LMC and SMC are so dense that 38% of all the quasar identifications using classlabel_dsc are in the LMC, and 6.4% are in the SMC4. These percentages are much smaller for galaxies: just 3% for the LMC and 1% for the SMC.

thumbnail Fig. 5.

Galactic sky distribution of the number of DSC sources classified as quasars (left) and galaxies (right) according to classlabel_dsc (top) and classlabel_dsc_joint (bottom) (see Sect. 3.2.4 for the label definition). The plot is shown at HEALPix level 7 (0.210 deg2). The logarithmic colour scale covers the full range for each panel, and is therefore different for each panel.

The bottom row of Fig. 5 shows the distribution of the 547 201 sources classified as quasars and the 251 063 sources classified as galaxies by the purer class label classlabel_dsc_joint. The overdensities of quasars in the LMC and SMC regions are now greatly reduced, to 4% and 1% of all sources respectively.

Figure 6 shows the same sky distribution as before, but now expressing the numbers as a fraction of the total number of sources in that HEALPix5 (classified by DSC as anything). As most of the sources are stars, these plots essentially show the ratio of extragalactic to Galactic objects per HEALPix, albeit with varying degrees of contamination. The four rows of the plot correspond to four possible ways of classifying extragalactic sources: the top three rows are for probabilities above 0.5 for Specmod, Allosmod, and Combmod, respectively, whereby the latter is identical to classlabel_dsc. The bottom row is classlabel_dsc_joint. Looking at the third row – for classlabel_dsc – we see a higher fraction of extragalactic sources (plus contamination) has been discovered outside of the Galactic plane than at lower latitudes. This we expect, as high extinction from Galactic dust obscures extragalactic objects, and also there are far more stars in the Galactic plane. However, we also see a higher fraction of supposed quasars (left) in the LMC and SMC – clear misclassifications – indicating a higher contamination in these regions. Looking at the top two left panels in Fig. 6 for Specmod and Allosmod, respectively, we see that this contamination comes from Specmod, that is, misclassification of the BP/RP spectra, but not from Allosmod, which uses photometry and astrometry. It is probably not due to crowding in the LMC/SMC corrupting the BP/RP spectra, because we do not see such high contamination in the crowded Galactic plane; it is more likely due to faint blue sources in the LMC/SMC being confused with quasars, something which does not occur as much in the Galactic plane due to the higher reddening there.

thumbnail Fig. 6.

Galactic sky distribution of the fraction of DSC sources classified as quasars (left) and galaxies (right) according to Specmod (top), Allosmod (second), Combmod (third), and Specmod and Allosmod (bottom) probabilities being greater than 0.5 for that class. Bottom two rows are identical to classlabel_dsc and classlabel_dsc_joint (respectively) being set to the appropriate class (see Sect. 3.2.4). The plot is shown at HEALPix level 7 (0.210 deg2) with each cell showing the ratio of the sources classified to the total number of sources with DSC results (1.59 billion over the whole sky). The logarithmic colour scale covers the full range for each panel, and is therefore different for each panel.

The top three rows of the right column of Fig. 6 show the corresponding plots for galaxies. The stripes are artefacts of the Gaia scanning law. They are much more prominent in Allosmod than in Specmod, and we see in Table 3 that Allosmod is expected to have a lower purity for galaxies than Specmod (the opposite is true for quasars).

When we use classlabel_dsc_joint for classification, we get smaller but purer samples (see Gaia Collaboration 2023). The sky distributions for these samples (bottom row of Fig. 6) show that low-latitude regions are excluded. In other words, only sources at higher latitudes were classified with probabilities above 0.5 by both Specmod and Allosmod. We also note that the overdensities in the LMC and SMC are greatly reduced with classlabel_dsc_joint.

The middle panels of Fig. 2 show the distributions of various Gaia features for the sources classified as quasar (in blue) and galaxy (in orange) by classlabel_dsc. The middle panel of Fig. 3 shows the two colours as a colour–colour diagram. These may be compared to the distributions of the training data in the upper panels in both cases. There are some noticeable differences. The most obvious is the spike in the latitude distribution for (apparent) quasars at the LMC. Recall that, when training Allosmod, we used a flat sin b distribution (see Sect. 3.2). We also see that the objects classified – galaxies in particular – extend to fainter magnitudes than the training data. This is not surprising given that the training sample had to have SDSS spectroscopic classifications, whereas we apply DSC to all Gaia sources, which extend to fainter magnitudes, where misclassifications are more frequent. The observed galaxies also show larger (anomalous) proper motions, plus more (anomalous) photometric variability according to the relative variability, relvarg, parameter. Finally, we also see differences in the colour distributions compared to the training data for both classes (Fig. 3). Some of this is due to the different populations being sampled (the training objects are brighter), as well as contamination.

The bottom panels of Figs. 2 and 3 show the features and colour–colour diagrams for objects classified using the purer classlabel_dsc_joint label. These show tighter distributions that are more similar to the training data. We note in particular the reduction of faint galaxies.

We now return to the issue of the 5p/6p and 2p solutions. Figure 7 shows the colour–colour diagram for all sources with classlabel_dsc=‘quasar’, excluding those in the regions around the LMC and SMC, for sources with (5p/6p) and without (2p) parallaxes and proper motions. The DSC-Comdmod probabilities for 5p/6p solutions come from both Specmod and Allosmod, whereas for the 2p solutions they only come from Specmod. Of the objects classified here as quasars, 95% have 5p/6p solutions. We see that the 5p/6p solutions are confined to a smaller range of colours than are the 2p solutions. That is, demanding the existence of parallaxes and proper motions yields a slightly different population of objects in colour space. We reiterate the fact that there is significant stellar contamination in the classlabel_dsc=‘quasar’ sample as a whole. The (purer) subset defined by classlabel_dsc_joint=‘quasar’ has a distribution (not shown) similar to that of the 5p/6p solutions in the bottom left panel of Fig. 7.

thumbnail Fig. 7.

Colour–colour diagram for sources in the qso_candidates table with classlabel_dsc=‘quasar’, excluding regions around the LMC and SMC. The left column shows sources with 5p/6p solutions (2.64 million sources), the right column shows sources with 2p solutions (0.14 million sources). These numbers refer to plotted sources, i.e. that have all Gaia bands. The colour coding in the upper panel shows the mean DSC-Combmod probability for the quasar class (the field classprob_dsc_combmod_quasar). The colour coding in the lower panel shows the density of sources on a log scale relative to the peak density in that panel.

Figure 8 shows the colour–colour diagram for the galaxies. Again we see a difference in the colour distribution of the two types of astrometric solution, but now it is the 2p solutions that cover a narrower range of colours. Galaxies are partially resolved by Gaia, and their structure can induce a spurious parallax and proper motion in AGIS (which DSC-Allosmod tries to exploit). Many of these astrometric solutions are rejected by AGIS, turning them into 2p solutions, and these sources can only be classified by Specmod. Of the objects classified here as galaxies, 72% have 2p solutions, compared to 5% for the quasars. Thus, the Specmod and Allosmod results reported in Gaia DR3 are not for identical populations of objects, because of the different input data requirements of these classifiers.

thumbnail Fig. 8.

As in Fig. 7 but for sources in the galaxy_candidates table with classlabel_dsc=‘galaxy’, excluding regions around the LMC and SMC. The left column shows sources with 5p/6p solutions (0.91 million sources), and the right column shows sources with 2p solutions (2.32 million sources). These numbers refer to plotted sources, i.e. that have all Gaia bands.

As Specmod and Allosmod use different data, it is interesting to see how their classification probabilities differ for a common set of sources. We investigate this by selecting sources that have results from both Specmod and Allosmod, and have classlabel_dsc set. This is shown for the quasar candidates in the left column of Fig. 9. These plots do not convey the number of sources in each part of the diagram, and should therefore be interpreted with that in mind. Nonetheless, although we see regions where Specmod and Allosmod have similar probabilities, there are also regions where their probabilities are quite different. Because classlabel_dsc_joint is only set to ‘quasar’ when both Specmod and Allosmod probabilities are above 0.5, these figures explain why that set is comparatively small. The right column of Fig. 9 shows the same for the galaxy candidates, and again we see a significant lack of correlation between Specmod and Allosmod. This shows that the different data used by these two classifiers convey rather different information.

thumbnail Fig. 9.

Colour–colour diagram for sources in the qso_candidates table with classlabel_dsc=‘quasar’ (left) and in the galaxy_candidates table with classlabel_dsc=‘galaxy’ (right), in both cases excluding regions around the LMC/SMC, that have both Specmod and Allosmod results. Upper and lower panels: the mean DSC-Specmod probability and the mean DSC-Allosmod probability, respectively, for a common sample.

3.5. Use of DSC results

The DSC class probabilities exist primarily to help users identify quasars and galaxies. The performance on white dwarfs and binaries is rather poor. These probabilities will be of limited use to the general user and we do not recommend their use to build samples. One could add these probabilities to the star probability for each source, and thereby end up with a three-class classifier.

Classification can be done by selecting sources with class probabilities above a given threshold. A threshold of 0.5 gives a selection (and performance) very similar to what would be obtained when taking the maximum probability. A threshold of 0.5 applied to the Combmod outputs is identical to the classlabel_dsc label (Sect. 3.2.4). With this choice of threshold, the purities for galaxies and quasars are rather modest, as we can see from Table 3. This is unsurprising, because with a threshold of 0.5 we expect up to half of the objects to be incorrectly classified even with a perfect classifier. Increasing the threshold does increase the purity at the cost of decreased completeness, but because the DSC probabilities tend to be rather extreme (see plots in Bailer-Jones 2021), this does not help as much as one might hope. The fact that the purities are often lower than the limit expected from the threshold may be due not only to an imperfect classifier, but also to an imperfect calibration of the probabilities in Specmod and Combmod (although not Allosmod)6.

The DSC completenesses, especially with Combmod, are quite good, but the purities are rather modest, as discussed earlier. This is a consequence of primarily two factors.

The first factor is the intrinsic rareness of the quasars and galaxies. If only one in every thousand sources were extragalactic, then even if our classifier had 99.9% accuracy, the resulting sample would only be around 50% pure. This is the situation we have: the intrinsic ability of DSC to separate the classes is actually very good, with purities of the order of 99% on balanced test sets. However, when it is then applied to a randomly selected set of Gaia data there are so many stars that even though a small fraction of these are misclassified, this is still a large number. We cannot overcome this problem by adopting a different prior. If we used uniform priors, for example, this would classify many more sources – both true and false – as extragalactic. This would increase the completeness of this class. It is not immediately obvious what happens to the purity, but Bailer-Jones et al. (2019) found that for Allosmod in Gaia DR2, the purities for quasars and galaxies were actually significantly reduced.

The extreme rareness of the extragalactic objects places high demands on the classifiers, and the performance may be limited by the second factor, namely the ability of the data to distinguish between the classes. We experimented with using different or additional Gaia features (e.g. colour excess factor) as inputs to Allosmod, but this did not help. Performance might improve if we define synthetic filters from the BP/RP spectra instead of using the entire spectrum, or by generating other features from the Gaia data, but this has not been explored7. The inclusion of non-Gaia data, such as infrared photometry, should help but was beyond the scope of the activities for Gaia DR3.

A third potential limiting factor is the set of training examples we use. Although the SDSS spectroscopic classifications are believed to be very good, they may have errors, and they may also not provide the clearest distinction between galaxies and quasars.

The fact remains that the classification performance depends unavoidably on the intrinsic rareness, that is, on the prior. Users may want to adopt a different prior from ours (Table 2), which would be particularly appropriate if they focus on a subset of parameter space. To recompute the DSC probabilities with a new prior we do not need to re-train or re-apply DSC. The fact that DSC provides posterior probabilities as outputs makes it simple to strip off our prior and apply a new one, as shown in Appendix C.

It is important to realise that the performances in Table 3 are (a) only for the classes as defined by the training data and (b) an average over the entire Gaia sample, and are therefore dominated by faint sources with lower quality data. Our galaxy class in particular is a peculiar subset of all galaxies, because Gaia tends not to observe extended objects, and even then may not measure them correctly (see Sect. 3.2).

DSC misclassifies some very bright sources that are obviously not extragalactic, for example. As these are easily removed by the user, we chose not to filter the DSC results in any way. One may likewise wonder why there are some objects classified as quasars with statistically significant proper motions. We do use proper motion as a classification feature, but in a continuous fashion, not as a hard cut. A more conservative approach to classification is to apply a series of necessary conditions, that is, a simple decision tree. This could increase the purity – and could be tuned to guarantee that certain known objects come out correctly – but at the expense of completeness. We do nevertheless provide the class label classlabel_dsc_joint as a means to select a purer subsample of extragalactic sources (Sect. 3.2.4), as can be seen from the last two columns of Table 3.

4. Outlier analysis (OA)

4.1. Objectives

The Outlier Analysis (OA) module aims to complement the overall classification performed by the DSC module, by processing those objects with lower classification probability from DSC (see Sect. 3). OA is intended to analyse abnormal or infrequent objects, or artefacts, and was applied to all sources that received DSC Combmod probabilities below 0.999 in all of its five classes. This threshold was chosen so as to process a limited number of 134 million sources, corresponding to about 10% of the total number of sources for which DSC produced probabilities. Subsequently, a selection of the sources to be processed is carried out based on several quality criteria, the most restrictive being that the mean spectra correspond to at least five transits (see details in the online documentation). The resulting filtering leads us to process a total of 56 416 360 sources. Such sources tend to be fainter and/or have noisier data. For these objects, OA provides an unsupervised classification – where the true object types are not known – that complements the one produced by DSC, which follows a supervised approach based on a set of fixed classes.

4.2. Method

The method used by OA to analyse the physical nature of classification outliers is based on a self-organising map (SOM, Kohonen 1982), which groups objects with similar BP/RP spectra (see Sect. 4.2.1) according to a Euclidean distance measure. The SOM performs a projection of the multidimensional input space of BP/RP into a two-dimensional grid of size 30 × 30, which facilitates the visual interpretation of clustering results. Such a projection is characterised by its preservation of the topological order, in the sense that, for a given distance metric, similar data in the input space will belong to the same or to neighbouring neurons in the output space. Each one of these neurons has a prototype, which is adjusted during the training phase and that best represents the input spectra that are closest to this neuron. In Gaia DR3, each prototype is the average spectrum of the pre-processed8 BP/RP spectra of the sources assigned to that particular neuron, which correspond to those closest to the neuron according to the Euclidean distance between the neuron prototype and the pre-processed BP/RP spectrum of the source. Neuron prototypes are reported in the oa_neuron_xp_spectra table. A centroid is also identified for each neuron, which is the source whose pre-processed BP/RP spectrum is the closest to the prototype of the neuron, according to the Euclidean distance. Centroids can be found in the centroid_id field of the oa_neuron_information table along with statistics of the main Gaia observables for the sources belonging to this neuron: G, GBP, and GRP magnitudes, proper motions, Galactic latitude, parallax, number of BP/RP transits, renormalised unit weight error (ruwe), BP/RP flux excess factor, and GBP − GRP colour.

4.2.1. BP/RP spectra preprocessing

The sampled mean BP/RP spectra produced by SMSgen are transformed in order to remove artefacts, and to improve the clustering produced by the SOMs: (a) Pixels with negative or zero flux values are linearly interpolated, provided that they do not affect more than 10% of the effective wavelength in a consecutive manner or more than 25% of the entire effective wavelength. Such a filtering was imposed because most of the spectra that did not meet such criteria were usually of low quality and had a low number of transits. These filtered spectra are not analysed; (b) BP and RP spectra are downsampled to 60 pixels each; (c) both spectra are trimmed to avoid the low transmission regions of the CCD, so that OA uses the effective wavelength ranges 375–644 nm for BP and 644–1050 nm for RP; (d) spectra are concatenated to obtain a single spectrum; and, (e) the joint spectrum is normalised so that the sum of its flux is equal to one.

4.2.2. Quality assessment

The performance of OA cannot be measured through metrics such as completeness and purity because of the unsupervised nature of the technique. Therefore, a descriptive approach based on the intra-neuron and inter-neuron distances (Álvarez et al. 2021) was followed in order to analyse the quality of the clustering. We decided to use the squared Euclidean distance as a proxy for distance because the SOM algorithm uses it as a measurement of mean quantisation error for processing elements. The intra-neuron distance of each source is then computed as the squared value of the Euclidean distance between the source and the prototype of the neuron it belongs to, whereas the inter-neuron distance is computed as the squared Euclidean distance between two different neuron prototypes. In order to assess the quality of the clustering, we selected the three parameters that we thought best describe the distribution of the intra-neuron distances: (a) the width of the distribution according to the value of the full width at half maximum (FWHM); (b) the skewness (S), which measures its asymmetry; and, (c) the kurtosis excess (K), which measures the level of concentration of distances. A high-quality clustering will result from neurons with low values of the FWHM parameter, and large positive values of both skewness and kurtosis. Finally, in order to facilitate the interpretation of such quality measurements, a categorical index named QC was derived based on the values obtained for S, K, and a normalised version of FWHM (which is reversed in order for the higher quality neurons to take larger values). To this purpose, seven quality categories were established, according to the values taken by such parameters with respect to six arbitrarily chosen percentiles (95th, 90th, 75th, 50th, 32th, and 10th), which are computed independently for each one of the parameters listed above over the entire map. For each neuron, we determine the lowest percentile in which the three parameters are above their respective percentile values. Thus, if a value is above the 95th percentile, then QC will take the value of zero; if it is in the 90th percentile, then QC will correspond to category one, and so on up to category six, which will correspond to those neurons whose poorest quality indicator is outside the lowest percentile that has been considered, 10th. Accordingly, the best-quality neurons will have QC = 0 and the worst ones QC = 6. It should be emphasised here that QC only assesses the quality of the clustering (i.e. how closely the pre-processed BP/RP spectra in a neuron match their prototype) compared to the overall intra-neuron distances, such that no assumption should be made on the quality of the spectra they contain, nor on the labelling of the individual neurons described below.

4.2.3. Neuron labelling

Unsupervised methods do not directly provide any label to the samples that are being analysed. For this reason, a set of reference BP/RP spectra templates for prototypical astronomical objects was built by taking into account validation sources from the various Apsis modules (see the online documentation). These reference templates are used to label the neurons in Gaia DR3 by identifying the closest template to the neuron prototype according to the Euclidean distance. In addition, to guarantee the suitability of the assigned templates (and class labels), two conditions were imposed: (a) the squared Euclidean distance between a template and the neuron prototype must not exceed a threshold of 3.58 × 10−2; and, (b) the neuron must have QC < 6. Figure 10 shows the SOM built by OA for Gaia DR3, where around 80% of the neurons were assigned a template, and hence a class label. The limit of 3.58 × 10−2 on the squared distance was set during the template-building process and is detailed in the online documentation.

thumbnail Fig. 10.

SOM grid from the OA module visualised through the GUASOM tool (Álvarez et al. 2021). Each cell corresponds to a neuron from the SOM, most of which were assigned a class label. Those neurons that did not meet the quality criteria defined to establish a class label remain ‘undefined’, as explained in Sect. 4.2.3

4.2.4. GUASOM visualisation tool

To help the user to analyse and visualise the clustering results, we designed an application called Gaia Utility for the Analysis of Self-Organising Maps (GUASOM) (Álvarez et al. 2021). It can be run over the internet, and contains several visualisation utilities that allow an interactive analysis of the information present on the map. The tool provides both classical and specific domain representations such as U-matrix, hits, parameter distributions, template labels, colour distribution, and category distribution.

4.3. Performance and results

OA processed 56 416 360 objects in Gaia DR3. Figure 11 displays their G magnitude distribution, demonstrating that OA covers a wide range of G magnitudes with a significant fraction of faint objects.

thumbnail Fig. 11.

G mag distribution of the 56 416 360 sources processed by the OA module in Gaia DR3 (bin width of 0.1).

Figure 12 shows the histogram of neuron quality categories, QC, where the total number of sources belonging to such neurons is superimposed. Approximately 35% of the neurons have 0 ≤ QC ≤ 3 and are hence referred to as ‘high-quality neuron’: these comprise around 55% of the sources processed. The rest of the neurons can be considered as low-quality neurons. Figure 13 shows how the quality categories are distributed over the SOM.

thumbnail Fig. 12.

Histogram of neuron quality categories for the sources processed by the OA in Gaia DR3. The number of sources per category is superimposed along with the bars. Those neurons with 0 ≤ QC ≤ 3 are considered high-quality neurons.

It is worth mentioning that the SOM does not directly label neurons, nor does it provide quality measurements on the clustering they produce, which means that we have to apply the procedures described in Sects. 4.2.2 and 4.2.3 after we build the map. As a result, Fig. 13 shows the quality category associated with each neuron in our grid of 30 × 30 neurons. These quality categories assess how well the sources fit to the prototype of the neuron they belong to: neurons with the lowest quality category are composed of sources whose spectra are the most homogeneous (i.e. neurons of highest quality). Similarly, in Fig. 10, the label assigned to each neuron provides a hint as to the astronomical type of the sources they contain. Comparing Figs. 10 and 13, we can see that high-quality neurons mostly correspond to stars and galaxies, while quasars are usually associated with low-quality neurons. The reason for this mostly stands in the wide range of cosmological redshifts that is observed amongst those objects, in their different continuum shapes and emission-line equivalent widths.

thumbnail Fig. 13.

SOM grid visualised through the GUASOM tool (Álvarez et al. 2021) to represent the quality category (QC) assigned to each neuron.

Table 4 represents the contingency table between DSC Combmod and OA class labels. DSC labels are determined according to the class with the highest DSC Combmod probability, except for those that take a probability below 0.5, which are labelled as ‘unknown’. Sources with DSC ‘binary star’ class are considered as ‘star’ as the former class is not present in OA. Similarly, OA class labels are aggregated into more generic ones in order to enable comparison with the DSC class labels. Recalling that OA only processes sources with all DSC Combmod probabilities below 0.999, the OA results can be summarised as follows.

  • Galaxies: There is close agreement for galaxies, as around 80% of the galaxies identified by DSC are also confirmed by OA.

  • Quasars: The agreement with DSC decreases to 35%. A large fraction of those quasars identified by DSC are considered as stars or white dwarfs by OA.

  • Stars: Around 40% of those identified by DSC were also confirmed by OA. However, a large fraction of them were considered as extragalactic objects by OA.

  • White dwarfs: In this case, the agreement between both modules is around 50%. Most of the remaining objects are considered as stars by OA.

Table 4.

Contingency table between DSC taken from predominant probabilities produced by DSC Combmod and OA classifications, grouped into generic types.

Around 11% of the sources are assigned to a neuron that was not labelled by OA because of their poor quality (category six). In particular, approximately 2510 sources could not be classified by OA and have classlabel_dsc = ’unclassified’, meaning that studying their nature may require a deeper analysis.

4.4. Use of OA clustering

The analysis performed by the OA module can be useful for different purposes. For instance, high-quality neurons can help to assess the physical nature of some sources with DSC combmod probabilities below the chosen threshold (0.999) in all classes or to identify objects that were potentially misclassified. As OA provides an unsupervised classification based on a normalised SED comparison, for a given neuron there are sources with different degrees of similarity to the prototype. For that reason, we encourage the user to isolate clean samples for each neuron through the quality measurements provided in the online documentation. In particular, we suggest combining both the categorical quality index (QC) and the classification distance in order to retrieve the best classified sources from OA. Table 5 shows the number of sources per class that are assigned to a high-quality neuron (from category zero to three), and whose classification distance between the pre-processed BP/RP spectrum of the source and the neuron prototype is below 0.001 (i.e. what we consider here as reliable predicted classes). As can be seen, around 13 million stars, 9 million galaxies, 2 million quasars, and 1.5 million white dwarfs meet these criteria.

Table 5.

Number of sources in each OA class that belong to a high-quality neuron while having a classification squared Euclidean distance below 0.001 (i.e. what we consider here as reliable).

5. Quasar classifier (QSOC)

5.1. Objectives

The quasar classifier (QSOC) module is designed to determine the redshift, z, of the sources that are classified as quasars by the DSC module (see Sect. 3 for more details). In order to produce redshift estimates for the most complete set of sources, we considered a very low threshold on the DSC quasar probability of classprob_dsc_combmod_quasar ≥0.01, meaning that we expect a significant fraction of the processed sources to be stars or galaxies. Users interested in purer sub-samples may then require that classlabel_dsc_joint = ’quasar’, as explained in Sect. 3.2.4, or may use more sophisticated filtering, as explained in Gaia Collaboration (2023, Sect. 8).

5.2. Method

5.2.1. Overview

QSOC is based on a χ2 approach that compares the observed BP/RP spectra sampled by SMSgen (see Creevey et al. 2023, and the online documentation) to quasar rest-frame templates in order to infer their redshift. The predicted redshifts take values in the range 0.0826 < z < 6.12295. As the effective redshift is not necessarily the one associated with the minimal χ2 (see Sect. 5.2.3), it is complemented by an indicator of the presence of quasar emission lines (Zscore from Eq. (6)) and these are converted into a redshift score, S, from Eq. (7). For a given source, the redshift with the highest score is then the one that is selected by the algorithm. Quasar templates are described in Sect. 5.2.2 while the redshift determination algorithm is described in Sect. 5.2.3.

5.2.2. Quasar templates

The quasar templates used by QSOC were built based on the method described in Delchambre (2015) and applied to 297 264 quasars9 from the twelfth release of the Sloan Digital Sky Survey Quasar catalogue of Pâris et al. (2017, DR12Q). These spectra are first extrapolated to the wavelength range of the Gaia BP/RP spectro-photometer (i.e. 300–1100 nm) with a linear wavelength sampling of 0.1 nm using a procedure similar to the one used by Delchambre (2018). They are subsequently converted into BP/RP spectra through the use of the BP/RP spectrum simulator provided by CU5 and described in Montegriffo et al. (2023). An artificial spectrum with a uniform SED (i.e. of constant flux density per wavelength) was also converted through the BP/RP spectrum simulator in order to produce the so-called ‘flat BP/RP spectrum’. We then divided each simulated BP/RP spectrum by its flat counterpart before subtracting a quadratic polynomial that is fitted to the observations in a least absolute deviation sense (i.e. -1 norm minimisation), leaving pure emission line spectra. We note that, in order to avoid fitting emission lines, a second-order derivative of the flux density was estimated around each sampled point, d 2 f i /d λ i 2 $ {\rm d}^2 f_i / {\rm d} \lambda_i^2 $, and later used to scale the associated uncertainties by a factor of max(| d 2 f i /d λ i 2 |/M,0.01) $ \max(\left| {\rm d}^2 f_i / {\rm d} \lambda_i^2 \right| / M, 0.01) $, where M is a normalisation factor equal to the maximal absolute value of the second-order derivatives evaluated over all the sampled points. As the continuum regions often have very low curvatures compared to the emission lines, they are usually overweighted by a factor of up to 100 in the -1 norm minimisation. A logarithmic wavelength sampling of log L = 0.001 was then used for both the BP and RP templates, ensuring that the resolution of the BP/RP spectra, as sampled by SMSgen, is preserved. We extracted 32 BP/RP templates based on these 297 264 simulated spectra using the weighted principal component analysis method described in Delchambre (2015); nevertheless, only the dominant BP/RP templates – corresponding to the mean of the weighted principal component analysis method – were used because cross-validation tests performed on the simulated spectra show that a larger number of templates significantly increases the degeneracy between redshift predictions.

The resulting templates, illustrated in Fig. 14, closely match the typical composite spectra of quasar emission lines (see e.g. Gaia Collaboration 2023, Sect. 7), although they are convolved by the Gaia line spread function which is averaged over the entire set of rest-frame wavelengths. The templates cover the rest-frame wavelength range from 45.7 nm to 623.3 nm in BP and from 84.6 nm to 992.3 nm in RP. These limits, along with the observed wavelength coverage imposed by SMSgen of 325–680 nm in BP and 610–1050 nm in RP allow QSOC to predict redshifts in the range 0.0826 < z < 6.129510.

thumbnail Fig. 14.

Rest-frame quasar templates used by QSOC. These correspond to the dominant templates taken over the 32 templates that are computed based on the method described in Delchambre (2015) and applied to 297 264 quasars from the DR12Q catalogue that are converted into BP/RP spectra through the use of the BP/RP spectrum simulator provided by CU5.

5.2.3. Algorithm

The determination of the redshift of quasars by QSOC is based on the fact that the redshift, z, turns into a simple offset once considered on a logarithmic wavelength scale:

Z = log ( z + 1 ) = log λ obs log λ rest , $$ \begin{aligned} Z = \log (z + 1 ) = \log \lambda _{\rm obs} - \log \lambda _{\rm rest}, \end{aligned} $$(1)

where we assume that a given spectral feature located at rest-frame wavelength λrest is observed at wavelength λobs. Consider such a logarithmic sampling λi = λ0Li, where λ0 is a reference wavelength and L is the logarithmic wavelength sampling we use, here log L = 0.001 (or L ≈ 1.001). Then for a given set of n rest-frame templates, T, and an observation vector, s, which are both logarithmically sampled with L, the derivation of the optimal shift, k, between T and s can be formulated as a χ2 minimisation problem through

χ 2 ( k ) = i 1 σ i 2 ( s i j = 1 n a j , k T i + k , j ) 2 , $$ \begin{aligned} \chi ^2(k) = \sum _i \frac{1}{\sigma _i^2} \left( s_i - \sum _{j=1}^{n} a_{j,k} T_{i+k,j} \right)^2 ,\end{aligned} $$(2)

where σi is the uncertainty on si and aj, k are the coefficients that enable the fit of T to s in a weighted least squares sense while considering a shift k that is applied to the templates. The redshift that is associated with the shift k is then given by z = Lk − 1. A continuous estimation of the redshift is then obtained by fitting a quadratic polynomial to χ2(k) in the vicinity of the most probable shift.

Despite its appealing simplicity, Eq. (2) is known to have a cubic time complexity on N, as shown in Delchambre (2016), where N is the number of samples contained in each template. In the same manuscript, it is shown that the computation of the cross-correlation function (CCF), defined as

ccf ( k ) = ( i s i 2 σ i 2 ) χ 2 ( k ) = C χ 2 ( k ) , $$ \begin{aligned} {\text{ ccf}}(k) = \left(\sum _i \frac{s_i^2}{\sigma _i^2}\right) - \chi ^2(k) = C - \chi ^2(k), \end{aligned} $$(3)

requires only 𝒪(N log N) floating point operations. Furthermore, given that C is independent of the explored shift, k, maximising ccf(k) is equivalent to minimising χ2(k).

However, some features of the BP/RP spectra complicate the computation of the CCF. First, the BP and RP spectra are distinct such that the effective CCF is actually composed of the sum of two CCFs associated with the BP and RP spectra and templates, ccfbp(k) and ccfrp(k), respectively:

ccf ( k ) = ccf bp ( k ) + ccf rp ( k ) . $$ \begin{aligned} {\text{ ccf}}(k) = {\text{ ccf}}_{\rm bp}(k) + {\text{ ccf}}_{\rm rp}(k). \end{aligned} $$(4)

Secondly, the BP/RP spectra have bell shapes (i.e. their flux smoothly goes to zero at the borders of the spectra), and have spectral flux densities that are integrated over wavelength bins of different sizes, as explained in Creevey et al. (2023). Equation (3) is therefore not directly applicable to these spectra. In order to overcome these difficulties, we divided each BP/RP spectrum by the previously mentioned flat BP/RP spectrum (i.e. BP/RP spectrum coming from a constant flux density and converted through the BP/RP spectrum simulator) and updated their uncertainties accordingly. This solution enables us to solve both the bell shape issue and the varying wavelength size of each pixel, passing from units of flux to units of flux density. Finally, most of the quasar flux resides in its continuum, which we model here as a second-order polynomial, concatenated to the set of templates, T, and subsequently fitted to the observations in Eq. (3).

As highlighted in Delchambre (2018), the global maximum of the CCF may not always lead to a physical solution as, for example, some characteristic emission lines of quasars (e.g. Lyα, MgII, or Hα) may be omitted from the fit while some emission lines can be falsely fitted to absorption features. This global maximum may also result from the fit of noise in the case of very low signal-to-noise-ratio (S/N) spectra. In order to identify these sources of error, we define a score, 0 ≤ S(k)≤1, that is associated with each shift; the shift associated with the highest score is the one that is selected by the algorithm. This score is computed as a weighted p-norm of the chi-square ratio defined as the value of the CCF evaluated at k over the maximum of the CCF,

χ r 2 ( k ) = ccf ( k ) max k ( ccf ) where 0 χ r 2 ( k ) 1 , $$ \begin{aligned} \chi _r^2(k) = \frac{{\text{ ccf}}(k)}{{\text{ max}}_k({\text{ ccf}})} \text{ where} 0 \le \chi _r^2(k) \le 1, \end{aligned} $$(5)

and of an indicator of the presence of quasar emission lines,

Z score ( k ) = λ [ 1 2 ( 1 + erf e λ σ ( e λ ) 2 ) ] I λ , $$ \begin{aligned} Z_{\rm score}(k) = \prod _\lambda \left[ \frac{1}{2} \left(1 + {\text{ erf}} \frac{e_\lambda }{\sigma (e_\lambda ) \sqrt{2}}\right) \right]^{I_\lambda }, \end{aligned} $$(6)

where eλ is the value of the BP/RP flux of the continuum-subtracted emission line at rest-frame wavelength λ if we consider the observed spectrum to be at redshift z = Lk − 1; σ(eλ) is the associated uncertainty and Iλ is the theoretical intensity11 of the emission line located at λ, which is normalised so that the total intensity of all emission lines in the observed wavelength range is equal to one. Equation (6) can then be viewed as a weighted geometric mean of a set of normal cumulative distribution functions of mean zero and standard deviations σ(eλ) evaluated at eλ. A Zscore close to one indicates that all the emission lines that we expect at redshift z are found in the spectra while missing a single emission line often leads to a very low Zscore. The final formulation of the score is then given by

S ( k ) = w 0 [ χ r 2 ( k ) ] p + w 1 [ Z score ( k ) ] p p , $$ \begin{aligned} S(k) = \root p \of {{ w}_0 \, \left[\,\chi _r^2(k)\,\right]^p + { w}_1 \, \left[\,Z_{\rm score}(k) \,\right]^{p}}, \end{aligned} $$(7)

where w0, w1, and p are parameters of the weighted p-norm, as listed in Table 6.

Table 6.

The QSOC parameters used to compute the redshift score of quasars from Eq. (7) and the Zscore from Eq. (6).

Table 6 summarises the various parameters used in the computation of the redshift score, S(k). Also, in order to facilitate the filtering of these potentially erroneous redshifts by the final user, we define binary processing flags, flags_qsoc, which are listed in Table 7. As later highlighted in Sect. 5.4, most secure predictions often have bits 1–4 unset (i.e. flags_qsoc = 0 or flags_qsoc = 16).

Table 7.

Binary warning flags used in the QSOC redshift selection procedure and reported in the hflags_qsoc field.

Finally, the uncertainty on the selected redshift, σz, is derived from the uncertainty on the associated shift, σk, using the asymptotic normality property of the χ2 estimator, which states that k is asymptotically normally distributed with a variance that is inversely proportional to the curvature of the CCF around the optimum. In particular, the variance on k is asymptotically given by σ k 2 =2d k 2 / d 2 ccf(k) $ \sigma_k^2 = -2\, {\rm d}k^2 / {\rm d}^2 \it{ccf}(k) $, and as Z = klog(L), the logarithmic redshift, Z = log(z + 1), is also normally distributed with a variance of

σ Z 2 = 2 | d 2 ccf ( k ) d k 2 | 1 log 2 ( L ) . $$ \begin{aligned} \sigma _Z^2 = 2 \, \left|\frac{\mathrm{d}^2 {\text{ ccf}}(k)}{\mathrm{d}k^2}\right|^{-1} \log ^2 \left(L\right). \end{aligned} $$(8)

Furthermore, as z = expZ − 1, the redshift that is reported by QSOC is distributed as a log-normal distribution of mean Z and variance σ Z 2 $ \sigma_Z^2 $, although this distribution is shifted by −1. Accordingly, the squared uncertainty on the computed redshift is given by

σ z 2 = ( z + 1 ) 2 ( exp σ Z 2 1.0 ) exp σ Z 2 , $$ \begin{aligned} \sigma _z^2 = (z + 1)^2 \left(\exp \sigma _Z^2 - 1.0\right) \exp \sigma _Z^2, \end{aligned} $$(9)

while its lower and upper confidence intervals, taken as its 0.15866 and 0.84134 quantiles, respectively, are given by

z low = exp ( Z σ Z ) 1 and z up = exp ( Z + σ Z ) 1 . $$ \begin{aligned} z_{\rm low} = \exp (Z - \sigma _Z) - 1 \text{ and } z_{\rm up} = \exp (Z + \sigma _Z) - 1. \end{aligned} $$(10)

5.3. Performance and results

The QSOC contributions to Gaia DR3 can be found in the qso_candidates table and consist of: redshift_qsoc, the quasar redshift, z; redshift_qsoc_lower/redshift_qsoc_upper, the lower and upper confidence intervals, zlow and zup, corresponding to the 16% and 84% quantiles of z, respectively, as given by Eq. (10); ccfratio_qsoc, the chi-square ratio, χ r 2 $ \chi_r^2 $, from Eq. (5); zscore_qsoc, the Zscore from Eq. (6), and flags_qsoc, the QSOC processing flags, zwarn, from Table 7.

We quantitatively assess the quality of the QSOC outputs by comparing the predicted reshifts against values from the literature. For this purpose, we cross-matched 6 375 063 sources with redshift estimates from QSOC with 790 776 quasars that have spectroscopically confirmed redshifts in the Milliquas 7.2 catalogue of Flesch (2021) (i.e. type = ’Q’ in Milliquas). Using a 1″ search radius, we found 439 127 sources in common between the two catalogues. It should be emphasised here that the distributions of the redshifts and G magnitudes of the cross-matched sources are not representative of the intrinsic quasar population as they inherit the selection and observational biases that are present in both the Milliquas catalogue and in Gaia. The numbers reported here should therefore be interpreted with that in mind. A straight comparison between the QSOC predictions and the Milliquas spectroscopic redshifts, illustrated in Fig. 15 on a logarithmic scale, shows that 63.7% of the sources have an absolute error on the predicted redshift, |Δz|, that is lower than 0.1. This ratio increases to 97.6% if only flags_qsoc = 0 sources are considered.

thumbnail Fig. 15.

Histogram of the logarithmic redshift error, ΔZ = log(z + 1)−log(ztrue + 1) between QSOC redshift, z, and literature redshift, ztrue, for 439 127 sources contained in the Milliquas 7.2 catalogue. A bin width of 0.01 was used for both curves.

As most of the DR12Q quasars we use for building our templates are also contained in the Milliquas catalogue (161 278 QSOC predictions are contained in both the DR12Q and Milliquas catalogue), one may wonder whether these induce a positive bias on the fraction of sources with |Δz|< 0.1. In order to answer this question, we note that the QSOC templates were built based on a statistically significant number of 297 264 sources, and so we expect the computed templates to be representative of the whole quasar population under study while not being too specific to the particular set of spectra we used (i.e. any other set of spectra of the same size would have provided us with very similar templates). Nevertheless, 71% of the sources in the DR12Q catalogue have |Δz|< 0.1. This compares to 59.5% of the sources with |Δz|< 0.1 that are not in the DR12Q catalogue. If we consider only sources with flags_qsoc = 0, then these numbers are 97% and 98.8%, respectively. The observed differences can be explained primarily by the fact that, due to the selection made in the SDSS-III/BOSS survey, 31.7% of the DR12Q sources that are found among the QSOC predictions have 2 < z < 2.6, where the presence of the Lyα+Si IV+C IV+C III emission lines allows secure determination of the redshift (81.4% of the sources in this range have |Δz|< 0.1). In contrast, the redshift distribution of the sources that are found only in Milliquas peaks in the range 1.2 < z < 1.4 where only 50.5% of the sources have |Δz|< 0.1, owing to the sole presence of the Mg II emission line in this redshift range (see Sect. 5.4 for more information on these specific redshift ranges). However, both subsets have a comparable fraction of predictions with |Δz|< 0.1 once these are computed over narrower redshift ranges, as expected.

We further investigate the distribution of the logarithmic redshift error, defined as

Δ Z = log ( z + 1 ) log ( z true + 1 ) , $$ \begin{aligned} \Delta Z = \log (z + 1) - \log (z_{\rm true} + 1), \end{aligned} $$(11)

between QSOC redshift, z, and the literature redshift, ztrue, in Fig. 15. If we assume that a spectral feature at rest-frame wavelength λtrue is falsely identified by QSOC as another spectral feature at λfalse, then the resulting logarithmic redshift error will be equal to ΔZ = log λtrue − log λfalse, such that ΔZ, besides its ability to identify good predictions, can also be used to highlight common mismatches between emission lines. In Fig. 15, we can see that most of the predicted (logarithmic) redshifts are in good agreement with their literature values while emission line mismatches mainly occur with respect to two specific emission lines: CIII] and Mg II. In the most frequent case, the C IV emission line is misidentified as Lyα, because the separation between these two lines is comparable to the separation between C IV and CIII] when considered on a logarithmic wavelength scale. The Lyα and CIII] lines are subsequently fitted to noise or wiggles in the very blue part of BP and in RP, respectively. By requiring that flags_qsoc = 0, we can mitigate the effect of these emission-line mismatches without affecting the central peak of correct predictions too much.

Finally, we note that the distribution of ΔZ/σZ, where σZ = [log(zup + 1)−log(zlow + 1)]/2 is defined in Eq. (8), effectively follows an approximately Gaussian distribution of median 0.007 and standard deviation (extrapolated from the inter-quartile range) of 1.053 if observations with |Δz|< 0.1 are considered. If only observations for which flags_qsoc = 0 are considered, ΔZ/σZ have a median of 0.002 and standard deviation of 1.14.

5.4. Use of QSOC results

In Gaia DR3, QSOC systematically publish redshift predictions for which classprob_dsc_combmod_quasar ≥0.01 and flags_qsoc ≤16, leading to 1 834 118 sources that are published according to these criteria (see source_selection_flags for more information on the selection procedure). Nevertheless, for the sake of completeness, we also publish redshift estimates for all sources with classprob_dsc_combmod_quasar ≥0.01 that are contained in the qso_candidates table, yielding 4 540 945 additional sources for which flags_qsoc > 16. However, these last predictions are of lower quality as, for example, a comparison with the Milliquas spectroscopic redshift shows that 39.6% of the flags_qsoc > 16 sources have |Δz|< 0.1, compared to 87% for sources with flags_qsoc ≤16.

Of the source parameters published in the Gaia DR3, the G-band magnitude, phot_g_mean_mag, has a particularly strong impact on the quality of the QSOC predictions; it shows a clear correlation with the S/N of the BP/RP spectra, as does the number of BP/RP spectral transits to a lesser extent. From the top panel of Fig. 16, we see that more than 89% of the sources with G ≤ 19 mag have |Δz|< 0.1 (black line) while the same fraction is obtained for spectra with 19.9 < G < 20 mag only for sources with flags_qsoc = 0 (orange solid line). However, these correspond to a very small fraction (5.5%) of the sources in this magnitude range (blue solid line). A less stringent cut, flags_qsoc = 0 or flags_qsoc = 16, where we encounter no processing issue (i.e. flag bits 1–4 are not set) even when the BP/RP spectra are unreliable (i.e. flag bit 5 can be set), still leads to 92% of the sources with |Δz|< 0.1 (orange dotted line) while retaining 36.5% of the sources in this magnitude range (blue dotted line). The same cut concurrently retains 22% of the 20.4 < G < 20.5 mag observations where 81.5% of the predictions have |Δz|< 0.1 and is accordingly recommended for users dealing with sources at G > 19 mag.

thumbnail Fig. 16.

Fraction of successful and reliable QSOC predictions computed over 439 127 sources contained in the Milliquas 7.2 catalogue with respect to G magnitude (top), Milliquas redshift (middle), and QSOC redshift (bottom). Black line: Fraction of observations with an absolute error of the predicted redshift, |Δz|, lower than 0.1. Orange line: Fraction of flags_qsoc = 0 sources with |Δz|< 0.1. Blue line: Fraction of observations with flags_qsoc = 0. Orange and blue dotted lines correspond to their solid counterpart while considering (flags_qsoc = 0 or flags_qsoc = 16) observations instead of flags_qsoc = 0 observations. Fractions are computed with respect to the number of sources in magnitude and redshift bins of 0.1.

Besides the aforementioned recommendations on the flags_qsoc and G magnitude, we should point out an important limitation of the Gaia BP/RP spectro-photometers regarding the identification and characterisation of quasars, namely the fact that the Mg II emission line is often the sole detectable emission line in the BP/RP spectra of 0.9 < z < 1.3 quasars in the moderate-S/N regime of G ≳ 19 mag spectra. Indeed, despite the broad 325–1050 nm coverage of the BP/RP spectrophotometers, quasar emission lines are often significantly damped in the observed wavelength regions λ < 430 nm and λ > 950 nm, owing to the low instrumental response in these ranges (see for example Gaia Collaboration 2023, Fig. 10). As a result, the Hβ and CIII] emission lines surrounding the Mg II line12 only enter the BP/RP spectra at z = 0.95 and z = 1.25, respectively. Nevertheless, we consider a range of 0.9 < z < 1.3 in order to take into account low-S/N spectra where these lines, although present, are often lost in the noise. The sole presence of the Mg II emission line has the deleterious effect of increasing the rate of mismatches between this line and mainly the Lyα and Hβ emission lines, as seen in Fig. 15. Another issue also arises for z ≈ 1.3 quasars, where the CIII] emission line enters the BP spectrum while the Mg II line now lies on the peak of the BP spectrum, which complicates its detection by the algorithm leading to mismatches between CIII] and the Lyα or Mg II emission lines. These effects are clearly visible in the middle panel of Fig. 16 at 0.9 < z < 1.3, along with the previously discussed misidentification of the C IV line as Lyα at z ≈ 2. Appropriate cuts on flags_qsoc allow both of these shortcomings to be alleviated, as seen in Fig. 16.

In the bottom panel of Fig. 16, we see that the fraction of sources with |Δz|< 0.1 amongst very low- and high-redshift sources, as predicted by QSOC, is low (7.25% for z < 0.2 sources and 2.66% for z > 4 sources). The explanation is that these very low- and high-z quasars are rare in our sample, such that any erroneous prediction towards these loosely populated regions is largely reflected in the final fraction of predictions (i.e. the ‘purity’ in these regions becomes very low). Again, cuts on the flags_qsoc allow us to recover about 90% of sources with |Δz|< 0.1 in the range 0.1 < z < 4.4. Concentrating on the drop at z < 0.1, we note that only 69 sources have a Milliquas redshift in this range, while only 31 have 0.0826 < z < 0.1 (i.e. in the predictable QSOC redshift range). Amongst these 69 sources, 38 have |Δz|< 0.1 while 4 have flags_qsoc = 0 but these are unfortunately erroneously predicted. These low numbers, along with the fact that QSOC predicts 2 154 sources in this redshift range (i.e. 0.5% of the total predictions) explains the drop at z < 0.1 in the middle and bottom panels of Fig. 16, even when flags_qsoc = 0. Regarding the z > 4.4 quasars, only 76 of them have redshifts in both Gaia and Milliquas, while only 10 have flags_qsoc = 0 and 9 of these also have |Δz|< 0.1. There are 18 959 sources with QSOC redshift predictions in this range, although only 101 (i.e. 0.5%) of them have flags_qsoc = 0. This leads to a rather poor fraction of 9/101 of the sources with |Δz|< 0.1 and flags_qsoc = 0 in this redshift range.

In conclusion, we should insist first on the fact that QSOC is designed to process Type-I/core-dominated quasars with broad emission lines in the optical and accordingly yields only poor predictions on galaxies, type-II AGN, and BL Lacertae/blazar objects. Secondly, SMSgen does not provide covariance matrices on the integrated flux (Creevey et al. 2023), meaning that the computed χ2 from Eq. (2) is systematically underestimated and is consequently not published in Gaia DR3. The computed redshift and associated confidence intervals, zlow and zup from Eq. (10), though appropriately re-scaled, might also sporadically suffer from this limitation.

6. Unresolved galaxy classifier (UGC)

6.1. Objectives

The Unresolved Galaxy Classifier (UGC) module estimates the redshift, z, of the sources with G < 21 mag that are classified as galaxies by DSC-Combmod with a probability of 0.25 or more (see Sect. 3 for details). UGC infers redshifts in the range 0 ≤ z ≤ 0.6 by using a combination of three support vector machines (SVMs, Cortes & Vapnik 1995), all taking as input the BP/RP spectra of the sources as sampled by SMSgen (Creevey et al. 2023, Sect. 2.3.2). The SVMs are trained on a set of BP/RP spectra of galaxies that are spectroscopically confirmed in the SDSS DR16 archive (Ahumada et al. 2020). UGC further applies filtering criteria for selecting redshifts to be published in Gaia DR3, as described in Sect. 6.2.

6.2. Method

UGC is based on the LIBSVM library of Chang & Lin (2011), from which three SVM models are built: (i) t-SVM, the total-redshift range SVM model, which computes the published redshift, redshift_ugc, and associated SVM prediction intervals, redshift_ugc_lower and redshift_ugc_upper, (ii) r-SVM, and (iii) c-SVM, which are respectively regression and classification SVM models applied to discretised versions of the redshift and used exclusively for the internal validation of the redshift produced by the t-SVM model. All SVM models use common training and test sets, which we describe below.

6.2.1. Training and test sets

The sources in the training and test sets were selected from the SDSS DR16 archive (Ahumada et al. 2020), which provide position, redshift, magnitudes in the u-, g-, r-, i-, z-bands, photometric sizes (we used here the Petrosian radius), and interstellar extinction for each spectroscopically confirmed galaxy. There are 2 787 883 objects in SDSS DR16 that are spectroscopically classified as galaxies, but we rejected sources with poor or missing photometry, size, or redshift, thus reducing the number of galaxies to 2 714 637. Despite the known lack of uniformity of the SDSS DR16 redshift distribution due to the BOSS target selection13, this survey still provides the largest existing database of accurate spectroscopic redshifts of galaxies that can be used as target values in the SVM training and test sets.

The selected galaxies were cross-matched to the Gaia DR3 sources prior to their filtering by CU9 using a search radius of 0.54″, which resulted in 1 189 812 cross-matched sources. Amongst these, 711 600 have BP/RP spectra, though not all of them are published in Gaia DR3. Because the inclusion of high-redshift galaxies would lead to a very unbalanced training set (i.e. very few high-redshift galaxies), we further imposed an upper limit on the SDSS DR16 redshift of z ≤ 0.6, leaving 709 449 sources that constitute our base set.

For the preparation of the training set, a number of conditions were further imposed on the sources in the base set: (i) G ≤ 21.0 mag; (ii) BP/RP spectra must be composed of a minimum of six epochs of observations; (iii) the mean flux in the blue and red parts of the BP/RP spectra, as computed by UGC, must lie in the ranges 0.3 ≤ bpSpecFlux ≤ 100 e s−1 and 0.5 ≤ rpSpecFlux ≤ 200 e s−1, respectively, in order to exclude potentially poor-quality spectra; (iv) the image size, as characterised by the Petrosian radius, must be in the range 0.5″ ≤ petroRad50_r ≤ 5″ in order to exclude suspiciously compact or significantly extended galaxies; (v) the interstellar extinction in the r-band must be below the upper limit of extinction_r ≤ 0.5 mag to avoid highly reddened sources; and (vi) the redshift must be larger than 0.01 in order to exclude nearby extended galaxies. After applying all these cuts, 377 875 sources remained, which we refer to as the clean set. Of these, 6000 sources were randomly selected in order to construct the training set, the redshift distribution of which is given in Table 8. The imbalance of this training set is clearly visible in this table, and is caused by the small number of high-redshift galaxies present in the clean set.

Table 8.

Distribution of the sources in the UGC data sets according to their SDSS redshifts.

The conditions described in the previous paragraph were not imposed for the test set. Instead, all 703 449 spectra in the base set that were not used for training were included in the base test set, whose redshift distribution is shown in Table 8. Additionally, a purest test sample, the clean test set, was derived from the clean set by removing the training data it contains.

6.2.2. Support vector machine models

The input of all SVM models are BP/RP spectra. The spectra are first truncated by removing the first 34 and the last 6 samples in BP, and the first 4 and the last 10 samples in RP, in order to avoid regions of low S/N. These cuts result in the definition of the usable wavelength ranges for the BP and the RP parts of the spectrum, namely 366–627 nm and 620–996 nm, respectively. Each pair of truncated spectra is then concatenated to form the SVM input vector of 186 fluxes.

A common setup was implemented for the SVM model preparation (see LIBSVM14 for details): The Standardization Unbiased method was selected to scale the target data and the vector elements to the range [ − 1.0, 1.0]; the radial basis function (RBF) K(xi, xj) = exp(−γ|xi − xj|2) was chosen as the kernel function, and the tolerance of the termination criterion is set to e = 0.001; shrinking heuristics are used to speed up the training process; a four-folded tuning (cross-validation) is applied to determine the optimal γ kernel parameter and the penalty parameter C of the error term in the optimisation problem.

The UGC redshifts are estimated by t-SVM, which implements a ϵ-SVR regression model trained for redshifts in the range 0.0 ≤ z ≤ 0.6. The two other SVM models, c-SVM and r-SVM, use the BP/RP spectra as input but are trained to predict a discretised version of the redshifts and are used solely for the purpose of redshift validation (Sect. 6.2.3). The c-SVM model is a C-SVC classification model trained on six different classes corresponding to the redshift ranges 0 ≤ z < 0.1, 0.1 ≤ z < 0.2, 0.2 ≤ z < 0.3, 0.3 ≤ z < 0.4, 0.4 ≤ z < 0.5, and 0.5 ≤ z < 0.6. The output of the c-SVM model is a class-probability vector. The element of the vector with the highest value above 0.5 is taken as the selected class. If there is no element with probability larger than 0.5, then the source is marked as unclassified. The r-SVM model implements the ϵ-SVR regression model of LIBSVM – similarly to the t-SVM model – but it is trained on six discrete target values (0.05, 0.15, …, 0.55). As only the first decimal is retained for the predictions, the output of the r-SVM model is directly comparable to the classes used by the c-SVM model.

6.2.3. Source filtering

Two sets of criteria are used to select the UGC outputs to be published in Gaia DR3. The first set applies to specific properties of the processed sources, while the second concerns the redshift validity. An output is included in Gaia DR3 only if all the criteria of the two sets are satisfied.

Although UGC processes all G < 21 mag sources for which the DSC Combmod galaxy probability is higher than or equal to 0.25, additional criteria were imposed for selecting the purest sample of results. First, we require that the number of spectral transits in both BP and RP is higher than or equal to ten. Second, we require that the mean flux in the blue and red parts of the BP/RP spectra lies in the ranges set in Sect. 6.2.1. Third, we decided to only publish redshifts for sources with G > 17 mag, so as to exclude bright and possibly extended sources, for which it is likely that only part of the galaxy has been recorded. Fourth, we require G − GBP > 0.25 mag in order to reduce the number of sources with true z > 0.6 (which lie outside the range of the training data) by as much as possible. The fifth and final condition is related to the location of blended sources that are erroneously classified as galaxies in high-density regions in the sky (see also Sect. 3.4). Indeed, the positional distribution of the sources processed by UGC shows a high concentration of galaxies in three small areas where extragalactic objects are not expected in large numbers: a region below the Galactic centre, and two areas centred on the Magellanic Clouds (see Table 9). Almost 9% of the total number of processed sources originate in these three areas. Sources in these areas also occupy a specific region of the G − GBP, GBP − GRP colour–colour diagram that is distinct from the locus of the remaining sources. This distinction has been used to define colour cuts (shown in Table 9) which, in combination with the coordinates of the three areas, allowed us to clean the suspicious clumps of galaxies and to remove a large number of potentially misclassified sources in these three areas. Nonetheless, conditions listed in Table 9 are not applied if the DSC Combmod probability for the source to be a galaxy is equal to one.

Table 9.

Galactic coordinates and colour–colour regions from which UGC results are filtered out.

The comparison of the redshifts produced by the t-SVM model to those of the r-SVM and c-SVM models allows us to internally validate the UGC redshifts. The implementation of the filtering involves first the rejection of sources for which at least one of the SVM models has not produced an output (either because there is no prediction or because the source is marked as unclassified). Second, the three computed redshifts are required to span at most two adjacent bins of redshift, similar to those defined for the c-SVM and r-SVM models. The largest absolute difference between the t-SVM redshift and the central value of the c-SVM and r-SVM redshift bins is 0.08. The redshifts of sources not satisfying one of these criteria are not published in Gaia DR3.

6.3. Performance

The overall performance of the t-SVM model is given by the mean (μ) and the standard deviation (σ) of the difference between the estimated and the real (target) redshifts. The internal test, applied to the training set itself, yields σ = 0.047 and μ = −0.003. The external test, which is performed on all 703 449 spectra in the base test set, yields σ = 0.053 and μ = 0.020 (Fig. 17, left panel). These values indicate that the performance is worse for the base test set, as expected. If the clean test set of 371 875 spectra is used the performance is improved significantly, with σ = 0.037 and μ = 0.008 (Fig. 17, right panel).

thumbnail Fig. 17.

Comparison of the UGC redshifts, as estimated from the t-SVM model with SDSS DR16 redshifts for the base test set (left) and for the clean test set (right), as identified in Sect. 6.2.1.

The performance varies with redshift. To quantify this, the base test set was divided into SDSS redshift bins of size 0.02. The mean, μi, and the standard deviation, σi, of the differences between the redshift predicted by t-SVM and the real (SDSS) redshifts were determined for each one of these bins, as shown in Fig. 18 (left panel). Generally, there are three regions with different performance. For z < 0.02, the error and the bias are relatively large indicating that the t-SVM is ineffective for redshifts close to zero. The performance is good in the range of 0.02 < z < 0.26; however, for larger redshifts, the bias changes significantly from almost zero to positive and then to negative values, while the error progressively increases. For z > 0.5, both μi and σi show large scatter, probably due to the fact that large redshifts are under-represented in the t-SVM training set.

thumbnail Fig. 18.

Left panel: mean (μi) and standard deviation (σi) of the difference between the UGC redshifts, from the t-SVM model, and associated SDSS redshifts for sources contained in the UGC base test set and averaged over redshift bins of size 0.02. Completeness (middle panel) and purity (right panel) as a function of redshift, evaluated on the UGC test set (black) and clean set (cyan). The bin size is equal to 0.1.

In addition, the performance of the t-SVM model as a function of redshift was investigated by constructing a confusion matrix, as in classification problems. To this effect, a different class has been assigned to each redshift bin, zbin, both for the real (SDSS) and the predicted (t-SVM) redshifts. In this case, the bin size was 0.1. The confusion matrix presents the total number of cases for each real and each predicted class (see for details the online documentation).

For a given redshift bin, zbin, the numbers of true-positive TP, false-negative FN, and false-positive FP predictions are used to evaluate the sensitivity, or completeness, TP/(TP + FN), and the precision, or purity, TP/(TP + FP). Figure 18 (middle and right panels) show the t-SVM completeness and purity for the redshift bins of the base and clean test sets in bins of redshift. Both completeness and purity for the base and clean test sets are very good up to a redshift of z = 0.2. The purity is moderate (∼0.5) for the two test sets for the redshift bin 0.2–0.3 and fails at larger redshifts. The completeness is moderate in the 0.3–0.5 bin and fails for the last bin. Generally, good performance can be expected for redshifts z ≤ 0.2.

6.4. Results

The UGC output is included in the galaxy_candidates table. There are 1 367 153 sources for which UGC provides a redshift value as estimated by t-SVM (Sect. 6.2.2), redshift_ugc, along with the corresponding lower and upper limits of the SVM prediction interval, redshift_ugc_lower and redshift_ugc_upper, respectively. The parameter redshift_ugc_lower is defined as redshift_ugcμi − σi, where i corresponds to the ith redshift range identified in the previous section, and μi and σi are the associated bias and standard deviation computed on the base test set. Similarly, the parameter redshift_ugc_upper is defined as redshift_ugcμi + σi. The value of (redshift_ugc_upperredshift_ugc_lower)/2 can therefore be used as an estimate of the 1-σ uncertainty on redshift_ugc.

Apart from the Galactic plane, the sources with UGC redshifts are almost uniformly distributed on the sky, as seen in Fig. 19, although there are two strips (lower-left and upper-right) of relatively lower density displaying residual patterns. These are regions that have been observed fewer times by Gaia and thus many of the sources in them do not appear in the UGC output because of the filters applied on the number of transits (see Fig. 5).

thumbnail Fig. 19.

Galactic sky distribution of the number of sources with redshifts estimated by UGC. The plot is shown at HEALPix level 7 (0.210 deg2).

The distribution of the estimated redshift_ugc values shown in the left panel of Fig. 20 has a maximum at z≃ 0.1, while almost 91% of the redshifts are within 0.05 ≤ z < 0.25. About 7% of the sources have redshifts larger than 0.25. The lowest and the highest redshifts reported are zmin = −0.036 and zmax = 0.598, respectively. There are 33 sources with negative redshifts, although most of these values are very close to zero (with median value of −0.0054).

thumbnail Fig. 20.

Distribution of the UGC redshifts. Left: histogram of the estimated redshift in bins of size 0.02. Middle: UGC redshifts as a function of G magnitude. Right: distribution of the sources with UGC redshifts on a BP/RP magnitude diagram where different colours correspond to different redshift ranges.

The dependence of the redshift_ugc values on G magnitude is shown in the middle panel of Fig. 20. As expected, sources with higher redshift are fainter (e.g. z > 0.4 sources are mostly found at G > 19 mag, while z > 0.5 sources are found at G > 20 mag). The dependence of the estimated redshift on the source magnitude is also evident in the BP/RP magnitude–magnitude diagram shown in the right panel of Fig. 20, where different redshift ranges are represented with different colours.

There are 248 356 sources with published redshift_ugc in common with those spectroscopically classified as ‘GALAXY’ or ‘QSO’ in the SDSS DR16 (using a radius of 0.54″, as before). The differences between the redshift_ugc and the SDSS redshifts have a mean and standard deviation of μ = 0.006 and σ = 0.054, respectively. If the 67 sources with SDSS redshifts greater than 0.6 are excluded, the standard deviation is reduced to 0.029. Figure 21 (left panel) compares the distributions of the two redshift estimates. There is a clear excess in the number of sources with UGC redshifts around 0.1 compared to the SDSS redshifts. At the same time, there is a deficit in the lower redshift bins for UGC. The observed differences are probably due to an overestimation by UGC of lower SDSS redshifts. These effects are better demonstrated in Fig. 21 (middle panel). Most of the sources follow the unit line, albeit with significant scatter. However, there is a small bias which tends to be positive for z ≈ 0.1.

thumbnail Fig. 21.

Comparison of the UGC estimated and the actual (SDSS DR16) redshifts for the 248 356 sources in common (not shown are 67 sources with actual redshift greater than 0.6). Left panel: distributions of the UGC redshifts and SDSS DR16 redshifts indicates that UGC tends to overestimate the small redshifts. Middle panel: comparison of the UGC redshifts and SDSS DR16 redshifts. The unit line is shown in red. A small horizontal branch at redshift_ugc = 0.07 is discussed in the text. Right panel: differences between the UGC and SDSS DR16 redshifts as a function of G magnitude. The red horizontal line designates perfect agreement.

We also see in Fig. 21 (middle panel) a short dense horizontal feature of sources with redshift_ugc around 0.07, while the corresponding SDSS redshifts span a range of values from ≃0 to 0.07. We see that the majority of these problematic values occur at 0.07  <  redshift_ugc< 0.071, with 5178 sources with redshift values in the range 0.070822–0.070823. Detailed analysis (see the online documentation) indicates that this peak contains a relatively large fraction of very bright sources (with G < 17.5, GBP < 16 and GRP < 15 mag), suggesting that the SVM models, which are not trained at all for bright, nearby galaxies, tend to make constant redshift predictions for such objects.

Figure 21 (right panel) shows the difference between redshift_ugc and the actual SDSS redshift, as a function of G magnitude. As expected, the performance of the UGC redshift estimator is poorer for fainter sources as indicated by the larger dispersion seen at faint G magnitudes. The positive bias of the very bright and nearby galaxies is also clearly seen.

6.5. Use of UGC results

UGC selects sources that have a DSC probability of being a galaxy of classprob_dsc_combmod_galaxy ≥  0.25. This is a relatively low threshold, and so the final UGC galaxy catalogue is expected to include some misclassified quasars. Indeed, 5170 sources, or ≃2% of the sources in common with the SDSS DR16, have a SDSS spectroscopic class ‘QSO’ while 58 of them also have SDSS redshifts z > 0.6, i.e. higher than the UGC limit. There are also 9 high-redshift sources spectroscopically classified as ‘GALAXY’ by the SDSS. Figure 22 shows a comparison between redshift_ugc and SDSS redshifts for high-redshift sources. As expected, the UGC predictions are unreliable for these sources. However, as seen in Fig. 23, the agreement between redshift_ugc and SDSS redshifts of QSOs with redshifts below 0.6 is good, despite the fact that the SVM was not trained for quasars.

thumbnail Fig. 22.

UGC sources with high redshift from the SDSS DR16. Blue and red points are sources that are spectroscopically classified as ‘QSO’ and ‘GALAXY’ in the SDSS DR16, respectively.

thumbnail Fig. 23.

Comparison of the UGC redshifts for sources classified as ‘QSO’ in the SDSS DR16, with actual redshift lower than 0.6.

The UGC performance varies with redshift. As a consequence, redshifts larger than 0.4 and lower than 0.02 are less reliable. A suspiciously large peak of sources also appears in the redshift bin 0.070< redshift_ugc< 0.071, where about 17 000 sources are found. It is estimated that most of the sources in this peak are some of the brightest in the UGC output and have SDSS redshifts below 0.04. About 40% of these can be discarded by applying the previously mentioned cuts to sources with 0.070< redshift_ugc< 0.071: G > 17.5, GBP > 16.2, and GRP > 15.0 mag (see the online documentation for details).

7. Total Galactic extinction (TGE) map

7.1. Objectives

To support extragalactic studies, it was decided to use the extinction determinations obtained for single stars based on their astrometry and spectrophotometry (Andrae et al. 2022) to estimate the total extinction from the Milky Way as a function of sky position, that is, the full cumulative foreground extinction by the Milky Way on distant extragalactic sources. Taking advantage of the HEALPix encoded in the source_id, a series of HEALPix maps of the total Galactic extinction are provided using a selected subset of sources in each HEALPix, which are referred to as extinction tracers.

All-sky HEALPix maps of the total Galactic extinction are delivered in two tables at various resolutions (i.e. HEALPix levels). These are the tables total_galactic_extinction_map and total_galactic_extinction_map_opt, described below. The first of these tables contains HEALPix maps at levels 6 through 9 (corresponding to pixel sizes of 0.839 to 0.013 deg2), with extinction estimates for all HEALPixes that have at least three extinction tracers, while the second map is a reduced version of this first map where a subset of the pixels is used to construct a map at variable resolution, using the smallest HEALPix available with at least ten tracers for HEALPix levels 7 through 9.

This extinction map is the first of its kind, as reported values are based on sources beyond the interstellar medium (ISM) in the disc of the Milky Way. This differs from previous 2D extinction maps where it is not clear to what distance the extinction is integrated to, while for extant 3D maps, not every line of sight contains tracers beyond the ISM layer of the Galactic disc. As such, it is well suited for extra-galactic studies and comparisons with line-of-sight-integrated observations such as dust emission or diffuse gamma-ray emission.

7.2. Method

To estimate the extinction in each HEALPix, sources that are classified as stars by DSC (i.e. sources with classprob_dsc_combmod_star >  0.5; see Sect. 3) and with stellar parameters consistent with being giants (as provided by the set of GSP-Phot APs from the ‘best’ library from Andrae et al. (2022) and provided in the main gaia_source table) are used as extinction tracers. Giant stars are used as they are intrinsically bright and numerous outside the ISM layer of the Galactic disc. The selection of these tracers is done based on GSP-Phot effective temperatures (teff_gspphot) 3000 < Teff < 5700 K, and absolute magnitudes (mg_gspphot) 4 > MG > −10. Given these criteria, the extinction parameters from the GSP-Phot best library come from those based on either the MARCS or Phoenix spectral libraries. From an analysis of extinction estimates from two different libraries, no significant systematic trends are found when comparing the extinctions from the two libraries on a per HEALPix basis (Fouesneau et al. 2023).

In addition, extinction tracers are required to be at least 300 pc above or below the Galactic plane (b = 0), or with a Galactocentric radius of R > 16 kpc. To establish these criteria, the distance to the source provided by GSP-Phot (distance_gspphot) is used.

Once the extinction tracers for a given HEALPix are selected, if three or more tracers are available, the median A0 of the tracers15 – as given by the GSP-Phot parameter azero_gspphot – is taken as the estimate of the total Galactic extinction (a0) for the HEALPix, while the uncertainty of the total Galactic extinction (a0_uncertainty) is taken as the standard error of the sample mean of A0 of the tracers. This latter is a choice of convenience, as the small number of tracers in most of the HEALPixes prevents a meaningful estimate of quantiles. Both the median and uncertainty are estimated after a 3-σ cut about the median of the unclipped sample in order to remove outliers; this was done principally to remove outliers that were otherwise strongly impacting our estimate of the uncertainty. HEALPixes with fewer than three tracers have no extinction value assigned to them. A diagnostic flag status is provided which is set to zero if the number of tracers is three or greater, while a non-zero value gives an indication as to why an insufficient number of tracers were found.

The uncertainty of the TGE extinction is generally much smaller than the dispersion of the individual extinction measures of the tracers in the HEALPix, which can be dominated by intrinsic variation of extinction in the field defined by the HEALPix, especially at lower Galactic latitudes with significant extinction. To recover the standard deviation of the distribution of A0 measures of the tracers in a HEALPix, one should multiply the given uncertainty by the square root of the number of tracers used (num_tracers_used). The full range of A0 extinction measures of the tracers (a0_min, a0_max) is also provided.

The first table, total_galactic_extinction_map, contains HEALPix maps at four different HEALPix levels, from level 6 (49 152 HEALPixes with an area of 0.84 deg2) to level 9 (3 145 728 HEALPixes with an area of 0.013 deg2), with the HEALPix level indicated with the parameter healpix_level. This range of HEALPix levels ensures that a minimum number of tracers per HEALPix will be found at high Galactic latitudes, where the sky density of tracers is low, while allowing a higher resolution in areas of the sky where the density of tracers is high. (At level 9 only 1% of the sky has more than 40 tracers per HEALPix.)

For any given direction we determine the optimum HEALPix level, that is, the set of the smallest HEALPixes with at least ten tracers to ensure a reliable estimate of the extinction and its uncertainties. However, as the base resolution is HEALPix level 6, all HEALPixes with fewer than ten tracers at this level are tagged as ‘optimum’. As in the level 6 map, the optimum map has full sky coverage at |b|> 5° (i.e. all HEALPixes at |b|> 5° have at least three tracers, so an A0 value is reported for each of them). In the HEALPix scheme, each HEALPix at level n contains four sub-HEALPixes at level n + 1, meaning that each of the four sub-HEALPixes must have at least ten tracers to allow all four to be tagged as optimum. This algorithm is repeated iteratively over each level, starting at the base level 6, until the lack of tracers in a sub-HEALPix prevents further subdivision, or until level 9 is reached. In the table total_galactic_extinction_map, the optimum HEALPixes are flagged as such with the boolean flag optimum_hpx_flag. This algorithm ensures that the subset of optimum HEALPixes do not overlap with one another, yet cover the entire sky.

The second table, total_galactic_extinction_map_opt, is a single optimum HEALPix map at level 9 provided for convenience, where each HEALPix adopts the extinction value of the optimum HEALPix total_galactic_extinction_map coincident with or containing the HEALPix. That is, if a HEALPix at level 6 is tagged as optimum in total_galactic_extinction_map, then all 64 of its level-9 sub-HEALPixes in the total_galactic_extinction_map_opt map will be assigned the a0 value of the level 6 HEALPix. The parameter optimum_hpx_level in this table indicates, for each HEALPix, the HEALPix level of the optimum HEALPix from which its a0 value is based.

7.3. Performance

At the base level 6, only 2.8% of the sky (1379 out of 49152 HEALPixes) close to the Galactic plane (with |b|< 5°) has no a0 values because of an insufficient number of tracers. The fraction of HEALPixes with an insufficient number of tracers increases at the higher HEALPix levels as the HEALPixes become smaller: 5.2% at level 7, 30.4% at level 8, and 66.3% at level 9. The average number of tracers for the HEALPixes with A0 estimates is 268.3 at level 6, but only 10.7 at level 9, while the average number of tracers for the optimum HEALPix map is 30.3. The optimum HEALPix map, total_galactic_extinction_map_opt, shown in Fig. 24, has the same sky coverage as the level 6 map, but is of higher resolution when a sufficient number of tracers are available. To better demonstrate this, we show a zoom into the Rho Ophiuchi region in Fig. 25. Over the whole sky, only about 1% of the HEALPixes at level 9 have more than 40 tracers, and thus the potential to be mapped at higher resolution. Figures showing the individual all-sky maps at levels 6 through 9 can be found in the online documentation, along with maps of the a0_uncertainty. We note that the a0_uncertainty is smallest in HEALPix level 6 with a mean value of 0.03 mag; this is due to the larger number of tracers contained in the HEALPixes at this level, whereas the mean a0_uncertainty of the HEALPixes in total_galactic_extinction_map tagged as optimum (optimum_hpx_flag =1) is of 0.06 mag, as they cover various HEALPix levels.

thumbnail Fig. 24.

HEALPix map of the total Galactic extinction, built from HEALPixes between levels 6 and 9 (0.839 to 0.013 deg2), which are identified as being at the optimum resolution over their field of view.

thumbnail Fig. 25.

A0 towards Rho Ophiuchi from the TGE optimum HEALPix map (Fig. 24) centred at (l, b) = (−5°, 18°). The solid white line in the upper right corner provides the angular scale of the image. The variable resolution of the optimum HEALPix map is particularly obvious towards the middle of the figure.

In Fig. 26, the TGE A0 estimate at the optimum HEALPix level 9 is plotted against the dust optical depth expressed as AV from Planck Collaboration Int. XLVIII (2016)16, once re-binned at the same HEALPix level. We see good agreement, as a linear fit using the median points with 0.2 ≤ AV ≤ 3 results in a slope of 1.04 ± 0.05, albeit with an offset of 0.09 ±0.05. It should be noted that the ratio of AV/A0 for giants (stars with effective temperature 3000 < Teff < 5700 K) is ∼0.98 (see the online documentation), meaning that the slope of TGE (converted to AV) over Planck(AV) is 1.04 × 0.98 = 1.02. Also worth bearing in mind is that there are a number of Planck maps of the dust distribution available on the Planck Legacy Archive; for example, using the map described in Planck Collaboration XXIX (2016) we find a slope of 0.90±0.04 and an offset of 0.05±0.04.

thumbnail Fig. 26.

Extinction comparison between the TGE A0 optimum HEALPix map and the Planck AV HEALPix level 9 map at small extinction values. The colour scale shows the density of HEALPixes, the red dashed line represents unity, and the points with error bars are the median A0 and average absolute deviation computed in AV bins of width 0.025 mag. The red line is the result of a linear fit to the points.

Performing a linear fit in the same extinction range between TGE A0 and Schlegel et al. (1998)AV results in a slope of 0.98 ± 0.04 (offset: 0.10 ± 0.04, in agreement with the 1.04 ± 0.05 obtained using Planck. However, the same linear fit performed between TGE and the Bayestar’s map (Green et al. 2019) results in a slope of 1.20 ± 0.04 (offset: 0.01±0.04), suggesting that the Bayestar map is systematically underestimating the extinction with respect to other extinction maps; see discussion in Andrae et al. (2022).

Towards the limit where the extinction measured by Planck tends to zero, the TGE A0 tends to a non-zero value. This offset is found empirically by fitting a third-order polynomial to the median points for A0 <  0.4 and obtaining the TGE A0 value at Planck AV = 0. The resulting offset is 0.10 ± 0.03 mag and starts to become evident at AV < 0.1 mag. The existence of this offset is likely due to the fact that the GSP-Phot extinction prior forces its extinction estimate to be non-negative, which creates a statistical bias at very low extinction values. Indeed, this A0 offset is of the order expected if the true uncertainty of the A0 estimates per source were 0.1 magnitude. See Andrae et al. (2022) for further discussion.

Comparing TGE A0 to Planck AV over a larger interval highlights a possible bias at extinctions AV ≥ 4 mag. In Fig. 27, TGE is plotted versus Planck over an interval of ten magnitudes. A large dispersion in A0 is observed for the optimal map for AV > 4 mag, and it can be seen that the different HEALPix levels do not behave in the same way. The coarser resolutions (levels 6 and 7) initially predict less extinction than Planck (for 4 ≤ A0 ≤ 5 mag) whereas the finer resolutions either agree or predict higher extinction. Above an AV of 5 mag, only level 6 predicts less extinction than Planck, while the others predict more. Even for AV < 4 mag, where TGE and Planck are in very good agreement, a difference can be seen where the lower resolutions predict lower extinction. This is likely due to a selection effect where in a given HEALPix with variable extinction, more stars will be observed where the extinction is smaller. This will bias the extinction estimate for the HEALPix to lower values, and will be more obvious for larger HEALPixes.

thumbnail Fig. 27.

Comparison of the extinction between the TGE A0 optimum HEALPix map and the Planck AV HEALPix level 9 map for extinctions up to 10 mag. The background grey scale is a density plot of the entire optimal HEALPix TGE map (comprising the optimal HEALPixes at several HEALPix levels). The dashed red line represents unity and the solid red line is a linear fit of the medians of all HEALPixes in the optimum HEALPix map with 0.5 ≤ AV ≤ 3. Coloured symbols refer to the median A0 computed in AV bins of width 0.2 mag for various HEALPix levels that are used to assign the A0 value.

Finally in Fig. 28 the residual map of TGE A0 minus Planck AV is shown. TGE underestimates extinction with respect to Planck toward molecular clouds, where dust emission remains optically thin but where TGE estimates may be biased toward smaller values as unresolved areas with below average extinction are oversampled, as mentioned above; see further discussion regarding high-extinction regions in the following section. Meanwhile, within about 30° towards the Galactic centre, TGE shows more extinction than Planck, apart from the foreground molecular complexes we just mentioned.

thumbnail Fig. 28.

Residual sky map of TGE A0 minus Planck AV, using the optimum HEALPix level 9 map. Red values show regions where TGE predicts more extinction than Planck, whereas blue values show the opposite.

7.4. Use of TGE results

The TGE extinction maps estimate the total Galactic extinction A0 from the Milky Way ISM toward extragalactic sources, where A0 is the monochromatic extinction at 541.4 nm. As mentioned above, AV/A0 is approximately equal to 0.98 for cool stars at A0 < 3 mag. However, in general, the effective extinction in a passband depends on the SED of the source; see the online documentation for a discussion on how to derive the extinction from A0 for any passband.

As the selected extinction tracers were required to be beyond a certain minimum distance to ensure that they were outside the ISM layer of the Milky Way’s disc, sources in nearby galaxies may also be selected as tracers. This means that the extinction towards the LMC and SMC will be a combination of Galactic extinction, inter-galactic extinction, and extinction in the Magellanic clouds (although the latter will be the dominant contribution). Another factor that will influence the amount of reported extinction in these directions stems from the distance prior used in GSP-Phot, which assumes that the sources are Galactic. As such, the extinction will be overestimated. An evaluation of this overestimation can be obtained via a comparison with an external data set. Indeed, in Fig. 26, there is a cloud of points with a locus stretching from around AV = 0.2, A0 = 0.8 to AV = 0.4, A0 = 1.2 that consists entirely of lines of sight towards the Magellanic clouds. Comparing the median TGE A0 (1.0 mag) to the median Planck AV (0.4 mag) towards the LMC reveals a difference of 0.6 mag. These values are both higher than the extinction found using near-infrared observations (AV = 0.3 mag; Imara & Blitz 2007) and in the visible (AV = 0.24 mag; Wagner-Kaiser & Sarajedini 2013). This difference is likely not only due to the GSP-Phot distance prior, but also to variations in dust properties in the LMC/SMC. Although the absolute level of extinction in these Galactic satellites needs to be interpreted with caution, the relative variations evidencing structured patterns are most certainly real (see Fig. 29).

thumbnail Fig. 29.

A0 towards the LMC from the TGE Optimum HEALPix map (Fig. 24), centred at (l, b) = (280.0°, −33.0°). The estimated offset of A0 = 0.6 mag has been subtracted. The solid white line in the bottom left corner provides the angular scale of the image.

Because extinction tracers are required to be outside the dust layer of the Milky Way, they must be at greater distances at lower Galactic latitudes. This, together with the effect of increasing extinction and Gaia’s magnitude limit, means that at very low latitudes it is not possible to find a sufficient number of tracers outside the ISM layer of the Milky Way with which to make a reliable estimate of the total Galactic extinction. This explains the band of HEALPixes at b ≈ 0 with no extinction values. Indeed we recommend that the map should not be used for latitudes |b|< 5°. Also, GSP-Phot sets an upper limit of ten magnitudes on its estimate of A0 per source, and so any HEALPixes with an extinction near this value should be interpreted as a lower bound. However, as suggested by Fig. 27, our maps may instead be over-estimating extinction toward these lines of sight with respect to Planck, though we point out that HEALPixes with A0 > 4mag are at low Galactic latitude and make up only 2% of the sky. Furthermore, Planck estimates towards the Galactic plane may be underestimated as a consequence of assuming a single mean dust temperature for the whole line of sight. Further details of the TGE data products are documented in the online documentation.

8. Beyond Gaia DR3

We present the non-stellar and classification modules from CU8 in their present status, as for Gaia DR3. However, they are in constant evolution and changes are already planned for Gaia DR4 and later, which we summarise for each module in this section.

Although the intrinsic performance of DSC is very good, once we take into account class prior – as we do for all results shown in this paper – the purities of the classified samples are modest. In preparation for Gaia DR4, we will aim to improve this, for example by optimising the feature set in Allosmod and how this is used. We will also reconsider the class definitions and the training data, in particular for white dwarfs and physical binaries. As Specmod uses the entire BP/RP spectrum, we expected better performance (compared to Allosmod), and so we will investigate improving the classifier. We may also introduce filters to remove the classifications of the lowest quality data (which are the main determinant of the low purities).

OA will be upgraded by implementing its own outlier detector, which will be mostly based on unsupervised clustering algorithms. Additionally, we will improve the statistical description and the templates that were used for Gaia DR3. The functionality offered by the GUASOM visualisation tool will be extended in order to allow the user to perform and explore their own clustering analysis.

QSOC will use epoch BP/RP spectra re-sampled into logarithmic wavelength bins in order to overcome the issues we encountered while using the Hermite spline polynomials associated with the internal representation of the BP/RP spectra. This internal representation effectively tends to produce wiggles whose strength can be comparable to those of quasar emission lines in faint G ≥ 19 mag spectra (Creevey et al. 2023). This solution will concurrently allow us to use sampled BP/RP spectra with uncorrelated noise on their flux, as the algorithm described in Delchambre (2016) is not optimised to deal with full covariance matrices.

The performance of the UGC redshift estimator strongly depends on the training set used. As more epochs are incorporated in the BP/RP spectra, we expect to have more (and generally fainter) sources with redshifts above 0.4 available for inclusion in the training set, thus improving the performance especially for higher redshifts. We will also investigate optimisation of the SVM model parameters in order to reduce the large variability in the performance with redshift and to minimise the positive bias for bright, low-redshift objects.

In future data releases, we can expect the TGE maps to improve with future improvements of GSP-Phot (Andrae et al. 2022). In particular, we expect that the number of sources with stellar parameters will increase, which will improve the reliability of the TGE maps, and possibly allow for maps at a resolution higher than HEALPix level 9.


2

The validation data for the binaries is not the one mentioned in Sect. 3.2.3, namely synthetically-combined single stars, but instead a set of unresolved binaries directly from Gaia. See the online documentation for more details.

3

It so happens that all sources which have Allosmod results also have Specmod results, but not vice versa.

4

For this purpose, the LMC is defined as a circle of 9° radius centred on RA = 81.3°, Dec = −68.7°, and the SMC as a circle of 6° radius centred on RA = 16.0°, Dec = −72.8°.

5

For details on the HEALPix scheme used by Gaia, see Bastian & Portell (2020).

6

The issue of expected sample purity is discussed in Sect. 5.2 of Bailer-Jones et al. (2008). Even with an imperfect classifier, it is possible to infer the expected number of true sources from the inferred numbers by inverting the confusion matrix, as shown by Bailer-Jones et al. (2019).

7

One obvious example is to compute the absolute magnitude, because this together with colour – i.e. the HRD – clearly separates out white dwarfs when the parallax uncertainties are not too large.

8

The OA pre-processing of BP/RP spectra is later described in Sect. 4.2.1.

9

We note that for 37 of the 297 301 quasars originally contained in the DR12Q catalogue, the -1 norm fit of the continuum to the observed spectrum (later described) did not converge and these were accordingly not included in the final sample we used.

10

As the cross correlation function computed by QSOC is extrapolated by ±log L at its border, the range of the QSOC redshift predictions is slightly wider than one would expect from a straight comparison of the observed and rest-frame wavelengths.

11

Theoretical emission line intensities should be regarded as weights. They do not refer to a particular theoretical model of the emission lines of quasars but to the values inferred in Table 6.

12

The Hγ emission line being intrinsically weak, it is often not seen in the BP/RP spectra of quasars and is accordingly not considered here.

15

A0 is the extinction parameter from the adopted Fitzpatrick extinction law (Fitzpatrick 1999), defined as the monochromatic extinction at 541.4nm. See the online documentation for details.

16

The Planck collaboration reports E(B − V) that we convert to AV via AV = RVE(B − V) and RV = 3.1. See the Planck Legacy Archive (http://pla.esac.esa.int) for details.

Acknowledgments

This work presents results from the European Space Agency (ESA) space mission Gaia. Gaia data are being processed by the Gaia Data Processing and Analysis Consortium (DPAC). Funding for the DPAC is provided by national institutions, in particular the institutions participating in the Gaia MultiLateral Agreement (MLA). The Gaia mission website is https://www.cosmos.esa.int/gaia. The Gaia archive website is https://archives.esac.esa.int/gaia. Some of the results in this work have been derived using the HEALPix package (Górski et al. 2005; healpix.sourceforge.net). The full ackowledgements are available in Appendix A.

References

  1. Aguado, D. S., Ahumada, R., Almeida, A., et al. 2019, ApJS, 240, 23 [Google Scholar]
  2. Ahumada, R., Prieto, C. A., Almeida, A., et al. 2020, ApJS, 249, 3 [Google Scholar]
  3. Álvarez, M. A., Dafonte, C., Manteiga, M., Garabato, D., & Santoveña, R. 2021, Neural Computing and Applications [Google Scholar]
  4. Andrae, R., Fouesneau, M., Sordo, R., et al. 2022, A&A, 674, A27 (Gaia DR3 SI) [Google Scholar]
  5. Bailer-Jones, C. A. L. 2021, Gaia Data Processing and Analysis Consortium (DPAC) Technical Note GAIA-C8-TN-MPIA-CBJ-094, http://www.cosmos.esa.int/web/gaia/public-dpac-documents [Google Scholar]
  6. Bailer-Jones, C. A. L., Smith, K. W., Tiede, C., Sordo, R., & Vallenari, A. 2008, MNRAS, 391, 1838 [NASA ADS] [CrossRef] [Google Scholar]
  7. Bailer-Jones, C. A. L., Andrae, R., Arcay, B., et al. 2013, A&A, 559, A74 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  8. Bailer-Jones, C. A. L., Fouesneau, M., & Andrae, R. 2019, MNRAS, 490, 5615 [CrossRef] [Google Scholar]
  9. Bastian, U., & Portell, J. 2020, Gaia Data Processing and Analysis Consortium (DPAC) technical note GAIA-C3-TN-ARI-BAS-020, http://www.cosmos.esa.int/web/gaia/public-dpac-documents [Google Scholar]
  10. Carrasco, J. M., Weiler, M., Jordi, C., et al. 2021, A&A, 652, A86 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  11. Chang, C.-C., & Lin, C.-J. 2011, ACM Transactions on Intelligent Systems and Technology, 2, 27:1, Software Available at http://www.csie.ntu.edu.tw/~cjlin/libsvm [Google Scholar]
  12. Cortes, C., & Vapnik, V. 1995, Mach. Learn., 20, 273 [Google Scholar]
  13. Creevey, O., Sordo, R., Pailler, F., et al. 2023, A&A, 674, A26 (Gaia DR3 SI) [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  14. Delchambre, L. 2015, MNRAS, 446, 3545 [NASA ADS] [CrossRef] [Google Scholar]
  15. Delchambre, L. 2016, MNRAS, 460, 2811 [NASA ADS] [CrossRef] [Google Scholar]
  16. Delchambre, L. 2018, MNRAS, 473, 1785 [NASA ADS] [CrossRef] [Google Scholar]
  17. Fitzpatrick, E. L. 1999, PASP, 111, 63 [Google Scholar]
  18. Flesch, E. W. 2021, ArXiv e-prints [arXiv:2105.12985] [Google Scholar]
  19. Fouesneau, M., Frémat, Y., Andrae, R., et al. 2023, A&A, 674, A28 (Gaia DR3 SI) [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  20. Gaia Collaboration (Prusti, T., et al.) 2016, A&A, 595, A1 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  21. Gaia Collaboration (Bailer-Jones, C., et al.) 2023, A&A, 674, A41 (Gaia DR3 SI) [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  22. Green, G. M., Schlafly, E., Zucker, C., Speagle, J. S., & Finkbeiner, D. 2019, ApJ, 887, 93 [NASA ADS] [CrossRef] [Google Scholar]
  23. Górski, K. M., Hivon, E., Banday, A. J., et al. 2005, ApJ, 622, 759 [Google Scholar]
  24. Imara, N., & Blitz, L. 2007, ApJ, 662, 969 [NASA ADS] [CrossRef] [Google Scholar]
  25. Kohonen, T. 1982, Biol. Cybern., 43, 59 [Google Scholar]
  26. Lindegren, L., Klioner, S. A., Hernández, J., et al. 2021, A&A, 649, A2 [EDP Sciences] [Google Scholar]
  27. Montegriffo, P., De Angeli, F., Andrae, R., et al. 2023, A&A, 674, A3 (Gaia DR3 SI) [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  28. Pâris, I., Petitjean, P., Aubourg, É., et al. 2018, A&A, 613, A51 [Google Scholar]
  29. Pâris, I., Petitjean, P., Ross, N. P., et al. 2017, A&A, 597, A79 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  30. Planck Collaboration XXIX. 2016, A&A, 586, A132 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  31. Planck Collaboration Int. XLVIII. 2016, A&A, 596, A109 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  32. Schlegel, D. J., Finkbeiner, D. P., & Davis, M. 1998, ApJ, 500, 525 [Google Scholar]
  33. Wagner-Kaiser, R., & Sarajedini, A. 2013, MNRAS, 431, 1565 [NASA ADS] [CrossRef] [Google Scholar]

Appendix A: Full acknowledgements

The Gaia mission and data processing have financially been supported by, in alphabetical order by country:

  • the Algerian Centre de Recherche en Astronomie, Astrophysique et Géophysique of Bouzareah Observatory;

  • the Austrian Fonds zur Förderung der wissenschaftlichen Forschung (FWF) Hertha Firnberg Programme through grants T359, P20046, and P23737;

  • the BELgian federal Science Policy Office (BELSPO) through various PROgramme de Développement d’Expériences scientifiques (PRODEX) grants and the Polish Academy of Sciences - Fonds Wetenschappelijk Onderzoek through grant VS.091.16N, and the Fonds de la Recherche Scientifique (FNRS), and the Research Council of Katholieke Universiteit (KU) Leuven through grant C16/18/005 (Pushing AsteRoseismology to the next level with TESS, GaiA, and the Sloan DIgital Sky SurvEy – PARADISE);

  • the Brazil-France exchange programmes Fundação de Amparo à Pesquisa do Estado de São Paulo (FAPESP) and Coordenação de Aperfeicoamento de Pessoal de Nível Superior (CAPES) - Comité Français d’Evaluation de la Coopération Universitaire et Scientifique avec le Brésil (COFECUB);

  • the Chilean Agencia Nacional de Investigación y Desarrollo (ANID) through Fondo Nacional de Desarrollo Científico y Tecnológico (FONDECYT) Regular Project 1210992 (L. Chemin);

  • the National Natural Science Foundation of China (NSFC) through grants 11573054, 11703065, and 12173069, the China Scholarship Council through grant 201806040200, and the Natural Science Foundation of Shanghai through grant 21ZR1474100;

  • the Tenure Track Pilot Programme of the Croatian Science Foundation and the École Polytechnique Fédérale de Lausanne and the project TTP-2018-07-1171 ‘Mining the Variable Sky’, with the funds of the Croatian-Swiss Research Programme;

  • the Czech-Republic Ministry of Education, Youth, and Sports through grant LG 15010 and INTER-EXCELLENCE grant LTAUSA18093, and the Czech Space Office through ESA PECS contract 98058;

  • the Danish Ministry of Science;

  • the Estonian Ministry of Education and Research through grant IUT40-1;

  • the European Commission’s Sixth Framework Programme through the European Leadership in Space Astrometry (ELSA) Marie Curie Research Training Network (MRTN-CT-2006-033481), through Marie Curie project PIOF-GA-2009-255267 (Space AsteroSeismology & RR Lyrae stars, SAS-RRL), and through a Marie Curie Transfer-of-Knowledge (ToK) fellowship (MTKD-CT-2004-014188); the European Commission’s Seventh Framework Programme through grant FP7-606740 (FP7-SPACE-2013-1) for the Gaia European Network for Improved data User Services (GENIUS) and through grant 264895 for the Gaia Research for European Astronomy Training (GREAT-ITN) network;

  • the European Cooperation in Science and Technology (COST) through COST Action CA18104 ‘Revealing the Milky Way with Gaia (MW-Gaia)’;

  • the European Research Council (ERC) through grants 320360, 647208, and 834148 and through the European Union’s Horizon 2020 research and innovation and excellent science programmes through Marie Skłodowska-Curie grant 745617 (Our Galaxy at full HD – Gal-HD) and 895174 (The build-up and fate of self-gravitating systems in the Universe) as well as grants 687378 (Small Bodies: Near and Far), 682115 (Using the Magellanic Clouds to Understand the Interaction of Galaxies), 695099 (A sub-percent distance scale from binaries and Cepheids – CepBin), 716155 (Structured ACCREtion Disks – SACCRED), 951549 (Sub-percent calibration of the extragalactic distance scale in the era of big surveys – UniverScale), and 101004214 (Innovative Scientific Data Exploration and Exploitation Applications for Space Sciences – EXPLORE);

  • the European Science Foundation (ESF), in the framework of the Gaia Research for European Astronomy Training Research Network Programme (GREAT-ESF);

  • the European Space Agency (ESA) in the framework of the Gaia project, through the Plan for European Cooperating States (PECS) programme through contracts C98090 and 4000106398/12/NL/KML for Hungary, through contract 4000115263/15/NL/IB for Germany, and through PROgramme de Développement d’Expériences scientifiques (PRODEX) grant 4000127986 for Slovenia;

  • the Academy of Finland through grants 299543, 307157, 325805, 328654, 336546, and 345115 and the Magnus Ehrnrooth Foundation;

  • the French Centre National d’Études Spatiales (CNES), the Agence Nationale de la Recherche (ANR) through grant ANR-10-IDEX-0001-02 for the ‘Investissements d’avenir’ programme, through grant ANR-15-CE31-0007 for project ‘Modelling the Milky Way in the Gaia era’ (MOD4Gaia), through grant ANR-14-CE33-0014-01 for project ‘The Milky Way disc formation in the Gaia era’ (ARCHEOGAL), through grant ANR-15-CE31-0012-01 for project ‘Unlocking the potential of Cepheids as primary distance calibrators’ (UnlockCepheids), through grant ANR-19-CE31-0017 for project ‘Secular evolution of galxies’ (SEGAL), and through grant ANR-18-CE31-0006 for project ‘Galactic Dark Matter’ (GaDaMa), the Centre National de la Recherche Scientifique (CNRS) and its SNO Gaia of the Institut des Sciences de l’Univers (INSU), its Programmes Nationaux: Cosmologie et Galaxies (PNCG), Gravitation Références Astronomie Métrologie (PNGRAM), Planétologie (PNP), Physique et Chimie du Milieu Interstellaire (PCMI), and Physique Stellaire (PNPS), the ‘Action Fédératrice Gaia’ of the Observatoire de Paris, the Région de Franche-Comté, the Institut National Polytechnique (INP) and the Institut National de Physique nucléaire et de Physique des Particules (IN2P3) co-funded by CNES;

  • the German Aerospace Agency (Deutsches Zentrum für Luft- und Raumfahrt e.V., DLR) through grants 50QG0501, 50QG0601, 50QG0602, 50QG0701, 50QG0901, 50QG1001, 50QG1101, 50QG1401, 50QG1402, 50QG1403, 50QG1404, 50QG1904, 50QG2101, 50QG2102, and 50QG2202, and the Centre for Information Services and High Performance Computing (ZIH) at the Technische Universität Dresden for generous allocations of computer time;

  • the Hungarian Academy of Sciences through the Lendület Programme grants LP2014-17 and LP2018-7 and the Hungarian National Research, Development, and Innovation Office (NKFIH) through grant KKP-137523 (‘SeismoLab’);

  • the Science Foundation Ireland (SFI) through a Royal Society - SFI University Research Fellowship (M. Fraser);

  • the Israel Ministry of Science and Technology through grant 3-18143 and the Tel Aviv University Center for Artificial Intelligence and Data Science (TAD) through a grant;

  • the Agenzia Spaziale Italiana (ASI) through contracts I/037/08/0, I/058/10/0, 2014-025-R.0, 2014-025-R.1.2015, and 2018-24-HH.0 to the Italian Istituto Nazionale di Astrofisica (INAF), contract 2014-049-R.0/1/2 to INAF for the Space Science Data Centre (SSDC, formerly known as the ASI Science Data Center, ASDC), contracts I/008/10/0, 2013/030/I.0, 2013-030-I.0.1-2015, and 2016-17-I.0 to the Aerospace Logistics Technology Engineering Company (ALTEC S.p.A.), INAF, and the Italian Ministry of Education, University, and Research (Ministero dell’Istruzione, dell’Università e della Ricerca) through the Premiale project ‘MIning The Cosmos Big Data and Innovative Italian Technology for Frontier Astrophysics and Cosmology’ (MITiC);

  • the Netherlands Organisation for Scientific Research (NWO) through grant NWO-M-614.061.414, through a VICI grant (A. Helmi), and through a Spinoza prize (A. Helmi), and the Netherlands Research School for Astronomy (NOVA);

  • the Polish National Science Centre through HARMONIA grant 2018/30/M/ST9/00311 and DAINA grant 2017/27/L/ST9/03221 and the Ministry of Science and Higher Education (MNiSW) through grant DIR/WK/2018/12;

  • the Portuguese Fundação para a Ciência e a Tecnologia (FCT) through national funds, grants SFRH/BD/128840/2017 and PTDC/FIS-AST/30389/2017, and work contract DL 57/2016/CP1364/CT0006, the Fundo Europeu de Desenvolvimento Regional (FEDER) through grant POCI-01-0145-FEDER-030389 and its Programa Operacional Competitividade e Internacionalização (COMPETE2020) through grants UIDB/04434/2020 and UIDP/04434/2020, and the Strategic Programme UIDB/00099/2020 for the Centro de Astrofísica e Gravitação (CENTRA);

  • the Slovenian Research Agency through grant P1-0188;

  • the Spanish Ministry of Economy (MINECO/FEDER, UE), the Spanish Ministry of Science and Innovation (MICIN), the Spanish Ministry of Education, Culture, and Sports, and the Spanish Government through grants BES-2016-078499, BES-2017-083126, BES-C-2017-0085, ESP2016-80079-C2-1-R, ESP2016-80079-C2-2-R, FPU16/03827, PDC2021-121059-C22, RTI2018-095076-B-C22, and TIN2015-65316-P (‘Computación de Altas Prestaciones VII’), the Juan de la Cierva Incorporación Programme (FJCI-2015-2671 and IJC2019-04862-I for F. Anders), the Severo Ochoa Centre of Excellence Programme (SEV2015-0493), and MICIN/AEI/10.13039/501100011033 (and the European Union through European Regional Development Fund ‘A way of making Europe’) through grant RTI2018-095076-B-C21, the Institute of Cosmos Sciences University of Barcelona (ICCUB, Unidad de Excelencia ‘María de Maeztu’) through grant CEX2019-000918-M, the University of Barcelona’s official doctoral programme for the development of an R+D+i project through an Ajuts de Personal Investigador en Formació (APIF) grant, the Spanish Virtual Observatory through project AyA2017-84089, the Galician Regional Government, Xunta de Galicia, through grants ED431B-2021/36, ED481A-2019/155, and ED481A-2021/296, the Centro de Investigación en Tecnologías de la Información y las Comunicaciones (CITIC), funded by the Xunta de Galicia and the European Union (European Regional Development Fund – Galicia 2014-2020 Programme), through grant ED431G-2019/01, the Red Española de Supercomputación (RES) computer resources at MareNostrum, the Barcelona Supercomputing Centre - Centro Nacional de Supercomputación (BSC-CNS) through activities AECT-2017-2-0002, AECT-2017-3-0006, AECT-2018-1-0017, AECT-2018-2-0013, AECT-2018-3-0011, AECT-2019-1-0010, AECT-2019-2-0014, AECT-2019-3-0003, AECT-2020-1-0004, and DATA-2020-1-0010, the Departament d’Innovació, Universitats i Empresa de la Generalitat de Catalunya through grant 2014-SGR-1051 for project ‘Models de Programació i Entorns d’Execució Parallels’ (MPEXPAR), and Ramon y Cajal Fellowship RYC2018-025968-I funded by MICIN/AEI/10.13039/501100011033 and the European Science Foundation (‘Investing in your future’);

  • the Swedish National Space Agency (SNSA/Rymdstyrelsen);

  • the Swiss State Secretariat for Education, Research, and Innovation through the Swiss Activités Nationales Complémentaires and the Swiss National Science Foundation through an Eccellenza Professorial Fellowship (award PCEFP2_194638 for R. Anderson);

  • the United Kingdom Particle Physics and Astronomy Research Council (PPARC), the United Kingdom Science and Technology Facilities Council (STFC), and the United Kingdom Space Agency (UKSA) through the following grants to the University of Bristol, the University of Cambridge, the University of Edinburgh, the University of Leicester, the Mullard Space Sciences Laboratory of University College London, and the United Kingdom Rutherford Appleton Laboratory (RAL): PP/D006511/1, PP/D006546/1, PP/D006570/1, ST/I000852/1, ST/J005045/1, ST/K00056X/1, ST/K000209/1, ST/K000756/1, ST/L006561/1, ST/N000595/1, ST/N000641/1, ST/N000978/1, ST/N001117/1, ST/S000089/1, ST/S000976/1, ST/S000984/1, ST/S001123/1, ST/S001948/1, ST/S001980/1, ST/S002103/1, ST/V000969/1, ST/W002469/1, ST/W002493/1, ST/W002671/1, ST/W002809/1, and EP/V520342/1.

The GBOT programme uses observations collected at (i) the European Organisation for Astronomical Research in the Southern Hemisphere (ESO) with the VLT Survey Telescope (VST), under ESO programmes 092.B-0165, 093.B-0236, 094.B-0181, 095.B-0046, 096.B-0162, 097.B-0304, 098.B-0030, 099.B-0034, 0100.B-0131, 0101.B-0156, 0102.B-0174, and 0103.B-0165; and (ii) the Liverpool Telescope, which is operated on the island of La Palma by Liverpool John Moores University in the Spanish Observatorio del Roque de los Muchachos of the Instituto de Astrofísica de Canarias with financial support from the United Kingdom Science and Technology Facilities Council, and (iii) telescopes of the Las Cumbres Observatory Global Telescope Network.

Appendix B: Combining probabilities for DSC-Combmod

Combmod in DSC combines the posterior probabilities from Specmod and Allosmod into a new posterior probability, taking care to ensure that the global prior is only counted once. If Specmod and Allosmod used the same classes, and operated on independent data, then combining their probabilities would be simple. However, Specmod has three classes (star, white dwarf, physical binary star) that correspond to the single star class in Allosmod. It is also possible that Specmod or Allosmod provides no result. The combination method is therefore a bit more complicated. The basic idea is that a fraction of the Allosmod probability for the single ‘superclass’ is taken to correspond to each subclass in Specmod, with that fraction equal to the prior. We assume that Specmod and Allosmod are independent, which is not quite true as the colours in Allosmod are derived from the BP/RP spectra used by Specmod.

  • Let P k m $ {{P^m_k}} $ be the posterior probability from classifier m for class k.

  • Let π k m $ {{\pi ^m_k}} $ be the prior probability used in classifier m for class k.

  • For Specmod, m = s and k = 1…5 corresponding to quasar, galaxy, star, white dwarf, physical binary star respectively.

  • For Allosmod, m = a and k = 1…3 corresponding to quasar, galaxy, star, respectively.

  • For each classifier, classes are disjoint and exhaustive, so the probabilities sum to one.

  • The priors for the two classifiers are consistent, so π 1 a = π 1 s $ {{{\pi^{a}_{1}}}}={{{\pi^{s}_{1}}}} $, π 2 a = π 2 s $ {{{\pi^{a}_{2}}}}={{{\pi^{s}_{2}}}} $, and π 3 a = k = 3 5 π k s $ {{{\pi^a_3}}}=\sum\nolimits_{k=3}^5 {{{\pi^s_k}}} $.

For the classes that correspond one-to-one, the combined posterior probability is obtained by multiplying the likelihoods (the posterior divided by the prior, to within a normalisation factor) and then multiplying by the prior. This is

P k c = a P k s π k s P k a π k a π k a = a P k s P k a 1 π k s k { 1 , 2 } , $$ \begin{aligned} {{P^c_k}} \,=\, a\, \frac{{{P^s_k}}}{{{\pi ^s_k}}} \frac{{{P^a_k}}}{{{\pi ^a_k}}} {{\pi ^a_k}} \,=\, a\, {{P^s_k}}{{P^a_k}}\,\frac{1}{{{\pi ^s_k}}} k \in \{1,2\} ,\end{aligned} $$(B.1)

where a is a data-dependent but class-independent normalisation factor. For each of the three stellar classes in Specmod, we assume that a fraction π k s / π 3 a $ {{{\pi^s_k}}}/{{{\pi^a_3}}} $ for k ∈ {3, 4, 5} of the posterior probability P 3 a $ {{{P^a_3}}} $ is the Allosmod posterior probability for that class. Thus the combined probability for each of these three classes is

P k c = a P k s π k s P 3 a π 3 a π k s π 3 a π k s = a P k s P 3 a π k s ( π 3 a ) 2 k { 3 , 4 , 5 } . $$ \begin{aligned} {{P^c_k}} = a\, \frac{{{P^s_k}}}{{{\pi ^s_k}}} \frac{{{P^a_3}}}{{{\pi ^a_3}}} \frac{{{\pi ^s_k}}}{{{\pi ^a_3}}} {{\pi ^s_k}} \,=\, a\, {{P^s_k}}{{P^a_3}}\, \frac{{{\pi ^s_k}}}{({{\pi ^a_3}})^2} k \in \{3,4,5\} \ . \end{aligned} $$(B.2)

If Specmod probabilities are not available (missing), the combined posterior probability for the classes that correspond one-to-one is equal to the Allosmod probabilities:

P k c = P k a k { 1 , 2 } (no Specmod results) . $$ \begin{aligned} {{P^c_k}} \,=\, {{P^a_k}} k \in \{1,2\} \text{(no} \text{ Specmod} \text{ results)} \ . \end{aligned} $$(B.3)

For the three stellar classes, we distribute the corresponding Allosmod probability to these classes in proportion to the priors, i.e.

P k c = P 3 a π k s k = 3 k = 5 π k s k { 3 , 4 , 5 } (no Specmod probabilities) . $$ \begin{aligned} {{P^c_k}} = {{P^a_3}}\,\frac{{{\pi ^s_k}}}{\sum _{k=3}^{k=5}{{\pi ^s_k}}} k \in \{3,4,5\} \text{(no} \text{ Specmod} \text{ probabilities)} \ . \end{aligned} $$(B.4)

If Allosmod probabilities are not available, we simply copy the Specmod probabilities:

P k c = P k s k { 1 , 2 , 3 , 4 , 5 } (no Allosmod probabilities) . $$ \begin{aligned} {{P^c_k}} \,=\, {{P^s_k}} k \in \{1,2,3,4,5\} \text{(no} \text{ Allosmod} \text{ probabilities)} \ . \end{aligned} $$(B.5)

If neither the Specmod nor the Allosmod probabilities are available, the Combmod probabilities will be empty.

The above equations run the risk of divide by zero if probabilities are exactly zero. To avoid this we ‘soften’ the Specmod and Allosmod probabilities prior to combination by adding 10−8. This is only done in the combination: the Specmod and Allosmod probabilities written to the catalogue are not modified.

The above probability combination is not complicated conceptually, but it can lead to counter-intuitive results. Bailer-Jones (2021) works through various examples to demonstrate and explain this.

Appendix C: Adjusting the DSC probabilities to accommodate a new prior

All DSC probabilities are posterior probabilities that have taken into account the class priors listed in Table 2. Posteriors are equal to the product of a likelihood and a prior that has then been normalized. It is therefore simple to adjust the DSC probabilities to reflect a different prior probability: we simply divide each output by the prior used (to strip this off), multiply by the new prior, and then normalise the resulting probability vector. That is, if P k d $ {{P^d_k}} $ is the DSC probability in the catalogue (for any of its classifiers) for class k, and if π k d $ {{\pi ^d_k}} $ is the corresponding catalogue prior (Table 2), then the new posterior probabilities corresponding to a new prior π k new $ {{\pi ^\mathrm{new}_k}} $ are

P k d π k d π k new / k ( P k d π k d π k new ) . $$ \begin{aligned} \frac{{{P^d_k}}}{{{\pi ^d_k}}}{{\pi ^\mathrm{new}_k}} \bigg / \sum _{{k^{\prime }}}\left( \frac{{{P^d_{k^{\prime }}}}}{{{\pi ^d_{k^{\prime }}}}}{{\pi ^\mathrm{new}_{k^{\prime }}}} \right) . \end{aligned} $$(C.1)

All Tables

Table 1.

Individual contributions of the non-stellar CU8 modules to the Gaia DR3.

Table 2.

DSC class prior.

Table 3.

DSC performance evaluated on the validation data set.

Table 4.

Contingency table between DSC taken from predominant probabilities produced by DSC Combmod and OA classifications, grouped into generic types.

Table 5.

Number of sources in each OA class that belong to a high-quality neuron while having a classification squared Euclidean distance below 0.001 (i.e. what we consider here as reliable).

Table 6.

The QSOC parameters used to compute the redshift score of quasars from Eq. (7) and the Zscore from Eq. (6).

Table 7.

Binary warning flags used in the QSOC redshift selection procedure and reported in the hflags_qsoc field.

Table 8.

Distribution of the sources in the UGC data sets according to their SDSS redshifts.

Table 9.

Galactic coordinates and colour–colour regions from which UGC results are filtered out.

All Figures

thumbnail Fig. 1.

Dependency of the OA, UGC, QSOC, and TGE modules on the DSC combined probabilities for the selection of the sources to be processed (classprob_dsc_combod, see Sect. 3 for a definition). For each module, we provide a synthetic view of their input and output, and the number of sources for which the module produces results in Gaia DR3. In the case of TGE, we provide the number of extinction estimates that were computed in level 9 HEALPixes (see Sect. 7). Unlike the other modules described here, TGE additionally relies on the General Stellar Parametrizer from Photometry (GSP-Phot) for its source selection and processing, which is described in Andrae et al. (2022).

In the text
thumbnail Fig. 2.

Distribution (linear scale) of Gaia features for various samples used in DSC. Top: training data for quasars (blue), galaxies (orange), and stars (black). When training Allosmod, the sin b distributions for quasars and galaxies are replaced with uniform ones. Middle: Gaia sources assigned classlabel_dsc=‘quasar’ (blue) and classlabel_dsc=‘galaxy’ (orange). Bottom: Gaia sources assigned classlabel_dsc_joint=‘quasar’ (blue) and classlabel_dsc_joint=‘galaxy’ (orange).

In the text
thumbnail Fig. 3.

Colour–colour diagrams for various samples used in DSC. Top: training data for quasars (blue) and galaxies (orange). Middle: Gaia sources assigned classlabel_dsc=‘quasar’ (blue) and classlabel_dsc=‘galaxy’ (orange). Bottom: Gaia sources assigned classlabel_dsc_joint=‘quasar’ (blue) and classlabel_dsc_joint=‘galaxy’ (orange). The differences in the distributions are due to the various levels of completeness and purity in the two types of class label.

In the text
thumbnail Fig. 4.

Galactic sky distribution of the fraction of sources that have 5p/6p astrometric solutions (i.e. have parallaxes and proper motions) for sources that also have dsc_classlabel=‘quasar’ (left) and dsc_classlabel=‘galaxy’ (right). The plot is shown at HEALPix level 7 (0.210 deg2) in a Hammer–Aitoff equal area projection with the Galactic centre in the middle, north up, and longitude increasing to the left. White indicates no sources.

In the text
thumbnail Fig. 5.

Galactic sky distribution of the number of DSC sources classified as quasars (left) and galaxies (right) according to classlabel_dsc (top) and classlabel_dsc_joint (bottom) (see Sect. 3.2.4 for the label definition). The plot is shown at HEALPix level 7 (0.210 deg2). The logarithmic colour scale covers the full range for each panel, and is therefore different for each panel.

In the text
thumbnail Fig. 6.

Galactic sky distribution of the fraction of DSC sources classified as quasars (left) and galaxies (right) according to Specmod (top), Allosmod (second), Combmod (third), and Specmod and Allosmod (bottom) probabilities being greater than 0.5 for that class. Bottom two rows are identical to classlabel_dsc and classlabel_dsc_joint (respectively) being set to the appropriate class (see Sect. 3.2.4). The plot is shown at HEALPix level 7 (0.210 deg2) with each cell showing the ratio of the sources classified to the total number of sources with DSC results (1.59 billion over the whole sky). The logarithmic colour scale covers the full range for each panel, and is therefore different for each panel.

In the text
thumbnail Fig. 7.

Colour–colour diagram for sources in the qso_candidates table with classlabel_dsc=‘quasar’, excluding regions around the LMC and SMC. The left column shows sources with 5p/6p solutions (2.64 million sources), the right column shows sources with 2p solutions (0.14 million sources). These numbers refer to plotted sources, i.e. that have all Gaia bands. The colour coding in the upper panel shows the mean DSC-Combmod probability for the quasar class (the field classprob_dsc_combmod_quasar). The colour coding in the lower panel shows the density of sources on a log scale relative to the peak density in that panel.

In the text
thumbnail Fig. 8.

As in Fig. 7 but for sources in the galaxy_candidates table with classlabel_dsc=‘galaxy’, excluding regions around the LMC and SMC. The left column shows sources with 5p/6p solutions (0.91 million sources), and the right column shows sources with 2p solutions (2.32 million sources). These numbers refer to plotted sources, i.e. that have all Gaia bands.

In the text
thumbnail Fig. 9.

Colour–colour diagram for sources in the qso_candidates table with classlabel_dsc=‘quasar’ (left) and in the galaxy_candidates table with classlabel_dsc=‘galaxy’ (right), in both cases excluding regions around the LMC/SMC, that have both Specmod and Allosmod results. Upper and lower panels: the mean DSC-Specmod probability and the mean DSC-Allosmod probability, respectively, for a common sample.

In the text
thumbnail Fig. 10.

SOM grid from the OA module visualised through the GUASOM tool (Álvarez et al. 2021). Each cell corresponds to a neuron from the SOM, most of which were assigned a class label. Those neurons that did not meet the quality criteria defined to establish a class label remain ‘undefined’, as explained in Sect. 4.2.3

In the text
thumbnail Fig. 11.

G mag distribution of the 56 416 360 sources processed by the OA module in Gaia DR3 (bin width of 0.1).

In the text
thumbnail Fig. 12.

Histogram of neuron quality categories for the sources processed by the OA in Gaia DR3. The number of sources per category is superimposed along with the bars. Those neurons with 0 ≤ QC ≤ 3 are considered high-quality neurons.

In the text
thumbnail Fig. 13.

SOM grid visualised through the GUASOM tool (Álvarez et al. 2021) to represent the quality category (QC) assigned to each neuron.

In the text
thumbnail Fig. 14.

Rest-frame quasar templates used by QSOC. These correspond to the dominant templates taken over the 32 templates that are computed based on the method described in Delchambre (2015) and applied to 297 264 quasars from the DR12Q catalogue that are converted into BP/RP spectra through the use of the BP/RP spectrum simulator provided by CU5.

In the text
thumbnail Fig. 15.

Histogram of the logarithmic redshift error, ΔZ = log(z + 1)−log(ztrue + 1) between QSOC redshift, z, and literature redshift, ztrue, for 439 127 sources contained in the Milliquas 7.2 catalogue. A bin width of 0.01 was used for both curves.

In the text
thumbnail Fig. 16.

Fraction of successful and reliable QSOC predictions computed over 439 127 sources contained in the Milliquas 7.2 catalogue with respect to G magnitude (top), Milliquas redshift (middle), and QSOC redshift (bottom). Black line: Fraction of observations with an absolute error of the predicted redshift, |Δz|, lower than 0.1. Orange line: Fraction of flags_qsoc = 0 sources with |Δz|< 0.1. Blue line: Fraction of observations with flags_qsoc = 0. Orange and blue dotted lines correspond to their solid counterpart while considering (flags_qsoc = 0 or flags_qsoc = 16) observations instead of flags_qsoc = 0 observations. Fractions are computed with respect to the number of sources in magnitude and redshift bins of 0.1.

In the text
thumbnail Fig. 17.

Comparison of the UGC redshifts, as estimated from the t-SVM model with SDSS DR16 redshifts for the base test set (left) and for the clean test set (right), as identified in Sect. 6.2.1.

In the text
thumbnail Fig. 18.

Left panel: mean (μi) and standard deviation (σi) of the difference between the UGC redshifts, from the t-SVM model, and associated SDSS redshifts for sources contained in the UGC base test set and averaged over redshift bins of size 0.02. Completeness (middle panel) and purity (right panel) as a function of redshift, evaluated on the UGC test set (black) and clean set (cyan). The bin size is equal to 0.1.

In the text
thumbnail Fig. 19.

Galactic sky distribution of the number of sources with redshifts estimated by UGC. The plot is shown at HEALPix level 7 (0.210 deg2).

In the text
thumbnail Fig. 20.

Distribution of the UGC redshifts. Left: histogram of the estimated redshift in bins of size 0.02. Middle: UGC redshifts as a function of G magnitude. Right: distribution of the sources with UGC redshifts on a BP/RP magnitude diagram where different colours correspond to different redshift ranges.

In the text
thumbnail Fig. 21.

Comparison of the UGC estimated and the actual (SDSS DR16) redshifts for the 248 356 sources in common (not shown are 67 sources with actual redshift greater than 0.6). Left panel: distributions of the UGC redshifts and SDSS DR16 redshifts indicates that UGC tends to overestimate the small redshifts. Middle panel: comparison of the UGC redshifts and SDSS DR16 redshifts. The unit line is shown in red. A small horizontal branch at redshift_ugc = 0.07 is discussed in the text. Right panel: differences between the UGC and SDSS DR16 redshifts as a function of G magnitude. The red horizontal line designates perfect agreement.

In the text
thumbnail Fig. 22.

UGC sources with high redshift from the SDSS DR16. Blue and red points are sources that are spectroscopically classified as ‘QSO’ and ‘GALAXY’ in the SDSS DR16, respectively.

In the text
thumbnail Fig. 23.

Comparison of the UGC redshifts for sources classified as ‘QSO’ in the SDSS DR16, with actual redshift lower than 0.6.

In the text
thumbnail Fig. 24.

HEALPix map of the total Galactic extinction, built from HEALPixes between levels 6 and 9 (0.839 to 0.013 deg2), which are identified as being at the optimum resolution over their field of view.

In the text
thumbnail Fig. 25.

A0 towards Rho Ophiuchi from the TGE optimum HEALPix map (Fig. 24) centred at (l, b) = (−5°, 18°). The solid white line in the upper right corner provides the angular scale of the image. The variable resolution of the optimum HEALPix map is particularly obvious towards the middle of the figure.

In the text
thumbnail Fig. 26.

Extinction comparison between the TGE A0 optimum HEALPix map and the Planck AV HEALPix level 9 map at small extinction values. The colour scale shows the density of HEALPixes, the red dashed line represents unity, and the points with error bars are the median A0 and average absolute deviation computed in AV bins of width 0.025 mag. The red line is the result of a linear fit to the points.

In the text
thumbnail Fig. 27.

Comparison of the extinction between the TGE A0 optimum HEALPix map and the Planck AV HEALPix level 9 map for extinctions up to 10 mag. The background grey scale is a density plot of the entire optimal HEALPix TGE map (comprising the optimal HEALPixes at several HEALPix levels). The dashed red line represents unity and the solid red line is a linear fit of the medians of all HEALPixes in the optimum HEALPix map with 0.5 ≤ AV ≤ 3. Coloured symbols refer to the median A0 computed in AV bins of width 0.2 mag for various HEALPix levels that are used to assign the A0 value.

In the text
thumbnail Fig. 28.

Residual sky map of TGE A0 minus Planck AV, using the optimum HEALPix level 9 map. Red values show regions where TGE predicts more extinction than Planck, whereas blue values show the opposite.

In the text
thumbnail Fig. 29.

A0 towards the LMC from the TGE Optimum HEALPix map (Fig. 24), centred at (l, b) = (280.0°, −33.0°). The estimated offset of A0 = 0.6 mag has been subtracted. The solid white line in the bottom left corner provides the angular scale of the image.

In the text

Current usage metrics show cumulative count of Article Views (full-text article views including HTML views, PDF and ePub downloads, according to the available data) and Abstracts Views on Vision4Press platform.

Data correspond to usage on the plateform after 2015. The current usage metrics is available 48-96 hours after online publication and is updated daily on week days.

Initial download of the metrics may take a while.