16.3.8 ESP-CS
Author(s): Alessandro Lanzafame
16.3.8.1 Goal
The Extended Stellar Parametrizer – Cool Stars (ESP-CS) module derives activity indices from Gaia RVS spectra and astrophysical parameters of T Tauri stars (low-mass pre-main-sequence stars undergoing mass accretion from their circumstellar disks) from Gaia BP/RP spectrophotometry.
The activity diagnostics are provided in terms of both the excess equivalent width and the excess flux of the Ca II IRT (infrared triplet) lines.
For T Tauri stars, ESP-CS estimates the effective temperature (), surface gravity (), and metallicity () of the unperturbed photosphere, together with the mass accretion rate (), the accretion-column filling factor (), and the interstellar extinction parameter () (Lanzafame et al. 2026).
16.3.8.2 Training data and models
16.3.8.2.1 Models for the activity indices
16.3.8.2.2 Training data for accreting PMS stars
The ESP-CS BP/RP analysis uses the HotSpot library (Section 16.2.5.1) to train the conditional variational autoencoder (CVAE) employed for parameter inference. The library combines MARCS photospheric spectra with simulations of the emission produced by magnetospheric accretion columns (Hartmann et al. 2016; Calvet and Gullbring 1998; Lanzafame et al. 2026).
Each synthetic spectrum in the HotSpot library is given by
| (16.33) |
where is the fractional area of the stellar photosphere covered by the accretion column (filling factor), is the flux emitted by the unperturbed photosphere, represented by a MARCS spectrum at given (, , ), and
| (16.34) |
is the flux emitted by the accretion column (Lanzafame et al. 2026). The three components correspond to the heated photosphere beneath the accretion column, the post-shock region, and the pre-shock region, respectively.
The heated photosphere is approximated by a photospheric spectrum with effective temperature
| (16.35) |
where is the bolometric accretion flux resulting from the dissipation of the kinetic energy of the accretion flow (Hartmann et al. 2016; Calvet and Gullbring 1998; Lanzafame et al. 2026). The spectra of the post-shock and pre-shock regions are computed with the CLOUDY code as described in Lanzafame et al. (2026). All HotSpot spectra are scaled to a distance of 10 pc.
| Parameter | units | description |
|---|---|---|
| [solar mass] | stellar mass | |
| [solar mass / yr] | mass accretion flux | |
| dimensionless | accretion column filling factor | |
| [K] | effective temperature of the unperturbed photosphere | |
| [cm s] | surface gravity acceleration | |
| [dex] | metallicity | |
| [mag] | interstellar absorption |
| Parameter | nominal grid values |
|---|---|
| 0.25, 0.5, 0.8, 1.0, 1.2, 1.3 | |
| 5e-8, 1e-7, 5e-7, 1e-6, 2.5e-6, 5e-6, 1e-5, 2.5e-5, 5e-5, 1e-4 | |
| 0.003, 0.01, 0.03, 0.05, 0.1, 0.3 | |
| 3000, 3200, 3400, 3600, 3800, 4000, 4250, 4500, 4750, 5000, 5500, 6000, 6500, 7000 | |
| 2.5, 3.0, 3.5, 4.0, 4.5, 5.0 | |
| -0.5, 0.0, 0.5, 1.0 | |
| 0, 0.3, 1.0, 3.0, 10.0 |
The composite spectrum (Equation 16.33) is then processed through MIOG to simulate the response of the Gaia BP/RP spectrophotometer. Interstellar extinction is applied at this stage through the parameter .
In the ESP-CS BP/RP model, the accretion spectrum depends on the stellar mass , radius , mass accretion rate , and filling factor . The spectra of the quiet and heated photospheres are taken from the MARCS library at (, , ) and (, , ), respectively. The spectra of the post-shock and pre-shock regions are computed with CLOUDY using the physical assumptions described in Section 16.3.8.5.
Since , , and are related through
| (16.36) |
is derived from and . Furthermore, because
| (16.37) |
where is the free-fall velocity at the stellar surface, calculated from stellar mass and radius (Equation 16.45), the accretion spectrum can be parametrized using rather than and separately. The resulting model parameters are listed in Table 16.18.
To infer stellar and accretion parameters from BP/RP spectra, ESP-CS uses CVAEs to establish non-linear mappings between the spectrum space and the parameter space of the accretion model. Two CVAEs are initially trained on the nominal grid of model parameters (Table 16.19) and the corresponding synthetic spectra to provide both
| (16.38) | |||
| (16.39) |
where and denotes the BP/RP flux spectrum.
To reduce biases associated with the regular training grid, the generative mapping is used to interpolate spectra at randomly sampled parameter values within the model domain. These interpolated spectra are then combined with the nominal grid and used to retrain the inverse mapping . Interpolation is preferred over direct spectrum computation because of its significantly lower computational cost.
16.3.8.3 Inputs
For the RVS analysis, ESP-CS identifies the inactive template spectrum using the stellar atmospheric parameters (, , ). Three alternative sets of astrophysical parameters are considered: those derived by ESP-CS itself for accreting PMS stars, together with the GSP-Phot and GSP-Spec parameter estimates (Table 16.20).
| all_source_astrometry | ap_emission | ap_xp | ap_rvs | parameter |
|---|---|---|---|---|
| parallax | ||||
| teff_espcs | teff_gspphot | teff_gspspec | ||
| logg_espcs | logg_gspphot | logg_gspspec | ||
| feh_espcs | mh_gspphot | mh_gspspec |
For the ESP-CS BP/RP analysis, the observed spectrum is first scaled to a distance of 10 pc before being processed by the CVAE. This scaling is performed using the source parallax parallax.
16.3.8.4 Outputs
The RVS ESP-CS output includes the excess equivalent width for the three Ca II IRT lines separately and for each of the input astrophysical parameter sets (ESP-CS, GSP-Phot, and GSP-Spec). A combined is also provided by selecting one of the results obtained using the three input stellar parameter sets and then averaging over the three multiplet lines. Since the resulting is mostly sensitive to , which is best constrained by the stellar spectral energy distribution (SED), the first choice is the ESP-CS set, if available, since in this case the stellar parameters are obtained from the analysis of BP/RP spectrophotometry including effects due to mass accretion on the stellar photosphere (see below). If the ESP-CS set is not available, then GSP-Phot is used, if available, otherwise GSP-Spec is used.
The activity index is also expressed in terms of the index, which represents the excess flux in units of the bolometric flux:
| (16.40) |
where the excess (activity) flux at the stellar surface is obtained by the relation:
| (16.41) |
with the continuum flux at the stellar surface. We note that by expressing in [W m nm], has units [W m], giving the chromospheric contribution to the flux in the line integrated over a wavelength range around the core of the line.
The ESP-CS BP/RP analysis output includes the APs of the unperturbed photosphere plus the mass accretion rate and the filling factor of the accretion column (Table 16.21).
16.3.8.5 Method
16.3.8.5.1 The ESP-CS RVS analysis
Activity diagnostics are derived by comparing the observed Ca II IRT lines in the RVS spectrum with an inactive template spectrum. The excess equivalent width measured in the line cores is used as an indicator of chromospheric activity and, in strongly accreting pre-main-sequence stars, of mass accretion. The excess equivalent width, expressed in units of nm, is defined as
| (16.42) |
where and are the observed and template spectrum normalised to the continuum,
| (16.43) |
The observed spectrum is first renormalised with a third-order Chebyshev polynomial. The polynomial coefficients are determined by minimising the average residual between the observed and template spectra. The observed-to-template difference spectrum is then computed on a common wavelength grid in the stellar rest frame and integrated over a wavelength interval of around each Ca II IRT line.
The inactive template spectrum is obtained from the MARCS library by trilinear interpolation in (, , ), using the stellar parameters provided by ESP-CS, GSP-Phot, or GSP-Spec. MARCS spectra are computed under the assumptions of local thermodynamic equilibrium (LTE) and radiative equilibrium (RE). Uncertainties on are estimated by propagating the pixel-level flux uncertainties and do not include uncertainties associated with the inference of stellar parameters.
The excess equivalent width is converted into an activity flux through the continuum flux at the stellar surface. In the Ca II IRT wavelength region, the continuum flux in units of bolometric flux, , is approximated by a sixth-order polynomial in :
| (16.44) |
The polynomial coefficients are obtained from a least-squares fit to MARCS continuum fluxes in the Ca II IRT wavelength range. Note that since has units [W m nm] and has units [W m], the ratio has units [nm]. Dependence on and is assumed to be negligible over the parameter range of interest ( and ). The fit is shown in Figure 16.13 and the coefficients are reported in Table 16.22.
| Coefficient | value |
|---|---|
16.3.8.5.2 The ESP-CS BP/RP analysis
Astrophysical parameters of accreting pre-main-sequence stars (T Tauri stars) are inferred from BP/RP spectrophotometry using conditional variational auto-encoders (CVAEs) trained on synthetic spectra generated within the framework of the magnetospheric accretion model. In this scenario, the stellar magnetic field truncates the circumstellar disc and channels accreting material onto the stellar surface, where the kinetic energy of the infalling gas is dissipated in an accretion shock.
The accretion flow is modelled as a plane-parallel column. Assuming that the truncation radius lies close to the co-rotation radius, with , the infall velocity at the shock is approximated by
| (16.45) |
where and are the stellar mass and radius, respectively. Under the assumption that the kinetic energy of the accretion flow is fully dissipated at the shock, the accretion luminosity is
| (16.46) |
where is the mass accretion rate and .
The shock structure is divided into three regions: a pre-shock region, a post-shock cooling region, and a heated photosphere beneath the shock. The temperature of the shock is estimated using the strong-shock approximation,
| (16.47) |
while the properties of the post-shock and pre-shock regions are derived from the density and energy flux of the accretion column. The heated photosphere is represented by a photospheric spectrum with effective temperature (Equation 16.35).
The emergent spectrum is modelled as the sum of the emission from the quiet photosphere and the accretion column, according to Equation 16.33 and Equation 16.34. The spectra of the quiet and heated photospheres are taken from the MARCS library, while the emission from the pre-shock and post-shock regions is computed with the CLOUDY photoionisation code. The resulting synthetic spectra are processed through the Gaia BP/RP instrument model and used to train the CVAEs.
The trained CVAEs are subsequently used to infer the parameters of the unperturbed photosphere (, , and ), together with the mass accretion rate, accretion-column filling factor, and interstellar extinction parameter (Table 16.21).
16.3.8.6 Scope
ESP-CS analyses young late-type stars that may show chromospheric activity detected in the core of the Ca II IRT lines or modification of the BP/RP spectrum due to dissipation of the kinetic energy of a mass-accreting flow.
The accepted ranges of ESP-CS results are:
-
•
nm;
-
•
;
-
•
K;
-
•
;
-
•
;
-
•
;
-
•
with expressed in ;
-
•
.
16.3.8.7 Uses and limitations
The ESP-CS BP/RP analysis is designed to infer the properties of accreting T Tauri stars (classical T Tauri stars, CTTS). However, non-zero mass accretion rates are obtained for a significant number of sources that are not known CTTS. The origin of these false positives is not yet fully understood and may result from a combination of limitations in the training data, model degeneracies, and astrophysical contaminants.
A useful empirical discriminator is provided by the comparison between the effective temperatures inferred by ESP-CS and GSP-Phot. For known CTTS, the two estimates differ substantially, whereas they are consistent for non-accreting stars. This behaviour is expected because accretion hot spots produce excess ultraviolet emission that modifies the spectral energy distribution. Since GSP-Phot does not explicitly model accretion, it tends to infer higher effective temperatures for accreting stars. In contrast, ESP-CS accounts for the accretion-induced excess and estimates the effective temperature of the unperturbed photosphere.
This behaviour was exploited to estimate the probability that a source is a bona fide CTTS. The probability
| (16.48) |
was derived from two-dimensional kernel density estimates of known CTTS and non-CTTS populations in the plane. The CTTS sample was identified through cross-matching with the CASPAR catalogue (Betti et al. 2023).
A convenient approximation of this probability is provided by the four-component Gaussian mixture
| (16.49) |
with
| (16.50) | |||||
and
| (16.51) |
The coefficients , , , , , and are listed in Table 16.23.
16.3.8.7.1 Recommended use
When analysing sources that are not already known or suspected to be T Tauri stars, users are strongly encouraged to evaluate the CTTS probability before interpreting the inferred mass accretion rate or filling factor as evidence of ongoing accretion. The CTTS probability should be considered as a quality indicator for the applicability of the ESP-CS accretion model. See the Gaia DR4 software tools cosmos pages and the CU8 jupyter notebooks available from the Gaia DR4 tools cosmos webpage for a concrete example of how to compute the CTTS probability.
No unique probability threshold is recommended. The appropriate threshold depends on the scientific application and the desired balance between completeness and contamination. Users should therefore choose a threshold that is appropriate for their specific use case and assess its impact on the resulting sample.
| k | 1 | 2 | 3 | 4 |
|---|---|---|---|---|
| 15.50 | 2.95 | 1.15 | 0.69 | |
| 30.0624 | 31.3784 | 73.0370 | 46.7988 | |
| 56.6045 | 4.5170 | -13.4161 | -44.7717 | |
| 188.2533 | 75.4974 | 26.9650 | 137.6207 | |
| 0.429871 | 0.628969 | 0.222344 | 0.322158 | |
| 0.363931 | 0.244400 | 0.283076 | 0.850872 |
16.3.8.8 Changes with respect to DR3
-
•
Parametrization of accreting pre-main-sequence stars (T Tauri stars) is introduced for the first time in DR4, with the new products mass accretion rate (massaccrrate_espcs) and mass accretion filling factor (accrfillfactor_espcs) together with the corresponding APs of the unperturbed photosphere.
-
•
Activity diagnostics are based on the excess equivalent width, , measured on the observed–template difference spectrum.
-
•
In addition to the combined activity measurements, is reported separately for each of the three Ca II IRT lines.
-
•
Activity measurements are provided for three alternative sets of input stellar parameters: ESP-CS, GSP-Phot, and GSP-Spec.
-
•
The activity-flux index , which measures the excess line flux in units of the stellar bolometric flux, is reported for each Ca II IRT line and each input parameter set, as well as as a combined measurement.