Elbow identification method based on coordinate data of center line of pipeline
Through IMU detection and data processing technology, combined with magnetic leakage detection information, the position and characteristics of elbows in oil and natural gas pipelines are accurately identified, which solves the problem of insufficient elbow recognition capabilities in the existing technology, and improves the positioning accuracy and strain of pipeline elbows. Calculation accuracy.
Patent Information
- Application Number
- CN202411524901.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-30
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2044-10-30
AI Technical Summary
The prior art is difficult to accurately identify the position, bending angle and bending radius of the elbow of oil and gas pipelines, especially under complex geological conditions, which affects the three-dimensional spatial direction delineation and safety assessment of the pipeline.
The pipeline centerline coordinate information is obtained through IMU detection, data noise reduction processing and cubic spline interpolation processing are performed, and the pipeline curvature and elbow characteristics are calculated, and the starting and end points, bending angle and radius of the elbow are determined.
Accurate identification of pipeline elbows, including identification of small elbows, obtaining bending angles and bending radius, and improving the accuracy and safety evaluation of pipeline deformation testing.
Smart Images

Figure CN119043258A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of petroleum and natural gas pipeline deformation testing, and relates to an elbow identification method based on pipeline centerline coordinate data. Background Art
[0002] When oil and gas pipelines pass through adverse geological areas such as seismically active areas, frozen soil areas, landslides and mudslides, they may be deformed and displaced by additional loads such as uneven settlement, sliding or lateral thrust caused by foundation deformation, thus affecting their overall service performance and long-term operation safety. Pipeline elbows are common components in oil and gas pipelines, mainly used to change the transmission direction of the medium. Due to the angular offset between the elbow and the straight pipe, they are usually fixed and connected by girth welds. However, it is precisely because of this angular offset and local stress concentration that the elbow area is more susceptible to medium flow impact, resulting in defects such as local corrosion and cracks. At the same time, under the action of additional loads, the deformation of the elbow position (such as dents and wrinkles) is aggravated, which may cause pipeline rupture, oil and gas leakage accidents, and seriously threaten the operation safety and environmental protection of the pipeline system.
[0003] Traditional excavation detection methods can only target local locations of pipelines, making it difficult to evaluate long-distance pipelines along the entire line. To overcome this limitation, an inertial measurement unit (IMU) is mounted on a detector inside the pipeline, which moves along the pipeline under the push of the flowing medium in the pipeline, recording the centerline coordinates of the pipeline and attitude information such as pitch angle and heading angle. By performing spatial coordinate conversion on the longitude and latitude coordinates of the centerline of the pipeline recorded by the IMU, the three-dimensional spatial direction of the pipeline can be obtained. Existing technologies usually identify pipeline elbows through magnetic flux leakage detection methods, and then align the data to match the elbow position in the IMU mileage information. However, this method is not only complicated in process but also lacks the ability to identify small elbows, which seriously affects the accurate depiction of the three-dimensional spatial direction of the pipeline. In addition, the magnetic flux leakage detection method can only obtain the number and location of pipeline elbows, and cannot determine the bending angle and bending radius of the elbows, making it difficult to accurately describe the pipeline elbows.
[0004] Therefore, how to accurately identify the location of pipeline elbows and determine their bending angles and bending radius so as to better cope with the potential impact of complex media on pipelines has become an urgent problem to be solved in the deformation testing process of oil and gas pipelines. Summary of the invention
[0005] The technical solution adopted by the present invention to solve the technical problem is: a method for identifying an elbow based on pipeline centerline coordinate data, the elbow identification method comprising the following steps: Step 1: Obtain the pipeline centerline coordinate information based on IMU detection; The pipeline detection data is obtained through IMU detection, and the pipeline detection data includes: longitude and latitude, and geodetic space coordinates; through coordinate conversion, the pipeline detection data is converted into local northeast celestial coordinate data with the measurement starting point as the origin; Step 2: Data noise reduction processing; Wavelet threshold denoising is used to pre-process each small segment of local northeastern celestial coordinate data to remove noise signals; Step 3: Data cubic spline interpolation processing; According to the need, the interpolation interval is set by 1 to 10 times the sampling interval; the spatial coordinate components of each segment of data after noise reduction are respectively processed based on mileage s Cubic spline interpolation of ; the interpolation function is obtained , and ,in, , and are the interpolation functions of the spatial components with respect to mileage, pointing to the east, north and sky directions respectively; Step 4: Calculate the curvature of the pipeline; Calculate the total curvature of the pipeline at the interpolation point:
[0006] In formula (5), , , The curvatures are , , The component of the direction is obtained by fitting the cubic spline interpolation function obtained in step 3 , and Taking the second derivative we get; Step 5: Pipe elbow identification; Align the magnetic flux leakage detection information with the pipeline IMU detection information to determine the pipeline girth weld position information, the start and end point coordinate information and mileage information of the pipeline elbow; Step 6: Calculate the bending angle and bending radius of the pipe section; Elbow inner angle θ :
[0007] In formula (7), s Indicates the length of the pipe elbow, taking the mileage distance between the starting and ending points of the pipe elbow. r is the bending radius; Bending radius r :
[0008] In formula (8), d is the length of the straight line between the starting point and the end point of the elbow; Using the known elbow length s and straight-line distance d The bending angle and bending radius of the elbow can be obtained.
[0009] Preferably, in step 1, the performance specification of the IMU used for in-pipe detection needs to meet the bending deformation curvature of a single detection greater than 400 times the pipe diameter, and repeated detection should identify a curvature change rate greater than 2500 times the pipe diameter.
[0010] Preferably, in step 2, the data preprocessing uses Daubechies4 wavelet, unbiased estimation principle and soft threshold function to perform noise reduction, and the data is further smoothed according to the moving average method.
[0011] Preferably, in step 3, the interpolation interval is set using 5 times the sampling interval.
[0012] Preferably, in step 3, the data cubic spline interpolation processing is specifically as follows: The interpolation function of the pipeline centerline with respect to mileage is:
[0013] In formula (1), For pipeline centerline about mileage s The interpolation function of , and are the interpolation functions of each spatial component with respect to mileage, pointing to the east, north and sky directions respectively; The cubic spline interpolation function is fitted between two adjacent interpolation function points using the polynomial of formula (2):
[0014] In formula (2), Indicates interpolation points coordinate, For the The mileage value of the interpolation point, , , , are the four parameters of interpolation fitting, The value of ; The coordinates in the three directions of east, north and sky need to be fitted using the cubic spline interpolation function to obtain the interpolation function , and .
[0015] Preferably, in step 5, the specific steps of pipeline elbow identification are: Step 5-1, determining whether there is an elbow between adjacent girth welds based on the calculated pipe curvature and the position of the corresponding girth weld; Step 5-2, determine the starting point and end point of the initial elbow of the pipeline according to the total curvature value of the pipeline; set the curvature threshold of the pipeline elbow, when the curvature of the pipeline changes beyond the threshold, mark the previous interpolation point as the starting point of the initial elbow; on this basis, when the curvature changes suddenly again, mark the interpolation point as the end point of the initial elbow; Step 5-3, compare the initial elbow start and end points with the girth weld position information to further determine the start and end point coordinate information and mileage information of the pipeline elbow.
[0016] The beneficial effects of the present invention are: 1. The present invention can identify pipeline elbows only through IMU pipeline centerline coordinate information.
[0017] 2. The method of the present invention can identify small elbows in the pipeline that cannot be detected by the magnetic flux leakage detection method.
[0018] 3. The present invention can obtain the bending angle and bending radius of the spatial elbow by combining the IMU pipeline centerline coordinate information and the internal detection information. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 It is a schematic diagram of elbow recognition based on the pipeline centerline of an elbow recognition method based on pipeline centerline coordinate data of the present invention; Figure 2 It is a three-dimensional spatial trend diagram of the pipeline before and after noise reduction obtained based on IMU of the present invention; Figure 3 It is the pipeline x-direction trend and cubic spline interpolation diagram after noise reduction of the present invention; Figure 4 It is the pipeline y-direction trend and cubic spline interpolation diagram after noise reduction of the present invention; Figure 5 It is the pipeline z-direction trend and cubic spline interpolation diagram after noise reduction of the present invention; Figure 6 is a graph of the total curvature of the pipeline along the mileage of the present invention; Figure 7 is an initial pipeline elbow recognition result diagram of the present invention; Figure 8 is a pipeline elbow identification result diagram of the present invention; Fig. 9 is a pipeline elbow interpolation result diagram of the present invention; Fig.10 It is a pipeline elbow detection result diagram of the present invention; Fig.11 It is a schematic flow chart of the method of the present invention. DETAILED DESCRIPTION
[0020] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the relevant technologies in the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0021] The purpose of the present invention is to develop an effective testing technology to identify the elbows of oil and gas pipelines, obtain the bending angle and bending radius of the elbows, and make the description of the pipeline elbows in the oil and gas gathering and transportation system more accurate.
[0022] refer to Figures 1 to 11 The present invention proposes a method for identifying elbows based on the centerline coordinates of oil and gas pipelines. The method specifically includes the following steps: 1. Obtain pipeline centerline coordinate information based on IMU detection The IMU is used to obtain pipeline inspection-related data, such as longitude and latitude, and geodetic space coordinates. Through coordinate conversion, a local northeast celestial coordinate with the measurement starting point as the origin is formed. The performance specifications of the IMU used for pipeline inspection must meet the bending deformation curvature of a single inspection greater than 400 times the pipe diameter, and repeated inspections should identify a curvature change rate greater than 2500 times the pipe diameter.
[0023] 2. Data noise reduction The pipeline centerline coordinate data collected by IMU is affected by pipeline welds, corrosion defects, etc., and the introduced noise signals affect the calculation results. The wavelet threshold denoising technology is used to preprocess each small segment of data, which can effectively remove the noise signal. The selected wavelet basis, threshold and threshold function need to be selected according to the signal characteristics. For the IMU pipeline data, Daubechies4 wavelet, unbiased estimation principle and soft threshold function are used for denoising, and the data is further smoothed according to the moving average method.
[0024] 3. Data cubic spline interpolation processing In order to ensure the calculation accuracy as much as possible and avoid the influence of overfitting on the calculation of pipeline curvature, the interpolation interval is set to 5 times the sampling interval. s The cubic spline interpolation of the pipeline centerline with respect to mileage is expressed as follows:
[0025] in, Is the pipeline centerline about the mileage s The interpolation function of , and is the interpolation function of each component of space with respect to mileage, pointing to the east, north and sky directions respectively. The cubic spline interpolation function is fitted between two adjacent interpolation function points using the polynomial of formula (2):
[0026] In formula (2), Indicates interpolation points coordinate, For the The mileage value of the interpolation point, , , , are the four parameters of interpolation fitting, The value of ,therefore There are a total of interpolation points The cubic spline interpolation function has continuous zero-order, first-order, and second-order derivatives at the intermediate interpolation points, and The segmented cubic function must pass through all known interpolation points, so there are By introducing natural boundary conditions at the two endpoints, we can obtain two equations. The equation can be used to solve all the interpolation fitting parameters of the pipeline centerline. The coordinates in the three directions of east (x direction), north (y direction) and sky (z direction) all need to be fitted using the cubic spline interpolation function.
[0027] 4. Pipeline curvature calculation For the curvature of the pipeline centerline, according to the calculation method of the spatial curve curvature, the mileage s Taking the second-order derivative, we get:
[0028] The expressions of each component of curvature are as follows:
[0029] in , , The curvatures are , , The directional component is obtained by taking the second-order derivative of the cubic spline interpolation fitting function.
[0030] According to the above formula, the total curvature of the pipeline can be calculated according to the following expression:
[0031] The total curvature of the pipeline at the interpolation point can be calculated using formula (5).
[0032] 5. Pipe elbow identification The leakage magnetic detection information is aligned with the pipeline IMU detection information to determine the location information of the pipeline girth weld. First, pipeline elbows usually appear with girth welds, so it is possible to determine whether there is an elbow between adjacent girth welds based on the calculated pipeline curvature and the position of the corresponding girth weld.
[0033] Secondly, determine the initial elbow start and end point of the pipeline according to the total curvature value of the pipeline. Set the pipeline elbow curvature threshold. When the pipeline curvature changes beyond the threshold, mark the previous interpolation point as the initial elbow start point. On this basis, when the curvature changes again, mark the interpolation point as the initial elbow end point.
[0034] Finally, the initial elbow start and end points and the girth weld position information are compared to further determine the start and end point coordinate information and mileage information of the pipeline elbow.
[0035] 6. Calculation of pipe section bending angle and bending radius Assume that the coordinates of the elbow starting point are ( x 1, y 1, z 1), the end point coordinates are ( x 2, y 2, z 2) The length of the straight line between the starting point and the end point d for:
[0036] The bending angle of the elbow is complementary to the inner angle of the elbow. θ Determined by the relationship between elbow length and radius:
[0037] in, s Indicates the length of the pipe elbow, taking the mileage distance between the starting and ending points of the pipe elbow. θ is the inner angle of the elbow, r is the bending radius.
[0038] The bending radius is obtained by inverse calculation of the elbow length and angle:
[0039] Combining equations (7) and (8), using the known elbow length s and straight-line distance d The bending angle and bending radius of the elbow can be obtained.
[0040] Example This embodiment takes a natural gas gathering and transportation pipeline in my country as an example. The pipeline material is L360 pipeline, the outer diameter of the pipeline is 168 mm, and the wall thickness of the pipeline is 7.1 mm.
[0041] 1. Obtain pipeline centerline data By conducting Figure 1 The IMU test shown above obtains the longitude and latitude coordinates of the pipeline centerline. Using geodetic space coordinate conversion and northeast celestial coordinate conversion, the three-dimensional spatial direction information of the pipeline based on the original reference coordinate origin of the measurement starting point is obtained. The length of a certain pipe section detected by IMU is about 13 meters.
[0042] 2. Data noise reduction In order to reduce the interference signal generated by the sediment and weld in the pipeline during the operation of the IMU, the pipeline centerline data is denoised by wavelet denoising. The wavelet base is Daubechies4 wavelet, and the unbiased estimation principle (rigrsure) and soft threshold function are used. The pipeline centerline data after denoising and the data points used for cubic spline interpolation are shown in Figure 1. Figure 2 shown.
[0043] 3. Cubic spline interpolation calculation of pipeline centerline data In order to ensure the calculation accuracy as much as possible and avoid the influence of overfitting on the calculation of pipeline curvature, the pipeline centerline coordinate data is selected using 5 times the sampling interval as the interpolation interval. According to formula (2), the three-dimensional space coordinate information (x direction, y direction, z direction) is respectively calculated about the mileage s Perform cubic spline interpolation. Figure 3 , 4, and 5 are the selected denoised IMU data in the x direction, y direction, and z direction for cubic spline interpolation and fitting curves.
[0044] 4. Calculate the curvature of the pipeline based on the spline interpolation function The first-order and second-order derivatives of the spline interpolation functions in the x-, y-, and z-directions are taken respectively, and the derivative values of the interpolation points are calculated and substituted into equations (3) to (5) to calculate the total curvature of the pipeline. Figure 6 is the relationship between the total curvature of the pipeline and its mileage.
[0045] 5. Determine the starting and ending points of the elbow After obtaining the pipeline IMU detection data, the data alignment is performed through the leakage magnetic detection information to determine the coordinate information of the pipeline girth weld. First, the pipeline elbow curvature threshold is set to 0.2m, and the curvature difference between two adjacent interpolation points is calculated. If the curvature change exceeds 0.2m, it is considered that there is an elbow in the pipe section.
[0046] Secondly, determine the initial elbow start and end point of the pipeline. Mark the previous interpolation point where the curvature change exceeds 0.2m for the first time as the initial elbow start point. On this basis, when the curvature changes suddenly again, mark the interpolation point as the initial elbow end point. The schematic diagram of the initial elbow start and end point is as follows: Figure 7 shown.
[0047] Finally, the initial elbow starting point and girth weld positions are compared to further determine the starting and ending points of the pipeline elbow. It is found that the distance between the initial elbow starting point and the first girth weld position is 0.25m, which is less than twice the interpolation interval, so the elbow starting point is corrected to the girth weld position. Similarly, by comparing the initial elbow end point and girth weld positions, it is found that the interval between the initial elbow end point and the girth weld position is also small, so the girth weld position is considered to be the elbow end point. The final determined starting and ending points of the pipeline elbow are as follows: Figure 8 As shown. The interpolation point is selected according to the elbow position. Fig. 9 The distribution of actual detection points at the elbow position Fig.10 It can be seen that this method can realize the accurate identification of small elbows in pipes.
[0048] 6. Calculate the bending angle and bending radius of the elbow like Figure 1 The elbow recognition schematic diagram based on the pipeline centerline shows that the geometric characteristics of the pipeline elbow can be obtained according to the starting point A, the end point B and the mileage distance between the two points of the pipeline elbow. According to formula (6) and the geographic coordinates of points A and B, the straight-line distance between the starting points of the pipeline is determined. Combined with the mileage distance between the starting point and the end point of the elbow, the bending angle and bending radius of the pipeline elbow can be calculated according to formulas (7) and (8). The final calculation shows that the bending angle of the pipeline is 129.97° and the bending radius is 1.55m, which achieves an accurate description of the geometric characteristics of the pipeline elbow.
[0049] In this embodiment, the elbow recognition method based on the pipeline centerline coordinate data can accurately identify the location of the pipeline elbow by interpolating and fitting the centerline space coordinates and combining mathematics with deformation correlation calculation. In addition, combined with the position information of the girth weld interface, the bending angle and bending radius of the elbow can be further determined, thereby achieving a comprehensive and accurate description of the geometric characteristics of the elbow.
[0050] Therefore, considering the special service conditions of oil and gas pipelines and the complex and changeable internal flow media, it is of great significance to carry out elbow identification based on the centerline coordinates of the pipeline. By accurately identifying the position of the pipeline elbow, its bending angle and bending radius can be further determined, which can better cope with the potential impact of complex media on the pipeline. The method of the present invention can not only improve the positioning accuracy of the pipeline elbow, but also significantly improve the accuracy of the pipeline bending strain calculation, thereby providing reliable data support for a comprehensive understanding of the safety status of the pipeline structure.
[0051] In summary, the present invention converts the IMU pipeline centerline coordinate information into local northeast celestial coordinate data and then performs data cubic spline interpolation processing to calculate the pipeline curvature, and then identifies the pipeline elbow through the pipeline curvature threshold, and finally determines the starting and ending point coordinate information and mileage information of the pipeline elbow to calculate the bending angle and bending radius of the identified elbow; thus, the present invention can realize the identification of pipeline elbows only through the IMU pipeline centerline coordinate information, and can identify small pipeline elbows that cannot be obtained by the leakage magnetic detection method. Therefore, the present invention has a wide range of application prospects in the practical application of oil and gas pipeline deformation testing.
[0052] It should be emphasized that the above are only preferred embodiments of the present invention and do not limit the present invention in any form. Any simple modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention are still within the scope of the technical solution of the present invention.
Claims
1. A method for identifying elbows based on pipeline centerline coordinate data, characterized in that: The elbow identification method comprises the following steps: Step 1: Obtain the pipeline centerline coordinate information based on IMU detection; Acquire pipeline detection data through IMU detection, the pipeline detection data including: longitude and latitude, and geodetic space coordinates; transform the pipeline detection data into local northeast celestial coordinate data with the measurement starting point as the origin through coordinate transformation; Step 2: Data noise reduction processing; Using wavelet threshold noise reduction to pre-process each small segment of the local northeast celestial coordinate data to remove noise signals; Step 3: Data cubic spline interpolation processing; According to the need, the interpolation interval is set by 1 to 10 times the sampling interval; the spatial coordinate components of each segment of data after noise reduction are respectively processed based on mileage s Cubic spline interpolation of ; the interpolation function is obtained , and ,in, , and are the interpolation functions of the spatial components with respect to mileage, pointing to the east, north and sky directions respectively; Step 4: Calculate the curvature of the pipeline; Calculate the total curvature of the pipeline at the interpolation point: In formula (5), , , The curvatures are , , The component of the direction is obtained by fitting the cubic spline interpolation function obtained in step 3 , and Taking the second derivative we get; Step 5: Pipe elbow identification; Align the magnetic flux leakage detection information with the pipeline IMU detection information to determine the pipeline girth weld position information, the start and end point coordinate information and mileage information of the pipeline elbow; Step 6: Calculate the bending angle and bending radius of the pipe section; Elbow inner angle θ : In formula (7), s Indicates the length of the pipe elbow, taking the mileage distance between the starting and ending points of the pipe elbow. r is the bending radius; Bending radius r : In formula (8), d is the length of the straight line between the starting point and the end point of the elbow; Using the known elbow length s and straight-line distance d The bending angle and bending radius of the elbow can be obtained.
2. The elbow identification method based on pipeline centerline coordinate data according to claim 1 is characterized in that: In step 1, the performance specification of the IMU used for in-pipe detection must meet the bending deformation curvature of a single test greater than 400 times the pipe diameter, and repeated tests should identify a curvature change rate greater than 2500 times the pipe diameter.
3. The elbow identification method based on pipeline centerline coordinate data according to claim 1 is characterized in that: In the step 2, the data preprocessing uses Daubechies4 wavelet, unbiased estimation principle and soft threshold function to perform noise reduction, and the data is further smoothed according to the moving average method.
4. The elbow identification method based on pipeline centerline coordinate data according to claim 1 is characterized in that: In step 3, the interpolation interval is set by using 5 times the sampling interval.
5. The elbow identification method based on pipeline centerline coordinate data according to claim 1 is characterized in that: In step 3, the data cubic spline interpolation process is specifically as follows: The interpolation function of the pipeline centerline with respect to mileage is: In formula (1), For pipeline centerline about mileage s The interpolation function of , and are the interpolation functions of each spatial component with respect to mileage, pointing to the east, north and sky directions respectively; The cubic spline interpolation function is fitted between two adjacent interpolation function points using the polynomial of formula (2): In formula (2), Indicates interpolation points coordinate, For the The mileage value of the interpolation point, , , , are the four parameters of interpolation fitting, The value of ; The coordinates in the three directions of east, north and sky need to be fitted using the cubic spline interpolation function to obtain the interpolation function , and .
6. The elbow identification method based on pipeline centerline coordinate data according to claim 1 is characterized in that: In step 5, the specific steps of identifying the pipe elbow are: Step 5-1, determining whether there is an elbow between adjacent girth welds based on the calculated pipe curvature and the position of the corresponding girth weld; Step 5-2, determine the starting point and end point of the initial elbow of the pipeline according to the total curvature value of the pipeline; set the curvature threshold of the pipeline elbow, when the curvature of the pipeline changes beyond the threshold, mark the previous interpolation point as the starting point of the initial elbow; on this basis, when the curvature changes suddenly again, mark the interpolation point as the end point of the initial elbow; Step 5-3, compare the initial elbow start and end points with the girth weld position information to further determine the start and end point coordinate information and mileage information of the pipeline elbow.
Citation Information
Patent Citations
Safety evaluation method for steep slope and winding road
CN103093088A
Data correction method and system for pipeline IMU detection data and medium
CN112857364A
Pipeline bending deformation fitting algorithm
CN113221354A
Elbow identification method based on IMU (Inertial Measurement Unit) detection
CN114580469A
Data processing method and processor for oil and gas pipeline
CN114992528A
Cited By
Oil and gas pipeline elbow feature recognition method based on attitude data
CN121256441A
Oil and gas pipeline elbow feature recognition method based on posture data
CN121256441B
Pipeline deformation quantitative calculation method based on Newton interpolation fitting
CN122220650A
