DAS signal compression method based on recurrent neural network and autoencoder

Through the DAS signal compression method based on recurrent neural networks and autoencoders, the convolutional layer and RNN are used to extract features and perform quantization processing, combined with the PixelShuffle algorithm, to solve the problems of low signal-to-noise ratio and compression efficiency in the existing technology, and achieve Efficient DAS data compression and decompression greatly improves storage and transmission efficiency.

CN118249815BActive Publication Date: 2024-09-17CHENGDU UNIVERSITY OF TECHNOLOGY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410097804.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-24
Publication Date
2024-09-17
Estimated Expiration
2044-01-24

AI Technical Summary

Technical Problem

Existing DAS data compression methods cannot effectively improve the signal-to-noise ratio and provide a high compression ratio, resulting in deficiencies in the storage and transmission efficiency of DAS data.

Method used

The DAS signal compression method based on recurrent neural network and autoencoder is adopted. By constructing a compression network and decompression network, the convolution layer, RNN combination and quantization function layer are used to extract features and compress and decompress. Combined with the PixelShuffle algorithm, the network parameters are optimized to Improve compression efficiency.

Benefits of technology

It achieves a higher signal-to-noise ratio and a maximum compression ratio, significantly improving the transmission and storage efficiency of DAS signals. The ultimate compression ratio reaches 512, which is better than the CAE, DCT and DWT methods, and maintains a relatively high compression ratio under high compression ratio. High signal-to-noise ratio and data quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118249815B
    Figure CN118249815B
Patent Text Reader

Abstract

The present invention discloses a DAS signal compression method based on a recurrent neural network and an autoencoder, including obtaining a DAS data set; constructing a DAS signal processing neural network, including a compression network and a decompression network; the compression network controls the number of channels and size of the output data by controlling the dimension of the output hidden state, and gradually transfers the feature representation of the data from a single channel to multiple channels; the decompression network is used to reconstruct the DAS reconstructed data. During training, the present invention adopts a multi-round, multi-iteration method in each round, and considers the influence of training loss, additional loss, etc., so as to adjust the network parameters. Relying on the powerful time series processing ability and long-term dependency extraction ability of RNN, the present invention fully extracts the dependency relationship between DAS signals in the compression stage, greatly reduces the redundant information in the DAS signal, thereby being able to provide a large compression ratio and greatly improve the transmission and storage efficiency of the DAS signal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a DAS data compression method, and in particular to a DAS signal compression method based on a recurrent neural network and an autoencoder. Background Art

[0002] Distributed acoustic sensing (DAS) technology based on Rayleigh scattering uses optical fiber as a sensor to obtain information about environmental parameters by measuring the changes in optical signals in the optical fiber. In practical applications, DAS technology provides a highly potential solution for many application scenarios with its advantages of high sensitivity, high spatial resolution, long sampling distance, high sampling density, anti-electromagnetic interference, and resistance to harsh environments, especially for long-distance detection tasks such as pipeline leaks and tasks in harsh environments such as oil and gas exploration.

[0003] However, due to the high sampling frequency of DAS, the amount of records sampled by the DAS array is very large. The amount of records sampled by tens of kilometers of optical fiber in one day can reach TB level. This greatly limits the application of DAS technology in fields such as railway safety detection and natural earthquake monitoring. DAS data compression methods came into being.

[0004] Existing lossless compression methods based on DAS data include Lempel-Ziv-Welc (LZW), Huffman coding, and entropy coding. However, in order to completely reconstruct the original signal, lossless compression retains a large amount of redundant information that does not affect data quality during the compression process. As a result, the above methods cannot provide a large compression ratio during the DAS data compression process, and thus cannot adapt to the compression of large-scale DAS data.

[0005] Existing lossy compression methods based on DAS data include transform-based DWT and DCT, and neural network-based CAE. Transform-based DWT and DCT methods can provide higher compression quality at low compression ratios. However, as the compression ratio increases, their compression quality decreases significantly and cannot provide high compression ratios. More importantly, DWT and DCT methods have problems such as large computational complexity and low compression efficiency. CAE-based DAS data compression methods can significantly improve compression efficiency, but their compression quality cannot meet the high signal-to-noise ratio requirements of DAS data.

[0006] Combined with the low signal-to-noise ratio characteristic of DAS data, how to ensure a high signal-to-noise ratio while using a high compression ratio to compress DAS data in order to improve the storage and transmission efficiency of DAS data is a problem that needs to be solved urgently. Summary of the invention

[0007] The purpose of the present invention is to provide a DAS signal compression method based on a recurrent neural network and an autoencoder, which can solve the above-mentioned problems, effectively improve the signal-to-noise ratio of the reconstructed DAS signal, provide a high compression ratio, and greatly improve the transmission and storage efficiency of the DAS signal.

[0008] In order to achieve the above object, the technical solution adopted by the present invention is as follows: a DAS signal compression method based on a recurrent neural network and an autoencoder comprises the following steps;

[0009] (1) A large amount of DAS data of size (H, W) is acquired to form a data set, where H and W are the number of channels and length of the DAS data respectively;

[0010] (2) constructing a DAS signal processing neural network M0, including a compression network and a decompression network;

[0011] The compression network includes a first two-dimensional convolution layer, an RNN combination, a second two-dimensional convolution layer and a quantization function layer which are arranged in sequence;

[0012] The first two-dimensional convolution layer has a convolution kernel of 3×3, a stride of 2, an input channel number of 1, and an output channel number of 64, and is used to pick up features in the DAS data through 64 filters and output a first compressed feature with a size of (H / 2, W / 2);

[0013] The RNN combination is formed by stacking multiple RNNs, the number of input channels of the RNN combination is 64, the number of output channels is 512, and it is used to extract features from the first compressed features in sequence and output the second compressed features with a size of (H / 16, W / 16);

[0014] The second two-dimensional convolution layer has a convolution kernel size of 1×1, a stride of 1, an input channel of 512, an output channel of C, a compression ratio of 512 / C, is used to input the second compressed feature, and outputs a third compressed feature of size (H / 16, W / 16);

[0015] The quantization function layer is used to convert the third compression feature into a binary bit stream with a channel number of C;

[0016] The decompression network includes a third two-dimensional convolutional layer, a plurality of combination layers, and a fourth two-dimensional convolutional layer arranged in sequence, each combination layer includes an RNN layer, and the output end of the RNN layer is connected to the upsampling layer;

[0017] The third two-dimensional convolutional layer has a convolution kernel of 1×1, a step size of 1, an input channel number of C, and an output channel number of 512, and is used to input a binary bit stream to obtain a first decompressed feature of a size of (H / 16, W / 16);

[0018] In the combination layer, RNN is used to extract features from the output of the previous layer, and then the corresponding upsampling layer uses the PixelShuffle algorithm to reduce the number of channels of the decoding network to increase the size of the output of the previous layer, and the last combination layer outputs the second decompressed feature with a size of (H, W);

[0019] The fourth two-dimensional convolutional layer has a convolution kernel of 3×3, a step size of 1, an input channel number of 32, and an output channel number of 1, and is used to input the second decompressed feature to obtain the third decompressed feature;

[0020] (3) Preset the training rounds N, the number of iterations per round T, select m DAS data from the data set, and train M0 according to the rounds to obtain the DAS signal compression model M1, wherein the nth round of training includes steps (31) to (35), 1≤n≤N;

[0021] (31) For the first iteration of the nth round, m DAS data are sent as samples to M0 to obtain m outputs. The loss value of each sample in this iteration is calculated, where the loss value of sample x in this iteration is r t Calculate according to the following formula;

[0022] r t =|x t -r t-1 |, 2≤t≤T

[0023] r t-1 =x,t=1

[0024] Where t is the tth iteration, 1≤t≤T, r t 、r t-1 are the loss values ​​of the tth and t-1th iterations respectively;

[0025] (32) Take the m loss values ​​of the previous iteration as the input of the next iteration, and obtain the loss value of the next iteration again according to step (31) until T iterations are completed, and each sample corresponds to T outputs and T loss values;

[0026] (33) For each sample, the corresponding T outputs are superimposed as the DAS reconstruction data of the nth round, and the corresponding T loss values ​​are superimposed as the training loss of the nth round;

[0027] (34) Calculate the total loss of the nth round

[0028] In the formula, for the i-th sample in the n-th round 1≤i≤m, for The training loss is for The additional loss for The additional loss weight is λ, and λ is the weight of the additional loss relative to the total loss;

[0029] (35) Use Update the network parameters of M0 according to the back-propagation algorithm;

[0030] (4) During compression, the DAS data to be compressed is obtained, input into the compression network of M1, and after passing through the quantization function layer, the corresponding binary bit stream is output as the compressed data of the DAS data to be compressed;

[0031] (5) During decompression, the compressed data is input into the decompression network of M1, and the third decompression feature is output through the fourth two-dimensional convolutional layer as the decompressed data of the DAS data to be compressed.

[0032] Preferably, in the compression network, the RNN combination includes a first RNN layer, a second RNN layer, and a third RNN layer;

[0033] The first RNN layer uses an LSTM network with 64 input channels and 256 output channels. The size of the hidden unit in the LSTM is (H / 4, W / 4).

[0034] The second RNN layer uses an LSTM network with 256 input channels and 512 output channels. The size of the hidden unit in the LSTM is (H / 8, W / 8).

[0035] The third RNN layer uses an LSTM network with 512 input channels and 512 output channels. The size of the hidden unit in the LSTM is (H / 16, W / 16).

[0036] Preferably, the quantization function layer includes a tanh activation function layer and a binary bit stream output layer;

[0037] The tanh activation function layer is used to convert the third compression feature into [-1, 1] to obtain the corresponding fourth compression feature;

[0038] The binary bit stream output layer is used to convert each element of the fourth compression feature into a binary number according to the following formula, and then concatenate them row by row to obtain a binary bit stream;

[0039]

[0040] Wherein, z is an element in the fourth compression feature, sign(z) is the binary number corresponding to the element z, and prob is a random matrix with the same size as the fourth compression feature and a value between [0,1] that follows a uniform distribution.

[0041] Preferably, the decompression network includes four combination layers, which are the first combination layer to the fourth combination layer in sequence;

[0042] In the first combination layer, the input end of the RNN layer is connected to the output end of the third two-dimensional convolutional layer, the input channel is 512, the output channel is 512, and the size of the hidden unit in the LSTM is (H / 16, W / 16); the input channel of the upsampling layer is 512, the output channel is 128, and the output data size is (H / 8, W / 8);

[0043] In the second combined layer, the RNN layer has 128 input channels, 512 output channels, and the size of the hidden unit in the LSTM is (H / 8, W / 8); the upsampling layer has 512 input channels, 128 output channels, and the output data size is (H / 4, W / 4);

[0044] In the third combination layer, the RNN layer has 128 input channels, 256 output channels, and the size of the hidden unit in the LSTM is (H / 4, W / 4); the upsampling layer has 256 input channels, 64 output channels, and the output data size is (H / 2, W / 2);

[0045] In the fourth combination layer, the RNN layer has 64 input channels, 128 output channels, and the size of the hidden unit in the LSTM is (H / 2, W / 2); the upsampling layer has 128 input channels, 32 output channels, and the output data size is (H, W).

[0046] Preferably, in step (31), the m outputs are m third decompression features.

[0047] Preferably, in step (34), is preset or calculated according to the following formula;

[0048]

[0049] Where, L n-1 is the set of training losses of m samples in the n-1th round of training, Min(L n-1 )、Max(L n-1 ) are L n-1 The minimum and maximum values ​​in .

[0050] Preferably, the data set is divided into a training set, a validation set and a test set in a ratio of 8:1:1 for training.

[0051] The present invention proposes a new DAS signal compression and decompression method. In the method, a new DAS signal compression model is established, including a compression network and a decompression network.

[0052] The compression network includes a first two-dimensional convolution layer, an RNN combination, a second two-dimensional convolution layer and a quantization function layer arranged in sequence; wherein, the main purpose of the first two-dimensional convolution layer is to preliminarily pick up features, pick up a variety of different features by using 64 filters, and compress the size of the input DAS data at the same time, remove some redundant information in the data, so that the information input to the RNN is more streamlined, and the calculation efficiency of the encoder can be improved. The RNN combination uses multiple stacked RNNs to extract long-term dependencies in the DAS data to further compress the data. In the present invention, the number of channels and size of the output data are controlled by controlling the dimension of the output hidden state, so as to achieve the purpose of continuously reducing the size of the hidden state while increasing the number of channels of the hidden state, and gradually transferring the feature representation of the data from a single channel to multiple channels. The second two-dimensional convolution layer is responsible for controlling the number of channels of the input quantization function layer, thereby controlling the compression ratio of the network. For the present invention, the input channel of the second two-dimensional convolution layer is 512, the output channel is N, and the compression ratio is 512 / N, that is, when N is 64, the compression ratio is 8, when N is 32, the compression ratio is 16, and the compression ratio can reach up to 512. The quantization function layer is responsible for converting the input data into a binary bit stream.

[0053] The decompression network includes a third two-dimensional convolution layer, several combination layers, and a fourth two-dimensional convolution layer, which are arranged in sequence. The third two-dimensional convolution layer is used to restore the number of channels of the feature representation with decoding after quantization by the quantizer to before quantization; each combination layer adopts a combination of an RNN layer followed by an upsampling layer. For each combination layer, the RNN layer is responsible for capturing key information related to decoding and distributing this information in the specified channel by controlling the number of channels of the hidden unit, while the subsequent upsampling layer uses PixelShuffle technology to increase the size of the data by reducing the number of channels of the data, thereby fusing the information in multiple channels and making more efficient use of the information of all channels. The fourth two-dimensional convolution layer is used to output DAS reconstructed data.

[0054] During training, the present invention adopts a multi-round, multi-iteration method in each round, and takes into account the influence of training loss, additional loss, etc., so as to adjust the network parameters.

[0055] Compared with the prior art, the advantages of the present invention are as follows: compared with other compression methods, the present invention fully extracts the dependency between DAS signals in the compression stage by relying on the powerful time series processing capability and long-term dependency extraction capability of RNN, greatly reduces the redundant information in the DAS signal, and thus can provide a larger compression ratio. Its ultimate compression ratio reaches 512, which is greatly improved compared with CAE (100), DCT (32) and DWT (64); at the same time, in the decoding stage, the PixelShuffle technology is used to make full use of the information of all channels in the compressed feature representation, improve the information utilization efficiency, and thus provide higher compression quality. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 This is the overall architecture diagram of the present invention;

[0057] Figure 2 This is a comparison chart of the signal-to-noise ratio of reconstructed data under different compression ratios;

[0058] Figure 3 This is a comparison chart of the mean square error of reconstructed data under different compression ratios;

[0059] Figure 4 This is a two-dimensional visualization of the original DAS data test set;

[0060] Figure 5 The two-dimensional visualization of the reconstructed DAS data test set when the compression ratio is 8;

[0061] Figure 6 This is the spectrum heat map of the original DAS data test set;

[0062] Figure 7 Reconstruct the spectrum heat map of the DAS data test set when the compression ratio is 8;

[0063] Figure 8 This is a schematic diagram of the compression effect when the compression ratio is 8;

[0064] Fig. 9 This is a schematic diagram of the compression effect under the maximum compression ratio of 512. DETAILED DESCRIPTION

[0065] The present invention will be further described below in conjunction with the accompanying drawings.

[0066] Example 1: See Figure 1 , a DAS signal compression method based on recurrent neural network and autoencoder, comprising the following steps;

[0067] (1) A large amount of DAS data of size (H, W) is acquired to form a data set, where H and W are the number of channels and length of the DAS data respectively;

[0068] (2) constructing a DAS signal processing neural network M0, including a compression network and a decompression network;

[0069] The compression network includes a first two-dimensional convolution layer, an RNN combination, a second two-dimensional convolution layer and a quantization function layer which are arranged in sequence;

[0070] The first two-dimensional convolution layer has a convolution kernel of 3×3, a stride of 2, an input channel number of 1, and an output channel number of 64, and is used to pick up features in the DAS data through 64 filters and output a first compressed feature with a size of (H / 2, W / 2);

[0071] The RNN combination is formed by stacking multiple RNNs, the number of input channels of the RNN combination is 64, the number of output channels is 512, and it is used to extract features from the first compressed features in sequence and output the second compressed features with a size of (H / 16, W / 16);

[0072] The second two-dimensional convolution layer has a convolution kernel size of 1×1, a stride of 1, an input channel of 512, an output channel of C, a compression ratio of 512 / C, is used to input the second compressed feature, and outputs a third compressed feature of size (H / 16, W / 16);

[0073] The quantization function layer is used to convert the third compression feature into a binary bit stream with a channel number of C;

[0074] The decompression network includes a third two-dimensional convolutional layer, a plurality of combination layers, and a fourth two-dimensional convolutional layer arranged in sequence, each combination layer includes an RNN layer, and the output end of the RNN layer is connected to the upsampling layer;

[0075] The third two-dimensional convolutional layer has a convolution kernel of 1×1, a step size of 1, an input channel number of C, and an output channel number of 512, and is used to input a binary bit stream to obtain a first decompressed feature of a size of (H / 16, W / 16);

[0076] In the combination layer, RNN is used to extract features from the output of the previous layer, and then the corresponding upsampling layer uses the PixelShuffle algorithm to reduce the number of channels of the decoding network to increase the size of the output of the previous layer, and the last combination layer outputs the second decompressed feature with a size of (H, W);

[0077] The fourth two-dimensional convolutional layer has a convolution kernel of 3×3, a step size of 1, an input channel number of 32, and an output channel number of 1, and is used to input the second decompressed feature to obtain the third decompressed feature;

[0078] (3) Preset the training rounds N, the number of iterations per round T, select m DAS data from the data set, and train M0 according to the rounds to obtain the DAS signal compression model M1, wherein the nth round of training includes steps (31) to (35), 1≤n≤N;

[0079] (31) For the first iteration of the nth round, m DAS data are sent as samples to M0 to obtain m outputs. The loss value of each sample in this iteration is calculated, where the loss value of sample x in this iteration is r t Calculate according to the following formula;

[0080] r t =|x t -r t-1 |, 2≤t≤T

[0081] r t-1=x,t=1

[0082] Where t is the tth iteration, 1≤t≤T, r t 、r t-1 are the loss values ​​of the tth and t-1th iterations respectively;

[0083] (32) Take the m loss values ​​of the previous iteration as the input of the next iteration, and obtain the loss value of the next iteration again according to step (31) until T iterations are completed, and each sample corresponds to T outputs and T loss values;

[0084] (33) For each sample, the corresponding T outputs are superimposed as the DAS reconstruction data of the nth round, and the corresponding T loss values ​​are superimposed as the training loss of the nth round;

[0085] (34) Calculate the total loss of the nth round

[0086] In the formula, for the i-th sample in the n-th round 1≤i≤m, for The training loss is for The additional loss for The additional loss weight is λ, and λ is the weight of the additional loss relative to the total loss;

[0087] (35) Use Update the network parameters of M0 according to the back-propagation algorithm;

[0088] (4) During compression, the DAS data to be compressed is obtained, input into the compression network of M1, and after passing through the quantization function layer, the corresponding binary bit stream is output as the compressed data of the DAS data to be compressed;

[0089] (5) During decompression, the compressed data is input into the decompression network of M1, and the third decompression feature is output through the fourth two-dimensional convolutional layer as the decompressed data of the DAS data to be compressed.

[0090] In the compression network, the RNN combination includes a first RNN layer, a second RNN layer, and a third RNN layer;

[0091] The first RNN layer uses an LSTM network with 64 input channels and 256 output channels. The size of the hidden unit in the LSTM is (H / 4, W / 4).

[0092] The second RNN layer uses an LSTM network with 256 input channels and 512 output channels. The size of the hidden unit in the LSTM is (H / 8, W / 8).

[0093] The third RNN layer uses an LSTM network with 512 input channels and 512 output channels. The size of the hidden unit in the LSTM is (H / 16, W / 16).

[0094] The quantization function layer includes a tanh activation function layer and a binary bit stream output layer;

[0095] The tanh activation function layer is used to convert the third compression feature into [-1, 1] to obtain the corresponding fourth compression feature;

[0096] The binary bit stream output layer is used to convert each element of the fourth compression feature into a binary number according to the following formula, and then concatenate them row by row to obtain a binary bit stream;

[0097]

[0098] Wherein, z is an element in the fourth compression feature, sign(z) is the binary number corresponding to the element z, and prob is a random matrix with the same size as the fourth compression feature and a value between [0,1] that follows a uniform distribution.

[0099] The decompression network includes four combination layers, which are the first combination layer to the fourth combination layer in sequence;

[0100] In the first combination layer, the input end of the RNN layer is connected to the output end of the third two-dimensional convolutional layer, the input channel is 512, the output channel is 512, and the size of the hidden unit in the LSTM is (H / 16, W / 16); the input channel of the upsampling layer is 512, the output channel is 128, and the output data size is (H / 8, W / 8);

[0101] In the second combined layer, the RNN layer has 128 input channels, 512 output channels, and the size of the hidden unit in the LSTM is (H / 8, W / 8); the upsampling layer has 512 input channels, 128 output channels, and the output data size is (H / 4, W / 4);

[0102] In the third combination layer, the RNN layer has 128 input channels, 256 output channels, and the size of the hidden unit in the LSTM is (H / 4, W / 4); the upsampling layer has 256 input channels, 64 output channels, and the output data size is (H / 2, W / 2);

[0103] In the fourth combination layer, the RNN layer has 64 input channels, 128 output channels, and the size of the hidden unit in the LSTM is (H / 2, W / 2); the upsampling layer has 128 input channels, 32 output channels, and the output data size is (H, W).

[0104] In step (31), the m outputs are m third decompressed features.

[0105] In step (34), is preset or calculated according to the following formula;

[0106]

[0107] Where, L n-1 is the set of training losses of m samples in the n-1th round of training, Min(L n-1 )、Max(L n-1 ) are L n-1 The minimum and maximum values ​​in .

[0108] The dataset is divided into a training set, a validation set, and a test set in a ratio of 8:1:1 for training.

[0109] Example 2: See Figure 2 and Figure 3 The data set of this embodiment uses the DAS data set in the public Porotomo project. The data of the first 6000 channels in the data set collected around 22:00 on March 13 are used for the training set, the data of the last 2700 channels are used for the test set, and the data of the 5000th to 7750th channels in the data set collected around 1:00 on March 14 are used for the validation set.

[0110] This embodiment uses four methods to compress and decompress data, namely:

[0111] 1. CAE method: English is Convolutional Autoencoder, Chinese is Convolutional Autoencoder;

[0112] 2. DCT method: English is Discrete Cosine Transform, Chinese is Discrete Cosine Transform;

[0113] 3. DWT method: Discrete Wavelet Transform in English and discrete wavelet transform in Chinese;

[0114] 4. The method of the present invention.

[0115] We used the above four methods and the training and test sets described above to train on a graphics card (Nvidia RTXA400016G) for 15 epochs, with a batch size of 4 and a learning rate of 0.005. The learning rate was halved after the 3rd and 10th epochs. The operating system was Ubuntu 18.04.6LTS, the deep learning framework was Pytorch1.11.0, the CUDA version was 11.4, and the optimizer was Adam. 128x512 was used as the input size.

[0116] The comparison diagram of signal-to-noise ratio of reconstructed data under different compression ratios is obtained by four methods, such as Figure 2 , the comparison of mean square error of reconstructed data under different compression ratios is shown in Figure 3 . As can be seen from the figure, compared with other compression methods, the signal-to-noise ratio of the compression method of the present invention decreases more slowly with the compression ratio; when the compression ratio is 16, its signal-to-noise ratio is 37.09dB, which is 10.05dB higher than the CAE model, and 91.89% and 14.72% higher than DCT and DWT respectively, which greatly improves the reconstruction quality of the DAS signal; its extreme compression ratio is as high as 512, and its transmission and storage efficiency is improved by 4.12 times compared with the CAE model, which greatly improves the transmission and storage efficiency of DAS data; and it can still maintain a signal-to-noise ratio of 26.36dB at the extreme compression ratio, which is higher than the signal-to-noise ratio achieved by other methods at a compression ratio of 32. Figure 3 This conclusion is further verified in the mean square error comparison chart.

[0117] Example 3: See Figure 4 and Figure 5 as well as Figure 6 and Figure 7 It can be seen that when the compression ratio of the compression method of the present invention is 8, the reconstructed data is almost the same as the original data; and the reconstructed spectrum is highly consistent with the spectrum before compression, which shows that the present invention has almost no loss of frequency information during the compression process, and at the same time, it will not introduce high-frequency noise, which further illustrates the excellent compression effect of the present method on DAS data.

[0118] Example 4: From Figure 8-9 It can be seen that, when the compression ratio is 8, the reconstructed data of the present invention is highly consistent with the original data; and it can provide a maximum compression ratio of up to 512. When the compression ratio is 512, although there is information loss, it does not affect the overall profile of the signal and is within an acceptable loss range.

[0119] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A DAS signal compression method based on a recurrent neural network and an autoencoder, characterized in that: The steps include: (1) A large amount of DAS data of size (H, W) is acquired to form a data set, where H and W are the number of channels and length of the DAS data respectively; (2) constructing a DAS signal processing neural network M0, including a compression network and a decompression network; The compression network includes a first two-dimensional convolution layer, an RNN combination, a second two-dimensional convolution layer and a quantization function layer which are arranged in sequence; The first two-dimensional convolution layer has a convolution kernel of 3×3, a stride of 2, an input channel number of 1, and an output channel number of 64, and is used to pick up features in the DAS data through 64 filters and output a first compressed feature with a size of (H / 2, W / 2); The RNN combination is formed by stacking multiple RNNs, the number of input channels of the RNN combination is 64, the number of output channels is 512, and it is used to extract features from the first compressed features in sequence and output the second compressed features with a size of (H / 16, W / 16); The second two-dimensional convolution layer has a convolution kernel size of 1×1, a stride of 1, an input channel of 512, an output channel of C, a compression ratio of 512 / C, is used to input the second compressed feature, and outputs a third compressed feature of size (H / 16, W / 16); The quantization function layer is used to convert the third compression feature into a binary bit stream with a channel number of C; The decompression network includes a third two-dimensional convolutional layer, a plurality of combination layers, and a fourth two-dimensional convolutional layer arranged in sequence, each combination layer includes an RNN layer, and the output end of the RNN layer is connected to the upsampling layer; The third two-dimensional convolutional layer has a convolution kernel of 1×1, a step size of 1, an input channel number of C, and an output channel number of 512, and is used to input a binary bit stream to obtain a first decompressed feature of a size of (H / 16, W / 16); In the combination layer, RNN is used to extract features from the output of the previous layer, and then the corresponding upsampling layer uses the PixelShuffle algorithm to reduce the number of channels of the decoding network to increase the size of the output of the previous layer, and the last combination layer outputs the second decompressed feature with a size of (H, W); The fourth two-dimensional convolutional layer has a convolution kernel of 3×3, a step size of 1, an input channel number of 32, and an output channel number of 1, and is used to input the second decompressed feature to obtain the third decompressed feature; (3) Preset the training rounds N, the number of iterations per round T, select m DAS data from the data set, and train M0 according to the rounds to obtain the DAS signal compression model M1, wherein the nth round of training includes steps (31) to (35), 1≤n≤N; (31) For the first iteration of the nth round, m DAS data are sent as samples to M0 to obtain m outputs. The loss value of each sample in this iteration is calculated, where the loss value of sample x in this iteration is r t Calculate according to the following formula; r t =|x t -r t-1 |,2≤t≤T r t-1 =x,t=1 Where t is the tth iteration, 1≤t≤T, r t 、r t-1 are the loss values ​​of the tth and t-1th iterations respectively; (32) Take the m loss values ​​of the previous iteration as the input of the next iteration, and obtain the loss value of the next iteration again according to step (31) until T iterations are completed, and each sample corresponds to T outputs and T loss values; (33) For each sample, the corresponding T outputs are superimposed as the DAS reconstruction data of the nth round, and the corresponding T loss values ​​are superimposed as the training loss of the nth round; (34) Calculate the total loss of the nth round In the formula, for the i-th sample in the n-th round for The training loss is for The additional loss for The additional loss weight is λ, and λ is the weight of the additional loss relative to the total loss; (35) Use Update the network parameters of M0 according to the back-propagation algorithm; (4) During compression, the DAS data to be compressed is obtained, input into the compression network of M1, and after passing through the quantization function layer, the corresponding binary bit stream is output as the compressed data of the DAS data to be compressed; (5) During decompression, the compressed data is input into the decompression network of M1, and the third decompression feature is output through the fourth two-dimensional convolutional layer as the decompressed data of the DAS data to be compressed.

2. The DAS signal compression method based on recurrent neural network and autoencoder according to claim 1, characterized in that: In the compression network, the RNN combination includes a first RNN layer, a second RNN layer, and a third RNN layer; The first RNN layer uses an LSTM network with 64 input channels and 256 output channels. The size of the hidden unit in the LSTM is (H / 4, W / 4). The second RNN layer uses an LSTM network with 256 input channels and 512 output channels. The size of the hidden unit in the LSTM is (H / 8, W / 8). The third RNN layer uses an LSTM network with 512 input channels and 512 output channels. The size of the hidden unit in the LSTM is (H / 16, W / 16).

3. The DAS signal compression method based on recurrent neural network and autoencoder according to claim 1, characterized in that: The quantization function layer includes a tanh activation function layer and a binary bit stream output layer; The tanh activation function layer is used to convert the third compression feature into [-1, 1] to obtain the corresponding fourth compression feature; The binary bit stream output layer is used to convert each element of the fourth compression feature into a binary number according to the following formula, and then concatenate them row by row to obtain a binary bit stream; Wherein, z is an element in the fourth compression feature, sign(z) is the binary number corresponding to the element z, and prob is a random matrix with the same size as the fourth compression feature and a value between [0,1] that follows a uniform distribution.

4. The DAS signal compression method based on recurrent neural network and autoencoder according to claim 1, characterized in that: The decompression network includes four combination layers, which are the first combination layer to the fourth combination layer in sequence; In the first combination layer, the input end of the RNN layer is connected to the output end of the third two-dimensional convolutional layer, the input channel is 512, the output channel is 512, and the size of the hidden unit in the LSTM is (H / 16, W / 16); the input channel of the upsampling layer is 512, the output channel is 128, and the output data size is (H / 8, W / 8); In the second combined layer, the RNN layer has 128 input channels, 512 output channels, and the size of the hidden unit in the LSTM is (H / 8, W / 8); the upsampling layer has 512 input channels, 128 output channels, and the output data size is (H / 4, W / 4); In the third combination layer, the RNN layer has 128 input channels, 256 output channels, and the size of the hidden unit in the LSTM is (H / 4, W / 4); the upsampling layer has 256 input channels, 64 output channels, and the output data size is (H / 2, W / 2); In the fourth combination layer, the RNN layer has 64 input channels, 128 output channels, and the size of the hidden unit in the LSTM is (H / 2, W / 2); the upsampling layer has 128 input channels, 32 output channels, and the output data size is (H, W).

5. The DAS signal compression method based on recurrent neural network and autoencoder according to claim 1, characterized in that: In step (31), the m outputs are m third decompressed features.

6. The DAS signal compression method based on recurrent neural network and autoencoder according to claim 1, characterized in that: In step (34), is preset or calculated according to the following formula; Where, L n-1 is the set of training losses of m samples in the n-1th round of training, Min(L n-1 )、Max(L n-1 ) are L n-1 The minimum and maximum values ​​in .

7. The DAS signal compression method based on recurrent neural network and autoencoder according to claim 1, characterized in that: The dataset is divided into a training set, a validation set, and a test set in a ratio of 8:1:1 for training.