Rock slag form identification method and system based on MATLAB

The rock slag image is preprocessed and morphological feature extraction through the MATLAB platform, combined with the classification neural network model, automatic monitoring and accurate identification of rock slag is achieved, solving the problem of missed inspection in traditional manual monitoring and improving the efficiency and safety of tunnel construction and provides evaluation of surrounding rock stability.

CN118898748APending Publication Date: 2024-11-05CHINA RAILWAY 18TH BUREAU GRP CO LTD +3
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411015253.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-11-05

AI Technical Summary

Technical Problem

Traditional rock slag monitoring relies on manual supervision, which leads to prone to missed inspection in the construction of long hard rock geological tunnels, and it is difficult to accurately identify and automatically monitor rock slag, affecting construction efficiency and safety.

Method used

The rock slag morphological recognition method based on MATLAB is adopted to pre-process the rock slag image, extract the morphological feature map, determine the particle size, and use the classification neural network model to classify the rock slag type to achieve automatic monitoring and accurate identification of rock slag.

Benefits of technology

It improves the accuracy and efficiency of rock slag monitoring, reduces the investment of inspectors, avoids missed inspections, ensures the safety and economics of the tunnel excavation process, and provides an evaluation of the stability of surrounding rocks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118898748A_ABST
    Figure CN118898748A_ABST
Patent Text Reader

Abstract

The invention discloses a rock slag form identification method and system based on MATLAB. The method comprises the following steps: preprocessing a rock slag image; extracting a morphological feature map of the rock slag according to the preprocessed rock slag image; determining the particle size of the rock slag according to the morphological feature map of the rock slag; classifying the rock slag images according to the particle size of rock slag in each rock slag image to obtain a rock slag data set; and training a classification neural network model by using the rock slag data set, and outputting the type of rock slag in the rock slag image by using the trained classification neural network model. According to the method, segmentation processing of an image adhesion part is fully considered, the accuracy of the number of rock residues generated in the tunnel excavation process and the precision of a particle size calculation result are strictly guaranteed, meanwhile, the stability of surrounding rock in the excavation process is evaluated, and the safety in the excavation process is controlled to the maximum extent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of tunnel construction, and in particular to a slag morphology recognition method and system based on MATLAB. Background Art

[0002] Slag discharge is one of the three major construction processes (excavation, support, and slag discharge) of tunnel construction, and is very critical in the construction process. Rock slag is a variety of slag stones with different morphologies such as blocks, flakes, and powders produced by rock strata under the action of external forces during tunnel excavation. The particle size and shape of rock slag can immediately reflect the tunnel excavation effect and the geological conditions at the face. Moreover, slag blocks with too large particle size will cause physical damage to the slag discharge machinery, and often correspond to the failure of the excavation equipment or the unreasonable setting of the current excavation parameters. The slag discharge status is an important monitoring item for tunnel construction management personnel. Traditional slag discharge monitoring generally adopts a fully manual method, with a dedicated person guarding the slag drop point of the main machine belt conveyor and handling abnormalities on site. However, due to the characteristics of hard rock geological tunnel construction lines that are often long, slow advancement speed, and day and night construction, traditional manual supervision work is boring and requires a lot of time and energy from supervisors, and it is very easy to miss detection, so there is an urgent need for automatic monitoring and accurate identification of rock slag. Summary of the invention

[0003] In view of the problems existing in the prior art, the present invention provides a slag morphology recognition method and system based on MATLAB, which can realize the rapid segmentation and recognition of slag images, collect slag morphology and particle size, and classify slag. The present invention provides a prerequisite for the automatic monitoring and accurate recognition of slag, which is of great significance for the construction parameter selection of tunnel boring machines, improving construction efficiency and construction safety.

[0004] The present invention is achieved through the following technical solutions:

[0005] A slag morphology recognition method based on MATLAB includes the following steps:

[0006] Step 1, preprocessing the rock slag image;

[0007] Step 2: extracting the morphological feature map of the rock slag according to the preprocessed rock slag image;

[0008] Step 3, determining the particle size of the slag according to the morphological characteristic diagram of the slag;

[0009] Step 4: classify the rock slag images according to the particle size of the rock slag in each rock slag image to obtain a rock slag data set;

[0010] Step 5: Use the rock slag data set to train a classification neural network model. The trained classification neural network model outputs the type of rock slag in the rock slag image.

[0011] Preferably, the slag image processing method includes grayscale processing, denoising processing, histogram equalization processing and / or normalization processing.

[0012] Preferably, the method for extracting the morphological characteristic map of the slag is as follows:

[0013] A texture image is constructed according to the original rock slag image, the texture image is converted into a grayscale image, a binary image is established according to the grayscale image, and a morphological feature map of the rock slag is obtained according to the binary image.

[0014] Preferably, the adhesion image in the binary image is segmented, and the image with an area smaller than a threshold is filtered according to the area of ​​the segmented image, and the morphological feature map of the slag is extracted according to the filtered image.

[0015] Preferably, a watershed segmentation algorithm is used to segment the adhesion image in the binary image.

[0016] Preferably, the method for determining the particle size of the slag according to the morphological characteristic diagram of the slag is as follows:

[0017] The edge coordinates of the slag morphological characteristic map are extracted, the distance between any two edge coordinates is calculated, and the maximum distance is obtained, which is used as the particle size of the slag.

[0018] Preferably, the classification neural network model is an SVM support vector machine, a long short-term memory network, a convolutional neural network, a random forest or a decision tree.

[0019] Preferably, in step 4, the rock slag is divided into rock powder, rock particles, rock blocks and rock slices according to their particle sizes.

[0020] Preferably, the method further comprises the following steps:

[0021] The stability of the tunnel surrounding rock is evaluated based on the type and content of rock slag in the rock slag image and the surrounding rock stability classification method combined with TBM excavation parameters.

[0022] A system for identifying rock slag morphology based on MATLAB, comprising:

[0023] A preprocessing module, used for preprocessing the rock slag image;

[0024] A feature map module extracts a morphological feature map of the slag according to the preprocessed slag image;

[0025] A particle size module is used to determine the particle size of the slag according to the morphological characteristic diagram of the slag;

[0026] A data set module is used to classify the rock slag images according to the particle size of the rock slag in each rock slag image to obtain a rock slag data set;

[0027] The recognition module is used to train a classification neural network model using a rock slag data set, and the trained classification neural network model outputs the type of rock slag in the rock slag image.

[0028] Compared with the prior art, the present invention has the following beneficial technical effects:

[0029] The present invention provides a slag morphology recognition method based on MATLAB. In the slag morphology collection and particle size calculation in the slag discharge process, the segmentation processing of the image adhesion part is fully considered, and the accuracy of the amount of slag generated during the tunnel excavation process is strictly guaranteed. At the same time, the stability of the surrounding rock during the excavation process is evaluated to maximize the control of the safety during the excavation process. The present invention has important practical value in reflecting the tunnel excavation effect and the geological conditions at the face, and has guiding significance for the maintenance of tunneling equipment, the current setting and optimization of tunneling parameters. The present invention saves the input of detection personnel in the slag discharge process, avoids the occurrence of missed detection to a large extent, and fully guarantees the economy of the slag discharge process and the reliability of identification. The method has strong operability and universality, and has strong promotion value. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 It is a schematic diagram of the process of the present invention;

[0031] Figure 2 Schematic diagram of the image acquisition system of the present invention.

[0032] Figure 3 This is the initial acquisition image of the present invention.

[0033] Figure 4 This is the preprocessed image of the present invention.

[0034] Figure 5 It is the texture image of the present invention.

[0035] Figure 6 It is the grayscale image of the present invention.

[0036] Figure 7 It is a binary image of the present invention.

[0037] Figure 8 The watershed algorithm of the present invention is used to segment the image.

[0038] Fig. 9 This is the image after filtering small area patches according to the present invention.

[0039] Fig.10 This is the slag morphology image of the present invention.

[0040] Fig.11 These are various types of slag label images of the present invention. DETAILED DESCRIPTION

[0041] The present invention will be further described in detail below in conjunction with the accompanying drawings, which are intended to explain the present invention rather than to limit it.

[0042] On the one hand, the present invention provides a slag morphology recognition method based on MATLAB, comprising the following steps:

[0043] Step 1, preprocessing the rock slag image;

[0044] Step 2: extracting the morphological feature map of the rock slag according to the preprocessed rock slag image;

[0045] Step 3, determining the particle size of the slag according to the morphological characteristic diagram of the slag;

[0046] Step 4: classify the rock slag images according to the particle size of the rock slag in each rock slag image to obtain a rock slag data set;

[0047] Step 5: Use the rock slag data set to train a classification neural network model. The trained classification neural network model outputs the type of rock slag in the rock slag image.

[0048] The slag morphology recognition method collects a large number of slag images, extracts the morphological feature map of the slag in each slag image, determines the particle size of the slag according to the morphological feature map, labels and classifies the slag images according to the particle size, and then forms a slag data set. The slag data set is used to train a classification neural network model. The trained classification neural network model is used to identify the type of slag formed by tunnel excavation. The tunnel construction process is optimized according to the recognition result, the construction efficiency of the tunnel excavation is effectively improved, and the safety of the excavation process is controlled to the maximum extent.

[0049] In some embodiments, in order to improve the accuracy of identifying the slag morphological feature map, the original collected image is preprocessed, including grayscale processing, denoising, histogram equalization processing, normalization, etc. of the slag image, and at least two processing methods are used to preprocess the slag image to improve the image recognition effect.

[0050] In some embodiments, the method for extracting the morphological feature map of the slag is as follows:

[0051] Firstly, a texture image is constructed according to the original rock slag image, and the texture image is converted into a grayscale image. A binary image is established according to the grayscale image, and the adhesion image in the binary image is segmented. After the segmentation, the non-rock targets are eliminated, and the morphological feature map of the rock slag is obtained according to the eliminated image.

[0052] In some embodiments, the method for determining the particle size of the slag according to the morphological characteristic diagram of the slag is as follows:

[0053] The edge coordinates of the slag morphological characteristic map are extracted, the distance between any two edge coordinates is calculated, and the maximum distance is obtained, which is used as the particle size of the slag.

[0054] In some embodiments, the classification neural network model is an SVM support vector machine, a long short-term memory network, a convolutional neural network, a random forest, a decision tree, etc.

[0055] In some embodiments, the rock slag images are classified and labeled according to the particle size of the rock slag, and are divided into rock powder, rock particles, rock blocks and rock slices.

[0056] Example 1

[0057] A slag morphology recognition method based on MATLAB includes the following steps:

[0058] Step 1: Install a high-definition camera at a suitable location for conveying rock slag, shoot rock slag video, transmit it to the ground computer via optical fiber, and read the video frames to obtain images.

[0059] Step 2: preprocess the initial image obtained in step 1, including: enhancing the image by adjusting the gray value, denoising the image by median filtering, etc. The preprocessing is used to enhance the collected data to improve the accuracy of subsequent rock slag recognition.

[0060] Step 3: Use the entropyfilt(I) function to calculate the local one-dimensional grayscale entropy of the image and create a texture image.

[0061] Step 4: Use the mat2gray(A) function to convert the texture image obtained in step 3 into a grayscale image.

[0062] Step 5: Use the im2bw(I,level) function to convert the grayscale image obtained in step 4 into a binary image.

[0063] Step 6: Use the watershed segmentation algorithm to segment the adhesion image in the binary image obtained in step 5.

[0064] Step 7: Use the bwareaopen(BW,P,conn) function to filter out small patches in the image obtained in step 6.

[0065] Step 8: Use the bwperim (BW) function to extract the contour of the filtered image to obtain the slag morphological feature map.

[0066] Step 9: Use the bwboundaries(BW,conn,options) function to extract the edge coordinates of the slag morphological feature map.

[0067] Step 10: Combine the pdist2(X, Y, Distance) function with the [M, I] = max() function to calculate the maximum distance (i.e., the maximum slag particle size).

[0068] Step 11: Use a large number of various types of rock slag images and their labels (rock slices are labeled "1", rock blocks are labeled "2", and rock powder is labeled "3") as influencing factors and predictive factors to train the SVM support vector machine (multi-classification) model, classify the various types of rock slag images, and count the contents of rock slices, rock blocks, and rock powder.

[0069] Step 12: Based on the rock pieces, rock blocks, and rock powder contents obtained in step 11 and the corresponding particle sizes obtained in step 10, a surrounding rock stability classification method based on slag and TBM excavation parameters is developed to obtain a surrounding rock stability evaluation result.

[0070] Example 2

[0071] Taking the flood discharge and sand discharge tunnel as an example, the slag morphology recognition method based on MATLAB is explained, including the following process:

[0072] Step 1: Install a high-definition camera at a suitable location for conveying rock slag, shoot rock slag video, transmit it to the ground computer via optical fiber, read the video frame to get the picture, such as Figure 2 shown.

[0073] In the slag discharge process of a flood discharge tunnel, a high-definition camera is installed at a suitable location to shoot the rock slag video, which is transmitted to the ground computer through optical fiber. The video frame is read to obtain the initial picture, such as Figure 3 shown.

[0074] Step 2: Preprocess the initial image obtained in step 1 by adjusting the gray value and median filtering. Figure 4 shown.

[0075] Step 3: Use the entropyfilt(I) function to calculate the local one-dimensional grayscale entropy of the image and create a texture image, such as Figure 5 shown.

[0076] Img_1 = entropyfilt(Img);

[0077] Among them, Img is the preprocessed image and Img_1 is the texture image.

[0078] Step 4: Use the mat2gray(A) function to convert the texture image obtained in step 3 into a grayscale image, such as Figure 6 shown.

[0079] Img_2 = mat2gray(Img_1);

[0080] Among them, Img_2 is the grayscale image of the texture image.

[0081] Step 5: Use the im2bw(I,level) function to convert the grayscale image obtained in step 4 into a binary image, such as Figure 7 shown.

[0082] Img_3 = im2bw(Img_2,0.7);

[0083] Among them, img_3 is the converted binary image, and the "level" value in this example is 0.7.

[0084] Step 6: Use the watershed segmentation algorithm to segment the adhesion image in the binary image obtained in step 5, such as Figure 8 shown.

[0085] D = -bwdist (~Img_3);

[0086] mask = imextendedmin(D,2);

[0087] D2 = imimposemin(D,mask);

[0088] Ld = watershed (D2);

[0089] Water_splited = Img_3;

[0090] Water_splited(Ld==0)=0.

[0091] Step 7: Use the bwareaopen(BW,P,conn) function to filter small patches in the image obtained in step 6, such as Fig. 9 shown.

[0092] Img_4=bwareaopen((1-Img_3),3000,8);

[0093] Among them, Img_4 is the image after filtering small area patches. In this example, the value of "P" is 3000 and the value of "conn" is 8.

[0094] Step 8: Use the bwperim(BW) function to extract the contour (i.e., the slag shape) of the filtered image, as follows: Fig.10 shown.

[0095] Img_5 = bwperim(Img_4);

[0096] Among them, Img_5 is the image contour (i.e., the slag shape).

[0097] Step 9: Use the bwboundaries(BW,conn,options) function to extract the edge coordinates of the image obtained in step 8 and mark them with serial numbers, such as Fig.11 shown.

[0098] [Bound,L]=bwboundaries(Img_5,8,'noholes');

[0099] Among them, Bound is the outer boundary of the image, L is the label matrix, in this case, the value of "conn" is 8, and "options" uses noholes (only tracking the outer boundary of the object).

[0100] Step 10: Combine the pdist2(X, Y, Distance) function with the [M, I] = max() function to calculate the maximum distance (i.e., the maximum slag particle size), as shown in Table 1.

[0101] Among them, X and Y are the horizontal and vertical coordinates of the outer boundary, "Distance" is the parameter required by the pdist2 function, M is the maximum value, and I is the maximum value position.

[0102] Step 11: A large number of various rock slag images and their labels (rock slices are labeled "1", rock blocks are labeled "2", and rock powder is labeled "3") are used as influencing factors and predictive factors to train the SVM support vector machine (multi-classification) model, classify various rock slag images and count the contents of rock slices, rock blocks, and rock powder, as shown in Table 2.

[0103] Step 12: Based on the rock slices, rock blocks, and rock powder contents obtained in step 11 and the corresponding particle sizes obtained in step 10, the stability of the current surrounding rock is evaluated. The stability evaluation criteria are shown in Table 3.

[0104] In this embodiment, 66.67% of the slag particle size is in the range of 3cm-10cm, and the rock flake content is as high as 100%. According to Table 3, it can be comprehensively judged that the current surrounding rock in this embodiment is stable. Furthermore, the tunneling equipment operates normally and the tunneling parameters are reasonably set.

[0105] Table 1 shows the maximum slag particle size

[0106]

[0107] Table 2 shows the classification results of SVM support vector machine (multi-classification) and the content of various types of slag

[0108]

[0109]

[0110] Table 3 is the surrounding rock stability evaluation table

[0111]

[0112] Example 3

[0113] The second aspect of the present invention is to provide a slag morphology recognition system based on MATLAB, comprising:

[0114] A preprocessing module, used for preprocessing the rock slag image;

[0115] A feature map module extracts a morphological feature map of the slag according to the preprocessed slag image;

[0116] A particle size module is used to determine the particle size of the slag according to the morphological characteristic diagram of the slag;

[0117] A data set module is used to classify the rock slag images according to the particle size of the rock slag in each rock slag image to obtain a rock slag data set;

[0118] The recognition module is used to train a classification neural network model using a rock slag data set, and the trained classification neural network model outputs the type of rock slag in the rock slag image.

[0119] The above embodiments are merely examples for clearly illustrating the present invention, and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the embodiments here. The obvious changes or modifications derived therefrom are still within the scope of protection of the present invention.

[0120] The present invention discloses a slag morphology collection and identification method based on MATLAB, which uses a large number of various slag images and their labels as influencing factors and predictive factors to train an SVM support vector machine model, classifies various slag images and counts the contents of various slag; and evaluates the stability of the current surrounding rock according to the contents of various slag and their corresponding particle sizes. The present invention fully considers the segmentation processing of the image adhesion part, strictly guarantees the accuracy of the amount of slag generated during tunnel excavation and the accuracy of the particle size calculation results, and at the same time evaluates the stability of the surrounding rock during the excavation process, thereby controlling the safety of the excavation process to the maximum extent.

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

Claims

1. A slag morphology recognition method based on MATLAB, It is characterized in that The steps include: Step 1, preprocessing the rock slag image; Step 2: extracting the morphological feature map of the rock slag according to the preprocessed rock slag image; Step 3, determining the particle size of the slag according to the morphological characteristic diagram of the slag; Step 4: classify the rock slag images according to the particle size of the rock slag in each rock slag image to obtain a rock slag data set; Step 5: Use the rock slag data set to train a classification neural network model. The trained classification neural network model outputs the type of rock slag in the rock slag image.

2. A slag morphology recognition method based on MATLAB according to claim 1, It is characterized in that The rock slag image processing method includes grayscale processing, denoising processing, histogram equalization processing and / or normalization processing.

3. A slag morphology recognition method based on MATLAB according to claim 1, It is characterized in that The method for extracting the morphological characteristic map of the slag is as follows: A texture image is constructed according to the original rock slag image, the texture image is converted into a grayscale image, a binary image is established according to the grayscale image, and a morphological feature map of the rock slag is obtained according to the binary image.

4. A slag morphology recognition method based on MATLAB according to claim 3, It is characterized in that The adhesion image in the binary image is segmented, and the image with an area smaller than a threshold is filtered according to the segmented image area, and the morphological feature map of the slag is extracted according to the filtered image.

5. A slag morphology recognition method based on MATLAB according to claim 4, It is characterized in that The watershed segmentation algorithm is used to segment the adhesion image in the binary image.

6. A slag morphology recognition method based on MATLAB according to claim 1, It is characterized in that The method for determining the particle size of rock slag based on the morphological characteristics of the rock slag is as follows: The edge coordinates of the slag morphological characteristic map are extracted, the distance between any two edge coordinates is calculated, and the maximum distance is obtained, which is used as the particle size of the slag.

7. A slag morphology recognition method based on MATLAB according to claim 1, It is characterized in that The classification neural network model is an SVM support vector machine, a long short-term memory network, a convolutional neural network, a random forest or a decision tree.

8. A slag morphology recognition method based on MATLAB according to claim 1, It is characterized in that In step 4, the rock slag is divided into rock powder, rock particles, rock blocks and rock slices according to the particle size.

9. The slag morphology recognition method based on MATLAB according to claim 1, It is characterized in that The following steps are also included: The stability of the tunnel surrounding rock is evaluated based on the type and content of rock slag in the rock slag image and the surrounding rock stability classification method combined with TBM excavation parameters.

10. A system for executing the slag morphology recognition method based on MATLAB according to any one of claims 1 to 9, It is characterized in that include: A preprocessing module, used for preprocessing the rock slag image; A feature map module extracts a morphological feature map of the slag according to the preprocessed slag image; A particle size module is used to determine the particle size of the slag according to the morphological characteristic diagram of the slag; A data set module is used to classify the rock slag images according to the particle size of the rock slag in each rock slag image to obtain a rock slag data set; The recognition module is used to train a classification neural network model using a rock slag data set, and the trained classification neural network model outputs the type of rock slag in the rock slag image.

Citation Information

Cited By

  • TBM real-time slag monitoring system and method for advanced geological forecast

    CN119478846A