1 Introduction
Ten binary black hole (BBH) coalescences were detected during the first (O1) and second (O2) observing runs of [
1-
8], which has led us to the era of gravitational-wave (GW) astronomy [
9], as well as the era of multi-messenger astronomy [
10]. third (O3) observing run has already begun, and more GW events are expected to be observed. Developing fast and robust analysis methods to extract GW signals from data will be urgent as the improvement of detectors’ sensitivities in the upcoming years. Currently, the standard method for detecting transient GW signals is the matched filtering technique. Although it works very well in the extraction of weak signals, a huge amount of computational cost is required to process the data which might contain the GW signals. This makes the matched filtering technique unsuitable for the future multi-messenger observations [
11].
Deep learning is a new direction of machine learning. Its motivation is to establish and simulate the neural network of human brain for analytical learning. In recent years, deep learning has developed rapidly in the fields of image processing [
12-
14], medical diagnosis [
15], and signal recognition [
16]. Deep learning has also been applied to process the data containing the GW signals [
17-
27]. For example, Fan
et al. showed that deep neural network (DNN) can effectively recognize the presence of GW signals and estimate the corresponding source space parameters, including the luminosity distance, right ascension, and declination of the compact binary star mergers [
25]. Specifically, Gabbard
et al. demonstrated that convolutional neural networks (CNN) can achieve the sensitivity of matched filtering [
23]. They are generous to provide their codes on the github [
28] so that we can follow and reproduce their results. We find that the fitting effect on the training set is much higher than the generalization effect on the test set in their model, which implies that there may exist an overfitting issue. In this work, we show that their model can be optimized to achieve a better accuracy.
The rest of this paper is organized as follows. Section 2 introduces the data preparation. Section 3 and Section 4 present the optimized model and the corresponding results. Summary is given in Section 5.
2 Data preparation
The data we use are the same as those given by [
23]. Here we only consider Gaussian noise, and we use the same random seeds as those adopted by Gabbard
et al. The application of deep learning on GW data with non-Gaussian noise can be found in Refs. [
18,
29-
33]. We only distinguish the two cases: BBH merger signals plus Gaussian noise, and Gaussian noise only. As was done in Ref. [
23], we whiten the simulated GW time series with the detector noise’s power spectral density (PSD) corresponding to the Advanced LIGO design sensitivity [
34] to rescale the noise contribution at each frequency for equal power. Besides, a Turkey window function is chosen to truncate signal data.
In the simulations of the GW signals, we use the IMRPhenomD-type waveform [
35,
36] which has been implemented in the LALSuite library [
37]. The masses of black hole (BH) vary from 5 to 95
, which are drawn from an astrophysically-motivated distribution where
and
[
6]. Here,
m1 and
m2 represent the masses of the primary and secondary BHs in a binary system. Similar to Ref. [
23], we ignore the spins of BHs, and assume that the right ascension and declination follow an isotropic distribution on the sky. The polarization angle and phase are drawn from a uniform prior distribution on the range
. The cosine of the inclination angle is drawn from a uniform prior distribution on the range
. The waveforms are then randomly placed in the time series such that the peak amplitude of each waveform is randomly located within the fractional range
of the time series. All parameters are drawn from the same distributions as in Ref. [
23].
For the training set, the number of noise implementations for each signal is chosen as 25. For the validation set and the test set, this number is chosen as 1. We also set different random seeds when generating these three sets. The waveform amplitude is scaled to achieve a predefined optimal signal-to-noise ratio (SNR), , which is defined as
where is the GW strain in the frequency domain, is the PSD of detector noise. The amplitude of a Gaussian noise being added into the time series is given by
where is the observation duration, a is a free parameter which will be tuned to realize different noise configurations. The simulated time series are sampled at 8192 Hz and last for 1 s. In Fig. 1, we show a representative time series of the data sets used to train, validate and test the optimized CNN. Class 0 contains Gaussian noise only, while Class 1 represents the same Gaussian noise plus a GW signal.
3 CNN model and optimization
Deep learning can be categorized into supervised learning and unsupervised learning. A major difference between supervised learning and unsupervised learning is that only the former needs label information in the training samples. Gabbard
et al. [
23] proposed a CNN for extracting the GW signals and achieved a similar performance on the Receiver–Operator Characteristic (ROC) as the matched filtering technique did. The CNN belongs to the supervised learning. Three data sets including a training set, a validation set and a test set are needed to accomplish the supervised learning. The parameters (such as the weight of the connections between neurons) of the CNN model are initially fitted on the training set, and then further tuned on the validation set [
38]. Finally, the test set is used to assess the performance of a specified model [
39]. The CNN consists of an input and an output layer, as well as one or multiple hidden layers. The structures of the CNN are built with the procedures – alternating the convolution layers and the max-pooling layers followed by a small number of the fully-connected layers. Convolution layers carry on the convolution operations – making the inner products of the input value and the weight of the filter. More details on the convolution operation can be found in Ref. [
40].
In Ref. [
23], the Nadam adaptive learning rate optimization is employed, which can be written as [
41]
where is the target loss function. gt is the gradient of with respect to . mt and nt are the first and the second moment estimates of the gradient, respectively, which can be regarded as the estimates for the expectations of and . and are the corrected mt and nt respectively, which can be approximated as the unbiased estimates of the expectations. μ and ν are the attenuation factors. η is learning rate, and is a small number used to ensure the denominator to be non-zero.
The nonlinearity of the CNN network is mainly due to the use of activation functions. Two types of activation functions are used in Ref. [
23]. One is the exponential linear unit (Elu) function used in the convolutional layer and the hidden layer, and the other is the Softmax (SMax) function used in the output layer. The Elu function is expressed as
where . Compared to Sigmoid and the rectified linear unit (Rlu), the Elu activation function has soft saturation on the left side, which makes the Elu more robust to input changes or noise, and its linearity on the right side ensures that the Elu can alleviate the gradient disappearance. In addition, the output average of the Elu is close to zero, so the convergence speed is very fast.
The output layer uses the SMax function to perform the binary classification process. The output of the two neurons is mapped to the vector in the
interval, and the component with the value greater than 0.5 is taken as the input sample category. The Keras package [
42] is employed to realize the CNN model.
The CNN model built in Ref. [
23] achieves a good performance, but there still exist an overfitting issue. Based on their model, we make some modifications as follows. First, we add a dropout layer after the max pooling layer to optimize their model. Dropout drops units (along with their connections) randomly from the neural network during training. This prevents the units from co-adapting too much [
43]. Second, it has been demonstrated that the max pooling can be replaced simply by a convolution layer with an increased step size (the amount of movement between the applications of the filter to the input) or the step of the max pooling can be increased to 2 without loss of precision on the data sets (CIFAR-10, CIFAR-100, ImageNet) [
44]. The max pooling extracts several feature values from a filter, and only takes the largest one of them as a reserved value. All other feature values are discarded. Therefore, we also increase the stride of the max pooling and the corresponding convolution layer to 2 in the optimized model. All modifications can alleviate the overfitting issue.
In this work, we generate independent time series samples, of which are used for training, for validation, and for testing. Throughout this paper, we choose , , ε=10-8 and .
The structure of the optimized CNN model used in this work is shown in Table 1. It is worth noting that we only increase the convolution-layer stride corresponding to the max pooling layer to 2. The sizes of the input data at each layer are given in Table 2.
4 Results
In order to evaluate the performance of the optimized CNN model, we compare the ROC of the optimized CNN model with that of the original CNN model [
23] on the simulated data. In the ROC plot, the abscissa is the false alarm probability (
) and the ordinate is the true alarm probability (
), which are defined as
where , , , and represent the sample numbers of true positive, false positive, true negative and false negative, respectively.
The area enclosed by the ROC curve and the coordinate axis is defined as Area Under Curve (AUC), and the AUC value of the classifier is equivalent to the probability that the randomly selected positive samples are sorted before the randomly selected negative samples [
45]. The larger the AUC, the better the classifier classification effect is.
Figure 2 shows the comparisons of the ROC curves for different when . The AUC values are for and for in the optimized CNN model, in contrast to and in the original CNN model. They are increased by for and for , respectively.
In order to check the robustness of the optimized network to noise, we changed the amplitudes of the Gaussian noise, and the corresponding ROC curves are shown in Fig. 3 and Fig. 4, respectively. It can be seen that the AUC values have also been improved.
5 Summary
The successful detections of GWs not only confirm the classical prediction of general relativity, but also open a new window of GW astronomy for exploring the universe. At present, the matched-filtering method is used in the identification of real GW signals. However, matched filtering is time-consuming. This shortcoming limits its ability and potential in the future detections of GWs. In recent years, deep learning has been greatly developed in data processing, and the classical CNN has been demonstrated to achieve the sensitivity of matched filtering with a high efficiency in the recognization of the GW signals [
23]. In this work we make optimizations for the CNN model proposed by Gabbard
et al. [
23]. The simulation results show that the optimized CNN improves the AUC values by
for
and
for
when
, without increasing the running time. Our work further illustrates the advantages of deep learning in the retrieval of the GW signals.
Higher Education Press and Springer-Verlag GmbH Germany, part of Springer Nature 2020