skip to main content

gaia data release 4 documentation

15.4 General classification

15.4.3 Calibration models

The supervised classification employed XGBoost (Chen and Guestrin 2016) via the H2O machine-learning platform (H2O.ai 2020). In Gaia DR4, models were trained to identify each of the 48 different classes, subclasses, and class groups denoted by the labels in Table 15.4. Class names correspond to the short ones used in Gavras et al. (2023), with the members of merged classes separated by a vertical bar (‘∣’); a subset of these names are used in the classifier_best_class_name field. Simpler names are chosen when available for established class groupings. Each class has a column (prefixed by prob_) corresponding to the score assigned by the classifier for that class. If the classifier_best_class_name is filled, classifier_best_class_score will also be filled with the score corresponding to that class.

Table 15.3: Classifiers used within the supervised classification.
Classifier name Classifier type Training sources only
Ovr one-versus-rest
OvrCv one-versus-rest cross-validation Y
Multiclass preliminary multiclass
MulticlassCv preliminary multiclass cross-validation Y

Notably, the OTHER class corresponds to ‘anonymous’ sources, a semi-random sampling of sources classified as VARIABLE by the GVD module. This class is designed to capture spurious variability and poorly constrained sources and is discussed in greater detail in Chornay et al. (2026).

In contrast with Gaia DR3, results from multiple classifiers are published for some sources, but there is no adjustment or merging of the classifier scores. The classifier that produced the results in a given row is denoted by the classifier_name field. There are four nominal classifiers (Table 15.3), but it is typically only necessary for the user to choose the results from one classifier per source.

Table 15.4: Variability classes used within the supervised classification.
Class name Variable type Column Best class
ACEP Anomalous Cepheid prob_acep
ACV α2 Canum Venaticorum prob_acv Y
ACYG α Cygni prob_acyg Y
AGN active galactic nucleus prob_agn Y
ARRD anomalous double-mode RR Lyrae prob_arrd
BCEP β Cephei prob_bcep Y
BE∣GCAS B-type emission line or γ Cassiopeiae prob_be_gcas Y
BLAP blue large-amplitude pulsator prob_blap Y
BLAZAR blazar prob_blazar Y
CEP Cepheid prob_cep Y
CP chemically peculiar prob_cp Y
CV cataclysmic variable prob_cv Y
DCEP δ (classical) Cepheid prob_dcep
DSCT∣SXPHE δ Scuti or SX Phoenicis prob_dsct_sxphe Y
EA∣EB Algol or β Lyrae binary prob_ea_eb
ECL eclipsing binary prob_ecl Y
ELL ellipsoidal prob_ell Y
EP exoplanetary transit prob_ep Y
EW W Ursae Majoris binary prob_ew
GALAXY galaxy prob_galaxy Y
GDOR γ Doradus prob_gdor Y
HB heartbeat star prob_hb Y
L slow or irregular variability prob_l Y
LPV long-period variable prob_lpv Y
M Mira prob_m
MICROLENSING microlensing event prob_microlensing Y
N nova prob_n Y
OTHER unknown, possible spurious prob_other
RCB R Coronae Borealis prob_rcb Y
RR RR Lyrae prob_rr Y
RRAB fundamental-mode RR Lyrae prob_rrab
RRC first-overtone RR Lyrae prob_rrc
RRD double-mode RR Lyrae prob_rrd
RS RS Canum Venaticorum prob_rs Y
RV RV Tauri prob_rv
S short timescale prob_s Y
SDB subdwarf B star prob_sdb Y
SDOR S Doradus prob_sdor Y
SN supernova prob_sn Y
SOLARLIKE solar-like variability prob_solarlike Y
SPB slowly pulsating B star prob_spb Y
SXARI SX Arietis prob_sxari Y
SYST symbiotic variable prob_syst Y
T2CEP type II Cepheid prob_t2cep
WD white dwarf prob_wd Y
WR Wolf-Rayet star prob_wr Y
YSO young stellar object prob_yso Y
ZZLEP ZZ Leporis star prob_zzlep Y

The training set consisted of one million sources. Individual models were trained using different subsets of the full training set. Sources that were part of the training set for a given classifier have the used_in_training flag set to true for rows associated with that classifier.

The flexibility and complexity of machine learning models such as XGBoost allow them to fit their training data well, but can also lead to biases when evaluated on that same training data, even when methods such as early stopping are used to ensure good generalisation performance. This means that the scores for training objects tend to be unrealistic and not comparable with those for previously unseen sources. In the case of Gaia, the training instances are genuine sources published in Gaia DR4; for smaller classes they can represent a significant fraction of known examples. For these sources, the scores are biased. Biases can go both ways: inflating the scores of known objects, but also causing objects to be missed or mislabelled if they were included in the training set with an incorrect label.

To avoid these biases when estimating the performance of a machine learning model, cross-validation is often used. This involves training the model on a subset of the labelled data and using the remainder of that data, which the model has not seen during training, for evaluation. Normally these cross-validation models are used only for such estimates, and discarded in favour of a model trained on all of the data for real-world use. In Gaia DR4, the results were kept for training sources, and are published for those sources only as a separate classifier with the -Cv suffix. This provides an alternative, unbiased score for these sources. We note that both scores were used in the best class selection, and that the SOS modules had the option to select candidates based on either or both of these scores.

A binary (one-versus-rest) classifier was trained for each published class. The scores for these models are grouped into a single row per source, with classifier_name set to Ovr (in fact, containing the results from 48 independent classification models). The cross-validation results for the training sources are additionally included as the OvrCv classifier in a second row. Users desiring a single score per source can choose either the Ovr classifier for all sources, or, for unbiased results, the Ovr classifier only for sources with used_in_training flag set to false, and the OvrCv classifier for the others. Training sources with a best class have classifier_best_class_name and classifier_best_class_score set in both rows, but the scores can be different (if the source was part of the training subset actually used for that particular class).

For the penultimate iteration of the processing, a single multiclass classifier was trained on a preliminary version of the training set, in order to provide inputs to the SOS modules. To avoid surprises in the module inputs in the final iteration, this classifier was kept and run in addition to the final one-versus-rest classifiers. The scores from this classifier are available as the Multiclass classifier, alongside its cross-validation results as the MulticlassCv classifier, only for sources that were input to the downstream SOS modules from these classifiers, and only for the six classes relevant to those modules that have corresponding score columns (CEP, ELL, EP, LPV, MICROLENSING, RR). They are published to maintain traceability; it is not recommended to use them, in general, outside of that application.

15.4.3.1 Features

The classifiers used large selection of features (sometimes also referred to as attributes), discussed in Chornay et al. (2026), that characterized the time series and general source properties. A selection of these features, related to the environment, period search, and modelling, are published in the vari_classifier_feature table for all sources processed by classification.

Additional processing was done on the pre-computed period search results (Section 15.2.3.4). The generalised Lomb-Scargle (GLS; sometimes also referred to as generalised least squares) periodogram was divided into logarithmically spaced frequency bins, and several peaks extracted from each bin. Within a narrow frequency range around each of those peaks, the hybrid periodogram power of Saha and Vivas (2017) was computed using a finer frequency sampling. The hybrid power is the GLS power divided by the Lafler-Kinman statistic (LK; Lafler and Kinman 1965); it is better suited for certain less sinusoidal light curve shapes such as those of eclipsing binaries, but, like other string length methods, is more sensitive to small changes in frequency. This refinement approach was used to approximate the hybrid periodogram, from which a top peak was extracted.

It should be noted that, as part of this procedure, the GLS periodogram power was recomputed on the CPU. This sometimes leads to numerical differences between the period search results reported in the vari_classifier_feature table and those listed in the spurious_signal table.

The entire feature set consisted of:

  1. 1.

    features based on colour (34):

    1. (a)

      the first 10 coefficients of the mean BP and RP spectra, normalised to the median G band magnitude by dividing by 10((15−median_mag_g_fov)/2.5);

    2. (b)

      broadband colours from all pairs of G, GBP, and GRP, using their median values (median_mag_g_fov, median_mag_bp, and median_mag_rp respectively);

    3. (c)

      Synthetic colours from paired neighbouring SDSS (ugriz; 4 colours), JKC (UBVRI; 4 colours), and IPHAS (Hα ri; 2 colours) bands;

    4. (d)

      Wesenheit G calculated as: median_mag_g_fov − 2 (median_mag_bp − median_mag_rp);

  2. 2.

    whether the source is a primary or secondary source (is_primary);

  3. 3.

    amplitudes (21):

    1. (a)

      log amplitudes in G, GBP, GRP, G−GRP, GBP−GRP at middle 90%, 80%, 50% (the interquartile range, available in iqr_mag_g_fov, iqr_mag_bp, and iqr_mag_rp), and 20%;

    2. (b)

      amplitude, defined as half the range in G (range_mag_g_fov);

  4. 4.

    environment features (8):

    1. (a)

      number density computed within 1′′, 3′′, 10′′, 30′′, and 100′′radii (source_density_r100_arcsec));

    2. (b)

      median broadband colours GBP−G (median_bp_minus_g_fov_r100_arcsec), GBP−GRP (median_bp_minus_rp_r100_arcsec), and G−GRP (median_g_fov_minus_rp_r100_arcsec) computed within a 100′′radius;

  5. 5.

    source astrometry (14):

    1. (a)

      the parallax value (parallax), its error (parallax_error), and their ratio (parallax_over_error) (not corrected for parallax zero-point);

    2. (b)

      total proper motion (pm), its significance (𝚙𝚖/pmra_error2+pmdec_error2), and proper motion in declination (pmdec);

    3. (c)

      Re-normalised Unit Weight Error (ruwe);

    4. (d)

      image parameter determination goodness-of-fit harmonic amplitude (ipd_gof_harmonic_amplitude);

    5. (e)

      absolute G and Wesenheit G magnitudes and their (possibly null) ±2⁢σ bounds (considering parallax uncertainties);

  6. 6.

    period search results (28):

    1. (a)

      log frequency, GLS amplitude (normalised between 0 and 1), log false alarm probability (FAP), signal detection efficiency (SDE) in the full frequency range of period search 0.0004−25⁢𝚍−1 and 3 sub ranges (0.0004−0.1⁢𝚍−1, 0.1−1⁢𝚍−1, 1−25⁢𝚍−1);

    2. (b)

      normalised GLS amplitude, hybrid amplitude, and log frequency of top peak of hybrid periodogram;

    3. (c)

      normalised GLS amplitude in GBP and GRP for both the top GLS and hybrid frequencies;

    4. (d)

      LK statistic of G time series folded to dominant frequency from GLS;

    5. (e)

      LK statistic in G, GBP, GRP of the hybrid peak;

    6. (f)

      if LK statistic of G time series folded to at half frequency better, ratio between that and original;

  7. 7.

    results of Fourier modelling in G band with three harmonics at the dominant GLS frequency (model_frequency) and half its value (model_half_frequency) (22):

    1. (a)

      amplitude A1 (model_a1_g_fov and model_half_a1_g_fov)

    2. (b)

      amplitude ratios (R21 and R31; e.g. model_r21_g_fov) and phase offsets (Φ21 and Φ31; e.g. model_phi21_g_fov) of the second and third harmonics;

    3. (c)

      relative uncertainties of amplitudes A1, A2, and A3 (e.g. model_a1_error_g_fov / model_a1_g_fov)

    4. (d)

      amplitudes A1, A2, and A3 divided by the range of time series (range_mag_g_fov);

  8. 8.

    correlations (4):

    1. (a)

      Spearman correlations between G and GBP−GRP, G and G−GRP, and G and the scan angle;

    2. (b)

      Pearson correlation coefficient between GBP and GRP (pearson_mag_bp_rp);

  9. 9.

    the ratio of the standard deviations between the GBP and GRP bands (std_dev_mag_bp/std_dev_mag_rp);

  10. 10.

    statistics based on the distribution of G (25):

    1. (a)

      the Abbe value (abbe_mag_g_fov);

    2. (b)

      the unweighted 95th percentile of magnitude changes per time interval between successive transits;

    3. (c)

      the sample-size unbiased unweighted variance and kurtosis (central moments), de-noised assuming Gaussian uncertainties (Rimoldini 2014);

    4. (d)

      the median (median_mag_g_fov);

    5. (e)

      the (log) median absolute deviation;

    6. (f)

      the qso_variability and non_qso_variability parameters from Butler and Bloom (2011), computed from FoV-transit magnitudes in the G band, after adaptations to the Gaia data;

    7. (g)

      the ratio between the sample-size biased unweighted standard deviation and the root-mean-square of the uncertainties (std_dev_over_rms_err_mag_g_fov);

    8. (h)

      log of the square root of the sample-size unbiased unweighted variance (std_dev_mag_g_fov);

    9. (i)

      the sample-size unbiased unweighted skewness moment, standardized by the measurement variance (skewness_mag_g_fov);

    10. (j)

      the single-band Stetson variability index (Stetson 1996), pairing observations within 0.1 days (stetson_mag_g_fov);

    11. (k)

      outlier median: the most outlying measurement yi with respect to the median and to its error σy⁢i, that is max⁡(|yi−m⁢e⁢d⁢(y)|/σy⁢i), as well as the trimmed version considering values between 5th and 95th percentiles;

    12. (l)

      percentile-based skewness (P95+P5−2⁢P50)/(P95+P5);

    13. (m)

      features from Richards et al. (2011) (note that a few of these use fluxes): beyond1std,
      flux_percentile_ratio_mid{ 20,35,50,65,80} , median_buffer_range_percentage,
      pair_slope_trend, percent_amplitude, percent_difference_flux_percentile.