Drilling track matching determination method, device, equipment and storage medium

Multiple distance algorithms are used to obtain multiple distances between drilling tracks, calculate the average distance to determine the matching degree, solve the problem of drilling track deviation, improve the accuracy of matching degree, and solve the problem of large influence of single distance algorithm in the existing technology. question.

CN114254687BActive Publication Date: 2024-11-29PETROCHINA CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011025315.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-25
Publication Date
2024-11-29
Estimated Expiration
2040-09-25

AI Technical Summary

Technical Problem

During the drilling process, the deviation between the actual drilling trajectory and the designed drilling track leads to low accuracy in determining the matching degree. The existing methods rely on a single distance algorithm and are susceptible to the influence of a single distance offset, resulting in inaccurate matching degree.

Method used

Use multiple distance algorithms (such as Euclidean distance and Frecher distance) to obtain multiple distances between the target drilling track and the reference drilling track, determine the target distance through the distance array matrix, calculate the average distance to determine the matching degree, and eliminate a single distance deviation. The influence of shift.

Benefits of technology

The accuracy of drilling track matching is improved, multiple distance information is comprehensively considered, and the error of determining distances is eliminated in a single way, which enhances the accuracy of matching is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114254687B_ABST
    Figure CN114254687B_ABST
Patent Text Reader

Abstract

The present application discloses a method and method for determining the matching degree of a drilling track, and belongs to the field of oil extraction technology. Determine multiple first position points and multiple second position points, the first position points are position points in the target drilling track, and the second position points are position points in the reference drilling track; use different distance algorithms to obtain the first distance and the second distance between any first position point and any second position point respectively; determine multiple target distances from the multiple second distances according to the size relationship between the obtained multiple first distances and multiple second distances; determine the matching degree of the target drilling track and the reference drilling track according to the multiple target distances. The amount of information considered when determining the matching degree of the target drilling track and the reference drilling track is increased, the influence of only using a single method to determine the distance is eliminated, and the influence of the inaccurate determination of the matching degree caused by a single distance offset can be eliminated, thereby improving the accuracy of the determined matching degree.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of oil extraction, and in particular to a method, device, equipment and storage medium for determining a drilling trajectory matching degree. Background Art

[0002] Before drilling construction, a drilling trajectory is usually designed according to the geological target, and then drilling is carried out according to the designed drilling trajectory. However, due to the influence of drilling equipment, operators and underground environment, the actual drilling trajectory will deviate during the drilling process, resulting in the actual drilling trajectory not completely coinciding with the designed drilling trajectory. Therefore, a method for determining the degree of deviation between the actual drilling trajectory and the designed drilling trajectory is urgently needed. Here, the actual drilling trajectory is called the target drilling trajectory, and the designed drilling trajectory is called the reference drilling trajectory.

[0003] At present, the target drilling track and the reference drilling track are unified into the same coordinate system, and then the target drilling track is measured to obtain the vertical depth, east-west coordinate and north-south coordinate of the target drilling track, and the first closeness is obtained according to the vertical depth of the target drilling track and the vertical depth of the reference drilling track, and the second closeness is obtained according to the east-west coordinate of the target drilling track and the east-west coordinate of the reference drilling track, and the third closeness is determined according to the north-south coordinate of the target drilling track and the north-south coordinate of the reference drilling track, and the matching degree of the target drilling track and the reference drilling track is determined by the first closeness, the second closeness and the third closeness.

[0004] However, if any of the determined closenesses is offset, it will lead to an error in the determined matching degree, so the above method of determining the matching degree has low accuracy. Summary of the invention

[0005] The embodiment of the present application provides a method and method for determining the matching degree of a drilling trajectory, which can eliminate the influence of the inaccurate matching degree caused by a single distance offset and improve the accuracy of the determined matching degree. The technical solution provided by the embodiment of the present application is as follows:

[0006] On the one hand, an embodiment of the present application provides a method for determining a drilling trajectory matching degree, the method comprising:

[0007] Determine a plurality of first position points and a plurality of second position points, wherein the first position points are position points in a target drilling trajectory, and the second position points are position points in a reference drilling trajectory;

[0008] Using different distance algorithms, respectively obtaining a first distance and a second distance between any first position point and any second position point;

[0009] Determine a plurality of target distances from the plurality of second distances according to the magnitude relationship between the plurality of first distances and the plurality of second distances obtained;

[0010] A matching degree between the target drilling trajectory and the reference drilling trajectory is determined according to the multiple target distances.

[0011] In a possible implementation, determining a plurality of first position points and a plurality of second position points includes:

[0012] Acquire a target drilling trajectory of the target drilling track in a reference coordinate system, sample the target drilling trajectory, and determine the plurality of first position points;

[0013] A preset drilling trajectory of the reference drilling track in the reference coordinate system is obtained, the preset drilling trajectory is sampled, and the plurality of second position points are determined.

[0014] In another possible implementation, the adopting different distance algorithms to respectively obtain the first distance and the second distance between any first position point and any second position point includes:

[0015] Using a Euclidean distance algorithm, obtaining a first distance between any one of the first position points and any one of the second position points;

[0016] The second distance between any one of the first position points and any one of the second position points is obtained by using the Fleche distance algorithm.

[0017] In another possible implementation, determining a plurality of target distances from the plurality of second distances according to the acquired magnitude relationship between the plurality of first distances and the plurality of second distances includes:

[0018] The first distance and the second distance between each first position point and the corresponding second position point are combined into a distance array, and the obtained multiple distance arrays are combined into a distance array matrix according to the arrangement order of the multiple first position points from front to back and the arrangement order of the multiple second position points from front to back;

[0019] According to the positions of the multiple distance arrays in the distance array matrix, starting from the last distance array, the smallest distance array among the current distance array and the distance arrays adjacent to the current distance array is determined as a target array, the second distance included in the target array is determined as a target distance, and the next target distance is determined continuously starting from the target array until the first distance array among the multiple distance arrays is reached, thereby obtaining multiple target distances;

[0020] The first distance in the minimum distance array is not greater than the first distance in the adjacent distance array, and the second distance in the minimum distance array is not greater than the second distance in the adjacent distance array.

[0021] In another possible implementation, determining the matching degree between the target drilling trajectory and the reference drilling trajectory according to the multiple target distances includes:

[0022] Obtaining an average distance of the plurality of target distances;

[0023] The matching degree is determined according to the average distance.

[0024] In another possible implementation, determining the matching degree according to the average distance includes:

[0025] Obtaining a preset target radius of the reference drilling trajectory;

[0026] The matching degree is determined according to the preset target radius and the average distance.

[0027] In another possible implementation, the following formula is used to determine the matching degree according to the preset target radius and the average distance, including:

[0028]

[0029] Wherein, R represents the matching degree, T represents the preset target radius, and D represents the average distance.

[0030] On the other hand, an embodiment of the present application provides a device for determining a drilling trajectory matching degree, the device comprising:

[0031] Determine a plurality of first position points and a plurality of second position points, wherein the first position points are position points in a target drilling trajectory, and the second position points are position points in a reference drilling trajectory;

[0032] Using different distance algorithms, respectively obtaining a first distance and a second distance between any first position point and any second position point;

[0033] Determine a plurality of target distances from the plurality of second distances according to the magnitude relationship between the plurality of first distances and the plurality of second distances obtained;

[0034] A matching degree between the target drilling trajectory and the reference drilling trajectory is determined according to the multiple target distances.

[0035] In a possible implementation, determining a plurality of first position points and a plurality of second position points includes:

[0036] Acquire a target drilling trajectory of the target drilling track in a reference coordinate system, sample the target drilling trajectory, and determine the plurality of first position points;

[0037] A preset drilling trajectory of the reference drilling track in the reference coordinate system is obtained, the preset drilling trajectory is sampled, and the plurality of second position points are determined.

[0038] In another possible implementation, the acquiring the first distance and the second distance between any one of the plurality of first position points and any one of the plurality of second position points by using different distance algorithms includes:

[0039] Using a Euclidean distance algorithm, obtaining a first distance between any one of the first position points and any one of the second position points;

[0040] The second distance between any one of the first position points and any one of the second position points is obtained by using the Fleche distance algorithm.

[0041] In another possible implementation, determining multiple target distances according to the acquired magnitude relationships between the multiple first distances and the multiple second distances includes:

[0042] The first distance and the second distance between each first position point and the corresponding second position point are combined into a distance array, and the obtained multiple distance arrays are combined into a distance array matrix according to the arrangement order of the multiple first position points from front to back and the arrangement order of the multiple second position points from front to back;

[0043] According to the positions of the multiple distance arrays in the distance array matrix, starting from the last distance array, the smallest distance array among the current distance array and the distance arrays adjacent to the current distance array is determined as a target array, the second distance included in the target array is determined as a target distance, and the next target distance is determined continuously starting from the target array until the first distance array among the multiple distance arrays is reached, thereby obtaining multiple target distances;

[0044] The first distance in the minimum distance array is not greater than the first distance in the adjacent distance array, and the second distance in the minimum distance array is not greater than the second distance in the adjacent distance array.

[0045] In another possible implementation, determining the matching degree between the target drilling trajectory and the reference drilling trajectory according to the multiple target distances includes:

[0046] Obtaining an average distance of the plurality of target distances;

[0047] The matching degree is determined according to the average distance.

[0048] In another possible implementation, determining the matching degree according to the average distance includes:

[0049] Obtaining a preset target radius of the reference drilling trajectory;

[0050] The matching degree is determined according to the preset target radius and the average distance.

[0051] In another possible implementation, the following formula is used to determine the matching degree according to the preset target radius and the average distance, including:

[0052]

[0053] Wherein, R represents the matching degree, T represents the preset target radius, and D represents the average distance.

[0054] On the other hand, a terminal is provided, which includes a processor and a memory, wherein the memory stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the operations performed in the method for determining the drilling trajectory matching degree.

[0055] On the other hand, a computer-readable storage medium is provided, in which at least one program code is stored. The at least one program code is loaded and executed by a processor to implement the operations performed in the method for determining the drilling trajectory matching degree.

[0056] On the other hand, a computer program product or a computer program is provided, which includes a computer program code, and the computer program code is stored in a computer-readable storage medium. The processor of the terminal reads the computer program code from the computer-readable storage medium, and the processor executes the computer program code, so that the terminal implements the operations performed in the method for determining the drilling trajectory matching degree as described in the above aspects.

[0057] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:

[0058] The method provided in the embodiment of the present application can adopt different distance algorithms to obtain the first distance and the second distance between any first position point in the target drilling trajectory and any second position point in the reference drilling trajectory, and can combine multiple distance acquisition methods to obtain multiple target distances from multiple second distances. These multiple target distances can all represent the distance between the target drilling trajectory and the reference drilling trajectory, thereby increasing the amount of information considered when determining the matching degree between the target drilling trajectory and the reference drilling trajectory, eliminating the influence of only adopting a single method to determine the distance, and can eliminate the influence of inaccurate matching degree caused by a single distance offset, thereby improving the accuracy of the determined matching degree. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0060] Figure 1 is a flow chart of a method for determining a drilling trajectory matching degree provided in an embodiment of the present application;

[0061] Figure 2 is a flow chart of a method for determining a drilling trajectory matching degree provided in an embodiment of the present application;

[0062] Figure 3 It is a trajectory diagram of a drilling track provided in an embodiment of the present application;

[0063] Figure 4 is a flow chart of a method for determining a drilling trajectory matching degree provided in an embodiment of the present application;

[0064] Figure 5 It is a structural schematic diagram of a device for determining a drilling trajectory matching degree provided in an embodiment of the present application;

[0065] Figure 6 It is a structural schematic diagram of another device for determining the matching degree of a drilling trajectory provided in an embodiment of the present application;

[0066] Figure 7 It is a structural diagram of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION

[0067] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0068] The method provided in the embodiment of the present application is applied in the field of oil drilling. Before drilling, a reference drilling trajectory needs to be designed in advance. When drilling, drilling needs to be performed according to the trajectory of the reference drilling trajectory. However, during the actual drilling process, there is a deviation between the target drilling trajectory obtained by drilling and the reference drilling trajectory. The method provided in the embodiment of the present application can be used to determine the matching degree between the target drilling trajectory and the reference drilling trajectory, and then the matching degree between the target drilling trajectory and the reference drilling trajectory can be judged.

[0069] Figure 1 is a flow chart of determining a drilling trajectory matching degree provided in an embodiment of the present application. Figure 1 , the method is applied in a terminal, and the method includes:

[0070] Step 101: Determine a plurality of first position points and a plurality of second position points.

[0071] The first position point is a position point in the target drilling trajectory, and the second position point is a position point in the reference drilling trajectory.

[0072] Step 102: Use different distance algorithms to respectively obtain a first distance and a second distance between any first position point and any second position point.

[0073] Step 103: Determine a plurality of target distances from the plurality of second distances according to the acquired magnitude relationship between the plurality of first distances and the plurality of second distances.

[0074] Step 104: Determine the matching degree between the target drilling trajectory and the reference drilling trajectory according to the multiple target distances.

[0075] The method provided in the embodiment of the present application can adopt different distance algorithms to obtain the first distance and the second distance between any first position point in the target drilling trajectory and any second position point in the reference drilling trajectory, and can combine multiple distance acquisition methods to obtain multiple target distances from multiple second distances. These multiple target distances can all represent the distance between the target drilling trajectory and the reference drilling trajectory, thereby increasing the amount of information considered when determining the matching degree between the target drilling trajectory and the reference drilling trajectory, eliminating the influence of only adopting a single method to determine the distance, and can eliminate the influence of inaccurate matching degree caused by a single distance offset, thereby improving the accuracy of the determined matching degree.

[0076] In a possible implementation, determining a plurality of first position points and a plurality of second position points includes:

[0077] Acquire a target drilling trajectory of the target drilling track in a reference coordinate system, sample the target drilling trajectory, and determine a plurality of first position points;

[0078] A preset drilling trajectory of the reference drilling track in the reference coordinate system is obtained, the preset drilling trajectory is sampled, and a plurality of second position points are determined.

[0079] In another possible implementation, different distance algorithms are used to respectively obtain the first distance and the second distance between any first position point and any second position point, including:

[0080] Using the Euclidean distance algorithm, obtain a first distance between any first position point and any second position point;

[0081] The Flechet distance algorithm is used to obtain a second distance between any first position point and any second position point.

[0082] In another possible implementation, determining a plurality of target distances from the plurality of second distances according to the acquired magnitude relationship between the plurality of first distances and the plurality of second distances includes:

[0083] The first distance and the second distance between each first position point and the corresponding second position point are combined into a distance array, and the obtained multiple distance arrays are combined into a distance array matrix according to the arrangement order of the multiple first position points from front to back and the arrangement order of the multiple second position points from front to back;

[0084] According to the positions of the multiple distance arrays in the distance array matrix, starting from the last distance array, the smallest distance array among the current distance array and the distance arrays adjacent to the current distance array is determined as the target array, the second distance included in the target array is determined as a target distance, and the next target distance is determined continuously starting from the target array until the first distance array among the multiple distance arrays is reached, thereby obtaining multiple target distances;

[0085] The first distance in the smallest distance array is not greater than the first distance in the adjacent distance array, and the second distance in the smallest distance array is not greater than the second distance in the adjacent distance array.

[0086] In another possible implementation, determining the matching degree between the target drilling trajectory and the reference drilling trajectory according to the multiple target distances includes:

[0087] Get the average distance of multiple target distances;

[0088] The matching degree is determined based on the average distance.

[0089] In another possible implementation, the matching degree is determined according to the average distance, including:

[0090] Obtaining a preset target radius of a reference drilling trajectory;

[0091] The matching degree is determined based on the preset target radius and average distance.

[0092] In another possible implementation, the following formula is used to determine the matching degree according to the preset target radius and the average distance, including:

[0093]

[0094] Wherein, R represents the matching degree, T represents the preset target radius, and D represents the average distance.

[0095] Figure 2 is a flow chart of determining a drilling trajectory matching degree provided in an embodiment of the present application. Figure 2 The method is applied to a terminal, which may be a mobile phone, a tablet computer, a personal computer, etc. The method includes:

[0096] Step 201: Determine a plurality of first position points and a plurality of second position points.

[0097] The first position point is a position point in the target drilling trajectory, and the second position point is a position point in the reference drilling trajectory.

[0098] In an embodiment of the present application, the reference drilling trajectory is designed according to the position of the oil well in the formation, and the target drilling trajectory is constructed according to the reference drilling trajectory. The target drilling trajectory and the reference drilling trajectory can be set in the same coordinate system, and then the first position point is determined from the target drilling trajectory, and the second position point is determined from the reference drilling trajectory.

[0099] For example, Figure 3 As shown in the figure, after the reference coordinate system is constructed, the positions of the reference drilling track and the target drilling track in the reference coordinate system are shown in Figure 3 , the unit of each coordinate axis in this coordinate system is meter.

[0100] In one possible implementation, a target drilling trajectory of the target drilling trajectory in a reference coordinate system is obtained, the target drilling trajectory is sampled, a plurality of first position points are determined, a preset drilling trajectory of the reference drilling trajectory in the reference coordinate system is obtained, the preset drilling trajectory is sampled, and a plurality of second position points are determined.

[0101] The reference coordinate system is a coordinate system established according to the reference drilling track and the target reference track. For example, the coordinate system is established with the wellhead position as the coordinate origin. Alternatively, the coordinate system is established in other ways.

[0102] In addition, the reference coordinate system is a three-dimensional coordinate system. For example, when establishing a coordinate system, the wellhead position is taken as the coordinate origin, the horizontal eastward direction is the positive direction of the x-axis, the horizontal southward direction is the positive direction of the y-axis, and the direction perpendicular to the x-axis and y-axis is the positive direction of the z-axis, forming a three-dimensional coordinate system. Alternatively, the wellhead position is taken as the coordinate origin, the horizontal northward direction is the positive direction of the x-axis, the horizontal eastward direction is the positive direction of the y-axis, and the direction perpendicular to the x-axis and y-axis downward is the positive direction of the z-axis, forming a three-dimensional coordinate system.

[0103] After the coordinate system is established, the target drilling trajectory of the target drilling trajectory in the reference coordinate system can be obtained, and the target drilling trajectory is composed of multiple position points, and the target drilling trajectory is sampled to obtain multiple first position points, and the multiple first position points obtained are discretely distributed. In addition, the reference drilling trajectory of the reference drilling trajectory in the reference coordinate system can be obtained, and the reference drilling trajectory is composed of multiple position points, and the reference drilling trajectory is sampled to obtain multiple second position points, and the multiple second position points obtained are discretely distributed.

[0104] Each of the plurality of first position points obtained has an x-axis coordinate, a y-axis coordinate and a z-axis coordinate, and each of the plurality of second position points obtained has an x-axis coordinate, a y-axis coordinate and a z-axis coordinate.

[0105] In the embodiment of the present application, the number of the plurality of first position points obtained is the same as the number of the plurality of second position points obtained, or the number of the plurality of first position points obtained is different from the number of the plurality of second position points obtained.

[0106] For example, the number of the plurality of first position points obtained is 150, 153, 160 or other values. The number of the plurality of second position points obtained is 150, 153, 160 or other values.

[0107] For another example, if the wellhead is taken as the coordinate origin, the horizontal north direction is the positive direction of the x-axis, the horizontal east direction is the positive direction of the y-axis, and the vertical and downward direction of the x-axis and the y-axis is the positive direction of the z-axis, after forming a three-dimensional coordinate system, the target drilling trajectory in the three-dimensional coordinate system and the reference drilling trajectory in the three-dimensional coordinate system are determined, and 153 first position points are determined from the target drilling trajectory and 153 second position points are determined from the reference drilling trajectory at intervals of 25m well depth. The first position points and the second position points obtained are shown in Table 1:

[0108] Table 1

[0109]

[0110]

[0111]

[0112]

[0113] Step 202: Use different distance algorithms to respectively obtain a first distance and a second distance between any first position point and any second position point.

[0114] In an embodiment of the present application, if the degree of match between the target drilling trajectory and the reference drilling trajectory is to be determined, a different distance algorithm needs to be used to determine the distance between the acquired first position point and the second position point, and the degree of match between the target drilling trajectory and the reference drilling trajectory is determined based on the acquired distance.

[0115] The distance algorithm can determine the distance between any first position point and any second position point.

[0116] In a possible implementation, a Euclidean distance algorithm is used to obtain a first distance between any first position point and any second position point.

[0117] Wherein, using the Euclidean distance algorithm to obtain the first distance between any first position point and any second position point includes:

[0118]

[0119] Among them, d E (P m , Q n ) is the first distance, x pm is the x-axis coordinate of the first position point, y pm is the y-axis coordinate of the first position point, z pm is the z-axis coordinate of the first position point, x qn is the x-axis coordinate of the second position point, y qn is the y-axis coordinate of the second position point, z qn is the z-axis coordinate of the second position point.

[0120] The Flechet distance algorithm is used to obtain a second distance between any first position point and any second position point.

[0121] In one possible implementation, the Fréchet distance is defined as: δ F (f, g) = inf max dist(f(α(s)), g(β(s))), α, β are continuous non-decreasing real functions; s is the arc length parameter of the curve, α(0) = β(0) = 0, α(1) = β(1) = 1, δ F (f, g) is the Fréchet distance between curve f and curve g.

[0122] Wherein, using the Fréchet distance algorithm to obtain the second distance between any first position point and any second position point includes:

[0123]

[0124] Among them, d E (P m , Q n ) is the Euclidean distance, P m is the mth first position point, Q n is the nth second position point, D F (P m , Q n ) is the Fréchet distance.

[0125] Step 203: Determine a plurality of target distances from the plurality of second distances according to the acquired magnitude relationship between the plurality of first distances and the plurality of second distances.

[0126] Through the above steps, multiple first distances and multiple second distances can be obtained, and the size relationships between the multiple first distances and the multiple second distances are different. Therefore, by comparing the size relationships between the multiple first distances and the multiple second distances, multiple target distances can be determined from the acquired multiple second distances.

[0127] In one possible implementation, the first distance and the second distance between each first position point and the corresponding second position point are combined into a distance array, and the obtained multiple distance arrays are combined into a distance array matrix according to the arrangement order of the multiple first position points from front to back and the arrangement order of the multiple second position points from front to back. According to the positions of the multiple distance arrays in the distance array matrix, starting from the last distance array, the smallest distance array in the current distance array and the distance arrays adjacent to the current distance array is determined as a target array, the second distance contained in the target array is determined as a target distance, and the next target distance is determined starting from the target array until the first distance array in the multiple distance arrays is reached, thereby obtaining multiple target distances.

[0128] The first distance in the smallest distance array is not greater than the first distance in the adjacent distance array, and the second distance in the smallest distance array is not greater than the second distance in the adjacent distance array.

[0129] In an embodiment of the present application, when multiple first position points and multiple second position points are obtained through the above steps, they are obtained in a front-to-back order according to the reference drilling trajectory and the target drilling trajectory. Then, the multiple first position points obtained have a sequence of precedence, and the multiple second position points obtained also have a sequence of precedence. Therefore, after each first position point and the corresponding second position point are formed into a distance array, the multiple distance arrays obtained can be formed into a distance array matrix according to the arrangement order of the multiple first position points from front to back and the arrangement order of the multiple second position points from front to back.

[0130] In one possible implementation, the first distance is the Euclidean distance and the second distance is the Fréchet distance. When the Fréchet distance is calculated using the above-mentioned formula for calculating the Fréchet distance, the first distance and the second distance between each first position point and the corresponding second position point obtained in the calculation process can be determined.

[0131] For example, when the distance array is constructed in a manner that the first distance is in front and the second distance is in the back, the distance array matrix obtained can be represented by Table 2:

[0132] Table 2

[0133]

[0134] After obtaining the distance array matrix in the above manner, it is possible to start from the last distance array of the distance array matrix according to the obtained distance array matrix, compare the first distance in the current distance array with the first distance in the distance array adjacent to the current distance array, and compare the second distance in the current distance array with the second distance in the distance array adjacent to the current distance array. If the first distance in any distance array is not greater than the first distance in the adjacent distance array, and the second distance in any distance array is not greater than the second distance in the adjacent distance array, then determine that any distance array is the smallest distance array, determine the second distance in the smallest distance array as the target distance, and then continue to start from the smallest distance array and determine the next target distance in the above manner until reaching the first distance array in the multiple distance arrays, and obtain multiple target distances.

[0135] For example, using C i,j =(A i,j , B i,j ) represents the distance array, A i,j is the Euclidean distance between the i-th first position point and the j-th second position point, B i,j is the Fréchet distance between the i-th first position point and the j-th second position point, then the method of determining the target distance at each step is: comparing the distance array C i,j , C i-1,j , Ci,j-1 , C i-1,j-1 To obtain the minimum distance array, the second distance in the minimum distance array is determined as the target distance.

[0136] In the embodiment of the present application, multiple target distances are acquired through the above steps, and each target distance is the shortest distance between a position point on the target drilling trajectory and a position point on the reference drilling trajectory.

[0137] Step 204: Obtain an average distance of multiple target distances.

[0138] After obtaining multiple target distances, the average distance of the multiple target distances can be obtained, and then the matching degree between the reference drilling trajectory and the target drilling trajectory is determined according to the average distance.

[0139] When obtaining the average distance, the total distance of multiple average distances is obtained, and then the total number of the multiple average distances is obtained, and the ratio of the total distance to the total number is obtained to determine the average distance of the multiple target distances.

[0140] Step 205: Determine the matching degree between the target drilling trajectory and the reference drilling trajectory according to the average distance.

[0141] Through the above steps, multiple target distances can be obtained, and then the matching degree between the target drilling trajectory and the reference drilling trajectory can be determined according to the obtained multiple target distances.

[0142] Among them, the process of obtaining the matching degree in the above manner includes: after obtaining the average distance of multiple target distances, the average distance obtained can be used to represent the distance difference between the target drilling trajectory and the reference drilling trajectory, and the matching degree of the target drilling trajectory and the reference drilling trajectory can be determined according to the average distance.

[0143] In a possible implementation, a preset target radius of the reference drilling trajectory is obtained, and a matching degree between the target drilling trajectory and the reference drilling trajectory is determined according to the preset target radius and the average distance.

[0144] The obtained preset target radius is the target radius set when designing the reference drilling trajectory.

[0145] In an embodiment of the present application, the degree of deviation between the target drilling trajectory and the reference drilling trajectory can be determined based on the preset target radius and the obtained average distance, and then the degree of matching between the target drilling trajectory and the reference drilling trajectory can be determined based on the determined degree of deviation.

[0146] The following formula is used to determine the matching degree according to the preset target radius and the average distance, including:

[0147]

[0148] Wherein, R represents the matching degree, T represents the preset target radius, and D represents the average distance.

[0149] In summary, when determining the matching degree between the target drilling trajectory and the reference drilling trajectory, the following Figure 4 The method shown determines that a spatial coordinate system is established according to the positions of the target drilling trajectory and the reference drilling trajectory, a plurality of first position points are obtained from the target drilling trajectory of the target drilling trajectory, and a plurality of second position points are obtained from the reference drilling trajectory of the reference drilling trajectory, a plurality of Fréchet distances are obtained from the plurality of second position points, and then an average distance of the plurality of Fréchet distances is obtained, and a matching degree between the target drilling trajectory and the reference drilling trajectory is determined according to the average distance.

[0150] The method provided in the embodiment of the present application can adopt different distance algorithms to obtain the first distance and the second distance between any first position point in the target drilling trajectory and any second position point in the reference drilling trajectory, and can combine multiple distance acquisition methods to obtain multiple target distances from multiple second distances. These multiple target distances can all represent the distance between the target drilling trajectory and the reference drilling trajectory, thereby increasing the amount of information considered when determining the matching degree between the target drilling trajectory and the reference drilling trajectory, eliminating the influence of only adopting a single method to determine the distance, and can eliminate the influence of inaccurate matching degree caused by a single distance offset, thereby improving the accuracy of the determined matching degree.

[0151] Moreover, in the process of obtaining multiple target distances from multiple second distances, the minimum distance array can be determined from multiple distance arrays, and the second distance in the minimum distance array is determined as the target distance, which means that the determined target distances are all the minimum distances between the first position point and the second position point, thereby improving the accuracy of determining the target distance, and further improving the accuracy of the determined matching degree.

[0152] Furthermore, the average distance of multiple target distances can be obtained, which not only comprehensively considers the influence of multiple target distances, but also eliminates the error of the determined matching degree caused by the offset of a single target distance, thereby improving the accuracy of the determined matching degree.

[0153] Figure 5 is a schematic diagram of a device for determining a drilling trajectory matching degree provided in an embodiment of the present application. Figure 5 , the device comprises:

[0154] A position point determination module 501 is used to determine a plurality of first position points and a plurality of second position points, wherein the first position points are position points in a target drilling trajectory and the second position points are position points in a reference drilling trajectory;

[0155] A distance acquisition module 502 is used to respectively acquire a first distance and a second distance between any first position point and any second position point by using different distance algorithms;

[0156] A distance determination module 503 is used to determine a plurality of target distances from a plurality of second distances according to the magnitude relationship between the plurality of first distances and the plurality of second distances obtained;

[0157] The matching degree determination module 504 is used to determine the matching degree between the target drilling trajectory and the reference drilling trajectory according to multiple target distances.

[0158] The device provided in the embodiment of the present application can adopt different distance algorithms to obtain the first distance and the second distance between any first position point in the target drilling trajectory and any second position point in the reference drilling trajectory, and can combine multiple distance acquisition methods to obtain multiple target distances from multiple second distances. These multiple target distances can all represent the distance between the target drilling trajectory and the reference drilling trajectory, thereby increasing the amount of information considered when determining the matching degree between the target drilling trajectory and the reference drilling trajectory, eliminating the influence of only adopting a single method to determine the distance, and can eliminate the influence of inaccurate matching degree caused by a single distance offset, thereby improving the accuracy of the determined matching degree.

[0159] In a possible implementation, the location point determination module 501 is used to:

[0160] Acquire a target drilling trajectory of the target drilling track in a reference coordinate system, sample the target drilling trajectory, and determine a plurality of first position points;

[0161] A preset drilling trajectory of the reference drilling track in the reference coordinate system is obtained, the preset drilling trajectory is sampled, and a plurality of second position points are determined.

[0162] In another possible implementation, the distance acquisition module 502 is used to:

[0163] Using the Euclidean distance algorithm, obtain a first distance between any first position point and any second position point;

[0164] The Flechet distance algorithm is used to obtain a second distance between any first position point and any second position point.

[0165] In another possible implementation, the distance determination module 503 is configured to:

[0166] The first distance and the second distance between each first position point and the corresponding second position point are formed into a distance array, and the obtained multiple distance arrays are formed into a distance array matrix according to the arrangement order of the multiple first position points from front to back and the arrangement order of the multiple second position points from front to back;

[0167] According to the positions of the multiple distance arrays in the distance array matrix, starting from the last distance array, the smallest distance array among the current distance array and the distance arrays adjacent to the current distance array is determined as the target array, the second distance included in the target array is determined as a target distance, and the next target distance is determined continuously starting from the target array until the first distance array among the multiple distance arrays is reached, thereby obtaining multiple target distances;

[0168] The first distance in the smallest distance array is not greater than the first distance in the adjacent distance array, and the second distance in the smallest distance array is not greater than the second distance in the adjacent distance array.

[0169] In another possible implementation, see Figure 6 , the matching degree determination module 504 includes:

[0170] A distance acquisition unit 5041 is used to acquire an average distance of multiple target distances;

[0171] The matching degree determining unit 5042 is used to determine the matching degree according to the average distance.

[0172] In another possible implementation, the matching degree determination unit 5042 is configured to:

[0173] Obtaining a preset target radius of a reference drilling trajectory;

[0174] The matching degree is determined based on the preset target radius and average distance.

[0175] In another possible implementation, the matching degree determining unit 5042 uses the following formula to determine the matching degree:

[0176]

[0177] Wherein, R represents the matching degree, T represents the preset target radius, and D represents the average distance.

[0178] It should be noted that: the device for determining the matching degree of the drilling track provided in the above embodiment only uses the division of the above functional modules as an example when determining the matching degree. In actual applications, the above functions are assigned to different functional modules as needed, that is, the internal structure of the terminal is divided into different functional modules to complete all or part of the functions described above. In addition, the device for determining the matching degree of the drilling track provided in the above embodiment and the method for determining the matching degree of the drilling track belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0179] Figure 7700 is a schematic diagram of a terminal structure provided by an embodiment of the present application. The terminal 700 may be a portable mobile terminal, such as a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV), a laptop computer or a desktop computer. The terminal 700 may also be referred to as a user device, a portable terminal, a laptop terminal, a desktop terminal or other names.

[0180] Typically, the terminal 700 includes a processor 701 and a memory 702 .

[0181] The processor 701 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 701 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 701 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 701 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 701 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0182] The memory 702 may include one or more computer-readable storage media, which may be non-transitory. The memory 702 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 702 is used to store at least one program code, which is used to be executed by the processor 701 to implement the drilling trajectory matching method provided in the method embodiment of the present application.

[0183] In some embodiments, the terminal 700 may further optionally include: a peripheral device interface 703 and at least one peripheral device. The processor 701, the memory 702 and the peripheral device interface 703 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 703 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 704, a display screen 705, a camera assembly 706, an audio circuit 707, a positioning assembly 708 and a power supply 709.

[0184] The peripheral device interface 703 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 701 and the memory 702. In some embodiments, the processor 701, the memory 702, and the peripheral device interface 703 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 701, the memory 702, and the peripheral device interface 703 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.

[0185] The radio frequency circuit 704 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 704 communicates with communication networks and other communication devices through electromagnetic signals. The radio frequency circuit 704 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 704 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The radio frequency circuit 704 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 7G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 704 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.

[0186] The display screen 705 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 705 is a touch display screen, the display screen 705 also has the ability to collect touch signals on the surface or above the surface of the display screen 705. The touch signal can be input to the processor 701 as a control signal for processing. At this time, the display screen 705 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 705 can be one, arranged on the front panel of the terminal 700; in other embodiments, the display screen 705 can be at least two, respectively arranged on different surfaces of the terminal 700 or in a folding design; in other embodiments, the display screen 705 can be a flexible display screen, arranged on a curved surface or a folding surface of the terminal 700. Even, the display screen 705 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 705 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode, organic light-emitting diode).

[0187] The camera assembly 706 is used to capture images or videos. Optionally, the camera assembly 706 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 706 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.

[0188] The audio circuit 707 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 701 for processing, or input them into the radio frequency circuit 704 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 700. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 701 or the radio frequency circuit 704 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 707 may also include a headphone jack.

[0189] Positioning component 708 is used to locate the current geographical location of terminal 700 to implement navigation or LBS (Location Based Service). Positioning component 708 can be a positioning component based on the US GPS (Global Positioning System), China's Beidou system or Russia's Galileo system.

[0190] The power supply 709 is used to power various components in the terminal 700. The power supply 709 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 709 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery charged through a wired line, and a wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.

[0191] In some embodiments, the terminal 700 further includes one or more sensors 710 , including but not limited to: an acceleration sensor 711 , a gyroscope sensor 712 , a pressure sensor 713 , a fingerprint sensor 714 , an optical sensor 715 , and a proximity sensor 716 .

[0192] The acceleration sensor 711 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 700. For example, the acceleration sensor 711 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 701 can control the display screen 705 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 711. The acceleration sensor 711 can also be used to collect motion data of games or users.

[0193] The gyro sensor 712 can detect the body direction and rotation angle of the terminal 700, and the gyro sensor 712 can cooperate with the acceleration sensor 711 to collect the user's 3D actions on the terminal 700. The processor 701 can implement the following functions based on the data collected by the gyro sensor 712: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.

[0194] The pressure sensor 713 can be set on the side frame of the terminal 700 and / or the lower layer of the display screen 705. When the pressure sensor 713 is set on the side frame of the terminal 700, it can detect the user's holding signal of the terminal 700, and the processor 701 performs left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 713. When the pressure sensor 713 is set on the lower layer of the display screen 705, the processor 701 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 705. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.

[0195] The fingerprint sensor 714 is used to collect the user's fingerprint, and the processor 701 identifies the user's identity based on the fingerprint collected by the fingerprint sensor 714, or the fingerprint sensor 714 identifies the user's identity based on the collected fingerprint. When the user's identity is identified as a trusted identity, the processor 701 authorizes the user to perform relevant sensitive operations, including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings. The fingerprint sensor 714 can be set on the front, back, or side of the terminal 700. When a physical button or a manufacturer logo is set on the terminal 700, the fingerprint sensor 714 can be integrated with the physical button or the manufacturer logo.

[0196] The optical sensor 715 is used to collect the ambient light intensity. In one embodiment, the processor 701 can control the display brightness of the display screen 705 according to the ambient light intensity collected by the optical sensor 715. Specifically, when the ambient light intensity is high, the display brightness of the display screen 705 is increased; when the ambient light intensity is low, the display brightness of the display screen 705 is reduced. In another embodiment, the processor 701 can also dynamically adjust the shooting parameters of the camera assembly 706 according to the ambient light intensity collected by the optical sensor 715.

[0197] The proximity sensor 716, also called a distance sensor, is usually arranged on the front panel of the terminal 700. The proximity sensor 716 is used to collect the distance between the user and the front of the terminal 700. In one embodiment, when the proximity sensor 716 detects that the distance between the user and the front of the terminal 700 is gradually decreasing, the processor 701 controls the display screen 705 to switch from the screen-on state to the screen-off state; when the proximity sensor 716 detects that the distance between the user and the front of the terminal 700 is gradually increasing, the processor 701 controls the display screen 705 to switch from the screen-off state to the screen-on state.

[0198] Those skilled in the art will understand that Figure 7 The structure shown in the figure does not constitute a limitation on the terminal 700, and the terminal 700 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.

[0199] An embodiment of the present application further provides a computer-readable storage medium, in which at least one program code is stored. The at least one program code is loaded and executed by a processor to implement the operations performed in the method for determining the drilling trajectory matching degree of the above embodiment.

[0200] An embodiment of the present application also provides a computer program product or a computer program, which includes a computer program code, and the computer program code is stored in a computer-readable storage medium. The processor of the terminal reads the computer program code from the computer-readable storage medium, and the processor executes the computer program code, so that the terminal implements the operations performed in the method for determining the drilling trajectory matching degree as described in the above aspects.

[0201] The above description is only for the purpose of facilitating those skilled in the art to understand the technical solution of the present application and is not intended to limit the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A method for determining the matching degree of drilling trajectory, It is characterized in that The method comprises: Determine a plurality of first position points and a plurality of second position points, wherein the first position points are position points in a target drilling trajectory, and the second position points are position points in a reference drilling trajectory; Using different distance algorithms, respectively obtaining a first distance and a second distance between any first position point and any second position point; Determine a plurality of target distances from the plurality of second distances according to the magnitude relationship between the plurality of first distances and the plurality of second distances obtained; Determining a degree of matching between the target drilling trajectory and the reference drilling trajectory according to the multiple target distances; Wherein, the method of determining multiple target distances from the multiple second distances according to the size relationship between the acquired multiple first distances and the multiple second distances includes: forming a distance array with the first distance and the second distance between each first position point and the corresponding second position point, and forming a distance array matrix with the acquired multiple distance arrays according to the arrangement order of the multiple first position points from front to back and the arrangement order of the multiple second position points from front to back; according to the positions of the multiple distance arrays in the distance array matrix, starting from the last distance array, determining the smallest distance array in the current distance array and the distance array adjacent to the current distance array as the target array, determining the second distance included in the target array as a target distance, and continuing to determine the next target distance from the target array until reaching the first distance array in the multiple distance arrays, thereby obtaining multiple target distances; wherein, the first distance in the smallest distance array is not greater than the first distance in the adjacent distance array, and the second distance in the smallest distance array is not greater than the second distance in the adjacent distance array; Determining the matching degree between the target drilling trajectory and the reference drilling trajectory according to the multiple target distances includes: obtaining an average distance of the multiple target distances; obtaining a preset target radius of the reference drilling trajectory; and determining the matching degree according to the preset target radius and the average distance. The matching degree is determined according to the preset target radius and the average distance using the following formula: Wherein, R represents the matching degree, T represents the preset target radius, and D represents the average distance.

2. The method for determining the matching degree of drilling trajectory according to claim 1, It is characterized in that The determining of the plurality of first position points and the plurality of second position points comprises: Acquire a target drilling trajectory of the target drilling track in a reference coordinate system, sample the target drilling trajectory, and determine the plurality of first position points; A preset drilling trajectory of the reference drilling track in the reference coordinate system is obtained, the preset drilling trajectory is sampled, and the plurality of second position points are determined.

3. The method for determining the matching degree of drilling trajectory according to claim 1, It is characterized in that The method of using different distance algorithms to respectively obtain the first distance and the second distance between any first position point and any second position point includes: Using a Euclidean distance algorithm, obtaining a first distance between any one of the first position points and any one of the second position points; The second distance between any one of the first position points and any one of the second position points is obtained by using the Fleche distance algorithm.

4. A device for determining the matching degree of a drilling trajectory, It is characterized in that The device comprises: A position point determination module, used to determine a plurality of first position points and a plurality of second position points, wherein the first position points are position points in a target drilling trajectory, and the second position points are position points in a reference drilling trajectory; A distance acquisition module, used to respectively acquire a first distance and a second distance between any first position point and any second position point by using different distance algorithms; A distance determination module, configured to determine a plurality of target distances from the plurality of second distances according to the magnitude relationship between the plurality of first distances and the plurality of second distances obtained; A matching degree determination module, configured to determine a matching degree between the target drilling trajectory and the reference drilling trajectory according to the multiple target distances; Wherein, the distance determination module is specifically used to form a distance array with the first distance and the second distance between each first position point and the corresponding second position point, and form a distance array matrix with the obtained multiple distance arrays according to the arrangement order of the multiple first position points from front to back and the arrangement order of the multiple second position points from front to back; according to the positions of the multiple distance arrays in the distance array matrix, starting from the last distance array, the smallest distance array in the current distance array and the distance array adjacent to the current distance array is determined as the target array, the second distance contained in the target array is determined as a target distance, and the next target distance is determined starting from the target array until the first distance array in the multiple distance arrays is reached, so as to obtain multiple target distances; wherein, the first distance in the smallest distance array is not greater than the first distance in the adjacent distance array, and the second distance in the smallest distance array is not greater than the second distance in the adjacent distance array; The matching degree determination module is specifically used to obtain the average distance of the multiple target distances; obtain the preset target radius of the reference drilling trajectory; and determine the matching degree according to the preset target radius and the average distance. The matching degree is determined according to the preset target radius and the average distance using the following formula, including: Wherein, R represents the matching degree, T represents the preset target radius, and D represents the average distance.

5. A terminal, It is characterized in that The terminal includes a processor and a memory, wherein the memory stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the operations performed in the method for determining the drilling trajectory matching degree according to any one of claims 1 to 3.

6. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the operations performed in the method for determining the drilling trajectory matching degree according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Deep horizontal well drilling track regulating method

    CN104975808A

  • Drilling data processing method, device and system

    CN109493397A