MSOS Event Pipelines
This article provides a user-oriented overview of the Roman Microlensing Survey Operations System (MSOS) Events Pipeline. The operational pipeline coordinates the processing of candidate microlensing events for the Galactic Bulge Time-Domain Survey. It retrieves object and photometric information from MSOS Photometry via the MSOS database, invokes scientific processing modules supplied by the roman-msos-events software library, and writes the resulting classifications and event-characterization results back to the MSOS database.
The roman-msos-events library provides the scientific algorithms used by the pipeline. The library and the operational pipeline are related but distinct: the library implements independently runnable processing modules, while the pipeline determines when, where, and in what order those modules are executed.
Development status
The MSOS Events software and its scientific thresholds remain under development. Results produced by newer development versions may differ.
1. Introduction
Gravitational microlensing occurs when the gravitational field of a foreground object—the lens—deflects light from a more distant source. The resulting temporary magnification is recorded as a characteristic time-dependent brightening.
The shape of a microlensing light curve can constrain properties of the lensing system, including whether the lens is isolated or part of a multiple-object system. When light-curve models are combined with parallax, finite-source, lens-flux, and Galactic-model information, the pipeline can constrain physical quantities such as lens mass, distance, and proper motion.
The roman-msos-events library organizes its scientific processing into four functional components:
- Microlensing Event Identification
- Lensing Model Classification
- Lens Flux Analysis
- Physical Parameter Determination
These components are collections of reusable library modules invoked by the operational MSOS Events Pipeline. The library exposes each module independently and does not itself define the complete production workflow or its conditional execution logic.
2. MSOS Events Library Components at a Glance
| Component | Purpose | Principal result |
|---|---|---|
| Microlensing Event Identification | Separates flat, periodic, chromatic, downward-peaked, and otherwise non-microlensing light curves from microlensing candidates. | Photometric-variability classification and diagnostics |
| Lensing Model Classification | Fits progressively more detailed PSPL (w/wo parallax), FSPL (w/wo parallax), DSSL(w/wo parallax), USBL (w/wo parallax) models. | Model parameters, uncertainties, goodness-of-fit statistics, and posterior samples |
| Lens Flux Analysis | Uses Roman imaging to separate source, lens, and background flux contributions. | Lens-flux posterior and astrometric parameters |
| Physical Parameter Determination | Combines light-curve and lens-flux constraints with stellar and Galactic information. | Physical source and lens properties |
3. Inputs and Supporting Data
The table below summarizes the scientific inputs used by the pipeline.
| Input | Description |
|---|---|
| Object information | Object identifier, name, sky coordinates, and related source metadata |
| Time-series photometry | Observation times, measured fluxes, flux uncertainties, filters, and applicable quality information |
| Sampled or stacked images | Roman imaging used by the Lens Flux Analysis component |
| Roman ephemeris | Observatory position information required by parallax-aware models |
| Point-spread functions | Filter-dependent PSF information used in image-based lens-flux modeling |
| Extinction and reddening information | Line-of-sight information used when interpreting source and lens properties |
| Galactic and stellar models | Prior information used during physical-parameter inference |
4. Scientific Components of the roman-msos-events Library
4.1. Microlensing Event Identification
Microlensing Event Identification evaluates each source light curve and assigns a photometric-variability classification. For multiband observations, the longest light curve is used as the primary time series, while the remaining bands contribute to the chromaticity assessment.
The classification process evaluates:
Flatness
This step compares the variability of a smoothed light curve with its expected noise level. The comparison is performed over the complete observing interval and within individual observing seasons.
Objects consistent with the expected noise are classified as Flat and do not proceed to microlensing model fitting.
Downward Peaks
This step searches for statistically significant negative-going features. A light curve containing downward peaks without corresponding upward peaks is classified as Downpeaks.
Periodicity
A Lomb–Scargle periodogram is used to search for repeating variability. The candidate period, false-alarm probability, and correlation between the periodic model and the observed light curve are retained as diagnostic information.
Objects satisfying the periodicity criteria are classified as Periodic.
Chromaticity
When multiple filters are available, this module interpolates the secondary light curves to the observation times of the primary light curve and evaluates their correlation.
Variability that is not significantly correlated between bands is classified as Chromatic.
Microlensing Consistency
Remaining nonflat candidates are fitted with a blended Point-Source Point-Lens model. A candidate is classified as Microlensing when the fit converges and satisfies the configured chi-squared acceptance criterion.
Candidates that cannot be evaluated successfully, fail to converge, or do not satisfy the acceptance criterion are classified as Unknown.
The classification and all associated diagnostic measurements are stored under photometric_variability in the object record.
4.2. Lensing Model Classification
Objects classified as microlensing candidates can be evaluated using several physical model families.
| Model | Description | Additional information introduced |
|---|---|---|
| PSPL | Point-Source Point-Lens | Standard single-lens event parameters |
| PSPL with parallax | PSPL model including Roman observatory parallax | Microlensing-parallax vector |
| FSPL | Finite-Source Point-Lens | Angular source-size effects |
| FSPL with parallax | Finite-source model including parallax | Finite-source and parallax constraints |
| DSSL | Double-Source Single-Lens | Two source trajectories and flux contributions |
| USBL | Uniform-Source Binary-Lens | Binary-lens separation, mass ratio, and trajectory angle |
| USBL with parallax | Binary-lens model including parallax | Binary-lens and parallax constraints |
| Posterior exploration | MCMC sampling of a selected fitted model | Parameter posterior distributions |
Each deterministic fit records, where available:
- Best-fitting parameters
- Parameter uncertainties
- Chi-squared goodness-of-fit
- Covariance information
- Model-specific diagnostic data
The posterior-exploration module selects the most complex successfully fitted supported model and uses its result to initialize Markov Chain Monte Carlo sampling.
The model results are stored beneath microlensing_event.models in the updated object record.
Model selection
The software package exposes the fitting operations as independently runnable modules. Production orchestration determines which models are run and may use fit-quality thresholds to activate more complex models. The library itself does not currently define a complete end-to-end decision flow.
4.3. Lens Flux Analysis
Note
Under development and validation.
Lens Flux Analysis estimates the flux contributions of the source, lens, and unrelated background objects using Roman imaging near the event coordinates.
The analysis uses a two-stage procedure:
- A chi-squared minimization obtains an initial parameter estimate.
- An MCMC fit samples the posterior distribution using the initial solution.
The image model incorporates:
- Image data and uncertainties
- Observation time
- Filter information
- World Coordinate System information
- Point-spread functions
- Event coordinates
- Roman observatory ephemeris
The resulting parameters include source, lens, and background fluxes by filter, together with astrometric quantities such as source and lens proper motions and parallaxes.
Results are stored in microlensing_event.models.lens_flux_analysis.
4.4. Physical Parameter Determination
Note
Under development and validation.
Physical Parameter Determination combines the posterior from the selected light-curve model with the Lens Flux Analysis posterior. The current implementation uses a pyLIMASS-based MCMC model.
Derived properties may include:
- Source and lens masses
- Including mass of the planetary companion
- Source and lens distances
- Source and lens proper motions
- Extinction toward the source and lens
Results are stored in microlensing_event.models.physical_properties.
This stage requires successful completion of both Posterior Exploration and Lens Flux Analysis.
5. Output Products
The Events Pipeline updates records that are subsequently used to construct the following MSOS products:
| Product | Contents |
|---|---|
| Variability Catalog | Variability classifications and event-identification diagnostics |
| Microlensing Event Catalog | Fitted microlensing parameters, uncertainties, fit statistics, and physical-property estimates |
| Markov-chain products | Posterior samples and associated sampling metadata |
The final L4 catalog products are generated from the MSOS database by downstream finishing-pipeline processing.
6. Processing Timescales
The Events Pipeline supports two operational processing contexts:
- End-of-season processing: identifies newly detected candidates and refines models for known events using the latest season of observations.
- End-of-survey processing: reprocesses the complete survey dataset using the final available inputs, reference data, and validated software configuration.
7. Running an Individual Module
The software provides both Python and command-line interfaces. Each command-line invocation runs one module on one or more object records and returns an updated record. The following commands run individual library modules. They do not launch the operational MSOS Events Pipeline or reproduce its complete orchestration, database interaction, conditional branching, and resource management.
roman-msos-events run <module-name> <object-model.json>For example:
roman-msos-events run Classify event.json --output-dir resultsA subsequent fitting module can then operate on the updated record:
roman-msos-events run PSPLModelFitting results/event.json \
--output-dir fitted-resultsCommon command-line options include:
| Option | Purpose |
|---|---|
--output-dir | Write updated object records to a directory instead of standard output |
--overrides | Supply module-specific parameter overrides as JSON |
--pipeline-path | Load an alternative pipeline definition |
--images-path | Select an image collection for image-dependent processing |
Input records can be validated before processing:
roman-msos-events datamodel validate event.jsonFor installation instructions, complete module arguments, Python examples, and tutorials, consult the MSOS Events Software User Guide.
