skip to main content

gaia data release 4 documentation

16.3 Apsis modules

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 (Teff), surface gravity (log⁡g), and metallicity ([M/H]) of the unperturbed photosphere, together with the mass accretion rate (ℳ˙), the accretion-column filling factor (f), and the interstellar extinction parameter (A0) (Lanzafame et al. 2026).

16.3.8.2 Training data and models

16.3.8.2.1 Models for the activity indices

Activity indices based on the Ca II IRT lines observed by the RVS instrument are derived by comparing the observed spectrum with a purely photospheric MARCS synthetic spectrum (Korn et al. 2026), following the approach described in Lanzafame et al. (2023).

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

ℱλ=(1−f)⁢ℱquiet,λ+f⁢ℱacc,λ, (16.33)

where f is the fractional area of the stellar photosphere covered by the accretion column (filling factor), ℱquiet,λ is the flux emitted by the unperturbed photosphere, represented by a MARCS spectrum at given (Teff, log⁡g, [M/H]), and

ℱacc,λ=ℱhp,λ+ℱpost,λ+ℱpre,λ, (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

Thp=(3⁢ℱacc4⁢σ)1/4. (16.35)

where ℱacc 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.

Table 16.18: Parameters of the ESP-CS model accretion spectrum.
Parameter units description
ℳ [solar mass] stellar mass
(ℳ˙/f) [solar mass / yr] mass accretion flux
f dimensionless accretion column filling factor
Teff [K] effective temperature of the unperturbed photosphere
log⁡g log[cm s−2] surface gravity acceleration
[M/H] [dex] metallicity
A0 [mag] interstellar absorption
Table 16.19: Nominal parameter grid of the ESP-CS accretion model training data.
Parameter nominal grid values
ℳ 0.25, 0.5, 0.8, 1.0, 1.2, 1.3
(ℳ˙/f) 5e-8, 1e-7, 5e-7, 1e-6, 2.5e-6, 5e-6, 1e-5, 2.5e-5, 5e-5, 1e-4
f 0.003, 0.01, 0.03, 0.05, 0.1, 0.3
Teff 3000, 3200, 3400, 3600, 3800, 4000, 4250, 4500, 4750, 5000, 5500, 6000, 6500, 7000
log⁡g 2.5, 3.0, 3.5, 4.0, 4.5, 5.0
[M/H] -0.5, 0.0, 0.5, 1.0
A0 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 A0.

In the ESP-CS BP/RP model, the accretion spectrum depends on the stellar mass ℳ, radius R, mass accretion rate ℳ˙, and filling factor f. The spectra of the quiet and heated photospheres are taken from the MARCS library at (Teff, log⁡g, [M/H]) and (Thp, log⁡g, [M/H]), 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 ℳ, R, and log⁡g are related through

g=G⁢ℳR2, (16.36)

R is derived from ℳ and log⁡g. Furthermore, because

ℳ˙f=8⁢π⁢R2vs2⁢ℱacc, (16.37)

where vs 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 (ℳ˙/f) rather than ℳ˙ and f 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 θ={ℳ,(ℳ˙/f),f,Teff,log⁡g,[M/H],A0} 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 (Teff, log⁡g, [M/H]). 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).

Table 16.20: Input data used by the ESP-CS RVS analysis. See Table 16.1 for the description of the parameters.
all_source_astrometry ap_emission ap_xp ap_rvs parameter
parallax d
teff_espcs teff_gspphot teff_gspspec Teff
logg_espcs logg_gspphot logg_gspspec log⁡g
feh_espcs mh_gspphot mh_gspspec [M/H]

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

Table 16.21: Output of the ESP-CS module. See Table 16.1 for the description of the parameters.
parameter ap_emission
RVS Δ⁢EWIRT activityindex_t1_espcs
activityindex_t2_espcs
activityindex_t3_espcs
activityindex_t1_phot
activityindex_t2_phot
activityindex_t3_phot
activityindex_t1_spec
activityindex_t2_spec
activityindex_t3_spec
RIRT′
activityflux_t1_espcs
activityflux_t2_espcs
activityflux_t3_espcs
activityflux_t1_phot
activityflux_t2_phot
activityflux_t3_phot
activityflux_t1_spec
activityflux_t2_spec
activityflux_t3_spec
activityindex_input
activityindex
activityflux
BP/RP Teff teff_espcs
log⁡g logg_espcs
[M/H] feh_espcs
log⁡ℳ˙ massaccrrate_espcs
f accrfillfactor_espcs
A0 azero_espcs

The RVS ESP-CS output includes the excess equivalent width Δ⁢EWIRT 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 Δ⁢EWIRT 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 Δ⁢EWIRT is mostly sensitive to Teff, 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 RIRT′ index, which represents the excess flux in units of the bolometric flux:

RIRT′≡ℱ′σ⁢Teff4 (16.40)

where the excess (activity) flux ℱ′ at the stellar surface is obtained by the relation:

ℱ′=ℱc⁢Δ⁢EW (16.41)

with ℱc the continuum flux at the stellar surface. We note that by expressing ℱc in [W m−2 nm−1], ℱ′ has units [W m−2], 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

Δ⁢EWIRT≡∫−Δ⁢λ+Δ⁢λ(rλobs−rλtempl)⁢𝑑λ, (16.42)

where rλobs and rλtempl are the observed and template spectrum normalised to the continuum,

rλ≡fλfλc. (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 ±0.15,nm around each Ca II IRT line.

The inactive template spectrum is obtained from the MARCS library by trilinear interpolation in (Teff, log⁡g, [M/H]), 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 Δ⁢EW 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, ℱc/(σ⁢Teff4), is approximated by a sixth-order polynomial in Teff:

ℱc⁢(Teff)σ⁢Teff4=∑i=06ci⁢Teffi (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 ℱc has units [W m−2 nm−1] and σ⁢𝒯eff4 has units [W m−2], the ratio has units [nm−1]. Dependence on log⁡g and [M/H] is assumed to be negligible over the parameter range of interest (log⁡g ∈[3.0,5.5] and [M/H] ∈[−1,1]). The fit is shown in Figure 16.13 and the coefficients ci are reported in Table 16.22.

Refer to caption
Figure 16.13: Least-squares fit to the MARCS continuum flux in the Ca II IRT wavelength region (Equation 16.44).
Table 16.22: Polynomial coefficients of the least-squares fit to the MARCS continuum flux in the Ca II IRT wavelength region (Equation 16.44).
Coefficient value
c0 −6.33985051×10−2
c1 7.99950629×10−5
c2 −4.08456784×10−8
c3 1.09377919×10−11
c4 −1.61956155×10−15
c5 1.25736200×10−19
c6 −4.00233303×10−24

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 RM lies close to the co-rotation radius, with RM≈5.5⁢R, the infall velocity at the shock is approximated by

vs≈vff=(2⁢G⁢ℳR)1/2⁢(1−RRM)1/2. (16.45)

where ℳ and R 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

Lacc=12⁢ℳ˙⁢vs2=G⁢ℳ˙⁢ℳR⁢(1−RRM)=ζ⁢G⁢ℳ˙⁢ℳR (16.46)

where ℳ˙ is the mass accretion rate and ζ≡(1−R/RM).

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,

Ts=316⁢μ⁢mHk⁢vs2. (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 Thp (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 (Teff, log⁡g, and [M/H]), 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:

  • •

    Δ⁢EWIRT∈[−0.5,1.0] nm;

  • •

    RIRT′∈[−10−8,10−4];

  • •

    Teff∈[3000,7000] K;

  • •

    log⁡g∈[2,5];

  • •

    [Fe/H] ∈[−0.5,1.0];

  • •

    A0 ∈[0,10];

  • •

    log⁡ℳ˙∈[−11.3,−4.5] with ℳ˙ expressed in ℳ⊙⁢yr−1;

  • •

    f∈[0,1].

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

p=p⁢(Teff⁢ESP⁢-⁢CS,Teff⁢GSP⁢-⁢Phot) (16.48)

was derived from two-dimensional kernel density estimates of known CTTS and non-CTTS populations in the (Teff⁢ESP⁢-⁢CS,Teff⁢GSP⁢-⁢Phot) 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

p⁢(x,y)=∑k=14Ak⁢exp⁡[Qk⁢(x,y)], (16.49)

with

x = (Teff⁢ESP⁢-⁢CS−2600)/2400, (16.50)
y = (Teff⁢GSP⁢-⁢Phot−2000)/12400,

and

Qk⁢(x,y)=ak⁢(x−xk)2+bk⁢(x−xk)⁢(y−yk)+ck⁢(y−yk)2. (16.51)

The coefficients Ak, ak, bk, ck, xk, and yk 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.

Table 16.23: Coefficients of the 4-component Gaussian mixture approximation to the CTTS probability (Equation 16.49).
k 1 2 3 4
Ak 15.50 2.95 1.15 0.69
ak 30.0624 31.3784 73.0370 46.7988
bk 56.6045 4.5170 -13.4161 -44.7717
ck 188.2533 75.4974 26.9650 137.6207
xk 0.429871 0.628969 0.222344 0.322158
yk 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, Δ⁢EWIRT, measured on the observed–template difference spectrum.

  • •

    In addition to the combined activity measurements, Δ⁢EWIRT 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 RIRT′, 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.