A rock sample intelligent identification method and system based on image deep learning

Through the deep learning model based on the ResNet18 network, super-pixel segmentation and pseudo-label training are performed on rock cuttings images, which solves the problems of unclear boundary judgment and high human resource consumption in lithology identification, and achieves rapid and accurate identification and accuracy of rock sample identification. sexual enhancement.

CN114581666BActive Publication Date: 2024-10-29PANJIN ZHONGLU OIL & GAS TECH SERVICE CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210205210.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-02
Publication Date
2024-10-29
Estimated Expiration
2042-03-02

AI Technical Summary

Technical Problem

Existing lithology identification technology has problems such as unclear boundary judgment, high consumption of human resources, and unsatisfactory accuracy, especially in the identification process of cuttings samples.

Method used

Semi-supervised and supervised deep learning models based on the ResNet18 network are used to perform super-pixel segmentation and normalization processing of lithic images, combined with pseudo-label training, to achieve lithology and oil and gas classification, reduce human resource consumption and improve recognition accuracy. .

Benefits of technology

It achieves fast and accurate identification of rock samples, reduces costs, improves the accuracy and generalization of identification, and simplifies the sample identification process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114581666B_ABST
    Figure CN114581666B_ABST
Patent Text Reader

Abstract

The present invention discloses a rock sample intelligent identification method and system based on image deep learning, which uses artificial calibration sample training to obtain a supervised model and predict unlabeled data, uses the probability value output by the network softmax layer as confidence, screens high-confidence samples as pseudo-label data, and finally combines the artificial calibration samples and the predicted high-confidence samples to train a new model to obtain a lithology identification model with better generalization; in the oil and gas classification part, after pre-processing the fluorescent image, adjust the parameters to construct a three-classification deep learning model based on ResNet18, and if it contains oil, the fluorescent image is qualitatively classified as oil-containing by the ratio of the foreground fluorescent area to the sandstone area in the white light image obtained in the lithology identification, and if it does not contain oil, it is qualitatively classified as oil-free; finally, the lithology identification and oil and gas classification are combined to qualitatively identify the rock cuttings sample. The present invention can quickly and accurately identify lithology, save labor costs, and speed up the entire logging process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of lithology identification, and specifically relates to a rock sample intelligent identification method and system based on image deep learning. Background Art

[0002] In 1958, Krubain used multivariate statistical methods to study the minerals and lithology of rocks. Later, WOLLF et al. first proposed the use of logging data to automatically identify stratum lithofacies through computers. Since then, domestic and foreign scholars have combined the experience of predecessors and advanced electronic technology in the field of automatic lithology identification, conducted a lot of research and exploration, achieved fruitful results, and solved problems in practical applications. The development of lithology identification technology has mainly included: intersection diagram method, probability statistics method, cluster analysis method, etc.

[0003] Among them, the intersection diagram method has problems such as unclear boundaries and layers when distinguishing the lithology of the entire well section. It has great limitations and a large workload, which consumes human resources. The probability obtained by the probability statistics method after analysis based on past experience varies from person to person and has great limitations. The cluster analysis method in lithology identification is widely used in logging data with more discrete parameters, but it is necessary to ensure that the training sample is large enough. Well logging lithology identification belongs to a small sample learning process, which limits the practical value of cluster analysis methods in distinguishing lithology.

[0004] In recent years, deep learning technology has made great progress and has been widely used in the field of image processing. Compared with many traditional algorithms, the prior knowledge learned by deep learning technology from massive training data has stronger generalization ability and more complex parameterized expression, and there is no need to adjust the algorithm parameters to adapt to different application scenarios. Thanks to the above advantages, deep learning technology has been widely used in the field of image processing. At present, lithology identification mainly relies on geologists to manually identify rock cuttings on site, which not only consumes huge manpower and material resources, but also varies from person to person, resulting in unsatisfactory accuracy and other results, and has great limitations. Summary of the invention

[0005] The technical problem to be solved by the present invention is to provide a rock sample intelligent identification method and system based on image deep learning in response to the deficiencies in the above-mentioned prior art, which utilizes a deep learning algorithm to train a model to identify rock cuttings images, makes application iteration more convenient, and has better generalization, and can achieve the effects of fast and accurate identification and cost savings.

[0006] The present invention adopts the following technical solutions:

[0007] A rock sample intelligent identification method based on image deep learning comprises the following steps:

[0008] S1. Construct a semi-supervised lithology recognition model M′ based on ResNet18 network;

[0009] S2, superpixel segmentation is performed on the mixed rock cuttings sample image collected by logging to obtain a rock cuttings fine-grained sample, and the rock cuttings fine-grained sample is normalized and input into the semi-supervised lithology recognition model M′ based on the ResNet18 network established in step S1 to obtain a lithology classification result, and the lithology proportion is calculated according to the lithology classification result to obtain the macroscopic lithology of the rock cuttings;

[0010] S3. Construct a supervised model based on ResNet18 network to classify oil and gas content;

[0011] S4. Combine the macroscopic lithology of the rock cuttings in step S2 and the oil and gas content classification in step S3 to complete the complete qualitative characterization of the rock cuttings sample and complete the rock sample identification.

[0012] Specifically, step S1 is as follows:

[0013] S101, selecting the SEEDS superpixel segmentation method to segment the white light image of rock cuttings;

[0014] S102, filtering and calibrating the superpixel blocks segmented in step S101 to obtain labeled rock fragmentation fine-grained samples and unlabeled rock fragmentation fine-grained samples, normalizing the labeled rock fragmentation fine-grained samples and the unlabeled rock fragmentation fine-grained samples, and sending them to a supervised lithology recognition model M based on a ResNet18 network, importing the pre-trained weights of the ResNet18 network on the ImageNet dataset, and training the supervised lithology recognition model M;

[0015] S103. Use the supervised lithology recognition model M trained in step S102 to predict the unlabeled data, take the probability value output by the softmax layer of the ResNet18 network as the confidence, and screen the high-confidence samples as pseudo-labeled data; use the fine-grained samples of labeled rock fragments and pseudo-labeled data obtained in step S102 to retrain the supervised lithology recognition model M to obtain a semi-supervised lithology recognition model M′ based on the ResNet18 network.

[0016] Furthermore, in step S101, the cv2.ximgproc.createSuperpixelSEEDS() function is called to perform superpixel segmentation, and a rock chip image is segmented along the rock chip block gaps in the image to obtain irregular rock chip block small images.

[0017] Furthermore, in step S102, the loss function is modified to FocalLoss to train the supervised lithology recognition model M, specifically:

[0018]

[0019] Among them, γ ≥ 0 is an adjustable focusing parameter, α is a balancing weight factor, and p is the predicted probability value.

[0020] Furthermore, in step S103, sample x (i) About the pseudo label of class c as follows:

[0021]

[0022] Among them, p c (i) is the probability of the cth category output by the model, and β is the threshold.

[0023] Specifically, in step S2, the proportion of each type of lithology in the total area of ​​all input rock cuttings fine-grained samples is calculated according to the predicted lithology classification results. When the sandstone proportion exceeds 45%, it is sandstone, and when the mudstone content exceeds 55%, it is mudstone. When the sandstone proportion is 30% to 45%, it is muddy siltstone, and when the sandstone proportion is 20% to 30%, it is silty mudstone.

[0024] Specifically, step S3 is as follows:

[0025] S301, using median filtering to perform two consecutive denoising operations on the calibrated rock cuttings fluorescence image to obtain a fluorescence image with a clear background and no noise as a denoising sample;

[0026] S302, dividing the denoised samples in step S301 into oil-containing samples with fluorescence reaction, oil-free samples with fluorescence reaction, and oil-free samples without fluorescence reaction as data sets for model training, and then importing the pre-trained weights on the ImageNet data set based on the ResNet18 network for model training, and obtaining an oil and gas classification model after adjusting the parameters, and inputting the rock cuttings fluorescence image to be detected into the trained oil and gas classification model to obtain an oil-containing image;

[0027] S303, taking the sandstone area obtained in the lithology identification of the white light image of the rock cuttings sample in step S1, and if it contains oil in the subsequent test, classifying the oil and gas content of the fluorescent image by the ratio of the foreground fluorescent area of ​​the oil-containing image to the sandstone area obtained in step S302.

[0028] Furthermore, in step S302, the oil and gas content classification model automatically adjusts network parameters during the training process.

[0029] Furthermore, in step S303, if the test does not contain oil, it is characterized as oil-free.

[0030] Another technical solution of the present invention is a rock sample intelligent identification system based on image deep learning, comprising:

[0031] Construction module, constructing the semi-supervised lithology recognition model M′ based on ResNet18 network;

[0032] The lithology module performs superpixel segmentation on the mixed rock cuttings sample images collected by logging to obtain fine-grained rock cuttings samples. After normalization, the fine-grained rock cuttings samples are input into the semi-supervised lithology recognition model M′ based on the ResNet18 network established by the construction module to obtain the lithology classification results. The lithology proportion is calculated based on the lithology classification results to obtain the macroscopic lithology of the rock cuttings.

[0033] The oil and gas content module builds a supervised model based on the ResNet18 network to classify oil and gas content;

[0034] The identification module combines the macroscopic lithology of the rock cuttings from the lithology module and the hydrocarbon classification from the hydrocarbon module to complete the complete qualitative characterization of the rock cuttings samples and complete the rock sample identification.

[0035] Compared with the prior art, the present invention has at least the following beneficial effects:

[0036] The present invention discloses an intelligent rock sample identification method based on image deep learning. Rock sample identification is divided into two parts: lithology identification and oil and gas content classification according to the difference in sample collection (white light image and fluorescence image). Finally, the two are combined to qualitatively identify a rock cutting sample, and the whole process is decoupled into two parts. Compared with the current traditional method, the present invention greatly shortens the sample identification time and greatly improves the identification accuracy.

[0037] Furthermore, since the collection of pure samples requires a lot of manpower, material resources and financial resources, and pure samples almost do not exist in practical applications, in order to enhance the generalization of the model and save manpower and material resources, a pseudo-label method is used to train the semi-supervised model so that the model can be repeatedly iterated to reach a level that is more suitable for practical applications.

[0038] Furthermore, superpixels are pixels with similar features in a picture that are clustered to form a more representative large "pixel". This new pixel can be used as the basic unit of other image processing algorithms, which can reduce the dimension and abnormal pixels of the image. Currently, the commonly used superpixel segmentation algorithms are SLIC, SEEDS and LSC. The Seeds superpixel segmentation algorithm runs faster and achieves the same effect much faster than SLIC. And the boundary eigenvalues ​​can effectively make the Superpixel smoother. Because the individual rock debris blocks belong to the same lithology, in order to obtain individual rock debris blocks for model training and later testing, the present invention here selects the Seeds superpixel segmentation algorithm to segment the collected white light images.

[0039] Furthermore, due to the imbalance in the number of samples used for training, if FocalLoss is used, α balances the importance of positive and negative samples. It does not distinguish between easy-to-classify samples and hard-to-classify samples, so that the model focuses on training hard-to-classify negative samples, which can solve the problem of imbalance in the number of samples.

[0040] Furthermore, the meaning of the softmax layer is that it no longer uniquely determines a certain maximum value, but outputs the probability value of each classification result, indicating the possibility of this category; the probability classification with high confidence is selected as the data without label for pseudo-label calibration.

[0041] Furthermore, in step S2, when calculating the lithology proportion according to the lithology classification result, the proportion of the lithology classification in the whole picture is deduced by the area proportion of the lithology block classification, and then the lithology of the lithology is given according to the lithology proportion rule. However, it should be noted that the values ​​set for wells in different blocks are not the same, and need to be negotiated and decided with the geologist.

[0042] Furthermore, in step S3, the oil and gas content is classified by deep learning method, which greatly improves the recognition accuracy and makes great improvement on the situation that the mineral luminescence misleads the luminescence of the real oil-bearing sandstone.

[0043] In summary, the present invention can not only improve the accuracy of rock cuttings sample recognition, but also can be quickly transferred to other similar image recognition tasks. It has strong generalization ability and provides some inspiration for adding pseudo-label training semi-supervised models for other similar tasks.

[0044] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 This is a flow chart for lithology identification;

[0046] Figure 2 It is the overall framework diagram of the present invention. DETAILED DESCRIPTION

[0047] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0048] In the description of the present invention, it should be understood that the terms “include” and “comprises” indicate the presence of described features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or collections thereof.

[0049] It should also be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0050] It should be further understood that the term "and / or" used in the present specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects are in an "or" relationship.

[0051] It should be understood that, although the terms first, second, third, etc. may be used to describe preset ranges, etc. in the embodiments of the present invention, these preset ranges should not be limited to these terms. These terms are only used to distinguish preset ranges from each other. For example, without departing from the scope of the embodiments of the present invention, the first preset range may also be referred to as the second preset range, and similarly, the second preset range may also be referred to as the first preset range.

[0052] The word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.

[0053] Various structural schematic diagrams of the embodiments disclosed in the present invention are shown in the accompanying drawings. These figures are not drawn to scale, and some details are magnified and some details may be omitted for the purpose of clear expression. The shapes of various regions and layers shown in the figures and the relative sizes and positional relationships therebetween are only exemplary, and may deviate in practice due to manufacturing tolerances or technical limitations, and those skilled in the art may additionally design regions / layers with different shapes, sizes, and relative positions according to actual needs.

[0054] The present invention provides a method for intelligent rock sample identification based on image deep learning, and trains two different deep learning models based on the ResNet18 network. In the lithology identification part, the present invention uses labeled data (supervised learning) and pseudo-label data (unsupervised learning) to train a lithology identification semi-supervised model based on the ResNet18 network, so that the model decision boundary is more accurate and has better generalization. On the other hand, after preprocessing the fluorescence images, the three-classification deep learning based on the ResNet18 network is trained to provide a better solution for oil and gas classification.

[0055] See also Figure 1 and Figure 2 The present invention provides a rock sample intelligent identification method based on image deep learning, comprising the following steps:

[0056] S1, semi-supervised lithology recognition model M′ based on ResNet18 network;

[0057] S101. Considering that the rock debris white light image contains multiple rock debris blocks of the same lithology but different sizes and shapes, based on this feature, the SEEDS superpixel segmentation algorithm is selected to adjust the parameters and then segment the rock debris white light image;

[0058] S102. Manually screen the superpixel blocks segmented in step S101 and calibrate them to obtain labeled rock debris fine-grained samples and unlabeled rock debris fine-grained samples. Considering that the white-light images of rock debris are taken with a camera and the camera parameters of each image are different, the white balance parameters are used to process the images; the white-light images of rock debris are normalized under different color temperature conditions so that the color of the object under different light sources is restored to the inherent color of the object, thereby achieving the effect of reducing color deviation or eliminating color deviation; after normalizing the labeled rock debris fine-grained samples and the unlabeled rock debris fine-grained samples, they are sent to the supervised lithology recognition model M based on the ResNet18 network, and the pre-trained weights of the ResNet18 network on the ImageNet dataset are imported. In order to solve the large gap in the number of different samples, the loss function is modified to FocalLoss to train the supervised lithology recognition model M;

[0059] The FocalLoss formula is as follows:

[0060]

[0061] Among them, γ ≥ 0 is an adjustable focusing parameter, α is a balancing weight factor, and p is the predicted probability value.

[0062] S103. Use the supervised lithology recognition model M trained in step S102 to predict the unlabeled data, use the probability value output by the softmax layer of the ResNet18 network as the confidence, and screen high-confidence samples as pseudo-labeled data; use the labeled rock fragments fine-grained samples and pseudo-labeled data obtained in step S102 to retrain the supervised lithology recognition model M to obtain a more generalized semi-supervised lithology recognition model M′ based on the ResNet18 network.

[0063] The pseudo-label data formula is as follows:

[0064]

[0065] in, Represents sample x (i) Regarding the pseudo label of the cth class, p c (i) is the probability of the cth class output by the model, and β represents the threshold.

[0066] S2. Perform superpixel segmentation on the mixed rock cuttings sample images collected by actual logging to obtain rock cuttings fine-grained samples. After normalization, the rock cuttings fine-grained samples are input into the semi-supervised lithology recognition model M′ based on the ResNet18 network established in step S1 to obtain the lithology classification results. According to the predicted lithology classification results, the proportion of each type of lithology in the total area of ​​all input rock cuttings fine-grained samples is calculated. If the sandstone proportion exceeds 45%, it is sandstone, and if the mudstone content exceeds 55%, it is mudstone. If the sandstone proportion is 30%-45%, it is muddy siltstone, and if the sandstone proportion is 20%-30%, it is silty mudstone. The specific proportion will fluctuate slightly depending on the drilling block.

[0067] S3, oil and gas classification based on the supervised model of ResNet18 network;

[0068] S301, considering that the rock cuttings fluorescence image is full of noise, the calibrated rock cuttings fluorescence image is subjected to two consecutive denoising operations using median filtering to achieve better results;

[0069] Since the camera shooting parameters of the rock cuttings fluorescence image remain unchanged, there is no need to perform white balance normalization processing.

[0070] S302, since the fluorescence images of the oil-free rock cuttings have fluorescence reactions (mineral luminescence and carbonaceous mudstone, etc.), the pre-processed samples in step S301 are divided into three categories, namely, oil-containing with fluorescence reaction, oil-free with fluorescence reaction, and oil-free without fluorescence reaction, and then the pre-trained weights of ResNet18 on the ImageNet data set are imported based on the ResNet18 network for training to obtain an oil and gas classification model based on the ResNet18 network, and the rock cuttings fluorescence images to be detected are input into the trained oil and gas classification model based on the ResNet18 network to obtain oil-containing images;

[0071] S303. Considering that only sandstone contains oil, the sandstone area obtained in the lithology identification of the white light image of the rock cuttings sample in step S1 is taken. If it contains oil in the subsequent test, the oil and gas content of the fluorescent image is classified by the ratio of the foreground fluorescent area of ​​the oil-containing image obtained in step S302 to the sandstone area. If it does not contain oil, it is characterized as oil-free.

[0072] S4. Complete the characterization of the rock cuttings samples by combining the macroscopic lithology of the rock cuttings in step S2 and the hydrocarbon content classification in step S3.

[0073] For example, the white light identification result obtained in step S2 is gray fine sandstone, and in step S3, the oil content in the fluorescent image is identified, and after calculating the oil-bearing area ratio, it belongs to oil traces, then the rock cuttings can be characterized as gray oil-stain fine sandstone. The accurate characterization of rock cuttings can lay the foundation for reservoir characteristic research, reserve calculation and geological modeling.

[0074] In yet another embodiment of the present invention, a rock sample intelligent identification system based on image deep learning is provided, which can be used to implement the above-mentioned rock sample intelligent identification method based on image deep learning. Specifically, the rock sample intelligent identification system based on image deep learning includes a construction module, a lithology module, a hydrocarbon content module and an identification module.

[0075] Among them, the construction module builds a semi-supervised lithology identification model M′ based on the ResNet18 network;

[0076] The lithology module performs superpixel segmentation on the mixed rock cuttings sample images collected by logging to obtain fine-grained rock cuttings samples. After normalization, the fine-grained rock cuttings samples are input into the semi-supervised lithology recognition model M′ based on the ResNet18 network established by the construction module to obtain the lithology classification results. The lithology proportion is calculated based on the lithology classification results to obtain the macroscopic lithology of the rock cuttings.

[0077] The oil and gas content module builds a supervised model based on the ResNet18 network to classify oil and gas content;

[0078] The identification module, combined with the macroscopic lithology of the rock cuttings from the lithology module and the hydrocarbon classification from the hydrocarbon module, completes the complete qualitative characterization of the rock cuttings samples and the rock sample identification, laying the foundation for reservoir characteristic research, reserve calculation and geological modeling.

[0079] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. The components of the embodiments of the present invention described and shown in the drawings here can usually be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0080] 1. Take a number of white light images of various types of rock debris and segment them to obtain superpixel blocks, and manually screen out superpixel blocks that do not contain multiple rock blocks and have clear rock features. After white balance normalization, train a supervised model M, and then use the model to predict unlabeled superpixel blocks, using the probability value output by the softmax layer as the confidence, screen high-confidence samples as pseudo-label data, and use the calibrated data and the predicted pseudo-label data to train a new model M′ to obtain a rock type recognition model with better generalization.

[0081] A total of 213 test samples of four categories were taken and tested after preprocessing. The overall accuracy was 77.46%. The specific experimental results are as follows:

[0082] Gray silty mudstone Gray muddy siltstone Light grey fine sandstone Dark gray mudstone Number of samples 86 107 19 1 Prediction correct 80 76 8 1 Accuracy 93.02% 71.03% 42.11% 100%

[0083] 2. For the fluorescence images, median filtering was first used to perform denoising on the images twice in a row. The samples were divided into three categories: oil-containing fluorescence reaction, oil-free fluorescence reaction, and oil-free and no fluorescence reaction. The pre-processed fluorescence images were trained based on ResNet18, and the parameters were adjusted to build a three-classification deep learning model based on ResNet18.

[0084] A total of 567 test samples of two categories were taken for testing. The above three-classification model was first used to predict whether it was an oil-bearing picture. If it was an oil-bearing picture, M′ was used to calculate the sandstone area in the white light picture of the rock fragment, and then the sandstone area was divided by the foreground fluorescent area to qualitatively determine the oil level. The comprehensive accuracy of the picture was 98.77%. The specific experimental results are shown in the following table:

[0085] Oil Oil-free Number of samples 16 551 Prediction correct 16 544 Accuracy 100% 98.73%

[0086] In summary, the present invention provides a method and system for intelligent rock sample identification based on image deep learning, which utilizes a deep learning algorithm training model to identify rock cuttings images. The application iteration is more convenient and the generalization is better, which can achieve the effects of fast and accurate identification and cost saving.

[0087] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0088] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0089] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0090] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0091] The above contents are only for explaining the technical idea of ​​the present invention and cannot be used to limit the protection scope of the present invention. Any changes made on the basis of the technical solution in accordance with the technical idea proposed by the present invention shall fall within the protection scope of the claims of the present invention.

Claims

1. A rock sample intelligent identification method based on image deep learning, characterized in that: The following steps are involved: S1. Construct a semi-supervised lithology recognition model M based on ResNet18 network ′ , specifically: S101, selecting the SEEDS superpixel segmentation method to segment the white light image of rock cuttings; S102, filtering and calibrating the superpixel blocks segmented in step S101 to obtain labeled rock fragmentation fine-grained samples and unlabeled rock fragmentation fine-grained samples, normalizing the labeled rock fragmentation fine-grained samples and the unlabeled rock fragmentation fine-grained samples, and sending them to a supervised lithology recognition model M based on a ResNet18 network, importing the pre-trained weights of the ResNet18 network on the ImageNet dataset, and training the supervised lithology recognition model M; S103, using the supervised lithology recognition model M trained in step S102 to predict the unlabeled data, taking the probability value output by the softmax layer of the ResNet18 network as the confidence, and screening the high-confidence samples as pseudo-labeled data; using the labeled rock fragments fine-grained samples and pseudo-labeled data obtained in step S102 to retrain the supervised lithology recognition model M, and obtain a semi-supervised lithology recognition model M based on the ResNet18 network. ′ ; S2, perform superpixel segmentation on the mixed rock cuttings sample images collected by logging to obtain rock cuttings fine-grained samples, normalize the rock cuttings fine-grained samples and input them into the semi-supervised lithology recognition model M based on the ResNet18 network established in step S1 ′ In the process, the lithology classification results are obtained, and the lithology proportion is calculated according to the lithology classification results to obtain the macroscopic lithology of the cuttings; S3. Construct a supervised model based on the ResNet18 network to classify oil and gas properties, specifically: S301, using median filtering to perform two consecutive denoising operations on the calibrated rock cuttings fluorescence image to obtain a fluorescence image with a clear background and no noise as a denoising sample; S302, dividing the denoised samples in step S301 into oil-containing samples with fluorescence reaction, oil-free samples with fluorescence reaction, and oil-free samples without fluorescence reaction as data sets for model training, and then importing the pre-trained weights on the ImageNet data set based on the ResNet18 network for model training, and obtaining an oil and gas classification model after adjusting the parameters, and inputting the rock cuttings fluorescence image to be detected into the trained oil and gas classification model to obtain an oil-containing image; S303, taking the sandstone area obtained in the lithology identification of the white light image of the rock cuttings sample in step S1, and if it contains oil in the subsequent test, classifying the oil and gas content of the fluorescent image by the ratio of the foreground fluorescent area of ​​the oil-containing image to the sandstone area obtained in step S302; S4. Combine the macroscopic lithology of the rock cuttings in step S2 and the oil and gas content classification in step S3 to complete the complete qualitative characterization of the rock cuttings sample and complete the rock sample identification.

2. The rock sample intelligent identification method based on image deep learning according to claim 1 is characterized in that: In step S101, the cv2.ximgproc.createSuperpixelSEEDS() function is called to perform superpixel segmentation, and a rock chip image is segmented along the rock chip block gaps in the image to obtain irregular rock chip block small images.

3. The rock sample intelligent identification method based on image deep learning according to claim 1 is characterized in that: In step S102, the loss function is modified to FocalLoss to train the supervised lithology recognition model M, specifically: Among them, γ ≥ 0 is an adjustable focusing parameter, α is a balancing weight factor, and p is the predicted probability value.

4. The rock sample intelligent identification method based on image deep learning according to claim 1 is characterized in that: In step S103, sample x (i) About the pseudo label of class c as follows: Among them, p c (i) is the probability of the cth category output by the model, and β is the threshold.

5. The rock sample intelligent identification method based on image deep learning according to claim 1 is characterized in that: In step S2, the proportion of each type of lithology in the total area of ​​all input rock cuttings fine-grained samples is calculated based on the predicted lithology classification results. When the sandstone proportion exceeds 45%, it is sandstone, and when the mudstone content exceeds 55%, it is mudstone. When the sandstone proportion is 30% to 45%, it is muddy siltstone, and when the sandstone proportion is 20% to 30%, it is silty mudstone.

6. The rock sample intelligent identification method based on image deep learning according to claim 1 is characterized in that: In step S302, the oil and gas classification model automatically adjusts network parameters during the training process.

7. The rock sample intelligent identification method based on image deep learning according to claim 1 is characterized in that: In step S303, if the test does not contain oil, it is determined to be oil-free.

8. A rock sample intelligent identification system based on image deep learning, characterized in that: include: Building modules, building a semi-supervised lithology recognition model M based on ResNet18 network ′ , specifically: Select the SEEDS superpixel segmentation method to segment the white light images of rock cuttings; The segmented superpixel blocks are screened and calibrated to obtain labeled rock fragmentation fine-grained samples and unlabeled rock fragmentation fine-grained samples. After normalization, the labeled rock fragmentation fine-grained samples and unlabeled rock fragmentation fine-grained samples are sent to the supervised lithology recognition model M based on the ResNet18 network, and the pre-trained weights of the ResNet18 network on the ImageNet dataset are imported to train the supervised lithology recognition model M. The trained supervised lithology recognition model M is used to predict the unlabeled data, and the probability value output by the softmax layer of the ResNet18 network is used as the confidence, and the high-confidence samples are screened as pseudo-labeled data; the supervised lithology recognition model M is retrained using the labeled rock fragments fine-grained samples and pseudo-labeled data obtained in step S102 to obtain a semi-supervised lithology recognition model M based on the ResNet18 network. ′ ; The lithology module performs superpixel segmentation on the mixed rock cuttings sample images collected by logging to obtain fine-grained rock cuttings samples. After normalization, the fine-grained rock cuttings samples are input into the semi-supervised lithology recognition model M based on the ResNet18 network established by the construction module. ′ In the process, the lithology classification results are obtained, and the lithology proportion is calculated according to the lithology classification results to obtain the macroscopic lithology of the cuttings; The oil and gas content module builds a supervised model based on the ResNet18 network to classify oil and gas content, specifically: The calibrated rock cuttings fluorescence images were denoised twice using median filtering to obtain fluorescence images with clear background and no noise as denoised samples. The denoised samples were divided into oil-containing samples with fluorescence reaction, oil-free samples with fluorescence reaction, and oil-free samples without fluorescence reaction as the data set for model training. Then, the pre-trained weights on the ImageNet data set were imported based on the ResNet18 network for model training. After adjusting the parameters, the oil and gas classification model was obtained. The rock cuttings fluorescence images to be detected were input into the trained oil and gas classification model to obtain oil-containing images. Take the white light image of the rock cuttings sample and find the sandstone area in the lithology identification. If it contains oil in the subsequent test, the oil and gas content of the fluorescent image can be classified by the ratio of the foreground fluorescent area of ​​the oil-bearing image to the sandstone area obtained in the step. The identification module combines the macroscopic lithology of the rock cuttings from the lithology module and the hydrocarbon classification from the hydrocarbon module to complete the complete qualitative characterization of the rock cuttings samples and complete the rock sample identification.

Citation Information

Patent Citations

  • Lithology prediction method based on residual network

    CN109613623A

  • Rock debris lithology identification method under condition of PDC drill bit matched with lithology feature library

    CN111709423A

  • Semi-supervised learning method, lithology prediction method and storage medium

    CN112836802A

  • Cuttings Imaging for Determining Geological Properties

    US20210319257A1