A method, device, medium and product for drilling multi-working condition online monitoring

By constructing a multi-channel graph attention convolutional network and a multi-head graph attention network, and combining a multi-channel causal convolutional model optimized by the annealing algorithm, the problems of advance prediction and refined prediction in drilling operations are solved. This enables online monitoring and advance prediction of the interpretability of drilling data, and improves the reliability of prediction.

CN118551322BActive Publication Date: 2026-11-20LIAONING UNIVERSITY OF PETROLEUM AND CHEMICAL TECHNOLOGY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410649706.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2026-11-20
Estimated Expiration
2044-05-24

AI Technical Summary

Technical Problem

Existing technologies cannot achieve advanced and refined predictions in drilling operations, and traditional machine learning and neural network methods have low prediction accuracy and reliability in complex downhole conditions, especially with a high risk of overfitting when data is scarce.

Method used

A multi-channel graph attention convolutional network and a multi-head graph attention network are constructed. Combined with a multi-channel causal convolutional model optimized by annealing algorithm, the shapelet feature sequences of multi-dimensional candidate subsequence space are extracted and fused to achieve time-series advance prediction and multi-condition monitoring of drilling data.

Benefits of technology

It enables interpretable online monitoring and advanced prediction based on real-time drilling data and forecast information, improves the reliability of advanced prediction results, and can identify complex downhole conditions and provide early warnings.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118551322B_ABST
    Figure CN118551322B_ABST
Patent Text Reader

Abstract

The application provides a drilling multi-condition online monitoring method, device, medium and product, relates to the fields of drilling engineering and deep learning, and the method comprises the following steps: preprocessing original multi-source data of each well in different drilling conditions in an oilfield block, constructing a multi-dimensional candidate subsequence space, extracting a shapelet feature sequence, training a multi-channel graph attention convolutional network, and outputting a first data state; preprocessing multi-source data of drilled adjacent wells; constructing a directed graph from the adjacent wells to a well to be drilled, constructing an adjacency matrix from well spacing, mining geological information of the preprocessed multi-source data of the drilled adjacent wells according to a multi-head graph attention network, and outputting a second data shape; fusing the two data shapes, constructing a multi-channel causal convolution model optimized by an annealing algorithm, performing time series advance prediction on drilling data in each drilling condition, and performing multi-condition monitoring by using a multi-dimensional shapelet identification model. The application realizes online monitoring and advance prediction, and can improve the credibility of the advance prediction result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of drilling engineering and deep learning, and in particular to a method, equipment, medium, and product for online monitoring of multiple drilling conditions. Background Technology

[0002] Currently, the task of identifying drilling operation conditions mainly involves manual monitoring of various instruments and observation of whether any abnormalities occur in the data transmitted from downhole. This relies heavily on the skills and experience of the operators and cannot achieve advanced or precise prediction.

[0003] Current research mainly focuses on training one or more machine learning or deep learning models to monitor downhole data in real time. However, the problem of predictive accuracy has not yet been solved. Although neural networks can learn the potential nonlinear relationships between multidimensional features, they lack interpretability and require a large amount of data for training beforehand. This limits the accuracy and effectiveness of predictions for complex downhole situations such as overflows, well collapses, and well leakage, where data is scarce. Insufficient data leads to a high risk of overfitting. These problems directly make traditional machine learning and neural network methods unreliable for deep well drilling sites with high investment and high risk. Summary of the Invention

[0004] The purpose of this invention is to provide a method, equipment, medium, and product for online monitoring of multiple drilling conditions, in order to solve the problems of low reliability and inability to predict drilling conditions in advance by traditional monitoring methods.

[0005] To achieve the above objectives, the present invention provides the following solution:

[0006] A method for online monitoring of multiple drilling conditions includes:

[0007] The raw multi-source data of each well in the oilfield block under different drilling conditions are preprocessed; the drilling conditions include complex conditions and conventional conditions; the raw multi-source data includes well logging data, well logging data and seismic data.

[0008] Based on the preprocessed multi-source data, a multi-dimensional candidate sub-sequence space corresponding to logging data under various drilling conditions is constructed, and shapelet feature sequences of the multi-dimensional candidate sub-sequences are extracted; the shapelet feature sequences are multi-classification feature sequences.

[0009] Each feature in the preprocessed multi-source data is used as a node in the graph structure to train a multi-channel graph attention convolutional network, which outputs the first data state and the first attention weight value obtained by dynamic calculation.

[0010] Acquire multi-source data of drilled wells within a set distance to be drilled, and preprocess the multi-source data of drilled wells;

[0011] Different adjacent wells are used as nodes in the graph structure, and the well to be drilled is used as the central node. A directed graph pointing from adjacent wells to the well to be drilled is constructed. An adjacency matrix is ​​constructed based on the well spacing. The geological information of the preprocessed multi-source data of the drilled adjacent wells is mined according to the multi-head graph attention network. The second data shape and the calculated second attention weight value are output.

[0012] By fusing the first data shape and the second data shape, a fused multi-source feature is generated;

[0013] Based on the fused multi-source features, a multi-channel causal convolution model optimized by the annealing algorithm is constructed.

[0014] Based on the shapelet feature sequence, the multi-channel causal convolution model optimized by the annealing algorithm is used to perform time-series advance prediction of drilling data under various drilling conditions, and the multi-dimensional shapelet recognition model is used to monitor the current real-time downhole data under multiple conditions.

[0015] Optionally, based on the preprocessed multi-source data, a multi-dimensional candidate sub-sequence space corresponding to the logging data under various drilling conditions is constructed, and the shapelet feature sequences of the multi-dimensional candidate sub-sequences are extracted, specifically including:

[0016] A multi-discriminator variational generation model based on multidimensional sequence shape and time-frequency information is used to augment preprocessed multi-source data under complex working conditions. The multi-discriminator variational generation model includes a variational encoder, a discriminator, and a classifier. The discriminator includes a shape measurer, a frequency domain measurer, a time series measurer, and a time-frequency measurer.

[0017] Based on the enhanced data, the start point, end point, and key turning point of the multidimensional candidate subsequence are defined, the multidimensional candidate subsequence is compressed, and a multidimensional candidate subsequence space is constructed for each drilling condition; the multidimensional candidate subsequence includes the data content of the multidimensional sequence segment, the start timestamp or the well depth value at the start, and the end timestamp or the well depth value at the end.

[0018] Based on the multidimensional candidate subsequence space, all multidimensional candidate subsequences are traversed, and the similarity value between each multidimensional candidate subsequence and the multidimensional logging data sequence under each type of drilling condition is calculated.

[0019] The minimum similarity value is used as the distance between the multidimensional candidate subsequence and the multidimensional logging data sequence under drilling conditions, and multidimensional candidate subsequences with a distance threshold are selected.

[0020] Calculate the information gain of the selected multidimensional candidate subsequences, and select the top K multidimensional candidate subsequences with the largest information gain as shapelet feature sequences; where K is the number of selections.

[0021] Optionally, the multi-channel graph attention convolutional network specifically includes: three sequentially connected graph convolutional network layers, one graph pooling layer, one batch normalization regularization layer, and two graph attention network layers; the multiple channels in the multi-channel graph attention convolutional network respectively input sequential data of three types of data: well logging data, well logging data, and seismic data, and the convolutional kernel of the graph convolutional network layer in each channel is different; the three-layer graph convolutional network layer is composed of three sequentially connected graph convolutional network layers stacked together, and the graph convolutional network layer uses a second-order Cheb polynomial as the convolutional kernel; both the three-layer graph convolutional network layer and the two-layer graph attention network layer of the multi-channel graph attention convolutional network are dynamic graphs;

[0022] The input and output data of the multi-channel graph attention convolutional network are both of the following shapes: The adjacency matrix has the following shape: Where Channel is the number of channels, N GNN1c T represents the number of nodes in the three channels. GNN_1 The length of the feature vector input for each node.

[0023] Optionally, the directed graph can be constructed as follows:

[0024] Obtain drilled adjacent wells with a set well distance threshold less than the current well, and determine the edge relationships between drilled adjacent well nodes and the current well node;

[0025] For existing wells and remaining wells within the oilfield block, construct edge relationships from injection wells to production wells;

[0026] Construct a directed graph based on the edge relationships between drilled well nodes and current well nodes, as well as the edge relationships between injection wells and production wells.

[0027] Optionally, the multi-head graph attention network includes three graph attention layers and two fully connected layers;

[0028] The shape of the input and output data of the three-layer graph attention layer is as follows: The adjacency matrix has the following shape: Where Channel represents the number of channels. The number of wells in the oilfield block is given by [reference 1], and the feature is the characteristic parameter value of each well at the current time step. The feature corresponds to the number of nodes N in the three channels of the multi-channel graph attention convolutional network. GNN1c ;

[0029] The three-layer graph attention layer executes T in a loop. tcn Next, the second data shape output by the multi-head graph attention network is

[0030] Optionally, the first data shape and the second data shape are fused to generate fused multi-source features, specifically including:

[0031] The second data shape is represented by two fully connected layers in a low-dimensional feature representation, generating a low-dimensional feature representation data shape [Channel,T]. tcn [Feature]

[0032] The data shape represented by low-dimensional features [Channel,T] tcn Swap the two and three dimensions of [Feature] and set T. GNN_1 =T tcn Transformed into the altered data shape [Channel, Feature, T] tcn ];

[0033] The data shape after the swap [Channel, Feature, T] tcn The first data shape is concatenated with the second data shape to generate a fused multi-source feature; the data shape output by the multi-channel causal convolution model optimized by the annealing algorithm is [Feature, T]. tcn ].

[0034] Optionally, a multi-channel causal convolutional model optimized by the annealing algorithm is used to perform time-series advance prediction of drilling data under various drilling conditions, and a multi-dimensional shapelet recognition model is used to monitor the current real-time downhole data under multiple conditions, specifically including:

[0035] The multi-channel causal convolutional model optimized by the annealing algorithm is used to perform time-series advance prediction of drilling data under various drilling conditions, generating advance prediction data.

[0036] An anomaly identification is performed on the advanced prediction data using a self-trained generative model constrained by prior knowledge trained on normal operating condition samples, and analysis results are obtained; the analysis results are those indicating whether abnormal drilling conditions will occur and those indicating whether abnormal drilling conditions will not occur.

[0037] If the analysis results indicate that abnormal drilling conditions will occur, a multidimensional shapelet recognition model is used to monitor the current real-time downhole data under multiple conditions.

[0038] A computer device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-described online monitoring method for multiple drilling conditions.

[0039] A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-described online monitoring method for multiple drilling conditions.

[0040] A computer program product includes a computer program that, when executed by a processor, implements the above-described online monitoring method for multiple drilling conditions.

[0041] According to specific embodiments provided by the present invention, the following technical effects are disclosed: Firstly, the present invention preprocesses multi-source data from various wells in the collected oilfield block, constructs a multi-dimensional candidate sub-sequence space corresponding to logging data under various drilling conditions, and extracts shapelet feature sequences of the multi-dimensional candidate sub-sequences for multi-condition classification and recognition. Furthermore, two multi-channel graph attention convolutional networks and a multi-head graph attention network are designed, fusing the data shapes output by the two networks. Representation learning is performed from two non-Euclidean spaces: single-well multi-dimensional features and multi-well correlation within the oilfield block, to obtain advanced predictions of drilling conditions and causal relationship displays. Based on the fused multi-source features, an annealing algorithm-optimized multi-channel causal convolutional model is constructed. Finally, based on the shapelet feature sequences, the annealing algorithm-optimized multi-channel causal convolutional model is used to perform time-series advanced predictions of drilling data under various drilling conditions, and a multi-dimensional shapelet recognition model is used to monitor current real-time downhole data under multiple conditions. This achieves interpretable online monitoring and advanced prediction based on real-time drilling data and prediction information, improving the reliability of the advanced prediction results. Attached Figure Description

[0042] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0043] Figure 1 The flowchart of the online monitoring method for multiple drilling conditions provided by the present invention is shown below;

[0044] Figure 2 This is a framework diagram of the online monitoring method for multiple drilling conditions provided by the present invention;

[0045] Figure 3 This is a diagram of the overall structure of the model;

[0046] Figure 4 A schematic diagram of the process of defining intervals for multidimensional candidate subsequences;

[0047] Figure 5 This is a multi-condition identification map based on shapelet feature sequences and downhole data;

[0048] Figure 6 This diagram illustrates how shapelet feature sequences are identified in model advance prediction. Detailed Implementation

[0049] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0050] The purpose of this invention is to provide a method, equipment, medium, and product for online monitoring of multiple drilling conditions, enabling interpretable online monitoring and advanced prediction based on real-time drilling data and predictive information, thereby improving the reliability of advanced prediction results.

[0051] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0052] Example 1

[0053] like Figure 1 As shown, the present invention provides a method for online monitoring of multiple drilling conditions, including:

[0054] Step 101: Preprocess the raw multi-source data of each well in the oilfield block under different drilling conditions; the drilling conditions include complex conditions and conventional conditions; the raw multi-source data includes logging data, well logging data and seismic data.

[0055] Step 102: Based on the preprocessed multi-source data, construct a multi-dimensional candidate sub-sequence space corresponding to the logging data under each drilling condition, and extract the shapelet feature sequence of the multi-dimensional candidate sub-sequence; the shapelet feature sequence is a multi-class feature sequence.

[0056] Step 103: Use each dimension of the preprocessed multi-source data as a node in the graph structure, train a multi-channel graph attention convolutional network, and output the first data state and the first attention weight value obtained by dynamic calculation.

[0057] Step 104: Obtain multi-source data of drilled wells within a set distance to be drilled, and preprocess the multi-source data of drilled wells.

[0058] Step 105: Using different adjacent wells as nodes in the graph structure and the well to be drilled as the central node, construct a directed graph pointing from adjacent wells to the well to be drilled. Construct an adjacency matrix based on the well spacing. Mine the geological information of the preprocessed multi-source data of the drilled adjacent wells using the multi-head graph attention network, and output the second data shape and the calculated second attention weight value.

[0059] Step 106: Fuse the first data shape and the second data shape to generate fused multi-source features.

[0060] Step 107: Based on the fused multi-source features, construct a multi-channel causal convolution model optimized by the annealing algorithm.

[0061] Step 108: Based on the shapelet feature sequence, use the multi-channel causal convolution model optimized by the annealing algorithm to perform time-series advance prediction of drilling data under various drilling conditions, and use the multi-dimensional shapelet recognition model to monitor the current real-time downhole data under multiple conditions.

[0062] Figure 2 This is a framework diagram of the online monitoring method for multiple drilling conditions provided by the present invention, as shown below. Figure 2 As shown, in practical applications, data preprocessing involves collecting raw logging and seismic data from each well in the block under different drilling conditions (including complex situations such as overflow and well leakage), and performing a series of data preprocessing operations on them.

[0063] Furthermore, the aforementioned series of data preprocessing operations includes six steps: preliminary data cleaning, missing data imputation, t-SNE visual feature compression, data smoothing and regularization, labeling of feature segments of each sequence sample, and training sample classification labeling.

[0064] Preliminary data cleaning refers to manually deleting manually labeled values ​​such as "999, -999, and garbled characters," outliers, and feature data that remain unchanged throughout the data collection process, in preparation for subsequent data filling operations.

[0065] Missing data filling refers to filling in the gaps in the data entered due to individual deletions or problems with the field instruments. This is done by taking all the feature column data of the six rows before and after the gap and performing two-dimensional cubic spline interpolation. The term "two-dimensional" means that, unlike the common practice of interpolating only the feature columns that produce missing data, this invention aims to minimize the impact of the data filling operation on the original data distribution space. In particular, when interpolating and filling multi-dimensional logging data, the changes of all feature columns at the missing data segment must be considered simultaneously.

[0066] t-SNE visual feature compression refers to using the t-SNE algorithm to compress features of high-dimensional data. As a commonly used method for data visualization dimensionality reduction and observing the separability of high-dimensional data (the characteristics of large differences between data of different categories and small differences between data of the same category), it first constructs a probability distribution in the high-dimensional space to fit the relative positional relationship between high-dimensional sample points, and then constructs a probability distribution in the low-dimensional space to fit the positional relationship between low-dimensional sample points. Then, it continuously adjusts the low-dimensional data points to make the two distributions close until they are completely similar, and finally achieves dimensionality reduction while retaining the original information.

[0067] Data smoothing and normalization refer to the use of filtering methods to denoise and normalize raw logging data. As a type of signal data, logging data is subject to distortion during downhole measurements due to potential random collisions between acoustic detection equipment and the wellbore. This curve typically contains three types of signals: long-period, short-period, and short-period. The long-period signal represents the true formation properties, while the short-period signal primarily describes thin-layer details. The short-period signal is usually random and contains interfering Gaussian noise, which needs to be removed. Therefore, this invention designs a method to sequentially perform Gaussian filtering on each dimension of the logging data, i.e., calculating the sliding window T. g The convolution operation is performed on the internal data elements, and the calculation method is as follows: gaos t For sliding windows The value after Gaussian filtering, w i and x i These are the weight parameters and well logging sequence values, respectively. For normalization, the max-min standardization method is used.

[0068] Labeling the feature segments of each sequence sample refers to using drilling log information to perform unique hot coding and labeling of the working conditions to which the logging data of each well belongs, in order to prepare for the subsequent training of supervised learning models.

[0069] Training sample labeling for different working conditions refers to creating datasets for different working conditions after the above labeling process. Each working condition dataset mainly contains sequence segments with obvious characteristics of that working condition.

[0070] Furthermore, the collected raw oilfield data includes logging, well logging, and seismic data from all wells within the block. The logging data includes 12 parameters: deep lateral resistivity, shallow lateral resistivity, neutrons, compensated density, permeability, natural gamma, sonic transit time, well diameter, well temperature, spontaneous potential, lithological density, and elastic modulus. The well logging data includes 14 parameters: hook load, drill pressure, stand pressure, pump stroke, torque, rotational speed, outlet flow rate, outlet mud density, pool volume, drill bit depth, well depth, total hydrocarbon value, drilling fluid column pressure, and annular pressure loss. The seismic data includes 6 parameters: formation velocity, rock drillability, formation pore pressure, formation fracture pressure, formation collapse pressure, and formation dip angle.

[0071] Furthermore, the drilling conditions include conventional drilling conditions and complex drilling situations. There are 16 conventional drilling conditions, namely: rotary drilling, sliding drilling, pump start-up, pump stop-down, circulation, tripping, running down, reaming, single joint connection, stationary drilling, downward well flushing, upward well flushing, directional measurement, casing running, and others. There are 12 complex drilling situations, namely: drill bit breakage, drill bit breakage, water drop, water plugging, drill bit slippage, late drill bit stage, well kick, lost circulation, wellbore collapse, sticking and slipping, drill bit jamming, and gas intrusion.

[0072] In practical applications, step 102 specifically includes: using a multi-discriminator variational generation model based on multi-dimensional sequence shape and time-frequency information to perform data augmentation on preprocessed multi-source data under complex working conditions; the multi-discriminator variational generation model includes a variational encoder, a discriminator, and a classifier; the discriminator includes a shape measurer, a frequency domain measurer, a time-series measurer, and a time-frequency measurer; delineating the start point, end point, and key turning point of the multi-dimensional candidate sub-sequences based on the augmented data, compressing the multi-dimensional candidate sub-sequences, and constructing a multi-dimensional candidate sub-sequence space for each drilling condition; the multi-dimensional candidate sub-sequences include the data content of the multi-dimensional sequence segments, the start point, end point, and key turning point, and constructing a multi-dimensional candidate sub-sequence space for each drilling condition; the multi-dimensional candidate sub-sequences include the data content of the multi-dimensional sequence segments, the start point, end point, and key turning point, and compressing the multi-dimensional candidate sub-sequences. The system uses the start timestamp or the well depth value at the beginning and the end timestamp or the well depth value at the end. Based on the multidimensional candidate subsequence space, it traverses all multidimensional candidate subsequences and calculates the similarity value between each multidimensional candidate subsequence and the multidimensional logging data sequence under each drilling condition. The minimum similarity value is used as the distance between the multidimensional candidate subsequence and the multidimensional logging data sequence under the drilling condition, and multidimensional candidate subsequences with a distance threshold are selected. The information gain of the selected multidimensional candidate subsequences is calculated, and the top K multidimensional candidate subsequences with the largest information gain are selected as shapelet feature sequences. Here, K is the number of selections.

[0073] In practical applications, the extraction and discovery of shapelet feature sequences are as follows: a multidimensional candidate subsequence space is constructed using preprocessed logging data under various working conditions, and a multi-discriminator variational generation model based on the shape and time-frequency information of the multidimensional sequence is used to perform data augmentation on complex working conditions with small sample features. Finally, the multidimensional candidate subsequences under each working condition are calculated to obtain the shapelet feature sequence, and this multi-class feature sequence is saved.

[0074] The purpose of the shapelet feature sequence extraction and discovery step is to find the multidimensional sequence features (i.e., shapelet feature sequences) that best represent the changing patterns of various drilling conditions through two processes: generation and sequential calculation. These shapelet feature sequences are then used to classify and identify various drilling conditions. Typically, the length of this shapelet feature sequence data is shorter than the preprocessed multidimensional logging sequence data, and multiple shapelet feature sequences can be used together as a set of "distinguishing methods" to identify different drilling conditions.

[0075] Among them, such as Figure 1 As shown in the section on “Extraction and Discovery of Shapelet Feature Sequences”, after receiving the data from the preprocessing operation described in S101, step 102 mainly includes three steps: using a variational generation model to perform data augmentation on complex working conditions with small sample features, defining the start and end ranges and sliding markers of multidimensional candidate subsequences to improve construction efficiency, compressing the generation space of multidimensional candidate subsequences (i.e., the process of extracting shapelet feature sequences), constructing multidimensional candidate subsequence spaces for various downhole working conditions (and complex situations), and calculating and saving the corresponding multidimensional shapelet recognition features (i.e., the process of discovering shapelet feature sequences).

[0076] The multi-discriminator variational generation model based on multidimensional sequence shape and time-frequency information for data augmentation of complex working conditions with small sample features refers to using a discriminator consisting of four metrics (shape metric D). s Frequency domain metric D f Timing Metric D t Time-frequency measuring device D r The generative model consists of a generator implemented by a variational encoder and a classifier implemented by a backpropagation neural network. It uses this generative model to generate corresponding data to augment complex drilling data with a limited sample size. Its structure is as follows: Figure 3 As shown in the upper right corner.

[0077] Furthermore, the data augmentation process is as follows:

[0078] First, the generator (i.e., variational encoder) is fixed, and each metric in the discriminator is trained sequentially using the drilling complexity samples that have undergone the data preprocessing operation in step S101.

[0079] Furthermore, the discriminator consists of four metrics, meaning that the data generated by the generator is simultaneously classified and identified by these four metrics. The similarity calculation results output by these four metrics are normalized and then summed to obtain the error value of the discriminator. Among these four metrics, the shape metric mainly focuses on the curve changes of the two sample sequences of input generated data and real data. The frequency domain metric is implemented by the Fast Fourier Transform (FFT) algorithm and mainly focuses on the difference in the spectral distribution of the two sample sequences (only concerned with the frequency domain distribution and independent of the time sequence). The time sequence metric uses an LSTM (Long Short-Term Memory) network model to classify and score the two sample sequences and mainly focuses on the relationship between the two samples in the time dimension. The time-frequency metric is implemented by the Short-Time Fourier Transform (STFT) algorithm and measures the similarity of the two samples from both time and frequency dimensions by comparing the differences in the time-frequency graphs between the two samples.

[0080] Furthermore, the shape measuring device D s This refers to using the multidimensional DTW algorithm to calculate the sequence distance between the real sample data and the generated sample data under this working condition. This measure focuses more on the similarity of the two sample data in the curve shape, hence it is called the shape measure. The output value of this measure is the similarity distance value of the two sample sequences.

[0081] Furthermore, the multidimensional DTW algorithm is a method for measuring the similarity distance between two sample sequences, modified from the traditional DTW algorithm. The traditional DTW algorithm is typically used to measure the similarity distance between two univariate sequences. Since the logging data in this invention is a multidimensional sequence and each dimension of the feature data is correlated, simply using the traditional DTW algorithm to calculate the distance between each corresponding dimension sequence and then summing them would result in the loss of this correlation. Therefore, it is necessary to modify the traditional DTW algorithm: the distance path calculation formula in the traditional DTW algorithm is... In this invention, it is changed to Q i,m It is the i-th element data in the m-th feature dimension of the Q sequence, C j,m It is the j-th element data in the m-th feature dimension of the C sequence. Since the logging data involved has been normalized in step S101, the obtained similarity distance will not be affected by the unit scale of each feature.

[0082] Furthermore, the frequency domain metric D fThis refers to using the Fast Fourier Transform (FFT) algorithm to calculate the spectral distribution of each dimension of two multidimensional sample sequences, sorting the spectral distribution results of each sample in ascending order, and then calculating the sum of the squared differences of the spectral distribution sequences of each corresponding feature dimension. The square root of this calculated value is then output as the frequency domain similarity distance.

[0083] Furthermore, the timing metric D t This refers to using a temporal network model consisting of a two-layer LSTM long short-term memory network and a fully connected layer to classify two multi-dimensional sample sequences, and using the output value of the fully connected layer as the temporal similarity distance.

[0084] Furthermore, the time-frequency measurement device D r This refers to using the Short Time Fourier Transform (STFT) algorithm to calculate the time-frequency distribution of each dimension of two multidimensional sample sequences. The data shape is (n_freq, n_time), where n_freq represents the resolution of the data in the frequency domain, and n_time represents the number of sampling points in the time dimension. The STFT algorithm is essentially a Fourier transform with a time window set. It divides the input data into several small segments, and calculates the Fourier transform in each segment to obtain the spectrum information of that segment. In this way, the input data is decomposed in time and frequency to obtain its time-frequency information. The size of the time window can be set by the user.

[0085] Then, as Figure 3 As shown in the model structure in the upper right corner, the input random variable data Z is divided into two parts, Z' and C (where Z' is still a random variable and C is an abstract code), which are then fed into the generator.

[0086] The generated data is then fed into a discriminator consisting of four metrics and a classifier using a backpropagation neural network. The discriminator and classifier each score the generated data. The classifier scores the data by classifying the two input data of the generator (abstract code C and random variable Z') and generates an error LOSS based on whether it can identify the abstract code C. The discriminator scores the data by determining whether the generated data belongs to the current working condition sample and generates an error based on the determination result.

[0087] Furthermore, for the classifier, the goal is to minimize the error between the hidden code C of the input and the classifier output C', while the goal of the discriminator is to continuously reduce the error between the distribution of the input random variable data and the distribution of the real samples under the current working conditions.

[0088] Finally, when the errors of the classifier and discriminator converge, the model training is considered complete. At this point, the generator can be used alone to generate sample data of the current working conditions to achieve data augmentation.

[0089] The process of extracting the shapelet feature sequence is as follows:

[0090] First, for the 12 complex drilling scenarios and 16 conventional drilling conditions, the collected raw logging data typically consists of thousands of rows, including numerous invalid fluctuation segments or normal drilling segments where various characteristic data show little change. Furthermore, the effective data for truly complex scenarios is usually relatively short. Therefore, it is assumed that only time series segments with a certain degree of importance are potential multidimensional candidate subsequences or final shapelet feature sequences. Thus, it is necessary to combine logging curves with information such as the start and end times of complex scenarios, drilling depth, well depth, and type of complex scenario recorded in the daily drilling report to remove a large number of invalid fluctuation segments from the early stages. The entire data segment is then divided into "invalid fluctuation intervals" and "multidimensional candidate subsequence limited intervals" (e.g.,...). Figure 4 As shown on the left), the limited interval of this multidimensional candidate subsequence is the multidimensional candidate subsequence space.

[0091] It is important to note that the minimum length of the multidimensional candidate subsequence defined interval is the start and end time or start and end depth of the drilling complexity marked in the daily report, and the maximum length is the latest point where invalid fluctuations occur in a particular sequence. Furthermore, the defined interval is usually extended forward by a small distance (e.g., ...). Figure 4 The interval defined by the multidimensional candidate subsequences shown by some logging curves includes a small segment of sequences with small fluctuations at the beginning and ends at the moment when the first sequence on the left produces the latest invalid fluctuation. In specific implementation, the threshold value of the change amplitude of "invalid fluctuation" can be freely defined according to the field conditions.

[0092] Then, based on the above-described "multidimensional candidate subsequence limit interval", a "key turning point" is set as the starting or ending point for the subsequent generation of multidimensional candidate subsequences. The setting rule is that the point is when the cumulative change over a time step exceeds a specified threshold and one of the sequences is at an extreme value (the purpose is to capture a complete sequence segment where all multidimensional sequences fluctuate and the upward or downward fluctuation segment of a certain sequence has ended, which facilitates the generation of higher quality multidimensional candidate subsequences). The purpose of setting the key turning point is to avoid generating too many similar sequence segments due to the formation of a multidimensional candidate subsequence every time step by specifying the start and end of the generation of multidimensional candidate subsequences. This greatly compresses the space of generated multidimensional candidate subsequences, reduces the time complexity of the subsequent shapelet feature sequence discovery process, and improves the screening efficiency.

[0093] Finally, using the aforementioned key inflection points as the starting and ending points for generating multidimensional candidate subsequences (a multidimensional candidate subsequence can contain multiple key inflection points), the time series is exhaustively enumerated. All the generated multidimensional candidate subsequences together constitute the multidimensional candidate subsequence space (e.g., ...). Figure 4 (As shown on the right).

[0094] Furthermore, for each multidimensional candidate subsequence S generated here, its format is a triple: the data content of this multidimensional sequence segment, the start timestamp or end well depth value of this multidimensional sequence segment, and the end timestamp or end well depth value of this multidimensional sequence segment. The purpose is to ensure that the multiple multidimensional candidate subsequences generated in the end are atomic sequences that do not contain each other (that is, when generating the final optimal shapelet feature sequence, the start and end timestamps of each sequence from the same type of working condition will be compared, and if there is a case of mutual containment, the longer sequence segment will be deleted).

[0095] The shapelet feature sequence discovery includes the following steps:

[0096] First, iterate through all the multidimensional candidate subsequences generated above, and calculate the similarity value M between each multidimensional candidate subsequence S and the multidimensional logging data sequence under each working condition. simi size.

[0097] Furthermore, due to the aforementioned multidimensional candidate subsequence S = {S1, S2, S3, ..., S...} candidate} and logging data T = {T1, T2, T3, ..., T} under a certain working condition w All of these are multidimensional sequence data (matrices), therefore the similarity value M... simi The size is calculated by using the F-norm to measure the two matrices: the multidimensional candidate subsequence and the multidimensional logging data. Since the lengths of the two multidimensional sequences are obviously different, and the latter is larger than the former, the distance between the multidimensional logging data under each working condition is calculated based on each set "key inflection point." The minimum similarity calculated between the multidimensional candidate subsequence S and the logging data T under this working condition is taken as the distance between them, i.e.:

[0098] Dist(T,S)=min (Dist(S,S'))

[0099] Where S' represents all possible sequence segments generated by T based on the set key turning points.

[0100] The formula for calculating the F-norm is as follows:

[0101]

[0102] Where A represents a matrix, a ijThis represents the value of the element in row i and column j of column A.

[0103] Then, calculate each multidimensional candidate subsequence S candidate Information gain IG s The top K multidimensional candidate subsequences with the largest gain values ​​are selected as shapelet sequences to describe this type of working condition. These are saved as the best feature sequences for this type of working condition and will be used as classification criteria in subsequent multi-working-condition classification and recognition tasks.

[0104] In particular, it is crucial to note that due to the multi-source and synchronous nature of multidimensional time series data, performing shapelet feature sequence extraction on only a single data source (well logging, well logging data, and seismic data) or a single-dimensional feature (e.g., well logging data contains 12 feature dimensions, well logging data contains 14 feature dimensions, and seismic data contains 6 feature dimensions) will inevitably lead to the loss of potential correlations between sequences, reducing the accuracy of identifying various operating conditions. For example, sometimes due to measuring instruments or other reasons, a certain feature may exhibit temporary, irregular fluctuations under normal circumstances. This is not necessarily due to an anomaly. In such cases, if all dimensions of features are considered simultaneously, it can be clearly observed that only one dimension of features is abnormal while other dimensions remain normal, thus avoiding misjudgments.

[0105] On the other hand, performing shapelet subsequence extraction on multidimensional sequence data simultaneously can significantly reduce the number of multidimensional candidate subsequences compared to constructing multidimensional candidate subsequences and calculating sequence similarity for each dimension of the sequence, thereby reducing the time complexity of shapelet subsequence extraction.

[0106] For the reasons mentioned above, the preprocessing operations such as missing data imputation, data smoothing and regularization, data augmentation, shapelet extraction, and shapelet feature sequence discovery in this invention are all performed simultaneously on multidimensional data.

[0107] Since the original shapelet brute-force search method has excessively high time complexity, several improvements have been made in this invention:

[0108] First, the t-SNE method was used in the data preprocessing stage to reduce the dimensionality of features, filtering out invalid features with little overall numerical change.

[0109] Then, during the shapelet extraction process, the multidimensional sequence is processed synchronously, the "invalid fluctuation interval" and the "multidimensional candidate subsequence limit interval" are divided, and "key turning points" are set. The purpose is to minimize the generation of multidimensional candidate subsequences, so as to reduce the multidimensional candidate subsequence space and thus reduce the time complexity. In fact, this processing can greatly reduce the number of generated sequences.

[0110] In the process of shapelet feature sequence discovery, multi-threading technology and "early abandonment" method are also used to further reduce time complexity. The "early abandonment" method refers to setting a "cached value" when calculating the similarity between two sequences to store the minimum value obtained so far or the set acceptable threshold. When the threshold is reached, the loop will stop even if the multidimensional candidate subsequence S has not been traversed and calculated with all time series T.

[0111] In practical applications, the multi-channel graph attention convolutional network specifically includes: three sequentially connected graph convolutional network layers, one graph pooling layer, one batch normalization regularization layer, and two graph attention network layers. The multi-channel inputs in the multi-channel graph attention convolutional network are sequential data of three types of data: well logging data, well logging data, and seismic data. The convolutional kernels of the graph convolutional network layers in each channel are different. The three-layer graph convolutional network layer is composed of three second-order ChebNet graph convolutional layers. Both the three-layer and two-layer graph attention network layers in the multi-channel graph attention convolutional network are dynamic graphs. Specifically, in each time slice (the length is freely set, and one time slice contains multiple time steps), the correlation between each pair of nodes is calculated based on the feature vectors of each node to determine whether an edge relationship exists. Specifically, the corresponding adjacency matrix changes dynamically over time: for example, if the correlation value between two nodes is less than the set threshold in a certain time slice, there is no edge relationship in the multiple time steps corresponding to this time slice, i.e., the element value corresponding to the two nodes in its critical matrix is ​​0; otherwise, it is 1.

[0112] The input and output data of the multi-channel graph attention convolutional network are both of the following shapes: The adjacency matrix has the following shape: Where Channel is the number of channels, N GNN1c T represents the number of nodes in the three channels. GNN_1 The length of the feature vector input for each node.

[0113] In practical applications, dynamic graph embedding representation learning involves collecting raw logging and seismic data from various wells in an oilfield block, performing data preprocessing, treating each dimension of the data under each operating condition as a node in a graph structure, training a multi-channel graph attention convolutional network MAT-GCN using the aforementioned data, and displaying the calculated dynamic graph attention weight values.

[0114] Furthermore, unlike graph convolutional networks which use a similar normalization method to calculate the weights between nodes, graph attention networks can automatically learn the weights between nodes (i.e., the relative importance of nodes). Therefore, by displaying these weight values, it is possible to intuitively explain how much each node contributes to the current output of the model, thus improving the interpretability of the model. The graph attention network can be visualized from the perspectives of multi-dimensional features and the correlation between multiple wells within a block.

[0115] Furthermore, the multi-channel graph attention convolutional network mainly consists of three graph convolutional network layers, one graph pooling layer, one batch normalization regularization layer, and two graph attention network layers connected in sequence. The term "multi-channel" refers to the fact that for the three parts of input sequence data—well logging, well logging, and seismic data—three channels are used corresponding to each part of the sequence data because the potential relationships between each part of the data may be different. The graph convolutional network of each channel can be set with different convolutional kernel sizes (i.e., multi-scale convolutional kernels).

[0116] Furthermore, the input data for each node in the multi-channel graph attention convolutional network is a one-dimensional feature sequence from the three multi-dimensional sequence data of well logging, well logging, or seismic data, that is, the number of nodes N in the three channels of the multi-channel graph attention convolutional network. GNN1_c The values ​​are 12, 14, and 6 respectively (corresponding to 12-dimensional logging parameter characteristics, 14-dimensional logging parameter characteristics, and 6-dimensional seismic parameter characteristics), therefore Channel = 3 (i.e., the number of channels), T GNN_1 This represents the length of the feature vector input to each node (i.e., the length of each feature dimension in T). GNN_1 (Data recorded at each time step), the input and output data shapes of the graph convolutional network layer and the graph attention network layer are consistent. The multi-channel graph attention convolutional network MAT-GCN accepts input and output data shapes that are both... The adjacency matrix has the following shape:

[0117] Furthermore, in the graph convolutional network layer, each node in the graph will be traversed sequentially according to the adjacency matrix A, and the two steps of fusing the information of its neighboring nodes and then updating the information of its own node will be performed sequentially.

[0118] Furthermore, the graph convolution operation used in this invention is a second-order ChebNet graph convolution by default (different orders can be set in each channel). Since the number of nodes in the graph neural network in this invention is not large, the time complexity will not be too large due to the second-order graph convolution operation.

[0119] Furthermore, the second-order ChebNet graph convolution refers to the following: for a graph structure with N nodes, each node having F features (F is 12 in the channel containing well logging parameters, 14 in the channel containing well logging parameters, and 6 in the channel containing seismic parameters), it forms an N-row, F-dimensional matrix A, and also an N-row, N-column adjacency matrix to describe the relationships between nodes in the graph topology. If any two nodes have an edge relationship, the corresponding value is 1; otherwise, it is 0. The inter-layer propagation method of the second-order ChebNet graph convolution is as follows: in I is the identity matrix. for The degree matrix, H (l) The output of the previous layer is represented by H = X, and σ is the activation function. The main difference between the second-order ChebNet graph convolution and the first-order convolution lies in the degree to which it considers the proximity relationships of the current node in the graph. The first-order ChebNet graph convolution only considers the feature information of each node itself and its first-order neighbors to update the feature representation of the current node. The second-order ChebNet graph convolution, however, considers the second-order proximity relationships of the nodes; that is, in addition to considering the node itself and its first-order neighbors, it also considers the second-order neighbors of each node. This allows for more efficient use of the local structural information between nodes, improving the graph convolutional network's ability to model complex graph structures.

[0120] Furthermore, the dynamic graph refers to the adjacency matrix used, which is not fixed after its establishment. Instead, at each time step, the edge relationships are dynamically constructed by calculating the correlation between the feature vectors of each node based on their feature vectors. That is, in each time step of the iterative cycle, the edge relationships between each node in the graph are dynamically changing. Specifically, after the input data passes through each layer of the graph neural network of the multi-channel graph attention convolutional model, the edge relationships between each feature dimension (each node in the graph) are recalculated at time T of the input. GNN_1 The correlation between length data is used as the condition for establishing edge relationships between nodes in the next layer of the graph neural network. That is, when the correlation between two nodes exceeds a set threshold, the edge relationship between these two nodes in the adjacency matrix graph is established or maintained; otherwise, the edge relationship is deleted.

[0121] The correlation between the feature vectors of each node is calculated by using the Pearson correlation coefficient to measure the sequence similarity between any two nodes. For example, for two node sequences T1 and T2, both of length n, the Pearson correlation coefficient is calculated as follows:

[0122] Furthermore, in the graph attention layer, the attention coefficients of each node in the graph and its directly adjacent nodes are calculated sequentially according to the adjacency matrix. These attention coefficients are then processed by an activation function and normalized. For example, the attention coefficient e is obtained by calculating the attention coefficients e of node a and its two directly adjacent nodes b. ab =ω([Wh a ||Wh b Then, normalized softmax is performed on the multiple calculated attention coefficients. Where Wh a This indicates the use of trainable public hyperparameters W on h a Performing a linear transformation, || refers to transforming Wh a and Wh b The calculation results are concatenated, where ω refers to mapping the concatenated high-dimensional features to a real number.

[0123] It should be noted that the calculated first attention weight value refers to the result of the calculation of the last layer of the graph attention network (including the weight values ​​of all nodes in the entire graph) visualized using a heatmap, as shown in the image. Figure 3 Top left corner "Based on different features F" m The text appears to be a mix of seemingly unrelated phrases and sentences, making it impossible to translate coherently. It seems to be a collection of fragments from various sources, possibly related to graph nodes, graph attention convolutional networks, and graph attention networks.

[0124] Furthermore, the graph pooling layer and the BatchNormalization regularization layer are both methods that reduce the spatial dimension of the input data, extract key features to reduce the overall computational cost of the model and prevent overfitting, thereby enhancing the robustness and generalization ability of the model.

[0125] Furthermore, the graph pooling layer is set to average pooling with a pooling window size of 2×2 and a sliding window stride of 1.

[0126] Furthermore, the BatchNormalization regularization layer refers to transforming the data within a batch into a distribution with a mean of 0 and a variance of 1. Its purpose is to normalize the multidimensional input data to accelerate the model convergence speed, make the feature data of different dimensions numerically comparable, keep the mean and variance of the input data within a relatively stable range by standardizing the distribution of the input data, and control the complexity of the network to reduce the risk of overfitting.

[0127] In practical applications, the directed graph is constructed as follows: obtain drilled wells with a set well distance threshold less than the current well, and determine the edge relationships between drilled well nodes and the current well node; for drilled wells and the remaining wells in the oilfield block, construct the edge relationships between water injection wells and production wells; construct a directed graph based on the edge relationships between drilled well nodes and the current well node, as well as the edge relationships between water injection wells and production wells.

[0128] Furthermore, the constructed directed graph refers to establishing graph topology relationships based on the well spacing and well attributes (production wells or injection wells) within the block. First, it identifies drilled adjacent wells with a spacing less than a set threshold, establishing edges from adjacent well nodes to the current well node. Then, for adjacent wells and other wells within the block, it constructs edges from injection wells to production wells. At this point, the directed graph is complete. Figure 3 Top left corner "Based on current well and adjacent well W" n As shown in the "Multi-head Graph Attention Network" section, the graph contains nodes with bidirectional pointing and isolated nodes without pointing. These isolated nodes do not participate in subsequent calculations, therefore their weight is 0. Figure 3 The top part is represented by white.

[0129] Furthermore, the difference between directed and undirected graphs is that, for example, in the adjacency matrix of a directed graph, if node A1 points to node A2, the value in the first row and second column is 1, and the value in the second row and first column is 0. However, in the adjacency matrix of an undirected graph, if there is an edge relationship between node A1 and node A2, the values ​​in the first row and second column and the second row and first column are both 1.

[0130] In practical applications, the multi-head graph attention network includes three graph attention layers and two fully connected layers; the input and output data of the three graph attention layers have the following shapes: The adjacency matrix has the following shape: Where Channel represents the number of channels. The number of wells in the oilfield block is given by [reference 1], and the feature is the characteristic parameter value of each well at the current time step. The feature corresponds to the number of nodes N in the three channels of the multi-channel graph attention convolutional network. GNN1c The three-layer graph attention layer executes T cyclically. tcn Next, the second data shape output by the multi-head graph attention network is

[0131] Furthermore, potential stratigraphic information hidden in the well logging and seismic data is aggregated into the current well through graph attention calculation. The graph attention calculation method is the same as the graph attention calculation formula in step 103. The multi-head graph attention network in step 105 includes three graph attention layers and two fully connected layers.

[0132] Specifically, unlike the input-output shape of the MAT-GCN model in step 103, the input and output data shapes of each layer in the three-layer graph attention layer in step 105 are all different. The third layer is The adjacency matrix has the following shape: in This indicates the number of wells within the block. "Feature" represents the characteristic parameter values ​​of each well at the current time step (similar to the multi-layer graph network in step 103, here divided into three channels: well logging data, well logging data, and seismic data, i.e., Channel = 3; the number of wells in each channel). Similarly, the feature sizes of the three channels in this step correspond to the output of step 103. The values ​​(i.e., 12 well logging parameter features, 14 well logging parameter features, and 6 seismic parameter features) are used in this invention to cyclically execute T on the three-layer graph attention layer. tcn Next, the cumulative composition is obtained. The data shape is the output shape of the multi-head graph attention network in step 105.

[0133] In practical applications, step 106 specifically includes: using two fully connected layers to perform low-dimensional feature representation of the second data shape, generating a low-dimensional feature representation data shape [Channel,T]. tcn [,Feature]; The data shape [Channel,T] representing low-dimensional features. tcn Swap the two and three dimensions of [Feature] and set T. GNN_1 =T tcn Transformed into the altered data shape [Channel, Feature, T] tcn ]; The swapped data shape [Channel, Feature, T] tcn The first data shape is concatenated with the second data shape to generate a fused multi-source feature; the data shape output by the multi-channel causal convolution model optimized by the annealing algorithm is [Feature, T]. tcn ].

[0134] In practical applications, step 108 specifically includes: using the multi-channel causal convolution model optimized by the annealing algorithm to perform time-series advance prediction of drilling data under various drilling conditions, generating advance prediction data; using a self-trained generation model trained based on prior knowledge constraints from normal operating condition samples to perform anomaly identification on the advance prediction data, obtaining analysis results; the analysis results are either abnormal drilling conditions that will occur or no abnormal drilling conditions that will occur; if the analysis results indicate that abnormal drilling conditions will occur, a multi-dimensional shapelet recognition model is used to monitor the current real-time downhole data under multiple operating conditions.

[0135] Furthermore, the output of the dynamic graph embedding representation learning model (i.e., multi-channel graph attention convolutional network) in step 103 and the output of the well information mining model (i.e., multi-head graph attention network) in step 105 are fused with multi-source features and used as input to the multi-channel causal convolutional model SA-TCN optimized by the annealing algorithm.

[0136] Furthermore, the SA-TCN annealing algorithm-optimized multi-channel causal convolutional model refers to using the SA annealing algorithm to globally optimize the hyperparameters of the TCN causal convolutional network. The SA algorithm can escape local optima during the search process. Compared with the manual setting method, it can find the optimal parameter combination of the non-convex feature objective function with multiple peaks. The algorithm achieves a balance between exploratory search and local optimization by gradually reducing its "temperature" value, thereby improving the training and optimization efficiency of the model.

[0137] The SA annealing algorithm optimizes the TCN network by first setting the range of five hyperparameters during training: kernel size (which determines the receptive field size of each convolutional layer), number of kernels, number of convolutional layers, learning rate (which controls the step size of model parameter updates), and dropout value. Each time, these five randomly selected hyperparameters are substituted into the TCN model to make predictions and obtain the error value between the prediction and the true value. This error value is set as the fitness function (i.e., the optimization target value) of the SA annealing algorithm. The energy value of the SA annealing algorithm is continuously calculated iteratively to calculate the energy difference. The Metropolis criterion is used to determine whether to accept a new solution, and then the next iteration calculation process begins.

[0138] Furthermore, the feature fusion refers to transforming the shape output in step 103 into... The data and the output shape of step 105 are The data is merged and stitched together into [Channel, T] tcn The input shape of [Feature] is used as the input data shape for the SA-TCN model. Since step 103 treats each dimension of the feature in different channels as a graph node, it is known that N... GNN1c =Feature.

[0139] Specifically, the feature fusion process in one embodiment of the present invention is as follows: First, two fully connected layers are used to receive and perform low-dimensional feature representation on the output data of the three graph attention layers, that is, the data shape is changed from the output in step 105. The mapping output is [Channel, T] tcn [Feature], then swap its second and third dimensions and set T. GNN_1 =T tcnThat is, at this point, the output data shape of step 105 becomes [Channel, Feature, T]. tcn At this point, its shape is the same as in step 103. The data from the two steps are concatenated in the second dimension to obtain a data shape of [Channel, 2*Feature, T]. tcn The input data shape of the trained SA-TCN model is used for time series prediction, where channel = 3. The SA-TCN model is used to make predictions in each of these 3 channels. The output data shape of the SA-TCN model is [Feature, T]. tcn This system enables dynamic embedding representation learning of drilling multi-dimensional feature graphs that integrate multi-source feature information from well logging, seismic logging, and other sources, as well as the mining and aggregation of multi-well information from oilfield blocks.

[0140] Furthermore, online monitoring and advance prediction of the model: The shapelet multi-condition recognition model is used to monitor real-time downhole data; at the same time, advance prediction is performed based on the above graph time series fusion model, and the first attention weight value of each node in the above graph attention convolutional network is visualized to enhance the interpretability of model prediction.

[0141] Furthermore, the use of the shapelet multi-condition identification model to monitor real-time downhole data refers to using the shapelet feature sequence obtained in step 102 to perform multi-class identification of drilling conditions: using the obtained shapelet feature sequences under various conditions to calculate the similarity distance of the real-time drilling data on site, the condition type corresponding to the shapelet feature sequence with the highest similarity to the real-time condition data is the identified current condition.

[0142] Furthermore, the advance prediction based on the above graph time-series fusion model is as follows: Figure 3 The following describes the process method described in steps 103 to 105, which uses the MAT-GCN model (multi-channel graph attention convolutional network) described in step 103 (dynamic graph embedding representation learning), the multi-head graph attention network model described in step 105 (well information mining), and the SA-TCN model described in step S105 to perform time-series advance prediction based on the current real-time downhole monitoring data.

[0143] Furthermore, the visualization of the first attention weight values ​​of each node in the graph attention convolutional network mentioned above refers to the visualization of the attention weight values ​​of all nodes in the entire graph output and saved by the last layer of the multi-channel graph attention convolutional network MAT-GCN model described in step 103, and the second attention weight values ​​of all nodes in the entire graph output and saved by the last layer of the multi-head graph attention network model described in step 105, using a heatmap format. The effect is as follows: Figure 3 The two graphs on the left, one above the other, illustrate neural networks.

[0144] In practical applications, the interpretable and rapid identification of multiple working conditions (including complex situations) in downhole is achieved as follows: Based on advance prediction, a self-trained generative model constrained by prior knowledge trained on normal working condition samples is used to quickly identify anomalies in the advance prediction data, thereby obtaining a rapid analysis result of whether an abnormal drilling condition will occur. If an anomaly is determined to occur, a multi-working-condition identification model based on shapelet feature sequences is used to perform interpretable identification of the advance prediction results.

[0145] Furthermore, the self-trained generative model based on prior knowledge constraints trained using normal operating condition samples refers to training each module of the generative model using only logging and seismic data from 16 conventional drilling operation conditions (hereinafter referred to as normal operating conditions), without using 12 complex downhole conditions (hereinafter referred to as abnormal operating conditions) where samples are difficult to obtain and the data volume is small. Figure 3 The section below the overall model structure diagram, titled "Self-trained Prior Constraint Generative Network: Reconstruction and Fast Identification of Anomalies," shows that the generative model primarily includes a generator E (containing an encoder G). E and decoder G D It consists of three parts: a prior knowledge constraint (a three-layer LSTM long short-term memory network), and a discriminator D (composed of a three-layer LSTM network).

[0146] Wherein, the encoder G E and decoder G D The constructed autoencoder belongs to the unsupervised learning model. It completes the learning process by compressing the input data into a latent representation (encoding) and then reconstructing the output data (decoding). The Frobenius norm is used as the loss function to minimize the distance between the input sequence and the reconstructed output sequence of the autoencoder, and it is used as the loss function Loss1 of the autoencoder.

[0147] The prior knowledge constraint refers to a representation model trained with a relatively small number of feature parameters. Its purpose is to embed the learned abstract feature vectors into the hidden encoding space between the encoder and decoder in the autoencoder. This is because, under normal operating conditions, it is not necessary to use all logging and seismic feature parameters (12 logging parameters, 14 logging parameters, and 6 seismic parameters). Therefore, a subset of feature parameters relevant to normal operating conditions is used to train the prior knowledge constraint (a three-layer LSTM long short-term memory network), resulting in a model of length L. lstm The abstract feature vectors are embedded into the implicit coding space in a concatenated manner, which helps the decoder in the autoencoder to reconstruct and restore the information input to the encoder more quickly and effectively.

[0148] The self-trained generative model is mainly divided into two parts during training:

[0149] First, the encoder G was trained using data containing 16 common drilling operation conditions. E and decoder G D The constructed autoencoder, and the prior knowledge constraint obtained by training the selected partial feature parameters, has a length of L. lstm The abstract feature vectors are embedded into the encoding space of the autoencoder to accelerate the training and error convergence speed of the autoencoder.

[0150] Meanwhile, the discriminator D was trained using sample data that mixed 16 common drilling operation conditions (normal conditions). Together with the generator E, it formed a generative adversarial model. During the adversarial training process, the generator E would try its best to prevent the discriminator D from distinguishing between generated data and real data, while the discriminator D would do the opposite and try its best to distinguish whether the output data of the generator E was real data or generated data. This constitutes an adversarial training method.

[0151] Furthermore, the rapid identification of abnormal operating conditions refers to the fact that, compared to using the shapelet feature sequence recognition method for detailed anomaly classification, the self-trained prior constraint generation network can first determine whether an anomaly will occur based on the advance prediction results. After determining that an anomaly will occur, the multi-dimensional shapelet recognition method is then used to identify multiple operating conditions, thereby achieving the effect of rapid anomaly identification and early warning.

[0152] Furthermore, the interpretable identification of drilling advance prediction results based on the shapelet multi-condition identification model refers to, for example... Figure 5 , Figure 6As shown, when the self-trained prior constraint generation network determines that an abnormal working condition will occur based on the advance prediction results, the shapelet feature sequence recognition method is used to identify multiple working conditions in complex downhole situations, and the shapelet matching segment is highlighted in the advance prediction curve of the logging well. This method is something that traditional machine learning and deep learning neural network methods cannot achieve. The weak interpretability is also one of the biggest drawbacks of current neural network methods. The drilling multi-working-condition online monitoring method provided by this invention can perform interpretable identification of anomalies in the clearest and most straightforward way, and display the reasoning for the decision while outputting the advance prediction results.

[0153] This invention comprises seven parts: data preprocessing, shapelet feature sequence extraction and discovery, dynamic graph embedding representation learning, wellhead information mining, multi-source feature fusion, online monitoring and advanced prediction, and interpretable and rapid identification of multiple operating conditions. Based on actual oilfield scenarios, various deep learning models were designed and optimized. In particular, a multi-dimensional shapelet recognition and accelerated discovery method was designed from the perspective of actual drilling engineering conditions to address the problem of weak interpretability of deep learning models. Two graph neural networks and an improved time-series model were integrated to enhance the causal relationship prediction and the aggregation capability of multi-source feature information from wellheads. A small-sample training and rapid identification method for abnormal operating conditions was also designed. This invention solves the problems of existing technologies being unable to quickly and accurately identify multiple drilling operating conditions (including complex downhole situations), the insufficient interpretability of existing operating condition identification neural network models, the difficulty in intuitively representing the causal relationship of prediction results, and the inability to effectively learn small-sample abnormal operating condition information. Ultimately, it achieves real-time monitoring and advanced prediction of drilling operating conditions by integrating multi-source feature information from wellheads, as well as small-sample interpretable and rapid classification of multiple operating conditions (including complex situations such as overflow and well leakage).

[0154] Example 2

[0155] A computer device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the online monitoring method for multiple drilling conditions in Embodiment 1.

[0156] Example 3

[0157] A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the online monitoring method for multiple drilling conditions in Embodiment 1.

[0158] Example 4

[0159] A computer program product includes a computer program that, when executed by a processor, implements the online monitoring method for multiple drilling conditions in Embodiment 1.

[0160] Example 5

[0161] A computer program product includes a computer program that, when executed by a processor, implements the online monitoring method for multiple drilling conditions in Embodiment 1.

[0162] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the systems disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple; relevant parts can be referred to the method section.

Claims

1. A method for online monitoring of multiple drilling conditions, characterized in that, include: Preprocessing of raw multi-source data from various wells in the oilfield block under different drilling conditions; The drilling conditions include complex conditions and conventional conditions; The original multi-source data includes well logging data, well logging data, and seismic data; Based on the preprocessed multi-source data, a multi-dimensional candidate sub-sequence space corresponding to logging data under various drilling conditions is constructed, and shapelet feature sequences of the multi-dimensional candidate sub-sequences are extracted; the shapelet feature sequences are multi-classification feature sequences. Each feature in the preprocessed multi-source data is used as a node in the graph structure to train a multi-channel graph attention convolutional network, and the first data form and the first attention weight value obtained by dynamic calculation are output. The multi-channel graph attention convolutional network specifically includes: three sequentially connected graph convolutional network layers, one graph pooling layer, one batch normalization regularization layer, and two graph attention network layers. The multiple channels of the multi-channel graph attention convolutional network respectively input sequential data of three types of data: well logging data, well logging data, and seismic data. The convolutional kernels of the graph convolutional network layers in each channel are different. The three-layer graph convolutional network layer is composed of three sequentially connected stacked graph convolutional network layers, and the graph convolutional network layer uses a second-order Cheb polynomial as the convolutional kernel. Both the three-layer graph convolutional network layer and the two-layer graph attention network layer of the multi-channel graph attention convolutional network are dynamic graphs. The input and output data of the multi-channel graph attention convolutional network are both of the following shapes: The adjacency matrix has the following shape: ;in, For the number of channels, This represents the number of nodes in the three channels. The length of the feature vector input for each node; Acquire multi-source data of drilled wells within a set distance to be drilled, and preprocess the multi-source data of drilled wells; Different adjacent wells are used as nodes in the graph structure, and the well to be drilled is used as the central node. A directed graph pointing from adjacent wells to the well to be drilled is constructed. An adjacency matrix is ​​constructed based on the well spacing. The geological information of the preprocessed multi-source data of the drilled adjacent wells is mined according to the multi-head graph attention network. The second data shape and the calculated second attention weight value are output. The multi-head graph attention network includes three graph attention layers and two fully connected layers. The shapes of the input and output data of the three-layer graph attention layer are as follows: The adjacency matrix has the following shape: ;in, For the number of channels, The number of wells within the oilfield block. These are the characteristic parameter values ​​for each well at the current time step. The number of nodes corresponding to the three channels in the multi-channel graph attention convolutional network ; The three-layer graph attention layer executes cyclically. Next, the second data shape output by the multi-head graph attention network is ; By fusing the first data shape and the second data shape, a fused multi-source feature is generated; Based on the fused multi-source features, a multi-channel causal convolution model optimized by the annealing algorithm is constructed. Based on the shapelet feature sequence, the multi-channel causal convolution model optimized by the annealing algorithm is used to perform time-series advance prediction of drilling data under various drilling conditions, and the multi-dimensional shapelet recognition model is used to monitor the current real-time downhole data under multiple conditions.

2. The online monitoring method for multiple drilling conditions according to claim 1, characterized in that, Based on the preprocessed multi-source data, a multidimensional candidate subsequence space corresponding to logging data under various drilling conditions is constructed, and the shapelet feature sequences of the multidimensional candidate subsequences are extracted, specifically including: A multi-discriminator variational generation model based on multidimensional sequence shape and time-frequency information is used to augment preprocessed multi-source data under complex working conditions. The multi-discriminator variational generation model includes a variational encoder, a discriminator, and a classifier. The discriminator includes a shape measurer, a frequency domain measurer, a time series measurer, and a time-frequency measurer. Based on the enhanced data, the start point, end point, and key turning point of the multidimensional candidate subsequence are defined, the multidimensional candidate subsequence is compressed, and a multidimensional candidate subsequence space is constructed for each drilling condition; the multidimensional candidate subsequence includes the data content of the multidimensional sequence segment, the start timestamp or the well depth value at the start, and the end timestamp or the well depth value at the end. Based on the multidimensional candidate subsequence space, all multidimensional candidate subsequences are traversed, and the similarity value between each multidimensional candidate subsequence and the multidimensional logging data sequence under each type of drilling condition is calculated. The minimum similarity value is used as the distance between the multidimensional candidate subsequence and the multidimensional logging data sequence under drilling conditions, and multidimensional candidate subsequences with a distance threshold are selected. Calculate the information gain of the selected multidimensional candidate subsequences, and select the top K multidimensional candidate subsequences with the largest information gain as shapelet feature sequences; where K is the number of selections.

3. The online monitoring method for multiple drilling conditions according to claim 1, characterized in that, The directed graph is constructed as follows: Obtain drilled adjacent wells with a set well distance threshold less than the current well, and determine the edge relationships between drilled adjacent well nodes and the current well node; For existing wells and remaining wells within the oilfield block, construct edge relationships from injection wells to production wells; Construct a directed graph based on the edge relationships between drilled well nodes and current well nodes, as well as the edge relationships between injection wells and production wells.

4. The online monitoring method for multiple drilling conditions according to claim 1, characterized in that, By fusing the first data shape and the second data shape, a fused multi-source feature is generated, specifically including: The second data shape is represented by two fully connected layers to generate a low-dimensional feature representation of the data shape. ; The shape of data represented by low-dimensional features Swap the two and three dimensions and set... Transformed into the altered data shape ; Rearranged data shape The data is concatenated with the first data shape to generate fused multi-source features; the data shape output by the multi-channel causal convolution model optimized by the annealing algorithm is... .

5. The online monitoring method for multiple drilling conditions according to claim 1, characterized in that, The multi-channel causal convolutional model optimized by the annealing algorithm is used to perform time-series forward prediction of drilling data under various drilling conditions, and a multi-dimensional shapelet recognition model is used to monitor the current real-time downhole data under multiple conditions, specifically including: The multi-channel causal convolutional model optimized by the annealing algorithm is used to perform time-series advance prediction of drilling data under various drilling conditions, generating advance prediction data. An anomaly identification is performed on the advanced prediction data using a self-trained generative model constrained by prior knowledge trained on normal operating condition samples, and analysis results are obtained; the analysis results are those indicating whether abnormal drilling conditions will occur and those indicating whether abnormal drilling conditions will not occur. If the analysis results indicate that abnormal drilling conditions will occur, a multidimensional shapelet recognition model is used to monitor the current real-time downhole data under multiple conditions.

6. A computer device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor executes the computer program to implement the online monitoring method for multiple drilling conditions as described in any one of claims 1-5.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program implements the online monitoring method for multiple drilling conditions as described in any one of claims 1-5.

8. A computer program product, comprising a computer program, characterized in that, When executed by a processor, the computer program implements the online monitoring method for multiple drilling conditions as described in any one of claims 1-5.