15.18.4 Processing steps
The SOS YSO pipeline processes each input source through two independent analysis paths: (i) the / variability characterisation, and (ii) the colour-magnitude slope analysis. Although the module supports all photometric bands, the / analysis in DR4 focused on the band only (an extension to other bands is planned for DR5).
15.18.4.1 Input time series
The / analysis used the recomputed field-of-view (RFOV) time series produced by the operator chain described in Section 15.2.3.2, corresponding to the RemoveOutliersFaintAndBrightOperator_RFOV_G (ROFABO) tag.
The slope analysis requires , , and measurements to construct CMDs. However, Gaia’s scanning law often produces multiple transits within a single day, and not all transits have observations available in every band. To address both issues, a YSO-specific operator was defined and applied, namely TimeBinningOperator, which takes as input the ROFABO time series for and , together with the ColorTimeSeriesOperator_RFOV_G_RP colour time series. The operator first aligns the three time series by retaining only observations with transitids common to all three bands. The aligned observations are then grouped into bins. Consecutive measurements separated by less than one day are assigned to the same bin. For each bin, the binned time is the mean of the observation times, and both the binned value and uncertainty are computed as the median of the values and errors within the bin. This produces three binned time series for , , and , which serve as inputs to the slope analysis.
15.18.4.2 Colour-magnitude slope analysis
The slope analysis examines the relationship between brightness and colour variations using the binned time series described above. The analysis proceeds as follows:
-
1.
Outlier rejection: Visual inspection revealed that the ROFABO operator occasionally fails to remove isolated outlier observations, which, when present in the CMD, can significantly distort the slope fit (see Figure 15.80). To fix this, Mahalanobis-distance outlier rejection is applied in the (, ) plane prior to fitting. The sample mean and covariance matrix are computed, and data points the squared Mahalanobis distance of which exceeds 16.3 (approximately a threshold for a bivariate Gaussian distribution) are removed.
-
2.
Orthogonal Distance Regression (ODR): a straight line is fitted using iteratively re-weighted non-linear least squares, minimising orthogonal distances while incorporating measurement uncertainties in both axes. At each iteration, the weights are updated based on the current slope estimate and the individual errors. After convergence, the covariance matrix of the parameters is rescaled by the reduced . A singular-matrix fallback (swapping axes and re-fitting) is implemented for degenerate (vertical line) cases.
-
3.
Slope conversion: the fitted slope is converted to radians via .
-
4.
Classification: the slope and correlation values are stored for all sources regardless of data quality to allow downstream users to apply their own selection criteria. However, a classification label is assigned only to sources satisfying all our three pre-conditions: at least 20 binned data points, a peak-to-peak amplitude in exceeding 0.1 mag, and a Spearman correlation between and of at least 0.9.
We analysed the distributions of periodicity_index_g vs. slope_gvs_g_rp and asymmetry_index_g vs. slope_gvs_g_rp, and visually inspected several hundred light curves and colour–magnitude diagrams. Based on the values of slope_gvs_g_rp (in radians), we define the following categories:
-
•
Short brightening (SB), : burster-like behaviour, characterised by brief increases in brightness.
-
•
Fluctuating accretion (FA), : alternating short brightening and dimming events, producing approximately symmetric light curves.
-
•
Intermediate (I), : a mixture of FA and CI characteristics.
-
•
Colour-independent variable (CI), : large-amplitude variability in combined with relatively small variability in , resulting in a near-vertical distribution of points in the CMD.
15.18.4.3 Periodicity vs. asymmetry (/) analysis
15.18.4.3.1 Selection: minimum number of epochs
Before the / analysis, we apply a magnitude-dependent requirement on the minimum number of -band recomputed field-of-view epochs, following the bootstrapping methodology introduced for DR3 in Mas et al. (2026). The approach uses the interquartile range (IQR) as a variability index (chosen for its insensitivity to outliers) and tracks how it degrades as epochs are randomly removed from light curves of constant stars. Since photometric noise depends on magnitude, the analysis is performed in magnitude bins.
For DR3, this analysis was limited to the Gaia Andromeda Photometric Survey (GAPS) fields, the only sample available with light curves for constant stars at the time. For DR4, we had access to an all-sky sample of constant stars from the GVD_Merged_trainingset catalogue, selecting sources with GVD_TYPE=’OTHER’ and sourceProcFlags=2 (see Section 15.3 and Gavras et al. 2026). All sources with more than 100 epochs were selected, and for each source, epochs were iteratively removed and the IQR recomputed, repeating the process 100 times per source. The results were binned by magnitude, and for each bin the 95th rolling percentile of the IQR loss distribution was used to determine the minimum number of epochs for which 95% of bootstrapped light curves deviate less than (34.1%) from their original IQR.
The adopted thresholds for the band are: 38 epochs for mag, 54 epochs for mag, and 38 epochs for mag. Sources that do not meet these thresholds are excluded from the / analysis, reflected in the table as empty values for the indices, timescale, and amplitude.
15.18.4.3.2 Timescale estimation
Computing the index requires a characteristic variability timescale. For each source passing the epoch selection, we first attempt to find a periodic timescale using a Generalised Lomb-Scargle (GLS) periodogram, and fall back to a structure function (SF) analysis for an aperiodic characteristic timescale if the GLS does not yield a significant detection. If neither method succeeds, only the index is computed.
The GLS periodogram was computed with a fixed range d to d (periods from d down to d), aligned with the expected range of YSO variability timescales, using a fixed step of d. If the false alarm probability (FAP) from the Baluev method had a peak below a value of 0.001, the corresponding period is adopted as the characteristic timescale and the method is recorded as GLS.
For sources without a significant GLS peak, an aperiodic timescale is derived by fitting a uni-modal aperiodic variability model to the binned structure function (following Mas et al. 2026):
| (15.59) |
where captures the measurement noise floor, the variability amplitude, and the characteristic turnover timescale. The SF is computed from all pairwise time lags and binned using adaptive logarithmic binning with a resolution of 0.1 dex, a minimum of 3 pairs per bin, and a maximum expansion factor of 3 (allowing under-populated bins to be iteratively merged with their neighbours). The model is fitted using MIGRAD minimisation with reduced cost function in -space.
The SF timescale is accepted only if the fitted parameters are finite. A blind timescale range of d is defined, corresponding to the range where Gaia’s sparse sampling produces under-populated SFs. If the derived falls within this range and no SF data bin exists there to support it, the result is flagged. If the SF timescale passes validation, it is used and the method is recorded as SF.
Sources for which the adopted timescale exceeds 250 d are classified as long-trend (L) variables. In the DR3 pilot study (Mas et al. 2026), L sources were defined as those with a timescale exceeding half of the light curve duration. This criterion had two drawbacks. First, because Gaia’s scanning law produces light curves of different durations depending on sky position, the L threshold was inhomogeneous across the sky. Second, a timescale of half the light curve duration means the phase-folded light curve covers only about 2 variability cycles, which can lead to poorly constrained waveforms. For Gaia DR4, we instead adopt a fixed threshold of 250 d. Given that the typical duration of Gaia DR4 light curves is 1800-2000 days, a source with a timescale of 250 d has 7-8 variability cycles covered, ensuring a robust waveform estimation.
15.18.4.3.3 Waveform estimation
Once a timescale is determined and below the long-trend limit, the -band light curve is phase-folded to that timescale and a waveform is estimated using a Savitzky-Golay filter adapted for unevenly spaced data, with a window size of 25% of the number of epochs and a second-order polynomial. These parameters were inherited from Mas et al. (2026). The residual light curve is obtained by subtracting the estimated waveform from the phase-folded data.
15.18.4.3.4 Variability index computation
The index (Cody et al. 2014) quantifies the asymmetry of the light curve by comparing how the brightness extremes deviate from the median:
| (15.60) |
where is the mean of the upper and lower deciles of the light curve, is the median magnitude, and is the standard deviation. Since we work in magnitudes (rather than flux), positive values () indicate dipping behaviour, negative values () indicate bursting, and values near zero correspond to symmetric variability.
The index quantifies the degree of periodicity by comparing the variance of the residual light curve (after subtracting the waveform) to the total variance:
| (15.61) |
where is the variance of the residuals, is the variance of the original light curve, and is the mean of all squared photometric uncertainties. Values close to zero indicate a highly periodic signal well described by the estimated waveform, while values close to 1 reflect irregular or stochastic variability. The index is computed for all sources passing the epoch selection, whereas the index requires a valid timescale and waveform and is therefore not available for L sources or sources without a determined timescale.
15.18.4.3.5 Morphological classification
Based on the computed and values, sources are assigned to one of the seven morphological classes following Cody et al. (2014):
-
•
P (strictly periodic): and ;
-
•
EB (eclipsing binary-like): and ;
-
•
QPS (quasi-periodic symmetric): and ;
-
•
QPD (quasi-periodic dipper): and ;
-
•
APD (aperiodic dipper): and ;
-
•
B (burster): and ;
-
•
S (stochastic): and .
A further class, L, is assigned to sources the timescale of which exceeds the 250 d threshold, for which only the index is computed (see above).