Tunnel face surrounding rock hardness identification method and system based on computer vision
Through computer vision technology, the recurrent attention convolutional neural network model is used to identify the hardness of the rock surface image of the tunnel face, which solves the problems of low rock hardness detection efficiency and insufficient flexibility in the existing technology, and achieves high efficiency and low cost. Automatic identification of rock hardness, suitable for all working conditions at tunnel sites.
Patent Information
- Application Number
- CN202410615389.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-17
- Publication Date
- 2024-08-30
AI Technical Summary
The rock hardness detection methods in the existing technology are inefficient and not suitable for all working conditions, especially at tunnel sites, which are difficult to flexibly apply.
A method based on computer vision is used to obtain the rock surface image of the tunnel face and input it into the trained circular attention convolutional neural network model to identify and classify the rock hardness to achieve automated identification.
It realizes rock hardness identification with easy operation, low detection cost and high flexibility. It is suitable for all working conditions on the tunnel site and improves the intelligent level of drilling and blasting operations.
Smart Images

Figure CN118570524A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of surrounding rock classification, and in particular to a method and system for identifying the hardness of surrounding rock at a tunnel face based on computer vision. Background Art
[0002] Rock hardness is the ability of rock to resist being scratched or pressed into its surface by other objects, and its unit of measurement is Pa (Pascal) or MPa (Megapascal). In engineering practice, it is found that some rocks are easy to destroy and some are difficult to break. Rocks that are difficult to break are generally difficult to drill and blast because they are relatively hard, or in general, relatively strong. Rock hardness is mainly related to the properties of the material that makes up the rock. The more hard minerals there are in the rock, the harder the cement, the finer the rock particles, and the denser the structure, the harder the rock. The hardness of rocks with high porosity, low density, and developed cracks will decrease. Therefore, we can roughly estimate the hardness range of the rock by observing with the naked eye, pressing, or scratching the surface. In engineering, hardness is generally measured by manual observation or by using professional hardness testing equipment for testing (existing technology). The results of such a testing method are relatively accurate, but the actual huge amount of engineering leads to low measurement efficiency, or some rock surfaces are not easy (advisable) to use professional hardness testing equipment for testing (technical problems faced)
[0003] In order to improve the intelligence level of rock drilling, blasting and other technologies, automatic identification of rock hardness is essential. At present, there are few studies on automatic identification of rock hardness at home and abroad. Qi Pengfei uses signal analysis to process sensor data and proposes a rock hardness identification algorithm for multiple cutting conditions, completing the rock hardness identification of the cutting process of the rock tunnel boring machine. This rock hardness intelligent identification method collects relevant signals through sensor arrangement for identification. This identification method requires on-site arrangement of sensors, lacks flexibility, and cannot be applied to all on-site conditions of hard rock tunnels. Summary of the invention
[0004] The purpose of the present invention is to provide a method and system for identifying the hardness of surrounding rock at a tunnel face based on computer vision, which has the advantages of simple operation, low detection cost and high flexibility.
[0005] To achieve the above object, the present invention provides the following solutions:
[0006] In a first aspect, the present invention provides a method for identifying the hardness of surrounding rock at a tunnel face based on computer vision, comprising:
[0007] Acquire a rock surface image; the rock surface image is an image of the tunnel face surface;
[0008] The rock surface image of the tunnel face is input into a trained surrounding rock hardness recognition model to obtain a classification level of the surrounding rock hardness in the rock surface image of the tunnel face; the trained surrounding rock hardness recognition model is a model trained with a sample rock image as input and the surrounding rock hardness corresponding to the sample rock image as a label; the surrounding rock hardness recognition model is a model trained based on an improved recurrent attention convolutional neural network.
[0009] Optionally, the process of determining the trained surrounding rock hardness identification model is as follows:
[0010] Obtaining a surface image of the sample rock and the hardness of the surrounding rock of the sample rock;
[0011] Based on the surface image of the sample rock and the surrounding rock hardness of the sample rock, the improved recurrent attention convolutional neural network is trained to obtain a trained surrounding rock hardness recognition model; the improved recurrent attention convolutional neural network is a multi-scale network model, each scale contains a convolutional neural network structure, and each convolutional neural network structure is used to output the category probability of the sample rock; the category probability is the probability that the sample rock belongs to each category in the surrounding rock hardness classification level.
[0012] Optionally, the improved recurrent attention convolutional neural network includes a first convolutional neural network, a second convolutional neural network and a third convolutional neural network; the first convolutional neural network is used to convolve the surface image of the sample rock to obtain a first characteristic image of the sample rock and a first category probability distribution; the second convolutional neural network introduces an attention mechanism on the basis of the first convolutional neural network, and convolves the first characteristic image of the sample rock to obtain a second characteristic image of the sample rock and a second category probability distribution; the third convolutional neural network convolves the second characteristic image of the sample rock on the basis of the second convolutional neural network to obtain a third characteristic image of the sample rock and a third category probability distribution.
[0013] Optionally, the obtaining of the surface image of the sample rock and the hardness of the surrounding rock of the sample rock specifically includes:
[0014] Obtaining broken rock from the blasting site in the tunnel;
[0015] Taking photos and numbering the broken rocks to obtain a surface image of the rocks;
[0016] The hardness value of the crushed rock is tested by the Mohs hardness method to obtain the surrounding rock hardness of the sample rock.
[0017] Optionally, after obtaining the surface image of the sample rock and the hardness of the surrounding rock of the sample rock, the method further includes:
[0018] Performing data enhancement on the surface image of the sample rock, specifically comprising:
[0019] The surface image of the sample rock is enhanced by using random illumination, random contrast, up-down flipping, left-right flipping, random rotation and scaling, and Gaussian blur methods.
[0020] In a second aspect, the present invention provides a tunnel face surrounding rock hardness identification system based on computer vision, comprising:
[0021] An image acquisition module is used to acquire a rock surface image; the rock surface image is an image of the tunnel face surface;
[0022] A classification module is used to input the rock surface image of the tunnel face into a trained surrounding rock hardness recognition model to obtain a classification level of the surrounding rock hardness in the rock surface image of the tunnel face; the trained surrounding rock hardness recognition model is a model trained with a sample rock image as input and the surrounding rock hardness corresponding to the sample rock image as a label.
[0023] Optionally, the image acquisition module includes:
[0024] The acquisition submodule is used to acquire the broken rocks at the blasting site in the tunnel;
[0025] A photographing and numbering module is used to photograph and number the broken rock to obtain a surface image of the sample rock;
[0026] The hardness testing module is used to test the hardness value of the crushed rock using the Mohs hardness method to obtain the surrounding rock hardness of the sample rock.
[0027] Optionally, also include:
[0028] The data enhancement module is used to perform data enhancement on the surface image of the sample rock.
[0029] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0030] The present invention provides a method and system for identifying the hardness of surrounding rocks of tunnel faces based on computer vision, the method comprising obtaining a rock surface image; the rock surface image is an image of the surface of the tunnel face; the rock surface image of the tunnel face is input into a trained surrounding rock hardness identification model to obtain the classification level of the surrounding rock hardness in the rock surface image of the tunnel face; the trained surrounding rock hardness identification model is a model trained by taking a sample rock image as input and the surrounding rock hardness corresponding to the sample rock image as a label; the surrounding rock hardness identification model is a model trained based on an improved recurrent attention convolutional neural network. Compared with the prior art, the method provided by the present invention only needs to input the rock surface image into the surrounding rock hardness identification model to identify and classify the rock hardness, without the need to arrange sensors on site, and without the need to collect related signals through sensor arrangement, so it is easy to operate, has low detection cost and high flexibility. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0032] Figure 1 A schematic flow chart of a method for identifying the hardness of surrounding rock at a tunnel face based on computer vision provided in the first embodiment of the present invention;
[0033] Figure 2 A framework diagram of a rock hardness classification task provided in the first embodiment of the present invention;
[0034] Figure 3 A schematic diagram of a rock hardness classification network model based on RA-CNN provided in Example 1 of the present invention;
[0035] Figure 4 A schematic diagram of the structure of a tunnel face surrounding rock hardness identification system based on computer vision provided in the second embodiment of the present invention. DETAILED DESCRIPTION
[0036] 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 only 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.
[0037] In order to improve the intelligence level of rock drilling, blasting and other technologies, automatic identification of rock hardness is essential. At present, there are few studies on automatic identification of rock hardness at home and abroad. Qi Pengfei uses signal analysis to process sensor data and proposes a rock hardness identification algorithm for multiple cutting conditions, completing the rock hardness identification of the cutting process of the rock tunnel boring machine. When this method relies on arranging sensors to collect signals, it lacks flexibility and cannot adapt to all working conditions.
[0038] In the field of coal and rock classification, image recognition methods are widely used. Image recognition methods use cameras to shoot images of currently cut rocks and distinguish coal and rock based on the different appearances of coal and rock images. Qiang Zhang et al. used FPV integrated image transmission cameras to collect images of different coal and rocks, and completed the recognition of coal and rock images through a two-dimensional discrete wavelet transform method based on controllable pyramid decomposition. Zhang Hua et al. used the differences in texture between coal and rock to extract coal and rock image features through grayscale co-occurrence matrices, and then proved the effectiveness of their method through neural networks. Wu Yunxia et al. used a method to extract coal and rock image features through dictionary learning. In order to overcome the influence of environmental factors, Wang Xing et al. first used an image to train a generative adversarial neural network, and proposed an image-based coal and rock recognition model. Finally, it was proved that image reconstruction and improved model training can achieve image-based coal and rock recognition.
[0039] Predicting rock hardness through rock surface images is a very challenging task, because rock surface images are generally similar, and more detailed image feature extraction is required. In addition, the detailed features that characterize the hardness of images cannot be manually labeled (technical difficulty). Therefore, it is necessary to find an unsupervised learning network for identifying object details, and learn the information of key areas of the image through the network (breakthrough means). In recent years, with the development of artificial intelligence, especially the development of deep learning, new algorithms for image classification tasks have emerged continuously. The task based on micro-scale classification is called fine-grained image classification, which is a hot research direction in computer vision in recent years. The classification of fine-grained images is more refined, and the differences between categories are more subtle. Different categories can only be distinguished by tiny local differences, and these tiny differences require "focused attention" to be discovered and distinguished. Fine-grained image classification has found an excellent application scenario for the visual attention model - let the classification task drive the attention model to discover those subtle but different areas, thereby promoting the model to achieve more accurate image classification.
[0040] The purpose of the present invention is to provide a method and system for identifying the hardness of surrounding rock at a tunnel face based on computer vision, which has the advantages of simple operation, low detection cost and high flexibility.
[0041] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0042] Embodiment 1
[0043] like Figure 1 As shown, this embodiment provides a method for identifying the hardness of surrounding rock at a tunnel face based on computer vision, including:
[0044] Step 101: Acquire a rock surface image; the rock surface image is an image of a tunnel face surface;
[0045] Step 102: Input the rock surface image of the tunnel face into a trained surrounding rock hardness recognition model to obtain a classification level of the surrounding rock hardness in the rock surface image of the tunnel face; the trained surrounding rock hardness recognition model is a model trained with a sample rock image as input and the surrounding rock hardness corresponding to the sample rock image as a label; the surrounding rock hardness recognition model is a model trained based on an improved recurrent attention convolutional neural network.
[0046] In some implementations of this embodiment, when executing steps 101-102, the specific steps may be as follows:
[0047] like Figure 2 As shown in the figure, the rock surface image is obtained through mobile phone photos. Since the shooting in actual engineering projects will be affected by factors such as light and angle, the rock surface image obtained needs to be enhanced. Through random lighting, The collected data images are augmented by machine contrast, up-down flip, left-right flip, random rotation and scaling, Gaussian blur, etc. The image is then fed into a recurrent attention convolutional neural network. The hardness classification of the rock task completed in the surrounding rock hardness identification model is classified by the Mohs hardness method in this embodiment. The depth of the scratch measured in the Mohs hardness method is divided into ten levels to represent the hardness, and the hardness increases gradually from level 1 to level 10.
[0048] Among them, the determination process of the trained surrounding rock hardness identification model is:
[0049] Obtaining a surface image of the sample rock and the hardness of the surrounding rock of the sample rock;
[0050] Based on the surface image of the sample rock and the hardness of the surrounding rock of the sample rock, the improved recurrent attention convolutional neural network is trained to obtain a trained surrounding rock hardness recognition model;
[0051] Specifically, obtaining the surface image of the sample rock and the hardness of the surrounding rock of the sample rock may include:
[0052] Obtaining broken rock from the blasting site in the tunnel;
[0053] Taking photos and numbering the broken rocks to obtain a surface image of the rocks;
[0054] The hardness value of the broken rock is tested by the Mohs hardness method to obtain the surrounding rock hardness of the sample rock. In this embodiment, the hardness value of the broken rock on site is tested by using a Mohs hardness pen. The Mohs hardness is to scratch the surface of the tested mineral with a pyramidal diamond drill by the scratch method and measure the depth of the scratch. The depth of the scratch is the Mohs hardness. The measured scratch depth is divided into ten levels to represent the hardness, and the hardness increases step by step from level 1 to level 10. The hardness level measured on site is used to divide the rock into ten categories according to the Mohs hardness level 1 to level 10 as the image input of the network model.
[0055] After obtaining the surface image of the sample rock and the surrounding rock hardness of the sample rock, it also includes:
[0056] Performing data enhancement on the surface image of the sample rock, specifically comprising:
[0057] Random illumination, random contrast, up-down flipping, left-right flipping, random rotation and scaling, and Gaussian blur methods are used to perform data enhancement on the surface image of the sample rock in order to improve the robustness of the training model.
[0058] The improved recurrent attention convolutional neural network can be specifically as follows:
[0059] like Figure 3 As shown, this embodiment uses a recurrent attention CNN (RA-CNN) as a fine-grained classification reference model for tunnel rock hardness classification. The network belongs to a weakly supervised learning method. The recurrent attention network is a multi-scale network model, which includes three sub-networks of different scales. Each sub-network continuously focuses on the rock image and finds the subtle area that is most helpful for classifying.
[0060] Each scale includes a convolutional neural network structure, and each convolutional neural network structure is used to output the category probability of the sample rock; the category probability is the probability that the sample rock belongs to each category in the surrounding rock hardness classification level. The improved recurrent attention convolutional neural network includes a first convolutional neural network, a second convolutional neural network and a third convolutional neural network; the first convolutional neural network is used to convolve the surface image of the sample rock to obtain the first feature image of the sample rock and the first category probability distribution; the second convolutional neural network introduces an attention mechanism on the basis of the first convolutional neural network, and convolves the first feature image of the sample rock to obtain the second feature image of the sample rock and the second category probability distribution; the third convolutional neural network convolves the second feature image of the sample rock on the basis of the second convolutional neural network to obtain the third feature image of the sample rock and the third category probability distribution.
[0061] RA-CNN classification is performed at three scales from coarse to fine. The three scales are represented by a1, a2, and a3 respectively. Each scale has an independent convolutional neural network (CNN) structure, including the input layer convolution layer, the pooling layer fully connected layer and the softmax output layer. Finally, the probability distribution of image predictions at each scale between different categories can be obtained, which are recorded as Y (1) , Y (2) , Y (3) These three results indicate the probabilities of the classification results of the three parts of this image, and the classification results of the image are predicted by this probability.
[0062] In addition to a convolutional neural network, scales a1 and a2 also have a parallel network branch, namely the Attention Proposal Network (APN), which is used to predict the attention projection position, that is, to form the next scale image through the projection position and the input original image, that is, the output (t x ,t y ,t l ) value, where t x , t y represents the center coordinates of the square area, t l It represents half of the side length of the square. This result is used to capture the area of the original image that needs attention.
[0063] Therefore, the RA-CNN network model is a network that recognizes and learns the image from the whole to the local details, so it can learn more accurate fine-grained features of the image. Finally, through learning and training, the model can predict the hardness classification of the input rock image.
[0064] When training the model, the original rock image is first input, and the category probability of the original rock image is output through the convolutional neural network.
[0065] Then, the original image is trained through the Attention Proposal Network (APN) to obtain the attention area, and an image of the same size as the original image is obtained as the second scale input through operations such as cropping and enlarging. The above process is repeated until the third scale calculation is completed, and the above output results are fused to obtain the final result, that is, the probability distribution of each scale image of the predicted input rock image between different categories is fused, and then the hardness category of the input rock image is obtained.
[0066] In fact, this network model is composed of three parallel convolutional neural networks. The training of convolutional neural networks is divided into two processes. The first is the forward propagation stage, that is, from the input image to the convolution layer, pooling layer, fully connected layer and softmax output layer as described above. When the result of the forward propagation does not meet the expectations, the back propagation stage is carried out to return the error layer by layer, and then update the weights and perform forward propagation to stop training when the error is within expectations.
[0067] After stopping the training, the model is verified. The training model effect is verified through a series of evaluation criteria such as accuracy, recall, precision and other indicators.
[0068] Embodiment 2
[0069] like Figure 4 As shown, this embodiment provides a tunnel face surrounding rock hardness identification system based on computer vision, including:
[0070] An image acquisition module 401 is used to acquire a rock surface image; the rock surface image is an image of the tunnel face surface;
[0071] The classification module 402 is used to input the rock surface image of the tunnel face into a trained surrounding rock hardness recognition model to obtain a classification level of the surrounding rock hardness in the rock surface image of the tunnel face; the trained surrounding rock hardness recognition model is a model trained with a sample rock image as input and the surrounding rock hardness corresponding to the sample rock image as a label.
[0072] Wherein, the image acquisition module 401 includes:
[0073] The acquisition submodule is used to acquire the broken rocks at the blasting site in the tunnel;
[0074] A photographing and numbering module is used to photograph and number the broken rock to obtain a surface image of the sample rock;
[0075] The hardness testing module is used to test the hardness value of the crushed rock using the Mohs hardness method to obtain the surrounding rock hardness of the sample rock.
[0076] The system also includes:
[0077] The data enhancement module is used to perform data enhancement on the surface image of the sample rock.
[0078] In summary, the present invention has the following technical effects:
[0079] The present invention solves the problems of inflexibility and limited applicable conditions of the current on-site surrounding rock hardness detection methods at the tunnel face. The rock surface images of the tunnel face are taken by mobile phones, and the rock image data are trained using the RA-CNN network. Finally, an intelligent classification model of rock hardness of the tunnel face is obtained. The model can be applied to rock hardness detection of all working conditions at the tunnel site. Only the rock images at the tunnel face site are taken by mobile phones, and the classification level of the surrounding rock hardness of the tunnel face can be predicted by this model. This method is not only highly flexible and has a very low detection cost, but also has a very simple operation process. It can provide preliminary data for tunnel blasting and drilling operations, greatly improving operation efficiency.
[0080] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0081] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A method for identifying the hardness of surrounding rock at a tunnel face based on computer vision, characterized in that: include: Acquire rock surface images; The rock surface image is an image of the tunnel face surface; The rock surface image of the tunnel face is input into a trained surrounding rock hardness recognition model to obtain a classification level of the surrounding rock hardness in the rock surface image of the tunnel face; the trained surrounding rock hardness recognition model is a model trained with a sample rock image as input and the surrounding rock hardness corresponding to the sample rock image as a label; the surrounding rock hardness recognition model is a model trained based on an improved recurrent attention convolutional neural network.
2. The method for identifying the hardness of surrounding rock at a tunnel face based on computer vision according to claim 1, characterized in that: The determination process of the trained surrounding rock hardness identification model is as follows: Obtaining a surface image of the sample rock and the hardness of the surrounding rock of the sample rock; Based on the surface image of the sample rock and the surrounding rock hardness of the sample rock, the improved recurrent attention convolutional neural network is trained to obtain a trained surrounding rock hardness recognition model; the improved recurrent attention convolutional neural network is a multi-scale network model, each scale contains a convolutional neural network structure, and each convolutional neural network structure is used to output the category probability of the sample rock; the category probability is the probability that the sample rock belongs to each category in the surrounding rock hardness classification level.
3. The method for identifying the hardness of surrounding rock at a tunnel face based on computer vision according to claim 2, characterized in that: The improved recurrent attention convolutional neural network includes a first convolutional neural network, a second convolutional neural network and a third convolutional neural network; the first convolutional neural network is used to convolve the surface image of the sample rock to obtain a first characteristic image of the sample rock and a first category probability distribution; the second convolutional neural network introduces an attention mechanism on the basis of the first convolutional neural network, and convolves the first characteristic image of the sample rock to obtain a second characteristic image of the sample rock and a second category probability distribution; the third convolutional neural network convolves the second characteristic image of the sample rock on the basis of the second convolutional neural network to obtain a third characteristic image of the sample rock and a third category probability distribution.
4. The method for identifying the hardness of surrounding rock at a tunnel face based on computer vision according to claim 1, characterized in that: The step of obtaining the surface image of the sample rock and the hardness of the surrounding rock of the sample rock specifically includes: Obtaining broken rock from the blasting site in the tunnel; Taking photos and numbering the broken rocks to obtain a surface image of the rocks; The hardness value of the crushed rock is tested by the Mohs hardness method to obtain the surrounding rock hardness of the sample rock.
5. The method for identifying the hardness of surrounding rock at a tunnel face based on computer vision according to claim 1, characterized in that: After obtaining the surface image of the sample rock and the surrounding rock hardness of the sample rock, it also includes: Performing data enhancement on the surface image of the sample rock, specifically including: The surface image of the sample rock is enhanced by using random illumination, random contrast, up-down flipping, left-right flipping, random rotation and scaling, and Gaussian blur methods.
6. A computer vision-based tunnel face surrounding rock hardness identification system, characterized in that: include: An image acquisition module, used for acquiring rock surface images; The rock surface image is an image of the tunnel face surface; A classification module is used to input the rock surface image of the tunnel face into a trained surrounding rock hardness recognition model to obtain a classification level of the surrounding rock hardness in the rock surface image of the tunnel face; the trained surrounding rock hardness recognition model is a model trained with a sample rock image as input and the surrounding rock hardness corresponding to the sample rock image as a label.
7. The computer vision-based tunnel face surrounding rock hardness identification system according to claim 6, characterized in that: The image acquisition module comprises: The acquisition submodule is used to acquire the broken rocks at the blasting site in the tunnel; A photographing and numbering module is used to photograph and number the broken rock to obtain a surface image of the sample rock; The hardness testing module is used to test the hardness value of the crushed rock using the Mohs hardness method to obtain the surrounding rock hardness of the sample rock.
8. The computer vision-based tunnel face surrounding rock hardness identification system according to claim 6, characterized in that: Also includes: The data enhancement module is used to perform data enhancement on the surface image of the sample rock.
Citation Information
Patent Citations
Tunnel surrounding rock grade intelligent determination method based on VGG convolutional neural network
CN113112447A
Method and device for determining hardness degree of tunnel face rock based on image and electronic equipment
CN115309835A
Rock classification method based on deep learning of microscopic images of rock slices
ZA202110534B
Cited By
Wall-attaching type microwave rock crushing method and device suitable for shield tunneling machine loading
CN119554044A
