Pipeline ball passing detection method and device, storage medium, and computer equipment

Through the dual-channel pipe wall vibration signal data acquisition and adaptive detection algorithm, the accuracy and maintenance complexity of ball detection during oil and gas pipeline cleaning are solved, and automated ball collection and safe and reliable pipeline operation are achieved.

CN118793875BActive Publication Date: 2024-12-03NORTHEASTERN UNIV CHINA
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411290782.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-14
Publication Date
2024-12-03
Estimated Expiration
2044-09-14

AI Technical Summary

Technical Problem

In the prior art, during the cleaning process of oil and gas pipelines, it is difficult to accurately detect the passage of the pipe cleaner or internal detector, resulting in missed or false alarms, and the mechanical overball indicator is prone to damage, complex maintenance, affecting pipeline safety and economic benefits.

Method used

Using dual-channel tube wall vibration signal data acquisition and preprocessing, the vibration signal data collected by the first and second sensors can be calculated to calculate the adaptive overball detection value, determine the overball detection results during the target detection time period, and adapt to different weights and Dimensional pipe cleaner or internal detector.

Benefits of technology

Improve the accuracy and reliability of overball detection, reduce false alarms and missed reports, reduce maintenance complexity and leakage risks of mechanical indicators, realize automated ball collection operations, and improve the safety and economical pipeline operations. benefit.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118793875B_ABST
    Figure CN118793875B_ABST
Patent Text Reader

Abstract

The present application discloses a pipeline ball passing detection method and device, storage medium, and computer equipment; the pipeline ball passing detection method includes: for a target detection oil and gas pipeline within a preset sampling time period, collecting first pipe wall vibration signal data based on a first sensor, calculating the first vibration signal sampling value after data preprocessing, collecting second pipe wall vibration signal data based on a second sensor, calculating the second vibration signal sampling value after data preprocessing; determining a target detection time period including multiple consecutive preset sampling time periods, and determining an adaptive ball passing detection value based on the first vibration signal sampling value and the second vibration signal sampling value in the target detection time period, and a preset ball passing detection standard value to determine the ball passing detection result of the target detection oil and gas pipeline within the target detection time period. By adaptively adjusting the ball passing detection value, it can adapt to pipe cleaners (pipe cleaning balls) of different weights and sizes or other devices that can be used to clean pipelines, such as internal detectors.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of pipeline in-line detection, and in particular to a pipeline ball passing detection method and device, storage medium, and computer equipment. Background Art

[0002] Pipelines carry the important task of transporting energy, and their transportation costs are low and they are safe and reliable. There are many accidents caused by pipeline leakage, and regular inspection is particularly critical for pipeline transportation. Since long-term operation of pipelines will form sediments on the pipe wall, in order to prevent the pipeline inspection robot from getting stuck in the pipeline, foam ball pipe cleaners (also known as pipe cleaning balls) and mechanical ball pipe cleaners (also known as pipe cleaning balls) are usually used to clean the pipeline once or multiple times before inspection. In the pipeline inspection process, the pipe cleaner (pipe cleaning ball) or other devices that can be used for pipeline cleaning, such as internal detectors, are manually sent out from the ball barrel, and run through the pipeline to the ball barrel. The ball barrel is equipped with a mechanical ball indicator. When the pipe cleaner (pipe cleaning ball) or internal detector reaches the ball barrel, the ball barrel is manually controlled to take it out. If it is not taken out in time, it may cause the internal detector or pipe cleaner (pipe cleaning ball) to continue to run backward with the pipeline, making it difficult to intercept. Summary of the invention

[0003] In view of this, the present application provides a pipeline ball passing detection method and device, storage medium, and computer equipment, which are applied to oil and gas pipelines, and the oil and gas pipelines are cleaned based on the cleaning ball; for the target detection oil and gas pipeline within the preset sampling time period, the first pipe wall vibration signal data is collected based on the first sensor, and the first vibration signal sampling value is calculated after data preprocessing; the second pipe wall vibration signal data is collected based on the second sensor, and the second vibration signal sampling value is calculated after data preprocessing; determine the target detection time period including multiple consecutive preset sampling time periods, and determine the adaptive ball passing detection value based on the first vibration signal sampling value, the second vibration signal sampling value and the preset ball passing detection standard value in the target detection time period, which is used to determine the ball passing detection result of the target detection oil and gas pipeline within the target detection time period. By adaptively adjusting the ball passing detection value, it is possible to adapt to pipe cleaners (cleaning balls) of different weights and sizes or other devices such as internal detectors that can be used to clean pipelines.

[0004] According to one aspect of the present application, a pipeline ball passing detection method is provided, which is applied to an oil and gas pipeline, wherein the oil and gas pipeline is cleaned based on a pipe cleaning ball; the pipeline ball passing detection method comprises:

[0005] Collecting dual-channel pipe wall vibration signal data of the target detection oil and gas pipeline within a preset sampling time period, wherein the dual-channel pipe wall vibration signal data includes first pipe wall vibration signal data collected by a first sensor and second pipe wall vibration signal data collected by a second sensor, the first sensor and the second sensor are separated by a preset distance and are both installed on the outer wall of the target detection oil and gas pipeline;

[0006] Calculating a first vibration signal sampling value based on the first pipe wall vibration signal data after data preprocessing, and calculating a second vibration signal sampling value based on the second pipe wall vibration signal data after data preprocessing;

[0007] Determine a target detection time period including a plurality of consecutive preset sampling time periods, and determine an adaptive ball passing detection value of the target detection time period based on a plurality of first vibration signal sampling values ​​in the target detection time period, a plurality of second vibration signal sampling values ​​in the target detection time period, and a preset ball passing detection standard value;

[0008] Based on the adaptive ball-passing detection value, a ball-passing detection result of the target detection oil and gas pipeline within the target detection time period is determined.

[0009] According to another aspect of the present application, a pipeline ball passing detection device is provided, which is applied to an oil and gas pipeline, and the oil and gas pipeline is cleaned based on a pipe cleaning ball; the pipeline ball passing detection device comprises:

[0010] A vibration data acquisition module, used to acquire dual-channel pipe wall vibration signal data of a target detection oil and gas pipeline within a preset sampling time period, wherein the dual-channel pipe wall vibration signal data includes first pipe wall vibration signal data acquired by a first sensor, and second pipe wall vibration signal data acquired by a second sensor, wherein the first sensor and the second sensor are separated by a preset distance and are both installed on the outer wall of the target detection oil and gas pipeline;

[0011] A vibration data processing module, used to calculate a first vibration signal sampling value based on the first pipe wall vibration signal data after data preprocessing, and to calculate a second vibration signal sampling value based on the second pipe wall vibration signal data after data preprocessing;

[0012] An adaptive parameter determination module is used to determine a target detection time period including a plurality of consecutive preset sampling time periods, and determine an adaptive ball passing detection value of the target detection time period based on a plurality of first vibration signal sampling values ​​in the target detection time period, a plurality of second vibration signal sampling values ​​in the target detection time period, and a preset ball passing detection standard value;

[0013] The pipeline ball passing detection module is used to determine the ball passing detection result of the target detection oil and gas pipeline within the target detection time period based on the adaptive ball passing detection value.

[0014] According to another aspect of the present application, a storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned pipeline ball passing detection method is implemented.

[0015] According to another aspect of the present application, a computer device is provided, including a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor implements the above-mentioned pipeline ball passing detection method when executing the computer program.

[0016] By means of the above technical scheme, the present application provides a pipeline ball passing detection method and device, storage medium, and computer equipment, which are applied to oil and gas pipelines, and the oil and gas pipelines are cleaned based on the cleaning ball; for the target detection oil and gas pipeline within the preset sampling time period, the first pipe wall vibration signal data is collected based on the first sensor, and the first vibration signal sampling value is calculated after data preprocessing; the second pipe wall vibration signal data is collected based on the second sensor, and the second vibration signal sampling value is calculated after data preprocessing; a target detection time period including multiple consecutive preset sampling time periods is determined, and an adaptive ball passing detection value is determined based on the first vibration signal sampling value, the second vibration signal sampling value, and the preset ball passing detection standard value in the target detection time period, which is used to determine the ball passing detection result of the target detection oil and gas pipeline within the target detection time period. By adaptively adjusting the ball passing detection value, it is possible to adapt to pipe cleaners (cleaning balls) of different weights and sizes or other devices such as internal detectors that can be used to clean pipelines.

[0017] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0019] Figure 1 A schematic diagram of a pipeline ball passing detection method provided in an embodiment of the present application is shown;

[0020] Figure 2 A schematic flow chart of another pipeline ball passing detection method provided in an embodiment of the present application is shown;

[0021] Figure 3 A schematic diagram showing a flow chart of another pipeline ball passing detection method provided in an embodiment of the present application is shown;

[0022] Figure 4 A schematic structural diagram of a pipeline ball passing detection device provided in an embodiment of the present application is shown;

[0023] Figure 5 A schematic structural diagram of another pipeline ball passing detection device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0024] The present application will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other without conflict.

[0025] In this embodiment, a pipeline ball passing detection method is provided. Figure 1 As shown, it is applied to oil and gas pipelines, and the oil and gas pipelines are cleaned based on pipe cleaning balls; the pipeline ball passing detection method includes:

[0026] Step 101, collecting dual-channel pipe wall vibration signal data of the target detection oil and gas pipeline within a preset sampling time period, wherein the dual-channel pipe wall vibration signal data includes first pipe wall vibration signal data collected by a first sensor, and second pipe wall vibration signal data collected by a second sensor, the first sensor and the second sensor are separated by a preset distance, and both are installed on the outer wall of the target detection oil and gas pipeline.

[0027] At present, it is generally necessary to manually observe and judge the passage of other devices that can be used for pipeline cleaning, such as pipe cleaners (pipe cleaning balls) and internal detectors in oil and gas pipelines, so as to turn the valve to perform the ball collection operation, or send instructions to the ball collection system to perform the automatic ball collection procedure. Since different types of pipe cleaners (pipe cleaning balls) and internal detectors have differences in weight and length, the size of the vibration signal generated by friction with the pipe wall in the oil and gas pipeline is also different. Since some pipe cleaners (pipe cleaning balls) are light in weight and have soft outer walls, traditional mechanical ball passing indicators will not be triggered when such pipe cleaners (pipe cleaning balls) pass, which is easy to cause missed reports. It is also difficult for humans to judge the passage of such pipe cleaners (pipe cleaning balls) by sound. At the same time, mechanical ball passing indicators are prone to missed reports due to wear and corrosion, and are prone to leakage. In addition, since it is necessary to open holes in the pipe wall for welding, it is difficult to replace and repair, and replacement will cause the oil and gas pipeline to stop operating, causing unnecessary economic losses.

[0028] To this end, in the above embodiment of the present application, the first sensor and the second sensor can be installed at a preset distance on the outer wall of the target oil and gas pipeline to collect the "vibration signal". Specifically, the sensor can be a piezoelectric acceleration sensor, which can be installed by adsorbing it on the outer wall of the oil and gas pipeline through a magnet. The preset distance between the sensors can be set between 1 meter and 1.4 meters, for example, it can be set to 1.2 meters. When testing the oil and gas pipeline, the same oil and gas pipeline is tested at one time. The length of the oil and gas pipeline can be as short as a few hundred meters or as long as hundreds of kilometers or thousands of kilometers. Two sensors are installed on each oil and gas pipeline for data collection, and the distance between the oil and gas pipeline head and the nearest sensor can be set to be no less than 3 meters.

[0029] Next, the dual-channel pipe wall vibration signal data of the target oil and gas pipeline within the preset sampling time period is collected, and the dual-channel pipe wall vibration signal data includes the first pipe wall vibration signal data collected by the first sensor and the second pipe wall vibration signal data collected by the second sensor, so as to prepare for the subsequent ball detection. In particular, when collecting the dual-channel pipe wall vibration signal data, the collection can be based on a 50ksps sampling rate, and the preset sampling time period can be set to 0.2s. For this reason, for example, for the first sensor, 10,000 first pipe wall vibration signal data can be collected within 0.2s.

[0030] Step 102 , calculating a first vibration signal sampling value based on the first pipe wall vibration signal data after data preprocessing, and calculating a second vibration signal sampling value based on the second pipe wall vibration signal data after data preprocessing.

[0031] Next, the first pipe wall vibration signal data is preprocessed, and the first vibration signal sampling value is calculated based on the preprocessed first pipe wall vibration signal data, and the second pipe wall vibration signal data is preprocessed, and the second vibration signal sampling value is calculated based on the preprocessed second pipe wall vibration signal data. To this end, for the first sensor, 10,000 first pipe wall vibration signal data collected by the first sensor within 0.2s are used to calculate a first vibration signal sampling value for subsequent ball passing detection.

[0032] Step 103, determine a target detection time period including multiple continuous preset sampling time periods, and determine an adaptive ball passing detection value of the target detection time period based on multiple first vibration signal sampling values ​​in the target detection time period, multiple second vibration signal sampling values ​​in the target detection time period and a preset ball passing detection standard value.

[0033] Next, determine the target detection time period that includes multiple continuous preset sampling time periods. For example, after the start of collection, continuous collection is carried out for 3 seconds, and the target detection time period is within the 3 seconds of collection, which includes a total of 15 continuous 0.2s preset sampling time periods. Then, based on the first vibration signal sampling value and the second vibration signal sampling value calculated for each 0.2s preset sampling time period within 3 seconds, finally 15 first vibration signal sampling values ​​and 15 second vibration signal sampling values ​​are obtained, and then combined with the preset ball passing detection standard value, the adaptive ball passing detection value is jointly determined.

[0034] Step 104: Based on the adaptive ball-passing detection value, determine the ball-passing detection result of the target detection oil and gas pipeline within the target detection time period.

[0035] Finally, based on the determined adaptive ball-passing detection value, the ball-passing detection result of the target oil and gas pipeline within the target detection time period is determined to complete the ball-passing detection of the oil and gas pipeline.

[0036] By applying the technical solution of this embodiment, for the target detection oil and gas pipeline within the preset sampling time period, the first pipe wall vibration signal data is collected based on the first sensor, and the first vibration signal sampling value is calculated after data preprocessing; the second pipe wall vibration signal data is collected based on the second sensor, and the second vibration signal sampling value is calculated after data preprocessing; determine the target detection time period including multiple consecutive preset sampling time periods, and determine the adaptive ball detection value based on the first vibration signal sampling value, the second vibration signal sampling value and the preset ball detection standard value in the target detection time period, which is used to determine the ball detection result of the target detection oil and gas pipeline within the target detection time period. By adaptively adjusting the ball detection value, it can adapt to pipe cleaners (pipe cleaning balls) of different weights and sizes or other devices that can be used to clean pipelines, such as internal detectors.

[0037] Further, as a refinement and extension of the specific implementation of the above embodiment, in order to fully illustrate the specific implementation process of this embodiment, another pipeline ball passing detection method is provided, such as Figure 2 As shown, it is applied to oil and gas pipelines, and the oil and gas pipelines are cleaned based on pipe cleaning balls; the pipeline ball passing detection method includes:

[0038] Step 201, collecting dual-channel pipe wall vibration signal data of the target detection oil and gas pipeline within a preset sampling time period, wherein the dual-channel pipe wall vibration signal data includes first pipe wall vibration signal data collected by a first sensor, and second pipe wall vibration signal data collected by a second sensor, the first sensor and the second sensor are separated by a preset distance, and both are installed on the outer wall of the target detection oil and gas pipeline.

[0039] In the above embodiment of the present application, dual-channel pipe wall vibration signal data of the target detection oil and gas pipeline is collected within a preset sampling time period. For example, dual-channel synchronous collection is performed at a sampling rate of 50ksps for 0.2s to obtain 10,000 first pipe wall vibration signal data and 10,000 second pipe wall vibration signal data. The two channel sampling points (first pipe wall vibration signal data and second pipe wall vibration signal data) are respectively recorded as and , Equivalent to 10000.

[0040] Step 202 , calculating a first vibration signal sampling value based on the first pipe wall vibration signal data after data preprocessing, and calculating a second vibration signal sampling value based on the second pipe wall vibration signal data after data preprocessing.

[0041] Next, the first pipe wall vibration signal data is preprocessed to calculate the first vibration signal sampling value , perform data preprocessing on the second pipe wall vibration signal data, and calculate the second vibration signal sampling value .

[0042] Step 203, determine a target detection time period including multiple consecutive preset sampling time periods, determine a first vibration signal sampling series based on the first vibration signal sampling values ​​of each preset sampling time period arranged in the order of acquisition time in the target detection time period, and determine a second vibration signal sampling series based on the second vibration signal sampling values ​​of each preset sampling time period arranged in the order of acquisition time in the target detection time period, wherein the first vibration signal sampling series and the second vibration signal sampling series contain the same number of sampling values.

[0043] Next, determine a target detection time period that includes multiple continuous preset sampling time periods. For example, within 3 seconds of continuous collection from the start of collection, obtain dual-channel pipe wall vibration signal data for a total of 15 continuous preset sampling time periods of 0.2 seconds. Determine the first vibration signal sampling series based on the first vibration signal sampling value of each preset sampling time period arranged in the order of collection time in the target detection time period, and determine the second vibration signal sampling series based on the second vibration signal sampling value of each preset sampling time period arranged in the order of collection time in the target detection time period. Specifically, when the target detection time period is set to 3s, then the results of the two channels obtained within the first 0.2s of collection since the start of collection (the first vibration signal sampling value within 0.2s of the first preset sampling time period) , and the second vibration signal sampling value ) are stored in the 15th bit of the 15-bit arrays Data_channel_1[] and Data_channel_2[], and then, each time a new data is stored in the order of acquisition time, all data are uniformly shifted to the left by one bit, the data at bit 0 is discarded, and the new data is placed at bit 15, following the first-in-first-out principle. The data in the arrays Data_channel_1[] and Data_channel_2[] are recorded as , ... and , ... Thus, for example, when the array Data_channel_1[] is filled with 15 bits for the first time, it is equivalent to collecting the first vibration signal sampling values ​​of a total of 15 preset sampling time periods within 3 seconds.

[0044] Step 204, based on the preset ball passing detection standard value, the maximum first vibration signal sampling value in the first vibration signal sampling series, the maximum second vibration signal sampling value in the second vibration signal sampling series and the adaptive process quantity calculation formula, calculate the adaptive process quantity value, wherein the adaptive process quantity value includes the first adaptive process quantity value, the second adaptive process quantity value, the third adaptive process quantity value and the fourth adaptive process quantity value, the preset ball passing detection standard value includes the first preset ball passing detection standard value and the second preset ball passing detection standard value, and the adaptive process quantity calculation formula is:

[0045] ,

[0046] , , and are respectively the first adaptive process value, the second adaptive process value, the third adaptive process value and the fourth adaptive process value, and are respectively the first vibration signal sampling sequence and the second vibration signal sampling sequence The sampling value at the location, and are respectively the first vibration signal sampling sequence and the second vibration signal sampling sequence The sampling value at the location, and are respectively the position of the maximum first vibration signal sampling value in the first vibration signal sampling sequence and the position of the maximum second vibration signal sampling value in the second vibration signal sampling sequence, and They are respectively the first preset ball passing detection standard value and the second preset ball passing detection standard value.

[0047] Next, based on the preset ball passing detection standard value, the maximum first vibration signal sampling value in the first vibration signal sampling series, the maximum second vibration signal sampling value in the second vibration signal sampling series and the adaptive process quantity calculation formula, the adaptive process quantity value is calculated. In particular, when the position of the maximum first vibration signal sampling value in the first vibration signal sampling series is equal to the position of the maximum second vibration signal sampling value in the second vibration signal sampling series, that is, equal When it is regarded as an interference signal, no operation is performed. Not equal to When , the adaptive process quantity value is calculated according to the adaptive process quantity calculation formula, that is:

[0048] Calculation parameters , , and ,in:

[0049] ,

[0050] The array Data_channel_1[] The value of the bit, The array Data_channel_2[] The value of the bit, The array Data_channel_1[] The value of the bit, The array Data_channel_2[] The value of the bit.

[0051] Step 205, determine the first numerical determination interval based on the third adaptive process value in multiple preset first numerical determination intervals, and determine the first adaptive ball passing detection value based on the first adaptive process value and the second adaptive process value in multiple preset first adaptive ball passing detection values ​​corresponding to the first numerical determination interval.

[0052] Step 206, determine the second numerical determination interval based on the fourth adaptive process value in a plurality of preset second numerical determination intervals, and determine the second adaptive ball passing detection value based on the first adaptive process value and the second adaptive process value in a plurality of preset second adaptive ball passing detection values ​​corresponding to the second numerical determination interval.

[0053] Step 207, summing the first adaptive ball passing detection value and the second adaptive ball passing detection value to obtain a third adaptive ball passing detection value, wherein the adaptive ball passing detection value includes the first adaptive ball passing detection value, the second adaptive ball passing detection value and the third adaptive ball passing detection value.

[0054] Step 208, determine the ball passing detection value interval based on the third adaptive ball passing detection value. When the absolute value of the difference between the maximum first vibration signal sampling value and the maximum second vibration signal sampling value is within the ball passing detection value interval, and both the first adaptive ball passing detection value and the second adaptive ball passing detection value are non-zero, the ball passing detection result of the target detected oil and gas pipeline within the target detection time period is that a ball has passed.

[0055] Next, in a plurality of preset first numerical determination intervals, the first numerical determination interval is determined based on the third adaptive process value, and in a plurality of preset first adaptive ball passing detection values ​​corresponding to the first numerical determination interval, the first adaptive ball passing detection value is determined based on the first adaptive process value and the second adaptive process value. In a plurality of preset second numerical determination intervals, the second numerical determination interval is determined based on the fourth adaptive process value, and in a plurality of preset second adaptive ball passing detection values ​​corresponding to the second numerical determination interval, the second adaptive ball passing detection value is determined based on the first adaptive process value and the second adaptive process value. The first adaptive ball passing detection value and the second adaptive ball passing detection value are summed to obtain a third adaptive ball passing detection value.

[0056] For example, the adaptive parameter is calculated, that is, the first adaptive ball passing detection value is calculated. and the second adaptive ball detection value .

[0057] right Defined as, when hour:

[0058] ;

[0059] when hour:

[0060] ;

[0061] when hour:

[0062] ;

[0063] right Defined as, when hour:

[0064] ;

[0065] when hour:

[0066] ;

[0067] when hour:

[0068] ;

[0069] In the formula, ELSE represents the situation where the above conditions are not met.

[0070] Next, the ball passing detection value interval is determined based on the third adaptive ball passing detection value. When the absolute value of the difference between the maximum first vibration signal sampling value and the maximum second vibration signal sampling value is within the ball passing detection value interval, and both the first adaptive ball passing detection value and the second adaptive ball passing detection value are non-zero, the ball passing detection result of the target detection oil and gas pipeline within the target detection time period is that a ball has passed. For example, the judgment parameter is calculated, that is, the third adaptive ball passing detection value is calculated. , Defined as , if the absolute value of the difference between the maximum first vibration signal sampling value and the maximum second vibration signal sampling value is greater than 1 and less than or equal to When within the interval of , , it is judged that there is a pipe cleaner (pipe cleaning ball) or internal detector passing below (i.e. in the oil and gas pipeline). To this end, it realizes the adaptation of pipe cleaners (pipe cleaning balls) or internal detectors of different weights and sizes and other devices that can be used for pipeline cleaning. By automatically adjusting parameters, the accuracy of ball detection is improved, avoiding the problem of system false alarms and missed alarms caused by excessive or insufficient signal strength.

[0071] By applying the technical solution of this embodiment, the dual-channel pipe wall vibration signal data of the target detection oil and gas pipeline within the preset sampling time period is collected, and the first vibration signal sampling value and the second vibration signal sampling value are obtained after data preprocessing. The target detection time period including multiple consecutive preset sampling time periods is determined, and the adaptive process quantity value is calculated according to the preset ball passing detection standard value, the maximum first vibration signal sampling value in the target detection time period, the maximum second vibration signal sampling value in the target detection time period and the adaptive process quantity calculation formula. The first adaptive ball passing detection value and the second adaptive ball passing detection value are determined based on the adaptive process quantity value, and the first adaptive ball passing detection value and the second adaptive ball passing detection value are summed to obtain the third adaptive ball passing detection value. The ball passing detection value interval is determined based on the third adaptive ball passing detection value. When the absolute value of the difference between the maximum first vibration signal sampling value and the maximum second vibration signal sampling value is within the ball passing detection value interval, and the first adaptive ball passing detection value and the second adaptive ball passing detection value are both non-zero, the ball passing detection result of the target detection oil and gas pipeline within the target detection time period is that a ball has passed. The accuracy of ball passing detection is improved.

[0072] Further, as a refinement and expansion of the specific implementation of the above embodiment, in order to fully illustrate the specific implementation process of this embodiment, another pipeline ball passing detection method is provided, such as Figure 3 As shown, it is applied to oil and gas pipelines, and the oil and gas pipelines are cleaned based on pipe cleaning balls; the pipeline ball passing detection method includes:

[0073] Step 301, collecting dual-channel pipe wall vibration signal reference data of the target detection oil and gas pipeline before ball cleaning, wherein the dual-channel pipe wall vibration signal reference data includes first pipe wall vibration signal reference data collected by the first sensor, and second pipe wall vibration signal reference data collected by the second sensor.

[0074] In the above embodiment of the present application, the ball passing detection of the oil and gas pipeline can be realized by an adaptive control system. The adaptive control system is installed in the pipeline ball passing detection device. The pipeline ball passing detection device is connected to the RS485 communication interface of the ball receiving bucket through an RS485 cable. The installation position of the pipeline ball passing detection device can be near the ball receiving bucket position of the oil and gas pipeline. Next, press the power button of the pipeline ball passing detection device to start the adaptive control system. Then the adaptive control system is initialized and starts to collect the dual-channel pipe wall vibration signal reference data when the target detection oil and gas pipeline is not cleaned by ball passing. For example, the adaptive control system synchronously collects the dual-channel pipe wall vibration signal reference data at a rate of 50ksps and continuously collects for 3s.

[0075] Step 302, based on the first pipe wall vibration signal reference data after data preprocessing, obtain a plurality of first vibration signal reference sampling values, and based on the second pipe wall vibration signal reference data after data preprocessing, obtain a plurality of second vibration signal reference sampling values.

[0076] Next, based on the first pipe wall vibration signal reference data after data preprocessing, multiple first vibration signal reference sampling values ​​are obtained, and based on the second pipe wall vibration signal reference data after data preprocessing, multiple second vibration signal reference sampling values ​​are obtained to prepare for the follow-up.

[0077] Step 303, determine the first preset ball passing detection standard value based on the mean of the first vibration signal reference sampling values, and determine the second preset ball passing detection standard value based on the mean of the second vibration signal reference sampling values, wherein the preset ball passing detection standard values ​​include the first preset ball passing detection standard value and the second preset ball passing detection standard value.

[0078] Next, based on the mean of the first vibration signal reference sampling value, a first preset ball passing detection standard value is determined. , and determining a second preset ball passing detection standard value based on the mean of the second vibration signal reference sampling value .

[0079] Step 304, collecting dual-channel pipe wall vibration signal data of the target detection oil and gas pipeline within a preset sampling time period, wherein the dual-channel pipe wall vibration signal data includes first pipe wall vibration signal data collected by a first sensor, and second pipe wall vibration signal data collected by a second sensor, the first sensor and the second sensor are separated by a preset distance, and both are installed on the outer wall of the target detection oil and gas pipeline.

[0080] Next, the initial ball passing flag is set to false, and then the adaptive ball passing detection program of the adaptive control system is executed. The adaptive ball passing detection program mainly includes three threads executing synchronously: Thread 1 executes the data acquisition program, which mainly includes collecting the dual-channel pipe wall vibration signal data of the target detection oil and gas pipeline within the preset sampling time period, and passing the collected dual-channel pipe wall vibration signal data to Thread 2, and then Thread 1 continues to execute data acquisition.

[0081] Step 305, performing data smoothing processing on the first pipe wall vibration signal data and the second pipe wall vibration signal data respectively based on a data smoothing processing formula, and performing data filtering and correction processing on the first pipe wall vibration signal data and the second pipe wall vibration signal data respectively based on a data filtering and correction processing formula, wherein the data smoothing processing formula is:

[0082] ,

[0083] is the first pipe wall vibration signal data or the second pipe wall vibration signal data after data smoothing, is the total amount of the first pipe wall vibration signal data or the second pipe wall vibration signal data before data smoothing, is the number of data contained in the first preset sliding window, is the number of data contained in the second preset sliding window, For the processing The first pipe wall vibration signal data or the second pipe wall vibration signal data is within the value range for The absolute value of the maximum first pipe wall vibration signal data or the maximum second pipe wall vibration signal data in the array formed when;

[0084] The data filtering correction processing formula is:

[0085] , ,

[0086] ;

[0087] is the first pipe wall vibration signal data or the second pipe wall vibration signal data after data filtering and correction processing, is the total amount of the first pipe wall vibration signal data or the second pipe wall vibration signal data after data smoothing, is a first process parameter determined based on a third preset sliding window, is the number of data contained in the third preset sliding window, is the weight function, To traverse the index of the area surrounding the current data, and The value range is The standard deviation and mean of the data in the third preset sliding window, is the preset correction strength value, is the preset adjustment factor, is the second process parameter, is the peak correction function.

[0088] Next, thread 2 executes the data processing and analysis program. After receiving the data sent by thread 1, thread 2 performs data preprocessing on the data sent by thread 1, that is, based on the data smoothing processing formula, the first pipe wall vibration signal data and the second pipe wall vibration signal data are respectively smoothed, and based on the data filtering and correction processing formula, the first pipe wall vibration signal data and the second pipe wall vibration signal data are respectively filtered and corrected. In the data smoothing processing formula, is the number of data contained in the first preset sliding window, which can be set to 300, for example. is the number of data contained in the second preset sliding window, for example, it can be set to 8. In the data filtering correction processing formula, is the number of data contained in the third preset sliding window The first process parameter determined, for example, when When set to 51, is 25, is the preset adjustment factor, which can be set to 0.5. is the second process parameter and can be set to 1.5.

[0089] Step 306, calculating the first vibration signal sampling value based on the first pipe wall vibration signal data after data preprocessing, and calculating the second vibration signal sampling value based on the second pipe wall vibration signal data after data preprocessing, wherein the data preprocessing includes data smoothing processing and data filtering correction processing.

[0090] Next, based on the first pipe wall vibration signal data after data preprocessing, the first vibration signal sampling value is calculated , and based on the second pipe wall vibration signal data after data preprocessing, calculating the second vibration signal sampling value .

[0091] Step 307, determine a target detection time period including multiple continuous preset sampling time periods, and determine an adaptive ball passing detection value of the target detection time period based on multiple first vibration signal sampling values ​​in the target detection time period, multiple second vibration signal sampling values ​​in the target detection time period and a preset ball passing detection standard value, wherein the preset ball passing detection standard value includes a first preset ball passing detection standard value and a second preset ball passing detection standard value.

[0092] Next, determine the target detection time period that includes multiple consecutive preset sampling time periods. For example, after 3 seconds of initial collection, determine the adaptive ball passing detection value of the target detection time period based on the multiple first vibration signal sampling values ​​in the target detection time period (a cumulative total of 15 consecutive 0.2 seconds), the multiple second vibration signal sampling values ​​in the target detection time period, and the preset ball passing detection standard value.

[0093] Step 308: Determine the ball-passing detection result of the target detection oil and gas pipeline within the target detection time period based on the adaptive ball-passing detection value.

[0094] Step 309, when the ball passing detection result of the target detection oil and gas pipeline within the target detection time period is that a ball has passed through, a ball collecting instruction is sent to the ball collecting bucket, so that the ball collecting bucket can recover the cleaning ball passing through the target detection oil and gas pipeline based on the ball collecting instruction, wherein the oil and gas pipeline is also equipped with a ball collecting bucket.

[0095] Next, based on the adaptive ball-passing detection value, the ball-passing detection result of the target oil and gas pipeline within the target detection time period is determined. Since different types of pipe cleaners (pipe cleaning balls) or internal detectors have different sizes and weights, the vibration signal strength generated by friction with the pipe wall is also different. By determining the adaptive ball-passing detection value, pipe cleaners (pipe cleaning balls) or internal detectors of different sizes and weights can be adapted.

[0096] When the ball passing detection result shows that a ball has passed, the ball passing flag of the adaptive control system is set to true. After thread 2 is executed, it waits for thread 1 to pass in new data again and then repeats the execution. Thread 3 executes the system control program. In particular, if it is detected that the system's ball passing flag is true, the indicator light of the pipeline ball passing detection device is controlled to flash, the buzzer alarms, and at the same time, the hexadecimal ball passing instruction is sent through the RS485 bus: 00 00 00 01 0C FF FF FF, which is used to control the ball collecting bucket to collect the ball. If the adaptive control system detects that the reset button of the pipeline ball passing detection device is pressed, the indicator light flashes and the buzzer alarm are stopped, and the ball passing flag is set to false, and the hexadecimal reset instruction is sent through the RS485 bus: 00 00 00 0F 0D FF FF FF. To this end, it is possible to monitor in real time whether there are pigs (pipe cleaning balls) or internal detectors passing through the oil and gas pipelines. When a pig (pipe cleaning ball) or internal detector passes through, the adaptive control system will actively alarm, that is, the indicator light flashes, the buzzer sounds, and at the same time, the signal is output through the RS485 bus to the ball collection bucket for ball collection. By adding a reset button, the system alarm state can be released.

[0097] The existing ball collection operations are mainly divided into the following two types:

[0098] The first is a completely manual operation, in which the operator observes the mechanical ball indicator at the front end of the ball receiving bucket or judges based on the sound of the oil and gas pipeline that the pipe cleaner (pipe cleaning ball) or internal detector has entered the ball receiving bucket, and then turns the ball receiving bucket valve to perform the ball collecting operation.

[0099] The second is the automatic ball collecting system. The operator observes the mechanical ball passing indicator at the front end of the ball collecting barrel or judges whether the pipe cleaner (pipe cleaning ball) or internal detector has entered the ball collecting barrel based on the sound of the oil and gas pipeline. Then, the operator issues a command to the ball collecting system. The system executes the automatic ball collecting program and automatically controls the valve to realize the ball collecting operation.

[0100] In the above embodiment of the present application, when the ball passing detection result of the target detection oil and gas pipeline within the target detection time period is that a ball has passed, a ball collecting instruction is sent to the ball collecting bucket, so that the ball collecting device of the ball collecting bucket recovers the cleaning ball passing through the target detection oil and gas pipeline based on the ball collecting instruction.

[0101] By applying the technical solution of this embodiment, the problem that the ball collecting bucket needs to send instructions manually can be solved. At the same time, the adaptive detection algorithm based on the dual-channel vibration signal can be solved. The problem that some pipe cleaners (pipe cleaning balls) or internal detectors cannot trigger the mechanical ball passing indicator and cause missed reports is solved. The problem that the installation, replacement and maintenance of the mechanical ball passing indicator are complicated and can easily lead to oil and gas pipeline leakage is solved, and the problem of erroneous operation results caused by human errors is solved.

[0102] Further, as Figure 1 The specific implementation of the method, the embodiment of the present application provides a pipeline ball detection device, which is applied to oil and gas pipelines, and the oil and gas pipelines are cleaned based on the cleaning ball; Figure 4 As shown, the pipeline ball passing detection device includes:

[0103] The vibration data acquisition module 401 is used to acquire dual-channel pipe wall vibration signal data of the target detection oil and gas pipeline within a preset sampling time period, wherein the dual-channel pipe wall vibration signal data includes first pipe wall vibration signal data acquired by a first sensor and second pipe wall vibration signal data acquired by a second sensor, wherein the first sensor and the second sensor are separated by a preset distance and are both installed on the outer wall of the target detection oil and gas pipeline;

[0104] A vibration data processing module 402, used to calculate a first vibration signal sampling value based on the first pipe wall vibration signal data after data preprocessing, and to calculate a second vibration signal sampling value based on the second pipe wall vibration signal data after data preprocessing;

[0105] An adaptive parameter determination module 403 is used to determine a target detection time period including a plurality of consecutive preset sampling time periods, and determine an adaptive ball passing detection value of the target detection time period based on a plurality of first vibration signal sampling values ​​in the target detection time period, a plurality of second vibration signal sampling values ​​in the target detection time period, and a preset ball passing detection standard value;

[0106] The pipeline ball-passing detection module 404 is used to determine the ball-passing detection result of the target detection oil and gas pipeline within the target detection time period based on the adaptive ball-passing detection value.

[0107] Optionally, the adaptive parameter determination module 403 is further configured to:

[0108] Determine a first vibration signal sampling sequence according to first vibration signal sampling values ​​of each preset sampling time period arranged in the order of acquisition time in the target detection time period, and determine a second vibration signal sampling sequence according to second vibration signal sampling values ​​of each preset sampling time period arranged in the order of acquisition time in the target detection time period, wherein the first vibration signal sampling sequence and the second vibration signal sampling sequence contain the same number of sampling values;

[0109] Based on the preset ball passing detection standard value, the maximum first vibration signal sampling value in the first vibration signal sampling series, the maximum second vibration signal sampling value in the second vibration signal sampling series and the adaptive process quantity calculation formula, the adaptive process quantity value is calculated, and based on the calculated adaptive process quantity value, the adaptive ball passing detection value of the target detection time period is determined, wherein the adaptive process quantity value includes the first adaptive process quantity value, the second adaptive process quantity value, the third adaptive process quantity value and the fourth adaptive process value, the preset ball passing detection standard value includes the first preset ball passing detection standard value and the second preset ball passing detection standard value, and the adaptive process quantity calculation formula is:

[0110] ,

[0111] , , and are respectively the first adaptive process value, the second adaptive process value, the third adaptive process value and the fourth adaptive process value, and are respectively the first vibration signal sampling sequence and the second vibration signal sampling sequence The sampling value at the location, and are respectively the first vibration signal sampling sequence and the second vibration signal sampling sequence The sampling value at the location, and are respectively the position of the maximum first vibration signal sampling value in the first vibration signal sampling sequence and the position of the maximum second vibration signal sampling value in the second vibration signal sampling sequence, and They are respectively the first preset ball passing detection standard value and the second preset ball passing detection standard value.

[0112] Optionally, the adaptive ball passing detection value includes a first adaptive ball passing detection value, a second adaptive ball passing detection value and a third adaptive ball passing detection value; the adaptive parameter determination module 403 is further used to:

[0113] In a plurality of preset first numerical determination intervals, a first numerical determination interval is determined based on a third adaptive process value, and in a plurality of preset first adaptive ball passing detection values ​​corresponding to the first numerical determination interval, a first adaptive ball passing detection value is determined based on the first adaptive process value and the second adaptive process value;

[0114] Determine the second numerical determination interval based on the fourth adaptive process value in a plurality of preset second numerical determination intervals, and determine the second adaptive ball passing detection value based on the first adaptive process value and the second adaptive process value in a plurality of preset second adaptive ball passing detection values ​​corresponding to the second numerical determination interval;

[0115] The first adaptive ball passing detection value and the second adaptive ball passing detection value are summed to obtain a third adaptive ball passing detection value.

[0116] Optionally, the pipeline ball passing detection module 404 is further used for:

[0117] Based on the third adaptive ball-passing detection value, a ball-passing detection result of the target detection oil and gas pipeline within the target detection time period is determined.

[0118] Optionally, the pipeline ball passing detection module 404 is further used for:

[0119] The ball passing detection value interval is determined based on the third adaptive ball passing detection value. When the absolute value of the difference between the maximum first vibration signal sampling value and the maximum second vibration signal sampling value is within the ball passing detection value interval, and both the first adaptive ball passing detection value and the second adaptive ball passing detection value are non-zero, the ball passing detection result of the target detected oil and gas pipeline within the target detection time period is that a ball has passed.

[0120] Optionally, the vibration data acquisition module 401 is further used for:

[0121] Collecting dual-channel pipe wall vibration signal reference data of the target detection oil and gas pipeline when the ball cleaning is not performed, wherein the dual-channel pipe wall vibration signal reference data includes first pipe wall vibration signal reference data collected by the first sensor and second pipe wall vibration signal reference data collected by the second sensor;

[0122] Based on the first pipe wall vibration signal reference data after data preprocessing, a plurality of first vibration signal reference sampling values ​​are obtained, and based on the second pipe wall vibration signal reference data after data preprocessing, a plurality of second vibration signal reference sampling values ​​are obtained;

[0123] Based on the mean of the first vibration signal reference sampling values, a first preset ball passing detection standard value is determined, and based on the mean of the second vibration signal reference sampling values, a second preset ball passing detection standard value is determined, wherein the preset ball passing detection standard values ​​include the first preset ball passing detection standard value and the second preset ball passing detection standard value.

[0124] Optionally, the vibration data processing module 402 is further used for:

[0125] The first pipe wall vibration signal data and the second pipe wall vibration signal data are respectively subjected to data smoothing processing based on a data smoothing processing formula, and the first pipe wall vibration signal data and the second pipe wall vibration signal data are respectively subjected to data filtering and correction processing based on a data filtering and correction processing formula, wherein the data smoothing processing formula is:

[0126] ,

[0127] is the first pipe wall vibration signal data or the second pipe wall vibration signal data after data smoothing, is the total amount of the first pipe wall vibration signal data or the second pipe wall vibration signal data before data smoothing, is the number of data contained in the first preset sliding window, is the number of data contained in the second preset sliding window, For the processing The first pipe wall vibration signal data or the second pipe wall vibration signal data is within the value range for The absolute value of the maximum first pipe wall vibration signal data or the maximum second pipe wall vibration signal data in the array formed when;

[0128] The data filtering correction processing formula is:

[0129] , ,

[0130] ;

[0131] is the first pipe wall vibration signal data or the second pipe wall vibration signal data after data filtering and correction processing, is the total amount of the first pipe wall vibration signal data or the second pipe wall vibration signal data after data smoothing, is a first process parameter determined based on a third preset sliding window, is the number of data contained in the third preset sliding window, is the weight function, To traverse the index of the area surrounding the current data, and The value range is The standard deviation and mean of the data in the third preset sliding window, is the preset correction strength value, is the preset adjustment factor, is the second process parameter, is the peak correction function.

[0132] Furthermore, the embodiment of the present application provides another pipeline ball detection device, which is applied to oil and gas pipelines, and the oil and gas pipelines are cleaned based on the pipe cleaning ball; Figure 5 As shown, the pipeline ball passing detection device includes:

[0133] The vibration data acquisition module 401 is used to acquire dual-channel pipe wall vibration signal data of the target detection oil and gas pipeline within a preset sampling time period, wherein the dual-channel pipe wall vibration signal data includes first pipe wall vibration signal data acquired by a first sensor and second pipe wall vibration signal data acquired by a second sensor, wherein the first sensor and the second sensor are separated by a preset distance and are both installed on the outer wall of the target detection oil and gas pipeline;

[0134] A vibration data processing module 402, used to calculate a first vibration signal sampling value based on the first pipe wall vibration signal data after data preprocessing, and to calculate a second vibration signal sampling value based on the second pipe wall vibration signal data after data preprocessing;

[0135] An adaptive parameter determination module 403 is used to determine a target detection time period including a plurality of consecutive preset sampling time periods, and determine an adaptive ball passing detection value of the target detection time period based on a plurality of first vibration signal sampling values ​​in the target detection time period, a plurality of second vibration signal sampling values ​​in the target detection time period, and a preset ball passing detection standard value;

[0136] A pipeline ball-passing detection module 404, configured to determine a ball-passing detection result of a target detection oil and gas pipeline within the target detection time period based on the adaptive ball-passing detection value;

[0137] The ball collecting instruction sending module 405 is used to send a ball collecting instruction to the ball collecting bucket when the ball passing detection result of the target oil and gas pipeline within the target detection time period is that a ball has passed, so that the ball collecting bucket can recover the cleaning ball passing through the target oil and gas pipeline based on the ball collecting instruction, wherein the oil and gas pipeline is also equipped with a ball collecting bucket.

[0138] Optionally, the adaptive parameter determination module 403 is further configured to:

[0139] Determine a first vibration signal sampling sequence according to first vibration signal sampling values ​​of each preset sampling time period arranged in the order of acquisition time in the target detection time period, and determine a second vibration signal sampling sequence according to second vibration signal sampling values ​​of each preset sampling time period arranged in the order of acquisition time in the target detection time period, wherein the first vibration signal sampling sequence and the second vibration signal sampling sequence contain the same number of sampling values;

[0140] Based on the preset ball passing detection standard value, the maximum first vibration signal sampling value in the first vibration signal sampling series, the maximum second vibration signal sampling value in the second vibration signal sampling series and the adaptive process quantity calculation formula, the adaptive process quantity value is calculated, and based on the calculated adaptive process quantity value, the adaptive ball passing detection value of the target detection time period is determined, wherein the adaptive process quantity value includes the first adaptive process quantity value, the second adaptive process quantity value, the third adaptive process quantity value and the fourth adaptive process value, the preset ball passing detection standard value includes the first preset ball passing detection standard value and the second preset ball passing detection standard value, and the adaptive process quantity calculation formula is:

[0141] ,

[0142] , , and are respectively the first adaptive process value, the second adaptive process value, the third adaptive process value and the fourth adaptive process value, and are respectively the first vibration signal sampling sequence and the second vibration signal sampling sequence The sampling value at the location, and are respectively the first vibration signal sampling sequence and the second vibration signal sampling sequence The sampling value at the location, and are respectively the position of the maximum first vibration signal sampling value in the first vibration signal sampling sequence and the position of the maximum second vibration signal sampling value in the second vibration signal sampling sequence, and They are respectively the first preset ball passing detection standard value and the second preset ball passing detection standard value.

[0143] Optionally, the adaptive ball passing detection value includes a first adaptive ball passing detection value, a second adaptive ball passing detection value and a third adaptive ball passing detection value; the adaptive parameter determination module 403 is further used to:

[0144] In a plurality of preset first numerical determination intervals, a first numerical determination interval is determined based on a third adaptive process value, and in a plurality of preset first adaptive ball passing detection values ​​corresponding to the first numerical determination interval, a first adaptive ball passing detection value is determined based on the first adaptive process value and the second adaptive process value;

[0145] Determine the second numerical determination interval based on the fourth adaptive process value in a plurality of preset second numerical determination intervals, and determine the second adaptive ball passing detection value based on the first adaptive process value and the second adaptive process value in a plurality of preset second adaptive ball passing detection values ​​corresponding to the second numerical determination interval;

[0146] The first adaptive ball passing detection value and the second adaptive ball passing detection value are summed to obtain a third adaptive ball passing detection value.

[0147] Optionally, the pipeline ball passing detection module 404 is further used for:

[0148] Based on the third adaptive ball-passing detection value, a ball-passing detection result of the target detection oil and gas pipeline within the target detection time period is determined.

[0149] Optionally, the pipeline ball passing detection module 404 is further used for:

[0150] The ball passing detection value interval is determined based on the third adaptive ball passing detection value. When the absolute value of the difference between the maximum first vibration signal sampling value and the maximum second vibration signal sampling value is within the ball passing detection value interval, and both the first adaptive ball passing detection value and the second adaptive ball passing detection value are non-zero, the ball passing detection result of the target detected oil and gas pipeline within the target detection time period is that a ball has passed.

[0151] Optionally, the vibration data acquisition module 401 is further used for:

[0152] Collecting dual-channel pipe wall vibration signal reference data of the target detection oil and gas pipeline when the ball cleaning is not performed, wherein the dual-channel pipe wall vibration signal reference data includes first pipe wall vibration signal reference data collected by the first sensor and second pipe wall vibration signal reference data collected by the second sensor;

[0153] Based on the first pipe wall vibration signal reference data after data preprocessing, a plurality of first vibration signal reference sampling values ​​are obtained, and based on the second pipe wall vibration signal reference data after data preprocessing, a plurality of second vibration signal reference sampling values ​​are obtained;

[0154] Based on the mean of the first vibration signal reference sampling values, a first preset ball passing detection standard value is determined, and based on the mean of the second vibration signal reference sampling values, a second preset ball passing detection standard value is determined, wherein the preset ball passing detection standard values ​​include the first preset ball passing detection standard value and the second preset ball passing detection standard value.

[0155] Optionally, the vibration data processing module 402 is further used for:

[0156] The first pipe wall vibration signal data and the second pipe wall vibration signal data are respectively subjected to data smoothing processing based on a data smoothing processing formula, and the first pipe wall vibration signal data and the second pipe wall vibration signal data are respectively subjected to data filtering and correction processing based on a data filtering and correction processing formula, wherein the data smoothing processing formula is:

[0157] ,

[0158] is the first pipe wall vibration signal data or the second pipe wall vibration signal data after data smoothing, is the total amount of the first pipe wall vibration signal data or the second pipe wall vibration signal data before data smoothing, is the number of data contained in the first preset sliding window, is the number of data contained in the second preset sliding window, For the processing The first pipe wall vibration signal data or the second pipe wall vibration signal data is within the value range for The absolute value of the maximum first pipe wall vibration signal data or the maximum second pipe wall vibration signal data in the array formed when;

[0159] The data filtering correction processing formula is:

[0160] , ,

[0161] ;

[0162] is the first pipe wall vibration signal data or the second pipe wall vibration signal data after data filtering and correction processing, is the total amount of the first pipe wall vibration signal data or the second pipe wall vibration signal data after data smoothing, is a first process parameter determined based on a third preset sliding window, is the number of data contained in the third preset sliding window, is the weight function, To traverse the index of the area surrounding the current data, and The value range is The standard deviation and mean of the data in the third preset sliding window, is the preset correction strength value, is the preset adjustment factor, is the second process parameter, is the peak correction function.

[0163] It should be noted that for other corresponding descriptions of the functional units involved in the pipeline ball passing detection device provided in the embodiment of the present application, reference can be made to Figures 1 to 3 The corresponding description in the method will not be repeated here.

[0164] Based on the above Figures 1 to 3 The method shown in the embodiment of the present application is accordingly provided with a storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned Figures 1 to 3 The pipeline ball passing detection method is shown.

[0165] Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, USB flash drive, mobile hard disk, etc.), including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute the pipeline ball passing detection method described in each implementation scenario of the present application.

[0166] Based on the above Figures 1 to 3 The method shown, and Figure 4 and Figure 5 In order to achieve the above-mentioned purpose, the embodiment of the present application further provides a computer device, which can be a personal computer, a server, a network device, etc. The computer device includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to achieve the above-mentioned Figures 1 to 3 The pipeline ball passing detection method is shown.

[0167] Optionally, the computer device may also include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, etc. The user interface may include a display, an input unit such as a keyboard, etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a Bluetooth interface, a WI-FI interface), etc.

[0168] Those skilled in the art will appreciate that the computer device structure provided in this embodiment does not limit the computer device, and may include more or fewer components, or a combination of certain components, or different component arrangements.

[0169] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages and saves the hardware and software resources of the computer device, and supports the operation of information processing programs and other software and / or programs. The network communication module is used to realize communication between the components inside the storage medium, and communication with other hardware and software in the physical device.

[0170] Through the description of the above implementation methods, the technicians in this field can clearly understand that the present application can be implemented by means of software plus the necessary general hardware platform, or can be implemented by hardware for the target detection of oil and gas pipelines within a preset sampling time period, based on the first sensor to collect the first pipe wall vibration signal data, calculate the first vibration signal sampling value after data preprocessing, based on the second sensor to collect the second pipe wall vibration signal data, calculate the second vibration signal sampling value after data preprocessing; determine the target detection time period including multiple consecutive preset sampling time periods, based on the first vibration signal sampling value, the second vibration signal sampling value and the preset ball detection standard value in the target detection time period, determine the adaptive ball detection value, which is used to determine the ball detection result of the target detection oil and gas pipeline within the target detection time period. By adaptively adjusting the ball detection value, it can adapt to pipe cleaners (pipe cleaning balls) of different weights and sizes or other devices that can be used to clean pipelines, such as internal detectors.

[0171] Those skilled in the art will appreciate that the accompanying drawings are only schematic diagrams of a preferred implementation scenario, and the modules or processes in the accompanying drawings are not necessarily necessary for implementing the present application. Those skilled in the art will appreciate that the modules in the devices in the implementation scenario can be distributed in the devices of the implementation scenario according to the description of the implementation scenario, or can be changed accordingly and located in one or more devices different from the present implementation scenario. The modules of the above-mentioned implementation scenario can be combined into one module, or can be further split into multiple submodules.

[0172] The above serial numbers of this application are only for description and do not represent the advantages and disadvantages of the implementation scenarios. The above disclosure is only a few specific implementation scenarios of this application, but this application is not limited to them, and any changes that can be thought of by technicians in this field should fall within the scope of protection of this application.

Claims

1. A pipeline ball passing detection method, It is characterized in that Applied to oil and gas pipelines, the oil and gas pipelines are cleaned based on pig balls; the pipeline ball passing detection method includes: Collecting dual-channel pipe wall vibration signal data of the target detection oil and gas pipeline within a preset sampling time period, wherein the dual-channel pipe wall vibration signal data includes first pipe wall vibration signal data collected by a first sensor and second pipe wall vibration signal data collected by a second sensor, the first sensor and the second sensor are separated by a preset distance and are both installed on the outer wall of the target detection oil and gas pipeline; Calculating a first vibration signal sampling value based on the first pipe wall vibration signal data after data preprocessing, and calculating a second vibration signal sampling value based on the second pipe wall vibration signal data after data preprocessing; Determine a target detection time period including a plurality of consecutive preset sampling time periods, determine a first vibration signal sampling sequence according to first vibration signal sampling values ​​of each preset sampling time period arranged in the order of acquisition time in the target detection time period, and determine a second vibration signal sampling sequence according to second vibration signal sampling values ​​of each preset sampling time period arranged in the order of acquisition time in the target detection time period, wherein the first vibration signal sampling sequence and the second vibration signal sampling sequence include the same number of sampling values; Based on the preset ball passing detection standard value, the maximum first vibration signal sampling value in the first vibration signal sampling series, the maximum second vibration signal sampling value in the second vibration signal sampling series and the adaptive process quantity calculation formula, the adaptive process quantity value is calculated, wherein the adaptive process quantity value includes the first adaptive process quantity value, the second adaptive process quantity value, the third adaptive process quantity value and the fourth adaptive process quantity value, the preset ball passing detection standard value includes the first preset ball passing detection standard value and the second preset ball passing detection standard value, and the adaptive process quantity calculation formula is: , , and are respectively the first adaptive process value, the second adaptive process value, the third adaptive process value and the fourth adaptive process value, and are respectively the first vibration signal sampling sequence and the second vibration signal sampling sequence The sampling value at the location, and are respectively the first vibration signal sampling sequence and the second vibration signal sampling sequence The sampling value at the location, and are respectively the position of the maximum first vibration signal sampling value in the first vibration signal sampling sequence and the position of the maximum second vibration signal sampling value in the second vibration signal sampling sequence, and They are respectively the first preset ball passing detection standard value and the second preset ball passing detection standard value; In a plurality of preset first numerical determination intervals, a first numerical determination interval is determined based on a third adaptive process value, and in a plurality of preset first adaptive ball passing detection values ​​corresponding to the first numerical determination interval, a first adaptive ball passing detection value is determined based on the first adaptive process value and the second adaptive process value; Determine the second numerical determination interval based on the fourth adaptive process value in a plurality of preset second numerical determination intervals, and determine the second adaptive ball passing detection value based on the first adaptive process value and the second adaptive process value in a plurality of preset second adaptive ball passing detection values ​​corresponding to the second numerical determination interval; Sum the first adaptive ball passing detection value and the second adaptive ball passing detection value to obtain a third adaptive ball passing detection value; The ball passing detection value interval is determined based on the third adaptive ball passing detection value. When the absolute value of the difference between the maximum first vibration signal sampling value and the maximum second vibration signal sampling value is within the ball passing detection value interval, and both the first adaptive ball passing detection value and the second adaptive ball passing detection value are non-zero, the ball passing detection result of the target detected oil and gas pipeline within the target detection time period is that a ball has passed, wherein the adaptive ball passing detection values ​​include the first adaptive ball passing detection value, the second adaptive ball passing detection value and the third adaptive ball passing detection value.

2. According to the pipeline ball passing detection method of claim 1, It is characterized in that The oil and gas pipeline is also equipped with a ball collecting bucket; After determining the ball passing detection result of the target detection oil and gas pipeline within the target detection time period, the pipeline ball passing detection method further includes: When the ball passing detection result of the target detection oil and gas pipeline within the target detection time period is that a ball has passed through, a ball collecting instruction is sent to the ball collecting bucket, so that the ball collecting bucket recovers the cleaning ball passing through the target detection oil and gas pipeline based on the ball collecting instruction.

3. According to the pipeline ball passing detection method of claim 1, It is characterized in that Before collecting the dual-channel pipe wall vibration signal data of the target oil and gas pipeline within a preset sampling time period, the pipeline ball passing detection method also includes: Collecting dual-channel pipe wall vibration signal reference data of the target detection oil and gas pipeline when the ball cleaning is not performed, wherein the dual-channel pipe wall vibration signal reference data includes first pipe wall vibration signal reference data collected by the first sensor and second pipe wall vibration signal reference data collected by the second sensor; Based on the first pipe wall vibration signal reference data after data preprocessing, a plurality of first vibration signal reference sampling values ​​are obtained, and based on the second pipe wall vibration signal reference data after data preprocessing, a plurality of second vibration signal reference sampling values ​​are obtained; Based on the mean of the first vibration signal reference sampling values, a first preset ball passing detection standard value is determined, and based on the mean of the second vibration signal reference sampling values, a second preset ball passing detection standard value is determined, wherein the preset ball passing detection standard values ​​include the first preset ball passing detection standard value and the second preset ball passing detection standard value.

4. The pipeline ball passing detection method according to any one of claims 1 to 3, It is characterized in that The data preprocessing includes data smoothing processing and data filtering and correction processing. Before calculating the first vibration signal sampling value based on the first pipe wall vibration signal data after the data preprocessing and calculating the second vibration signal sampling value based on the second pipe wall vibration signal data after the data preprocessing, the pipeline ball passing detection method also includes: The first pipe wall vibration signal data and the second pipe wall vibration signal data are respectively subjected to data smoothing processing based on a data smoothing processing formula, and the first pipe wall vibration signal data and the second pipe wall vibration signal data are respectively subjected to data filtering and correction processing based on a data filtering and correction processing formula, wherein the data smoothing processing formula is: is the first pipe wall vibration signal data or the second pipe wall vibration signal data after data smoothing, is the total amount of the first pipe wall vibration signal data or the second pipe wall vibration signal data before data smoothing, is the number of data contained in the first preset sliding window, is the number of data contained in the second preset sliding window, For the processing The first pipe wall vibration signal data or the second pipe wall vibration signal data is within the value range for The absolute value of the maximum first pipe wall vibration signal data or the maximum second pipe wall vibration signal data in the array formed when; The data filtering correction processing formula is: is the first pipe wall vibration signal data or the second pipe wall vibration signal data after data filtering and correction processing, is the total amount of the first pipe wall vibration signal data or the second pipe wall vibration signal data after data smoothing, is a first process parameter determined based on a third preset sliding window, is the number of data contained in the third preset sliding window, is the weight function, To traverse the index of the area surrounding the current data, and The value range is The standard deviation and mean of the data in the third preset sliding window, is the preset correction strength value, is the preset adjustment factor, is the second process parameter, is the peak correction function.

5. A pipeline ball detection device, It is characterized in that Applied to oil and gas pipelines, the oil and gas pipelines are cleaned based on pig balls; the pipeline ball passing detection device includes: A vibration data acquisition module, used to acquire dual-channel pipe wall vibration signal data of a target detection oil and gas pipeline within a preset sampling time period, wherein the dual-channel pipe wall vibration signal data includes first pipe wall vibration signal data acquired by a first sensor, and second pipe wall vibration signal data acquired by a second sensor, wherein the first sensor and the second sensor are separated by a preset distance and are both installed on the outer wall of the target detection oil and gas pipeline; A vibration data processing module, used to calculate a first vibration signal sampling value based on the first pipe wall vibration signal data after data preprocessing, and to calculate a second vibration signal sampling value based on the second pipe wall vibration signal data after data preprocessing; an adaptive parameter determination module, configured to determine a target detection time period including a plurality of consecutive preset sampling time periods, determine a first vibration signal sampling sequence according to first vibration signal sampling values ​​of each preset sampling time period arranged in the target detection time period in the order of acquisition time, and determine a second vibration signal sampling sequence according to second vibration signal sampling values ​​of each preset sampling time period arranged in the order of acquisition time in the target detection time period, wherein the first vibration signal sampling sequence and the second vibration signal sampling sequence include the same number of sampling values; The adaptive parameter determination module is further used to calculate the adaptive process quantity value based on the preset ball passing detection standard value, the maximum first vibration signal sampling value in the first vibration signal sampling series, the maximum second vibration signal sampling value in the second vibration signal sampling series and the adaptive process quantity calculation formula, wherein the adaptive process quantity value includes the first adaptive process quantity value, the second adaptive process quantity value, the third adaptive process quantity value and the fourth adaptive process quantity value, the preset ball passing detection standard value includes the first preset ball passing detection standard value and the second preset ball passing detection standard value, and the adaptive process quantity calculation formula is: , , and are respectively the first adaptive process value, the second adaptive process value, the third adaptive process value and the fourth adaptive process value, and are respectively the first vibration signal sampling sequence and the second vibration signal sampling sequence The sampling value at the location, and are respectively the first vibration signal sampling sequence and the second vibration signal sampling sequence The sampling value at the location, and are respectively the position of the maximum first vibration signal sampling value in the first vibration signal sampling sequence and the position of the maximum second vibration signal sampling value in the second vibration signal sampling sequence, and They are respectively the first preset ball passing detection standard value and the second preset ball passing detection standard value; The adaptive parameter determination module is further used to determine the first numerical determination interval based on the third adaptive process value in a plurality of preset first numerical determination intervals, and determine the first adaptive ball passing detection value based on the first adaptive process value and the second adaptive process value in a plurality of preset first adaptive ball passing detection values ​​corresponding to the first numerical determination interval; The adaptive parameter determination module is further used to determine the second numerical determination interval based on the fourth adaptive process value in a plurality of preset second numerical determination intervals, and determine the second adaptive ball passing detection value based on the first adaptive process value and the second adaptive process value in a plurality of preset second adaptive ball passing detection values ​​corresponding to the second numerical determination interval; The adaptive parameter determination module is further used to sum the first adaptive ball passing detection value and the second adaptive ball passing detection value to obtain a third adaptive ball passing detection value; The pipeline ball passing detection module is used to determine the ball passing detection value interval based on the third adaptive ball passing detection value. When the absolute value of the difference between the maximum first vibration signal sampling value and the maximum second vibration signal sampling value is within the ball passing detection value interval, and the first adaptive ball passing detection value and the second adaptive ball passing detection value are both non-zero, the ball passing detection result of the target detected oil and gas pipeline within the target detection time period is that a ball has passed, wherein the adaptive ball passing detection values ​​include the first adaptive ball passing detection value, the second adaptive ball passing detection value and the third adaptive ball passing detection value.

6. A storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the pipeline ball passing detection method described in any one of claims 1 to 4 is implemented.

7. A computer device comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, It is characterized in that When the processor executes the computer program, the pipeline ball passing detection method described in any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Method for positioning detector in pipeline based on CNN classification and RNN prediction

    CN113899809A

  • Pipeline internal detector operation monitoring system and detection positioning method

    CN114838240A

  • Tracking and positioning system suitable for detector and pipe cleaner in oil and gas pipeline

    CN116774150A

  • Variable type pig ball and the location tracking system thereof

    KR102154238B1

  • Method and system for the continuous remote tracking of a pig device and detection of anomalies inside a pressurized pipeline

    US20150331007A1