skip to main content

gaia data release 4 documentation

16.3 Apsis modules

16.3.9 ESP-UCD

Author(s): Luis M. Sarro

16.3.9.1 Goal

The primary purpose of ESP-UCD (the extended Stellar Parametrizer for UltraCool Dwarfs) is to identify Ultracool Dwarfs (hereafter UCDs) and produce estimates of their effective temperatures based on their Gaia RP spectra. Ultracool Dwarfs are defined as sources with spectral type M7 or later (Kirkpatrick et al. 1997). This definition includes the coolest stars and brown dwarfs. Brown dwarfs are characterized by masses below ∼0.072⁢M⊙ (depending on the specific models and the metallicity; see, for instance, Baraffe et al. 2015; Chabrier et al. 2023), and very low temperatures and luminosities, which depend strongly on the age (being significantly brighter and warmer at young ages). Main Sequence UCDs have absolute magnitudes fainter than 13 mag and G−GRP redder than ≈ 1.2 mag. As shown in Section 16.4.3.4, the set of UCDs identified by Gaia includes both Main Sequence and pre-Main Sequence sources in star-forming regions and star clusters of different ages. The youngest of these UCDs (younger than 10 Myr) can be as bright as MG≈8 mag.

UCDs represent a bridge between the properties of the coolest stellar objects and those of planets and, being brighter than the latter, provide valuable clues and insights into the formation mechanisms and the resulting atmospheric chemistry prevailing in the faint end of the Hertzsprung-Russell diagram. Since ESP-UCD predicts effective temperatures and not spectral types, we adopt the alternative definition of Ultracool Dwarfs as sources with effective temperatures cooler than 2700 K. The equivalence between both definitions depends on the adopted conversion law between spectral types and effective temperatures. In practice, and given the various conversion laws available in the literature (see e.g. Rajpurohit et al. 2013), we publish effective temperatures up to 3000 K.

The ESP-UCD module produces two types of results, those derived from the epoch combined mean RP spectra, and those derived from the epoch RP spectra of a subset of sources. For the epoch-combined mean RP spectra, the module estimates the effective temperature and an index aimed at identifying potentially young UCD candidates; for each epoch spectrum of the selected sources, it estimates epoch effective temperatures and (if the conditions described in Section 16.3.9.6 apply) Hα pseudo-equivalent widths.

16.3.9.2 Training data and models

The ESP-UCD module that predicts effective temperatures for a given RP spectrum is trained using the following mixture of Gaia DR4 observations and simulated RP spectra:

  • •

    A set of 48 spectral type standards from the GUCDS (Gaia UltraCool Dwarf Sample; Smart et al. 2017). An additional set of 18 non-standards were added in the range Teff <1550 K. In all cases, spectral types are converted into effective temperatures using the Stephens et al. (2009) calibration.

  • •

    A selection of 200 UCDs and M-type stars with high-quality estimates of effective temperatures in the literature (from high-resolution spectroscopy, SED fitting, or interferometry).

  • •

    A selected list of 102 visually inspected RP spectra of UCDs from Gaia DR3. Although these spectra lack literature effective temperatures, we assigned fiducial values to these sources using a diffusion map (Coifman and Lafon 2006) calibrated in temperature using the rest of labelled examples and the conversion from spectral types to effective temperatures from Stephens et al. (2009) where necessary.

  • •

    A subset of 213 LAMOST UCDs (Wang et al. 2022) with Teff values calibrated using the linear relation Teff=−324+1.03⋅TeffLAMOST. LAMOST sources are selected if r⁢u⁢w⁢e<1.4, the 2MASS and WISE W1 and W2 quality flags are A, and their positions in the colour-absolute magnitude diagrams including 2MASS magnitudes are consistent with the Main Sequence. The calibration was introduced in order to bring the effective temperatures into agreement with the rest of the training set and, in particular, with the Stephens et al. (2009) calibration used for the GUCDS training set examples. Comparison of the LAMOST effective temperatures and spectral types with, for example, Rajpurohit et al. (2013) confirms that the Teff-spectral type relation implicit in Wang et al. (2022) assigns temperatures similar to or above the hottest ones in the literature calibrations for the last M spectral types (M6 to M9).

  • •

    A set of 139 simulated RP spectra of the subset of BT-Settl synthetic spectra (CIFIST; Baraffe et al. 2015, and references therein) with Teff <1400 K.

As will be shown in Section 16.4.3.4, spectral type-Teff calibrations in the literature vary typically by 300 K in the M6-M9 domain (see also Rajpurohit et al. 2013). Hence, no single training set can be defined that agrees with all literature references. The temperature estimates produced by ESP-UCD align with the Stephens et al. (2009) calibration.

16.3.9.2.1 Description of the training set for youth detection

The detection of indications of youth in RP spectra is accomplished using a diffusion map (Coifman and Lafon 2006) constructed using a set of RP spectra composed of Main Sequence sources and young sources in star-forming regions. Sarro et al. (2023) found that UCDs in star-forming regions of less than 10 Myr show less prominent absorption depths in the observed RP spectra compared to those of Main Sequence counterparts of the same temperature. This finding has been used to produce a youth index for UCDs clearly above the Main Sequence as described in subsequent sections. The selection of sources used in the diffusion map was carried out based on the Gaia DR3 labels (Main Sequence/star-forming region) using Gaia DR4 data. The selection of the 17 704  sources that represent Main Sequence RP spectra was done by requiring the best ESP-UCD quality class in Gaia DR3, available external photometry from 2MASS and WISE, and cleaning the resulting sample from over-luminous sources (G+5⋅(log⁡(ϖ)+1)>2.2+8⋅(G−GRP) or G+5⋅(log⁡(ϖ)+1)>−8.25+15⋅(G−GRP)). For the young UCD templates, we selected 3134 young sources based on the clustering of Gaia DR3 sources in the space of celestial coordinates, proper motions, and parallaxes described in Sarro et al. (2023).

16.3.9.2.2 Description of the training set for Hα measurement

We measure the pseudo-EW of Hα with respect to BT-Settl models without Hα features (absorption or emission). These specific models are restricted to Teff <3200 K, 4.5< log⁡g <5.5, and solar metallicity.

16.3.9.3 Inputs

The inputs to the ESP-UCD module are (unless stated, corresponding to epoch combined mean values):

The Apsis preprocessing by SMSgen (described in Section 16.3.1) provides us with 120 integrated RP fluxes, si (in contrast with flux densities), which we normalize before processing by ESP-UCD as

si′=si∑i=1120si. (16.52)

ESP-UCD does not use epoch photometry or epoch astrometry.

16.3.9.4 Outputs

The effective temperature Teff is stored in the field teff_espucd. The uncertainty in the Teff prediction is stored in the field teff_espucd_uncertainty.

A 1-digit flag, flags_espucd, encodes the quality of the data in one of four categories {0,1,2,3}, with 0 being the best quality. This quality flag considers the following aspects of the measurements:

  1. 1.
  2. 2.

    the median curvature of the RP spectrum, τ, as defined below

  3. 3.

    the Euclidean distance between the observed RP spectrum and the nearest template, dT⁢S

  4. 4.

    the signal-to-noise ratio of the RP integrated photometry

  5. 5.

    the total area of the RP spectrum below the zero flux level.

More specifically, we calculate indices qi for the quality indicators above using an integer between 1 (best quality) and 8 (worst quality). Then, all individual integer values qi are weighted and averaged into one single integer value in the set {0,1,2,3}. During post-processing, we apply additional cuts described in Section 16.3.9.6. The weights are 0.05 for the astrometric quality indicators and 0.2 for the RP spectrum quality indicators. The final value encodes the quality class, ranging from 0 (pristine quality) to 3 (relatively poor quality data with significant contamination from non-UCDs; the use of the source must be considered carefully and only if supported by external data). The module discards sources with data qualities worse than 3. The discarded data may contain potential UCDs, but the quality of the data and therefore, the module predictions, were considered unreliable.

The median curvature mentioned above, τ, is calculated as the median of the 120 second-order derivatives (i.e., at each flux) using the following numeric approximation to the first and second order derivatives of the fluxes:

s˙i′=d⁢si′d⁢λi≈si+1′−si−1′λi+1−λi−1, (16.53)

and

s¨i′=d2⁢si′d⁢λi2≈s˙i+1′−s˙i−1′λi+1−λi−1, (16.54)

with appropriate simplifications at the boundaries.

Youth predictions. As described above, the ESP-UCD module contains, in addition to the Teff prediction modules, two other submodules. The module responsible for detecting signs of youth in the combined RP spectra produces youthindex_espucd. This is a real number between 0 and 1, with 0 denoting sources with RP spectra typical of Main Sequence templates. Youth indices close to 1 denote RP spectra with less pronounced absorption features, which are associated with young (∼10 Myr) moving groups and star-forming regions as illustrated in Sarro et al. (2023). However, the youth index must be used critically, as the signal is feeble and false positives can occur due to noise or non-UCD contaminants. Youth indices are only published for quality classes 0, 1, and 2.

The epoch RP analysis module produces the following outputs for each transit spectrum:

  1. 1.

    teff_espucd: Teff estimate from epoch RP spectrum

  2. 2.

    teff_espucd_uncertainty: uncertainty associated to the Teff measurement stored in teff_espucd

  3. 3.

    ew_espucd_halpha: Hα pseudo-EW measured in an epoch RP spectrum

  4. 4.

    ew_espucd_halpha_uncertainty: uncertainty associated to the measurement of ew_espucd_halpha

  5. 5.

    flags_espucd: quality flags associated with the epoch RP spectrum.

The (epoch) flags_espucd field is a single-digit integer in one of 5 categories 0, 1, 2, 3, and 4 defined based on:

  1. 1.

    The percentile position pσ of the estimated Hα pseudo-EW uncertainty in the distribution of the corresponding 0.2 mag-wide bin of the source integrated RP magnitude. We denote pn as the n-th percentile value of the Hα pseudo-EW uncertainty in the distribution for a given RP magnitude bin. We denote the inter-quartile range in the magnitude bin as I⁢Q⁢R=p75−p25.

  2. 2.

    The area of the normalized epoch RP spectrum below 0 (negative fluxes), a.

  3. 3.

    The root mean square normalized error of the ridge reconstruction of the partially calibrated epoch spectrum, er⁢i⁢d⁢g⁢e.

Each of these diagnostic variables is binned in categories and the flags_espucd is set as:

  • •

    0, if pσ≤p25;

  • •

    1, if p25<pσ≤p50;

  • •

    2, if p50<pσ≤p75 or 0.0001<a≤0.0002;

  • •

    3, if p75<pσ≤pl⁢i⁢m (where pl⁢i⁢m=p75+I⁢Q⁢R) or 0.0002<a≤0.0004;

  • •

    4, if pσ≥pl⁢i⁢m, or 0.0004<a<0.0006, or er⁢i⁢d⁢g⁢e>2.

These epoch RP measurements are not available for all observed transits. A set of quality criteria is required for publication, which are described below in Section 16.3.9.6.

16.3.9.5 Method

This section describes three models used to generate the ESP-UCD output.

First, the ESP-UCD Teff predictions are produced by a Gaussian Process model (Rasmussen and Williams 2006) trained on a set of RP spectra of selected sources, both for epoch combined mean RP spectra and epoch spectra as well. The Gaussian Process model provides uncertainties for the effective temperature estimates, but these were found to be gross underestimates (of the order of a few Kelvins). The uncertainties stored in teff_espucd_uncertainty were calculated originally by generating ten random samples of the RP spectrum using the RP coefficients and their covariance matrix, assuming a Gaussian distribution, and calculating the standard deviation of the Teff predictions produced for each random replicate by the Gaussian Process model. A floor σ0=80 K is finally added in quadrature, such that the distribution of Teff estimate residuals for the GUCDS, normalized using the final uncertainties has a standard deviation close to 1. Sources for which the coefficients covariance matrix was not invertible were assigned an uncertainty of 2000 K.

The youth index py is calculated using two Diffusion Map (Coifman and Lafon 2006) coordinates. The Diffusion Map is constructed using two sets of RP spectra of sources selected based on the Gaia DR3 results presented in Sarro et al. (2023) and described above. Figure 16.14 shows the Diffusion Map obtained with the UQpy package (Olivier et al. 2020). The Diffusion Map coordinates for the RP spectrum of a given UCD are calculated using the Nyquist approximation (see e.g. Press et al. 2007). The first diffusion coordinate of the training set is binned, and for each bin, the minimum and maximum values of the absolute value of the second diffusion coordinate are used to define a linear scale 0<py<1 such that values of py close to 1 are indicative of youth. Youth indices py>0.1 are set to 0 for sources with G+5⋅(log⁡(ϖ/1000)+1)>−6.4+13*(G−GRP) to avoid contamination due to noise affecting sources nominally in the Main Sequence.

Refer to caption
Figure 16.14: Diffusion Map projected onto two coordinates selected to optimize the separation of Main Sequence and young UCDs. The cyan circles represent sources tagged as young according to Sarro et al. (2023), while the circles coloured according to the temperature scale shown on the right represent sources on the Main Sequence of the colour-absolute magnitude diagram.

The reconstruction of internally calibrated epoch RP spectra from the partially-calibrated ones is carried out using weighted-ridge regression. We use the matrix of second order derivatives 𝐑 at each sampled wavelength (Equation 16.54) as regularization term and use leave-one-out cross-validation to determine the optimal regularization parameter λ. λ defines the weight of the regularization term in the reconstruction Equation 16.55:

χ2=‖𝐖⁢(𝐀⋅𝒙−𝒇)‖2+λ⁢(𝐑⋅𝒙) (16.55)

where 𝒇 is the partially-calibrated RP spectrum, 𝝈 is its corresponding vector of flux uncertainties, 𝐖=d⁢i⁢a⁢g⁢(1/𝝈) is the diagonal matrix of weights, 𝐀 is the calibration matrix (all three provided by the photometric processing, Chapter 5), 𝐑 is the matrix of second order derivatives, and 𝒙 is the internally calibrated spectrum that we aim to infer by minimizing χ2. In practice, 𝒙 is expressed as a linear combination of 45 B-spline basis functions of degree 3, the coefficients of which are estimated as a result of the χ2 minimization. This is an adaptation of the method described in more detail in Section 16.3.11.

The measurement of the Hα pseudo-equivalent width in epoch spectra follows the same guidelines described in Section 16.3.6. The epoch RP spectrum is matched to a series of templates from the BT-Settl library which we take as defining the quiescent state (in this paragraph, template will refer to an RP simulated spectrum from the BT-Settl library). The matching to the template spectra is carried out in the RP wavelengths redder than 700 nm. Once the closest (in Euclidean sense) template is identified, a linear pseudo-continuum is defined by the fluxes at 646 and 670 nm, which is subsequently used to normalize the observed fluxes (resulting in 𝒙n⁢o⁢r⁢m). Then, the integral of (1−𝒙n⁢o⁢r⁢m) is approximated by summing over the SMSgen wavelength bins between the same wavelength boundaries (646 and 670 nm) both for the epoch RP spectrum and the template. The adopted procedure results in negative values for Hα in emission. The not-calibrated Hα pseudo-EW of the epoch spectrum is calculated as the difference pEWu⁢c = pEWe⁢p⁢o⁢c⁢h-pEWt⁢e⁢m⁢p⁢l⁢a⁢t⁢e. Finally, a linear transformation is applied to this not-calibrated pEW in order to account for the difficulties of measuring equivalent widths given the RP dispersion function. The linear transformation is derived from an exercise where this measurement process is applied to simulated RP spectra of the same BT-Settl templates with added Gaussian components at the Hα wavelength and of varying intensity and therefore, corresponding EW. From the simulations, we derive the following transformation to obtain calibrated equivalent widths EWc:

EWc=b⁢(Teff)+2.2⋅EWu⁢c, (16.56)

where b⁢(Teff) is a temperature-dependent intercept. The dependence with temperature is described by

b⁢(Teff)=11+exp⁡(−(Teff−2850)/50)⋅(9.8−0.003⋅Teff), (16.57)

which vanishes for effective temperatures much smaller than 2850 K (in terms of the scale of the exponential, 50 K), and saturates to the linear relation for temperatures significantly above 2850 K. In Equation 16.56 and Equation 16.57, Teff refers to the effective temperature derived by the module for the epoch combined mean RP spectrum. We choose the effective temperature derived from the epoch combined mean RP spectrum because it is more robust and the small variations of temperature with epoch do not result in significant changes in the calibrating parameters. The calibration procedure is only applied to negative measurements (emission) since we do not expect Hα in absorption in the ESP-UCD regime (see e.g. Newton et al. 2017).

16.3.9.6 Scope

The definition of sources with ESP-UCD results is carried out in two stages. First, sources are processed if they fulfil a set of criteria. Then, the set of ESP-UCD results is subject to modifications in a post-processing stage. In this section we describe the two stages of selection of results.

The filters that define the set of sources processed by the ESP-UCD module (first stage) are described below. In the following, q33, q50, and q67 represent the pixel indices at which the 33.33, 50, and 66.67 percentiles of the total flux in the RP spectrum are attained. With this definition, the filters that define the set of sources processed by ESP-UCD are:

  • •

    parallax ϖ>0.35 mas

  • •

    colour index G−GRP >1.0 mag

  • •

    the number of transits used to construct the RP spectrum is greater than or equal to 15

  • •

    G > 9 mag

  • •

    q33>60

  • •

    q50>71

  • •

    q67>83.

The parallax cut is based on the properties of the brightest UCD (young pre-Main Sequence source with Teff ≈ 2700 K) detected in the validation runs at G =21 mag. The colour index and percentile cuts are based on the properties of the GUCDS. Safety margins are added to allow for UCDs extending beyond the properties of known UCDs in previous Gaia Data Releases.

During post-processing, the following additional modifications of the ESP-UCD results were applied (where τ refers to the median curvature of the RP spectrum):

  1. 1.

    Results for sources with parallax ϖ<1.4 are removed except for quality class 0 pre-Main Sequence sources identified by having youth indices py>0.2.

  2. 2.

    flags_espucd is also set to 3 if −1+log⁡(ϖ)<log⁡(σϖ)≤−0.8+1.3⋅log⁡(ϖ) or −3.35≤log⁡(τ)−log⁡(dT⁢S)<−3

  3. 3.

    Results for sources with flags_espucd equal to 0 are removed unless the following conditions are met:

  4. 4.

    Results for sources with flags_espucd equal to 1 or 2 are removed unless the following conditions are met:

  5. 5.

    Results for sources with flags_espucd equal to 3 are removed unless the following conditions are met:

  6. 6.

    Teff estimates outside the 500–3000 K range are filtered out.

In practice, these filters imply that sources in classes 0, 1, and 2 correspond to different levels of quality of the RP spectra for sources with parallax SNR greater than 10, and quality class 3 collects sources with poorer quality observations, which results in an increased contamination from non-UCDs.

Youth indices are only published for sources with (combined) flags_espucd = 0, 1 or 2.

The epoch processing input list. Results for epoch spectra are produced only for an input list of sources. Initially, the input list of sources for ESP-UCD epoch processing contained only UCDs classified as variable by CU7 in Gaia DR3. In order to validate the results, the following lists of sources were also included in the ESP-UCD epoch processing input list:

  • •

    the Gaia DR3 ESP-UCD list of UCDs;

  • •

    the Gaia DR3 GSP-Phot list of sources with Teff < 3000 K;

  • •

    the list of sources in the literature catalogues Newton et al. (2017), Schmidt et al. (2015), Anthony et al. (2022), and West et al. (2011);

  • •

    TESS variable UCDs from Petrucci et al. (2024);

  • •

    selected sources from Schmidt et al. (2014), Paudel et al. (2018a), Stelzer et al. (2006), Gizis et al. (2017), Paudel et al. (2019), and Paudel et al. (2018b).

As in the case of results derived from combined RP spectra, the selection for publication is done in two stages (processing and post processing). The selection criteria for processing were the following (where normalization of the epoch RP spectrum is always carried out using the total flux):

  • •

    The source fulfils the publication criteria for results derived from combined spectra.

  • •

    A subset of relevant partially calibrated spectrum CU5 processing flags are not set.

  • •

    The number of valid samples in the partially calibrated epoch spectrum is at least 50, and the maximum number of consecutive outliers (maximum gap length) is 2.

  • •

    The ridge reconstruction of the calibrated epoch RP spectrum was successful. Potential reasons for failure are related to problems flagged during the CU5 processing of the partially calibrated epoch spectrum.

  • •

    The covariance matrix of the ridge coefficients is invertible.

  • •

    The decadic logarithm of the normalized epoch RP spectrum median curvature log⁡(τ) is less than −5.

  • •

    log⁡(dT⁢S)<−2.9.

  • •

    The area of the normalized epoch RP spectrum below 0 (negative fluxes) is less than 0.001.

  • •

    The median SNR of the epoch RP spectrum is greater than 4.

  • •

    The maximum normalized flux is less than 0.045.

  • •

    The fluxes at the shortest and longest RP wavelengths are less that 2 standard deviations away from the mean values derived from the templates defined for combined RP spectra.

  • •

    The root mean square error (RMSE) of the ridge reconstruction of the partially calibrated epoch spectrum is less than 3.

The processing stage ends by checking that the source has at least 10 transits fulfilling all of these criteria. During post processing, the Hα measurements of transits with epoch quality flag equal to 4 are nullified.

16.3.9.7 Uses and limitations

The ESP-UCD module produces output according to the selection rules described in Section 16.3.9.6. The results are a compromise between completeness (mainly guided by the GUCDS sample) and contamination. Contamination, found mainly in the quality class flags_espucd=3, comes predominantly from two types of sources:

  1. 1.

    Main Sequence dwarfs and pre-Main Sequence stars hotter than 3000 K that, due to reddening, have RP spectra typical of cooler dwarfs. These sources can be identified using extinction maps as illustrated in Appendix C.3 of Sarro et al. (2023).

  2. 2.

    a small fraction of cool giants and asymptotic giant branch stars (some of them variable) that pass the astrometric filters due to parallax measurement errors. Figure 13 of Lebzelter et al. (2023) shows that some Long Period Variables (LPVs) are scattered to the region of the colour-absolute magnitude diagram of pre-Main Sequence UCDs. LPVs can be removed from ESP-UCD results using the variability classification fields described in Section 15.4.

Hα pseudo-EWs are difficult to measure in RP spectra, especially in epoch spectra. The determination of the continuum in a wavelength region near the edge of the detector sensitivity has high variance due to the presence of noise. The main goal of the ESP-UCD processing module was to provide the archive users with a means to study the large-scale variability detected in Sarro et al. (2023) using DR3 data, not accurate measurements of the EW. As shown in Figure 16.108, the ESP-UCD weighted average estimates agree with literature values for GRP values brighter than 15.5 mag. Beyond that point, the measurements still allow for the detection of significant time variations, but the measurements themselves are subject to significant errors.

16.3.9.8 Changes with respect to Gaia DR3

The ESP-UCD results present the following changes with respect to the previous release:

  • •

    effective temperature predictions up to 3000 K;

  • •

    quality flags inspired on Gaia DR3 definitions but modified to include also astrometric quality indicators;

  • •

    updated training set for effective temperature prediction;

  • •

    inclusion of the youth index calculation;

  • •

    inclusion of effective temperature and Hα pseudo-EW estimates for epoch RP spectra (and associated uncertainties and flags).