15.2.3 Processing steps
15.2.3.1 Overview
An overview of the variability processing is presented in Figure 15.1. Our application of time-series operators and a general selection of 5 FoV transits in the band selected 2.0 billion sources, which were processed through the different parts of the variability pipeline, as detailed in the following sections.
15.2.3.2 Initial time-series pre-processing
Definition of observation time
Observation times were expressed in units of Barycentric JD (in TCB) days, computed as follows:
-
1.
The observation time was converted from On-board Mission Time (OBMT) into Julian date in TCB (Temps Coordonnée Barycentrique).
-
2.
A correction was applied for the light-travel time to the Solar System barycentre, resulting in Barycentric Julian Date (BJD).
Conversion from flux to magnitude
Measurement filtering
The variability processing included several operators, which were applied to the time-series photometry. Typical time-series operators performed flux-to-magnitude conversion, outlier removal, and error cleaning on the input time series, to create derived (transformed and/or filtered) time series suitable for processing by subsequent algorithms. These time-series operators were chained in a hierarchy of derived time series, which were used as required by the scientific analyses, while ensuring that provenance was preserved.
The following list of operators, for which the hierarchy is illustrated in Figure 15.2, was applied sequentially to the input photometric time series in the (per-CCD and FoV), , and bands, as specified in the following:
-
1.
RemoveOneCCDFromRowAcOperator: it is designed to remove one -band CCD measurement (defined by its CCD number, between zero and nine, zero standing for the Sky Mapper and one to nine for the Astrometric Field CCDs) from each transit of per-CCD data for which the measurements correspond to a certain CCD row and the across-scan (AC) coordinate is outside a certain range (minimum AC=3, maximum AC=1990). It was motivated by the fact that the photometric calibration team reported problematic flux measurements for the second Astrometric Field (AF) CCD of row 5, when AC is greater than 1200. Hence, in Gaia DR4 this operator was tailored to remove the AF2 points for transits with CCD row=5 and AC coordinate .
-
2.
RemoveNaNNegativeAndZeroValuesOperator: it removes photometric transits that contain NaN, negative, or zero flux values, for measurements in per-CCD, , and .
-
3.
RemoveDuplicateObservationsOperator: It removes pairs of transits (in per-CCD and FoV, , and ) that are too close in time (within 105 min for FoV measurements) to be observations of the same source. Such transits can occur in bright sources, for which multiple artefact detections are assigned (these are known as ‘far double detections’). Since we did not have access to the flags identifying the double detection transits, this ad-hoc method was applied, by which close-in-time pairs of transits were removed.
-
4.
FlagBitmaskFilterDr4Operator: it filters or transits if any of their CCDs are flagged with a hot column or numerical saturation.
-
5.
RemoveTransitCcdOutliersMadOperator: it removes outliers in -band per-CCD time series as described in Eyer et al. (2026).
-
6.
PhotometricCcdToFovMeanOperator: the mean FoV transit flux is recomputed after possible outlier removals by RemoveTransitCcdOutliersMadOperator. The computation of mean flux from the remaining per-CCD measurements followed the same recipe used by Evans et al. (2026). These recomputed FoV transits are not published in the Gaia archive.
-
7.
GaiaFluxToMagOperator: flux measurements in per-CCD, FoV, , and are converted into magnitudes by using zero-point magnitudes in the Vega system (Section 5.4.2.2).
-
8.
MultibandOutlierRemovalOperator: this operator (introduced in Gaia DR3) takes the advantage that , , and data are quasi-simultaneous and share the same transit_id. It removes data by identifying outliers in the different bands and takes into account the other bands in deciding whether the transit is a ‘real’ outlier to remove from a specific band, or not. The procedure followed by the operator is as follows:
-
(a)
In each band, a transit is flagged as a candidate outlier if the ratio
is above a threshold of three, where mag is the transit magnitude in a band, median(mag) is the median magnitude of all transits, and IQR(mag) the interquartile range of the input time series.
-
(b)
A sum is computed where each band with a flagged transit (candidate outlier) is counted as a unit with a positive or negative sign for an outlier that is brighter or fainter than the median magnitude, respectively (thus, the sum can range from to ). If the absolute value of the sum is and the outlier in the band has the same sign as the outlier in another band, candidates outliers are considered as non-outliers (thus outliers in and but not in are considered as real outliers). If there is a single outlier candidate in one band but without measurements in the other bands, the point is kept as non-outlier.
-
(c)
If only one band has a candidate outlier and measurements exist (in the same transit) in the other bands, the threshold for candidate outlier is reduced to one and the same procedure is followed as described in the previous item. Additionally, if there are outlier candidates and one of them has a different sign, only the outlier with a different sign from the one in the band is flagged as real outlier.
-
(d)
For the remaining candidate outliers, the iqrMedianMag in and/or are divided by the one in . If the ratio is above five, the outlier in and/or is considered as a real outlier. The same is repeated employing the lower iqrMedianMag threshold of one.
-
(e)
Finally, the following ratio
is used with a threshold of 20 for and 10 for and to flag transits with outlying errors. These conditions were applied to each band independently of the other bands and they were not used if the transit was initially a candidate outlier (in magnitude) that was eventually ruled as non-outlier.
This operator decreased the number of outliers considerably, while properly keeping the ones due to real astrophysical properties (e.g., flares, eclipses), but spurious outliers still remained (and can be particularly significant in and ). Moreover, this operator is not suitable to detect ‘impostor’ transits from nearby sources (mistakenly assigned to the incorrect source), as their bright or faint deviations are typically consistent in all bands.
-
(a)
-
9.
TimeIntervalFilter: it removed measurements in each individual band for OBMT in specific time ranges. Problematic observation times were identified based on a sample of one million sources spread over all the sky uniformly, from which we identified suspicious time ranges (due to known issues of the Gaia spacecraft or correlations of iqrMedianMag with the Gaia scanning law). The time ranges were independently determined for the , , and bands.
-
10.
ExtremeValueCleaning: it removed measurements above specific magnitude limits, namely , , and mag.
-
11.
ExtremeErrorCleaningMagnitudeDependent: It removed individual transits above and below magnitude-dependent thresholds, which were determined as follows. From a sample of the photometric catalogue with at least 10 FoV transits in the band and for each band (limited to 6000 sources per 0.05 mag bin, for the golden, silver, and bronze data sets), we studied the quantile distribution of the transit magnitude errors and decided to use the 0.03 % and 99.9 % quantiles for the lower and upper limits, respectively, for data in the band. For , we used the 0.01 % and 99.95 % quantiles for the lower and upper limits, respectively, while we used 0.01 % and 99.9 % for . The operator was not applied to per-CCD photometry.
-
12.
ErrorRenormalizationOperator: the uncertainties of time-series measurements in (per-CCD and FoV), , and bands were renormalised as described in Evans et al. (2026). Such renormalised uncertainties are not published in the Gaia archive.
-
13.
RemoveOutliersFaintAndBrightOperator: applied to photometric time-series in (per-CCD and FoV), , and , this operator was the input for the main processing steps, as well as for specific work packages (e.g., eclipsing binaries, planetary transits, RR Lyrae stars, and Cepheids). It removed transits as follows (with configuration parameters described, where relevant, in the respective data product sections):
-
(a)
A measurement with an excessively large error (intrinsically or compared to some number of times the IQR of the distribution of uncertainties) is deemed an outlier and is removed.
-
(b)
Outliers at the extremes of the magnitude distribution of a time series are identified when their deviations from the median magnitude exceed a certain number of times the IQR (with different thresholds possible at the bright and faint ends). Such measurements are removed from the time series, unless they have similar outlying measurements in time or projected in magnitude.
-
(a)
-
14.
GaiaMagToFluxOperator: after magnitude-based operators, time-series magnitudes in the FoV , , and bands are converted back to flux using Vega-system zero points (Section 5.4.2.2) for processing by flux-based algorithms.
The photometric time series derived from the RVS spectra were filtered by the RvsMadOutlierRemovalToPhotometricOperator, which removed NaN values using a similar approach to that of RemoveOutliersFaintAndBrightOperator but using the median absolute deviation (MAD) instead of the IQR, followed by RemoveDuplicateObservationsOperator, as described above.
Other operators were applied to data of other types:
-
1.
Radial velocity time series: the same two operators used for the photometric time series were applied.
-
2.
RP time series spectra (used by SOS Long Period Variables): a simple operator (BpRpSpectraCut) cut measurements at both ends of the spectra by 7 array indices.
-
3.
Astrometric time series were used in the processing of Microlensing candidates, as well as for the astrometric periodogram and models published in the spurious_signal table, their specific configurations are described in Section 15.11.2 and Section 15.19.2, respectively.
Published output
The Gaia DR4 photometric, spectroscopic, and radial velocity time series are available as datalink products. The variability flags can be accessed in the vari_epoch_flags table.
15.2.3.3 Statistical parameter computation
Input
Clean photometric and radial velocity time series (Section 15.2.3.2) with at least one FoV transit.
Method
Following the pre-processing and basic time-series cleaning described in Section 15.2.3.2, the first step in the scientific processing chain is the computation of a number of descriptive, inferential, and correlation statistics for all time series. These parameters provide a first general overview of the data and their distributions and are used to determine whether variability is present in a time series of Gaia observations.
Descriptive statistics computed on the temporal dimension include the time duration of the time series and the mean of their observation times.
Parameters characterizing the distribution of time-series measurements and their uncertainties include the mean, median, standard deviation, skewness, and kurtosis. These five metrics are provided for both magnitude and flux, whereas the remaining metrics are calculated from magnitudes only. The latter include the minimum, maximum, (trimmed) range, point-to-point scatter (Abbe or von Neumann parameter; Abbe 1863; von Neumann et al. 1941; von Neumann 1941, 1942), one-band Stetson index (Stetson 1996), interquartile range, median absolute deviation from the median, a measure related to the signal-to-noise ratio, and the maximum ratio of the absolute deviation of a measurement from the median to its uncertainty. A subset of these metrics is also used to characterize radial-velocity measurements. Where applicable, sample-size-unbiased and unweighted estimators are published.
The Pearson and Spearman correlation statistics are computed on all permutations of pairs of the three photometric bands (, , and ). The time series are filtered to remove unpaired observations and hence the correlations are computed on time series of equal length, containing only observations paired in the same transit. While not a correlation coefficient, the two-band Stetson index measures the degree of correlation between normalized residuals in two bands and it is computed on vs , vs , and vs .
Published output
Gaia DR4 statistical parameters of photometric time series are published in the vari_summary table and those of radial velocities in the vari_rad_vel_statistics table.
The code calculating the two-band Stetson index was affected by a bug when measurements in one band extended to later times than those in the other band. In a one-per-cent random sample of the published two-band Stetson indices, the fractions of sources for which the corrected values differ from the published values by more than 0.1 (0.2) are as follows:
-
1.
stetson_mag_bp_rp: 2.9 (2.0) per cent;
-
2.
stetson_mag_g_rp: 6.8 (4.7) per cent;
-
3.
stetson_mag_g_bp: 8.4 (5.7) per cent.
15.2.3.4 Period search and time series modelling
Input
Period search was applied to cleaned (Section 15.2.3.2) photometric -band time series (expressed in magnitudes as a function of time in days) with 10 FoV transits, without limitations on the source being flagged as variable (which was the case in previous data releases like Gaia DR3). For a subset specified in section Section 15.19, a photometric scan-angle model was additionally computed.
Method
The process of frequency (or period) search and time series modelling, collectively referred to as Variability Characterization, aims to characterize the variability behaviour of time series of Gaia measurements.
Photometric Fourier model The photometric variability can be modelled using a classical Fourier decomposition approach under the assumption that the light curve is mono- or multi-periodic, and is used in various specific objects models. The goal is to produce, in an automated manner, the simplest and statistically most significant periodic model of the observed variability. For non-periodic light curves, this model is usually non-informative. The general description of this model fitted to Gaia photometric time series for periodic variations in time is given by:
| (15.1) |
where is the degree of the polynomial model, is the number of detected frequencies, and is the maximum number of harmonics tested for frequency ; only the significant (not necessarily successive) harmonics are retained. The reference epoch is set to the middle of the time series and is already subtracted from the time . Note that this models is not generically computed nor exported, but has been used in various specific modules with different constraints, e.g. regarding the maximum number of harmonics to be fitted.
Photometric periodogram The photometric periodogram is computed following the description of phot_g_freq and provided in that field of the spurious_signal table: using the selected -band FoV observations counted in photGNObs an unweighted periodogram is made using Generalised Least-Squares (Heck et al. 1985; Cumming et al. 1999; Zechmeister and Kürster 2009). This is an extension of the Fourier periodogram on uneven sampled data that is independent of the mean of the data.
To compute the periodogram, the Gaia photometric time series is fitted for each frequency sampled against a function by minimizing the square difference between the data and the model. The offset, , accounts for the difference between the mean of the sampled data and the mean of the fitted function. The periodogram then results from these squared differences, negated and normalized, such that the higher the periodogram amplitude is, the more the corresponding frequency contributes to the observed signal.
We then select peaks, i.e. the best contributing frequencies, by identifying the ones that maximize this amplitude and perform a local quadratic interpolation as a refinement. For the best peak, we compute the False Alarm Probability (FAP, see Baluev 2008), which estimates the possibility that no signal is present in the data under the hypothesis that the noise is additive, white, and Gaussian with zero mean. If we denote by the best peak frequency and by its amplitude, the false alarm probability is bounded by:
where is the number of observations, the variance of the observation epochs. Once computed, this value is truncated in the interval to compensate for numerical errors.
We also associate to the identified frequencies a measure of signal detection efficiency (SDE, see Alcock et al. 2000b; Kovács et al. 2002), as a quantification, expressed in number of standard deviations (), a candidate frequency () is from the baseline of the periodogram ():
Photometric periodogram binning
Binning consists in repeating the process of peaks identification on a narrower interval of frequencies. It does not require recomputing amplitude, but multiplies the number of results to identify and to store. For Gaia DR4, we use a logarithmic bins definition such that intervals are smaller towards the small frequencies, reducing the risk of considering aliases.
If we divide the global frequency interval into bins, let us define . Bin number is then defined as the interval:
Photometric scan-angle model Details of the photometric scan-angle model can be found in Section 15.19.3.4.
Astrometric periodograms Details of the astrometric periodogram can be found in Section 15.19.3.5.
Astrometric scan-angle model Details of the astrometric scan-angle model can be found in Section 15.19.3.6.
Run-time configuration parameters
The configuration of the different models is as follows:
-
1.
Photometric frequency search (GPU accelerated periodogram):
-
(a)
at least 10 transits in the band,
-
(b)
no de-trending applied prior to the frequency search,
- (c)
-
(d)
minimum frequency of d (2424 d),
-
(e)
maximum frequency of 25 d ( min),
-
(f)
frequency step of d and quadratic interpolation using the 3 samples around the highest peak to estimate a refined frequency.
-
(a)
-
2.
Photometric scan-angle modelling (see Section 15.19.3.4 for details):
-
(a)
Two scan-angle harmonic components were fitted together with an offset: ‘K024’.
-
(a)
-
3.
Astrometric periodograms (see Section 15.19.3.5 for details):
-
(a)
For the first periodogram a circular model was fitted,
-
(b)
and for the second periodogram two additional scan-angle dependent terms ‘K35’ were fitted for each frequency step.
-
(a)
-
4.
Astrometric scan-angle modelling (see Section 15.19.3.6 for details):
-
(a)
A scan-angle only model with two harmonic components was fitted ‘K35’.
-
(a)
Published output
We describe below where to find the various fields that were published.
Usage in other modules The output of the photometric period search was used as input for the general classification module (see Section 15.2.3.6). Some SOS work packages made use of period search results, often recomputing on slightly differently filtered time series or with different configuration settings (e.g. frequency ranges), and they often ran their specific version of the (harmonic) modelling.
Photometric periodogram Values were published in spurious_signal fields: phot_g_freq, phot_g_freq_ampl, phot_g_freq_sde, and phot_g_freq_fap.
Photometric scan-angle model Values were published in spurious_signal fields: phot_g_scanangle_ampl24, phot_g_scanangle_ampl2, phot_g_scanangle_ampl4, phot_g_scanangle_ampl24_over_error, phot_g_scanangle_ampl2_over_error, phot_g_scanangle_ampl4_over_error, phot_g_scanangle_sig24, phot_g_scanangle_sig2, phot_g_scanangle_sig4, phot_g_scanangle_red_chi2, and phot_g_scanangle_f2.
Astrometric periodograms Values were published in spurious_signal fields: astro_circ_freq, astro_circ_freq_fap, astro_circ_scanangle_freq_offset, and astro_circ_scanangle_freq_fap.,
Astrometric scan-angle model Values were published in spurious_signal fields: astro_scanangle_ampl35, astro_scanangle_ampl3, astro_scanangle_ampl5, astro_scanangle_ampl35_over_error, astro_scanangle_ampl3_over_error, astro_scanangle_ampl5_over_error, astro_scanangle_sig35, astro_scanangle_sig3, astro_scanangle_sig5, astro_scanangle_red_chi2, and astro_scanangle_f2.
For the spurious_signal table outputs please consult Section 15.19 for details on their cardinality and under which conditions they were provided.
15.2.3.5 General variability detection
Input
In contrast to the previous data releases variability analyses were not only performed on FoV averaged photometry in the , , and bands but also on per-CCD photometry. Additionally Primary and Secondary photometric sources received a different treatment.
Method
The General Variability Detection (GVD) employed different supervised classifiers for photometric Primary and Secondary sources to identify candidate variables. Details about the method are provided in Section 15.3.
Published output
The data products from this processing step were published in Gaia DR4 in the table vari_gvd_classifier_feature. This table provides the GVD posterior probability of variability together with the attributes used for the variability detection. Owing to the very large number of processed sources, only sources with a GVD probability greater than 0.045 were published, together with about 11M sources identified as variable by the modules using Special Variability Detection (SVD; see Section 15.15 and Section 15.16) and subsequently classified by the general classification modules. This threshold ensures that all sources classified as VARIABLE are included, together with an additional set of potentially variable sources, labelled as POSSIBLE. Sources with a GVD probability exceeding 0.5 were used as input for the general classification module (see Section 15.2.3.6).
15.2.3.6 General classification
Input
All sources with GVD variability probability greater than or equal to 0.5.
Method
The supervised classification module employed a set of machine-learnt models to classify 48 different variability types and subtypes. Two classes of models were trained and executed: one-versus-rest (Ovr) models corresponding to each class to be classified, which should be considered as the primary results, and a preliminary Multiclass classifier that was developed earlier in the processing and kept for reproducibility. Additional cross-validation (-Cv suffix) classifiers were run to provide unbiased results for training sources. Further details are described in Section 15.4.
Published output
The Gaia DR4 table vari_classifier_result contains results from the Ovr classifier for all of the input sources, as well as results from the OvrCv, Multiclass, and MulticlassCv classifiers for a subset. Highly scored sources of relevant types were included in the inputs for the following SOS work packages: active galactic nuclei, Cepheids, compact companions, eclipsing binaries (an unpublished preliminary classifier), long period variables, planetary transits, pre-main-sequence oscillation stars, RR Lyrae stars, and young stellar objects. Galaxy candidates are additionally included in the galaxy_candidates table, while AGN candidates join the results of other DPAC processing modules in the qso_candidates table (see Chapter 17).
15.2.3.7 Specific Object Studies
Objects of various classes of variables benefit from additional processing tailored to take into account specific properties of their variability. The Specific Object Study (SOS) components of the variability pipeline aim to characterize the time series and compute attributes specific to given variability types, which improve the identification and thus purity of their set of candidates. Each SOS module takes as input a list of candidates from one (or more) of the following inputs, as illustrated in Figure 15.1: (1) the relevant variability class(es) from the general classifier (Section 15.2.3.6), with probability thresholds specific to each SOS module, (2) a Special Variability Detection module (SVD), or (3) an extractor.
Details of the selection criteria, processing, and of the output data products of each SOS module are described in the respective data product sections.
Input
Source selections depend on specific SOS modules and are described in the relevant data product sections.
Method
Methods are described in the relevant data product sections.
Run-time configuration parameters
Run-time configuration parameters are described in the relevant data product sections.
Published output
An overview of all SOS related tables is provided in Section 15.1.2.