A method for identifying loose rock mass on slope
Through image processing technology, detailed feature images are constructed and combined with a three-channel classification model to identify loose rock mass on slopes, which solves the problem of inefficiency of traditional detection methods and improves identification accuracy and efficiency.
Patent Information
- Application Number
- CN202410939803.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-07-15
AI Technical Summary
The traditional loose rock mass detection method on slopes is inefficient and difficult to achieve rapid assessment of large areas, and the background information of lush vegetation interferes with the recognition accuracy.
The image processing method is used to collect the original image, construct the first and second detail feature images, classify the image blocks, and combine the three-channel classification model and correction processing to calculate the average surface roughness of the rock area to identify the loose rock mass.
It improves the identification accuracy of loose rock mass, peels off the background area, accurately determines the looseness of the rock, and enhances the efficiency of slope stability assessment.
Smart Images

Figure CN118470551B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of image processing, and in particular to a method for identifying loose rock mass on a slope. Background Art
[0002] Slope stability is a key issue in fields such as civil engineering, mining engineering, and transportation infrastructure. The presence of loose rock mass may cause slope instability, thereby triggering geological disasters such as landslides, posing a threat to people's lives and property. Traditional slope rock mass detection methods mainly rely on manual on-site surveys, which are time-consuming, labor-intensive, and inefficient, and it is difficult to achieve rapid assessment of large areas. Currently, loose rock mass in rocks is identified by collecting images of the target area. When performing image recognition on loose rock mass on rock slopes, due to the lush vegetation around the target area, the collected images contain a lot of non-target background information. This background information will interfere with the accurate identification of loose rock mass, thereby reducing the accuracy of recognition. Summary of the invention
[0003] In view of the above-mentioned deficiencies in the prior art, the present invention provides a method for identifying loose rock mass on a slope, which solves the problem of low loose rock mass identification accuracy in the prior art.
[0004] In order to achieve the above-mentioned invention object, the technical solution adopted by the present invention is: a method for identifying loose rock mass on a slope, comprising the following steps:
[0005] S1, collect the image of the target area to obtain the original image;
[0006] S2. constructing a first detail feature image and a second detail feature image according to the color values on the original image;
[0007] S3, cutting the original image, the first detail feature image, and the second detail feature image respectively to obtain a plurality of original blocks corresponding to the original image, a plurality of first feature blocks corresponding to the first detail feature image, and a plurality of second feature blocks corresponding to the second detail feature image;
[0008] S4, classifying the region based on the original block, the first feature block and the second feature block in the same region based on the three-channel classification model to obtain a classification value of the region;
[0009] S5, correcting the classification values of each area to find the rock area;
[0010] S6. Calculate the surface average roughness of the rock area according to the first contour distribution unevenness, the second contour distribution unevenness and the third contour distribution unevenness of each pixel point on the rock area. When the surface average roughness is greater than the roughness threshold, the rock area is a loose rock mass.
[0011] The beneficial effects of the present invention are as follows: after collecting the original image, the present invention constructs a first detail feature image and a second detail feature image according to the original image, highlights the image detail features, and performs shearing processing to achieve classification by region. According to the original block, the first feature block and the second feature block in the same region, based on the three-channel classification model, the region is classified to obtain the classification value of the region, and then correction processing is performed to improve the classification accuracy, find the rock area, strip the background area, improve the accuracy of identifying loose rock mass, and then determine whether the rock is a loose rock mass according to the average surface roughness of the rock area. The present invention characterizes the roughness and joint fissures of the rock through the roughness of the surface of the rock area. The greater the roughness, the easier it is for the rock mass to be eroded, and the looser the rock is, the easier it is to collapse.
[0012] Furthermore, the S2 comprises the following sub-steps:
[0013] S21, in the original image, taking each pixel as the center;
[0014] S22, calculating the first color feature value and the second color feature value respectively according to the neighborhood color value of the center;
[0015] S23, using the first color feature value as a new color value of the pixel at the center to form a first detail feature image;
[0016] S24. Use the second color feature value as a new color value of the pixel at the center to form a second detail feature image.
[0017] The beneficial effect of the above further scheme is: the present invention calculates the first color characteristic value and the second color characteristic value respectively according to the neighborhood color value of each center, takes the first color characteristic value as the new color value of the center, thereby constructing a first detail characteristic image, takes the second color characteristic value as the new color value of the center, thereby constructing a second detail characteristic image, characterizes the color distribution at the center by the first color characteristic value and the second color characteristic value, and reconstructs the two distributions into a characteristic image, highlighting the imaging characteristics of the rock on the image.
[0018] Furthermore, the formula for calculating the first color characteristic value in S22 is: , where C1 is the first color feature value, C (x,y+1) is the color value of the pixel at position (x, y+1), C (x,y-1) is the color value of the pixel at position (x, y-1), C (x+1,y) is the color value of the pixel at position (x+1, y), C (x-1,y) is the color value of the pixel at position (x-1, y), x is the horizontal coordinate of the pixel at the center, y is the vertical coordinate of the pixel at the center, and | | is the absolute value.
[0019] The beneficial effect of the above further scheme is: the present invention takes the color values at the four positions of the neighborhood range at the center: (x, y+1), (x, y-1), (x+1, y) and (x-1, y), and reflects the color distribution of the four directions at the center according to the color value difference between the positions (x, y+1) and (x, y-1), and the color value difference between the positions (x+1, y) and (x-1, y).
[0020] Furthermore, the formula for calculating the second color characteristic value in S22 is: , where C2 is the second color feature value, C (x+1,y+1) is the color value of the pixel at position (x+1, y+1), C (x-1,y-1) is the color value of the pixel at position (x-1, y-1), C (x-1,y+1) is the color value of the pixel at position (x-1, y+1), C (x+1,y-1) is the color value of the pixel at position (x+1, y-1), x is the horizontal coordinate of the pixel at the center, y is the vertical coordinate of the pixel at the center, and | | is the absolute value.
[0021] The beneficial effect of the above further scheme is: the present invention takes the color values at the four positions of the neighborhood range at the center: (x+1, y+1), (x-1, y-1), (x-1, y+1) and (x+1, y-1), and reflects the color distribution of the other four positions at the center according to the color value difference between the positions (x+1, y+1) and (x-1, y-1), as well as the color value difference between the positions (x-1, y+1) and (x+1, y-1).
[0022] Further, the three-channel classification model in S4 includes: a first channel processing unit, a second channel processing unit, a third channel processing unit, a first multiplier M1, a second multiplier M2, a first Maxpool layer, a first Avgpool layer, a second Maxpool layer, a second Avgpool layer, a first adder A1, a second adder A2, a first Concat layer and a fully connected layer;
[0023] The input end of the first channel processing unit is used to input the first feature block; the input end of the second channel processing unit is used to input the original block; the input end of the third channel processing unit is used to input the second feature block;
[0024] The first input end of the first multiplier M1 is connected to the output end of the first channel processing unit, the second input end thereof is connected to the output end of the second channel processing unit, and the output end thereof is respectively connected to the input end of the first Maxpool layer and the input end of the first Avgpool layer; the first input end of the second multiplier M2 is connected to the output end of the second channel processing unit, the second input end thereof is connected to the output end of the third channel processing unit, and the output end thereof is respectively connected to the input end of the second Maxpool layer and the input end of the second Avgpool layer; the first input end of the first adder A1 is connected to the output end of the first Maxpool layer, and the second input end thereof is connected to the output end of the first Avgpool layer; the first input end of the second adder A2 is connected to the output end of the second Maxpool layer, and the second input end thereof is connected to the output end of the second Avgpool layer; the input end of the first Concat layer is respectively connected to the output end of the first adder A1 and the output end of the second adder A2, and the output end thereof is connected to the input end of the fully connected layer; the output end of the fully connected layer serves as the output end of the three-channel classification model.
[0025] The beneficial effects of the above further scheme are as follows: the present invention adopts three channel processing units to process the first feature block, the original block and the second feature block respectively, adopts the output features of the first channel processing unit to enhance the output features of the second channel processing unit, adopts the output features of the third channel processing unit to enhance the output features of the second channel processing unit, so that the distribution features are integrated with the original image features, highlighting the characteristics of the area and making the features significant, and then adopts the Maxpool layer and the Avgpool layer to extract features, thereby extracting significant features and global features, and classifying them comprehensively based on the significant features and the global features to improve the classification accuracy.
[0026] Further, the first channel processing unit, the second channel processing unit and the third channel processing unit have the same structure, and all include: a first Conv block, a second Conv block, a third Conv block, a fourth Conv block, a fifth Conv block, a sixth Concat block, a second Concat layer, a third Concat layer and a fourth Concat layer;
[0027] The input end of the first Conv block is used as the input end of the first channel processing unit, the second channel processing unit or the third channel processing unit, and its output end is connected to the input end of the second Conv block and the input end of the third Conv block respectively; the input end of the second Concat layer is connected to the output end of the second Conv block and the output end of the third Conv block respectively, and its output end is connected to the input end of the fourth Conv block; the input end of the third Concat layer is connected to the output end of the second Conv block and the output end of the third Conv block respectively, and its output end is connected to the input end of the fifth Conv block; the input end of the fourth Concat layer is connected to the output end of the fourth Conv block and the output end of the fifth Conv block respectively, and its output end is connected to the input end of the sixth Conv block; the output end of the sixth Conv block is used as the output end of the first channel processing unit, the second channel processing unit or the third channel processing unit;
[0028] The convolution kernel sizes of the second and fourth Conv blocks are ;
[0029] The convolution kernel sizes of the third Conv block and the fifth Conv block are .
[0030] The beneficial effect of the above further scheme is: two branches are constructed in the channel processing unit of the present invention, different convolution kernels are used, and the output features of the second Conv block and the output features of the third Conv block are shared, so as to extract image features of different scales.
[0031] Furthermore, the S5 comprises the following sub-steps:
[0032] S51, taking each region as a reference region;
[0033] S52. Calculate the distance between the classification value of the reference area and the classification value of the surrounding area: , where d is the distance, r o is the classification value of the reference area, r i is the classification value of the surrounding i-th area, i is a positive integer, and N is the number of surrounding areas;
[0034] S53, when the distance is greater than the distance threshold, correcting the classification value of the reference area according to the classification value of the surrounding area of the reference area;
[0035] S54. When the corrected classification value or the classification value not involved in the correction is greater than the classification threshold, the corresponding area is marked as a candidate area, and multiple candidate areas constitute a rock area.
[0036] The beneficial effect of the above further scheme is: the present invention calculates the distance between the classification values of the reference area and the surrounding area. When the distance is greater than the distance threshold, it means that the classification values of the reference area and the surrounding area are quite different. Therefore, the classification values of the surrounding area are used to correct the classification values of the reference area, and the rock area is screened out based on the corrected classification values and the classification values not involved in the correction.
[0037] Furthermore, the correction formula in S53 is: ,in, is the corrected classification value, and e is a natural constant.
[0038] The beneficial effect of the above further scheme is: the present invention corrects the classification value of the reference area according to the average of the classification values of multiple surrounding areas. When the distance is greater, the degree of correction of the classification value of the reference area is greater, thereby accurately extracting the rock area and eliminating the background area.
[0039] Furthermore, the S6 comprises the following sub-steps:
[0040] S61, calculating the first contour distribution unevenness, the second contour distribution unevenness and the third contour distribution unevenness of each pixel point in each area of the rock region;
[0041] S62, calculating the rock roughness of each area in the rock area according to the first contour distribution unevenness, the second contour distribution unevenness and the third contour distribution unevenness of each pixel point in each area of the rock area;
[0042] S63, calculating the average surface roughness according to the rock roughness of each area in the rock region;
[0043] S64. When the average surface roughness is greater than the roughness threshold, the rock area is loose rock mass.
[0044] Furthermore, the formulas for calculating the first contour distribution unevenness, the second contour distribution unevenness and the third contour distribution unevenness of the pixel points in S61 are all: , where h n is the contour distribution unevenness of the nth pixel point in each area of the rock area, C n is the color value of the nth pixel in each area of the rock area, C n,m is the color value C n The mth color value in the neighborhood range, M is the number of neighborhood color values, m and n are positive integers, in the rock area of the original image, h n is the unevenness of the first contour distribution. In the rock area of the first detail feature image, h n is the second contour distribution unevenness. In the rock area of the second detail feature image, h nis the unevenness of the third profile distribution.
[0045] The beneficial effect of the above-mentioned further scheme is as follows: the present invention first calculates the unevenness of the contour distribution of each pixel point in each area of the rock area, characterizes the roughness at each pixel point by the unevenness of the contour distribution of the pixel point, and then calculates the rock roughness of each area of the rock area, takes the average of the rock roughness of each area of the rock area, and obtains the average surface roughness of the rock area. The larger the average surface roughness of the rock area, the more serious the weathering or erosion of the rock, and the easier the rock is to collapse. The smaller the average surface roughness of the rock area, the smoother the rock surface, the longer the rock surface is polished, and the harder the rock is.
[0046] Furthermore, the formula for calculating the rock roughness of each area in the rock area in S62 is: , where γ is the rock roughness of each area in the rock area, L is the number of pixels in each area of the rock area, and h 1,n is the first contour distribution unevenness of the nth pixel point in each area of the rock region of the original image, h 2,n is the second contour distribution unevenness of the nth pixel point in each area of the rock region of the first detail feature image, h 3,n is the third contour distribution unevenness of the nth pixel point in each area of the rock area of the second detail feature image, where n is a positive integer.
[0047] The beneficial effect of the above-mentioned further scheme is: the present invention adds the three contour distribution unevenness of each pixel point on the rock area of the original image, the first detail feature image and the second detail feature image to reflect the contour distribution at the pixel point, and adds all the pixel points to reflect the rock roughness of each area. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 It is a flow chart of a method for identifying loose rock mass on slope;
[0049] Figure 2 It is a structural diagram of the three-channel classification model;
[0050] Figure 3 It is a schematic diagram of the structures of the first channel processing unit, the second channel processing unit and the third channel processing unit. DETAILED DESCRIPTION
[0051] The specific implementation modes of the present invention are described below so that those skilled in the art can understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.
[0052] like Figure 1 As shown, a method for identifying loose rock mass on a slope comprises the following steps:
[0053] S1. Image acquisition: collect images of the target area to obtain original images;
[0054] S2, constructing a feature image: constructing a first detail feature image and a second detail feature image according to the color values on the original image;
[0055] S3, shearing the image: shearing the original image, the first detail feature image, and the second detail feature image respectively to obtain a plurality of original blocks corresponding to the original image, a plurality of first feature blocks corresponding to the first detail feature image, and a plurality of second feature blocks corresponding to the second detail feature image;
[0056] S4, classifying the region: classifying the region based on the original block, the first feature block and the second feature block in the same region based on the three-channel classification model to obtain a classification value of the region;
[0057] S5. Correcting the classification values: Correcting the classification values of each area to find the rock area;
[0058] S6. Identify loose rock mass: Calculate the surface average roughness of the rock area according to the first contour distribution unevenness, the second contour distribution unevenness and the third contour distribution unevenness of each pixel point on the rock area. When the surface average roughness is greater than the roughness threshold, the rock area is a loose rock mass.
[0059] In this embodiment, the original image, the first detail feature image, and the second detail feature image are cut in the same manner. Step S3 specifically includes: cutting the original image, the first detail feature image, and the second detail feature image, that is, cutting the original image into multiple regions, each region being an original block, cutting the first detail feature image into multiple regions, each region being a first feature block, and cutting the second detail feature image into multiple regions, each region being a second feature block.
[0060] Since the image is two-dimensional, the original image, the first detail feature image, and the second detail feature image are sheared K-1 times horizontally and K-1 times vertically to obtain The original block, The first feature block and second feature blocks, K is a positive integer greater than or equal to 3.
[0061] The S2 comprises the following sub-steps:
[0062] S21, in the original image, taking each pixel as the center;
[0063] S22, calculating the first color feature value and the second color feature value respectively according to the neighborhood color value of the center;
[0064] S23, using the first color feature value as a new color value of the pixel at the center to form a first detail feature image;
[0065] S24. Use the second color feature value as a new color value of the pixel at the center to form a second detail feature image.
[0066] The present invention calculates the first color characteristic value and the second color characteristic value respectively according to the neighborhood color value of each center, takes the first color characteristic value as the new color value of the center, thereby constructing a first detail characteristic image, takes the second color characteristic value as the new color value of the center, thereby constructing a second detail characteristic image, characterizes the color distribution at the center by the first color characteristic value and the second color characteristic value, and reconstructs the two distributions into a characteristic image, highlighting the imaging characteristics of the rock on the image.
[0067] The formula for calculating the first color characteristic value in S22 is: , where C1 is the first color feature value, C (x,y+1) is the color value of the pixel at position (x, y+1), C (x,y-1) is the color value of the pixel at position (x, y-1), C (x+1,y) is the color value of the pixel at position (x+1, y), C (x-1,y) is the color value of the pixel at position (x-1, y), x is the horizontal coordinate of the pixel at the center, y is the vertical coordinate of the pixel at the center, and | | is the absolute value.
[0068] The present invention takes the color values at the four positions of the center neighborhood range: (x, y+1), (x, y-1), (x+1, y) and (x-1, y), and reflects the color distribution of the four directions at the center according to the color value difference between the positions (x, y+1) and (x, y-1), and the color value difference between the positions (x+1, y) and (x-1, y).
[0069] The formula for calculating the second color characteristic value in S22 is: , where C2 is the second color feature value, C (x+1,y+1)is the color value of the pixel at position (x+1, y+1), C (x-1,y-1) is the color value of the pixel at position (x-1, y-1), C (x-1,y+1) is the color value of the pixel at position (x-1, y+1), C (x+1,y-1) is the color value of the pixel at position (x+1, y-1), x is the horizontal coordinate of the pixel at the center, y is the vertical coordinate of the pixel at the center, and | | is the absolute value.
[0070] The present invention takes the color values at four positions in the neighborhood range of the center: (x+1, y+1), (x-1, y-1), (x-1, y+1) and (x+1, y-1), and reflects the color distribution of the other four positions at the center according to the color value difference between the positions (x+1, y+1) and (x-1, y-1), and the color value difference between the positions (x-1, y+1) and (x+1, y-1).
[0071] like Figure 2 As shown, the three-channel classification model in S4 includes: a first channel processing unit, a second channel processing unit, a third channel processing unit, a first multiplier M1, a second multiplier M2, a first Maxpool layer, a first Avgpool layer, a second Maxpool layer, a second Avgpool layer, a first adder A1, a second adder A2, a first Concat layer and a fully connected layer;
[0072] The input end of the first channel processing unit is used to input the first feature block; the input end of the second channel processing unit is used to input the original block; the input end of the third channel processing unit is used to input the second feature block;
[0073] The first input end of the first multiplier M1 is connected to the output end of the first channel processing unit, the second input end thereof is connected to the output end of the second channel processing unit, and the output end thereof is respectively connected to the input end of the first Maxpool layer and the input end of the first Avgpool layer; the first input end of the second multiplier M2 is connected to the output end of the second channel processing unit, the second input end thereof is connected to the output end of the third channel processing unit, and the output end thereof is respectively connected to the input end of the second Maxpool layer and the input end of the second Avgpool layer; the first input end of the first adder A1 is connected to the output end of the first Maxpool layer, and the second input end thereof is connected to the output end of the first Avgpool layer; the first input end of the second adder A2 is connected to the output end of the second Maxpool layer, and the second input end thereof is connected to the output end of the second Avgpool layer; the input end of the first Concat layer is respectively connected to the output end of the first adder A1 and the output end of the second adder A2, and the output end thereof is connected to the input end of the fully connected layer; the output end of the fully connected layer serves as the output end of the three-channel classification model.
[0074] The present invention adopts three channel processing units to process the first feature block, the original block and the second feature block respectively, adopts the output feature of the first channel processing unit to enhance the output feature of the second channel processing unit, adopts the output feature of the third channel processing unit to enhance the output feature of the second channel processing unit, so that the distribution feature is integrated with the original image feature, highlights the feature of the area, makes the feature significant, and then adopts the Maxpool layer and the Avgpool layer to extract features, thereby extracting significant features and global features, and classifying by integrating the significant features and the global features, thereby improving the classification accuracy.
[0075] like Figure 3 As shown, the first channel processing unit, the second channel processing unit and the third channel processing unit have the same structure, and all include: a first Conv block, a second Conv block, a third Conv block, a fourth Conv block, a fifth Conv block, a sixth Concat block, a second Concat layer, a third Concat layer and a fourth Concat layer;
[0076] The input end of the first Conv block is used as the input end of the first channel processing unit, the second channel processing unit or the third channel processing unit, and its output end is connected to the input end of the second Conv block and the input end of the third Conv block respectively; the input end of the second Concat layer is connected to the output end of the second Conv block and the output end of the third Conv block respectively, and its output end is connected to the input end of the fourth Conv block; the input end of the third Concat layer is connected to the output end of the second Conv block and the output end of the third Conv block respectively, and its output end is connected to the input end of the fifth Conv block; the input end of the fourth Concat layer is connected to the output end of the fourth Conv block and the output end of the fifth Conv block respectively, and its output end is connected to the input end of the sixth Conv block; the output end of the sixth Conv block is used as the output end of the first channel processing unit, the second channel processing unit or the third channel processing unit;
[0077] The convolution kernel sizes of the second and fourth Conv blocks are ;
[0078] The convolution kernel sizes of the third Conv block and the fifth Conv block are .
[0079] In this embodiment, the convolution kernel sizes of the first Conv block and the sixth Conv block are .
[0080] Two branches are constructed in the channel processing unit of the present invention, different convolution kernels are used, and the output features of the second Conv block and the output features of the third Conv block are shared, so as to extract image features of different scales.
[0081] In this embodiment, the Conv blocks include: a convolutional layer, a ReLU layer and a BN layer.
[0082] The S5 comprises the following sub-steps:
[0083] S51, taking each region as a reference region;
[0084] S52. Calculate the distance between the classification value of the reference area and the classification value of the surrounding area: , where d is the distance, r o is the classification value of the reference area, r i is the classification value of the surrounding i-th area, i is a positive integer, and N is the number of surrounding areas;
[0085] In the present invention, since the image is cut horizontally and vertically in step S3, each region has multiple peripheral regions;
[0086] S53, when the distance is greater than the distance threshold, correcting the classification value of the reference area according to the classification value of the surrounding area of the reference area;
[0087] S54. When the corrected classification value or the classification value not involved in the correction is greater than the classification threshold, the corresponding area is marked as a candidate area, and multiple candidate areas constitute a rock area.
[0088] In the present invention, the peripheral region is a region in contact with the reference region.
[0089] In this embodiment, the distance threshold is a threshold set for each distance, and is used to find a reference area with a large difference in classification value from the surrounding area.
[0090] The present invention calculates the distance between the classification values of the reference area and the surrounding area. When the distance is greater than the distance threshold, it means that the classification values of the reference area and the surrounding area are quite different. Therefore, the classification values of the surrounding area are used to correct the classification values of the reference area. The rock area is screened out based on the corrected classification values and the classification values not involved in the correction.
[0091] In the present invention, since S3 cuts the image, there are multiple regions on the original image, multiple regions on the first detail feature image, and multiple regions on the second detail feature image, and the cutting method is the same. Therefore, after using the three-channel classification model to classify the same regions on the three images, the classification value of each region on the original image, the classification value of each region on the first detail feature image, and the classification value of each region on the second detail feature image are obtained. The classification values in the same region in the three images are the same.
[0092] In this embodiment, for the same region, if the classification value of the region is corrected, the corrected classification value is used to compare with the classification threshold in step S54, and the classification value before correction is no longer used to compare with the classification threshold.
[0093] In this embodiment, the classification threshold is a threshold set for each classification value and is used to find an area with a large classification value.
[0094] The correction formula in S53 is: ,in, is the corrected classification value, and e is a natural constant.
[0095] The present invention corrects the classification value of the reference area according to the average of the classification values of multiple surrounding areas. When the distance is greater, the degree of correction of the classification value of the reference area is greater, thereby accurately extracting the rock area and eliminating the background area.
[0096] The S6 comprises the following sub-steps:
[0097] S61, calculating the first contour distribution unevenness, the second contour distribution unevenness and the third contour distribution unevenness of each pixel point in each area of the rock region;
[0098] S62, calculating the rock roughness of each area in the rock area according to the first contour distribution unevenness, the second contour distribution unevenness and the third contour distribution unevenness of each pixel point in each area of the rock area;
[0099] S63, calculating the average surface roughness according to the rock roughness of each area in the rock region;
[0100] S64. When the average surface roughness is greater than the roughness threshold, the rock area is loose rock mass.
[0101] In this embodiment, the roughness threshold is a threshold set for the average surface roughness.
[0102] The formulas for calculating the first contour distribution unevenness, the second contour distribution unevenness and the third contour distribution unevenness of the pixel points in S61 are all: , where h n is the contour distribution unevenness of the nth pixel point in each area of the rock area, C n is the color value of the nth pixel in each area of the rock area, C n,m is the color value C n The mth color value in the neighborhood range, M is the number of neighborhood color values, m and n are positive integers, in the rock area of the original image, h n is the unevenness of the first contour distribution. In the rock area of the first detail feature image, h n is the second contour distribution unevenness. In the rock area of the second detail feature image, h n is the unevenness of the third profile distribution.
[0103] The present invention first calculates the contour distribution unevenness of each pixel point in each area of the rock area, characterizes the roughness at each pixel point by the contour distribution unevenness of the pixel point, and then calculates the rock roughness of each area in the rock area, takes the average of the rock roughness of each area in the rock area, and obtains the surface average roughness of the rock area. The larger the surface average roughness of the rock area, the more serious the weathering or erosion of the rock, and the easier the rock is to collapse. The smaller the surface average roughness of the rock area, the smoother the rock surface, the longer the rock surface is polished, and the harder the rock is.
[0104] The formula for calculating the rock roughness of each area in the rock area in S62 is: , where γ is the rock roughness of each area in the rock area, L is the number of pixels in each area of the rock area, and h 1,nis the first contour distribution unevenness of the nth pixel point in each area of the rock region of the original image, h 2,n is the second contour distribution unevenness of the nth pixel point in each area of the rock region of the first detail feature image, h 3,n is the third contour distribution unevenness of the nth pixel point in each area of the rock area of the second detail feature image, where n is a positive integer.
[0105] The present invention adds the three contour distribution unevenness of each pixel point on the rock area of the original image, the first detail feature image and the second detail feature image to reflect the contour distribution at the pixel point, and adds all the pixel points to reflect the rock roughness of each area.
[0106] In this embodiment, all thresholds are specifically set based on experiments or experience.
[0107] After collecting the original image, the present invention constructs a first detail feature image and a second detail feature image according to the original image, highlights the image detail features, and performs shearing processing to achieve classification by region. According to the original block, the first feature block and the second feature block in the same region, based on the three-channel classification model, the region is classified to obtain the classification value of the region, and then correction processing is performed to improve the classification accuracy, find the rock area, strip the background area, improve the accuracy of identifying loose rock mass, and then determine whether the rock is loose rock mass according to the average surface roughness of the rock area. The present invention characterizes the roughness and joint fissures of the rock through the roughness of the surface of the rock area. The greater the roughness, the easier it is for the rock mass to be eroded, and the looser the rock is, the easier it is to collapse.
[0108] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for identifying loose rock mass on a slope, characterized in that: The following steps are involved: S1, collect the image of the target area to obtain the original image; S2. constructing a first detail feature image and a second detail feature image according to the color values on the original image; S3, cutting the original image, the first detail feature image, and the second detail feature image respectively to obtain a plurality of original blocks corresponding to the original image, a plurality of first feature blocks corresponding to the first detail feature image, and a plurality of second feature blocks corresponding to the second detail feature image; S4, classifying the region based on the original block, the first feature block and the second feature block in the same region based on the three-channel classification model to obtain a classification value of the region; S5, correcting the classification values of each area to find the rock area; S6. Calculate the surface average roughness of the rock area according to the first contour distribution unevenness, the second contour distribution unevenness and the third contour distribution unevenness of each pixel point on the rock area. When the surface average roughness is greater than the roughness threshold, the rock area is a loose rock mass. The S2 comprises the following sub-steps: S21, in the original image, taking each pixel as the center; S22, calculating the first color feature value and the second color feature value respectively according to the neighborhood color value of the center; S23, using the first color feature value as a new color value of the pixel at the center to form a first detail feature image; S24, using the second color feature value as a new color value of the pixel at the center to form a second detail feature image; The formula for calculating the first color characteristic value in S22 is: , where C1 is the first color feature value, C (x,y+1) is the color value of the pixel at position (x, y+1), C (x,y-1) is the color value of the pixel at position (x, y-1), C (x+1,y) is the color value of the pixel at position (x+1, y), C (x-1,y) is the color value of the pixel at position (x-1, y), x is the horizontal coordinate of the pixel at the center, y is the vertical coordinate of the pixel at the center, and | | is the absolute value; The formula for calculating the second color characteristic value in S22 is: , where C2 is the second color feature value, C (x+1,y+1) is the color value of the pixel at position (x+1, y+1), C (x-1,y-1) is the color value of the pixel at position (x-1, y-1), C (x-1,y+1) is the color value of the pixel at position (x-1, y+1), C (x+1,y-1) is the color value of the pixel at position (x+1, y-1); The three-channel classification model in S4 includes: a first channel processing unit, a second channel processing unit, a third channel processing unit, a first multiplier M1, a second multiplier M2, a first Maxpool layer, a first Avgpool layer, a second Maxpool layer, a second Avgpool layer, a first adder A1, a second adder A2, a first Concat layer and a fully connected layer; The input end of the first channel processing unit is used to input the first feature block; the input end of the second channel processing unit is used to input the original block; the input end of the third channel processing unit is used to input the second feature block; The first input end of the first multiplier M1 is connected to the output end of the first channel processing unit, the second input end thereof is connected to the output end of the second channel processing unit, and the output end thereof is respectively connected to the input end of the first Maxpool layer and the input end of the first Avgpool layer; the first input end of the second multiplier M2 is connected to the output end of the second channel processing unit, the second input end thereof is connected to the output end of the third channel processing unit, and the output end thereof is respectively connected to the input end of the second Maxpool layer and the input end of the second Avgpool layer; the first input end of the first adder A1 is connected to the output end of the first Maxpool layer, and the second input end thereof is connected to the output end of the first Avgpool layer; the first input end of the second adder A2 is connected to the output end of the second Maxpool layer, and the second input end thereof is connected to the output end of the second Avgpool layer; the input end of the first Concat layer is respectively connected to the output end of the first adder A1 and the output end of the second adder A2, and the output end thereof is connected to the input end of the fully connected layer; the output end of the fully connected layer serves as the output end of the three-channel classification model.
2. The method for identifying loose rock mass on a slope according to claim 1, characterized in that: The first channel processing unit, the second channel processing unit and the third channel processing unit have the same structure, and all include: a first Conv block, a second Conv block, a third Conv block, a fourth Conv block, a fifth Conv block, a sixth Conv block, a second Concat layer, a third Concat layer and a fourth Concat layer; The input end of the first Conv block is used as the input end of the first channel processing unit, the second channel processing unit or the third channel processing unit, and its output end is connected to the input end of the second Conv block and the input end of the third Conv block respectively; the input end of the second Concat layer is connected to the output end of the second Conv block and the output end of the third Conv block respectively, and its output end is connected to the input end of the fourth Conv block; the input end of the third Concat layer is connected to the output end of the second Conv block and the output end of the third Conv block respectively, and its output end is connected to the input end of the fifth Conv block; the input end of the fourth Concat layer is connected to the output end of the fourth Conv block and the output end of the fifth Conv block respectively, and its output end is connected to the input end of the sixth Conv block; the output end of the sixth Conv block is used as the output end of the first channel processing unit, the second channel processing unit or the third channel processing unit; The convolution kernel sizes of the second and fourth Conv blocks are ; The convolution kernel sizes of the third Conv block and the fifth Conv block are .
3. The method for identifying loose rock mass on slope according to claim 1, characterized in that: The S5 comprises the following sub-steps: S51, taking each region as a reference region; S52. Calculate the distance between the classification value of the reference area and the classification value of the surrounding area: , where d is the distance, r o is the classification value of the reference area, r i is the classification value of the surrounding i-th area, i is a positive integer, and N is the number of surrounding areas; S53, when the distance is greater than the distance threshold, correcting the classification value of the reference area according to the classification value of the surrounding area of the reference area; S54. When the corrected classification value or the classification value not involved in the correction is greater than the classification threshold, the corresponding area is marked as a candidate area, and multiple candidate areas constitute a rock area.
4. The method for identifying loose rock mass on a slope according to claim 3, characterized in that: The correction formula in S53 is: ,in, is the corrected classification value, and e is a natural constant.
5. The method for identifying loose rock mass on slope according to claim 1, characterized in that: The S6 comprises the following sub-steps: S61, calculating the first contour distribution unevenness, the second contour distribution unevenness and the third contour distribution unevenness of each pixel point in each area of the rock region; S62, calculating the rock roughness of each area in the rock area according to the first contour distribution unevenness, the second contour distribution unevenness and the third contour distribution unevenness of each pixel point in each area of the rock area; S63, calculating the average surface roughness according to the rock roughness of each area in the rock region; S64. When the average surface roughness is greater than the roughness threshold, the rock area is loose rock mass.
6. The method for identifying loose rock mass on a slope according to claim 5, characterized in that: The formulas for calculating the first contour distribution unevenness, the second contour distribution unevenness and the third contour distribution unevenness of the pixel points in S61 are all: , where h n is the contour distribution unevenness of the nth pixel point in each area of the rock area, C n is the color value of the nth pixel in each area of the rock area, C n,m is the color value C n The mth color value in the neighborhood range, M is the number of neighborhood color values, m and n are positive integers, in the rock area of the original image, h n is the unevenness of the first contour distribution. In the rock area of the first detail feature image, h n is the second contour distribution unevenness. In the rock area of the second detail feature image, h n is the unevenness of the third profile distribution.
7. The method for identifying loose rock mass on a slope according to claim 5, characterized in that: The formula for calculating the rock roughness of each area in the rock area in S62 is: , where γ is the rock roughness of each area in the rock area, L is the number of pixels in each area of the rock area, and h 1,n is the first contour distribution unevenness of the nth pixel point in each area of the rock region of the original image, h 2,n is the second contour distribution unevenness of the nth pixel point in each area of the rock region of the first detail feature image, h 3,n is the third contour distribution unevenness of the nth pixel point in each area of the rock area of the second detail feature image, where n is a positive integer.
