Coal and rock identification method based on Bayesian model and fusion of geological information
By using the Bayesian model to fuse geological information in the coal and rock identification method, combined with the improved VGGNet and the naive Bayesian model, the problems of large volume and long inference time of the underground coal and rock identification method are solved, and a fast and high-precision method is achieved. Coal and rock image classification significantly improves recognition accuracy and rationality.
Patent Information
- Application Number
- CN202311269856.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-28
- Publication Date
- 2024-08-27
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing coal and rock identification methods have problems such as large size and long inference time in underground environments, which makes it difficult to classify and identify coal and rock images. There is a lack of fast, high-precision and simple implementation methods.
Using a method based on the Bayesian model to fuse geological information, the improved VGGNet model is used to extract image features, and the naive Bayesian model is combined with the underground coal and rock image features and stratigraphic distribution features to form a joint probability feature of the working face coal and rock. Improve classification accuracy through image enhancement, data augmentation, and attention mechanisms.
Significantly reduces the degree of underfitting of samples, improves model accuracy and the rationality of results. The VGGNet model with an added attention mechanism maintains high accuracy with reduced parameters, and the Bayesian model integrates stratigraphic distribution characteristics and image features. The accuracy was further improved.
Smart Images

Figure CN117218448B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of shaft and tunnel engineering excavation, and in particular relates to a coal and rock identification method based on Bayesian model fusion of geological information. Background Art
[0002] For a long time, the coal-rock recognition method based on computer vision technology has been one of the important directions for studying intelligent coal mining in coal mine intelligent excavation and mining. Among them, identifying the lithology of rocks at the mining face is an important prerequisite for regulating the parameters of mining machines. Coal-rock image recognition identifies the lithology of rocks by using real-time coal-rock images, thereby providing a basis for regulating mining equipment. However, most of the current research relies on computer vision technology without combining other existing technical data to optimize the coal-rock recognition model established using computer vision technology. In addition, the current coal-rock recognition model has problems such as large size and long reasoning time. There are still many difficulties in classifying and identifying coal-rock images under special conditions underground. Therefore, it is urgent to propose a coal-rock recognition method that is fast, accurate and simple to implement. Summary of the invention
[0003] In order to solve the above technical problems, the present invention proposes a coal and rock identification method based on Bayesian model fusion of geological information. The method uses the improved classic convolutional neural network VGGNet model to extract image features, and uses the naive Bayesian model to fuse underground coal and rock image features and underground stratum distribution characteristics of coal mines to form the joint probability characteristics of working face coal and rock, thereby improving the accuracy and rationality of coal and rock image classification.
[0004] To achieve the above object, the present invention provides a coal and rock identification method based on Bayesian model fusion geological information, comprising:
[0005] Acquire coal-rock sample images, and pre-process the coal-rock sample images;
[0006] Using the preset VGGNet model to extract features from the preprocessed coal and rock samples;
[0007] The coal and rock image classification results are obtained by fusing the extracted image features with the stratum distribution characteristics.
[0008] Optionally, preprocessing the coal rock sample image includes:
[0009] Performing image enhancement on the coal rock sample image;
[0010] Data expansion and category balancing are performed on the enhanced coal rock sample images.
[0011] Optionally, performing image enhancement on the coal rock sample image includes:
[0012] Use median filtering to suppress the obstruction of underground dust;
[0013] Use Spectral Residual to extract the preset feature area of the sample image;
[0014] Increase the brightness of the image using gamma transformation.
[0015] Optionally, the method for extracting the preset feature area of the sample image is:
[0016]
[0017] Where I(x) is the input image; Indicates Fourier transform of the image; is the amplitude spectrum; is the phase spectrum; is the Spectral Residual spectrum; h n It is a convolution kernel of n*n mean filter; is the inverse Fourier transform; g(x) is the Gaussian blur operator; S(x) is the final saliency map.
[0018] Optionally, the preset VGGNet model is an improved VGGNet model, wherein the improved VGGNet model includes:
[0019] The model is simplified and an attention mechanism is added, wherein the attention mechanism includes: a channel attention module and a spatial attention module.
[0020] Optionally, the stratigraphic distribution characteristics include: coal seam thickness, pseudo-roof category, pseudo-roof thickness, direct bottom category and direct bottom thickness.
[0021] Optionally, obtaining the coal-rock image classification result includes:
[0022] The extracted image features are fused with the stratum distribution features to construct a data set;
[0023] Using the data set to train a naive Bayes model;
[0024] Based on the trained naive Bayes model, the coal and rock image classification results are obtained.
[0025] Compared with the prior art, the present invention has the following advantages and technical effects:
[0026] The image features of samples optimized by the SRG algorithm used in the present invention are easier to extract, which can significantly reduce the underfitting degree of samples and improve the accuracy of the model; the VGGNet model with an added attention mechanism still maintains a high accuracy rate when the parameters are greatly reduced; the accuracy of the model can be further improved after the Bayesian model integrates the stratum distribution characteristics and image features, effectively improving the accuracy and rationality of the results. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0028] Figure 1 A schematic diagram of a coal and rock identification method based on a Bayesian model and fusion of geological information according to an embodiment of the present invention;
[0029] Figure 2 A schematic diagram of the VGGNet model structure and convolutional layer parameter settings for adding an attention mechanism in an embodiment of the present invention;
[0030] Figure 3 This is an SRG effect diagram of an embodiment of the present invention;
[0031] Figure 4 This is a diagram showing some results of the coal and rock identification method based on the Bayesian model and geological information in an embodiment of the present invention. DETAILED DESCRIPTION
[0032] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0033] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0034] like Figure 1 As shown, this embodiment proposes a coal and rock identification method based on Bayesian model fusion geological information, which specifically includes the following steps:
[0035] Step 1. Image acquisition
[0036] Image acquisition can be done with any camera, but the resolution should not be less than 224px×224px to ensure that there is only one type of rock or coal in the image. It can be shot in low light and high dust conditions.
[0037] Step 2. SRG for image enhancement
[0038] The SRG algorithm is used to enhance the sample image features, making them easier to be learned by the convolutional neural network; secondly, the VGGNet model with the attention mechanism is used to extract the sample image features; finally, the naive Bayes model is used to fuse the extracted image features and the geological features of the coal mine working face, thereby further improving the model classification accuracy and rationality. The details are as follows:
[0039] In order to avoid unclear image features caused by low illumination and high dust in coal mines, this embodiment improves the spectral residual saliency detection algorithm. The improved SRG algorithm first uses median filtering to process samples in order to suppress the occlusion of dust in the mine; secondly, the Spectral Residual algorithm is used to extract the main feature areas of the sample image. The feature area extraction method is shown in formula (1); finally, the gamma transform is used to enhance the image features. The SRG effect is as follows: Figure 3 shown.
[0040]
[0041] The input image is I(x); Perform Fourier transform on the image; is the amplitude spectrum; is the phase spectrum; is the SpectralResidual spectrum; h n It is a convolution kernel of n*n mean filter, where n=3; is the inverse Fourier transform; g(x) is the Gaussian blur operator; S(x) is the final saliency map.
[0042] Step 3. Data expansion and class balance
[0043] The data was expanded using the category balancing module and the expansion module; the sample set was expanded mainly using the affine transformation of OpenCV. First, 369 images of sandstone and mudstone were selected, and 1476 images were obtained by multiplying 369 by 4. Then, 1476 images were taken from the remaining categories and the floor was divided by 360, 372, and 337 as the rotation angle interval multiples of the samples to achieve the effect of category balancing and enhance the generalization performance of the model. The number of samples after data set expansion and category balancing is shown in Table 1 below;
[0044] Table 1 The number of samples after dataset expansion and category balance
[0045]
[0046]
[0047] Step 4. VGGNet with attention mechanism extracts image features
[0048] The present invention uses the improved VGGNet as the feature extraction algorithm of coal rock images, and improves the algorithm mainly from the following two aspects. First, to simplify the redundant parameters of the model and improve the recognition efficiency, the specific convolution layer parameters are set to 16, 32, 64, 64, 128, 128, 128, 128 convolution kernels for convolution, and the model structure is consistent with the VGGNet11 model. A ReLU layer and a maximum pooling layer are set behind each convolution layer. The pruning process in this embodiment is achieved by setting the hyperparameters of the model. For example, the original program specifies 64, 128, 256, 256, 512, 512, 512 convolution kernels, and after pruning, it is 16, 32, 64, 64, 128, 128, 128, 128 convolution kernels. On the other hand, the CBAM attention mechanism is added to the VGGNet model. The CBAM module consists of two parts connected in series: the Channel Attention Module (CAM) and the Spatial Attention Module (SAM). Among them, the channel attention module CAM mainly assigns weights to different channel attention features. The spatial attention module SAM generates spatial attention feature weights, and finally connects them in series with the input feature map to obtain the final attention mechanism features and returns them to the improved VGGNet for training. The CBAM attention mechanism enhances the performance of VGGNet by changing the weight information while enhancing useful features and suppressing the continued transmission of useless features. The specific operation is: after the last pooling layer, add the CBAM module, and finally return to the convolutional neural network to continue training. The VGGNet structure diagram with added attention mechanism and the convolution layer parameter settings are as follows Figure 2 shown.
[0049] Specific implementation method: Use pytorch to build a VGGNet model with an added attention mechanism for training, set it to use GPU, and set the batch according to the video memory. This method is set to 64, and the training rounds are 600 rounds; the initial learning rate is set to 0.1; the model output result is the confidence of each sample in identifying each category.
[0050] Step 5. Fusion of image features and geological features
[0051] The naive Bayes model can generate different class prior probabilities based on different geological conditions and image features, so that the output coal rock image classification results are more consistent with the actual working face. Since only the coal seam and the immediate roof and floor of the coal seam are involved in the actual coal mining process, only the coal seam and its immediate roof and floor information are retained. The stratum distribution characteristics in this embodiment include information as shown in Table 2:
[0052] Table 2 Stratigraphic distribution bar graph
[0053] feature Feature description Coal seam thickness 0.81m False top category sandstone Pseudo top thickness 0.6m Direct bottom category Mudstone Direct bottom thickness 1.1m
[0054] The stratigraphic distribution features and the image features extracted by VGGNet with an added attention mechanism are further abstracted to form the training set of the Bayesian model. The stratigraphic distribution features form the abstract rules of the relative position of the coal seam as follows: the rock directly above the coal seam is valued as 1, the coal seam is valued as 0, and the rock directly below the coal seam is valued as -1. If the current mining equipment does not directly contact this type of rock, it is set to 2 or other numbers different from 1, 0, and -1. In order to make the data distribution close to the Gaussian distribution, the data should be selected symmetrically. The final training set format is shown in Table 3.
[0055] Table 3 Bayesian training set format
[0056]
[0057]
[0058] During the application process, the Bayesian model is incrementally learned, and the incremental learning method is partial_fit.
[0059] Application of the model:
[0060] After the samples are processed by the SRG module (multiple samples can be substituted at the same time), they can be substituted into the model for calculation.
[0061] verify:
[0062] Using self-made coal and rock image samples, VGGNet, VGGNet with added attention mechanism, pruned VGGNet, and GoogLeNet models were used for comparative experiments. The models were evaluated by three indicators, including accuracy, average inference time, and model volume. The experiments showed that when the VGGNet, VGGNet with added attention mechanism, pruned VGGNet, and GoogLeNet models were trained for 600 rounds, the accuracy of the VGGNet model with added attention mechanism was close to that of the original VGGNet model, reaching 91.53%, but the average inference time and model volume were significantly lower than those of the VGGNet model. Therefore, the VGGNet model with added attention mechanism has obvious advantages in the coal and rock recognition task. The VGGNet model with added attention mechanism after transfer learning was used to compare the accuracy of samples optimized by the SRG algorithm and samples not optimized by the SRG algorithm. It was found that the accuracy of samples optimized by the SRG algorithm was higher, and the degree of underfitting of the samples was significantly reduced. Finally, Table 2 was used as the geological information to form the Bayesian training set format as shown in Table 3. It was found that in the case of 8000 repeated samples, the accuracy could be further improved to 97.93% (the accuracy was 95.35% before using the Bayesian model), which verified the practicality of this method.
[0063] The following conclusions were drawn: the image features of samples optimized by the SRG algorithm are easier to extract, which reduces the underfitting degree of the model and improves the accuracy of the model; the VGGNet model with the added attention mechanism still maintains a high accuracy rate when the parameters are greatly reduced; the accuracy of the model can be further improved after the Bayesian model integrates the stratum distribution characteristics and image features, which effectively improves the accuracy and rationality of the results. Some results of the coal and rock identification method based on the Bayesian model integrating geological information are shown below: Figure 4 shown.
[0064] The above are only preferred specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A coal and rock identification method based on Bayesian model fusion geological information, characterized in that: include: Acquire coal-rock sample images, and pre-process the coal-rock sample images; Using the preset VGGNet model to extract features from the preprocessed coal and rock samples; The coal-rock image classification results are obtained by fusing the extracted image features with the stratum distribution features; The preset VGGNet model is an improved VGGNet model, wherein the improved VGGNet model includes: The VGGNet model is simplified and an attention mechanism is added, wherein the attention mechanism includes: a channel attention module and a spatial attention module; The stratum distribution characteristics include: coal seam thickness, pseudo-roof type, pseudo-roof thickness, direct bottom type and direct bottom thickness; Obtaining coal rock image classification results includes: The extracted image features are fused with the stratum distribution features to construct a data set; Using the data set to train a naive Bayes model; Based on the trained naive Bayes model, the coal and rock image classification results are obtained.
2. The method for identifying coal and rock based on Bayesian model and fusion of geological information according to claim 1 is characterized in that: Preprocessing the coal rock sample image includes: Performing image enhancement on the coal rock sample image; Data expansion and category balancing are performed on the enhanced coal rock sample images.
3. The method for identifying coal and rock based on Bayesian model and fusion of geological information according to claim 1 is characterized in that: Performing image enhancement on the coal rock sample image includes: Use median filtering to suppress the obstruction of underground dust; The Spectral Residual algorithm is used to extract the preset feature area of the sample image; Increase image brightness using gamma shift.
4. The method for identifying coal and rock based on Bayesian model and fusion of geological information according to claim 3 is characterized in that: The method for extracting the preset feature area of the sample image is: Where I(x) is the input image; Indicates Fourier transform of the image; is the amplitude spectrum; is the phase spectrum; is the Spectral Residual spectrum; h n It is a convolution kernel of n*n mean filter; is the inverse Fourier transform; g(x) is the Gaussian blur operator; S(x) is the final saliency map.
