A method and device for processing mud logging data
Through incremental clustering and automatic control technology, it solves the problem of relying on manual experience for data analysis in drilling operations, achieves timely and accurate control of drilling equipment, improves the ability to capture mutation points, and ensures the accuracy and accuracy of data processing. Timeliness.
Patent Information
- Application Number
- CN202410841836.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-27
AI Technical Summary
In drilling operations, traditional data analysis relies on the experience and technology of engineers and is easily affected by subjective factors, resulting in inaccurate judgment results and difficulty in timely and effective capture of mutation points in drilling logging data.
The incremental clustering method is used to analyze the drilling parameter data. By calculating the linear trend and mutation degree of the data points, the drilling equipment is automatically controlled to avoid errors in manual subjective judgment, and iterative clustering is performed on the basis of real-time data to capture mutations. point.
It achieves timely and accurate control of drilling equipment, reduces human errors, improves the ability to capture sudden changes in drilling parameters, and ensures the timeliness and accuracy of data processing.
Smart Images

Figure CN118378205B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a method and device for processing logging data. Background Art
[0002] Geological logging is a comprehensive analysis of the information collected and recorded directly and indirectly to determine the location, thickness, fluid properties, etc. of the oil and gas layer, and to provide sufficient basis for cementing, oil testing, and determining the depth of completed drilling. Taking drilling logging as an example, the method of judging the properties of the underground rock formation by the time required to drill through a unit thickness of rock formation is called drilling logging. Usually, the staff analyzes the changes in the underground rock formation by analyzing the parameters during the drilling logging process.
[0003] For example, in the patent "A method and device for extracting the drilling speed based on real-time logging data" with publication number CN115936639A, the aim is to effectively extract the movement speed of the drill rod during the drilling process from the massive logging data, and to manually perform statistical analysis based on the movement speed of the drill rod during the drilling process to determine whether a new rock formation has been entered. In actual operation, it is necessary to ensure the relative stability of drilling parameters. Therefore, the staff will pay special attention to the mutation point of the drilling parameters. When a mutation point appears, it means that the drill bit has entered a new rock formation, and it is necessary to stop drilling and observe in time to obtain the most effective geological information.
[0004] However, traditional data analysis often relies on engineers’ experience and skills, and manual statistics and analysis may lead to subjective errors, thus missing the time to obtain effective logging data during drilling. Therefore, it is necessary to automate the analysis of logging data during drilling so as to stop drilling operations in a timely, effective and accurate manner so that workers can observe and obtain logging information. Summary of the invention
[0005] The purpose of the present invention is to provide a logging data processing method and device for solving the technical problem that during drilling operations, logging data needs to be analyzed manually, which is easily affected by subjective factors and thus leads to inaccurate judgment results.
[0006] In a first aspect, the present invention provides a method for processing mud logging data, which adopts the following technical solution:
[0007] Incremental clustering is performed on the drilling parameter data. In each round of iteration of the incremental clustering, the cluster centers of the clusters corresponding to the data points in the clustering results of each round of iteration constitute a target cluster center set, and a hyperplane is fitted to the target cluster center set; the linearity of the target cluster center set is calculated according to the average distance between the cluster centers in the target cluster center set and the hyperplane, and the average distance is negatively correlated with the linearity;
[0008] According to the degree of outliers of the data points in the cluster and the degree of linearity of the target cluster center set corresponding to the data points, the linear trend of the data points after the current round of iteration is calculated;
[0009] Determine the mutation degree of the data point after the current round of iterations according to the absolute value of the difference between the linear trend of the data point after the current round of iterations and the mean of the linear trend after each round of iterations, and the variance of the linear trend after each round of iterations, wherein the mutation degree is positively correlated with the absolute value of the difference and negatively correlated with the variance;
[0010] Control the operating status of the drilling equipment according to the degree of mutation.
[0011] The effect is that: by calculating the linear trend change of each data point in the process of continuous iterative clustering, the mutation degree of the data point after the current round of iteration is calculated according to the linear trend change of each data point, and the drilling equipment is controlled according to the mutation degree. The present invention avoids the error caused by human subjective judgment by analyzing the drilling parameter data collected in real time and controlling the drilling equipment, and by analyzing the real-time data, the mutation points in the collected drilling parameters can be captured more timely, so that the control of the drilling equipment is more timely and accurate.
[0012] In one embodiment, the linearity satisfies the relationship:
[0013] ;
[0014] In the formula, Indicates The data point in The linearity of the target cluster center formed after the secondary clustering is completed; represents the ordinal number of clustering, where ; Indicates The data point in After the clustering is completed, the target cluster center set is the first The distance between the cluster centers and the vertical segment of the hyperplane; Indicated by natural constant The exponential function of base .
[0015] The effect is that by calculating the The data point in The average Euclidean distance between all cluster centers in the target cluster center set formed after the clustering is completed and the hyperplane is used to quantify the linearity of all cluster centers in the target cluster center set. If the average distance is smaller, it means that all cluster centers in the target cluster center set are closer to the fitted linear model, that is, the linearity is higher, otherwise, the linearity is lower.
[0016] In one embodiment, the method for obtaining the degree of outlier includes:
[0017] For any data point in any cluster after any round of iterations, the outlier degree of the data point is calculated based on the mean and standard deviation of the Euclidean distance between the data point and all data points in the cluster except the data point, where the outlier degree is positively correlated with the mean of the Euclidean distance, and negatively correlated with the standard deviation of the Euclidean distance.
[0018] The effect is that the degree of outlier of any data point is calculated by calculating the average Euclidean distance between the data point and all the data points in the cluster to which it belongs. By comprehensively considering the distance relationship between the data point and all other data points, the noise error caused by calculating only with a single data point can be reduced, thereby making the calculation result of the outlier degree more accurate.
[0019] In one embodiment, the mutation degree satisfies the expression:
[0020] ;
[0021] In the formula, Indicates The data point in The degree of mutation after the round of iteration is completed; represents the number of iterations, where ; Indicates The data point in Linear trend after the round of iterations; Indicates The data point in Linear trend after round iteration Indicates that from The linear trend mean of the data points after each round of iteration; Indicated by natural constant The exponential function of base .
[0022] The effect is that the calculation of the mutation degree combines the linear trend of the data point in the current round and the difference in the linear trend in the previous iteration round, which can more comprehensively consider the change process of the linear trend of the data point after each clustering is completed, so as to more accurately evaluate the mutation degree of the data point and avoid one-sided judgment based solely on the change of the current data point.
[0023] In one embodiment, the linear trend satisfies the expression:
[0024] ;
[0025] In the formula, Indicates The data point in Linear trend after round iterations; represents the number of iterations, where ; Indicates the cluster The data point in The degree of outliers after the round of iterations is completed; Indicated in The linearity of the target cluster centers formed after the round of iterations; Represents the standard normalization function.
[0026] The effect is that by comprehensively considering the linearity of the target cluster center set and the degree of outliers of each data point, the linear trend of the data point can be more comprehensively evaluated. The linearity reflects the linearity of the target cluster center set corresponding to the data point, while the degree of outliers reflects the consistency between the data point and the cluster cluster. By comprehensively considering these two points, the linear trend of the data point can be more accurately judged, making the calculation result more accurate.
[0027] In one embodiment, the method for obtaining the target cluster center set includes the steps of:
[0028] For any data point in the clustering result after any round of iteration, obtain the cluster center of the cluster cluster corresponding to the data point in the clustering result after the round of iteration, and use the cluster center of the cluster cluster corresponding to the clustering result of the data point after each round of iteration as the target cluster center set of the data point.
[0029] In one embodiment, the method of controlling the operating state of the drilling equipment according to the magnitude of the mutation includes the following steps:
[0030] In one embodiment, for any iteration round, if the average mutation degree of all data points in the iteration round is , it means that the drill bit may have entered another geological layer from one geological layer. At this time, the drilling equipment is controlled to stop drilling and the staff is prompted to observe.
[0031] In a second aspect, the present invention provides a logging data processing device, which adopts the following technical solution:
[0032] A logging data processing device comprises: a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, the above-mentioned logging data processing method is implemented.
[0033] By adopting the above technical solution, the above-mentioned logging data processing method is generated into a computer program and stored in a memory so as to be loaded and executed by a processor, thereby making a terminal device based on the memory and the processor for easy use.
[0034] The present invention has the following technical effects:
[0035] The present invention calculates the linear trend of each data point, calculates the mutation degree of each data point after the current round of iteration according to the change of the linear trend of each data point, and controls the drilling equipment according to the mean mutation degree of all data points after the current round of iteration, thereby avoiding the subjective influence of manual judgment.
[0036] Furthermore, by acquiring real-time data, performing continuous iterative clustering based on the real-time acquired data, and analyzing the clustering results, the device can respond to the real-time acquired data more promptly and accurately. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present invention will become readily understood. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-restrictive manner, and the same or corresponding reference numerals represent the same or corresponding parts.
[0038] Figure 1 The present invention is a flowchart of a method for processing logging data in an embodiment of the present invention. DETAILED DESCRIPTION
[0039] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are 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 those skilled in the art without creative work are within the scope of protection of the present invention.
[0040] It should be understood that when the terms "first", "second", etc. are used in the claims, descriptions, and drawings of the present invention, they are only used to distinguish different objects, rather than to describe a specific order. The terms "include" and "comprise" used in the description and claims of the present invention indicate the presence of the described features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or their collections.
[0041] The embodiment of the present invention discloses a method for processing logging data, referring to Figure 1 , comprising steps S1 to S6:
[0042] S1: Obtain the logging parameter data during drilling, perform incremental clustering on the logging parameter data during drilling, and obtain the clustering results after each round of iteration.
[0043] It should be noted that drilling logging parameter data refers to various parameters in drilling operations, such as drill bit speed, drilling pressure, mud flow, etc. These data provide drilling engineers with important information about the wellbore geology and drilling process, which helps guide subsequent adjacent logging drilling operations.
[0044] In one embodiment, data such as drill bit speed, drilling pressure, and mud flow are collected, and the collected drilling logging parameter data are used as cluster samples, and the iterative self-organizing clustering algorithm is used to perform continuous iterative clustering operations. A collection cycle is preset, and the real-time drilling logging parameter data is added to the cluster samples to participate in clustering, so as to achieve incremental clustering of the drilling logging data, thereby obtaining clustering results after each round of iteration.
[0045] It should be noted that the clustering results after each round of iteration include: all clusters after the round of iteration, all data points of each cluster, and the cluster center of each cluster.
[0046] At this point, the clustering results are obtained after each round of iteration.
[0047] S2: The target cluster center set is formed by the cluster centers of the cluster clusters corresponding to the clustering results of the data points after each round of iteration, and the target cluster center set is fitted to obtain a hyperplane.
[0048] It should be noted that, in the same geological stratum, the collected logging data during drilling tends to be stable. Therefore, by performing iterative clustering operations on the collected data and analyzing the clustering results after each round of iteration, it can be determined whether the data continuously collected in real time is still data collected from the same geological stratum. For example: when other conditions remain unchanged, the change in drilling time can reflect the differences in geological strata: loose oil-bearing sandstone has the shortest drilling time; ordinary sandstone has a smaller drilling time; mudstone and limestone have a larger drilling time; basalt and granite have the largest drilling time. Therefore, the present invention obtains a hyperplane by fitting the target cluster center set composed of the cluster centers of the corresponding cluster clusters in the clustering results after each round of iteration, which is convenient for the subsequent analysis of the spatial position changes of each cluster cluster.
[0049] In one embodiment, for any data point in the clustering result after any round of iteration, the cluster center of the cluster corresponding to the data point in the clustering result after the round of iteration is obtained, and the cluster center of the cluster corresponding to the clustering result of the data point after each round of iteration is used as the target cluster center set of the data point. The target cluster center set is fitted using the least squares method to obtain the hyperplane corresponding to the target cluster center set.
[0050] At this point, the hyperplane corresponding to the target cluster center is obtained.
[0051] S3: Calculate the linearity of the target cluster center set according to the average distance between the cluster centers in the target cluster center set and the hyperplane.
[0052] It should be noted that, in the same geological layer, for any data point, in the process of continuous iterative clustering, the cluster center of the cluster where the data point is located will change, because the data collected in the same geological layer are relatively regular, therefore, the cluster center of the cluster where the collected data is located presents an approximately linear change. Therefore, the present invention needs to calculate the linearity of the target cluster center set by the average distance between the cluster center in the target cluster center set and the hyperplane.
[0053] In one embodiment, the linearity of the target cluster center set is calculated as follows:
[0054]
[0055] In the formula, Indicates The data point in The linearity of the target cluster centers formed after the round of iterations; represents the ordinal number of clustering, where ; Indicates The data point in After the round of iterations, the target cluster center set is formed. The distance between the cluster centers and the vertical segment of the hyperplane; Expressed as a natural constant The exponential function of base .
[0056] in, It represents the average distance between the target cluster center set and the hyperplane. The smaller its value is, the closer the target cluster center set is to the hyperplane, that is, the greater the linearity of the target cluster center set corresponding to the data point is. On the contrary, the larger its value is, the farther the cluster center set is from the hyperplane, that is, the smaller the linearity of the target cluster center set corresponding to the data point is.
[0057] At this point, the calculation of the linearity of the target cluster center set corresponding to any data point is completed.
[0058] S4: Calculate the linear trend of any data point after the current round of iterations is completed based on the degree of outlier of any data point and the degree of linearity of the target cluster center set corresponding to the data point.
[0059] It should be noted that for any data point, if the linearity of the target cluster center set corresponding to the data point is higher during the continuous iteration, and the outlier degree of the data point is lower, it means that the linear trend of the data point is greater. Therefore, the present invention calculates the linear trend of the data point after the current round of iteration based on the outlier degree of any data point and the linearity of the target cluster center set corresponding to the data point.
[0060] In one embodiment, the outlier degree of any data point after any clustering is completed is calculated as follows:
[0061]
[0062] In the formula, Indicates The data point in The degree of outliers after the round of iterations is completed; Indicates The total number of data points in the cluster after the round of iteration is completed; Represents the ordinal number of the data point in the cluster; Indicates the cluster data point and the The Euclidean distance between data points; Represents the cluster The mean Euclidean distance between a data point and other data points in the cluster; Represents the standard normalization function.
[0063] in, Indicates The mean Euclidean distance between a data point and other data points in the cluster. The larger the value, the farther the Euclidean distance between the data point and other data points in the cluster, that is, the higher the degree of outlier. Indicates The average level of the Euclidean distance between a data point and other data points in the cluster. The smaller its value is, the more uniform the Euclidean distance between the data point and other data points in the cluster, that is, the higher the credibility of the outlier degree of the data point. Conversely, the larger its value is, the more uneven the Euclidean distance between the data point and other data points in the cluster, that is, the lower the credibility of the outlier degree of the data point.
[0064] The linear trend of the data point after the current round of iteration is calculated as follows:
[0065]
[0066] In the formula, Indicates The data point in Linear trend after the round of iterations; represents the number of iterations, where ; Indicates the cluster The data point in The degree of outliers after the round of iterations is completed; Indicated in The linearity of the target cluster centers formed after the round of iterations; Represents the standard normalization function.
[0067] Among them, The stronger the linearity of the cluster where the data point is located, the The smaller the outlier degree of a data point is, the stronger the linear trend of the data point is. The weaker the linearity of the cluster where the data point is located, the The greater the outlier degree of a data point, the weaker the linear trend of the data point.
[0068] It should be noted that the linear trend only represents the size of the linear trend of any data point after any round of iterations. The above formula is only a preferred method for obtaining the linear trend. The implementers can use other methods to obtain the linear trend. The obtained linear trend can be characterized as the size of the linear trend of any data point after any round of iterations. For example, the linearity of the cluster where the data point is located after the round of iterations is completed can be directly used as the linear trend of the data point.
[0069] At this point, the linear trend of any data point after the current round of iterations is calculated.
[0070] S5: Calculate the mutation degree of any data point after the current round of iterations.
[0071] It should be noted that for any data point, when the cluster to which the data point belongs suddenly changes, it means that the currently collected drilling time data has undergone a significant change. For example, drilling passes through one geological layer and enters another geological layer. This is the entry point for drilling time data, and the staff needs to stop drilling and observe. Therefore, the present invention needs to calculate the mutation degree of any data point in the current round according to the linear trend of the data point after the current round of iterations is completed.
[0072] In one embodiment, the calculation method for calculating the mutation degree of any data point according to the linear trend of the data point after the current round of iterations is as follows:
[0073]
[0074] In the formula, Indicates The data point in The degree of mutation after the round of iteration is completed; represents the number of iterations, where ; Indicates The data point in Linear trend after the round of iterations; Indicates The data point in Linear trend after iterations Indicates that from The linear trend mean of the data points after each iteration; Indicated by natural constant The exponential function of base .
[0075] in, Indicates The data point in The difference between the linear trend after the round of iteration and the mean of the linear trend is greater, indicating that the The data point in The more obvious the linear trend is after the round of iteration, the greater the degree of mutation. Indicates The data point in After each round of iteration, the larger the discrete degree of the linear change trend after each round of iteration, the greater the value, indicating that the data point is in the The more discrete the linear change trend after each clustering when the round of clustering is completed, the greater the degree of mutation at this time.
[0076] At this point, the mutation degree of any data point after any round of iterations is calculated.
[0077] S6: Control the operating status of the drilling equipment according to the degree of mutation.
[0078] In one embodiment, for any iteration round, if the average mutation degree of all data points in the iteration round is , it means that the drill may have entered another geological layer from one geological layer. At this time, the drilling equipment is controlled to stop drilling and the staff is prompted to observe. The mutation threshold is preset, and the present invention does not specifically limit it. The implementer can set it according to the actual situation, for example: .
[0079] Through the above steps, the analysis and processing of logging data are completed.
[0080] The embodiment of the present invention further discloses a logging data processing device, including a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, a logging data processing method according to the present invention is implemented.
[0081] Although this specification has shown and described a number of embodiments of the present invention, it will be apparent to those skilled in the art that such embodiments are provided by way of example only. Those skilled in the art will conceive of many modifications, changes and alternatives without departing from the ideas and spirit of the present invention. It should be understood that in the practice of the present invention, various alternatives to the embodiments of the present invention described herein may be employed.
[0082] The above are all preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Therefore, any equivalent changes made based on the structure, shape, and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for processing mud logging data, characterized in that: Includes steps: Incremental clustering is performed on the drilling parameter data. In each round of iteration of the incremental clustering, the cluster centers of the clusters corresponding to the data points in the clustering results of each round of iteration constitute the target cluster center set, and a hyperplane is fitted to the target cluster center set; Calculate the linearity of the target cluster center set ; represents the number of iterations, where ; Indicates The data point in After the round of iterations, the target cluster center set is formed. The distance between the cluster centers and the vertical segment of the hyperplane; Indicated by natural constant The exponential function with base ; Calculate the degree of outlier of the data point after the current round of iterations , Indicates The total number of data points in the cluster after the round of iteration is completed; Represents the ordinal number of the data point in the cluster; Indicates the cluster data point and the The Euclidean distance between data points; Represents the cluster The mean Euclidean distance between a data point and other data points in the cluster; represents the standard normalization function; Calculate the linear trend of the data points after the current round of iterations ; represents the number of iterations, where ; Indicates the cluster The data point in The degree of outliers after the round of iterations is completed; Indicated in The linearity of the target cluster centers formed after the round of iterations; represents the standard normalization function; Calculate the mutation degree of the data point after the current round of iterations ; represents the number of iterations, where ; Indicates The data point in Linear trend after the round of iterations; Indicates The data point in Linear trend after the round of iterations; Indicates that from The linear trend mean of the data points after each round of iteration; Indicated by natural constant The exponential function with base ; Control the operating status of the drilling equipment according to the degree of mutation.
2. A logging data processing method according to claim 1, characterized in that: The method for obtaining the target cluster center set includes the steps of: For any data point in the clustering result after any round of iteration, obtain the cluster center of the cluster cluster corresponding to the data point in the clustering result after the round of iteration, and use the cluster center of the cluster cluster corresponding to the clustering result of the data point after each round of iteration as the target cluster center set of the data point.
3. A logging data processing method according to claim 1, characterized in that: The method of controlling the operating state of the drilling equipment according to the magnitude of the mutation comprises the following steps: In one embodiment, for any iteration round, if the average mutation degree of all data points in the iteration round is , it means that the drill bit may have entered another geological layer from one geological layer. At this time, the drilling equipment is controlled to stop drilling and the staff is prompted to observe.
4. A logging data processing device, characterized in that: include: A processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, a logging data processing method according to any one of claims 1 to 3 is implemented.
Citation Information
Patent Citations
Method and device for extracting tripping speed based on logging real-time data
CN115936639A
Stratum lithology identification while-drilling method based on machine learning
CN113378998A
Method and system for intelligently updating geosteering while drilling real-time stratigraphic framework
CN114463333A
