skip to main content

gaia data release 4 documentation

15.11 Microlensing

15.11.4 Processing steps

The Microlensing detection pipeline was divided into two main stages. The first part, the Extractor, aimed at a rapid identification of light curves containing a microlensing-like brightening and assigned an initial membership score. The second part, the SOS pipeline, carried out a sequence of increasingly detailed photometric and astrometric fits. In the adopted processing, sources with an Extractor membership score greater than 0.41 are passed to SOS, which then executes the photometric Paczyński models through Level 2 followed by the linear astrometric stage at Level 3. In addition to this Extractor-based channel, SOS Microlensing also ingested sources flagged as microlensing by the Source Classification machine-learning pipeline, which is described in Section 15.4. The resulting candidates were then filtered and validated by humans.

15.11.4.1 Extractor

The main role of the Extractor is to check if the light curve has a Microlensing-like outburst, flag it, and associate it with a membership score. However, because it has to sieve through very large numbers of time series (∼2×109), it uses a sequence of simple tests based on G, GBP, and GRP data and on statistical quantities derived from the light curve. The Extractor starts from a bright-event detection in the G-band and then applies a set of progressively more restrictive checks:

  1. 1.

    bright event selection in G-band, to identify the longest sequence of FoV measurements that are significantly brighter than the median of the whole time series. Each point assigned to such a bright state must satisfy:

    median⁢(magG)−magG,i>3×σG,igdr3, (15.28)

    where i denotes the i-th element of the time series. The selected bright event is required to contain more than two such points, corresponding to at least three FoV measurements in the bright-state sequence;

  2. 2.

    achromaticity, to verify whether the BP-RP colour remains consistent within the time interval identified in the G-band data, using the BP-RP colour time series. The weighted mean colour inside the candidate event is compared with the median colour outside the event, and the difference must be below 3⁢σ:

    |⟨B⁢P−R⁢P⟩in−median⁢(B⁢P−R⁢P)out|≤3⁢σ⟨B⁢P−R⁢P⟩,in2+σmedian⁢(B⁢P−R⁢P),out2. (15.29)

    In addition, the internal BP-RP colour scatter within the event must be consistent with a constant value, with a χ2 p-value not smaller than 10−15;

  3. 3.

    unique rise and fall, to verify if there is only one rise and one fall in the light curve. Consecutive G points are compared using their combined uncertainty, and only changes larger than 5⁢σ are treated as significant changes of direction;

  4. 4.

    a skewness-Abbe check, based on the global skewness S and Abbe value A of the G light curve, designed to reject sources for which variability statistics are inconsistent with isolated microlensing-like brightening. Since microlensing brightening in magnitudes produces negative skewness, the implemented condition is

    log10⁡A<0.05andlog10⁡A<0.8⁢log10⁡(−S)−0.6; (15.30)
  5. 5.

    a colour check, based on the median BP-RP colour of the source, to reject sources with colours more typical of contaminating long-period variables. The implemented colour interval is

    1.0<median⁢(B⁢P−R⁢P)<4.0; (15.31)
  6. 6.

    baseline constancy, to verify if the G light curve outside the identified candidate event is consistent with a constant baseline. The test uses a χ2 statistic around the mean baseline magnitude and requires a p-value not smaller than 10−15.

A source first has to satisfy the bright-event condition in order to be considered further. The subsequent tests modify the Extractor membership score through multiplicative penalties when a source deviates from the expected microlensing behaviour, rather than acting as a purely binary accept/reject chain. In this implementation for Gaia DR4, the score is initialised at unity once a bright event has been identified. It is then multiplied by 0.95 if the achromaticity test is not passed, by 0.7 if the rise-and-fall morphology test fails, by 0.2 if the skewness-Abbe criterion is not satisfied, by 0.9 if the BP-RP colour criterion is not satisfied, and by 0.7 if the baseline-constancy test fails. Consequently, the Extractor score quantifies how closely the light-curve morphology, colour behaviour, and baseline stability resemble the expected signatures of a simple microlensing event.

The Extractor output for each retained source includes the estimated event time range, the time of maximum brightness, the duration of the identified event, the median baseline magnitude, the maximum brightness excess with respect to the baseline, the maximum significance of the event in units of the photometric uncertainty, the p-value of the baseline-constancy test, the number of points within the event, the number of detected events in the light curve, flags indicating the outcome of the individual tests, and the final Extractor membership score. In the final processing on the entire Gaia DR4 database, the Extractor returned 225 390 sources with membership score greater than 0.41.

15.11.4.2 GVD

The Gaia Variability Detection (GVD) classification input provided an additional channel for selecting microlensing candidates before SOS processing and the subsequent microlensing selection cuts. The merged classification output contained 159 803 sources with MICROLENSING >= 0.90, comprising

  • •

    104 600 sources from CD_DR4_xgboost_multiclass_251120;

  • •

    55 203 sources from CD_DR4_dec25_setB_v2AllSrcForCat_XGB_oneVsRest_MICROLENSING.

The SOS run1956 output contained 385 887 successful fits. Of these, 126 344 sources were tagged by GVD. This subset is identified by

selectedByClassification=1.0.

The visually inspected parent list contained 4 498 sources. Of these, 2 849 were selected only by the microlensing pipeline, 1 466 only by GVD, and 183 by both channels, corresponding to totals of 3 032 pipeline-selected sources and 1 649 GVD-selected sources when the overlap is included. Within this inspected list, all 757 Set A sources were present: 19 were pipeline-only, 669 were GVD-only, and 69 were selected by both, giving 88 pipeline-selected and 738 GVD-selected Set A sources including the overlap. Set B was mostly added later from the literature-based selection: only 9 of its 605 sources were also present in the original eyeballing list. Those 9 were all GVD-selected, with 7 GVD-only and 2 also selected by the pipeline.

15.11.4.3 Specific Object Study (SOS) Models

In the subsequent stage of the processing, the sources selected for SOS analysis were modelled with a sequence of Paczyński photometric fits in G, GBP, and GRP. The photometric part yields the Level 0, Level 1, and Level 2 solutions. The linear epoch-astrometry solver then used the Level 2 results as input to the Level 3 modelling and to the selection of the preferred final branch of the solution. The archived SOS Microlensing output contains 385 887 successfully processed sources, all with fstate=1.

15.11.4.4 Model fitting: Level 0

The simplest Microlensing model assumes no microlensing parallax and no blending. Such a model is a good approximation for many events and is also the most stable mathematically. It contains three parameters common to all bands, paczynski0_u0, paczynski0_te, and paczynski0_tmax, together with one baseline magnitude in each fitted band, paczynski0_g0, paczynski0_bp0, and paczynski0_rp0.

The initial parameter guesses are derived from the light curve and from the Extractor event window. The time of maximum is initialised at the epoch of the brightest G measurement, the impact parameter is estimated from the observed amplitude, the Einstein timescale is initialised at 60 days, and the baseline magnitudes are estimated from the 90th percentiles of the light curves. The parameters are then refined with a Nelder-Mead simplex optimisation with a maximum number of 15 000 function evaluations.

If the GBP or GRP light curves were excluded because of insufficient data, the corresponding fitted baseline magnitudes are set to null. As the Level 0 model is symmetric with respect to the sign of paczynski0_u0, the reported solution stores its absolute value. The fitted Level 0 parameters are subsequently passed to the higher model levels.

15.11.4.5 Model fitting: Level 1

This model extends Level 0 by including band-dependent blending parameters. In addition to the event parameters paczynski1_u0, paczynski1_te, and paczynski1_tmax, and the baseline magnitudes paczynski1_g0, paczynski1_bp0, and paczynski1_rp0, the Level 1 fit solves for the source-flux fractions paczynski1_fs_g, paczynski1_fs_bp, and paczynski1_fs_rp.

The Level 1 optimisation is initialised directly from the Level 0 solution, with all blending parameters starting from unity. The fit is then carried out with a Nelder-Mead simplex optimisation with a maximum number of 5 000 function evaluations. If the GBP or GRP bands are not fitted, their corresponding baseline and blending parameters are set to null in the exported solution. As in Level 0, the reported paczynski1_u0 and paczynski1_te follow the symmetry convention adopted by the code.

15.11.4.6 Model fitting: Level 2

This model includes the effect of microlensing parallax, but does not include blending, because of the significant risk of degeneracy between these two effects. In addition to the standard photometric microlensing parameters and the baseline magnitudes in each fitted band, the Level 2 model solves for the North and East components of the microlensing-parallax vector, paczynski2_parallax_north and paczynski2_parallax_east.

The Level 2 fit is initialised from the Level 0 solution, using its values of tmax, tE, u0, and the band-dependent baseline magnitudes. The geocentric parallax reference epoch, t0,par, is set to the Level 0 value of tmax, and both microlensing-parallax components are initially set to zero.

The optimisation is performed separately for the two impact-parameter branches: one branch is initialised with positive u0 and the other with negative u0. For each branch, the optimisation is run 40 times. The first run uses the Level 0-based initialisation, while the remaining runs use randomized initial values. Within each branch, the solution with the lowest χ2 is retained and both solutions are stored internally.

The Level 2 optimisation is performed in the geocentric formalism, and the resulting parameters are subsequently converted to heliocentric values for storage and further use. The exported Level 2 solution therefore provides the photometric-parallax parameters used by the subsequent astrometric modelling.

15.11.4.7 Membership score

A membership score was calculated from the fitted photometric models. In the implementation, the score is initialised at unity and then modified multiplicatively according to a set of criteria. In the adopted processing, the following criteria are applied:

  • •

    if the full G amplitude is below 0.25 mag: factor 0.6;

  • •

    if the full G amplitude lies between 0.25 and 0.5 mag: factor 0.9;

  • •

    if the event would be penalised by low amplitude, but the amplitude is at least 0.1 mag and the best reduced χ2 among Level 0 and Level 1 is at most 1.0, the low-amplitude penalty is replaced by a rescue factor 0.9;

  • •

    if none of the Level 0, Level 1, or Level 2 fits has reduced χ2<10: factor 0.5;

  • •

    if the best reduced χ2 among the three levels lies between 3 and 10: factor 0.9;

  • •

    if the best-fitting time of maximum lies outside the observed time span, including its formal uncertainty: factor 0.9;

  • •

    if the Level 0 Einstein timescale is outside the interval 2 to 500 days, including its formal uncertainty: factor 0.2;

  • •

    if the absolute impact parameter of the best-fitting level exceeds 1.5, including its formal uncertainty: factor 0.7;

  • •

    if the absolute impact parameter of the best-fitting level is below 0.001, including its formal uncertainty: factor 0.9;

  • •

    if at least one Level 2 parallax component satisfies |πE|≥1.0, including its formal uncertainty: factor 0.95;

  • •

    if both Level 2 parallax components satisfy |πE|≥1.0, including their formal uncertainties: an additional factor 0.95;

  • •

    if the best-fit baseline is fainter than G0=20 and the full G amplitude is below 1.5 mag: factor 0.8;

  • •

    if that faint-baseline/low-amplitude penalty was applied but the Level 0 baseline is brighter than 17 mag, the penalty is removed by multiplication by its inverse;

  • •

    after all criteria have been evaluated, the final score is clipped to the interval from 0 to 1.

Only a subset of the SOS microlensing candidates is passed to the astrometric stages. The Level 3 algorithms are executed only for sources for which the photometric membership score is at least the astrometric eligibility threshold (0.8) and the photometric processing reached at least Level 2 successfully.

15.11.4.8 Model fitting: Level 3

The Level 3 stage is applied only to sources that satisfy the photometric membership-score requirement, have reached Level 2 successfully, and possess a usable epoch astrometric time series. It uses the astrometric measurements together with the photometric parameters propagated from Level 2.

The Level 3 astrometric modelling is performed in the along-scan observable and is formulated as a weighted least-squares problem. Having a set of along-scan position observations 𝒘𝐨𝐛𝐬 at times 𝒕=(t1,t2,…,tN), with uncertainties 𝝈w, and model predictions 𝒘𝐜 for parameter vector 𝒑, the pipeline minimises

min𝒑∥(𝒘𝐨𝐛𝐬−𝒘𝐜)/𝝈w∥2. (15.32)

If the photometric microlensing parameters from Level 2, (t0,u0,tE,πE,ϕ), are treated as fixed, the problem becomes linear:

𝒘𝐜=𝚲⋅𝒑, (15.33)

where

𝒑=(Δ⁢α∗,Δ⁢δ,ϖ,μα∗,μδ,θE) (15.34)

contains the five standard astrometric parameters together with the angular Einstein radius. For each epoch i, the corresponding row of the design matrix is

[sin⁡ψi,cos⁡ψi,pAL,i,(ti−tref)⁢sin⁡ψi,(ti−tref)⁢cos⁡ψi,Δ⁢uAL,i], (15.35)

where Δ⁢uAL,i is the astrometric microlensing displacement projected onto the along-scan direction and computed from the fixed Level 2 photometric solution and the epoch-specific scan geometry. The parameter estimate is then

𝒑^=(𝚲T⁢𝑾⁢𝚲)−1⁢𝚲T⁢𝑾⁢𝒘𝐨𝐛𝐬, (15.36)

with 𝑾 the diagonal weight matrix defined by the along-scan uncertainties. In practice, this is the standard five-parameter astrometric solution extended by one additional parameter, θE.

The position terms are reported as offsets from the mean position rather than as absolute sky coordinates. The exported Level 3 parameters are

  • •

    position offsets: paczynski3_delta_ra_source and paczynski3_delta_dec_source;

  • •

    source parallax: paczynski3_varpi_source;

  • •

    source proper motions: paczynski3_pmra_source and paczynski3_pmdec_source;

  • •

    angular Einstein radius: paczynski3_einstein_radius.

Each parameter is accompanied by its formal uncertainty from the least-squares solution. These formal uncertainties are optimistic, because the fit assumes the propagated Level 2 photometric parameters to be exact and does not include their uncertainties.

The pipeline is evaluated for both the positive-u0 and negative-u0 branches propagated from Level 2, and the linear astrometric solution is calculated separately for each branch. A branch yielding a positive angular Einstein radius, θE>0, is preferred over a branch yielding a non-positive value, irrespective of their relative reduced χ2 values. If both branches yield positive θE, or if neither does, the branch with the lower Level 3 reduced χ2 is selected. If no Level 3 comparison is available, the selection falls back to the reduced χ2 values of the Level 2 photometric solutions. The adopted branch is recorded through the FlagNegative indicator, which specifies whether the preferred solution corresponds to the negative-u0 branch. The selected Level 3 branch also determines which of the two Level 2 photometric solutions is retained as the preferred overall microlensing solution. The Gaia Archive therefore contains only one set of Level 2 and Level 3 parameters for each source, corresponding to the adopted branch.

15.11.4.9 Cuts and visual inspection

The candidate list for visual inspection was defined from the successful SOS outputs using a simple pre-selection on the SOS membership score, fitted photometric parameters, and source colour. The applied cuts were

  • •

    membership greater than 0.8;

  • •

    paczynski0_g0 <19 mag;

  • •

    paczynski2_chi2_dof <0.5;

  • •

    paczynski2_te >20 days;

  • •

    1<GBP−GRP<4.

The BP-RP colour used in the last cut was taken from the Gaia source table, hence it uses integrated GBP and GRP fluxes from the entire lightcurve. This filtering produced 4 498 candidates for visual inspection.

The visual inspection was carried out by Ł. Wyrzykowski, K. Kruszyńska, Z. Kaczmarek, M. Wicker, and K. Rybicki, who independently viewed the plots of light curves and motion curves with models from all Levels. After aggregating the results, 757 events were accepted and they defined the set A.

15.11.4.10 Events from literature

Microlensing events known from the literature were selected from OGLE-IV Galactic bulge and disc catalogues (Mróz et al. 2019b, 2020), the OGLE-IV Early Warning System pages (Udalski et al. 2015), KMTNet (Kim et al. 2016), MOA (Abe et al. 1997), ASAS-SN (Shappee et al. 2014), Gaia Science Alerts (Hodgkin et al. 2021), and ZTF microlensing candidates (Bellm et al. 2019), restricting the sample to events occurring within the Gaia DR4 time span. No restriction on the baseline magnitude was imposed on this literature-selected sample. In total, 849 literature events were present in the Gaia DR4 catalogue and inspected visually. Of these, 244 were discovered by the pipeline (present in set A), while the remaining 605 defined the set B.

A diagnostic comparison of the Level 0 timescale distributions for the set A and set B candidates is shown in Figure 15.22.

Refer to caption
Figure 15.22: Distribution of Level 0 timescales paczynski0_te for the 757 set A candidates (blue) and 605 set B candidates (orange). The dashed lines mark their median timescales, 52.0 and 48.9 days, respectively. The histograms are shown without any correction for detection efficiency.

15.11.4.11 Final sample

The final sample consists of the union of set A, described in Section 15.11.4.9, and set B, described in Section 15.11.4.10, which totals 1 362 unique sources. As described in the Verification section later, two of these sources were later removed from the final catalogue because of their classification as non-microlensing variables, leaving 1 360 events in the final Gaia DR4 microlensing catalogue.

The events have their original source IDs from Gaia and a unique event number following the convention GaiaDR4-ULENS-NNNN, where NNNN is the four-digit event number when sorted by G baseline brightness. Note, event name encompasses all involved actors, i.e. the microlensed source, the lensing object, as well as any unrelated blending light. In order to refer to the lens itself, we recommend to use either an ‘L’ suffix added to the event name (e.g. GaiaDR4-ULENS-0826L) or use its unique name, which we provide for dark lens candidates in the later section.