Compression and decompression method, device, electronic equipment and medium for logging while drilling data

Through nonlinear quantization processing and convolutional autoencoder technology, the problems of low compression ratio and high reconstruction error rate of logging while drilling data are solved, efficient data compression and decompression is achieved, and real-time processing and transmission are supported.

CN118210810BActive Publication Date: 2024-08-27WUHAN UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410640615.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2024-08-27
Estimated Expiration
2044-05-22

AI Technical Summary

Technical Problem

The compression ratio of logging while drilling data in the existing technology is low and the reconstruction error rate is high, which cannot meet the needs of real-time transmission and accurate restoration.

Method used

Nonlinear quantization processing and target convolutional autoencoders are used to compress and decompress logging-while-drilling data, convolutional neural networks are used to extract data features, and self-attention modules are combined to capture long-distance dependencies. Through convolutional layers and pooling Layers perform feature merging and mapping to achieve efficient data compression and decompression.

Benefits of technology

It improves the compression ratio of logging while drilling data and reduces the reconstruction error rate, ensuring data consistency and accuracy, and supporting real-time processing and transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118210810B
    Figure CN118210810B
Patent Text Reader

Abstract

The invention discloses a compression and decompression method, device, electronic equipment and medium for logging while drilling data, belonging to the technical field of data compression. The method comprises: performing nonlinear quantization processing on the logging while drilling data to obtain a logging while drilling data chart; performing compression processing on the logging while drilling data chart based on a well-trained target convolutional autoencoder to obtain a logging while drilling floating-point number; performing decompression processing on the logging while drilling floating-point number based on a well-trained target decoder to obtain a reconstructed data chart; performing inverse quantization processing on the reconstructed data chart to obtain decompressed logging while drilling data; performing compression processing on the logging while drilling data chart by using a target convolutional autoencoder, and performing feature extraction on the logging while drilling data chart by using a convolutional neural network model, thereby greatly improving the compression ratio of the logging while drilling data; since the target decoder and the target convolutional autoencoder are in an inverse relationship, the reconstruction error rate of the logging while drilling data can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data compression, and in particular to a method, device, electronic equipment and medium for compressing and decompressing logging while drilling data. Background Art

[0002] In the process of oil and gas field exploration and development, logging must be carried out after drilling, that is, instruments are placed into the well with cables to understand the oil and gas content of the formation. However, in some cases, such as high-angle wells with an inclination of more than 65 degrees or even horizontal wells, it is difficult to place instruments with cables. Therefore, logging while drilling (LWD) is now mostly used for mining to understand various parameters in the formation in real time and adjust the drill bit trajectory in real time.

[0003] At present, LWD data is usually transmitted to the wellbore (ground) through mud pulse telemetry technology. This technology is usually limited to a data transmission rate (bandwidth) of only a few bits per second. Since the rate at which LWD imaging sensors generate data is usually much higher than the rate at which it is transmitted to the ground, the borehole image is usually processed based on the data stored in the memory only after the tool is removed from the borehole. In other words, it is difficult to process the data of the LWD imaging sensor in real time. In the prior art, in order to perform real-time processing of logging while drilling data, a KL-AEO compression algorithm is proposed for data compression, but the achievable compression is relatively low and cannot meet the needs of real-time transmission, and the reconstruction error rate is high, and the data cannot be accurately restored.

[0004] Therefore, in the prior art, in the process of compressing the LWD data, there are problems of low compression ratio and high reconstruction error rate. Summary of the invention

[0005] In view of this, it is necessary to provide a compression and decompression method, device, electronic device and medium for logging while drilling data to solve the problems of low compression ratio and high reconstruction error rate in the process of compressing logging while drilling data in the prior art.

[0006] In order to solve the above problems, the present invention provides a method for compressing and decompressing logging while drilling data, comprising:

[0007] Perform nonlinear quantitative processing on the logging while drilling data to obtain the logging while drilling data chart;

[0008] Based on the trained target convolutional autoencoder, the LWD data chart is compressed to obtain the LWD floating point number.

[0009] Decompress the floating point data of LWD based on the trained target decoder to obtain the reconstructed data chart;

[0010] The reconstructed data chart is dequantized to obtain the decompressed LWD data.

[0011] In a possible implementation, nonlinear quantitative processing is performed on the logging while drilling data to obtain a logging while drilling data chart, including:

[0012] The LWD data are intercepted and grouped according to a preset time window size to obtain a plurality of LWD data vectors;

[0013] Performing logarithmic transformation, linear quantization and truncation processing on the data in each LWD data vector in turn to obtain a corresponding plurality of quantized LWD data vectors;

[0014] A LWD data chart is constructed based on the quantized LWD data vector.

[0015] In a possible implementation, the data in each LWD data vector is subjected to logarithmic transformation, linear quantization and truncation processing in sequence to obtain a corresponding plurality of quantized LWD data vectors, including:

[0016] Adding the data in the LWD data vector to the preset basic value and performing logarithmic transformation to obtain logarithmic data;

[0017] According to the preset maximum and minimum values, the linear mapping formula is combined to perform linear processing on the logarithmic data to obtain linear quantized data;

[0018] Only the integer part of the linear quantized data is retained to obtain truncated data, and the quantized LWD data vector is determined based on the truncated data.

[0019] In a possible implementation, the target convolutional autoencoder includes a convolutional layer, a pooling layer, a first activation function and a self-attention module; based on the fully trained target convolutional autoencoder, the LWD data chart is compressed to obtain the LWD floating point number, including:

[0020] Extract local features of LWD data charts through convolutional layers;

[0021] The local features are modified through the self-attention module to capture the long-range dependencies of the LWD data chart;

[0022] The local features are merged through the pooling layer to obtain the pooling features;

[0023] The first activation function is used to map the LWD floating point numbers according to the pooling features and long-distance dependencies.

[0024] In a possible implementation, the target decoder includes a deconvolution layer, a depooling layer, and a second activation function; based on the fully trained target decoder, the LWD floating point number is decompressed to obtain a reconstructed data chart, including:

[0025] The floating point numbers of LWD are upsampled through the anti-pooling layer to obtain the anti-pooled LWD data;

[0026] The deconvolution layer is used to perform image restoration processing on the de-pooled LWD data to obtain a deconvolution LWD image;

[0027] The reconstructed data chart is mapped out according to the deconvolution LWD image through the second activation function.

[0028] In a possible implementation, the reconstructed data chart is dequantized to obtain decompressed LWD data, including:

[0029] The data in the reconstructed data chart are subjected to inverse mapping, inverse digital transformation and rounding processing in sequence to obtain decompressed logging while drilling data.

[0030] In order to solve the above problems, the present invention also provides a compression and decompression device for logging while drilling data, comprising:

[0031] A nonlinear quantitative processing module is used to perform nonlinear quantitative processing on the logging while drilling data to obtain a logging while drilling data chart;

[0032] A compression module is used to compress the LWD data chart based on the trained target convolutional autoencoder to obtain the LWD floating point number;

[0033] A decompression module is used to decompress the floating point numbers of logging while drilling based on a well-trained target decoder to obtain a reconstructed data chart;

[0034] The inverse quantization processing module is used to perform inverse quantization processing on the reconstructed data chart to obtain decompressed logging while drilling data.

[0035] In a possible implementation, the device includes: an encoder and a decoder, where the encoder and the decoder can be separated and connected via a signal;

[0036] Wherein, the encoder includes a nonlinear quantization processing module and a compression module;

[0037] The decoder includes a decompression module and an inverse quantization processing module.

[0038] In order to solve the above problem, the present invention further provides an electronic device, including a memory and a processor, wherein:

[0039] Memory, used to store programs;

[0040] The processor is coupled to the memory and is used to execute the program stored in the memory to implement the steps in the method for compressing and decompressing logging while drilling data as described above.

[0041] In order to solve the above problems, the present invention also provides a computer-readable storage medium for storing a computer-readable program or instruction, which, when executed by a processor, can implement the steps in the method for compressing and decompressing logging while drilling data as described above.

[0042] The beneficial effects of adopting the above embodiment are as follows: the present invention provides a method for compressing and decompressing logging while drilling data, by performing nonlinear quantization processing on the logging while drilling data, so that the logging while drilling data can retain data features while also having image features; the logging while drilling data chart is compressed by a target convolutional autoencoder, and the feature extraction of the logging while drilling data chart is performed using a convolutional neural network model to obtain a logging while drilling floating point number as a data result, thereby greatly improving the compression ratio of the logging while drilling data; in addition, since the target decoder and the target convolutional autoencoder are in an inverse relationship, the consistency of the decompressed logging while drilling data and the original logging while drilling data can be ensured, that is, the reconstruction error rate of the logging while drilling data is reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 A schematic flow chart of an embodiment of a method for compressing and decompressing logging while drilling data provided by the present invention;

[0044] Figure 2 A result diagram of an embodiment of obtaining a while drilling logging data chart provided by the present invention;

[0045] Figure 3 A result diagram of an embodiment of obtaining the floating point number of logging while drilling provided by the present invention;

[0046] Figure 4 A result diagram of an embodiment of obtaining a reconstructed data chart provided by the present invention;

[0047] Figure 5 A structural block diagram of an embodiment of a device for compressing and decompressing logging while drilling data provided by the present invention;

[0048] Figure 6 This is a structural block diagram of an embodiment of an electronic device provided by the present invention. DETAILED DESCRIPTION

[0049] The preferred embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of the present invention and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not used to limit the scope of the present invention.

[0050] In order to solve the above problems, the present invention provides a method, device, electronic equipment and medium for compressing and decompressing logging while drilling data, which are described in detail below.

[0051] Figure 1 The flowchart of an embodiment of the method for compressing and decompressing logging while drilling data provided by the present invention is as follows: Figure 1 As shown, the compression and decompression methods of logging while drilling data include:

[0052] S101: performing nonlinear quantitative processing on the logging while drilling data to obtain a logging while drilling data chart;

[0053] S102: compressing the LWD data chart based on the trained target convolutional autoencoder to obtain LWD floating point numbers;

[0054] S103: decompressing the LWD floating point numbers based on the trained target decoder to obtain a reconstructed data chart;

[0055] S104: performing inverse quantization processing on the reconstructed data chart to obtain decompressed logging while drilling data.

[0056] It should be noted that the logging while drilling data exists in the form of data. In a specific embodiment, the depth of the well is used as a reference point to obtain all data corresponding to the depth of the well. By collecting and sorting the data of the logging while drilling instrument at different depths, a corresponding data table is obtained. Obviously, when the measurement target is different, other parameters can also be collected and counted, and the specific parameter type is not limited here.

[0057] In this embodiment, the LWD data is subjected to nonlinear quantization processing so that the LWD data can retain data features while also having image features; the LWD data chart is compressed by a target convolutional autoencoder, and a convolutional neural network model is used to extract features from the LWD data chart to obtain LWD floating-point numbers as data results, thereby greatly improving the compression ratio of the LWD data; in addition, since the target decoder and the target convolutional autoencoder are in an inverse relationship, the consistency between the decompressed LWD data and the original LWD data can be ensured, that is, the reconstruction error rate of the LWD data is reduced.

[0058] It should be noted that the inverse relationship between the target decoder and the target convolutional autoencoder means that for the data compressed and processed by the target convolutional autoencoder, the target decoder can generate corresponding decoding rules according to the encoding rules, thereby decoding the corresponding data, wherein the decoded data is consistent with the data before compression processing. Ideally, the two are completely consistent.

[0059] As a preferred embodiment, in S101, in order to perform nonlinear quantization processing on the logging while drilling data, a logging while drilling data chart is obtained, such as Figure 2 As shown, Figure 2 The result diagram of an embodiment of obtaining a while drilling logging data chart provided by the present invention includes:

[0060] S201: intercepting and grouping the LWD data according to a preset time window size to obtain a plurality of LWD data vectors;

[0061] S202: performing logarithmic transformation, linear quantization and truncation processing on the data in each LWD data vector in sequence to obtain a corresponding plurality of quantized LWD data vectors;

[0062] S203: constructing a LWD data chart according to the quantized LWD data vector.

[0063] In this embodiment, by vectorizing the LWD data, discrete data can be converted into vectors with direction and size, so as to determine the position information of each data on the image; then, by performing logarithmic transformation, linear quantization and truncation processing on the LWD data vector, the LWD data can be standardized, and the data quantization standard can be unified to avoid data disorder; finally, a LWD data chart is constructed based on the quantized LWD data vector, thereby converting the discrete LWD data into a LWD data chart with image features.

[0064] In a specific embodiment, the preset time window size is generally selected to be 3 to 5 time units, and the time window size can also be adaptively adjusted according to actual needs. By intercepting and grouping the LWD data according to the set time window size, the characteristics of the time series in the time dimension can be retained, so as to facilitate the subsequent formation of LWD data in vector form.

[0065] It should be noted that in S302, in order to obtain the quantized LWD data vector, first, the data in the LWD data vector is added to the preset basic value, and a logarithmic transformation is performed to obtain logarithmic data; then, according to the preset maximum and minimum values, the logarithmic data is linearly processed in combination with the linear mapping formula to obtain linear quantized data; finally, only the integer part of the linear quantized data is retained to obtain truncated data, and the quantized LWD data vector is determined based on the truncated data.

[0066] In a specific embodiment, the preset base value is preferably 1. Since the data in the LWD data vector is a non-negative number, negative numbers can be avoided in the logarithmic data by adding 1 to the data in the LWD data vector and then performing a logarithmic transformation.

[0067] Specifically, take the logarithmic data for:

[0068]

[0069] in, is the data in the LWD data vector, The default base value.

[0070] Obviously, in other embodiments, the preset basic value may also be selected as other values ​​according to actual needs, which is not limited here.

[0071] In a specific embodiment, since the distribution of logging while drilling data is certain, the preset maximum value is preferably an integer between 10 and 12, and the preset minimum value is preferably an integer between 0 and 2. In order to convert the logarithmic data into the range of 0-255, the linear mapping formula is set as follows:

[0072]

[0073] in, is the linear quantitative data, is the preset maximum value. The preset minimum value.

[0074] In other embodiments, when it is necessary to control the value of the logarithmic data to be within other ranges, this can be achieved by adaptively adjusting the parameters in the linear mapping formula. For example, when the preset basic value is within the range of 0-100, the linear mapping formula is modified to: , and so on, I will not go into details.

[0075] In a specific embodiment, LWD data with the properties of time series data are processed by nonlinear quantization to remove redundant information, extract important features and save computing resources, thereby achieving efficient compression and storage of complex time series data.

[0076] As a preferred embodiment, in S102, the target convolutional autoencoder includes a convolutional layer, a pooling layer, a first activation function and a self-attention module, in order to compress the LWD data chart based on the trained target convolutional autoencoder to obtain the LWD floating point number and realize data compression, such as Figure 3 As shown, Figure 3 The result diagram of an embodiment of obtaining the floating point number of logging while drilling provided by the present invention includes:

[0077] S301: extracting local features of the LWD data chart through a convolutional layer;

[0078] S302: Correcting local features through a self-attention module to capture long-range dependencies of the LWD data chart;

[0079] S303: Merge the local features through a pooling layer to obtain pooling features;

[0080] S304: Mapping the LWD floating point numbers according to the pooling features and the long-distance dependencies through a first activation function.

[0081] In this embodiment, the target convolutional autoencoder is essentially a neural network model that can process images and perform deep learning predictions. Local features are extracted through the convolution layer, and the features are merged by the pooling layer to obtain representative features at the image level. The features are then adjusted in a targeted manner through the self-attention module to improve the global consistency of the features and capture the long-distance dependencies of the LWD data chart. Finally, the first activation function maps the LWD floating-point numbers according to the pooling features and the long-distance dependencies, and creatively extracts the LWD floating-point numbers as the features of the LWD data chart. Since the LWD floating-point numbers occupy less memory, the compression ratio of the LWD data is greatly improved.

[0082] In a specific embodiment, the target convolutional autoencoder can simultaneously extract features in the time and space dimensions, and the semantic information contained is richer, so that the floating-point numbers of logging while drilling include information in multiple dimensions, reducing information loss during data compression.

[0083] In a specific embodiment, convolution operations based on self-attention are used to extract features of LWD data in time and space dimensions respectively. The encoder part of the convolutional autoencoder consists of a convolutional layer, a pooling layer, and an activation function. Among them, the convolutional layer is the core component of the convolutional autoencoder, and the input data is extracted through convolution operations. The function of the encoder is to compress the input data and extract key features. The local features of the LWD data in space can be captured through convolution operations, and the number of parameters can be reduced through pooling operations. In addition, by introducing a self-attention mechanism in the convolutional autoencoder model, a correction is made to the extracted features, and the correlation between features is modeled and learned.

[0084] The convolution operation uses the convolution kernel to slide on the input data to calculate the feature map, effectively capturing the local features of the input data by sharing weights and local connections. Each convolution kernel can learn different features, thereby improving the model's ability to represent the input data.

[0085] Then, the self-attention module is embedded into the structure of the encoder, so that the features are adjusted by the self-attention mechanism after passing through the convolution layer. The attention mechanism can help the model better capture the long-distance dependencies in the input data at the encoder stage, thereby improving the global consistency of feature representation. By calculating the attention weights, the model can automatically learn the importance between each position in the input sequence, which helps to highlight key features and suppress irrelevant information, improving the efficiency of feature extraction.

[0086] The calculation formula of self-attention weight is as follows:

[0087]

[0088]

[0089] Where Q is the query matrix, K is the key matrix, V is the value matrix, dk is the dimension of the key, and the softmax function is used to normalize the attention weights. Output is the output of the self-attention mechanism.

[0090] The pooling layer follows the convolutional layer and reduces the size and number of feature maps by downsampling while retaining the main features of the LWD data in terms of spatial position. Common pooling operations include maximum pooling and average pooling, which can help the model be insensitive to position changes, reduce overfitting, reduce model complexity, and speed up training.

[0091] The activation function is ReLU (Rectified Linear Unit) function. The ReLU function has a simple calculation form and nonlinear characteristics, which can effectively solve the gradient disappearance problem and make the network easier to optimize. The ReLU function sets all negative input values ​​to zero, retains the positive part, introduces nonlinearity, and increases the expressiveness of the model.

[0092] The calculation formula of the ReLU function is as follows:

[0093]

[0094] in, x For input data.

[0095] After the self-attention-based convolutional autoencoder, the latent feature representation is obtained, which is the compressed LWD floating point number.

[0096] In addition, since the floating point data of logging while drilling are easy to transmit, data exchange between the wellbore and the underground well can be better realized.

[0097] In a specific embodiment, the LWD floating point data is transmitted to the wellbore through a channel using 32-bit binary encoding.

[0098] Further, after the downhole logging data is processed by the convolutional autoencoder and transmitted to the surface, in order to decompress the floating-point numbers of the logging while drilling and obtain the downhole data information in time, in S103, the target decoder includes a deconvolution layer, a depooling layer and a second activation function, in order to decompress the floating-point numbers of the logging while drilling based on the trained target decoder to obtain a reconstructed data chart, such as Figure 4 As shown, Figure 4 The result diagram of an embodiment of obtaining a reconstructed data chart provided by the present invention includes:

[0099] S401: upsampling the LWD floating point numbers through an anti-pooling layer to obtain anti-pooled LWD data;

[0100] S402: performing image restoration processing on the de-pooled LWD data through a deconvolution layer to obtain a deconvolution LWD image;

[0101] S403: Mapping a reconstructed data chart according to the deconvolution LWD image through a second activation function.

[0102] Obviously, contrary to the data compression process of the target convolutional autoencoder, in order to expand the information of the LWD floating-point numbers, the LWD floating-point numbers are restored through the deconvolution layer, the depooling layer and the second activation function in turn, thereby expanding the image information that the LWD floating-point numbers can represent - reconstructing the data chart.

[0103] It should be noted that the target decoder is similar to the target convolutional autoencoder, and is also a deep learning neural network model that can quickly and accurately deconstruct reconstructed data charts based on feature information.

[0104] Furthermore, in S104, corresponding to S101, since nonlinear quantization processing is performed before encoding learning, in order to obtain the most original data for the convenience of data processing by the staff, it is also necessary to perform inverse quantization processing on the reconstructed data chart to obtain the decompressed LWD data that can be directly used in the end.

[0105] Specifically, contrary to the process of nonlinear quantization processing, the data in the reconstructed data chart needs to be subjected to inverse mapping, inverse digital transformation and rounding processing in sequence to obtain the decompressed LWD data.

[0106] It should be noted that in the process of inverse quantization, the data that has been processed by nonlinear quantization needs to be inverse quantized. First, according to the quantized data, minimum and maximum values ​​(the same maximum values ​​are set for the uphole and downhole, and generally do not need to be modified. If the downhole or uphole is modified, the mutual transmission signal needs to be kept consistent), the data is converted back to the original range through inverse mapping. This step is to restore the data range before quantization. Next, the data restored to the original range is logarithmically inversely transformed, and the logarithmically transformed data is restored to the original data through the exponential function, and a bias value (generally 0.8~1.0) is subtracted. Finally, the restored data is rounded and one decimal place is retained to obtain the final inverse quantization result, and finally the decompressed LWD data after inverse quantization is obtained.

[0107] In a specific embodiment, the bias value is preferably 0.8.

[0108] In the above manner, by combining the target convolutional autoencoder and the target decoder to extract and adjust the potential features of the time series data, the self-attention mechanism is introduced to optimize the extracted potential features, thereby reducing the error of the compressed data reconstruction. In addition, by mapping continuous data to discrete space to reduce the computational cost and improve the compression efficiency, the problems of large reconstruction error and unsatisfactory compression rate in the prior art are effectively solved.

[0109] In order to solve the above problems, the present invention also provides a compression and decompression device for logging while drilling data, such as Figure 5 As shown, Figure 5 This is a structural block diagram of an embodiment of a compression and decompression device for logging while drilling data provided by the present invention. The compression and decompression device 500 for logging while drilling data includes:

[0110] A nonlinear quantization processing module 501 is used to perform nonlinear quantization processing on the logging while drilling data to obtain a logging while drilling data chart;

[0111] A compression module 502 is used to compress the LWD data chart based on the trained target convolutional autoencoder to obtain LWD floating point numbers;

[0112] A decompression module 503 is used to decompress the floating point data of the logging while drilling based on the trained target decoder to obtain a reconstructed data chart;

[0113] The inverse quantization processing module 504 is used to perform inverse quantization processing on the reconstructed data chart to obtain decompressed logging while drilling data.

[0114] It should be noted that, in a specific embodiment, in order to better meet the needs of uphole and downhole data processing, the compression and decompression device 500 of logging while drilling data specifically includes two parts, namely an encoder and a decoder, which can be separated and connected through signals;

[0115] The encoder includes a nonlinear quantization processing module 501 and a compression module 502;

[0116] The decoder includes a decompression module block 503 and an inverse quantization processing module block 504 .

[0117] like Figure 6 As shown, the present invention also provides an electronic device 600. The electronic device 600 includes a processor 601, a memory 602 and a display 603. Figure 6 Only some components of the electronic device 600 are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.

[0118] In some embodiments, the processor 601 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run program codes stored in the memory 602 or process data, such as the compression and decompression method of the logging while drilling data in the present invention.

[0119] In some embodiments, the processor 601 may be a single server or a server group. The server group may be centralized or distributed. In some embodiments, the processor 601 may be local or remote. In some embodiments, the processor 601 may be implemented in a cloud platform. In one embodiment, the cloud platform may include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, an internal cloud, a multi-cloud, etc., or any combination thereof.

[0120] In some embodiments, the memory 602 may be an internal storage unit of the electronic device 600, such as a hard disk or memory of the electronic device 600. In other embodiments, the memory 602 may also be an external storage device of the electronic device 600, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc., equipped on the electronic device 600.

[0121] Furthermore, the memory 602 may include both an internal storage unit of the electronic device 600 and an external storage device. The memory 602 is used to store application software installed in the electronic device 600 and various data.

[0122] In some embodiments, the display 603 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 603 is used to display information of the electronic device 600 and to display a visual user interface. The components 601-603 of the electronic device 600 communicate with each other through a system bus.

[0123] In one embodiment, when the processor 601 executes the compression and decompression program of the logging while drilling data in the memory 602, the following steps may be implemented:

[0124] Perform nonlinear quantitative processing on the logging while drilling data to obtain the logging while drilling data chart;

[0125] Based on the trained target convolutional autoencoder, the LWD data chart is compressed to obtain the LWD floating point number.

[0126] Decompress the floating point data of LWD based on the trained target decoder to obtain the reconstructed data chart;

[0127] The reconstructed data chart is dequantized to obtain the decompressed LWD data.

[0128] It should be understood that: when the processor 601 executes the compression and decompression program of the logging while drilling data in the memory 602, in addition to the above functions, other functions can also be realized. For details, please refer to the description of the corresponding method embodiment above.

[0129] Furthermore, the embodiment of the present invention does not specifically limit the type of the electronic device 600 mentioned, and the electronic device 600 may be a portable electronic device such as a mobile phone, a tablet computer, a personal digital assistant (PDA), a wearable device, a laptop computer, etc. Exemplary embodiments of portable electronic devices include but are not limited to portable electronic devices equipped with IOS, Android, Microsoft or other operating systems. The above-mentioned portable electronic devices may also be other portable electronic devices, such as a laptop computer with a touch-sensitive surface (e.g., a touch panel). It should also be understood that in some other embodiments of the present invention, the electronic device 600 may not be a portable electronic device, but a desktop computer with a touch-sensitive surface (e.g., a touch panel).

[0130] Correspondingly, an embodiment of the present invention also provides a computer-readable storage medium, which is used to store computer-readable programs or instructions. When the program or instructions are executed by a processor, it can implement the steps or functions in the compression and decompression methods of while-drilling logging data provided in the above-mentioned method embodiments.

[0131] Those skilled in the art will appreciate that all or part of the processes of the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the computer program can be stored in a computer-readable storage medium, wherein the computer-readable storage medium is a disk, an optical disk, a read-only storage memory, or a random access memory, etc.

[0132] The compression and decompression method, device, electronic device and medium of the logging while drilling data provided by the present invention are introduced in detail above. The principles and implementation methods of the present invention are explained in this article using specific examples. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A method for compressing and decompressing logging while drilling data, characterized in that: include: Perform nonlinear quantitative processing on the logging while drilling data to obtain the logging while drilling data chart; Based on the trained target convolutional autoencoder, the LWD data chart is compressed to obtain LWD floating point numbers; Decompressing the LWD floating point number based on a fully trained target decoder to obtain a reconstructed data chart; Performing inverse quantization processing on the reconstructed data chart to obtain decompressed logging while drilling data; The nonlinear quantization processing of the logging while drilling data is performed to obtain the logging while drilling data chart, including: The LWD data are intercepted and grouped according to a preset time window size to obtain a plurality of LWD data vectors; Performing logarithmic transformation, linear quantization and truncation processing on the data in each of the LWD data vectors in turn to obtain a corresponding plurality of quantized LWD data vectors; constructing a LWD data chart according to the quantized LWD data vector; The target decoder includes a deconvolution layer, a depooling layer, and a second activation function; the target decoder based on the complete training decompresses the LWD floating point number to obtain a reconstructed data chart, including: Upsampling the LWD floating point numbers through the de-pooling layer to obtain de-pooled LWD data; Performing image restoration processing on the de-pooled LWD data through the deconvolution layer to obtain a deconvolution LWD image; The reconstructed data chart is mapped out according to the deconvolution LWD image through the second activation function.

2. The method for compressing and decompressing logging while drilling data according to claim 1, characterized in that: The data in each of the LWD data vectors are sequentially subjected to logarithmic transformation, linear quantization and truncation processing to obtain a corresponding plurality of quantized LWD data vectors, including: Adding the data in the LWD data vector to a preset base value and performing a logarithmic transformation to obtain logarithmic data; According to the preset maximum value and minimum value, the linear processing is performed on the logarithmic data in combination with a linear mapping formula to obtain linear quantized data; Only the integer part of the linear quantized data is retained to obtain truncated data, and the quantized LWD data vector is determined according to the truncated data.

3. The method for compressing and decompressing logging while drilling data according to claim 1, characterized in that: The target convolutional autoencoder includes a convolutional layer, a pooling layer, a first activation function and a self-attention module; The target convolutional autoencoder based on the complete training compresses the LWD data chart to obtain the LWD floating point number, including: Extracting local features of the logging while drilling data chart through the convolution layer; The local features are modified by the self-attention module to capture the long-range dependencies of the LWD data chart; The local features are merged through the pooling layer to obtain pooling features; The LWD floating point number is mapped out according to the pooling feature and the long-distance dependency through the first activation function.

4. The method for compressing and decompressing logging while drilling data according to claim 1, characterized in that: The step of performing inverse quantization processing on the reconstructed data chart to obtain decompressed logging while drilling data includes: The data in the reconstructed data chart are sequentially subjected to inverse mapping, inverse digital transformation and rounding processing to obtain decompressed logging while drilling data.

5. A compression and decompression device for logging while drilling data, characterized in that: include: A nonlinear quantitative processing module is used to perform nonlinear quantitative processing on the logging while drilling data to obtain a logging while drilling data chart; A compression module, used for compressing the LWD data chart based on a well-trained target convolutional autoencoder to obtain LWD floating-point numbers, wherein the target convolutional autoencoder includes a convolutional layer, a pooling layer, a first activation function and a self-attention module; A decompression module, used for decompressing the LWD floating point number based on a fully trained target decoder to obtain a reconstructed data chart; A dequantization processing module, used for performing dequantization processing on the reconstructed data chart to obtain decompressed logging while drilling data; The nonlinear quantization processing of the logging while drilling data is performed to obtain the logging while drilling data chart, including: The LWD data are intercepted and grouped according to a preset time window size to obtain a plurality of LWD data vectors; Performing logarithmic transformation, linear quantization and truncation processing on the data in each of the LWD data vectors in turn to obtain a corresponding plurality of quantized LWD data vectors; constructing a LWD data chart according to the quantized LWD data vector; The target decoder includes a deconvolution layer, a depooling layer, and a second activation function; the target decoder based on the complete training decompresses the LWD floating point number to obtain a reconstructed data chart, including: Upsampling the LWD floating point numbers through the de-pooling layer to obtain de-pooled LWD data; Performing image restoration processing on the de-pooled LWD data through the deconvolution layer to obtain a deconvolution LWD image; The reconstructed data chart is mapped out according to the deconvolution LWD image through the second activation function.

6. The compression and decompression device for logging while drilling data according to claim 5, characterized in that: include: An encoder and a decoder, wherein the encoder and the decoder can be separated and connected by a signal; Wherein, the encoder includes the nonlinear quantization processing module and the compression module; The decoder includes the decompression module and the inverse quantization processing module.

7. An electronic device, characterized in that: comprising a memory and a processor, wherein: The memory is used to store programs; The processor is coupled to the memory and is used to execute the program stored in the memory to implement the steps in the method for compressing and decompressing logging while drilling data as described in any one of claims 1 to 4 above.

8. A computer-readable storage medium, characterized in that: Used to store computer-readable programs or instructions, which, when executed by a processor, can implement the steps in the method for compressing and decompressing logging while drilling data as described in any one of claims 1 to 4 above.