Rock core image gravity flow identification method based on deep learning

Through deep learning and multi-model parameter superposition algorithm, combined with feature threshold analysis, a WeChat mini program was developed to assist geologists in core image recognition, solving the subjectivity and misjudgment problems of core image recognition, and improving the recognition accuracy and reliability.

CN118887455AActive Publication Date: 2024-11-01CHINA UNIV OF GEOSCIENCES (WUHAN) +1

Patent Information

Application Number
CN202410914068.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-11-01
Estimated Expiration
2044-07-09

AI Technical Summary

Technical Problem

The gravity flow recognition work in core images depends on the experience of experts, has strong subjectivity and risk of misjudgment, and is difficult, so the existing technology cannot effectively improve the accuracy rate.

Method used

Using a deep learning-based method, through transfer learning and multi-model parameter superposition algorithm, combined with feature threshold analysis and multi-model parameter superposition algorithm, a WeChat mini-program is developed to assist geologists in the recognition of gravity flow of core images.

Benefits of technology

It improves the accuracy of gravity flow recognition in core images, reduces artificial interference, enhances the reliability of recognition results, and can be used effectively outdoors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118887455A_ABST
    Figure CN118887455A_ABST
Patent Text Reader

Abstract

The invention provides a rock core image gravity flow identification method based on deep learning, and belongs to the technical field of rock core image processing, and the method comprises the following steps: collecting an original rock core image data set, and carrying out the preprocessing; by adopting a transfer learning method, training the preprocessed data set by applying pre-training model parameters of MobileNetV2 to obtain n models; collecting a non-rock-core image, screening features which have significant influence on whether the image is a rock-core image or not, and performing threshold analysis to obtain a feature threshold; the obtained feature threshold and the obtained n models are introduced into background development of the application program, and development of the application program is carried out; a user uploads an image through an application program, and the background of the application program returns a final result to a user interface according to a core image discrimination mechanism and a core image gravity flow identification mechanism. According to the core image gravity flow identification method based on deep learning, the accuracy of core image gravity flow identification can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of core image processing, and in particular to a core image gravity flow recognition method based on deep learning. Background Art

[0002] Cores are important physical geological data for studying and understanding underground geology and mineral conditions. Under the action of gravity flow, cores can intuitively reflect underground strata and mineral-bearing characteristics, so gravity flow identification of core images has important social and economic significance.

[0003] At present, the gravity flow identification work of core images is basically completely dependent on the experience and knowledge of experts, which is highly subjective and has too much human intervention. In addition, the gravity flow identification work of core images is a difficult task, and even experienced geological experts may make misjudgments. With the continuous development of artificial neural networks, the application of deep learning in the field of images is becoming more and more extensive and in-depth. It is feasible to apply deep learning to the gravity flow identification work of core images. Summary of the invention

[0004] The purpose of the present invention is to provide a core image gravity flow recognition method based on deep learning, which can assist geologists in performing gravity flow recognition of core images and effectively improve the accuracy of gravity flow recognition of core images.

[0005] To achieve the above object, the present invention provides a core image gravity flow recognition method based on deep learning, comprising the following steps:

[0006] S1, collecting the original core image data set and preprocessing it to obtain preprocessed data;

[0007] S2, using the transfer learning method, using the pre-trained model parameters of MobileNetV2 to train the pre-processed data set to obtain n single models, 4≤n≤8;

[0008] S3, collecting non-core images, screening features that have a significant impact on whether the image is a core image, and performing threshold analysis to obtain feature thresholds;

[0009] S4, introducing the feature threshold obtained in step S3 and the n single models obtained in step S2 into the background development of the application to develop the application;

[0010] S5. The user uploads the image through the application, and the application background returns the final result to the user interface according to the core image discrimination mechanism and the core image gravity flow recognition mechanism.

[0011] Preferably, in step S1, the original core image data set includes three types: debris, turbidity flow and landslide.

[0012] Preferably, in step S1, preprocessing includes random rotation and random flipping. In terms of data preprocessing, the training sample is rotated 45° with a probability of 50%, and then randomly cropped to obtain a 224×224 image. Considering the small number of training samples, in order to achieve better training results, the obtained 224×224 image is flipped horizontally and vertically with a probability of 50%. In addition, for core images, texture features are more important than color features, so the image is finally converted to a grayscale image with a probability of 10%, so that the model pays more attention to texture rather than color during training. For the validation set and the test set, the image size is first adjusted to 256×256, and then a 224×224 image is obtained by center cropping to keep it consistent with the training samples.

[0013] Preferably, in step S2, transfer learning is used to reference the MobileNetV2 model parameters pre-trained on ImageNet, and the model parameters are updated by back propagation during the training process.

[0014] Preferably, in step S2, during the training process, a loss curve and an accuracy curve are drawn using a visdom visualization tool, and the fitting effect of the model is judged according to the convergence of the loss curve and the accuracy curve;

[0015] And conduct m trainings, from which the model parameters corresponding to the n times with the highest average accuracy are selected and introduced into the background development of the application, where 8≤m≤15.

[0016] Preferably, in step S3, the method for screening features that have a significant impact on whether the image is a core image is one-way analysis of variance, and the features include the mean of the three RGB channels of the image, the brightness of the image, the entropy of the image, and the saturation of the image.

[0017] Preferably, in step S5, the core image discrimination mechanism determines whether the image uploaded by the user is a core image based on the screened features and their corresponding thresholds. If it is a core image, subsequent judgment is made based on the core image gravity flow recognition mechanism; if it is not a core image, a prompt message is directly returned to the user.

[0018] Preferably, in step S5, the core image gravity flow recognition mechanism recognizes the core image uploaded by the user according to a multi-model parameter superposition algorithm, and returns the recognition result to the user interface.

[0019] Preferably, in step S5, the multi-model parameter superposition algorithm adds the output results corresponding to n single model parameters, and then finds the category with the largest prediction value, that is, the recognition result, by calling the argmax() method.

[0020] Therefore, the present invention adopts the above-mentioned core image gravity flow recognition method based on deep learning, and the technical effects are as follows:

[0021] (1) The present invention designs and implements a core image gravity flow recognition method based on deep learning, which can determine whether the image uploaded by the user is a core image and return the judgment result to the user interface;

[0022] (2) This method is placed in a small program to facilitate staff to use it outdoors;

[0023] (3) The present invention can identify the core image uploaded by the user and return one of the three categories of "debris", "turbidity flow" and "slump" to the user interface. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 A flowchart of an embodiment of a core image gravity flow recognition method based on deep learning according to the present invention;

[0025] Figure 2 For debris images. DETAILED DESCRIPTION

[0026] The technical solution of the present invention is further described below through the accompanying drawings and embodiments.

[0027] Unless otherwise defined, technical or scientific terms used in the present invention shall have the common meanings understood by one having ordinary skills in the field to which the present invention belongs.

[0028] Embodiment 1

[0029] In this embodiment, 595 core images collected from a certain area and marked are used as a data set, including 219 debris, 248 turbidity currents, and 128 landslides; 10 non-core images randomly taken by a simulated user are used as a data set for variance analysis and threshold analysis. In this embodiment, the application is a WeChat applet.

[0030] like Figure 1 As shown, it is a schematic diagram of the process of a WeChat applet for core image gravity flow recognition based on deep learning in the present invention, which specifically includes the following steps:

[0031] Step S01, using transfer learning, using the pre-trained model parameter training data set of MobileNetV2 to obtain 4 model parameters.

[0032] Before starting training, the dataset was expanded from the original 595 images to 2776 images by rotating them by 90°, 180°, and 270° and flipping them. They were then divided into training and test sets in a ratio of 7:3, with 1943 images in the training set and 833 images in the test set.

[0033] Introduce the pre-trained MobileNetV2 neural network model framework and its corresponding model parameters for training. Use the visdom visualization tool to draw the Loss curve and Accuracy curve, and judge the fitting effect of the model parameters by observing the convergence of the Loss curve and Accuracy curve.

[0034] Each training session re-divided the training set and the test set in a ratio of 7:3, and a total of 10 training sessions were conducted. The model parameters corresponding to the 4 training sessions with the highest average accuracy were selected and introduced into the subsequent development of WeChat mini-programs. The results of the 10 training sessions are shown in Table 1.

[0035] Table 110 training results

[0036] Experiment No. Average accuracy Experiment No. Average accuracy 1 93% 6 80% 2 92% 7 87% 3 88% 8 86% 4 91% 9 90% 5 89% 10 88%

[0037] Step S02, perform variance analysis on each feature of the collected non-core image, obtain the features that have a significant impact on whether the image is a core image, and perform threshold analysis on it. For the collected non-core images, call the function in the opencv library to obtain the RGB three-channel mean, brightness, saturation and entropy of these 10 images in turn. The specific data of each feature is shown in Table 2.

[0038] Table 2 Specific data table of each feature of non-core image

[0039]

[0040]

[0041] Using a single-factor ANOVA model, at a given significance level of α = 0.025, we tested the hypothesis H0: α1 = α2 = … = α r =0 or H0: μ1=μ2=…=μ r The rule is:

[0042] The observed value of F is calculated from the test data:

[0043] If F≧F 1-α (r-1, nr), then H0 is rejected, that is, factor A is considered to have a significant impact on the test results;

[0044] If F﹤F 1-α (r-1, nr), then accept H0, that is, it is considered that factor A has no significant effect on the test results;

[0045] The one-way ANOVA table is shown in Table 3:

[0046] Table 3 One-way ANOVA table

[0047]

[0048] According to the one-way ANOVA table, variance analysis is performed on the mean of the three RGB channels of the image, the brightness of the image, the saturation of the image, and the entropy of the image. The specific operations are as follows:

[0049] ANOVA based on R channel mean

[0050] The mean values ​​of the R channels of core images and non-core images are statistically analyzed and summarized in Table 4.

[0051] Table 4 R channel mean calculation table

[0052]

[0053] r=2,n=20

[0054] Using Python to write code, we can calculate:

[0055]

[0056] S T =58769.694695

[0057] S A =S T -S e ≈58769.69-46099.62=12670.07

[0058]

[0059] Where F is the observed value, r is the different levels of the factor (here 2, i.e. core image and core image), n is the total number of samples (here 20), S A is the square of the deviation of factor A or the sum of squares of the deviations between groups (abbreviated as the sum of squares between groups), S e is the sum of squares of experimental errors or the sum of squares of within-group deviations (referred to as within-group sum of squares), S T is the total deviation sum of squares (abbreviated as total sum of squares);

[0060] Given a significant level of α = 0.025, and looking up the F distribution table, we get:

[0061] F 1-α (r-1,nr)=F 1-0.025 (1,18)=5.98

[0062] Because F = 4.95 < 5.98 = F 1-0.025 (1,18), so we accept H0: α1=α2=0, that is, the mean value of the R channel has no significant effect on whether the image is a core image.

[0063] ANOVA based on the mean of G channel

[0064] The mean values ​​of G channels of core images and non-core images are statistically analyzed and summarized in Table 5.

[0065] Table 5G channel mean calculation table

[0066]

[0067]

[0068] r=2,n=20

[0069] Using Python to write code, we can calculate:

[0070]

[0071] S T =57380.37862

[0072] S A =S T -S e ≈57380.38-48422.93=8957.45

[0073]

[0074] Given a significant level of α = 0.025, and looking up the F distribution table, we get:

[0075] F 1-α (r-1,nr)=F 1-0.025 (1,18)=5.98

[0076] Because F = 3.33 < 5.98 = F 1-0.025 (1,18), so we accept H0: α1=α2=0, that is, the mean value of the G channel has no significant effect on whether the image is a core image.

[0077] ANOVA based on the mean of channel B

[0078] The mean values ​​of channel B of core images and non-core images are statistically analyzed and summarized in Table 6.

[0079] Table 6B Channel mean calculation table

[0080]

[0081] r=2,n=20

[0082] Using Python to write code, it is easy to calculate:

[0083]

[0084] S T =60614.61652

[0085] S A =S T -S e ≈60614.62-55851.68=4762.94

[0086]

[0087] Given a significant level of α = 0.025, and looking up the F distribution table, we get:

[0088] F 1-α (r-1,nr)=F 1-0.025 (1,18)=5.98

[0089] Because F=1.54<5.98=F 1-0.025 (1,18), so we accept H0: α1=α2=0, that is, the mean value of channel B has no significant effect on whether the image is a core image.

[0090] (4) Variance analysis based on image brightness

[0091] The brightness of core images and non-core images is statistically analyzed and organized into Table 7.

[0092] Table 7 Brightness calculation table

[0093]

[0094] r=2,n=20

[0095] Using Python to write code, it is easy to calculate:

[0096]

[0097] S T =40388.0767

[0098] S A =S T -S e ≈40388.08-36608.75=3779.33

[0099]

[0100] Given a significant level of α = 0.025, and looking up the F distribution table, we get:

[0101] F 1-α (r-1,nr)=F 1-0.025 (1,18)=5.98

[0102] Because F = 1.86 < 5.98 = F 1-0.025 (1,18), so we accept H0: α1=α2=0, that is, brightness has no significant effect on whether the image is a core image.

[0103] (5) Variance analysis based on image saturation

[0104] The brightness of core images and non-core images is statistically analyzed and organized into Table 8.

[0105] Table 8 Saturation calculation table

[0106]

[0107] r=2,n=20

[0108] Using Python to write code, it is easy to calculate:

[0109]

[0110] S T =0.22684375

[0111] S A =S T -S e ≈0.22684-0.16689=0.05995

[0112]

[0113] Given a significant level of α = 0.025, and looking up the F distribution table, we get:

[0114] F 1-α (r-1,nr)=F 1-0.025 (1,18)=5.98

[0115] Because F=6.47>5.98=F 1-0.025 (1,18), so we reject H0: α1=α2=0, which means that saturation has a significant effect on whether the image is a core image.

[0116] (6) Variance analysis based on image entropy

[0117] The contrast ratios of core images and non-core images were statistically analyzed and summarized in Table 9.

[0118] Table 9 Entropy calculation table

[0119]

[0120] r=2,n=20

[0121] Using Python to write code, it is easy to calculate:

[0122]

[0123] S T =32.4963

[0124] S A =S T -S e ≈32.4963-32.12447=0.37183

[0125]

[0126] Given a significant level of α = 0.025, and looking up the F distribution table, we get:

[0127] F 1-α (r-1,nr)=F 1-0.025 (1,18)=5.98

[0128] Because F = 0.21 < 5.98 = F 1-0.025 (1,18), so we accept H0: α = 0, that is, entropy has no significant effect on whether the image is a core image.

[0129] Through the above variance analysis, it can be concluded that the saturation of the image has a significant impact on whether the image is a core image.

[0130] The saturation of the core image and the non-core image was subjected to threshold analysis, and the analysis results are shown in Table 10.

[0131] Table 10 Saturation threshold analysis results

[0132] Core images Non-core images Saturation maximum 0.6804 0.4807 Saturation minimum 0.0147 0.1042

[0133] According to statistics, about 63% of the core images have a saturation less than or equal to 0.10, so 0.10 is a reasonable threshold. If the saturation of an image is less than or equal to 0.10, it is a core image; if it is greater than 0.10, it is a non-core image.

[0134] Although setting the threshold in this way loses some accuracy, it allows the WeChat applet to identify a large number of non-core images, thereby increasing the robustness of the applet.

[0135] Step S03, upload the four model parameters obtained through training and the results obtained through variance analysis and threshold analysis to the background server of the WeChat applet for subsequent development and use.

[0136] Step S04, development of WeChat Mini Program. In order to officially put the WeChat Mini Program into use, the domain name www.kylelvweiyi.com was purchased and passed the ICP filing. The corresponding SSL certificate was also configured and the Tencent Cloud server was rented. The WeChat Mini Program front-end development uses the WeChat developer tool; the overall deployment of the WeChat Mini Program uses the Flask+Nginx+Gunicorn framework.

[0137] Step S05, the user uploads the image through the WeChat applet, and the WeChat applet background returns the final result to the user interface according to the core image discrimination mechanism and the core image gravity flow recognition mechanism.

[0138] The core image identification mechanism is used to determine whether the image uploaded by the user is a core image. The system compares the saturation of the image uploaded by the user with the set threshold of 0.10. If the saturation of the image is less than or equal to 0.10, it is judged to be a core image; if the saturation of the image is greater than 0.10, it is judged to be a non-core image. At this time, the server returns a prompt message to the user interface.

[0139] The core image gravity flow recognition mechanism recognizes the core images uploaded by users based on the multi-model parameter superposition algorithm and returns the recognition results to the user interface.

[0140] The multi-model parameter superposition algorithm adds the output results corresponding to the four model parameters, and then calls the argmax() method to find the category with the largest prediction value, that is, the recognition result.

[0141] like Figure 2 As shown in Figure 11, taking a debris image as an example, the output results corresponding to the four model parameters are shown in Table 11.

[0142] Table 114 Model parameter output results

[0143] Output Turbidity Stream Landslide Debris output1 -1.9369 -3.7151 5.0037 output2 -1.7970 -3.9328 6.1006 output3 -2.8389 -3.4969 5.4873 output4 -1.8562 -3.4493 7.0889 output -8.4290 -14.5940 23.6805

[0144] Output1, output2, output3 and output4 are summed to obtain output. By calling the argmax() method on output, the final prediction result can be obtained. In Table 11, it is obvious that the final identified result is debris.

[0145] The core idea of ​​the multi-model parameter superposition algorithm is that the discrimination error of a single model can be corrected by other models by adding the output results, thereby improving the overall recognition accuracy.

[0146] It is worth noting that the contents not elaborated in detail above are all prior art and are well known to those skilled in the art.

[0147] Therefore, the present invention adopts the above-mentioned core image gravity flow recognition method based on deep learning, which can assist geologists in performing gravity flow recognition of core images and effectively improve the accuracy of gravity flow recognition of core images.

[0148] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that they can still modify or replace the technical solution of the present invention with equivalents, and these modifications or equivalent replacements cannot cause the modified technical solution to deviate from the spirit and scope of the technical solution of the present invention.

Claims

1. A core image gravity flow recognition method based on deep learning, characterized in that: The following steps are involved: S1, collecting the original core image data set and preprocessing it to obtain preprocessed data; S2, using the transfer learning method, using the pre-trained model parameters of MobileNetV2 to train the pre-processed data set to obtain n single models, 4≤n≤8; S3, collecting non-core images, screening features that have a significant impact on whether the image is a core image and performing threshold analysis to obtain feature thresholds; S4, introducing the feature threshold obtained in step S3 and the n single models obtained in step S2 into the background development of the application to develop the application; S5. The user uploads the image through the application, and the application background returns the final result to the user interface according to the core image discrimination mechanism and the core image gravity flow recognition mechanism.

2. The method for identifying gravity flow in core images based on deep learning according to claim 1, characterized in that: In step S1, the original core image data set includes three types: debris, turbidity flow and landslide.

3. The method for identifying gravity flow in core images based on deep learning according to claim 2, characterized in that: In step S1, preprocessing includes random rotation and random flipping.

4. The method for identifying gravity flow in core images based on deep learning according to claim 3, characterized in that: In step S2, transfer learning is used to reference the MobileNetV2 model parameters pre-trained on ImageNet, and the model parameters are updated through back propagation during the training process.

5. The method for identifying gravity flow in core images based on deep learning according to claim 4, characterized in that: In step S2, during the training process, the Loss curve and the Accuracy curve are drawn using the visdom visualization tool, and the fitting effect of the model is judged according to the convergence of the Loss curve and the Accuracy curve; And conduct m trainings, from which the model parameters corresponding to the n times with the highest average accuracy are selected and introduced into the background development of the application, where 8≤m≤15.

6. The method for identifying gravity flow in core images based on deep learning according to claim 5, characterized in that: In step S3, the method for screening features that have a significant impact on whether the image is a core image is one-way analysis of variance, and the features include the mean of the three channels of RGB of the image, the brightness of the image, the entropy of the image, and the saturation of the image.

7. The method for identifying gravity flow in core images based on deep learning according to claim 6, characterized in that: In step S5, the core image discrimination mechanism determines whether the image uploaded by the user is a core image based on the screened features and their corresponding thresholds. If it is a core image, subsequent judgment is made based on the core image gravity flow recognition mechanism; if it is not a core image, a prompt message is directly returned to the user.

8. The method for identifying gravity flow in core images based on deep learning according to claim 7, characterized in that: In step S5, the core image gravity flow recognition mechanism recognizes the core image uploaded by the user according to the multi-model parameter superposition algorithm, and returns the recognition result to the user interface.

9. The method for identifying gravity flow in core images based on deep learning according to claim 8, characterized in that: In step S5, the multi-model parameter superposition algorithm adds the output results corresponding to n single model parameters, and then finds the category with the largest prediction value, that is, the recognition result, by calling the argmax() method.

Citation Information

Patent Citations

  • Classification method and device for selecting high spectral wavelength based on single factor variance analysis

    CN110020679A

  • Tunnel surrounding rock lithology identification method based on transfer learning model

    CN113077009A

  • Clastic rock lithology identification method and system based on deep learning method

    CN113128477A

  • Gravity flow deposition cause logging identification method

    CN114059999A

  • Method and device for generating stylized image, electronic equipment and storage medium

    CN114429418A

Cited By

  • Foundation airglow gravity wave image quick judgment method and system

    CN121053596A