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.
| 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.
| Class name | Variable type | Column | Best class |
|---|---|---|---|
| ACEP | Anomalous Cepheid | prob_acep | |
| ACV | 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 |
| BEGCAS | 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 | |
| DSCTSXPHE | Scuti or SX Phoenicis | prob_dsct_sxphe | Y |
| EAEB | 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.
features based on colour (34):
-
(a)
the first 10 coefficients of the mean BP and RP spectra, normalised to the median band magnitude by dividing by ;
-
(b)
broadband colours from all pairs of , , and , using their median values (median_mag_g_fov, median_mag_bp, and median_mag_rp respectively);
-
(c)
Synthetic colours from paired neighbouring SDSS (ugriz; 4 colours), JKC (UBVRI; 4 colours), and IPHAS (H ri; 2 colours) bands;
-
(d)
Wesenheit calculated as: median_mag_g_fov 2 (median_mag_bp median_mag_rp);
-
(a)
-
2.
whether the source is a primary or secondary source (is_primary);
-
3.
amplitudes (21):
-
(a)
log amplitudes in , , , , at middle 90%, 80%, 50% (the interquartile range, available in iqr_mag_g_fov, iqr_mag_bp, and iqr_mag_rp), and 20%;
-
(b)
amplitude, defined as half the range in (range_mag_g_fov);
-
(a)
-
4.
environment features (8):
-
(a)
number density computed within 1, 3, 10, 30, and 100radii (source_density_r100_arcsec));
-
(b)
median broadband colours (median_bp_minus_g_fov_r100_arcsec), (median_bp_minus_rp_r100_arcsec), and (median_g_fov_minus_rp_r100_arcsec) computed within a 100radius;
-
(a)
-
5.
source astrometry (14):
-
(a)
the parallax value (parallax), its error (parallax_error), and their ratio (parallax_over_error) (not corrected for parallax zero-point);
- (b)
-
(c)
Re-normalised Unit Weight Error (ruwe);
-
(d)
image parameter determination goodness-of-fit harmonic amplitude (ipd_gof_harmonic_amplitude);
-
(e)
absolute and Wesenheit magnitudes and their (possibly null) bounds (considering parallax uncertainties);
-
(a)
-
6.
period search results (28):
-
(a)
frequency, GLS amplitude (normalised between 0 and 1), false alarm probability (FAP), signal detection efficiency (SDE) in the full frequency range of period search and 3 sub ranges (, , );
-
(b)
normalised GLS amplitude, hybrid amplitude, and frequency of top peak of hybrid periodogram;
-
(c)
normalised GLS amplitude in and for both the top GLS and hybrid frequencies;
-
(d)
LK statistic of time series folded to dominant frequency from GLS;
-
(e)
LK statistic in , , of the hybrid peak;
-
(f)
if LK statistic of time series folded to at half frequency better, ratio between that and original;
-
(a)
-
7.
results of Fourier modelling in band with three harmonics at the dominant GLS frequency (model_frequency) and half its value (model_half_frequency) (22):
-
(a)
amplitude (model_a1_g_fov and model_half_a1_g_fov)
-
(b)
amplitude ratios ( and ; e.g. model_r21_g_fov) and phase offsets ( and ; e.g. model_phi21_g_fov) of the second and third harmonics;
-
(c)
relative uncertainties of amplitudes , , and (e.g. model_a1_error_g_fov / model_a1_g_fov)
-
(d)
amplitudes , , and divided by the range of time series (range_mag_g_fov);
-
(a)
-
8.
correlations (4):
-
(a)
Spearman correlations between and , and , and and the scan angle;
-
(b)
Pearson correlation coefficient between and (pearson_mag_bp_rp);
-
(a)
-
9.
the ratio of the standard deviations between the and bands (std_dev_mag_bp/std_dev_mag_rp);
-
10.
statistics based on the distribution of (25):
-
(a)
the Abbe value (abbe_mag_g_fov);
-
(b)
the unweighted 95th percentile of magnitude changes per time interval between successive transits;
-
(c)
the sample-size unbiased unweighted variance and kurtosis (central moments), de-noised assuming Gaussian uncertainties (Rimoldini 2014);
-
(d)
the median (median_mag_g_fov);
-
(e)
the () median absolute deviation;
-
(f)
the qso_variability and non_qso_variability parameters from Butler and Bloom (2011), computed from FoV-transit magnitudes in the band, after adaptations to the Gaia data;
-
(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);
-
(h)
of the square root of the sample-size unbiased unweighted variance (std_dev_mag_g_fov);
-
(i)
the sample-size unbiased unweighted skewness moment, standardized by the measurement variance (skewness_mag_g_fov);
-
(j)
the single-band Stetson variability index (Stetson 1996), pairing observations within 0.1 days (stetson_mag_g_fov);
-
(k)
outlier median: the most outlying measurement with respect to the median and to its error , that is , as well as the trimmed version considering values between 5th and 95th percentiles;
-
(l)
percentile-based skewness ;
-
(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.
-
(a)