Method and apparatus for positioning pipeline pig in real time based on fusion of multi-sensor parameters
Patent Information
- Application Number
- GB2024006377
- Authority / Receiving Office
- GB · GB
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-01-09
- Filing Date
- 2023-10-11
- Publication Date
- 2024-09-25
- Estimated Expiration
- 2043-10-11
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
[0001] This application claims priority to Chinese Patent Application No. 202310024305.5, titled “METHOD AND APPARATUS FOR POSITIONING PIPELINE PIG IN REAL TIME BASED ON FUSION OF MULTIPLE PARAMETERS”, filed on January 09, 2023 with the China National Intellectual Property Administration (CNIPA), which is incorporated herein by reference in its entirety. FIELD
[0002] The present disclosure relates to the field of storage and transportation of oil and gas, and in particular, to a method and an apparatus for positioning a pipeline pig in real time based on fusion of multi-sensor parameters. BACKGROUND
[0003] Oil and natural gas, as important energy materials, affect the national economy and the development of all walks of life, and are closely related to people’s lives. Pipeline, as the main way of oil and natural gas transportation, has such characteristics as safety, economy and convenience compared with road transportation. In the process of pipeline transportation, pipeline pigging is an important and essential work before long-distance oil and gas pipelines are put into operation and during the operation thereof. The functions of pipeline pigging include increasing flow, improving production efficiency, reducing internal corrosion, ensuring safe production, reducing maintenance costs, realizing online detection, extending pipeline lifetime, and so on.
[0004] Pipeline-passing indicator is the most effective monitoring technology for safe operation of the oil and gas pipeline pig. The electronic transmitter carried by the pipeline pig runs within the pipeline and sends electromagnetic signals continuously and regularly. The signals are transmitted through the pipeline wall. The emitted electromagnetic signals are received by the probe of the pipeline-passing indicator. The pipeline-passing indicator, after processing the electromagnetic signals with the host, sends out a beep and gives a signal indication through the pointer of the milliammeter. The pipeline-passing indicator can then determine whether the pipeline pig has passed through a fixed detection point through signal transmission between the transmitter and the pipeline-passing indicator.
[0005] The inventor found that there are at least the following problems in the existing solutions for positioning the pipeline pig: in the process of using the pipeline-passing indicator, whether the pipeline pig passes the indicator is determined by receiving the electromagnetic signal, but the pipeline pig cannot be positioned in real time, which cannot meet the requirements of the national emergency system on the safe transportation of oil and gas pipelines. SUMMARY
[0006] A method and an apparatus for positioning a pipeline pig in real time based on fusion of multi-sensor parameters are provided according to the present disclosure, so as to solve the problem in the existing solution that the pipeline pig cannot be positioned in real time, which cannot meet the requirements of the national emergency system on safe transportation of oil and gas pipelines.
[0007] In a first aspect, a method for positioning a pipeline pig in real time based on fusion of multi-sensor parameters is provided according to embodiments of the present disclosure. The method includes: collecting a negative pressure wave signal of a head portion and a tail portion of a pipeline and a magnetic flux leakage image of the pipeline; detecting the magnetic flux leakage image of the pipeline based on a magnetic flux leakage defect detection network to determine whether there is a leakage in the pipeline; performing denoising on the negative pressure wave signal based on a bidirectional long short-term memory neural network if it is determined that there is no leakage in the pipeline; performing inflection point feature recognition on denoised negative pressure wave signal based on one-dimensional convolutional neural network in series with recurrent neural network, to extract a time difference between arrival times of an upstream negative pressure wave and a downstream negative pressure wave; collecting a distance between the pipeline pig and an upstream pressure sensor during running of the pipeline pig; collecting times at which the upstream pressure sensor and a downstream pressure sensor receive the negative pressure wave signal, and a distance between the upstream pressure sensor and the downstream pressure sensor; calculating a plurality of negative pressure wave velocities based on different distances between the pipeline pig and the upstream pressure sensor during running of the pipeline pig, the times at which the upstream pressure sensor and the downstream pressure sensor receive the negative pressure wave signal, and the distance between the upstream pressure sensor and the downstream pressure sensor; calculating an average value of the plurality of negative pressure wave velocities to obtain a corrected negative pressure wave velocity; and introducing the corrected negative pressure wave velocity and the time difference between arrival times of the upstream negative pressure wave and the downstream negative pressure wave into a negative pressure wave positioning formula, so as to obtain a position of the pipeline pig.
[0008] In an implementable solution, the magnetic flux leakage image of the pipeline is inputted into the magnetic flux leakage defect detection network, and after convolution operation, a magnetic flux leakage defect image of the pipeline is obtained; and whether there is a leakage in the pipeline is determined based on the magnetic flux leakage defect image of the pipeline.
[0009] In an implementable solution, the negative pressure wave signal is inputted into the bidirectional long short-term memory neural network to obtain a noise contour signal; and the noise contour signal is subtracted from the negative pressure wave signal to obtain the denoised negative pressure wave signal.
[0010] In an implementable solution, the denoised negative pressure wave signal is inputted into the one-dimensional convolutional neural network in series with the recurrent neural network; the one-dimensional convolutional neural network learns an inflection point feature of the denoised negative pressure wave signal; the recurrent neural network extracts inflection point information and contextual information of the denoised negative pressure wave signal, and classifies the denoised negative pressure wave signal based on the inflection point information and the contextual information; and the time difference between arrival times of the upstream negative pressure wave and the downstream negative pressure wave is extracted.
[0011] In an implementable solution, 5 different positions X15 X2, X3, X4 and X5 of the pipeline pig are recorded during running of the pipeline pig; times ttl, t[2. tl4 and t(5 at which the upstream pressure sensor receives the negative pressure wave signal when the pipeline pig runs to positions X1? X2, X3, X4 and X5 are recorded, respectively, and times , 2, t^.3 and at which the downstream pressure sensor receives the negative pressure wave signal when the pipeline pig runs to positions X15 X2, X3 , X4 and X5 are recorded, respectively, wherein the distance between the upstream pressure sensor and the downstream pressure sensor is L; when the pipeline pig runs to the position Xv the time at which the upstream pressure sensor receives the negative pressure wave signal is tn, the time at which the downstream pressure sensor receives the negative pressure wave signal is trl, and the negative pressure wave velocity is awl, then X1? tL1, trl and L is introduced into a wave velocity correction formula, wherein the wave velocity correction formula is: _ (L-X^+X^n ^W1 + ’ wherein awl is the negative pressure wave velocity when the pipeline pig runs to X15 similarly, aw2 is a negative pressure wave velocity when the pipeline pig runs to X2, aW3 is a negative pressure wave velocity when the pipeline pig runs to X3, aw4 is a negative pressure wave velocity when the pipeline pig runs to X4, aw5 is a negative pressure wave velocity when the pipeline pig runs to X5, and then the corrected negative pressure wave velocity is: _ &Wl + aW2+aW3+aW4 + aWS aw - 5 •
[0012] In an implementable solution, the corrected negative pressure wave velocity is aw, the time difference between the arrival times of the upstream negative pressure wave signal and the downstream negative pressure wave signal is td, and the position of the pipeline pig is Lx, then the negative pressure wave positioning formula is: j _ L+awtd 'V ™• x 2
[0013] In a second aspect, an apparatus for positioning a pipeline pig in real time based on fusion of multi-sensor parameters is provided according to the present disclosure. The apparatus includes: a basic information collection module, which is configured to collect a negative pressure wave signal of a head portion and a tail portion of a pipeline and a magnetic flux leakage image of the pipeline; a pipeline magnetic flux leakage determination module, which is configured to detect the magnetic flux leakage image of the pipeline based on a magnetic flux leakage defect detection network, to determine whether there is a leakage in the pipeline; a negative pressure wave signal denoising module, which is configured to perform denoising on the negative pressure wave signal based on a bidirectional long short-term memory neural network if it is determined that there is no leakage in the pipeline; a negative pressure wave time difference calculation module, which is configured to perform inflection point feature recognition on the denoised negative pressure wave signal based on one-dimensional convolutional neural network in series with recurrent neural network, so as to extract a time difference between arrival times of an upstream negative pressure wave and a downstream negative pressure wave; an upstream distance collection module, which is configured to collect a distance between the pipeline pig and an upstream pressure sensor during running of the pipeline pig; a time-distance collection module, which is configured to collect times at which the upstream pressure sensor and a downstream pressure sensor receive the negative pressure wave signal, and a distance between the upstream pressure sensor and the downstream pressure sensor; a negative pressure wave velocity calculation module, which is configured to calculate a plurality of negative pressure wave velocities based on different distances between the pipeline pig and the upstream pressure sensor during running of the pipeline pig, the times at which the upstream pressure sensor and the downstream pressure sensor receive the negative pressure wave signal, and the distance between the upstream pressure sensor and the downstream pressure sensor; a corrected negative pressure wave calculation module, which is configured to calculate an average value of the plurality of negative pressure wave velocities to obtain a corrected negative pressure wave velocity; and a pipeline pig position calculation module, which is configured to introduce the corrected negative pressure wave velocity and the time difference between arrival times of the upstream negative pressure wave and the downstream negative pressure wave into a negative pressure wave positioning formula, so as to obtain a position of the pipeline pig. [00141 In a third aspect, a computer device is provided according to the present disclosure. The computer device includes a memory and a processor, the memory storing computer programs that are applicable for being loaded by the processor to implement the above method for positioning a pipeline pig in real time based on fusion of multi-sensor parameters.
[0015] In a fourth aspect, a computer readable storage medium is provided according to the present disclosure. The computer readable storage medium stores a computer program that is applicable for being loaded by a processor to implement the above method for positioning a pipeline pig in real time based on fusion of multi-sensor parameters.
[0016] In the method, apparatus, device and storage medium provided in the embodiments of the present disclosure, the system can detect the integrity of the pipeline quickly and accurately through the magnetic flux leakage defect detection network and thus ensures the integrity of the pipeline; the bidirectional long short-term memory neural network can accurately predict a noise contour signal by constructing a noise-containing negative pressure wave signal training model, so as to eliminate the noise; and the model of one-dimensional convolutional neural network in series with recurrent neural network has the characteristic of accurate classification of inflection points compared with the traditional method of extracting time difference of negative pressure waves, and ensures accurate extraction of time difference. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] To illustrate technical solutions of the present disclosure in details, a brief description of drawings used in the embodiments will be given below, and it is apparent that other drawings may be obtained from these drawings without creative effort by those skilled in the art.
[0018] Figure 1 is a flow chart of a method for positioning a pipeline pig in real time based on fusion of multi-sensor parameters according to the present disclosure;
[0019] Figure 2 is a flow chart of denoising a negative pressure wave signal according to an embodiment of the present disclosure;
[0020] Figure 3 is a diagram illustrating real-time positioning of a pipeline pig according to an embodiment of the present disclosure; and
[0021] Figure 4 is a diagram of an apparatus for positioning a pipeline pig in real time based on fusion of multi-sensor parameters according to the present disclosure.
[0022] Reference signs in the drawings: 401 basic information collection module; 402 pipeline magnetic flux leakage determination module; 403 negative pressure wave signal denoising module; 404 negative pressure wave time difference calculation module; 405 upstream distance collection module; 406 time-distance collection module; 407 negative pressure wave velocity calculation module; 408 corrected negative pressure wave calculation module; 409 pipeline pig position calculation module. DETAILED DESCRIPTION OF EMBODIMENTS
[0023] To make the above purposes, characteristics and advantages of this application more understandable, the present disclosure will be described in details below in conjunction with the accompanying drawings and the embodiments.
[0024] A method and an apparatus for positioning a pipeline pig in real time based on fusion of multi-sensor parameters are provided according to the present disclosure, so as to solve the problem in the prior art that the pipeline pig cannot be positioned in real time, which cannot meet the requirements of national emergency system on safe transportation of oil and gas pipelines.
[0025] Referring to Figure 1, which illustrates a method for positioning a pipeline pig in real time based on fusion of multi-sensor parameters, the method includes the following steps.
[0026] S101, collecting a negative pressure wave signal of a head portion and a tail potion of a pipeline and a magnetic flux leakage image of the pipeline.
[0027] The pipeline may act as a transportation tool for oil, natural gas, industrial fluids and other liquid substances, and it may include a linear pipeline and a curved pipeline. The pipeline is provided, at two opposite ends thereof, with pressure sensors, and a service terminal, acting as a current terminal, may collect negative pressure wave signal of the head end and the tail end of the pipeline in real time via data collection device, such as FBG sensors, which is not limited in the embodiment of the disclosure.
[0028] It should be noted that, magnetic flux leakage detection is performed on the pipeline via a magnetic flux leakage detector before running the pipeline pig, and a magnetic flux leakage image of the pipeline is generated. The specific model of the magnetic flux leakage detector is not limited in the embodiment of the disclosure.
[0029] S102, determining whether there is a leakage in the pipeline based on the magnetic flux leakage image of the pipeline.
[0030] To determine whether there is a leakage in the pipeline, a magnetic flux leakage defect detection network (FDDNet) is used to detect the magnetic flux leakage image of the pipeline. The magnetic flux leakage defect detection network is a network obtained by modifying YOLOv5 (a single-stage target detection algorithm), that is, a SPD-Conv module is added to the backbone network of YOLOv5. SPD-Conv mainly consists of a Space-to-depth (SPD) layer and a non-strided convolution layer. This down-sampling method can solve the problem that large amount of fine-grained information of targets is missing. Finally, a target detection head is added to the detection head, to make the network pay more attention to the detection of targets, thereby improving detection effects. In addition, a lightweight network G-GhostNet is introduced into the backbone network so as to improve detection speed of the network.
[0031] Optionally, the magnetic flux leakage image of the pipeline is inputted into the magnetic flux leakage defect detection network so as to detect pipeline defect. A total of 24,633 magnetic flux leakage images are used, among which, 22,170 images are used as a training set and 2463 images are used as a verification set. Parameters of the magnetic flux leakage defect detection network are set as follows: the optimizer selects the stochastic gradient descent (SGD) method, the impulse is 0.9, the initial learning rate is le-2, the weight decay is set to 5e-4, and the learning rate decline mode is cos. The specific parameters of the backbone network are shown in the following table: Operator Input Output SPD-Conv Conv 3x3 6402x3 3202x3 V Conv 3x3 3202x3 1602x128 V Block 1602x128 1602x128 Blockx3 Cheap 1602x128 1602x128 Concat 1602x128 1602xl28 Conv 3x3 1602x128 802x256 V Block 802x256 802x256 Blockx6 Cheap 802x256 802x256 Concat 802x256 802x256 Conv 3x3 802x256 402x512 Block 402x512 402x512 Blockx9 Cheap 402x512 402x512 Concat 402x512 402x512 Conv 3x3 402x512 202x1024 Block 202xl024 202x1024 Blockx3 Cheap 202xl024 202x1024 Concat 202xl024 202xl024 SPPF 202x1024 202x1024
[0032] Wherein, “Operator” represents a key step in the operation process; “Block” represents the traditional residual network, “Input” represents a size of an input image, “Output” represents a size of an output image, “concat” represents combination of the number of channels, that is, the number of features (the number of channels) describing the image 5 itself is increased, “Cheap” is convolution of 1*1, “block” is the traditional residual module, SPD-Conv model includes a Space-to-depth layer and a non-strided convolution layer; the Space-to-depth layer is used to downsample a first feature graph, and the non-strided convolution layer is used to change the number of channels of the first feature graph such that the number of the output channels is consistent with a number of channels before inputting 10 SPD-Conv. After the backbone network feature extraction, the detection result can be marked on the image through the detection head.
[0033] The magnetic flux leakage defect detection network can solve the problem that large amount of fine-grained information of small targets is missing through downsampling. A small target detection head is finally added to the detection head, to make the network pay 15 more attention to the detection of small targets, and to improve the detection effect, so as to determine whether there is leakage in the pipeline. If there is no leakage in the detection, the negative pressure wave signals are all generated through running of the pipeline pig. [00341 S103, performing denoising on the negative pressure wave signal based on a bidirectional long short-term memory neural network if there is no leakage in the pipeline.
[0035] The negative pressure wave signal travels very fast, therefore even a small time error may cause a large positioning error. Thus, precisely measuring the arrival time of the negative pressure wave signal detected by the sensor is a key to effectively position the pipeline pig. In the industrial production environment, noise adversely affects arrival time of the negative pressure wave signal, and thus signal processing is firstly performed to denoise the negative pressure wave signal.
[0036] A specific denoising operation may be as follows: in order to improve the accuracy of denoising the negative pressure wave signal, a deep learning algorithm based on Bi-LSTM (Bidirectional Long short-term memory neural network) is adopted. The negative pressure wave signal is input into the bidirectional long short-term memory neural network to obtain a noise contour signal, and the noise contour signal is subtracted from the negative pressure wave signal to obtain a denoised negative pressure wave signal.
[0037] The bidirectional long short-term memory neural network has been already trained and can be directly used in the industrial production environment. As shown in Figure 2, the training process of the bidirectional long short-term memory neural network is as follows.
[0038] A number of undisturbed negative pressure wave pure signals and noise contour signals are constructed. A noise-containing negative pressure wave signal is obtained by adding the undisturbed negative pressure wave pure signal and the noise contour signal together. Input and output of the bidirectional long short-term memory neural network are defined, with the input being the noise-containing negative pressure wave signal, and the output being the noise contour signal, and then the bidirectional long short-term memory neural network is trained by using the noise-containing negative pressure wave signals and the noise contour signals.
[0039] Specifically, an amplitude of time sequence of the negative pressure wave signal is taken as a feature parameter. An undisturbed negative pressure wave pure signal and a noise contour signal are constructed, and a noise-containing negative pressure wave signal is obtained by adding the undisturbed negative pressure wave pure signal and the noise contour signal together. The undisturbed negative pressure wave pure signal has a length of 330000 and an amplitude between -1000 and 1000. The sum of the noise contour signal and the undisturbed negative pressure wave pure signal is taken as the noise-containing negative pressure wave signal. The obtained noise-containing signal and the noise contour signal are divided into a training set and a test set according to a ratio of 7:3. Then the length of the training set is 231000, and the length of the test set is 99000.
[0040] The noise-containing negative pressure wave signal of the test set is standardized by taking n = 50 as an example. The noise-containing negative pressure wave signal is divided into 4800 signals according to a fixed length of 50. Input data is transformed into a 50x4800 matrix, which is used as an input XTrain of the training set, and then input into the network successively by column, the input matrix is as follows: XTrain= „223951 •*4800 .50 1 .224000 '4800
[0041] In the above formula, each column of the matrix represents an input signal, represents the first value of the 4800 samples, which is a value of the 223,951st point in the original data column.
[0042] In a similar way, the constructed noise-containing data is standardized and then divided according to a partitioning mode of the training set, as the output YTrain of the network. The output matrix is as follows: .,223951 74800 YTrain= .,224000 74800
[0043] In the formula, each column of the matrix represents an output signal, the input and the output are corresponded with each other, and the matries of XTrain and YTrain are corresponding input and output in view of column.
[0044] In this embodiment, the network parameter combination of the bidirectional long short-term memory neural network is as follows: the internal hidden layer is 1000, the maximum number of iterations is set to 250, the initial learning rate is 0.005, the learning rate decline factor is 0.5, the gradient threshold is 1, and the solver algorithm adam is selected to update the weight value.
[0045] In this embodiment, the bidirectional long short-term memory neural network learns the correspondence between input data and output data, uses loss function (loss) and relative root mean square error (RMSE) to judge the difference between the real value and the predicted value of the training model, and then optimizes the parameters of the network model based on the difference.
[0046] When training times reach about 60 times, the relative root mean square error and the loss function of the training set and the verification set stabilize at a minimal value. After 250 times of training are finished, the value of the loss function approaches 0. Then the network model is successfully trained.
[0047] In this way, a noise sample library and an undisturbed negative pressure wave pure signal sample library in the embodiment of the disclosure are constructed, and a network model framework of the present application is successfully established.
[0048] The model obtained after training is used to perform prediction on the signals of the test set, to verify the network fitting effect. After satisfactory effect is achieved, prediction is performed on the actual negative pressure wave signal, and the noise contour signal in the actual signal is obtained.
[0049] Data segment division is performed on the noise-containing negative pressure wave signal in the test set based on the sample segment length n, and a data segment sample of the test set after division is T15 and 7j = [tq t2 ... t„], t±t2 ... tn are respectively the first, second and nth data points in the data segment sample.
[0050] The sample data in the test set is fed into the forward LSTM layer and the backward LSTM layer of the bidirectional long short-term memory neural network to obtain the corresponding output YPred. Wherein, the output corresponding to the input sample is Yt, and = [yty2 ...ynl> YiYz — Yn arc the first, second and nth data points in the output. The generation process of the output result is as follows:
[0051] Hidden states of time T in both layers are h't and h2t, and the formula expressions are: 1 = / j(uW-i + + b1); h2t = f2(u2ht-i + w2xt + b2);
[0052] wherein is a forward information extraction function, u1 and w1 are weight matries, and 61 is a bias term; / 2 is a backward information extraction function, u2 and w2 are weight matries, and b2 is a bias term.
[0053] The hH and h2t are concatenated to obtain an output yt at current time t, and the formula is: Yt = h^t + h2t.
[0054] The output at time t is used as the prediction output of the bidirectional long short-term memory neural network. The matries obtained after cycle prediction on the samples in the test set are connected by column and then transposed to the same data type YPredl as p, and then de-normalized to obtain YPred2. The predicted noise contour YPred2 is subtracted from the test set XTest to obtain the reconstructed useful signal.
[0055] The actual noise-containing negative pressure wave signal is processed according to the above steps and then sent to the trained network to perform predicting, and then actual noise contour signal is obtained.
[0056] The predicted noise contour signal is de-normalized, and then the noise contour signal is subtracted from the actual noise-containing negative pressure wave signal to obtain the reconstructed useful signal, to thereby achieve the purpose of noise denoising.
[0057] In this embodiment, before network training, the data p in the training set and the test set is further normalized to obtain Pl. The standardization formula is as follows: p| Pi~Pmin Pmax~Pmin
[0058] In the formula, pt represents elements in the training set and the test set, pmtn represents the minimum amplitude of the noise-containing negative pressure wave signals in the training set and the test set, pmax represents the maximum amplitude of the noise-containing negative pressure wave signals in the training set and the test set, and Pl represents data of the training set and the test set after standardization processing.
[0059] If the noise-containing negative pressure wave data is standardized before being inputted into the bidirectional long short-term memory neural network, the obtained output results Y corresponding to each data segment are spliced and de-standardized. The de-standardization formula is as follows: YPred2= [YPredl x (Tmax — Tmin)]+Tmin .
[0060] In the formula, YPredl represents the predicted noise contour signal, YPred2 represents the noise contour signal after de-normalization, Tmax represents the maximum amplitude of the noise-containing negative pressure wave signals in the test set, and Tmin represents the minimum amplitude of the noise-containing negative pressure wave signals in the test set.
[0061] S104, performing inflection point feature recognition on the denoised negative pressure wave signal, and extracting a time difference between arrival times of an upstream negative pressure wave and a downstream negative pressure wave.
[0062] The denoised negative pressure wave signal is used as the input of the one-dimensional convolutional neural network (CNN) in series with the recurrent neural network (RNN). Three convolutional layers are then used to extract local features of the denoised negative pressure wave signal, and the number of feature maps in each layer is 24, 48 and 96, respectively. A convolution kernel with a size of 1x15 is used in the first layer, and a convolution kernel with a size of 1x7 is used in the other two layers. The way in which the convolutional layers are selected may help to extract feature of a long time segment firstly and reduce the parameters of the model while effectively learning the features. Behind the convolutional layers is a maximum pooling layer with a pooling size of 3 and a step size of 2. The denoised negative pressure wave signal is compressed through the maximum pooling layer after the convolutional layers, which is helpful for subsequent processing of the recurrent neural network.
[0063] The denoised negative pressure wave signal, as a kind of time sequence, has some features related to the time sequence, and it is hard to extract information related to the time sequence merely through the convolutional neural network. However, in the deep learning network model, correlation information before and after the sequence is needed for determination. In this embodiment, a long short-term memory neural network (LSTM) is adopted to extract the time sequence features of the denoised negative pressure wave signal.
[0064] In the embodiment, a 5-layer LSTM structure, with 20 units in each layer, is employed. During training, 20 time steps are developed in the LSTM. A total of 96 feature maps are inputted into the LSTM structure. The time length of each inputted feature map is set as N. The time length N is divided into 20 groups along the time dimension. Therefore each group has 96 feature maps each with a time length of N / 20. The feature maps of the same group are obtained by different convolution kernel operations performed on the negative pressure wave signal of the same time segment, thus the feature maps of the same group are consistent in the time dimension. Each group is inputted into the LSTM in sequence for processing, and the LSTM determines whether to input the current feature into the next time step according to the influence of features of each group on the final result. For each time step, both the incoming feature and the content passed down from the previous time step should be considered, to obtain the calculation result of the current time step. Finally, after such operations as Batch Normalization and non-linear activation (Relu), the output of LSTM is output to the fully connected layer, and the probability of each class is obtained through a softmax function. Therefore the result of the denoised negative pressure wave signal is obtained. The inflection point information of features of the denoised negative pressure wave signal is then extracted, and the time difference between arrival times of the upstream negative pressure wave and the downstream negative pressure wave is calculated.
[0065] S105, collecting information in a wave velocity correction formula and correcting the calculated negative pressure wave velocity.
[0066] A distance between the pipeline pig and an upstream pressure sensor, times at which the upstream pressure sensor and a downstream pressure sensor receive the negative pressure wave signal, and a distance between the upstream pressure sensor and the downstream pressure sensor are collected in the pipeline, to correct the negative pressure wave velocity by means of averaging.
[0067] For example, in the embodiment of this disclosure, the distance between the pipeline pig and the upstream pressure sensor is selected as point X, and 5 groups of different positions of X are marked as Xt, X2, X3, X4 and X5, and the times at which the upstream pressure sensor and the downstream pressure sensor receive the negative pressure wave signal when the pipeline pig runs to the points X1? X2, X3, X4 and X5 are recorded, to obtain 5 groups of times. When the pipeline pig runs to the point X1? the time at which the upstream pressure sensor receives the negative pressure wave signal is ttl, and the time at which the downstream pressure sensor receives the negative pressure wave signal is trl. As shown in Figure 3, the distance between the upstream pressure sensor and the downstream pressure sensor is L, then awl can be obtained by introducing X,. tn, trl and L into the wave velocity correction formula, and the wave velocity correction formula is: awi (L-X1)t[1+X1 trl 2 tn tri
[0068] A corrected negative pressure wave velocity aw can be obtained by adding awV aw2 ■ ■ ■ aw5 together and then dividing the sum by 5.
[0069] S106, introducing the corrected negative pressure wave velocity and the time difference between arrival times of the upstream negative pressure wave and the downstream negative pressure wave into a negative pressure wave positioning formula to obtain position of the pipeline pig.
[0070] In the embodiment of this disclosure, the corrected negative pressure wave velocity aw and the time difference td between arrival times of the upstream negative pressure wave signal and the downstream negative pressure wave signal are put into the negative pressure wave positioning formula, so as to obtain the real-time position Lx of the pipeline pig, and the negative pressure wave positioning formula is:
[0071] In the embodiment of this disclosure, the magnetic flux leakage defect detection network has such advantages as high detection accuracy and fast detection speed; the bidirectional long short-term memory neural network can accurately predict the noise signal contour by constructing the noise-containing negative pressure wave signal training model, so as to eliminate the noise; and the one-dimensional convolutional neural network in series with the recurrent neural network is capable of accurately classifying the inflection points, compared with the traditional method of extracting time difference of negative pressure waves, to ensure the time difference is accurately extracted. The negative pressure wave velocity correction formula ensures small error. This method can ensure the accuracy of real-time positioning of the pipeline pig, which has important theoretical and practical guiding value, and can also perform effective detection in different pipeline operating conditions. This method provides a novel idea of real-time online positioning of the pipeline pig.
[0072] On the basis of the above method, an apparatus for positioning a pipeline pig in real time based on fusion of multi-sensor parameters is provided according to an embodiment of the present disclosure.
[0073] As shown in Figure 4, the apparatus includes the following modules.
[0074] A basic information collection module 401, which is configure to collect a negative pressure wave signal of a head portion and a tail portion of a pipeline and a magnetic flux leakage image of the pipeline.
[0075] A pipeline magnetic flux leakage determination module 402, which is configured to detect the magnetic flux leakage image of the pipeline based on a magnetic flux leakage defect detection network, to determine whether there is a leakage in the pipeline.
[0076] A negative pressure wave signal denoising module 403, which is configured to perform denoising on the negative pressure wave signal based on a bidirectional long short-term memory neural network, if it is determined that there is no leakage in the pipeline.
[0077] A negative pressure wave time difference calculation module 404, which is configured to perform inflection point feature recognition on the denoised negative pressure wave signal based on an one-dimensional convolutional neural network in series with a recurrent neural network, to extract a time difference between arrival times of an upstream negative pressure wave and a downstream negative pressure wave.
[0078] An upstream distance collection module 405, which is configured to collect a distance between the pipeline pig and an upstream pressure sensor during running process of the pipeline pig.
[0079] A time-distance collection module 406, which is configured to collect the times at which the upstream pressure sensor and a downstream pressure sensor receive the negative pressure wave signal, and a distance between the upstream pressure sensor and the downstream pressure sensor.
[0080] A negative pressure wave velocity calculation module 407, which is configured to calculate a plurality of negative pressure wave velocities based on different distances between the pipeline pig and the upstream pressure sensor during running process of the pipeline pig, the times at which the upstream pressure sensor and the downstream pressure sensor receive the negative pressure wave signal, and the distance between the upstream pressure sensor and the downstream pressure sensor.
[0081] A corrected negative pressure wave calculation module 408, which is configured to calculate an average value of the plurality of negative pressure wave velocities to obtain a corrected negative pressure wave velocity.
[0082] A pipeline pig position calculation module 409, which is configured to introduce the corrected negative pressure wave velocity and the time difference between arrival times of the upstream negative pressure wave and the downstream negative pressure wave into a negative pressure wave positioning formula so as to obtain position of the pipeline pig.
[0083] In an embodiment, the pipeline magnetic flux leakage determination module 402 is further configured to input the magnetic flux leakage image of the pipeline into the magnetic flux leakage defect detection network, and after convolution operation, obtain a magnetic flux leakage defect image of the pipeline; and determine whether there is a leakage in the pipeline based on the magnetic flux leakage defect image of the pipeline.
[0084] In an embodiment, the negative pressure wave signal denoising module 403 is further configured to input the negative pressure wave signal into the bidirectional long short-term memory neural network to obtain a noise contour signal; and subtract the noise contour signal from the negative pressure wave signal to obtain the denoised negative pressure wave signal.
[0085] In an embodiment, the negative pressure wave signal denoising module 403 is further configured to input the denoised negative pressure wave signal into the one-dimensional convolutional neural network in series with the recurrent neural network, wherein the one-dimensional convolutional neural network learns an inflection point feature of the denoised negative pressure wave signal, and the recurrent neural network extracts inflection point information of the denoised negative pressure wave signal, and classify the denoised negative pressure wave signal based on the inflection point information; screen out the negative pressure wave signal containing at least two pieces of inflection point information; and calculate a time value between adjacent inflection points and set the time value as the time difference between arrival times of the upstream negative pressure wave and the downstream negative pressure wave.
[0086] In an embodiment, the corrected negative pressure wave calculation module 408 is further configured to record 5 different positions X1? X2, X3, X4 and X5 of the pipeline pig during running process of the pipeline pig; record times tJ1; tl2, ti3, ti4 and ti5 at which the upstream pressure sensor receives the negative pressure wave signal when the pipeline pig runs to the positions X1? X2, X3, X4 and X5, respectively, and record times trl, tr2, tr3, tr4 and tr5 at which the downstream pressure sensor receives the negative pressure wave signal when the pipeline pig runs to the positions X1? X2, X3 , X4 and X5, respectively, and the distance between the upstream pressure sensor and the downstream pressure sensor is L. When the pipeline pig runs to the position X]. the time at which the upstream pressure sensor receives the negative pressure wave signal is tn, and the time at which the downstream pressure sensor receives the negative pressure wave signal is trl, and then the negative pressure wave velocity is awl. The Xt, trl and L are put into a wave velocity correction formula, wherein the wave velocity correction formula is: W 1 X. X. ’ wherein, awl is the negative pressure wave velocity when the pipeline pig runs to X15 similarly, aw2 is a negative pressure wave velocity when the pipeline pig runs to X2, aW3 is a negative pressure wave velocity when the pipeline pig runs to X3, aw4 is a negative pressure wave velocity when the pipeline pig runs to X4, and aw5 is a negative pressure wave velocity when the pipeline pig runs to X5, and then the corrected negative pressure wave velocity is: ~ 5
[0087] In an embodiment, the corrected negative pressure wave calculation module 408 is further configured to: the corrected negative pressure wave velocity is aw, the time difference between arrival times of the upstream negative pressure wave signal and the downstream negative pressure wave signal is td, and the position of the pipeline pig is Lx, then the negative pressure wave positioning formula is: t ___ 'V ™• 2
[0088] Identical and similar parts among various embodiments in this specification may be referred to each other. In particular, simple description is made to the embodiments related to the apparatus as the embodiments related to the apparatus are generally similar to the embodiments related to the method, and thus reference may be made to the relevant description of the method embodiments.
[0089] This application is described in details above in combination with specific embodiments and exemplary examples, however, these descriptions are not to be construed as limitations to this application. It can be understood by those skilled in the art understand that, without deviating from the spirit and scope of this application, the technical solutions and its implementations may be replaced, modified or improved in a variety of equivalent ways, which fall within the scope of this application. The protection scope of the present disclosure should be determined by the attached claims.
Claims
1. A method for positioning a pipeline pig in real time based on fusion of multi-sensor parameters, comprising:collecting a negative pressure wave signal of a head portion and a tail portion of a pipeline and a magnetic flux leakage image of the pipeline;detecting the magnetic flux leakage image of the pipeline based on a magnetic flux leakage defect detection network to determine whether there is a leakage in the pipeline;performing denoising on the negative pressure wave signal based on a bidirectional long short-term memory neural network if it is determined that there is no leakage in the pipeline;performing inflection point feature recognition on a denoised negative pressure wave signal based on one-dimensional convolutional neural network in series with recurrent neural network, to extract a time difference between arrival times of an upstream negative pressure wave and a downstream negative pressure wave;collecting a distance between the pipeline pig and an upstream pressure sensor during running of the pipeline pig;collecting times at which the upstream pressure sensor and a downstream pressure sensor receive the negative pressure wave signal, and a distance between the upstream pressure sensor and the downstream pressure sensor;calculating a plurality of negative pressure wave velocities based on different distances between the pipeline pig and the upstream pressure sensor during running of the pipeline pig, the times at which the upstream pressure sensor and the downstream pressure sensor receive the negative pressure wave signal, and the distance between the upstream pressure sensor and the downstream pressure sensor;calculating an average value of the plurality of negative pressure wave velocities to obtain a corrected negative pressure wave velocity; andintroducing the corrected negative pressure wave velocity and the time difference between arrival times of the upstream negative pressure wave and the downstream negative pressure wave into a negative pressure wave positioning formula to obtain position of the pipeline pig.
2. The method according to claim 1, wherein detecting the magnetic flux leakage image of the pipeline based on the magnetic flux leakage defect detection network to determinewhether there is a leakage in the pipeline comprises:inputting the magnetic flux leakage image of the pipeline into the magnetic flux leakage defect detection network, and, after convolution operation, obtaining a magnetic flux leakage defect image of the pipeline; anddetermining whether there is a leakage in the pipeline based on the magnetic flux leakage defect image of the pipeline.
3. The method according to claim 1, wherein performing denoising on the negative pressure wave signal based on the bidirectional long short-term memory neural network comprises:inputting the negative pressure wave signal into the bidirectional long short-term memory neural network to obtain a noise contour signal; andsubtracting the noise contour signal from the negative pressure wave signal to obtain the denoised negative pressure wave signal.
4. The method according to claim 3, wherein performing inflection point feature recognition on the denoised negative pressure wave signal based on the one-dimensional convolutional neural network in series with the recurrent neural network to extract the time difference between arrival times of the upstream negative pressure wave and the downstream negative pressure wave comprises:inputting the denoised negative pressure wave signal into the one-dimensional convolutional neural network in series with the recurrent neural network;learning, by the one-dimensional convolutional neural network, an inflection point feature of the denoised negative pressure wave signal;extracting, by the recurrent neural network, inflection point information of the denoised negative pressure wave signal;classifying, by the recurrent neural network, the denoised negative pressure wave signal based on the inflection point information;screening out negative pressure wave signal containing at least two pieces of inflection point information; andcalculating a time value between adjacent inflection points and setting the time value as the time difference between arrival times of the upstream negative pressure wave and the downstream negative pressure wave.
5. The method according to claim 1, wherein calculating the average value of thenegative pressure wave velocities to obtain the corrected negative pressure wave velocity comprises:recording 5 different positions Xv X2. X3, X4 and X5 of the pipeline pig during running of the pipeline pig;recording times t;i, t(2, t(3, and tt5 at which the upstream pressure sensor receives the negative pressure wave signal when the pipeline pig runs to the positions X15 X2, X3, X4 and X5, respectively, and recording times trl, tr2, tr3, tr4 and tr5 at which the downstream pressure sensor receives the negative pressure wave signal when the pipeline pig runs to the positions Xx, X2, X3 X4 and X5, respectively, wherein the distance between the upstream pressure sensor and the downstream pressure sensor is L;when the pipeline pig runs to the position X1? a time at which the upstream pressure sensor receives the negative pressure wave signal being tu, and a time at which the downstream pressure sensor receives the negative pressure wave signal being trl, and the negative pressure wave velocity being awl, introducing Xv t{1. trl and L into a wave velocity correction formula, wherein the wave velocity correction formula is:_ (L—X1)t{1+X1 trlawl is the negative pressure wave velocity when the pipeline pig runs to X1? is a negative pressure wave velocity when the pipeline pig runs to X2, aW3 is anegative pressure wave velocity when the pipeline pig runs to X3. aw4 is a negative pressure wave velocity when the pipeline pig runs to X4, aw5 is a negative pressure wave velocity when the pipeline pig runs to X5, andthe corrected negative pressure wave velocity is:- 56. The method according to claim 5, wherein introducing the corrected negative pressure wave velocity and the time difference between arrival times of the upstream negative pressure wave and the downstream negative pressure wave into the negative pressure wave positioning formula to obtain position of the pipeline pig comprises:the corrected negative pressure wave velocity being aw, the time difference beween arrival times of the upstream negative pressure wave signal and the downstream negative pressure wave signal being td, and the position of the pipeline pig being Lx, then the negative pressure wave positioning formula being:whereinand then aw2_ L+ctw^d— •x 27. An apparatus for positioning a pipeline pig in real time based on fusion of multi-sensor parameters, comprising:a basic information collection module (401) configured to collect a negative pressure wave signal of a head portion and a tail portion of a pipeline and a magnetic flux leakage image of the pipeline;a pipeline magnetic flux leakage determination module (402) configured to detect the magnetic flux leakage image of the pipeline based on a magnetic flux leakage defect detection network to determine whether there is a leakage in the pipeline;a negative pressure wave signal denoising module (403) configured to, if it is determined that there is no leakage in the pipeline, perform denoising on the negative pressure wave signal based on a bidirectional long short-term memory neural network;a negative pressure wave time difference calculation module (404) configured to perform inflection point feature recognition on a denoised negative pressure wave signal based on one-dimensional convolutional neural network in series with recurrent neural network, to extract a time difference between arrival times of an upstream negative pressure wave and a downstream negative pressure wave;an upstream distance collection module (405) configured to collect a distance between the pipeline pig and an upstream pressure sensor during running of the pipeline pig;a time-distance collection module (406) configured to collect times at which the upstream pressure sensor and a downstream pressure sensor receive the negative pressure wave signal, and a distance between the upstream pressure sensor and the downstream pressure sensor;a negative pressure wave velocity calculation module (407) configured to calculate a plurality of negative pressure wave velocities based on different distances between the pipeline pig and the upstream pressure sensor during running of the pipeline pig, the times at which the upstream pressure sensor and the downstream pressure sensor receive the negative pressure wave signal, and the distance between the upstream pressure sensor and the downstream pressure sensor;a corrected negative pressure wave calculation module (408) configured to calculate an average value of the plurality of negative pressure wave velocities to obtain a corrected negative pressure wave velocity; anda pipeline pig position calculation module (409) configured to introduce the corrected negative pressure wave velocity and the time difference between arrival times of the upstream negative pressure wave and the downstream negative pressure wave into a negative pressure wave positioning formula to obtain position of the pipeline pig.5 8. A computer device, comprising a memory and a processor, the memory storingcomputer programs that are applicable for being loaded by the processor to implement the method according to any one of claims 1-6.
9. A computer readable storage medium, which stores computer programs that are applicable for being loaded by a processor to implement the method according to any one of 10 claims 1-6.
Citation Information
Patent Citations
Pipeline cleaner positioning system and method
CN109668054A
Pipeline defect data collecting and recording device and method
CN113933382A
Pipe cleaner real-time positioning method and device with multiple mutually fused parameters
CN115935241A
Intelligent analysis system using magnetic flux leakage data in pipeline inner inspection
US20200210826A1
Cited By
Road rockfall detection method and device based on deep learning and electronic equipment
CN119251689A
