Internal detection data alignment method, device, equipment and storage medium
By minimizing the determination and alignment of the alignment path of the detection data within multiple rounds of the oil and gas pipeline, the problem of the inability to align the detection data within multiple rounds of the prior art is solved, and the scientific analysis and management of the evolution laws of oil and gas pipeline defects is realized, and the efficiency of management and maintenance is improved.
Patent Information
- Application Number
- CN202411304441.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-18
- Publication Date
- 2025-04-11
- Estimated Expiration
- 2044-09-18
AI Technical Summary
The prior art is difficult to effectively align the detection data within multiple rounds, resulting in the inability to achieve scientific analysis and management of the evolution laws of internal defects in oil and gas pipelines.
By acquiring at least two rounds of detection data of the target oil and gas pipeline, a minimized alignment path between the two rounds of detection data is determined, and aligning the two rounds of detection data is performed based on the path. Specific methods include calculating the pipe section length difference sequence, using dynamic time regularization (DTW) algorithm to construct the cumulative distance matrix, determining the minimized alignment path, and performing alignment and standardization of ring weld numbers.
The alignment of inspection data within multiple rounds has been realized, revealing the evolutionary rules of oil and gas pipeline defects, and improving the efficiency of scientific management and operation and maintenance of oil and gas pipelines.
Smart Images

Figure CN119166970B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of oil and gas pipelines, and in particular to an internal detection data alignment method, device, equipment and storage medium. Background Art
[0002] At present, with the advancement of science and technology and the continuous improvement of detection technology, the internal detection of oil and gas pipelines can be carried out by adopting internal detection technologies such as leakage magnetic field, inertial measurement unit (IMU) and geometry, which improves the detection accuracy and efficiency of internal defects of oil and gas pipelines. However, due to the complexity and diversity of internal detection data, how to effectively process and analyze these internal detection data is still a problem that needs to be solved. Among them, the alignment of multiple rounds of internal detection data is a key link. The alignment of multiple rounds of internal detection data has important guiding significance in the scientific management and operation and maintenance of oil and gas pipelines. Multi-round internal detection data can reveal the evolution law of oil and gas pipeline defects by comparing and analyzing detection data in different periods, thereby providing an important basis for the long-term management and maintenance of oil and gas pipelines.
[0003] Therefore, there is an urgent need for a solution to the problem of aligning detection data within multiple rounds. Summary of the invention
[0004] The present application provides an internal detection data alignment method, device, equipment and storage medium to solve the problem that multiple rounds of internal detection data cannot be aligned.
[0005] In a first aspect, the present application provides an internal detection data alignment method, comprising: obtaining at least two rounds of internal detection data of a target oil and gas pipeline; determining a minimized alignment path between two rounds of internal detection data for each two rounds of internal detection data in the at least two rounds of internal detection data; and aligning the two rounds of internal detection data according to the minimized alignment path.
[0006] In a possible implementation, determining a minimized alignment path between two rounds of internal detection data includes: determining, for each round of internal detection data in the two rounds, a tube segment length difference sequence corresponding to the internal detection data; and determining a minimized alignment path based on the tube segment length difference sequence.
[0007] In one possible implementation, the internal inspection data includes a girth weld number sequence, and the absolute mileage corresponding to each girth weld number in the girth weld number sequence, and the pipe segment length difference sequence corresponding to the internal inspection data is determined, including: for the girth weld number sequence, calculating the difference between the absolute mileages corresponding to two adjacent girth weld numbers in sequence, to obtain the pipe segment length sequence corresponding to the internal inspection data; for the pipe segment length sequence, calculating the difference between two adjacent pipe segment lengths in sequence, to obtain the pipe segment length difference sequence.
[0008] In a possible implementation, a minimized alignment path is determined according to a tube segment length difference sequence, including: based on a dynamic time warping (DTW) algorithm, a cumulative distance matrix between detection data within two rounds is constructed according to the tube segment length difference sequence; in the cumulative distance matrix, a minimized alignment path is determined.
[0009] In a possible implementation, one round of in-round detection data out of two rounds of in-round detection data is determined as in-round detection data to be aligned, and the other round of in-round detection data is determined as reference in-round detection data, and the two rounds of in-round detection data are aligned according to a minimized alignment path, including: taking the pipe segment length difference sequence corresponding to the reference in-round detection data as a reference, aligning the pipe segment length difference sequence corresponding to the in-round detection data to be aligned according to the minimized alignment path; based on a mapping relationship between girth weld numbers and pipe segment length difference identifiers, aligning the girth weld number sequence contained in the in-round detection data to be aligned according to the aligned pipe segment length difference sequence corresponding to the in-round detection data to be aligned.
[0010] In a possible implementation, after aligning the girth weld number sequence included in the detection data to be aligned, it also includes: standardizing the aligned girth weld number sequence; and correcting the relative mileage between two adjacent weld numbers in the standardized girth weld number sequence.
[0011] In a second aspect, the present application provides an internal detection data alignment device, comprising:
[0012] An acquisition module, used to acquire at least two rounds of detection data of the target oil and gas pipeline;
[0013] A determination module, configured to determine, for each two rounds of detection data in at least two rounds of detection data, a minimized alignment path between two rounds of detection data;
[0014] The alignment module is used to align the detection data in two rounds according to the minimized alignment path.
[0015] In a possible implementation, the determination module is specifically used to: determine the pipe segment length difference sequence corresponding to each round of internal detection data in two rounds of internal detection data; and determine the minimum alignment path according to the pipe segment length difference sequence.
[0016] In one possible implementation, the internal inspection data includes a girth weld number sequence and an absolute mileage corresponding to each girth weld number in the girth weld number sequence. The determination module is also used to: for the girth weld number sequence, calculate in sequence the difference in absolute mileage corresponding to two adjacent girth weld numbers to obtain a pipe segment length sequence corresponding to the internal inspection data; for the pipe segment length sequence, calculate in sequence the difference in length of two adjacent pipe segments to obtain a pipe segment length difference sequence.
[0017] In a possible implementation, the determination module is further used to: construct a cumulative distance matrix between detection data in two rounds based on the tube segment length difference sequence based on the DTW algorithm; and determine a minimized alignment path in the cumulative distance matrix.
[0018] In a possible implementation, one round of internal inspection data out of two rounds of internal inspection data is determined as internal inspection data to be aligned, and the other round of internal inspection data is determined as reference internal inspection data, and the alignment module is specifically used to: use the pipe segment length difference sequence corresponding to the reference internal inspection data as a reference, and align the pipe segment length difference sequence corresponding to the internal inspection data to be aligned according to the minimized alignment path; based on the mapping relationship between the girth weld number and the pipe segment length difference identifier, align the girth weld number sequence contained in the internal inspection data to be aligned according to the aligned pipe segment length difference sequence corresponding to the internal inspection data to be aligned.
[0019] In a possible implementation, the internal inspection data alignment device also includes a processing module (not shown). After aligning the girth weld number sequence contained in the internal inspection data to be aligned, the processing module is used to: standardize the aligned girth weld number sequence; and correct the relative mileage between two adjacent weld numbers in the standardized girth weld number sequence.
[0020] In a third aspect, the present application provides an electronic device, including: at least one processor;
[0021] and a memory communicatively coupled to the at least one processor;
[0022] The memory is used to store instructions executable by at least one processor, and the instructions are executed by at least one processor so that the at least one processor can execute the internal detection data alignment method provided in the first aspect.
[0023] In a fourth aspect, the present application provides a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed, they are used to implement the internal detection data alignment method provided in the first aspect above.
[0024] In a fifth aspect, the present application provides a computer program product, including a computer program, which, when executed, implements the internal detection data alignment method provided in the first aspect above.
[0025] The internal detection data alignment method, device, equipment and storage medium provided in the present application. By acquiring at least two rounds of internal detection data of the target oil and gas pipeline, for each two rounds of internal detection data in the at least two rounds of internal detection data, a minimized alignment path between the two rounds of internal detection data is determined, and the two rounds of internal detection data are aligned according to the minimized alignment path. The present application realizes the alignment of multiple rounds of internal detection data by aligning two rounds of internal detection data in pairs among multiple rounds of internal detection data. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0027] Figure 1 Schematic diagram of the process of the internal detection data alignment method provided in the embodiment of the present application Figure 1 ;
[0028] Figure 2 Schematic diagram of the process of the internal detection data alignment method provided in the embodiment of the present application Figure 2 ;
[0029] Figure 3 A schematic diagram of the tube segment length difference sequence before and after alignment provided in an embodiment of the present application;
[0030] Figure 4 A schematic diagram of correcting the relative mileage corresponding to the numbers of two adjacent ring welds provided in an embodiment of the present application;
[0031] Figure 5 A schematic diagram of the structure of an internal detection data alignment device provided in an embodiment of the present application;
[0032] Figure 6 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application.
[0033] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0034] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0035] In the big data management of oil and gas pipelines, internal detection technology is one of the core links and the main data source of pipeline big data. Internal detection technology uses advanced sensors and data acquisition equipment to conduct comprehensive detection and analysis of the internal conditions of oil and gas pipelines, and can accurately detect defects and potential hidden dangers in oil and gas pipelines. At present, the interior of oil and gas pipelines can be detected by using internal detection technologies such as magnetic leakage, inertial measurement unit (IMU) and geometry.
[0036] In the effective processing and analysis of multi-round internal detection data, the alignment of multi-round internal detection data is a key link. On the one hand, the alignment of multi-round internal detection data is not only an important means of data mining and utilization, but also an important method to evaluate the performance of detection equipment and the accuracy of detection results. By aligning multi-round internal detection data, the differences between different rounds of detection can be found to evaluate the performance of the detection equipment and verify the reliability of the detection results. On the other hand, the alignment of multi-round internal detection data can also help to improve and correct the basic information of oil and gas pipelines. Since oil and gas pipelines may be affected by various external factors in different time periods, resulting in changes in their internal structure, the basic information of the pipeline can be identified and corrected by comparing multi-round internal detection data to ensure the accuracy and completeness of the data. On the other hand, the alignment of multi-round internal detection data can help grasp the changes in oil and gas pipeline defects. By comparing the internal detection data of different periods, the expansion trend and change law of defects can be found, thereby predicting the remaining life of oil and gas pipelines. This information is of great reference value for formulating pipeline maintenance plans and emergency plans. On the other hand, multi-round data alignment can also be used to evaluate the effectiveness of the application of control measures. By comparing the internal inspection data before and after the implementation of control measures, it can be determined whether these measures have effectively curbed the expansion of defects and further optimized the management strategy of oil and gas pipelines.
[0037] In summary, the alignment of multiple rounds of internal inspection data has important guiding significance in the scientific management and operation and maintenance of oil and gas pipelines. It not only provides a reliable technical means for data mining and utilization, but also lays a solid foundation for the safe operation and long-term development of oil and gas pipelines. In the future development, with the further maturity and application of big data technology, the alignment and analysis of internal inspection data will become more intelligent and automated, providing more accurate and efficient support for the safety management of oil and gas pipelines. It will help to improve the safety and operation efficiency of oil and gas pipelines.
[0038] In the related technology, when magnetic flux leakage, IMU and geometric internal detection technologies are used to conduct internal inspections on oil and gas pipelines, the multiple rounds of internal inspection data obtained have problems such as different actual mileage, missed or false alarms of circumferential welds, and the inability to align the rerouting data, which leads to the problem that the multiple rounds of internal inspection data cannot be aligned.
[0039] Based on the technical problems existing in the related technology, the embodiment of the present application determines the minimized alignment path between any two rounds of detection data in multiple rounds of detection data, and aligns any two rounds of detection data based on the minimized alignment path, thereby achieving alignment of multiple rounds of detection data.
[0040] Combine the following Figure 1 The internal detection data alignment method provided in the embodiment of the present application is described in detail.
[0041] Figure 1 Schematic diagram of the process of the internal detection data alignment method provided in the embodiment of the present application Figure 1 .like Figure 1 As shown, the specific implementation of the internal detection data alignment method may include the following steps:
[0042] S101, obtaining at least two rounds of detection data of a target oil and gas pipeline.
[0043] Exemplarily, the detection data within at least two rounds may be obtained by any one of the detection technologies including magnetic flux leakage, IMU and geometry.
[0044] It should be noted that in the embodiment of the present application, the detection time of the detection data within at least two rounds is not limited, and can be determined according to actual application requirements. That is, the detection data within at least two rounds can be detection data within different time periods.
[0045] For example, each round of inspection data may include girth weld information, such as girth weld numbers and absolute mileage corresponding to each girth weld number. The absolute mileage corresponding to each girth weld number may be the absolute mileage between the girth weld number and the target oil and gas pipeline inspection starting point.
[0046] It can be understood that the target oil and gas pipeline can be formed by welding different pipe sections together, that is, the target oil and gas pipeline can contain multiple different or identical pipe sections. The specific number and type of pipe sections are not limited in the embodiments of the present application and can be determined according to actual application requirements.
[0047] S102: for every two rounds of detection data in at least two rounds of detection data, determine a minimized alignment path between the two rounds of detection data.
[0048] It is understandable that when aligning detection data within multiple rounds, the detection data within two rounds may be aligned respectively, thereby achieving alignment of detection data within multiple rounds.
[0049] It should be noted that the key to aligning the multiple rounds of internal inspection data lies in the alignment of the girth weld information. In oil and gas pipelines, since the difference in the length of the pipe segments constituting the oil and gas pipeline has a one-to-one correspondence with the girth weld information such as the girth weld number, in the internal inspection data alignment method provided in the embodiment of the present application, the change in the length of the pipe segment in the two rounds of internal inspection data is calculated to establish an alignment feature, thereby realizing the alignment of the two rounds of internal inspection data based on the alignment feature. Among them, the difference in the absolute mileage between adjacent girth welds can be used as a measure of the length of the pipe segment.
[0050] In this step, in a possible implementation, the change in the length of the pipe segment in the detection data within two rounds can be calculated to establish an alignment feature, and the minimum alignment path between the detection data within the two rounds can be determined based on the alignment feature.
[0051] Exemplarily, the alignment feature may be a difference in length of the pipe segments.
[0052] S103, aligning the detection data in two rounds according to the minimized alignment path.
[0053] In a possible implementation, the detection data in two rounds may be aligned based on the minimized alignment path and according to an alignment feature established by calculating the change in the length of the pipe segment in the detection data in the two rounds.
[0054] In the embodiment of the present application, at least two rounds of detection data of the target oil and gas pipeline are obtained, and for each two rounds of detection data in the at least two rounds of detection data, a minimized alignment path between the two rounds of detection data is determined, and the two rounds of detection data are aligned according to the minimized alignment path. In the embodiment of the present application, alignment of multiple rounds of detection data is achieved by aligning two rounds of detection data in multiple rounds of detection data in pairs.
[0055] Combine the following Figure 2The specific implementation method of determining the minimum alignment path between the detection data in two rounds in step S102 is described in detail.
[0056] Figure 2 Schematic diagram of the process of the internal detection data alignment method provided in the embodiment of the present application Figure 2 .like Figure 2 As shown, the specific implementation method of determining the minimum alignment path between the detection data in two rounds may include the following steps:
[0057] S201, for each round of internal detection data in two rounds of internal detection data, determine a pipe segment length difference sequence corresponding to the internal detection data.
[0058] Exemplarily, the detection data within each round may include a girth weld number sequence and an absolute mileage corresponding to each girth weld number in the girth weld number sequence.
[0059] Exemplarily, the girth weld number sequence may be a sequence starting from the inspection starting point of the oil and gas pipeline and arranged in ascending order of the girth weld numbers, such as the girth weld number sequence may be [10, 20, 30, 40, 50] and the like.
[0060] It can be understood that there is a girth weld between every two pipe sections, and one girth weld corresponds to one girth weld number.
[0061] For example, the absolute mileage corresponding to each ring weld number is similar to that described above and will not be repeated here.
[0062] In this step, a possible implementation method may be: for the girth weld number sequence, calculate the difference between the absolute mileages corresponding to two adjacent girth weld numbers in sequence to obtain the pipe segment length sequence corresponding to the internal detection data; for the pipe segment length sequence, calculate the difference between the lengths of two adjacent pipe segments in sequence to obtain the pipe segment length difference sequence.
[0063] Exemplarily, the difference between the absolute mileage corresponding to girth weld number 20 and the absolute mileage corresponding to girth weld number 10 is determined as the first pipe segment length; the difference between the absolute mileage corresponding to girth weld number 30 and the absolute mileage corresponding to girth weld number 20 is determined as the second pipe segment length; the difference between the absolute mileage corresponding to girth weld number 40 and the absolute mileage corresponding to girth weld number 30 is determined as the third pipe segment length, and so on, to calculate all the pipe segment lengths corresponding to the detection data in each round, and further arrange the pipe segment lengths calculated above in the order of the first pipe segment length, the second pipe segment length, and the third pipe segment length, etc., to obtain a pipe segment length sequence.
[0064] Among them, in the same round of inspection data, the pipe segment lengths calculated according to different girth weld numbers may be the same or different. The pipe segment length is determined according to the actual pipe segment type constituting the oil and gas pipeline. For example, the pipe segment type can be a 12m long pipe segment, a 1m long pipe segment, a 5m long pipe segment, etc.
[0065] For example, the tube segment length sequence may be [12, 1, 5, 5].
[0066] Exemplarily, for the pipe segment length sequence, the difference between the second pipe segment length and the first pipe segment length is taken as the first pipe segment length difference, the difference between the third pipe segment length and the second pipe segment length is taken as the second pipe segment length difference, and so on, to calculate all the pipe segment length differences corresponding to the pipe segment length sequence.
[0067] It should be noted that, in the internal detection data alignment method provided in the embodiment of the present application, in order to make the pipe segment length difference correspond to the girth weld number one-to-one, the pipe segment length difference corresponding to the first girth weld number and the second girth weld number in the girth weld number sequence is defined as a preset value in the pipe segment length difference sequence, such as 0. The pipe segment length differences calculated above are further arranged in the order of 0, 0, the first pipe segment length difference, the second pipe segment length difference, etc., to obtain a pipe segment length difference sequence.
[0068] Exemplarily, the tube segment length difference sequence may be [0, 0, -11, 4, 0].
[0069] The girth weld number sequence, pipe segment length sequence, and pipe segment length difference sequence described above are only examples and can be determined according to actual application requirements, and this application does not limit this.
[0070] S202, determining a minimum alignment path according to the tube segment length difference sequence.
[0071] For example, the minimized alignment path of the detection data segment length difference sequence within two rounds may be calculated based on the DTW algorithm.
[0072] Optionally, a possible implementation method may be: based on the DTW algorithm, according to the tube segment length difference sequence, construct a cumulative distance matrix between the detection data in two rounds; in the cumulative distance matrix, determine the minimized alignment path.
[0073] The DTW algorithm is first explained below.
[0074] The DTW algorithm is an algorithm used to calculate the similarity between two time series, especially suitable for sequences with different alignment lengths or nonlinear time deformations. The core idea of the algorithm is to find the optimal alignment path between two time series through dynamic programming to minimize their cumulative alignment distance, thereby measuring the similarity between them.
[0075] Secondly, an example is given to illustrate the specific implementation method of constructing the cumulative distance matrix between the detection data in two rounds based on the tube length difference sequence based on the DTW algorithm:
[0076] For example, in the detection data within two rounds, it is determined that the pipe segment length difference sequence corresponding to the detection data within one round is X=[x1, x2, x3, ..., x n ], the pipe length difference sequence corresponding to the detection data in another round is Y = [y1, y2, y3, ..., y m ]. The two pipe length difference sequences are input into the DYW algorithm, and a cumulative distance matrix D of size n×m is constructed by the DYW algorithm. Among them, D(i,j) represents the minimum cumulative distance between the first i elements of the pipe length difference sequence X and the first j elements of the pipe length difference sequence Y.
[0077] Exemplarily, DTW can calculate the value of D(i, j) by the following recursive formula:
[0078] D(i,j)=d(x i ,y j )+min(D(i-1,j),D(i,j-1),D(i-1,j-1)
[0079] Among them, d(x i ,y j ) is a local distance metric, usually calculated using Euclidean distance, i.e. d(x i ,y j )=(x i -y j ) 2 In this formula, (D(i-1,j), D(i,j-1), D(i-1,j-1) represent three possible paths to D(i,j) from the top, left, and top-left positions respectively. The optimal path is found by taking the minimum value of these three.
[0080] The initial condition is D(1,1)=d(x1,y1), which indicates the matching starting from the starting point of the pipe segment length difference sequence X and the pipe segment length difference sequence Y.
[0081] Furthermore, the boundary conditions of the cumulative distance matrix D can be defined as follows: the boundary elements D(1,1) and D(1,j) in the matrix correspond to the distance accumulated from the starting point to the current point, and their values are the accumulated distances from the starting point of the tube segment length difference sequence X or the tube segment length difference sequence Y to the current point.
[0082] It can be understood that, by constructing the cumulative distance matrix D, the minimum alignment distance from sequence X to sequence Y can be calculated, and this distance is the element D(n,m) at the lower right corner of the cumulative distance matrix D.
[0083] Exemplarily, in the cumulative distance matrix, a possible implementation method for determining the minimized alignment path may be: based on the DTW algorithm, backtracking from the lower right corner element D(n,m) of the cumulative distance matrix D, and sequentially backtracking along the minimum distance on the path until reaching the upper left corner element D(1,1), thereby determining the optimal alignment method of the two tube segment length difference sequences, that is, the minimized alignment path between the two tube segment length difference sequences.
[0084] It should be noted that since there is no "one-to-many" alignment of the girth weld in multiple rounds of detection, each girth weld is limited to be aligned only once when searching for the alignment path. That is, when the DTW algorithm backtracks to minimize the alignment path, it will filter out repeated alignments to ensure that each point is aligned only once, that is, to ensure one-to-one pairing.
[0085] In the embodiment of the present application, for each round of internal detection data in two rounds of internal detection data, a pipe segment length difference sequence corresponding to the internal detection data is determined, and a minimized alignment path is determined based on the pipe segment length difference sequence. In the embodiment of the present application, by establishing a pipe segment length difference sequence based on the pipe segment length difference for each round of internal detection data, a minimized path between the pipe segment length difference sequences corresponding to the two rounds of internal detection data is further calculated, and the two rounds of internal detection data are aligned based on the minimized alignment path, so as to achieve alignment of the two rounds of internal detection data, and further achieve alignment of multiple rounds of internal detection data.
[0086] Optionally, in some embodiments, a cumulative distance matrix can be constructed based on the tube segment length sequences corresponding to the detection data in two rounds, and the minimized alignment path between the tube segment length sequences corresponding to the detection data in the two rounds can be obtained in the cumulative distance matrix, and the detection data in the two rounds can be further aligned based on the minimized alignment path.
[0087] The method of determining the tube segment length sequence and constructing the cumulative distance matrix are similar to the above and will not be repeated here.
[0088] Optionally, in step S103, a possible implementation method for aligning the two rounds of internal detection data according to the minimized alignment path may be: determining the internal detection data of one round of the two rounds as the internal detection data to be aligned, and determining the internal detection data of the other round as the reference internal detection data, taking the pipe segment length difference sequence corresponding to the reference internal detection data as a reference, and aligning the pipe segment length difference sequence corresponding to the internal detection data to be aligned according to the minimized alignment path; based on the mapping relationship between the girth weld number and the pipe segment length difference identifier, align the girth weld number sequence contained in the internal detection data to be aligned according to the aligned pipe segment length difference sequence corresponding to the internal detection data to be aligned.
[0089] Exemplarily, in two rounds of internal detection data, the internal detection data of an earlier round of detection time may be used as reference internal detection data, and the internal detection data of another round of detection time may be used as internal detection data to be aligned.
[0090] Exemplarily, when the minimization alignment path from the upper left corner to the lower right corner of the cumulative distance matrix is D(1,2), D(2,3), and D(3,4), taking the pipe segment length difference sequence corresponding to the reference internal detection data, such as the pipe segment length difference sequence X, as a reference, the pipe segment length difference sequence corresponding to the internal detection data to be aligned, such as the pipe segment length difference sequence Y, is aligned with X1, Y3 is aligned with X2, Y4 is aligned with X3, and so on.
[0091] It can be understood that in the minimization path of this example, the DTW algorithm automatically filters out the element D(3,3) to avoid repeated alignment of point Y3.
[0092] Exemplarily, the pipe segment length difference identifier may be a sequence number of each pipe segment length difference in the pipe segment length difference sequence.
[0093] For example, if the girth weld numbering sequence is [10, 20, 30, 40, 50], the pipe segment length difference sequence before alignment corresponding to the internal detection data to be aligned is [0, 0, -11, 4, 0], and the pipe segment length difference sequence after alignment corresponding to the internal detection data to be aligned is [0, 0, 4, -11, 0], then the girth weld numbering sequence after alignment can be [10, 20, 40, 30, 50].
[0094] Figure 3 Schematic diagram of the tube length difference sequence before and after alignment provided in the embodiment of the present application. Figure 3 As shown, the horizontal axis represents the girth weld number such as 1000, 1200, 1400, 1600, 1800 and 2000, the vertical axis represents the pipe segment length difference, and the gray dotted line in the comparison diagram of the pipe segment length difference before and after alignment represents the minimized alignment path. Figure 3As shown, taking the reference internal inspection data pipe segment length difference as a reference, the pipe segment length difference of the internal inspection data to be aligned and the reference internal inspection data pipe segment length difference are aligned according to the minimized alignment path, so that the alignment of the two rounds of internal inspection data, that is, the alignment of the circumferential weld numbers, can be achieved, as shown in the comparison diagram of the pipe segment length difference after alignment.
[0095] Optionally, in the internal inspection data alignment method provided in the embodiment of the present application, after aligning the girth weld number sequence contained in the internal inspection data to be aligned, it also includes: standardizing the aligned girth weld number sequence; and correcting the relative mileage between two adjacent girth weld numbers in the standardized girth weld number sequence.
[0096] Exemplarily, the aligned girth weld number sequence is standardized, that is, the writing methods of different girth weld numbers are processed into a unified format, such as a writing format of 10, 20, 30, etc.
[0097] Exemplarily, the correction processing for the relative mileage may be proportional scaling of the relative mileage.
[0098] A possible implementation method for correcting the relative mileage can be: using the relative mileage of the non-weld sampling point in the detection data to be aligned relative to the adjacent upstream girth weld, divided by the relative mileage of its upstream and downstream girth welds, and then multiplied by the relative mileage of the upstream and downstream girth welds of the aligned non-weld sampling point. Specifically, the correction formula can be expressed by the following formula:
[0099]
[0100] Among them, L1 is the relative mileage (m) of the non-weld sampling point relative to the adjacent upstream girth weld; L2 is the relative mileage (m) of the non-weld sampling point relative to the adjacent upstream girth weld after alignment; W1 is the relative mileage (m) of the upstream and downstream girth welds before the non-weld sampling point is aligned; W2 is the relative mileage (m) of the upstream and downstream girth welds of the non-weld sampling point after alignment.
[0101] Figure 4 A schematic diagram of the correction process for the relative mileage corresponding to the numbers of two adjacent ring welds provided in the embodiment of the present application. Figure 4 As shown in a, based on the non-weld sampling points between two adjacent girth welds, the relative mileage between the two adjacent girth weld numbers is proportionally reduced, thereby reducing the data distribution spacing between the aligned internal inspection data. Figure 4 As shown in b, based on the non-weld sampling points between two adjacent girth welds, the relative mileage between the two adjacent girth weld numbers is proportionally enlarged and corrected, thereby enlarging the data distribution spacing between the aligned internal inspection data.
[0102] It should be noted that after the relative mileage is corrected, the corresponding sampling point data in the relative mileage remains unchanged, and only the distribution spacing between the data is changed.
[0103] In summary, in the internal detection data alignment method provided in the embodiment of the present application, by establishing a difference matrix based on the pipe segment length difference, that is, a pipe segment length difference sequence, using the DTW algorithm, the minimized alignment path of the pipe segment length difference sequence between any two rounds of internal detection data in multiple rounds of internal detection data is calculated, and further by backtracking the minimized alignment path, the girth weld information corresponding to the aligned internal detection data, that is, the girth weld number, is obtained, and the aligned girth weld information is standardized, and then the relative mileage is proportionally scaled and corrected according to the aligned girth weld information. By aligning two rounds of internal detection data, the alignment of multiple rounds of undetected data is achieved. This method effectively solves the problems encountered in the alignment of multiple rounds of internal detection data and improves the accuracy and reliability of internal detection data alignment.
[0104] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0105] Figure 5 This is a schematic diagram of the structure of an internal detection data alignment device provided in an embodiment of the present application. Figure 5 As shown, the internal detection data alignment device 50 provided in this embodiment includes an acquisition module 510 , a determination module 520 and an alignment module 530 .
[0106] The acquisition module 510 is used to acquire at least two rounds of detection data of the target oil and gas pipeline;
[0107] A determination module 520 is used to determine, for each two rounds of detection data in at least two rounds of detection data, a minimized alignment path between two rounds of detection data;
[0108] The alignment module 530 is used to align the detection data in two rounds according to the minimized alignment path.
[0109] In a possible implementation, the determination module 520 is specifically used to: determine the pipe segment length difference sequence corresponding to each round of internal detection data in two rounds of internal detection data; and determine the minimum alignment path according to the pipe segment length difference sequence.
[0110] In one possible implementation, the internal inspection data includes a girth weld number sequence and an absolute mileage corresponding to each girth weld number in the girth weld number sequence. The determination module 520 is also used to: for the girth weld number sequence, calculate in sequence the difference in absolute mileage corresponding to two adjacent girth weld numbers to obtain a pipe segment length sequence corresponding to the internal inspection data; for the pipe segment length sequence, calculate in sequence the difference in length of two adjacent pipe segments to obtain a pipe segment length difference sequence.
[0111] In a possible implementation, the determination module 520 is further used to: construct a cumulative distance matrix between detection data in two rounds based on the DTW algorithm and the tube segment length difference sequence; and determine a minimized alignment path in the cumulative distance matrix.
[0112] In one possible implementation, one round of internal detection data out of two rounds of internal detection data is determined as the internal detection data to be aligned, and the other round of internal detection data is determined as the reference internal detection data, and the alignment module 530 is specifically used to: use the pipe segment length difference sequence corresponding to the reference internal detection data as a reference, and align the pipe segment length difference sequence corresponding to the internal detection data to be aligned according to the minimized alignment path; based on the mapping relationship between the girth weld number and the pipe segment length difference identifier, align the girth weld number sequence contained in the internal detection data to be aligned according to the aligned pipe segment length difference sequence corresponding to the internal detection data to be aligned.
[0113] In a possible implementation, the internal inspection data alignment device also includes a processing module (not shown). After aligning the girth weld number sequence contained in the internal inspection data to be aligned, the processing module is used to: standardize the aligned girth weld number sequence; and correct the relative mileage between two adjacent weld numbers in the standardized girth weld number sequence.
[0114] The internal detection data alignment device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be described in detail here.
[0115] Figure 6 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Figure 6 As shown, the electronic device 60 provided in this embodiment includes: at least one processor 601 and a memory 602 .
[0116] Optionally, the electronic device 60 further includes a communication interface 603 and a system bus 604 .
[0117] The memory 602 and the communication interface 603 are connected to the processor 601 via the system bus 604 and communicate with each other. The memory 602 is used to store instructions, and the communication interface 603 is used to communicate with other devices.
[0118] In a specific implementation process, at least one processor 601 executes the computer execution instructions stored in the memory 602, so that at least one processor 601 executes the above method.
[0119] The specific implementation process of the processor 601 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.
[0120] In the above-mentioned embodiment, it should be understood that the processor 601 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor can be a microprocessor or the processor can be any conventional processor, etc. The steps of the method disclosed in the invention can be directly embodied as being executed by a hardware processor, or can be executed by a combination of hardware and software modules in the processor.
[0121] The memory 602 may include a high-speed memory (Random Access Memory, RAM for short), and may also include a non-volatile memory (NVM for short), such as at least one disk memory.
[0122] The system bus 604 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The system bus 604 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the system bus in the drawings of the present application is not limited to only one bus or one type of bus.
[0123] The present application also provides a computer program product, including a computer program, which implements the above method when executed by a processor.
[0124] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above method is implemented.
[0125] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.
[0126] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.
[0127] The division of units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.
[0128] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0129] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0130] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store program codes.
[0131] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0132] Finally, it should be noted that those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary technical means in the art not disclosed by the present invention, are not limited to the precise structure described above and shown in the drawings, and may be modified and changed in various ways without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
Claims
1. A method for aligning internal detection data, characterized in that: include: Acquire at least two rounds of inspection data of the target oil and gas pipeline, wherein each round of inspection data includes a girth weld number sequence and an absolute mileage corresponding to each girth weld number in the girth weld number sequence; For the girth weld number sequence in each round of detection data within each two rounds of detection data in the at least two rounds, the difference between the absolute mileages corresponding to two adjacent girth weld numbers is calculated in sequence to obtain the pipe segment length sequence corresponding to the detection data within each round; for the pipe segment length sequence, the difference between two adjacent pipe segment lengths is calculated in sequence to obtain the pipe segment length difference sequence; based on the dynamic time warping DTW algorithm, according to the pipe segment length difference sequence, a cumulative distance matrix between the detection data within each two rounds is constructed; in the cumulative distance matrix, a minimized alignment path between the detection data within each two rounds is determined; Determine one round of internal detection data in every two rounds of internal detection data as the internal detection data to be aligned, and determine the other round of internal detection data as the reference internal detection data; Taking the pipe segment length difference sequence corresponding to the reference internal detection data as a reference, the pipe segment length difference sequence corresponding to the internal detection data to be aligned is aligned according to the minimized alignment path; based on the mapping relationship between the girth weld number and the pipe segment length difference identifier, the girth weld number sequence contained in the internal detection data to be aligned is aligned according to the aligned pipe segment length difference sequence corresponding to the internal detection data to be aligned.
2. The internal detection data alignment method according to claim 1, characterized in that: After aligning the girth weld number sequence contained in the detection data to be aligned, the method further includes: Standardize the numbering sequence of the aligned girth welds; With respect to the relative mileage between two adjacent weld numbers in the standardized girth weld number sequence, the relative mileage is corrected.
3. An internal detection data alignment device, characterized in that: include: An acquisition module, used to acquire at least two rounds of detection data of the target oil and gas pipeline, wherein each round of detection data includes a girth weld number sequence and an absolute mileage corresponding to each girth weld number in the girth weld number sequence; A determination module is used to calculate the difference between the absolute mileages corresponding to two adjacent girth weld numbers for the girth weld number sequence in each of the at least two rounds of detection data, and obtain the pipe segment length sequence corresponding to the detection data in each round; for the pipe segment length sequence, calculate the difference between the lengths of two adjacent pipe segments in turn, and obtain the pipe segment length difference sequence; based on the dynamic time warping DTW algorithm, construct a cumulative distance matrix between the detection data in each of the two rounds according to the pipe segment length difference sequence; in the cumulative distance matrix, determine the minimized alignment path between the detection data in each of the two rounds; An alignment module, used to determine one round of internal detection data in every two rounds of internal detection data as the internal detection data to be aligned, and determine the other round of internal detection data as the reference internal detection data; The alignment module is also used to align the pipe segment length difference sequence corresponding to the internal detection data to be aligned according to the minimized alignment path, taking the pipe segment length difference sequence corresponding to the reference internal detection data as a reference; based on the mapping relationship between the girth weld number and the pipe segment length difference identifier, align the girth weld number sequence contained in the internal detection data to be aligned according to the aligned pipe segment length difference sequence corresponding to the internal detection data to be aligned.
4. An electronic device, characterized in that: include: at least one processor; and a memory communicatively coupled to the at least one processor; The memory is used to store instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method according to any one of claims 1 or 2.
5. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 or 2 when executed.
6. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed, the method according to any one of claims 1 or 2 is implemented.
Citation Information
Patent Citations
Aero-engine residual life prediction method based on transfer learning
CN113297787A