A geosteering-oriented whole-process intelligent interpretation and lag correction method for logging while drilling
By constructing homogeneous element representation and self-attention network, combined with gradient consistency constraints and time-frequency filtering, the heterogeneity and time-varying nature of logging-while-drilling data are solved, enabling high-precision geological-guided drilling interpretation of deep and complex reservoirs and supporting intelligent geological-guided drilling in deep and complex reservoirs.
Patent Information
- Application Number
- CN202611186128.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-06
- Publication Date
- 2026-11-27
AI Technical Summary
Existing logging-while-drilling interpretation technologies suffer from poor heterogeneity of multi-well logging data, time-varying drift in response, and dynamic noise interference when dealing with deep, complex, and heterogeneous reservoirs. This results in low interpretation accuracy and poor stability, making it difficult to meet the real-time and precision requirements of geological-guided drilling.
A heterogeneous logging pilot model driven by homogeneous element representation is adopted, and a highly compatible model is constructed across wells and work areas by combining self-attention network and gradient consistency constraint. Dynamic adaptive optimization and pseudo-label screening are achieved through time-frequency joint filtering and lithology state transition prediction network, enabling real-time lithology identification and hysteresis correction.
It improves the model's generalization and adaptation capabilities across wells and work areas, ensures the stability and accuracy of interpretation accuracy while drilling, enables in-situ real-time lithology identification in high-noise environments, and supports intelligent geological steering drilling in deep and complex reservoirs.
Smart Images

Figure CN123179117A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of logging-while-drilling interpretation and geological steering technology in oil and gas exploration and development, and in particular to a method for intelligent interpretation and hysteresis correction of the entire logging-while-drilling process oriented towards geological steering. Background Technology
[0002] Logging While Drilling (LWD) technology can acquire geophysical information about the downhole formation in real time during drilling, providing crucial data support for dynamic wellbore trajectory control and precise reservoir drilling. As oil and gas exploration and development gradually shifts towards deep, ultra-deep, and unconventional complex heterogeneous reservoirs, geological-guided drilling places higher demands on the real-time performance, accuracy, and stability of LWD interpretation. However, existing LWD interpretation technologies face numerous technical bottlenecks in practical applications, making it difficult to meet these operational requirements.
[0003] Traditional logging-while-drilling interpretation methods mainly rely on cross-plots, empirical fitting, mathematical statistics, and manual interpretation. They are highly dependent on expert experience and are only applicable to shallow, homogeneous, and simple conventional reservoirs. These methods have the following inherent defects: (1) Modeling is mainly based on linear or weakly linear fitting, which makes it difficult to depict the strong nonlinear correlation between logging response and lithology and physical properties in complex reservoirs. The interpretation accuracy is low, and reservoir omissions and misjudgments occur frequently. (2) The degree of human intervention is high, the process is cumbersome, and the timeliness is poor. It cannot meet the needs of real-time drilling decision-making in geological guidance. Moreover, the interpretation results are highly subjective and have poor stability. (3) The model is highly targeted. It is affected by factors such as logging instrument type, construction technology, and geological differences in the work area. It is difficult to be compatible with heterogeneous data across wells and work areas, and the generalization and adaptation capabilities are seriously insufficient.
[0004] In recent years, artificial intelligence technologies such as machine learning and deep learning have been gradually introduced into the field of logging-while-drilling interpretation. Intelligent algorithms can automatically uncover the implicit correlations between logging data and formation properties, effectively compensating for the shortcomings of traditional manual interpretation, such as weak nonlinear fitting capabilities and low efficiency. They have been widely applied in scenarios such as lithology identification and reservoir evaluation. However, facing the dynamic, complex, and noisy logging-while-drilling conditions in oilfields, existing intelligent interpretation systems still face the following core technical bottlenecks: First, the mixed heterogeneity of multi-well logging data and labels is significant, resulting in low information utilization of existing methods and making it difficult to construct highly compatible and accurate lead interpretation models. Field multi-well data commonly exhibits dual heterogeneity issues: inconsistent logging channel types (e.g., different wells collect different types and numbers of curves) and inconsistent lithological labeling systems. Existing methods often model by selecting subsets of data with uniform dimensions, discarding a large amount of differentiated, detailed local geological information, leading to insufficient model feature representation capabilities and weak generalization across wells and work areas. Furthermore, existing purely data-driven models do not fully incorporate geological prior constraints such as stratigraphic sequence and sedimentary facies zones, easily resulting in anomalous interpretations that violate stratigraphic distribution patterns, thus compromising model reliability.
[0005] Second, logging-while-drilling (LWD) curves exhibit real-time, time-varying response characteristics. Existing static models cannot adapt to data distribution drift, and their interpretation accuracy continuously declines during drilling. During LWD, interference from operating conditions such as wellbore enlargement, drilling fluid intrusion, temperature and pressure changes, and drill string vibration cause real-time shifts in logging response characteristics, resulting in typical time-varying data distribution drift. Existing intelligent models mostly employ a static inference mode of "offline training and online solidification," which cannot adaptively update feature patterns. As drilling depth increases, the historical features learned by the model gradually become invalid, leading to a continuous decline in interpretation accuracy and making it difficult to maintain long-term stable real-time interpretation results. Existing domain adaptation methods can only address static inter-well bias issues and cannot adapt to dynamic, time-varying scenarios within a single well.
[0006] Third, drilling data is characterized by dynamic updates and strong noise. Existing correction methods have weak anti-interference capabilities, and the accuracy of zero-length hysteresis error correction is limited. Due to the zero-length structure of the logging-while-drilling instrument (i.e., there is a fixed distance between the measuring sensor and the drill bit), the interpretation results of logging-while-drilling naturally have a spatiotemporal lag. Existing hysteresis correction methods mostly use simple linear time shifts or empirical formulas, failing to fully utilize the dynamic information of drilling engineering parameters for refined correction. At the same time, drilling data (drilling time, drilling pressure, torque, etc.) is characterized by strong noise and many interfering factors. Existing methods are unable to effectively distinguish between effective geological features and operational noise, and are prone to fitting invalid interference features. In addition, static modeling architecture cannot adapt to the incremental update characteristics of drilling data, and errors continue to accumulate and amplify, resulting in limited hysteresis correction accuracy and difficulty in truly restoring the real-time formation information at the drill bit's in-situ.
[0007] In summary, existing technical solutions are highly fragmented and lack a complete closed-loop system covering offline modeling, online optimization, and post-hoc correction. They cannot simultaneously address the three core challenges of heterogeneous data-compatible modeling, time-varying data adaptive optimization, and high-precision lag correction for dynamic, noisy data. In the offline stage, the utilization rate of heterogeneous information is low, geological constraints are lacking, and model generalization is poor. In the online stage, static models cannot adapt to data drift, resulting in insufficient interpretative stability. In the correction stage, anti-interference and dynamic update capabilities are lacking, and lag errors are difficult to eliminate accurately. The overall technical system is insufficient to meet the needs of precise geological-guided operations in deep, complex, and heterogeneous reservoirs. Summary of the Invention
[0008] This invention aims to provide a geological-guided intelligent interpretation and hysteresis correction method for the entire logging-while-drilling process, in order to solve the technical problems of poor compatibility of mixed heterogeneous logging data from multiple wells, model accuracy degradation caused by time-varying drift in logging-while-drilling response, and limited accuracy of hysteresis correction for dynamic noisy drilling data in the prior art.
[0009] To achieve the above objectives, the present invention adopts the following technical solution: A geological-guided intelligent interpretation and hysteresis correction method for the entire logging-while-drilling process includes the following steps: S1. Construct a heterogeneous logging leader model driven by homogeneous element representation, including: S11. Obtain historical logging data and lithological annotation data of multiple adjacent wells in the target work area, construct a cross-well heterogeneous training dataset, and perform preprocessing such as denoising, depth alignment, outlier removal, and amplitude normalization on the original logging curves. S12. To address the heterogeneous features of inconsistent logging channel dimensions and lithology label dimensions among different wells, a homogeneous element embedding representation with channel independence and consistent dimensions is generated based on example association learning. S13. Embed the homogeneous element into the self-attention network, model the dependency relationship between different lithology categories through the self-attention mechanism, and output the initial lithology prediction result. S14. Using the enhanced features output by the self-attention network as input, construct a multi-constraint joint loss function that integrates classification loss, layer control constraint loss and phase control constraint loss, iteratively optimize the network parameters, and output the initial logging-while-drilling interpretation pilot model after iterative convergence. S2. Performing online adaptive optimization of the leading model during drilling based on gradient consistency constraints, including: S21. During the drilling operation, the time-series logging data stream is collected in real time. Based on the conditional maximum mean difference criterion, the continuous logging curve is dynamically and adaptively segmented into multiple time-series data segments with stable distribution within the segment and significant distribution differences between the segments. S22. Using the parameters of the aforementioned pilot model as initial parameters, calculate the gradient of the model parameters for each of the multiple time-series data segments obtained from the division, construct a gradient consistency constraint loss with the objective of maximizing the consistency of gradient directions between adjacent time-series segments, superimpose the single-segment classification loss and parameter regularization term to form an online global optimization objective function, iteratively update the model parameters, and output the real-time optimized drilling lithology interpretation results. S3. Based on trusted pseudo-labels, perform a posteriori correction on the real-time optimized drilling lithology interpretation results, including: S31. Real-time drilling data from the drill bit end is collected synchronously, and noise reduction preprocessing is performed using a time-frequency joint filtering algorithm. Using the noise-reduced drilling dynamic characteristics as input and the real-time optimized drilling lithology interpretation results as prior constraints, preliminary lithology pseudo-labels are generated through a lithology state transition prediction network. S32. Establish a triple collaborative discrimination criterion of feature consistency, temporal continuity, and geological rationality, calculate the comprehensive credibility score of each pseudo-label, and select pseudo-labels with a comprehensive credibility score greater than a preset threshold as high-credibility pseudo-labels. S33. Construct an incremental update loss function using the highly reliable pseudo-labels as incremental supervision information, and iteratively update the parameters of the lithology state transition prediction network; combine the zero-distance drilling of the drilling instrument, the real-time drilling speed and the benchmark drilling speed to perform spatiotemporal lag correction, and output the in-situ real-time lithology identification results of the drill bit.
[0010] Further, in step S12, the generation of channel-independent, dimension-uniform homogeneous element embedding representations based on example association learning specifically includes: The target work area includes Kou Lin Well, No. Wells contain Well logging curves Lithological tags, corresponding sample sets are represented as follows: ; in, For the first A sample set of wells; Input well logging characteristics; Lithological tags; For the first The total number of samples from different wells, satisfying the following conditions. , , and All are index numbers of the wells, with values ranging from 1 to 2. ; The sample set was divided into categories based on lithology. Subset of each category: ; in, For the first A subset of lithological samples; For the first Well logging characteristics of each sample; For the first Lithological labels for each sample; This represents the total number of lithological categories. For any logging example Calculate the Euclidean similarity between this sample and all samples of the same category. The similarity measurement formula is: ; in, For well logging examples and The similarity between them; , For any two logging samples within the same lithology category; The square of the L2 norm; This is the Gaussian kernel bandwidth hyperparameter, used to control the sample similarity decay rate, and its value range is positive. Select the first with the highest similarity Construct a fixed-dimensional homogeneous embedding representation from each sample: ; in, For the first The sample at the th Homogeneous element representation under lithological conditions; These are fixed hyperparameters used to unify the embedding dimension.
[0011] Further, in step S13, embedding the homogeneous element into the self-attention network to model the dependency relationship between different lithological categories through the self-attention mechanism specifically includes: Homogeneous element characteristics corresponding to all lithological categories Perform dimensional concatenation to construct a globally homogeneous feature matrix: ; in, It is a single-sample global homogeneous element feature matrix that integrates the associated feature information of all lithological dimensions; This serves as a sample index, used to traverse all logging samples within a single well. ; This represents the total number of lithological categories. For homogeneous elements, the embedding dimension is fixed; The global homogeneous element feature matrix As input to the self-attention module, a query matrix Q, a key matrix K, and a value matrix V are generated through linear mapping. The attention weights are calculated using the following formula: ; in, This is the attention weight matrix; , , These are the global homogeneous element feature matrices. The query matrix, key matrix, and value matrix obtained through independent linear mapping; The key vector dimension is equal to the homogeneous embedding dimension. ; The enhanced global homogeneous features are obtained by weighted summation using adaptive attention weights. ; in, These are global homogeneous element features after feature enhancement; This is the attention weight matrix; It is a value matrix.
[0012] Further, in step S14, the multi-constraint joint loss function is: ; in, This represents the overall loss during offline training. The cross-entropy loss is for lithological classification. Loss due to surface layer control constraints; This is for inter-well phase control constraint loss; , The loss balancing weight hyperparameter has a range of values. ; Among them, lithological classification cross-entropy loss The calculation formula is: ; in, This represents the total number of samples in a single batch. This represents the total number of lithological categories. For the first The first sample True unique thermal labels for lithological types; For the first The first sample The model predicts the probability distribution of lithological types; Wellbore layer control constraint loss The calculation formula is: ; in, This represents the total number of paired samples at the same depth level. For a deep neighborhood pairing sample set, where This indicates that the depth difference between the two samples is less than the preset stratigraphic stratification threshold; , Each is the first in the same depth neighborhood. The first sample and the first Enhanced homogeneous features of each sample It is an L2 norm; Inter-well phased control confinement loss The maximum mean difference is used to measure the distance of characteristic distributions across wells within the same sedimentary facies zone. ; in, , These are sets of enhanced homogeneous element features from different wells and the same sedimentary facies zone; The constraints are matched to the deposition; MMD is the maximum mean difference measure function.
[0013] Furthermore, in step S21, the dynamic adaptive segmentation of the continuous logging-while-drilling curve based on the conditional maximum mean difference criterion specifically includes: Time-series logging-while-drilling data stream is represented as The segmentation discrimination formula is: ; in, for The measure of distribution drift at any given time; The time-series sliding window length; This represents the distribution of logging features within the current sliding window; Distribution of stable logging characteristics based on historical benchmarks; when Greater than the preset segmentation threshold When a data distribution shift is detected, new segments are created, ultimately dividing the time-series data into logging segments with stable intra-segment distribution and significant inter-segment distribution differences. ,in This represents the total number of time-series segments. These are preset fixed hyperparameters.
[0014] Furthermore, in step S22, the formula for calculating the gradient consistency constraint loss is as follows: ; in, The loss is the gradient consistency constraint. This represents the total number of time-series segments; This is the index number of the time segment. ; For the first The gradient of model parameters corresponding to each time series data segment ,in, Operators for solving gradients of network parameters For the first Lithology classification loss in time-series logging data For the first A time-series data segment, For the first The gradient of model parameters corresponding to each time series data segment; This is a transpose operation; It is an L2 norm; The objective function for online global optimization is: ; in, To optimize the overall loss online; This represents the lithological classification loss for a single time-series segment; The gradient consistency constraint weight hyperparameter has a value range of [value range missing]. ; The parameter is the regularization weight hyperparameter, and its value range is... ; The set of all learnable parameters of the model; It is the square of the L2 norm.
[0015] Furthermore, in step S31, the noise reduction preprocessing using the time-frequency joint filtering algorithm specifically includes: The original drilling time series set is represented as ,in for The raw drilling multidimensional time-series data vector acquired at each moment. This is an index for the sampling time of the drilling time series. This represents the total sampling duration of the current drilling time series; The noise reduction preprocessing formula is: ; in, for Drilling time sequence characteristics after real-time noise reduction; This is a wavelet time-frequency transform operator used to map raw drilling time-series data to the time-frequency domain; For the Hadamard product operation, it represents the point-by-point selection and weighting of time-frequency domain features; This is a binary indicator function; it takes the value 1 when the condition is true and 0 when the condition is false. The threshold for judging drilling data noise is a preset fixed hyperparameter.
[0016] Further, in step S31, the time-series state transition equation of the lithological state transition prediction network is: ; in, for The latent state characteristics of the formation at any given time are used to implicitly characterize the comprehensive lithological and reservoir physical property information at the current drill bit location; This represents the latent state characteristics of the formation at the previous sampling time. The current drilling dynamics are represented by noise reduction. It is a temporal state transition network, and it is a learnable nonlinear mapping function.
[0017] Further, in step S32, the formula for calculating the comprehensive credibility score is: ; in, For the first Preliminary lithological prediction pseudo-label The overall credibility score; The drilling feature-lithology matching score is used to quantify the reasonableness of the matching between drilling dynamic characteristics and predicted lithology. The temporal smoothness continuity score is used to quantify the evolutionary stability of lithology prediction results at adjacent time points; The geological sequence rationality score is used to quantify the degree to which the prediction results conform to the geological laws of stratigraphy and sequence distribution. , , These are the normalized weighting coefficients, and the sum of the three is always 1; The screening criteria are: ; in, After filtering Highly reliable pseudo-labels at all times; The global credibility filtering threshold is a preset fixed hyperparameter. This means removing currently unreliable pseudo-labels.
[0018] Further, in step S33, the incremental update loss function is: ; in, This is due to the loss from incremental updates; This is a globally highly reliable set of pseudo-label samples. This represents the total number of highly reliable samples within the set. For the first A credible pseudo-label; This is the lithology prediction output for the corresponding sample in the network. The square of the L2 norm; The formula for updating network incremental parameters is: ; in, These are historical parameters before the model's incremental update; These are the iterative parameters after the model is incrementally updated; The learning rate is updated incrementally and takes a value less than 1. This represents the gradient of the incremental loss function with respect to the model parameters. The formula for spacetime lag correction is: ; in, To correct the actual in-situ formation depth of the drill bit; The formation depth corresponding to the data collected by the logging-while-drilling instrument; is the fixed distance between the drilling instrument and the drill bit, and is the inherent structural parameter of the drilling instrument; Real-time drilling speed for drilling operations; A standard benchmark drilling speed is preset for the work area.
[0019] As can be seen from the above technical solutions, compared with the prior art, the beneficial effects of the present invention are: 1. This invention maps heterogeneous logging data from different wells with different channel dimensions and label systems to a unified homogeneous feature space by calculating similarity between samples across wells and embedding Top-K fixed dimensions, thus fully preserving the differentiated and detailed geological information of each well. Simultaneously, during the offline training phase, dual geological prior constraints of strata control and facies control are introduced. Sequence smoothing loss suppresses abrupt changes in lithology prediction within the same layer, and facies-controlled MMD loss constrains the consistency of cross-well feature distribution within the same sedimentary facies zone, ensuring that the model output strictly conforms to the geological laws of stratigraphic distribution. This significantly improves the generalization and adaptation capabilities across wells and work areas, as well as the geological reliability of the interpretation results.
[0020] 2. This invention proposes an online adaptive optimization mechanism based on dynamic segmentation of time-series data and gradient consistency constraints. The continuous logging-while-drilling data stream is dynamically segmented using the conditional maximum mean difference criterion to accurately characterize data distribution drift nodes. Furthermore, a constraint loss maximizing the gradient cosine similarity of adjacent time-series segments is constructed, ensuring that the update direction of model parameters at different drilling stages tends to be consistent. This effectively suppresses feature failure and drastic oscillations in model parameters caused by data drift, preventing the model from "forgetting" historical learning results when adapting to new data. This mechanism ensures smooth adaptive iteration of model parameters in dynamic time-varying scenarios in a single well, fundamentally guaranteeing that the accuracy of logging-while-drilling interpretation remains stable and does not decline during long-term drilling.
[0021] 3. This invention constructs a complete a posteriori correction link: "Drilling data time-frequency joint noise reduction—lithological state transition prediction—triple-criterion reliable pseudo-label screening—incremental update—spatiotemporal lag correction." It effectively filters out invalid noise such as equipment vibration and drilling fluid fluctuations in drilling data like drill pressure and torque through wavelet time-frequency transformation; it models the dynamic correlation between drilling time-series characteristics and formation lithological evolution through a lithological state transition prediction network; it innovatively establishes a triple collaborative discrimination criterion of feature consistency, temporal continuity, and geological rationality to accurately screen highly reliable pseudo-labels as incremental monitoring information, avoiding the error accumulation amplification effect of erroneous pseudo-labels; and finally, it combines instrument zero length, real-time drilling rate, and benchmark drilling rate to complete precise spatiotemporal lag correction. It fully utilizes the dynamic information of drilling engineering parameters to achieve high-precision in-situ real-time lithological restoration of the drill bit under high-noise environments.
[0022] 4. This invention constructs a three-stage progressive closed-loop technology system: the model parameters and interpretation data output from the previous stage are entirely used as input for the next stage, with each stage closely connected and mutually supportive. The offline stage provides a highly compatible model base for the online stage, the online stage provides reliable interpretation priors for the a posteriori correction stage, and the a posteriori correction stage feeds back the corrected results to guide geological guidance decisions. This system simultaneously solves three core challenges: heterogeneous data compatible modeling, time-varying data adaptive optimization, and high-precision lag correction for dynamic noisy data. It boasts a high degree of automation and minimal human intervention, accurately serving intelligent geological guidance drilling operations in deep, ultra-deep, and unconventional complex heterogeneous reservoirs, providing core technical support for improving the efficiency and success rate of oil and gas exploration and development. Attached Figure Description
[0023] Figure 1 This is a schematic diagram of the overall process of the geological-guided logging-while-drilling intelligent interpretation and hysteresis correction method of the present invention. Detailed Implementation
[0024] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. The illustrative embodiments and descriptions of this invention are for illustrative purposes only and are not intended to limit the invention.
[0025] like Figure 1 As shown, this invention provides a geological-guided intelligent interpretation and hysteresis correction method for the entire logging-while-drilling process. The technical solution of this invention will be described in detail below with reference to specific embodiments.
[0026] I. Construction of a heterogeneous logging pilot model driven by homogeneous element representation (Step S1) This step forms the foundation of the entire process technology. Its purpose is to solve the mixed heterogeneous problem of inconsistent logging curve types and lithological labeling systems across multiple wells. By generating a universal homogeneous element representation across wells through sample association learning, and integrating the prior constraints of formation layer control and facies control, a logging-while-drilling interpretation pilot model with strong compatibility and conformity to geological laws is trained.
[0027] 1. Construction and preprocessing of multi-well heterogeneous logging datasets (step S11) Historical logging data and lithological annotation data from multiple adjacent wells in the target work area were collected to construct a cross-well heterogeneous training dataset. The single-well data contained logging curves of varying numbers and types (such as natural gamma ray (GR), spontaneous potential (SP), sonic transit time (AC), resistivity (RT), etc.), and the labels included differentiated lithological classification systems for each well.
[0028] The original logging curves undergo denoising, depth alignment, outlier removal, and amplitude normalization preprocessing to eliminate data biases caused by instrument errors, environmental noise, and depth mismatches, forming a standardized multi-well heterogeneous logging sample set as the original input data for model training. The depth alignment is performed by using a unified formation depth datum as a reference to correct the depth of each well's logging curve, ensuring that points at the same depth correspond to the same formation location. Amplitude normalization uses a min-max normalization method to map the amplitude range of each logging curve to a unified interval.
[0029] 2. Channel-independent sample association learning and homogeneous representation generation (step S12) To address the heterogeneous characteristics of different well logging channels and label dimensions, a feature extraction network with shared channel parameters and invariant channel permutation is constructed.
[0030] The target work area includes Kou Lin Well, No. Wells contain Well logging curves Lithological tags, corresponding sample sets are represented as follows: ; in, For the first A sample set of wells; For the input well logging feature vector, For the first Number of logging curve types for each well; This is a lithological tag vector. For the first Number of lithological categories of wells; For the first Total number of samples from wells. Different wells satisfy... , , and All are index numbers of the wells, with values ranging from 1 to 2. Different wells have different types of logging curves and lithological labeling systems, forming typical mixed heterogeneous data.
[0031] The sample set was divided into categories based on lithology. Subset of each category: ; in, For the first A subset of lithological samples; For the first The well logging feature vector of each sample; For the first Lithological labels for each sample; This represents the total number of lithology categories.
[0032] For any logging example Calculate the Euclidean similarity between this sample and all samples of the same category. The similarity measurement formula is: ; in, For well logging examples and The similarity value between them takes a value of 100. Between these values, a larger value indicates that the two samples are more similar; , For any two logging samples within the same lithology category; The square of the L2 norm of the difference between two feature vectors is used to measure the Euclidean distance between two samples in the feature space. The Gaussian kernel bandwidth hyperparameter is used to control the rate at which sample similarity decays with distance. A larger value results in slower similarity decay and a smoother distribution of similarity between samples. The smaller the value, the faster the similarity decays, and only samples that are very close to each other obtain a high similarity. The value range is positive, and the value range for conventional engineering is [range missing]. The specific value can be optimized based on the characteristic variance of the well logging data in the work area.
[0033] Select the first with the highest similarity Construct a fixed-dimensional homogeneous embedding representation from each sample: ; in, For the first The sample at the th Homogeneous element representation vectors under similar lithologies; To fix the hyperparameters and unify the embedding dimension, the preferred values are 16, 32, or 64. The dimension of this representation vector is fixed. , and the number of input logging channels and tag type This is irrelevant, thus enabling the mapping of heterogeneous data from multiple wells to a unified feature space, completely solving the problems of inconsistent modeling of heterogeneous data and loss of effective information.
[0034] 3. Self-attention mechanism modeling of label dependency and initial lithology prediction (step S13) The homogeneous elements corresponding to different lithology categories generated in the preceding steps are represented by the aforementioned steps. As the core input features of the network, they are spliced and fused to obtain a complete lithological element feature matrix, which is used to model the intrinsic dependency relationship of element representations of different lithological categories.
[0035] Homogeneous element characteristics corresponding to all lithological categories Perform dimensional concatenation to construct a globally homogeneous feature matrix: ; in, It is a single-sample global homogeneous element feature matrix that integrates the associated feature information of all lithological dimensions. Each row of the matrix corresponds to a homogeneous element representation vector of a lithological category, and each column corresponds to a sample index. This is the sample index number, used to traverse all logging samples within a single well. , corresponding to the Well logging sampling data at different depths within the wellhead; This represents the total number of lithological categories. The embedding dimension is fixed for homogeneous elements.
[0036] The global homogeneous element feature matrix As input to the self-attention module, a query matrix is generated through a linear mapping. Key matrix Sum matrix The formula for calculating attention weights is: ; in, This is the attention weight matrix, where each element... Indicates the first The query position for the first Attention weights for each key position, with the sum of weights for all rows being 1; , , These are the global homogeneous element feature matrices. The query matrix, key matrix, and value matrix are obtained through independent linear mapping (i.e., three different fully connected layers); The key vector dimension is equal to the homogeneous embedding dimension. This is used to scale attention weights and prevent the gradient from vanishing due to excessively large dot product results. This is the matrix transpose operation; Softmax is the normalized exponential function used to convert attention scores into a probability distribution.
[0037] The enhanced global homogeneous features are obtained by weighted summation using adaptive attention weights. ; in, The global homogeneous element feature matrix after feature enhancement is the output of the self-attention mechanism; This is the attention weight matrix; This is a value matrix. This enhanced feature achieves information interaction and feature fusion between different lithological categories through an attention mechanism.
[0038] With enhanced global homogeneous features Based on this, and combining a position-by-position feedforward network with the Softmax activation function, the initial lithology prediction probability distribution of well logging samples is output. This completes the initial lithology prediction. Thus, the entire technical chain of "homogeneous element representation generation → feature fusion → attention enhancement → lithology prediction" has been realized.
[0039] 4. Model offline training convergence under layer-control and phase-control dual geological constraints (step S14) Enhanced global homogeneous features output by the aforementioned self-attention network Using the sole input feature base as the basis for all loss functions, and relying on the strata- and facies-controlled distribution patterns of oil and gas geology, a classification-strata- and facies-controlled multi-constraint loss function is constructed. This function iteratively optimizes all parameters of the feature extraction network and the attention network. The overall offline loss function consists of a weighted fusion of three parts: classification loss, strata-constraint loss, and facies-constraint loss. ; in, This represents the overall loss value during offline training. The cross-entropy loss for lithology classification is used to ensure the model's basic accuracy in identifying lithology. This represents the loss of stratigraphic constraints above the well, used to constrain the smoothness of lithological predictions within the same sequence stratigraphy; This is the inter-well facies control constraint loss, used to constrain the consistency of cross-well characteristic distribution of the same sedimentary facies zone; , The loss balancing weight hyperparameter has a range of values. This is used to balance the optimization ratio of the three types of loss. The specific value can be optimized by grid search based on the classification accuracy on the validation set.
[0040] Lithological classification cross-entropy loss The calculation formula is: ; in, This represents the total number of samples in a single batch. This represents the total number of lithological categories. For the first The first sample The true unique thermal label of lithology, when the true lithology of the sample is the first The value is 1 if the condition is met, and 0 otherwise. For the first The first sample The probability distribution predicted by the lithological model is output by the Softmax function, and its value ranges from... The probability of each category is between 1 and 1.
[0041] Wellbore layer control constraint loss Hierarchical smoothing constraints are constructed based on enhanced homogeneous element features, and these constraints are applied to hierarchical samples of the same depth. Feature similarity helps suppress abrupt changes in lithology prediction within the same stratigraphic layer and avoid jump predictions that do not conform to geological laws. ; in, This represents the total number of paired samples at the same depth level. For a deep neighborhood paired sample set, each pair of samples in the set All satisfy the deep neighborhood constraint. That is, the depth difference between two samples is less than the preset stratum stratification threshold (this threshold is set according to the average thickness of the strata in the work area, and is usually taken as 0.5~2 meters). , Each is the first in the same depth neighborhood. The first sample and the first Enhanced homogeneous features of each sample; The value represents the L2 norm. The smaller this loss function value, the more similar the characteristics of adjacent samples within the same depth sequence, and the smoother and more continuous the lithology prediction.
[0042] Inter-well phased control confinement loss Based on the enhanced homogeneous element feature set, the consistency of cross-well feature distribution in the same sedimentary facies zone is constrained, and the maximum mean discrepancy (MMD) is used to measure the distribution distance. ; in, , These are sets of enhanced homogeneous element features from different wells and the same sedimentary facies zone (composed of each sample). constitute); The sedimentary matching constraint indicates that the samples from the two wells belong to the same sedimentary facies zone; MMD is the maximum mean difference measure function, used to measure the difference in probability distribution between the two sets of enhancement features.
[0043] The complete formula for calculating MMD distance is: ; in, The Gaussian kernel function; For expectation calculation; , To start from the feature set Features of two independently extracted samples; , To start from the feature set The MMD value represents two independently extracted sample features. The smaller the MMD value, the more consistent the distribution of the two sets of features, that is, the enhanced feature distributions of different wells within the same sedimentary facies zone tend to be similar.
[0044] The network parameters are iteratively optimized using the multi-constraint joint loss method described above. Backpropagation is then performed using stochastic gradient descent or the Adam optimizer. After iterative convergence, an initial logging-while-drilling interpretation pilot model is output, completing the offline modeling. The convergence criterion is the total loss after several consecutive iterations. The change is less than a preset threshold (e.g.) (or reach the preset maximum number of iterations (e.g., 200 iterations)).
[0045] II. Online adaptive optimization of the leading model with gradient consistency constraints during drilling (step S2) This step builds upon the offline pilot model output in step S1. To address the issue of model accuracy degradation caused by time-varying logging response and continuous data distribution drift during drilling, this step dynamically segments and optimizes the real-time incremental logging-while-drilling data using gradient consistency constraints. Combined with generalization risk assessment and supervised updates of key examples, this step enables adaptive iteration of pilot model parameters.
[0046] 1. Real-time dynamic incremental acquisition and time-series segmentation of logging-while-drilling data (step S21) During drilling operations, downhole logging data is acquired incrementally in real time to form a time-series logging data stream. Based on the conditional maximum mean difference criterion, dynamic adaptive segmentation is performed on the continuous drilling curve: ; in, for The distribution drift metric at any given time; the larger the value, the greater the difference between the current data distribution and the historical baseline distribution. The time-series sliding window length is set according to the sampling rate of the logging curve, and is usually taken as the number of sampling points corresponding to a drilling depth of 0.5 to 2 meters; This represents the distribution of logging features within the current sliding window; The historical benchmark stable logging feature distribution is obtained by taking the feature distribution of offline training data or the previous stable segment; MMD is the maximum mean difference measure function.
[0047] when Greater than the preset segmentation threshold When the data distribution has shifted, a new segment is segmented. A preset fixed hyperparameter is used to determine whether the data distribution has shifted significantly. Its value is determined based on the distribution variance of historical data for the work area, typically set to 2-3 times the standard deviation of the historical MMD value mean. Finally, the continuously drifting time-series data is divided into several logging segments with stable intra-segment distribution and significant inter-segment distribution differences. ,in The total number of time-series segments accurately depicts the data distribution, drift nodes, and drift amplitude during the drilling process.
[0048] 2. Construction of multi-segment gradient consistency constraint optimization function (step S22) The offline lead model converged in step S1 is used as the initial parameters. For multiple time-series logging segments obtained by dynamic segmentation, a gradient consistency constraint optimization objective is constructed.
[0049] Suppose that the continuous time-series data segment obtained after segmentation is ,in This represents the total number of time-series segments. The gradient of the model parameters for each segment is calculated using backpropagation based on the classification loss. The formula for calculating the gradient of a single segment is as follows: ; in, For the first The gradient vector of model parameters corresponding to each time series data segment has dimensions equal to the model parameters. The dimensions are the same; This is the index number of the time segment, and its value is... ; The gradient solver for network parameters refers to the operator that solves for the learnable parameters of the model. Operations for solving partial derivatives; For the first The lithology classification loss of time-series logging data is calculated using the formula described above. Same, but only applies to the current segment. Samples within.
[0050] To constrain the gradient evolution to be stable during the continuous drilling phase and avoid drastic oscillations in model parameters, a gradient consistency constraint loss is constructed: ; in, This represents the loss value due to gradient consistency constraints. This represents the total number of time-series segments; This is the index number of the time segment. ; For the first The gradient of model parameters corresponding to each time series data segment; For the first The gradient of model parameters corresponding to each time series data segment; for transpose; It uses the L2 norm. This loss function maximizes the cosine similarity of adjacent temporal gradients (i.e., minimizes the negative cosine similarity), constraining the temporal gradient directions before and after to converge, ensuring that the parameter update directions are consistent in different drilling stages, and suppressing feature failure and model parameter oscillations caused by data drift.
[0051] Finally, by combining the single-segment classification loss, gradient consistency constraint loss, and L2 parameter regularization term, a complete online global optimization objective function is constructed: ; in, To optimize the overall loss value online; This is the lithology classification loss for a single time-series segment, used to ensure the basic accuracy of lithology identification for a single data segment; The gradient consistency constraint weight hyperparameter is used to adjust the proportion of temporal gradient stationarity constraints, and its value range is [range missing]. ; The parameter is the regularization weight hyperparameter, used to adjust the strength of the regularization constraint, and its value range is [range missing]. ; The set of all learnable parameters of the model; This is the L2 regularization term for the model parameters (i.e., weight decay), used to suppress overfitting during the online iteration process of the model.
[0052] 3. Model generalization risk boundary assessment and active supervision of high-value examples (optional step) In practical implementation, the generalization risk of the model can be quantified by measuring the maximum mean difference between the characteristics of real-time logging samples and the characteristics of historical baselines. ; in, For the current sample Generalization risk assessment value; The distribution of historical training features; This represents the current real-time logging feature distribution. A risk threshold is set. (A preset fixed hyperparameter is used to distinguish between regular samples and high-risk samples from outside the region; it is usually taken as 2 to 3 times the standard deviation of the mean of historical MMD values.) The discrimination criterion is: if If it is, then it is judged as a high-value difficult sample.
[0053] For high-risk samples, a label query command is generated based on a probability sampling strategy. The real lithology labels are obtained through core sampling while drilling and added to the training set as supervision samples, providing accurate supervision constraints for online model updates.
[0054] 4. Online iterative update of the pilot model and real-time lithological interpretation output (continued from step S22) The gradient descent algorithm is used to iteratively update the model parameters in real time. The parameter update formula is as follows: ; in, For the first Model parameters at the next iteration; For the first The model parameters are updated in the next iteration; This is the online adaptive learning rate, with a value less than 1 (usually 1). to This is used to control the online update step size and avoid model oscillation and divergence. To optimize the gradient of the overall loss with respect to the model parameters online, the updated model continuously infers from newly added logging-while-drilling data, outputting real-time optimized lithological interpretation results, effectively addressing the problem of continuous decline in the accuracy of fixed models.
[0055] III. Post-hoc correction of interpretation results guided by trusted pseudo-labels (step S3) This step follows the real-time drilling lithology interpretation results output in step S2. To address the issues of interpretation lag caused by zero length of the drilling instrument and low correction accuracy due to dynamic noise in drilling data, a lithology state transition prediction network is constructed. Reliable pseudo-labels are screened through collaborative detection, and an incremental update mechanism is used to iteratively correct the interpretation results.
[0056] 1. Synchronous acquisition and preprocessing of dynamic drilling data with noise (step S31) Simultaneous drilling operations acquire real-time drilling data from the drill bit, including multi-dimensional time-series parameters such as drilling time, drilling pressure, torque, pump pressure, and downhole vibration, to construct an original drilling time-series dataset. .in, for The raw drilling multidimensional time-series data vector collected at each moment has a dimension equal to the number of types of drilling parameters collected; This is an index for the sampling time of the drilling time series; This represents the total sampling duration of the current drilling time series (i.e., the total number of sampling points).
[0057] A time-frequency joint filtering algorithm is used for noise reduction preprocessing. The noise reduction formula is as follows: ; in, for Pure drilling time-series feature vector after time-to-time noise reduction; It is a wavelet time-frequency transform operator used to map the original drilling time series data to the time-frequency domain, thereby achieving spectral separation of signal and noise; The operation is the Hadamard product, which represents the point-by-point selection and weighting of time-frequency domain features, i.e., the element-wise multiplication of two vectors of the same dimension. This is a binary indicator function; it takes the value 1 when the condition inside the parentheses is true and 0 when the condition is false. The amplitude of the time-frequency transformation coefficient; The threshold for drilling data noise discrimination is a preset fixed hyperparameter used to distinguish effective geophysical signals from interfering noise. Its value is determined based on the signal-to-noise ratio statistical analysis of drilling data in the work area. This formula is used to filter out invalid noise such as equipment vibration, manual parameter adjustments, and drilling fluid fluctuations, while retaining the effective geophysical time-series characteristics corresponding to formation lithology changes, ultimately constructing a clean drilling dynamic feature dataset. ( (This refers to the ordered set of all time-series features after noise reduction).
[0058] 2. Construction of Lithological State Transition Prediction Network and Preliminary Pseudo-Label Generation (Step S31) A lithological state transition prediction network for drilling time-series data was constructed, based on preprocessed drilling dynamic characteristics. Using the real-time drilling lithology interpretation results output from step S2 as input, and taking them as prior constraints, a time-series state transition equation is introduced: ; in, for The time-lapse formation latent state feature vector is used to implicitly represent the comprehensive lithology and reservoir physical property information of the current drill bit position. Its dimension is a preset hyperparameter (such as 128-dimensional or 256-dimensional). This is the latent state feature vector of the formation at the previous sampling time, used to constrain the continuity of temporal evolution; This is the denoised drilling dynamic feature vector at the current moment; It is a time-series state transition network, which is a learnable nonlinear mapping function (which can be implemented using a Long Short-Term Memory (LSTM) network or a gated recurrent unit (GRU)) to fit the dynamic correlation between drilling time-series characteristics and formation lithology evolution.
[0059] The current lithology prediction distribution of the drill bit is obtained through latent state mapping, generating a preliminary set of lithology pseudo-labels. ,in for The initial lithology prediction pseudo-label (probability distribution vector) output by the network at each time step.
[0060] 3. Multi-criteria collaborative detection to screen highly reliable pseudo-labels (step S32) A three-pronged criterion of feature consistency, temporal continuity, and geological rationality was established. A quantitative evaluation formula for screening credible pseudo-labels was constructed, and the comprehensive credibility score is as follows: ; in, For the first Preliminary lithological prediction pseudo-label The overall credibility score indicates that the pseudo-label is more credible; The drilling feature-lithology matching score is used to quantify the reasonableness of the matching between drilling dynamic characteristics and predicted lithology (for example, high drilling pressure and low drilling speed usually correspond to harder formations, which match hard lithologies such as sandstone, and thus have a higher score). The score represents the continuity of temporal smoothness, used to quantify the stability of the evolution of lithology prediction results at adjacent time points (abrupt changes in lithology at adjacent time points result in a lower score). The geological sequence rationality score is used to quantify the degree to which the prediction results conform to the geological laws of stratigraphy and sequence distribution (predictions that violate the normal sedimentary sequence score lower). , , These are normalized weight coefficients, and the sum of the three is always 1. They are used to integrate the weights of multi-dimensional credibility evaluation. The specific values can be set according to the reliability of each dimension evaluation index on the validation set.
[0061] In specific operations, drilling characteristics-lithology matching score The time series smoothing continuity score can be obtained by looking up a priori matching table of drilling parameters and lithological hardness. Jaccard similarity calculation based on adjacent time-series predicted labels; geological sequence plausibility score. The similarity can be calculated by the dynamic time warping (DTW) between the predicted sequence and the regional standard sequence profile.
[0062] Set global credibility filtering threshold (A fixed hyperparameter is preset to distinguish between high-confidence and low-confidence pseudo-labels; its value is typically 0.7 to 0.9.) The selection criteria are: The screening criteria are: ; in, After filtering Highly reliable pseudo-labels at any given time (either probability distribution vectors or hard labels); The global credibility filtering threshold is a preset fixed hyperparameter. This means removing low-confidence pseudo-labels that are not currently used in model updates and training. This criterion retains high-confidence pseudo-labels while removing low-confidence pseudo-labels that exhibit abrupt changes in time series, violate stratigraphic sedimentary patterns, or have low feature matching, thus avoiding model degradation and error accumulation problems caused by erroneous pseudo-labels.
[0063] 4. Incremental network update and final correction output of interpretation results (step S33) Using the highly reliable pseudo-labels obtained through screening as incremental supervision information, an incremental update loss function is constructed to complete the network iterative optimization: ; in, Update the loss value incrementally; This is a globally highly reliable set of pseudo-label samples. This represents the total number of highly reliable samples within the set. For the first One reliable pseudo-label vector (highly reliable labels after filtering); This is the lithology prediction output vector for the corresponding sample in the network; It is the square of the L2 norm, used to quantify the magnitude of the error between the predicted value and the trusted label.
[0064] The formula for updating network incremental parameters is: ; in, These are historical parameters before the model's incremental update; These are the iterative parameters after the model is incrementally updated; The learning rate is updated incrementally and its value is less than the online learning rate (usually 10). -5 Up to 10 -4 This ensures stable incremental updates without compromising the model's existing learning capabilities. This is the gradient of the incremental loss function with respect to the model parameters.
[0065] Finally, combining the instrument at zero distance Drilling speed Reference drilling speed Complete spatiotemporal lag correction. Among them, This is the fixed distance between the drilling instrument and the drill bit. It is an inherent structural parameter of the drilling instrument and is a measured fixed value (usually 10~30 meters, depending on the specific instrument model). The real-time drilling speed for drilling operations is obtained from real-time acquisition of drilling engineering parameters. A standard benchmark drilling rate is preset for the work area to unify the spatiotemporal correction scale. The correction formula is: ; in, To correct the actual in-situ formation depth of the drill bit; The formation depth corresponding to the data collected by the logging-while-drilling instrument (i.e., the measurement depth at the instrument's location); when When the correction value increases, it indicates that the formation corresponding to the instrument's measurement data has been rapidly traversed by the drill bit, and the hysteresis effect is more significant; when As time progresses, the correction amount decreases. The updated optimal network is used to perform hysteresis correction and zero-length compensation on the drilling interpretation results output in step S2, accurately eliminating the spatial hysteresis error of the logging-while-drilling process. Finally, the real-time lithology identification results in situ are output, guiding the dynamic adjustment of the geological steering well trajectory and completing the intelligent interpretation closed loop of the entire process. Application Examples
[0066] Taking the drilling of a horizontal well in a deep sandstone oil and gas reservoir as an example, the implementation process and effects of this invention will be further explained. This work area includes historical logging data from five adjacent wells. The types of logging curves collected from each well are not entirely the same, covering five to seven types of curves, including natural gamma (GR), spontaneous potential (SP), sonic transit time (AC), resistivity (RT), and compensated density (DEN). The lithological labels are divided into six categories: mudstone, siltstone, fine sandstone, medium sandstone, coarse sandstone, and gravelly sandstone. The lithological classification granularity also varies between different wells, representing a typical mixed heterogeneous data scenario. A total of approximately 50,000 depth sampling points of logging data and corresponding lithological labels were acquired in the work area for offline modeling.
[0067] 1. Offline Phase Parameters and Effects Construct the pilot model according to step S1, and set the homogeneous element embedding dimension after preprocessing. Gaussian kernel bandwidth Loss balance weight , The Adam optimizer is used, with an initial learning rate set to... Batch size After 200 iterations of training, the model converged. On the validation set (accounting for 20% of the total data), the lithology classification accuracy reached 92.3%, which is a significant improvement over the traditional cross plot method (approximately 78%) and the pure data-driven model without geological constraints (approximately 85%).
[0068] 2. Online Phase Parameters and Effects During the drilling operation, online adaptive optimization is performed according to step S2. The sliding window length is set. Each sampling point (corresponding to approximately 1 meter of drilling depth) has a distribution drift judgment threshold. Gradient consistency constraint weights Parameter regularization weights Online learning rate The model updates its parameters every 10 meters of drilling, and during a continuous drilling process of 500 meters, the real-time lithological interpretation accuracy remained stable between 88% and 91%. In contrast, the static inference scheme, which uses the same offline model but does not perform online updates, saw its interpretation accuracy continuously decline from an initial 89% to 72% at 500 meters, fully verifying the effective adaptability of the online optimization mechanism of this invention to data drift.
[0069] 3. Parameters and effects of the post-hoc correction phase Perform post-hoc correction according to step S3. Simultaneously collect six-dimensional drilling engineering parameters, including drilling time, drilling pressure, torque, pump pressure, and downhole vibration, and set a time-frequency filtered noise discrimination threshold. The overall credibility score weight is set to... (Feature consistency) (Temporal continuity) (Geological rationality), credibility screening threshold Incremental update of learning rate Zero length of the drilling instrument meters, benchmark drilling speed in the work area meters per hour, real-time drilling speed The speed varies depending on the operating conditions (measured range: 5-12 meters per hour).
[0070] After the above corrections, the output in-situ lithology identification results from the drill bit achieved a 94.6% agreement rate with subsequent coring verification. In comparison, the agreement rate using the traditional linear time-shift correction method (which only performs depth shifts based on a fixed zero length without utilizing drilling dynamic parameters) was 82.1%; the agreement rate using a scheme that only screens for pseudo-tags but does not introduce a triple collaborative discrimination criterion was 87.3%. The correction results of this invention maintain high accuracy even under strong noise and dynamic drilling conditions, verifying the effectiveness of reliable pseudo-tag-guided incremental correction and spatiotemporal lag correction.
[0071] In summary, this invention achieves superior practical results compared to existing technologies in the three stages of offline modeling, online optimization, and post-hoc correction, and can provide accurate and stable lithological interpretation support for geologically guided drilling in deep and complex reservoirs.
[0072] The above-described embodiments are merely preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Various modifications and improvements made by those skilled in the art to the technical solutions of the present invention without departing from the spirit of the present invention should fall within the protection scope defined by the claims of the present invention.
Claims
1. A geological-guided intelligent interpretation and hysteresis correction method for the entire logging-while-drilling process, characterized in that, Includes the following steps: S1. Construct a heterogeneous logging leader model driven by homogeneous element representation, including: S11. Obtain historical logging data and lithological annotation data of multiple adjacent wells in the target work area, construct a cross-well heterogeneous training dataset, and preprocess the original logging curves. S12. To address the heterogeneous features of inconsistent logging channel dimensions and lithology label dimensions among different wells, a homogeneous element embedding representation with channel independence and consistent dimensions is generated based on example association learning. S13. Embed the homogeneous element into the self-attention network, model the dependency relationship between different lithology categories through the self-attention mechanism, and output the initial lithology prediction result. S14. Using the enhanced features output by the self-attention network as input, construct a multi-constraint joint loss function that integrates classification loss, layer control constraint loss and phase control constraint loss, iteratively optimize the network parameters, and output the initial logging-while-drilling interpretation pilot model after iterative convergence. S2. Performing online adaptive optimization of the leading model during drilling based on gradient consistency constraints, including: S21. During the drilling operation, the time-series logging data stream is collected in real time. Based on the conditional maximum mean difference criterion, the continuous logging curve is dynamically and adaptively segmented into multiple time-series data segments with stable distribution within the segment and significant distribution differences between the segments. S22. Using the parameters of the aforementioned pilot model as initial parameters, calculate the gradient of the model parameters for each of the multiple time-series data segments obtained from the division, construct a gradient consistency constraint loss with the objective of maximizing the consistency of gradient directions between adjacent time-series segments, superimpose the single-segment classification loss and the parameter regularization term to form an online global optimization objective function, iteratively update the model parameters, and output the real-time optimized drilling lithology interpretation results. S3. Based on trusted pseudo-labels, perform a posteriori correction on the real-time optimized drilling lithology interpretation results, including: S31. Real-time drilling data from the drill bit end is collected synchronously, and noise reduction preprocessing is performed using a time-frequency joint filtering algorithm. Using the noise-reduced drilling dynamic characteristics as input and the real-time optimized drilling lithology interpretation results as prior constraints, preliminary lithology pseudo-labels are generated through a lithology state transition prediction network. S32. Establish a triple collaborative discrimination criterion of feature consistency, temporal continuity, and geological rationality, calculate the comprehensive credibility score of each pseudo-label, and select pseudo-labels with a comprehensive credibility score greater than a preset threshold as high-credibility pseudo-labels. S33. Construct an incremental update loss function using the highly reliable pseudo-labels as incremental supervision information, and iteratively update the parameters of the lithology state transition prediction network; combine the zero-distance drilling of the drilling instrument, the real-time drilling speed and the benchmark drilling speed to perform spatiotemporal lag correction, and output the in-situ real-time lithology identification results of the drill bit.
2. The intelligent interpretation and hysteresis correction method for the entire process of geological-guided logging while drilling as described in claim 1, characterized in that, In step S12, the generation of channel-independent, dimension-uniform homogeneous element embedding representations based on example association learning specifically includes: The target work area includes Kou Lin Well, No. Wells contain Well logging curves Lithological tags, corresponding sample sets are represented as follows: ; in, For the first A sample set of wells; Input well logging characteristics; Lithological tags; For the first The total number of samples from different wells, satisfying the following conditions. , , and All are indices of wells, with values ranging from 1 to 2. ; The sample set was divided into categories based on lithology. Subset of each category: ; in, For the first A subset of lithological samples; For the first Well logging characteristics of each sample; For the first Lithological labels for each sample; This represents the total number of lithological categories. For any logging example Calculate the Euclidean similarity between this sample and all samples of the same category. The similarity measurement formula is: ; in, For well logging examples and The similarity between them; , For any two logging samples within the same lithology category; The square of the L2 norm; This is the Gaussian kernel bandwidth hyperparameter, used to control the sample similarity decay rate, and its value range is positive. Select the first with the highest similarity Construct a fixed-dimensional homogeneous embedding representation from each sample: ; in, For the first The sample at the th Homogeneous element representation under lithological conditions; These are fixed hyperparameters used to unify the embedding dimension.
3. The intelligent interpretation and hysteresis correction method for the entire process of geological-guided logging while drilling as described in claim 2, characterized in that, In step S13, embedding the homogeneous element into the self-attention network to model the dependency relationship between different lithological categories through the self-attention mechanism specifically includes: Homogeneous element characteristics corresponding to all lithological categories Perform dimensional concatenation to construct a globally homogeneous feature matrix: ; in, It is a single-sample global homogeneous element feature matrix that integrates the associated feature information of all lithological dimensions; This serves as a sample index, used to traverse all logging samples within a single well. ; This represents the total number of lithological categories. For homogeneous elements, the embedding dimension is fixed; The global homogeneous element feature matrix As input to the self-attention module, a query matrix Q, a key matrix K, and a value matrix V are generated through linear mapping. The attention weights are calculated using the following formula: ; in, This is the attention weight matrix; , , These are the global homogeneous element feature matrices. The query matrix, key matrix, and value matrix obtained through independent linear mapping; The key vector dimension is equal to the homogeneous embedding dimension. ; The enhanced global homogeneous features are obtained by weighted summation using adaptive attention weights. ; in, These are global homogeneous features after feature enhancement; This is the attention weight matrix; It is a value matrix.
4. The intelligent interpretation and hysteresis correction method for the entire process of geological-guided logging while drilling as described in claim 3, is characterized in that, In step S14, the multi-constraint joint loss function is: ; in, This represents the overall loss during offline training. The cross-entropy loss is for lithological classification. Loss due to surface layer control constraints; This is for inter-well phase control constraint loss; , The loss balancing weight hyperparameter has a range of values. ; Among them, lithological classification cross-entropy loss The calculation formula is: ; in, This represents the total number of samples in a single batch. This represents the total number of lithological categories. For the first The first sample True unique thermal labels for lithological types; For the first The first sample The model predicts the probability distribution of lithological types; Wellbore layer control constraint loss The calculation formula is: ; in, This represents the total number of paired samples at the same depth level. For a deep neighborhood pairing sample set, where This indicates that the depth difference between the two samples is less than the preset stratigraphic stratification threshold; , Each is the first in the same depth neighborhood. The first sample and the first Enhanced homogeneous features of each sample It is an L2 norm; Inter-well phased control confinement loss The maximum mean difference is used to measure the distance of cross-well characteristic distributions within the same sedimentary facies zone: ; in, , These are sets of enhanced homogeneous element features from different wells and the same sedimentary facies zone; The constraints are matched to the deposition; MMD is the maximum mean difference measure function.
5. The intelligent interpretation and hysteresis correction method for the entire process of geological-guided logging while drilling as described in claim 1, characterized in that, In step S21, the dynamic adaptive segmentation of the continuous logging-while-drilling curve based on the conditional maximum mean difference criterion specifically includes: Time-series logging-while-drilling data stream is represented as The segmentation discrimination formula is: ; in, for The distribution drift metric at any given time; The time-series sliding window length; This represents the distribution of logging features within the current sliding window. The distribution of stable logging characteristics based on historical benchmarks; when Greater than the preset segmentation threshold When a data distribution shift is detected, new segments are created, ultimately dividing the time-series data into logging segments with stable intra-segment distribution and significant inter-segment distribution differences. ,in This represents the total number of time-series segments. These are preset fixed hyperparameters.
6. The intelligent interpretation and hysteresis correction method for the entire process of geological-guided logging while drilling as described in claim 1, characterized in that, In step S22, the formula for calculating the gradient consistency constraint loss is: ; in, The loss is the gradient consistency constraint. This represents the total number of time-series segments; This is the index number of the time segment. ; For the first The gradient of model parameters corresponding to each time series data segment ,in, Operators for solving gradients of network parameters For the first Lithology classification loss in time-series logging data For the first A time-series data segment, For the first The gradient of model parameters corresponding to each time series data segment; This is a transpose operation; It is an L2 norm; The online global optimization objective function is: ; in, To optimize the overall loss online; This represents the lithological classification loss for a single time-series segment; The gradient consistency constraint weight hyperparameter has a value range of [value range missing]. ; The parameter is the regularization weight hyperparameter, and its value range is... ; The set of all learnable parameters of the model; It is the square of the L2 norm.
7. The intelligent interpretation and hysteresis correction method for the entire process of geological-guided logging while drilling as described in claim 1, characterized in that, In step S31, the noise reduction preprocessing using the time-frequency joint filtering algorithm specifically includes: The original drilling time series set is represented as ,in for The raw drilling multidimensional time-series data vector acquired at each moment. This is an index for the sampling time of the drilling time series. This represents the total sampling duration of the current drilling time series; The noise reduction preprocessing formula is: ; in, for Drilling time sequence characteristics after real-time noise reduction; This is a wavelet time-frequency transform operator used to map raw drilling time-series data to the time-frequency domain; For the Hadamard product operation, it represents the point-by-point selection and weighting of time-frequency domain features; This is a binary indicator function; it takes the value 1 when the condition is true and 0 when the condition is false. The threshold for judging drilling data noise is a preset fixed hyperparameter.
8. The intelligent interpretation and hysteresis correction method for the entire process of geological-guided logging while drilling as described in claim 1, characterized in that, In step S31, the time-series state transition equation of the lithological state transition prediction network is: ; in, for The latent state characteristics of the formation at any given time are used to implicitly characterize the comprehensive lithological and reservoir physical property information at the current drill bit location; This represents the latent state characteristics of the formation at the previous sampling time. The current drilling dynamics are represented by noise reduction. It is a temporal state transition network, and it is a learnable nonlinear mapping function.
9. The intelligent interpretation and hysteresis correction method for the entire process of geological-guided logging while drilling as described in claim 1, characterized in that, In step S32, the formula for calculating the comprehensive credibility score is: ; in, For the first Preliminary lithological prediction pseudo-label The overall credibility score; The drilling feature-lithology matching score is used to quantify the reasonableness of the matching between drilling dynamic characteristics and predicted lithology. The temporal smoothness continuity score is used to quantify the evolutionary stability of lithology prediction results at adjacent time points; The geological sequence rationality score is used to quantify the degree to which the prediction results conform to the geological laws of stratigraphy and sequence distribution. , , These are the normalized weighting coefficients, and the sum of the three is always 1; The screening criteria are: ; in, After filtering Highly reliable pseudo-labels at all times; The global credibility filtering threshold is a preset fixed hyperparameter. This means removing currently unreliable pseudo-labels.
10. The intelligent interpretation and hysteresis correction method for the entire process of geological-guided logging while drilling as described in claim 1, characterized in that, In step S33, the incremental update loss function is: ; in, This is due to the loss from incremental updates; This is a globally highly reliable set of pseudo-label samples. This represents the total number of highly reliable samples within the set. For the first A credible pseudo-label; This is the lithology prediction output for the corresponding sample in the network. The square of the L2 norm; The formula for updating network incremental parameters is: ; in, These are the historical parameters before the model's incremental update; These are the iterative parameters after the model is incrementally updated; The learning rate is updated incrementally and takes a value less than 1. This represents the gradient of the incremental loss function with respect to the model parameters. The formula for spacetime lag correction is: ; in, To correct the actual in-situ formation depth of the drill bit; The formation depth corresponding to the data collected by the logging-while-drilling instrument; is the fixed distance between the drilling instrument and the drill bit, and is the inherent structural parameter of the drilling instrument; Real-time drilling speed for drilling operations; A standard benchmark drilling speed is preset for the work area.
