Paper The following article is Open access

NNETFIX: an artificial neural network-based denoising engine for gravitational-wave signals

, , , and

Published 14 June 2021 © 2021 The Author(s). Published by IOP Publishing Ltd
, , Citation Kentaro Mogushi et al 2021 Mach. Learn.: Sci. Technol. 2 035018 DOI 10.1088/2632-2153/abea69

2632-2153/2/3/035018

Abstract

Instrumental and environmental transient noise bursts in gravitational-wave (GW) detectors, or glitches, may impair astrophysical observations by adversely affecting the sky localization and the parameter estimation of GW signals. Denoising of detector data is especially relevant during low-latency operations because electromagnetic follow-up of candidate detections requires accurate, rapid sky localization and inference of astrophysical sources. NNETFIX is a machine learning, artificial neural network-based algorithm designed to estimate the data containing a transient GW signal with an overlapping glitch as though the glitch was absent. The sky localization calculated from the denoised data may be significantly more accurate than the sky localization obtained from the original data or by removing the portion of the data impacted by the glitch. We test NNETFIX in simulated scenarios of binary black hole coalescence signals and discuss the potential for its use in future low-latency LIGO-Virgo-KAGRA searches. In the majority of cases for signals with a high signal-to-noise ratio, we find that the overlap of the sky maps obtained with the denoised data and the original data is better than the overlap of the sky maps obtained with the original data and the data with the glitch removed.

Export citation and abstract BibTeX RIS

1. Introduction

The field of gravitational-wave (GW) astronomy began with the first direct detection of a GW signal from a binary black hole (BBH) merger [1] on 14 September 2015. Nine additional BBH mergers were detected with high confidence during the first and second LIGO [2] and Virgo [3] observation runs (O1 and O2) [4]. During the first half of the third LIGO-Virgo observation run (O3a), 39 binary merger events were detected with high confidence [5], including two exceptional BBH events [68] and a possible neutron star and black hole (NSBH) merger [9].

On 17 August 2017, the first detection of a GW signal from a binary neutron star (BNS) merger, GW170817, expanded multi-messenger astronomy to include GW observations [10]. A short gamma-ray burst (GRB) was detected approximately 1.7 s after the BNS merger time [11]. The sky map calculated from the GW signal allowed the identification of the event with an electromagnetic (EM) counterpart [10, 11]. The association of this GW event with the observed EM transients supports the long-hypothesized model that at least some short GRBs are due to BNS coalescences [12] and has provided many insights into fundamental astrophysics and cosmology. In April 2020, a second BNS merger without an EM counterpart was detected [13].

In order to detect GW signals, ground-based GW detectors must be extremely sensitive, causing them to become highly susceptible to instrumental and environmental noise [4]. In particular, transient noise bursts, or glitches, may impair the quality of detector data. The presence of a glitch in the proximity of a GW signal can adversely affect the analysis of the latter, including calculating the sky localization of the source. The most notable example of such an occurrence was GW170817, where the effect of a glitch was mitigated in low-latency by removing the contaminated portion of the data and in follow-up studies by applying ad hoc mitigation algorithms [10, 14].

Eleven confident detections out of the 50 observed in O1, O2 and O3a required some form of ad hoc analysis to mitigate the effect of glitches on the estimation of candidate event parameters [4, 5]. Given a single-detector glitch rate of 0.007 Hz with signal-to-noise ratio (SNR) larger than 7.5 [15] and a percentage of observing time with two detectors operating in coincidence of ∼ 80% in O3a [5], the probability of a glitch overlapping a signal in one detector is over 1% for a signal duration of a few seconds (typical of a BBH event) and may be up to ∼ 30% for a BNS event with a typical duration of a minute or more. Given the expected detection rate of astrophysical signals in the planned fourth LIGO-Virgo-KAGRA run (O4) and later runs, and the increased sensitivity in the detectors likely leading to an increased glitch rate, we expect a significant number of detections to overlap with glitches.

One possibility to mitigate the effect of a contaminating glitch would be to discard the data from the affected detector. This is the simplest and fastest solution; however, it is also likely to impact the analysis and sky localization, especially in cases where data is only available from two detectors. Another technique that can be used in low-latency is gating, which removes the data affected by the glitch. One method of gating is to set the data affected by the glitch to zero using a window function to smoothly transition into and out of the gate [16]. Gating was used in the case of GW170817 to produce the low-latency sky localization for EM follow-up observations [17]. On larger latencies, glitch mitigation techniques such as using BayesWave [18] to model and subtract the glitch can be used [17, 19, 20].

Figure 1 shows an example of the detrimental effect gating data can have on the sky localization error region of a simulated BBH merger signal. The sky localization obtained with the gated data significantly differs from the sky localization estimated from the full data. Also, the 90% sky localization error region after the gating is applied no longer includes the true sky position of the injected signal.

Figure 1.

Figure 1. Left: Whitened time series of a simulated BBH signal with two-detector network SNR $\rho_\mathrm{N} = 42.4$ and component masses $(m_1,m_2) = (35,29)$ $M_\odot$ in advanced LIGO (aLIGO) recolored Gaussian noise (red curve). A 130 ms gate is applied 30 ms before the geocentric merger time (gray curve). The vertical black-dashed line denotes the merger time in LIGO-Hanford (H1). Right: The 90% sky localization error regions from the full data (gray area) and the gated data (red empty contours). The star indicates the true sky position of the simulated signal.

Standard image High-resolution image

The higher detector sensitivity of LIGO and Virgo in their third observing run has led to an increased number of GW candidate detections from different astrophysical populations [6, 9, 13]. Future observation runs with higher sensitivity are expected to produce even greater detection rates, which would lead to higher chances of observing GW signals contaminated by glitches. The inability to accurately estimate the sky localization of GW candidates with potential EM counterparts due to glitches contaminating the signal could put at risk new astrophysical discoveries such as those made with GW170817. Thus, the development and implementation of accurate low-latency denoising methods could be highly beneficial to multi-messenger observations.

In recent years, machine learning algorithms have been in development to classify detector noise and reduce its effect on GW signals [21]. In particular, there have been many efforts in applying different techniques involving neural networks. GravitySpy uses citizen science to provide a data set used to train convolutional neural network (CNN) based deep learning image classifiers to identify and classify noise transients [15]. Other efforts include development of an algorithm based on a total variational method for noise reduction assisted by the use of an artificial neural network (ANN) [22], DeepClean, a long short-term memory neural network that has many layers and uses witness channels for noise subtraction [23], and work done to denoise GW data using CNNs [24]. There has also been research into using ANNs to quickly calculate the sky localization of candidate signals using the raw and processed strain data from GW detectors [25]. A thorough overview of this subject is presented in reference [21].

In this paper, we present a machine learning-based algorithm to denoise transient GW signals called NNETFIX ('A Neural NETwork to 'FIX' GW signals coincident with short-duration glitches in detector data'). The output from NNETFIX can be used as input to other algorithms such as BAYESTAR [26] to produce sky maps or LALInference [27] or Bilby [28] to perform parameter estimation. NNETFIX uses ANNs to estimate the portion of a signal which is lost due to the presence of an overlapping glitch. We train the ANN to reconstruct the portion of a gated signal on a template bank of BBH waveforms injected into simulated noise data. The accuracy of the algorithm is assessed by comparing the recovered waveform, SNR, and sky map from the processed data to the corresponding quantities obtained before gating. We derive a set of statistical metrics to assess the improvement in these quantities.

2. Algorithm implementation, training and testing

We consider a scenario in which a transient BBH GW signal is observed by a network of at least two detectors and the data of one detector is partially gated to remove an overlapping glitch identified by software such as Omicron [29] or iDQ [30, 31]. Without loss of generality, we perform the analysis for the two LIGO detectors, LIGO-Hanford (H1) and LIGO-Livingston (L1), with the gating applied to data from the H1 detector. We assume the merger time at the geometric center of Earth (or geocentric merger time) to be (approximately) known from L1 data. We denote with sf (t), sg (t) and sr (t) the full time series without the glitch, the gated time series, and the NNETFIX reconstructed time series, respectively. The output of NNETFIX can be thought of as the map:

Equation (1)

We train an ANN regression algorithm to construct the map F such that $s_r(t)\sim s_f(t)$. The NNETFIX implementation uses the scikit-learn [32] multi-layered perceptron (MLP) regressor, a type of ANN in which the artificial neurons (mathematical functions) are arranged into layers and connected to every neuron in the preceding and/or succeeding layers [33]. Each neuron calculates a weighted linear combination of the outputs from the preceding layer and applies an activation function that introduces a non-linearity into the neuron's output. The ANN trained by NNETFIX consists of one hidden layer containing 200 neurons. This configuration is similar to the one employed in reference [22] based on a single hidden layer with 40 neurons. Multi-layer configurations have been used by other denoising algorithms, such as DeepClean [23] and the CNN-based algorithm in [24]. In the ANN training process, NNETFIX uses the rectified linear unit (ReLU) activation function [34, 35] and the ADAM stochastic gradient-based optimizer [36] with a learning rate of 10−3. Ten percent of the training data samples are set aside and used for validating the training. The training iteration stops if the ANN performance plateaus with a tolerance level of 10−4 to avoid overtraining. To reconstruct the gated portion of the time series, one hidden layer works better than multiple hidden layers for the loss function of mean square error and the number of hidden layers tested. The values from the loss function have a weak dependency on the number of neurons.

To train the algorithm, we first build template banks of simulated non-spinning IMRphenomD BBH merger waveforms [37] with varying intrinsic and extrinsic parameters. To reduce the potential for overtraining, each template bank also includes a number of (pure) noise time series. We distribute the positions of the injected signals isotropically in the sky. The waveform coalescence phase, polarization angle, and cosine of the inclination angle are uniformly distributed in the intervals [0, 2π], [0, π], and [−1, 1], respectively. We uniformly distribute the network SNR $\rho_\mathrm{N}$ [16] of the simulated signals in the range [11.3, 42.4]. We consider three distinct template banks corresponding to low, medium, and high BBH component masses to assess the prediction accuracy of the trained ANNs for different signal lengths. The BBH component masses are uniformly sampled according to a Jeffreys prior for the matched-filter detection statistic. As the mass of the system decreases, we employ a higher number of templates to properly cover the mass parameter space [3841].

For each of the three distinct template banks, we build 12 training + testing (TT) sets: first, we inject each waveform into 50 distinct realizations of recolored Gaussian noise for advanced LIGO (aLIGO) at design sensitivity; second, we include the (pure) noise time series; third, we shuffle and split the set by 70%–30% for training and testing, with 10% of the training set used for internal validation; and finally, we apply the 12 combinations of gate durations td  = (50, 75, 130) ms and gate end-times before the geocentric merger time te  = (15, 30, 90, 170) ms. The time series are sampled at 4096 Hz, whitened, and high-passed. A conservative value of 25 Hz is used for the high-pass filter. The gates are implemented as a reversed Tukey window with a taper of 0.1 s and held fixed with respect to geocentric merger time; however, the merger time seen in the H1 detector naturally shifts due to the sky position and the polarization angle of the GW signal. Table 1 shows the range of the component masses, the number of waveforms, the number of noise series, and the dimension of the sets for the different scenarios.

Table 1. Component mass ranges, number of waveforms (ns ), number of pure noise series (nn ), and dimension of the TT sets for each of the three scenarios and combinations of gate durations and end-times.

  m1 [$M_\odot$] m2 [$M_\odot$] ns nn Set dimension ($n_s\times 50 + n_n$)
Low10–158–12348190019 300
Medium15–2512–18251135013 900
High28–4223–35613003350

We test the effectiveness of the ANNs by calculating the coefficient of determination for the MLP Regressor in scikit-learn on the testing sets [32]. The coefficient of determination ranges from $-\infty$ (bad) to 1 (perfect estimation), with positive values corresponding to some degree of accuracy. We evaluate the coefficient of determination on each testing set after training the ANN on the corresponding training set. The ranges of the coefficient of determination for the testing sets are [0.773, 0.882], [0.750, 0.883], and [0.691, 0.879] for the low-mass, medium-mass, and high-mass scenarios, respectively, and the means are 0.833, 0.827, and 0.814.

We test for potential statistical effects in the training method by considering the medium-mass scenario with a gate duration of 50 ms and a gate end-time of 30 ms as a representative case. For 100 trials, we find that the coefficient of determination ranges from 0.800 to 0.826 with a mean of 0.815, which is consistent with the ranges of the testing sets.

The effect of NNETFIX on quantities such as SNR and sky localization varies for different component masses, network SNR, and gate settings. Therefore, we construct 108 additional independent exploration sets with fixed network SNR $\rho_\mathrm{N} = (11.3$, 28.3, 42.4) and component masses of (12, 10), (20, 15), (35, 29) $M_\odot$, and identical combinations of gate durations and end-times as the TT sets. Each exploration set consists of 512 independent time series with the remaining parameters distributed as in the TT sets.

3. Performance in the time-domain

NNETFIX's performance in estimating the full time series can be assessed by computing the amount of SNR lost in the reconstruction process. We define the fractional residual SNR (FRS)

Equation (2)

where ρf and ρr are the (single interferometer) peak SNR of the full time series and the reconstructed time series in H1, respectively. Positive values of FRS close to zero generally indicate accurate time series reconstructions. However, FRS ∼ 0 may also occur when the gating does not significantly reduce the peak SNR of the full series, and thus, $\rho_f\sim\rho_g\sim\rho_r$. These cases can be separated by the fractional SNR gain (FSG):

Equation (3)

where ρg is the peak SNR of the gated series. FSG characterizes the amount of SNR gained by the reconstructed time series in comparison to the gated time series. Typically, NNETFIX performance is better for smaller values of FRS and larger values of FSG.

Median values of FRS across the exploration sets range from FRS = −0.09 (high-mass case with ρN  = 11.3, td  = 170 ms and te  = 50 ms) to FRS = 0.22 (medium-mass case with ρN  = 28.3, td  = 15 ms and te  = 130 ms). Sets with smaller gate durations are generally characterized by lower FRS values. All exploration sets with td  = 50 ms have FRS $\lt0.1$. The fraction of sets with FRS below this threshold reduces to 0.78 and 0.55 for gate durations of 75 and 130 ms, respectively. Similarly, exploration sets with gates that are farther away from the time of the merger also tend to have a lower median value of FRS. All sets with gate end-times at 170 ms before merger have median FRS $\lt0.07$ while only 81%, 55% and 11% of the samples with te  = 90, 30 and 15 ms have FRS below this threshold, respectively. The effects of the network SNR and component masses on FRS are less significant. About 83% of the sets with ρN  = 11.3 have median FRS $\lt0.1$ compared to 75% for the sets with ρN  = 28.3 and ρN  = 42.4. The percentages of low-mass, medium-mass and high-mass sets with FRS $\lt0.1$ are comparable at about 78%, 75% and 81%, respectively.

Median values of FSG range from ∼ 0.02 (low-mass, low-SNR case with td  = 170 ms and te  = 50 ms) to ∼ 0.89 (high-mass, low-SNR case with td  = 130 ms and te  = 15 ms). High-mass (low-mass) exploration sets are typically characterized by higher (lower) values of FSG. All high-mass sets have FSG $\gt0.08$, while all low-mass sets have FSG $\lt0.07$. The network SNR does not seem to significantly affect the value of FSG. Gate end-times closer to the merger time tend to result in higher FSG. The value of FSG at te  = 30 ms is higher than the value at te  = 170 ms by a factor of ∼ 2 on average for fixed component masses, network SNR, and gate duration. In contrast, longer gate durations tend to result in higher FSG. The value of FSG at td  = 130 ms is higher than the value at td  = 50 ms by a factor of ∼ 2 on average for fixed component masses, network SNR, and gate end-time. Two thirds of the sets with td  = 130 ms have FSG $\gt0.08$ compared to only 42% of the sets with td  = 50 ms.

We find that a combined threshold of FRS $\gt 0$ and FSG $\gt 0.01$ selects approximately 70% of the samples across all the exploration sets; 95% of these are successfully reconstructed as defined in the rest of this section. Figure 2 shows the NNETFIX data reconstruction for the time series of figure 1. As shown in figure 3, the reconstructed time series recovers a large signal energy in the gated portion. In this case, FRS = 0.05 and FSG = 0.53.

Figure 2.

Figure 2. The whitened full time series (gray), the gated time series (red) and the reconstructed time series (blue) for the simulated event of figure 1. The vertical black-dashed line denotes the merger time in H1.

Standard image High-resolution image
Figure 3.

Figure 3. Time frequency representations of the full (left), gated (middle), and reconstructed (right) time series for the simulated event of figure 2 using the Q transform [42]. The vertical red-dashed line denotes the gate and the vertical white-dotted line denotes the merger time in H1.

Standard image High-resolution image

A complementary metric to evaluate the performance of the algorithm is the fractional match gain (FMG):

Equation (4)

where the match Mi between a time series si and the injected waveform h is [43]

Equation (5)

The inner product of two time series si and sj is defined as

Equation (6)

where the tilde indicates the Fourier transform, the star denotes the complex conjugate, S(f) is the detector noise power spectral density (PSD), f1 is the high-pass frequency, and fN is the Nyquist frequency.

In equation (4), we assume $M_f - M_g\gt0$. In rare instances (0.5% of all exploration set data samples), Mg becomes larger than Mf . This occurs for small values of the single interferometer peak SNR (median value of 4.6) when the gated portion of the data is dominated by noise and anti-correlates with the injected waveform. In the following, we remove these data samples from the exploration sets.

FMG assesses how well the NNETFIX reconstructed data matches the signal in comparison to the full data and gated data. Positive (negative) values of FMG correspond to Mr greater (smaller) than Mg , indicating that the NNETFIX reconstructed time series has a better (worse) match with the injected waveform than the gated time series. Values of FMG larger than 1 indicate that the ANN overfits the data, i.e. the reconstructed time series is more similar to the injected waveform than the full time series. Therefore, we consider the reconstructions with $0\lt\textrm{FMG}\leqslant 1$ to be successful. As noted earlier, 95% of the samples which pass the combined threshold of FRS $\gt 0$ and FSG $\gt 0.01$ satisfy this condition. Figures 4 and 5 show the distributions of FMG for two exploration sets from the medium-mass scenario. Figure 6 displays the comparison of these distributions.

Figure 4.

Figure 4. Scatterplot of $M_r/M_f$ vs. $M_g/M_f$ for the exploration set with ρN  = 42.4, $(m_1,m_2) = (20,15)$ $M_\odot$, td  = 130 ms and te  = 30 ms. The circles denote samples with $0\lt\textrm{FMG}\leqslant 1$, the × markers denote samples with FMG $\leqslant 0$ and the + markers denote overfitted samples with FMG $\gt1$. The gray area denotes the region of the parameter space with $0\lt\textrm{FMG}\leqslant 1$, which contains 95% of the reconstructed time series. Two outliers with values FMG = −0.4 and FMG = 1.6 are not shown in the plot in order to improve readability.

Standard image High-resolution image
Figure 5.

Figure 5. Scatterplot of $M_r/M_f$ vs. $M_g/M_f$ for the exploration set with ρN  = 11.3, $(m_1,m_2) = (20,15)$ $M_\odot$, td  = 130 ms and te  = 30 ms. The circles denote samples with $0\lt\textrm{FMG}\lt1$, the × markers denote samples with FMG $\leqslant 0$ and the + markers denote overfitted samples with FMG $\gt1$. The gray area denotes the region of the parameter space with $0\lt\textrm{FMG}\leqslant 1$, which contains 59% of the reconstructed time series.

Standard image High-resolution image
Figure 6.

Figure 6. Distribution of FMG for the exploration sets with component masses $(m_1,m_2) = (20,15)$ $M_\odot$, gate duration td  = 130 ms, gate end-time te  = 30 ms, and ρN  = 11.3 (gray-filled) and ρN  = 42.4 (red). The vertical dashed lines denote FMG = 0 and FMG = 1. The efficiency of the set with ρN  = 11.3 is 59%. The efficiency of the set with ρN  = 42.3 is 95%.

Standard image High-resolution image

We quantify NNETFIX's performance by estimating the reconstruction efficiency, which we define as the fraction of successfully reconstructed samples, i.e. samples with $0\lt\textrm{FMG}\leqslant 1$. The fractions of samples with FMG $\leqslant 0$, $0\lt\textrm{FMG}\leq 1$ and FMG $\gt1$ for all exploration sets are given in tables 24. The efficiency across all exploration sets varies from approximately 0.31 to over 0.95. There is a mild dependence on the component masses of the system; the median value of the efficiency decreases from 0.77 for the low-mass scenario to 0.61 for the high-mass scenario when all other parameters (network SNR, gate duration and gate end-time) are held fixed. The worst case is the medium-mass scenario with ρN  = 11.3, te  = 170 ms, and td  = 130 ms, in which 68% of the samples are unsuccessfully reconstructed.

Table 2. Fraction of samples with FMG $\leqslant 0$, $0 \lt \textrm{FMG} \leqslant 1$ and FMG $\gt1$ for the exploration sets with component masses $(m_1,m_2) = (12,10) M_\odot$. Boldface entries denote sets where the fraction of samples with $0 \lt \textrm{FMG} \leqslant 1$ is larger than 50%.

Network SNR11.328.342.4
td (ms) 507513050751305075130
te (ms)150.33/0.54/0.140.34/0.55/0.110.31/0.66/0.040.21/0.76/0.030.13/0.85/0.010.16/0.84/0.000.10/0.88/0.020.07/0.93/0.010.06/0.94/0.00
300.30/0.46/0.240.31/0.46/0.230.29/0.63/0.080.15/0.78/0.070.16/0.80/0.040.16/0.84/0.010.06/0.88/0.060.04/0.93/0.040.06/0.94/0.01
900.28/0.39/0.330.32/0.36/0.320.31/0.52/0.170.10/0.69/0.210.15/0.71/0.130.14/0.82/0.050.03/0.80/0.170.07/0.84/0.090.07/0.92/0.01
1700.28/0.40/0.330.31/0.40/0.290.34/0.38/0.270.09/0.68/0.230.15/0.71/0.140.21/0.67/0.120.02/0.84/0.140.05/0.83/0.130.11/0.83/0.06

Table 3. Fraction of samples with FMG $\leqslant 0$, $0 \lt \textrm{FMG} \leqslant 1$ and FMG $\gt1$ for the exploration sets with component masses $(m_1,m_2) = (20,15) M_\odot$. Boldface entries denote sets where the fraction of samples with $0 \lt \textrm{FMG} \leqslant 1$ is larger than 50%.

Network SNR11.328.342.4
td (ms) 507513050751305075130
te (ms)150.28/0.52/0.190.31/0.55/0.150.29/0.64/0.060.12/0.78/0.100.14/0.83/0.030.13/0.87/0.010.04/0.89/0.060.04/0.94/0.020.05/0.95/0.00
300.29/0.34/0.370.29/0.49/0.220.31/0.59/0.100.11/0.68/0.210.10/0.82/0.080.11/0.88/0.010.04/0.75/0.210.05/0.91/0.040.04/0.95/0.01
900.24/0.42/0.340.30/0.38/0.320.29/0.39/0.320.04/0.76/0.200.08/0.72/0.200.17/0.69/0.150.02/0.79/0.200.03/0.79/0.190.10/0.80/0.10
1700.20/0.42/0.370.26/0.42/0.320.31/0.32/0.360.04/0.69/0.270.04/0.72/0.230.11/0.69/0.190.01/0.78/0.210.01/0.80/0.190.06/0.79/0.15

Table 4. Fraction of samples with FMG $\leqslant 0$, $0 \lt \textrm{FMG} \leqslant 1$ and FMG $\gt1$ for the exploration sets with component masses $(m_1,m_2) = (35,29) M_\odot$. Boldface entries denote sets where the fraction of samples with $0 \lt \textrm{FMG} \leqslant 1$ is larger than 50%.

Network SNR11.328.342.4
td (ms) 507513050751305075130
te (ms)150.19/0.50/0.310.27/0.53/0.200.25/0.44/0.310.04/0.76/0.200.05/0.84/0.110.07/0.76/0.170.02/0.80/0.190.02/0.90/0.080.02/0.81/0.17
300.21/0.35/0.450.24/0.34/0.420.24/0.44/0.320.03/0.60/0.370.03/0.56/0.410.05/0.76/0.190.01/0.62/0.370.03/0.66/0.310.02/0.86/0.12
900.17/0.47/0.360.12/0.31/0.570.21/0.32/0.470.01/0.75/0.240.02/0.42/0.570.04/0.51/0.460.00/0.79/0.210.00/0.38/0.620.01/0.59/0.40
1700.14/0.42/0.440.15/0.40/0.450.22/0.45/0.330.01/0.63/0.360.01/0.64/0.350.05/0.75/0.200.01/0.67/0.320.00/0.65/0.350.01/0.88/0.11

Within each mass scenario when the gate duration and gate end-time are held fixed, NNETFIX's efficiency typically improves by a factor ∼ 1.5–2 as the network SNR increases. As the SNR becomes higher, the algorithm can rely on a larger amount of signal energy before and after the gated portion of the data to reconstruct the time series. NNETFIX successfully reconstructs over two thirds of the time series with ρN  = 28.3 or larger for all low-mass and medium-mass exploration sets and over half of the time series for the high-mass sets with the exception of two marginal cases with gate duration td  = 75 ms and gate end-time te  = 90 ms. The exploration sets with ρN  = 11.3 exhibit lower efficiencies, ranging from 31% for the high-mass set with td  = 75 ms and te  = 90 ms to 66% for the low-mass set with td  = 130 ms and te  = 15 ms.

Figure 7 shows the efficiency for the exploration sets with component masses $(m_1,m_2) = (20,15) M_\odot$ as a function of the single interferometer peak SNR. The percentage of successful reconstructions ranges from ∼ 33%–66% at low peak SNR to $\gtrsim$ 80% at high peak SNR, with the lowest values $\lesssim$ 40% occurring for the sets with $t_d\geqslant 75$ ms and $t_e\geqslant 30$ ms. Time series with peak SNR above ∼ 20 show successful reconstructions in 70% or more of the cases, irrespective of gate duration and end-time.

Figure 7.

Figure 7. Efficiency as a function of the single interferometer peak SNR for the scenario with component masses $(m_1,m_2) = (20,15)$ $M_\odot$. Each line corresponds to a different gate duration and gate end-time combination. The top (middle, bottom) panel shows the efficiency for td  = 50 (75, 130) ms. Green circle (blue cross, black square, red star) markers denote gate end-times te  = 15 (30, 90, 170) ms. The efficiency is calculated for the samples within a bin of width 5 centered on each point.

Standard image High-resolution image

Changing the gate duration does not seem to have a significant effect on NNETFIX's efficiency, which only varies slightly at fixed network SNR and gate end-time across all exploration sets. Similarly, for fixed gate duration and network SNR, the gate end-time before merger time also has a marginal effect, although NNETFIX tends to produce better reconstructions when the gate is closer to the merger time, especially for long gate durations in the low-mass and medium-mass scenarios.

In conclusion, we find that NNETFIX may successfully reconstruct gated data of durations up to a few hundreds of milliseconds and as close as a few tens of milliseconds before the merger time for a majority of time series with single interferometer peak SNR greater than 20.

4. Performance of sky maps

The NNETFIX reconstructed time series can be used to produce sky maps that are expected to have better sky localization error regions of the astrophysical signal in comparison to sky maps produced from the gated time series. We evaluate this improvement by comparing the overlaps of the sky map derived from the full time series with the sky maps derived from the gated time series and the reconstructed time series. In the following, we generate the sky maps with a modified version of a pyCBC [43] script, pycbc_make_skymap, in which the data can be manually gated.

Similar to reference [44], we define the overlap of two sky maps (1,2) as

Equation (7)

where p1(Ω) and p2(Ω) are the sky localization probability densities of the sky maps in units of inverse square radians and the integrals are over the solid angle Ω. The discretized version of equation (7) is

Equation (8)

where P1i and P2i each denote the sky localization probability of the ith pixel of the corresponding sky map, and N is the total number of pixels. Each sky map is normalized such that the sum of the pixel values over the entire map is 1. Equation (8) gives values in the range (0, N). Higher values of O1,2 indicate a better overlap between the two maps while lower values denote worse overlaps and/or maps which tend to have less-localized error regions. For example, two overlapping sky maps each with a uniform probability distribution would have O1,2 = 1, while two sky maps with their entire probability distributions confined to the same single pixel would have O1,2 = N.

A suitable metric to evaluate the improvement in the sky localization of a signal due to NNETFIX's reconstruction is the overlap log ratio (ORL):

Equation (9)

where Or, f (Og, f ) denote the overlaps of the sky maps obtained with the reconstructed (gated) time series and the full series. Positive (negative) values of ORL indicate that the sky map from the reconstructed time series has a larger (smaller) overlap with the sky map from the full time series than the latter has with the sky map from the gated time series. Tables 57 give the fraction of samples with positive ORL for all exploration sets.

Table 5. Fraction of samples with positive ORL for the exploration sets with component masses $(m_1,m_2) = (12,10) M_\odot$.

Network SNR11.328.342.4
td (ms) 507513050751305075130
te (ms)150.520.530.560.620.710.740.760.830.87
300.560.530.520.680.730.760.810.850.91
900.550.510.530.690.650.740.780.790.86
1700.610.580.510.720.640.650.790.770.76

Table 6. Fraction of samples with positive ORL for the exploration sets with component masses $(m_1,m_2) = (20,15) M_\odot$. Entries in italic denote sets where the fraction of samples is smaller than 0.5.

Network SNR11.328.342.4
td (ms) 507513050751305075130
te (ms)150.51 $\textit{0.49}$ 0.550.680.740.790.840.850.84
30 $\textit{0.46}$ $\textit{0.48}$ 0.510.690.760.800.850.880.88
900.610.50 $\textit{0.47}$ 0.740.750.650.860.850.79
1700.620.56 $\textit{0.47}$ 0.770.780.670.840.870.82

Table 7. Fraction of samples with positive ORL for the exploration sets with component masses $(m_1,m_2) = (35,29) M_\odot$. Entries in italic denote sets where the fraction of samples is smaller than 0.5.

Network SNR11.328.342.4
td (ms) 507513050751305075130
te (ms)150.570.53 $\textit{0.43}$ 0.770.790.690.850.830.73
300.51 $\textit{0.45}$ $\textit{0.49}$ 0.810.810.820.910.870.87
900.650.63 $\textit{0.46}$ 0.840.800.750.930.890.87
1700.650.640.570.790.840.800.880.910.91

High values of ORL are obtained when the overlap of the reconstructed sky map with the sky map from the full time series is large or when the overlap of the gated sky map with the sky map from the full time series is small. The former typically occurs for reconstructed time series with large values of FMG. The latter may happen when the loss of signal due to the gate is high and even small gains in the single interferometer peak SNR have a significant impact on the sky localization.

An example of the ORL distribution as a function of Og, f is shown in figure 8 for the exploration set with ρN  = 42.4, component masses $(m_1,m_2)$ = (20,15) $M_\odot$, tg  = 130 ms and te  = 30 ms. The median value of ORL is $1.14^{+1.15}_{-1.10}$, where the error is a 1-σ percentile. ORL is positive in 87% of the samples. Median values of ORL for all exploration sets are given in tables 810.

Figure 8.

Figure 8. Scatterplot of ORL and Og, f for the 512 samples from the exploration set with ρN  = 42.4, component masses $(m_1,m_2) = (20,15)$ $M_\odot$, gate end-time te  = 30 ms and gate duration td  = 130 ms. The colored circles denote samples with $0 \lt \textrm{FMG} \leqslant 1$, the × markers denote samples with FMG $\leqslant 0$ and the + markers denote overfitted samples with FMG $\gt 1$. 87% of the samples have positive ORL. The median value is ORL$\ = 1.14^{+1.15}_{-1.10}$, where the error is a 1−σ percentile.

Standard image High-resolution image

Table 8. Median values of ORL for the exploration sets with component masses $(m_1,m_2) = (12,10) M_\odot$.

Network SNR11.328.342.4
td (ms) 507513050751305075130
te (ms)150.00120.00640.00960.0160.0310.0560.0510.0860.14
300.00440.00590.00220.0150.0280.0440.0440.0730.14
900.00320.00050.00210.00910.0110.0340.0260.040.10
1700.00260.00370.00070.00760.00630.0180.0180.0320.060

Table 9. Median values of ORL for the exploration sets with component masses $(m_1,m_2) = (20,15) M_\odot$. Italic entries denote sets with negative values.

Network SNR11.328.342.4
td (ms) 507513050751305075130
te (ms)150.0023 $-\textit{0.0007}$ 0.0160.0540.0870.170.160.240.32
30 $-\textit{0.0050}$ $-\textit{0.0029}$ 0.00390.0440.0790.150.130.220.31
900.00490.0002 $-\textit{0.0051}$ 0.0250.0460.0500.0740.130.25
1700.00470.0051 $-\textit{0.0044}$ 0.0230.0370.0450.0460.0980.17

Table 10. Median values of ORL for the exploration sets with component masses $(m_1,m_2) = (35,29) M_\odot$. Italic entries denote sets with negative values.

Network SNR11.328.342.4
td (ms) 507513050751305075130
te (ms)150.0230.0098 $-\textit{0.1400}$ 0.330.450.680.620.820.96
300.0032 $-\textit{0.043}$ $-\textit{0.0099}$ 0.250.420.720.560.831.1
900.0130.024 $-\textit{0.015}$ 0.0880.210.410.240.480.82
1700.0120.0160.00850.0460.0810.110.120.220.29

Values of ORL across the exploration sets generally increase with network SNR, component masses and gate duration. The network SNR of the signal is the main factor that determines the value of ORL. Because NNETFIX efficiently reconstructs time series containing signals with large SNRs, when network SNRs are large, the sky maps obtained from the full data are typically more similar to the sky maps from the reconstructed data than to the sky maps from the gated data. We find positive ORL median values for all exploration sets with $\rho_N\geqslant 28.3$, irrespective of mass, gate duration and end-time. For these sets, the median values of ORL for the high-SNR sets are greater than the corresponding values for the medium-SNR sets by a factor ranging from ∼ 1.4 for the high-mass scenario with td  = 130 ms and te  = 15 ms to ∼ 5 for the low-mass scenario with td  = 75 ms and te  = 170 ms. The sky maps of reconstructed time series with lower SNR generally show little improvement compared with the sky maps of gated time series. Median values of ORL for the sets with ρN  = 11.3 are typically around zero, irrespective of the mass scenario, gate duration and gate end-time.

The second most important factor that determines ORL are the component masses. Median ORL values typically increase as values of the component masses become larger. For the exploration sets with ρN  = 28.3 (42.4), the median values of ORL for the high-mass exploration sets are greater than the corresponding values for the low-mass exploration sets by a factor ranging from ∼ 1.5 (2.3) for td  = 130 ms and te  = 90 ms (td  = 130 ms and te  = 15 ms) to ∼ 20.5 (12.6) for td  = 50 ms and te  = 15 ms (td  = 50 ms and te  = 30 ms).

Median values of ORL have a roughly linear dependency on gate duration. For the high-SNR and medium-SNR exploration sets, the median values of ORL for td  = 130 ms are larger than the corresponding values for td  = 50 ms by a factor ranging from ∼ 1.6 (medium-mass scenario with ρN  = 42.4 and te  = 15 ms) to ∼ 4.7 (high-mass scenario with ρN  = 28.3 and te  = 90 ms). Since longer gate durations correspond to greater signal losses, NNETFIX's reconstruction provides larger SNR gains and ORL values as the gate duration increases.

The portion of a signal close to the merger time has a greater impact on the sky map than the portion of the signal in the early inspiral phase. Therefore, median values of ORL for the medium-SNR and high-SNR exploration sets with te  = 15 ms are typically higher than the corresponding values for the sets with te  = 170 ms by a factor ranging from ∼ 1.1 (low-mass scenario with ρN  = 28.3 and td  = 90 ms) to ∼ 7.1 (high-mass scenario with ρN  = 28.3 and td  = 50 ms). For shorter signals and larger gate durations, a gate end-time very close to the merger time may lead to large signal losses and removal of the merger portion of the signal in H1, and thus, make the reconstruction process less efficient. Figure 9 shows ORL as a function of the gate end-time for the high-mass sets with td  = 130 ms and different network SNRs. Figure 10 shows the sky localization error region that is obtained with the NNETFIX reconstructed data for the case of figure 1. The value of ORL is ∼ 1.7, corresponding to improving the overlap by a factor of ∼ 50.

Figure 9.

Figure 9. ORL as a function of the gate end-time te for the exploration set with component masses $(m_1,m_2) = (35,29)~ M_\odot$, gate duration td  = 130 ms, and different network SNRs ρN  = 11.3 (cyan solid), ρN  = 28.3 (red dashed), and ρN  = 42.4 (blue dashed). The curves denote median values. Shaded areas are 1 − σ percentiles.

Standard image High-resolution image
Figure 10.

Figure 10. The 90% probability sky localization error regions obtained with the reconstructed (dashed-blue), full (gray area) and gated (solid-red) time series for the case of figure 1. The star denotes the injection location.

Standard image High-resolution image

In summary, for a majority of the cases with gate durations up to a few hundreds of milliseconds and as close as a few tens of milliseconds to the merger time, the sky maps of reconstructed time series with network SNR $\rho_N \geqslant 28.3$ better overlap with the sky maps of the full time series compared to the sky maps obtained with gated data (in some cases by a factor up to over 1000%). In these cases, it can also be shown that the true direction of the signals typically belong to sky localization error regions for the reconstructed data with smaller probability contour values than the regions obtained with gated data.

5. Conclusion

In this paper, we have presented NNETFIX, a new machine learning-based algorithm designed to estimate the portion of a BBH GW signal that may be gated due to the presence of an overlapping glitch. The reconstructed data can be used by other algorithms to produce better sky maps and for parameter estimation. We have tested the accuracy of NNETFIX with different choices of signal parameters and gate settings, and defined several metrics to assess the algorithm's performance. Among these metrics, the most important ones are FMG and ORL.

FMG quantifies the algorithm's efficiency in reconstructing the gated data in the time domain. Positive values of this metric indicate that the full time series better matches the NNETFIX reconstructed time series than the gated time series. The fraction of samples that show improvement varies from approximately one third to over 95% across the cases that we investigated. Results show that NNETFIX may be able to successfully reconstruct a majority of BBH signals with peak single interferometer SNR greater than 20 and gates with durations up to a few hundreds of milliseconds as close as a few tens of milliseconds before their merger time.

ORL quantifies the algorithm's efficiency in improving the sky map from the gated time series. Positive values of this metric indicate that the sky map from the NNETFIX reconstructed time series has a larger overlap with the sky map from the full time series than the one obtained from the gated data. Sky maps from reconstructed data improve for higher network SNR values as the ANN can use a larger amount of signal energy to estimate the missing portion of the waveform. We find positive ORL median values for all cases that we investigated with network SNR above 28.3. Perhaps surprisingly, NNETFIX seems also to perform better in cases with longer gate durations or shorter signals. In these scenarios, the sky localizations obtained with gated data are considerably degraded. Thus, the improvements in the reconstructed sky maps are more sizeable. Reconstructed sky maps of more massive BBH mergers typically show significant improvements compared to the sky maps obtained with gated data.

In a real case scenario, we envision NNETFIX to be pre-trained on real noise data from the detectors for a sparse set of models, each covering a region of the five-dimensional parameter space spanned by network SNR, component masses, gate duration, and gate end-time before geocentric merger time, as was illustrated in section 2 (but with a finer grid). While the optimal value of the network SNR and the best estimates of the signal component masses are unknown to the observer because of the gating, the gated data and/or the data from the second interferometer may provide a rough estimate of these parameters. The estimated values of these parameters and the known gate parameters can then be used to choose the most appropriate pre-trained model in the NNETFIX bank. Typically, the NNETFIX reconstructed time series will produce a higher single interferometer peak SNR than the gated time series. If that is the case, the known FSG can be used to estimate the optimal single interferometer peak SNR of the (unknown) full time series by fitting the expected roughly linear relation between FRS and FSG for the given TT set.

The overlap of the sky map from the NNETFIX reconstructed data with the sky map that could be obtained with the full data (if it were not contaminated by a glitch), Or,f , can be estimated by looking at the distribution of ORL for the TT set at hand. The exploration sets that we investigated show that there is a well-defined correlation between ORL, FSG and the overlap between the sky maps obtained from the gated data and the NNETFIX reconstructed data, Or,g . If this correlation is generally valid, ORL can be estimated from the observed values of the Or,g and FSG using a fit calculated from the TT set used to train the selected NNETFIX model. To expedite this process, the samples in each TT set could be clustered according to the distributions of ORL, the Or,g , and FSG. A classifier could then be trained to estimate the optimal SNR and sky localization error region of the full signal.

Once NNETFIX has been trained, the CPU time required to reconstruct the data is of the order of a few seconds for gate durations up to hundreds of milliseconds. This short turnout makes the algorithm suitable to be used in low-latency. Additional machine learning-based algorithms could also be implemented to further speed up the sky localization portion of the process. For example, the method described in reference [25] may produce sky localizations with an execution time on the order of 0.01 s, making this method an interesting option for generating low-latency sky maps. NNETFIX could also be applied to GW signals other than BBH mergers, such as BNS or NSBH mergers. Therefore, it could be beneficial for rapid follow-up of glitch-contaminated, potentially EM-bright candidate detections. In future work, we intend to test NNETFIX on real BBH detections and explore the algorithm's application to BNS signals as well as detector network configurations with more than two detectors. Improving the sky localizations of potentially EM-bright signals could increase the chances of coincident EM and GW observations and lead to a better understanding of the physical properties of their sources.

Acknowledgments

K M, R Q J, and M C are supported by the U.S. National Science Foundation Grant Nos. PHY-1921006 and PHY-2011334. The authors would like to thank their LIGO Scientific Collaboration and Virgo Collaboration colleagues for their help and useful comments, in particular Tito Dal Canton. The authors are grateful for computational resources provided by the LIGO Laboratory and supported by the U.S. National Science Foundation Grant Nos. PHY-0757 058 and PHY-0823 459, as well as resources from the Gravitational Wave Open Science Center, a service of the LIGO Laboratory, the LIGO Scientific Collaboration and the Virgo Collaboration. Part of this research has made use of data, software and web tools obtained from the Gravitational Wave Open Science Center and openly available at https://www.gw-openscience.org. LIGO was constructed and is operated by the California Institute of Technology and Massachusetts Institute of Technology with funding from the U.S. National Science Foundation under Grant No. PHY-0757 058. Virgo is funded by the French Centre National de la Recherche Scientifique (CNRS), the Italian Istituto Nazionale di Fisica Nucleare (INFN) and the Dutch Nikhef, with contributions by Polish and Hungarian institutes. This manuscript has been assigned LIGO Document Control Center Number LIGO-P2000497.

Data availability statement

No new data were created or analyzed in this study.

Please wait… references are loading.
10.1088/2632-2153/abea69