TBM rock and debris classification method based on global attention mechanism and residual neural network
The TBM rock debris classification method using global attention mechanism and residual neural network solves the problem of difficulty in obtaining surrounding rock conditions during TBM tunneling, realizes real-time identification of surrounding rock grade and parameter adjustment, and improves construction efficiency and safety.
Patent Information
- Application Number
- CN202410050672.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-12
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2044-01-12
AI Technical Summary
In existing TBM tunneling processes, it is difficult to accurately obtain information about the surrounding rock conditions ahead, which affects construction efficiency and safety.
A TBM-based rock debris classification method based on global attention mechanism and residual neural network is adopted. Through image segmentation and parameter calculation, rock debris is identified and classified in real time to obtain the surrounding rock condition.
It enables accurate segmentation and parameter extraction of rock debris during TBM tunneling, and provides real-time feedback on the surrounding rock grade, thereby improving construction efficiency and safety.
Smart Images

Figure CN117876776B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of image processing and adaptive prediction technology of TBM surrounding rock, specifically involving a TBM rock debris classification method based on global attention mechanism and residual neural network. Background Technology
[0002] TBM construction, or full-face tunnel boring machine, primarily involves using the rotary cutterhead of a TBM in hard rock environments to shear and crush the rock. The cuttings are then picked up by the bucket teeth on the cutterhead and transported backward on a conveyor belt, and finally transported to the outside of the tunnel by traction muck trucks or a continuous conveyor belt within the tunnel. In soft, unstable surrounding rock, the disturbance during tunneling, combined with depth and high ground stress, can easily lead to severe compression and large deformation, causing the TBM to jam during excavation and resulting in shield damage.
[0003] For hard rock formations, excessively high uniaxial saturated compressive strength makes TBM tunneling difficult and causes severe cutter wear. Uniaxial saturated compressive strength primarily affects the overall stability of the excavation face and the tunneling speed, thus impacting the TBM's tunneling costs.
[0004] There are no clear technical specifications for the geological classification of surrounding rock in TBM (Tunnel Boring Machine) tunneling. TBM parameters need to be adjusted appropriately according to changes in rock mass grade. Inaccurate judgment of rock mass grade can affect TBM tunneling efficiency. However, traditional surrounding rock classification methods are mainly based on drill-and-blast construction and are used to evaluate the stability of tunnel surrounding rock, which is difficult to apply to the evaluation and prediction of TBM tunneling performance. Therefore, it is of great significance to propose a tunnelability classification method suitable for TBM tunnels and achieve accurate perception and identification of tunnelability grade. Currently, traditional surrounding rock classification methods at home and abroad, such as the RMR classification system, Q system, BO classification method, and HC classification method, are often used for stability evaluation and support type selection in drill-and-blast construction, and are difficult to effectively guide the evaluation and prediction of TBM tunneling performance.
[0005] Rock cuttings, as a direct byproduct of the surrounding rock during TBM tunneling, can characterize the hardness and integrity of the rock mass. For example, in fractured surrounding rock, the rock cutting particle size is uneven, with large-sized rock cuttings present; in intact, hard rock cuttings, the particle size is uniform, mostly small-sized flaky rock cuttings. In actual TBM construction, the geological drilling information based on the design drawings only provides a preliminary understanding of the surrounding rock in the TBM's tunneling section. During actual tunneling, the surrounding rock often includes interlayers, fracture zones, and other areas. Therefore, real-time perception of the surrounding rock ahead is crucial for dynamically adjusting TBM tunneling parameters. Summary of the Invention
[0006] To address the aforementioned shortcomings in existing technologies, the TBM rock debris classification method based on global attention mechanism and residual neural network provided by this invention solves the problem that it is difficult to accurately obtain the surrounding rock conditions ahead during existing TBM tunneling processes, thus affecting TBM tunneling construction.
[0007] To achieve the aforementioned objectives, the technical solution adopted by this invention is: a TBM slag classification method based on a global attention mechanism and a residual neural network, comprising the following steps:
[0008] S1. Collect images of rock slag discharge from different surrounding rock sections during excavation;
[0009] S2. Construct an image segmentation model based on a global attention mechanism and a residual neural network, and train it using images of rock slag discharge to obtain a trained image segmentation model;
[0010] S3. Use the trained image segmentation model to segment the collected rock slag images at regular intervals to obtain several local rock slag binary images.
[0011] S4. Analyze and preprocess several local binary images of rock debris to obtain preprocessed binary images of rock debris.
[0012] S5. Calculate the rock slag parameters from the pretreated binary rock slag image and classify the TBM rock slag according to the rock slag parameters.
[0013] Furthermore, in step S2, the image segmentation model based on the global attention mechanism and residual neural network adopts the Unet network architecture, which includes an encoder and a decoder;
[0014] The encoder uses a ResNet34 convolutional structure to extract image features;
[0015] The decoder is used to decode and restore the image based on the extracted image features; during the decoding process, the decoder integrates a global attention mechanism.
[0016] Furthermore, the encoder adopts a ResNet34 convolutional structure, including a 7x7 convolutional layer, a 3x3 max pooling layer, a first convolutional group conv2_x, a second convolutional group conv3_x, a third convolutional group conv4_x, a fourth convolutional group conv5_x, an average pooling layer, and an output layer connected in sequence.
[0017] The first convolutional group conv2_x, the second convolutional group conv3_x, the third convolutional group conv4_x, and the fourth convolutional group conv5_x correspond to four encoding downsampling operations, reducing the feature resolution to 1 / 4, 1 / 8, 1 / 16, and 1 / 32 of the input feature, respectively.
[0018] Furthermore, when training the image segmentation model, the loss function L is:
[0019]
[0020] In the formula, y i To represent the label of sample i, slag is 1 and background is 0; p i To represent the probability that sample i is predicted to be of the positive class, L i The cross-entropy loss function value obtained for each sample, where i = 1, 2, ..., N is the number of samples;
[0021] When the classification samples in the slag discharge images used to train the image segmentation model are imbalanced, the loss function L... fl for:
[0022]
[0023] In the formula, Let y be the prediction for sample i, γ be the dynamic scaling factor, and y be the label of sample i, where 1 is for positive class and 0 is for negative class.
[0024] Further, step S4 specifically includes:
[0025] S41. The original images of several local rock debris binary images are stitched together to restore the overall rock debris binary image.
[0026] S42. Perform opening operations, eliminate isolated noise points, eliminate thin and narrow connections between rock fragments, and smooth the contours of connected rock fragment regions on the overall binary image of rock fragments to obtain the preprocessed binary image of rock fragments.
[0027] Furthermore, in step S5, the rock slag parameters include normal rock slag ratio, non-uniformity coefficient, and curvature coefficient.
[0028] Furthermore, the formula for calculating the normal rock slag ratio P is:
[0029]
[0030] In the formula, s z s represents the discharge size of normal rock debris in the binary image of rock debris, s represents the discharge size of all rock debris in the binary image of rock debris, and n = 1, 2, ..., i represents the number of rock debris;
[0031] Inhomogeneity coefficient C u The calculation formula is:
[0032]
[0033] curvature coefficient C C The calculation formula is:
[0034]
[0035] In the formula, d 60 d 30 and d 10 These are the diameter values on the horizontal axis corresponding to the cumulative distribution of 60%, 30%, and 10% on the vertical axis of the cumulative distribution curve plot of rock slag, which is plotted by converting the original parameters of rock slag in the binary rock slag diagram into length scale units. In the cumulative distribution curve plot of rock slag, the horizontal axis is the particle diameter and the vertical axis is the cumulative distribution value.
[0036] Furthermore, in step S5, the method for classifying TBM rock debris is specifically as follows:
[0037] The parameters of the rock debris collected from the images are calculated periodically and compared with the parameters of rock debris discharge under various surrounding rock conditions collected in the database to determine the classification level of the surrounding rock discharge. The classification level includes intact, relatively broken, broken and extremely broken.
[0038] The beneficial effects of this invention are as follows:
[0039] (1) This invention provides a TBM rock debris classification method based on global attention mechanism and residual neural network. Through identification, parameter extraction and surrounding rock adaptability discrimination method, it can accurately and in real time obtain the rock debris segmentation results in the TBM tunneling process. Through the key parameters of rock debris, including curvature coefficient, proportion of flaky rock debris, non-uniformity coefficient, etc., the surrounding rock condition in front of the TBM tunneling process is fed back in real time.
[0040] (2) The method of the present invention can improve the segmentation accuracy of TBM rock slag dataset, and provides a method for real-time extraction of rock slag parameters. It also provides a method for real-time prediction of surrounding rock grade based on rock slag parameters, which can improve the construction strategy of real-time interaction between TBM and surrounding rock.
[0041] (3) The present invention classifies the rock debris in the real-time collected slag images into one of four categories: intact, relatively broken, broken and extremely broken, as an adaptive prediction of the surrounding rock in front of the TBM during tunneling, which helps the TBM driver to perceive the surrounding rock status in real time, adjust the tunneling parameters, improve the situation of shutdown caused by untimely adjustment of tunneling parameters or sudden surrounding rock conditions, and improve construction efficiency and construction safety. Attached Figure Description
[0042] Figure 1 The flowchart of the TBM slag classification method based on global attention mechanism and residual neural network provided by the present invention is shown.
[0043] Figure 2 This is a schematic diagram of the image segmentation model provided by the present invention.
[0044] Figure 3 The ResNet34 provided in this invention serves as a schematic diagram for downsampling encoding.
[0045] Figure 4 A schematic diagram of the global attention mechanism module provided by the present invention. Detailed Implementation
[0046] The specific embodiments of the present invention are described below to enable those skilled in the art to understand the present invention. However, it should be understood that the present invention is not limited to the scope of the specific embodiments. For those skilled in the art, various changes are obvious as long as they are within the spirit and scope of the present invention as defined and determined by the appended claims. All inventions utilizing the concept of the present invention are protected.
[0047] This invention provides a TBM slag classification method based on a global attention mechanism and a residual neural network, such as... Figure 1 As shown, it includes the following steps:
[0048] S1. Collect images of rock slag discharge from different surrounding rock sections during excavation;
[0049] S2. Construct an image segmentation model based on a global attention mechanism and a residual neural network, and train it using images of rock slag discharge to obtain a trained image segmentation model;
[0050] S3. Use the trained image segmentation model to segment the collected rock slag images at regular intervals to obtain several local rock slag binary images.
[0051] S4. Analyze and preprocess several local binary images of rock debris to obtain preprocessed binary images of rock debris.
[0052] S5. Calculate the rock slag parameters from the pretreated binary rock slag image and classify the TBM rock slag according to the rock slag parameters.
[0053] In step S1 of this embodiment, using a linear array camera mounting bracket on the rock slag conveyor belt, images of rock slag at different heights, widths, and areas are collected during TBM construction. The collected images have a resolution of 2448*2048. The rock slag is segmented at 512*512 resolution with a step size of 256 to obtain the dataset required for training. The dataset is labeled according to the target result—binary segmented images. Further, the collected images are labeled and cropped according to the principle of 50% overlap. Then, the original dataset is subjected to contrast changes, brightness adjustments, flipping, mirroring, and other operations to simulate factors such as uneven lighting, stacking, and non-target object occlusion during actual collection. The original dataset is expanded at a ratio of 1:3 as the dataset for subsequent network training. At the same time, the expanded dataset is randomly shuffled and reordered to improve the generalization ability of the network.
[0054] In step S2 of this embodiment of the invention, as follows Figure 2 As shown, the image segmentation model based on global attention mechanism and residual neural network adopts the Unet network architecture, including encoder and decoder;
[0055] The encoder uses a ResNet34 convolutional structure to extract image features;
[0056] The decoder is used to decode and restore images based on extracted image features; during the decoding process, the decoder integrates a global attention mechanism to improve the network's fitting ability.
[0057] In this embodiment, as Figure 3 As shown, the encoder adopts a ResNet34 convolutional structure, which includes a 7x7 convolutional layer, a 3x3 max pooling layer, a first convolutional group conv2_x, a second convolutional group conv3_x, a third convolutional group conv4_x, a fourth convolutional group conv5_x, an average pooling layer, and an output layer connected in sequence.
[0058] The first convolutional group conv2_x, the second convolutional group conv3_x, the third convolutional group conv4_x, and the fourth convolutional group conv5_x correspond to four encoding downsampling operations, reducing the feature resolution to 1 / 4, 1 / 8, 1 / 16, and 1 / 32 of the input feature, respectively.
[0059] In this embodiment Figure 3 In this study, ResNet is used as the encoder. The input image size is 512*512*3. The 7x7 convolutional layer has 64 output channels, a stride of 2, and a padding of 3, i.e., it pads the image three times. The 3x3 max pooling layer has a stride of 2 and a padding of 1. Specifically, the ResNet34 encoding parameters are shown in Table 1.
[0060] Table 1:
[0061]
[0062] In step S2 of this embodiment of the invention, in the image segmentation network, as follows: Figure 4 As shown, in the implementation of the global attention mechanism, during downsampling, in each encoding module, the high-level features located at the output position are processed by global average pooling to generate a vector that describes the overall global context information. This vector is then reduced to the same number of channels as the low-level features through 1x1 convolution, resulting in a global feature description. A mask for the low-level features is generated. The low-level features located at the input position undergo a 3x3 convolution operation to calculate a feature mask, which is used to fuse the global features. Then, the low-level feature mask is multiplied by the global description to achieve fusion, resulting in the fused attention features.
[0063] During upsampling, high-level features are upsampled using transposed convolutions to restore them to the same resolution as the low-level features. The upsampled high-level features are then element-wise added to the fused features, thus integrating the high-level features with the fused information. This can be viewed as a finer-grained feature fusion, which better recovers detailed features and improves segmentation accuracy.
[0064] This approach recovers low-level features using high-level global information, thus achieving a global attention mechanism.
[0065] In step S2 of this embodiment of the invention, when training the image segmentation model, the loss function L is:
[0066]
[0067] In the formula, y i To represent the label of sample i, slag is 1 and background is 0; p i To represent the probability that sample i is predicted to be of the positive class, L i The cross-entropy loss function value obtained for each sample, where i = 1, 2, ..., N is the number of samples.
[0068] In this embodiment, the target has only two categories: rock debris and background. The cross-entropy loss function, by minimizing the cross-entropy, can obtain an approximate distribution of the segmented target, and is commonly used as a loss function for image classification problems. Preferably, when the target classification samples in the dataset are imbalanced, the Focalloss loss function L can be used. fl :
[0069]
[0070] In the formula, Let y be the prediction for sample i, γ be the dynamic scaling factor, and y be the label of sample i, where 1 is for positive class and 0 is for negative class.
[0071] In this embodiment, Focal loss is a loss function based on binary cross-entropy. It is a dynamically scaled cross-entropy loss γ. By using a dynamic scaling factor, the weight of easily distinguishable samples during training can be dynamically reduced, thereby quickly focusing the attention on those difficult-to-distinguish samples.
[0072] In this embodiment, during the training of the image segmentation model, a learning rate decay strategy can be set to enable the network to converge better.
[0073] Step S4 in this embodiment of the invention is specifically as follows:
[0074] S41. The original images of several local rock debris binary images are stitched together to restore the overall rock debris binary image.
[0075] S42. Perform opening operations, eliminate isolated noise points, eliminate thin and narrow connections between rock fragments, and smooth the contours of connected rock fragment regions on the overall binary image of rock fragments to obtain the preprocessed binary image of rock fragments.
[0076] In step S5 of this embodiment of the invention, the rock slag parameters include normal rock slag ratio, non-uniformity coefficient, and curvature coefficient.
[0077] In this embodiment, the formula for calculating the normal rock slag ratio P is:
[0078]
[0079] In the formula, s z s represents the discharge size of normal rock debris in the binary image of rock debris, s represents the discharge size of all rock debris in the binary image of rock debris, and n = 1, 2, ..., i represents the number of rock debris;
[0080] Specifically, the binary image of the rock debris is fitted using the minimum bounding rectangle to obtain the identifiers of all rock debris particles. For each rock debris particle, the length and width of the fitted rectangle are selected as its major and minor axes, respectively. The area of the rock debris within the fitted rectangle is then used as the rock debris discharge size. Rock debris particles with a discharge size less than 1.5 times the cutterhead spacing and a major axis less than 1.5 times the cutterhead spacing are considered normal rock debris, thus determining the normal rock debris ratio. During normal tunneling, normal rock debris is less than 1.5 times the cutterhead spacing. When the discharge size is greater than the cutterhead spacing, it indicates non-uniform cutting of rock debris caused by factors such as surrounding rock fissures, reflecting the integrity of the surrounding rock.
[0081] In this embodiment, the non-uniformity coefficient C u The calculation formula is:
[0082]
[0083] curvature coefficient C C The calculation formula is:
[0084]
[0085] In the formula, d 60 d 30 and d 10 These are the diameter values on the horizontal axis corresponding to the cumulative distribution of 60%, 30%, and 10% on the vertical axis of the cumulative distribution curve plot of rock slag, which is plotted by converting the original parameters of rock slag in the binary rock slag diagram into length scale units. In the cumulative distribution curve plot of rock slag, the horizontal axis is the particle diameter and the vertical axis is the cumulative distribution value.
[0086] Specifically, using camera parameters, the actual physical size corresponding to each pixel is obtained. The extracted raw parameters of the target rock debris are converted into length scale units, and a cumulative particle size curve and frequency distribution map of the rock debris are plotted to obtain d10, d30, and d60, which are represented in the cumulative distribution map as follows: the vertical axis represents the cumulative distribution from 0% to 100%, and the horizontal axis represents the particle diameter. d10 is the horizontal diameter value corresponding to 10% of the cumulative vertical distribution; d30 is the horizontal diameter value corresponding to 30% of the cumulative vertical distribution; and d60 is the horizontal diameter value corresponding to 60% of the cumulative vertical distribution. Furthermore, the non-uniformity coefficient and curvature coefficient of the rock debris particles are calculated, reflecting the uniformity of the rock debris particles.
[0087] In step S5 of this embodiment of the invention, the method for classifying TBM rock slag is specifically as follows:
[0088] The parameters of the rock debris collected from the images are calculated periodically and compared with the parameters of rock debris discharge under various surrounding rock conditions collected in the database to determine the classification level of the surrounding rock discharge. The classification level includes intact, relatively broken, broken and extremely broken.
[0089] In this embodiment of the invention, rock debris is classified as an adaptive prediction of the surrounding rock ahead during TBM tunneling, which helps the TBM driver to perceive the surrounding rock condition in real time, adjust tunneling parameters, and improve the efficiency and safety of construction by reducing downtime caused by untimely adjustment of tunneling parameters or sudden situations in the surrounding rock.
[0090] Specific embodiments have been used to illustrate the principles and implementation methods of this invention. The descriptions of the embodiments above are only for the purpose of helping to understand the method and core ideas of this invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this invention. Therefore, the content of this specification should not be construed as a limitation of this invention.
[0091] Those skilled in the art will recognize that the embodiments described herein are intended to help the reader understand the principles of the invention, and should be understood that the scope of protection of the invention is not limited to such specific statements and embodiments. Those skilled in the art can make various other specific modifications and combinations based on the technical teachings disclosed in this invention without departing from the spirit of the invention, and these modifications and combinations are still within the scope of protection of this invention.
Claims
1. A TBM slag classification method based on global attention mechanism and residual neural network, characterized in that, Includes the following steps: S1. Collect images of rock slag discharge from different surrounding rock sections during excavation; S2. Construct an image segmentation model based on a global attention mechanism and a residual neural network, and train it using images of rock slag discharge to obtain a trained image segmentation model; S3. Use the trained image segmentation model to segment the collected rock slag images at regular intervals to obtain several local rock slag binary images. S4. Analyze and preprocess several local binary images of rock debris to obtain preprocessed binary images of rock debris. S5. Calculate the rock slag parameters from the pretreated binary image of rock slag, and classify the TBM rock slag according to the rock slag parameters; In step S2, the image segmentation model based on the global attention mechanism and residual neural network adopts the Unet network architecture, which includes an encoder and a decoder. The encoder uses a ResNet34 convolutional structure to extract image features; The decoder is used to decode and restore the image based on the extracted image features; the decoder incorporates a global attention mechanism during the decoding process. The encoder adopts a ResNet34 convolutional structure, which includes a 7x7 convolutional layer, a 3x3 max pooling layer, a first convolutional group conv2_x, a second convolutional group conv3_x, a third convolutional group conv4_x, a fourth convolutional group conv5_x, an average pooling layer, and an output layer connected in sequence. Among them, the first convolutional group conv2_x, the second convolutional group conv3_x, the third convolutional group conv4_x, and the fourth convolutional group conv5_x correspond to four encoding downsampling operations, which reduce the feature resolution to 1 / 4, 1 / 8, 1 / 16, and 1 / 32 of the input feature, respectively. When training the image segmentation model, the loss function for: In the formula, To represent the sample i The label for rock debris is 1, and for background is 0. To represent the sample i The probability of predicting a positive class. The cross-entropy loss function value obtained for each sample. i =1,2,…, N The number of samples; When the classification samples in the slag discharge images used to train the image segmentation model are imbalanced, the loss function... for: In the formula, For the sample i The probability of predicting it as positive, that is, the probability of predicting it as rock slag. For dynamic scaling factor, For the sample i The label is 1 for positive classes and 0 for negative classes.
2. The TBM slag classification method based on global attention mechanism and residual neural network according to claim 1, characterized in that, Step S4 specifically involves: S41. The original images of several local rock debris binary images are stitched together to restore the overall rock debris binary image. S42. Perform opening operations, eliminate isolated noise points, eliminate thin and narrow connections between rock fragments, and smooth the contours of connected rock fragment regions on the overall binary image of rock fragments to obtain the preprocessed binary image of rock fragments.
3. The TBM slag classification method based on global attention mechanism and residual neural network according to claim 1, characterized in that, In step S5, the rock slag parameters include normal rock slag ratio, non-uniformity coefficient, and curvature coefficient.
4. The TBM slag classification method based on global attention mechanism and residual neural network according to claim 3, characterized in that, The normal rock slag ratio P The calculation formula is: P= In the formula, This represents the discharge size of normal rock debris in the binary image of rock debris. This represents the dimensions of all rock debris outputs in the binary graph of rock debris. n =1,2,…, i This refers to the quantity of rock debris; Inhomogeneity coefficient The calculation formula is: Curvature coefficient The calculation formula is: In the formula, , and These are the diameter values on the horizontal axis corresponding to the cumulative distribution of 60%, 30%, and 10% of the original parameters of the rock slag in the binary rock slag diagram converted to length scale units. In the cumulative distribution curve of rock slag particle size, the horizontal axis represents the particle diameter, and the vertical axis represents the cumulative distribution value.
5. The TBM slag classification method based on global attention mechanism and residual neural network according to claim 3, characterized in that, In step S5, the method for classifying TBM rock slag is as follows: The parameters of the rock slag collected from the rock slag images are calculated periodically and compared with the rock slag discharge parameters of various surrounding rock conditions collected in the database, thereby determining the classification level of the surrounding rock slag discharge. The classification levels include intact, somewhat broken, broken, and extremely broken.
Citation Information
Patent Citations
Convolutional neural network-based TBM rock slag size grade identification method
CN110245695A
Multi-modal image segmentation method and system, terminal and readable storage medium
CN112862830A
