Surrounding rock fracture intelligent identification method based on generative adversarial network
Through an intelligent identification method based on generative adversarial networks, combined with variational autoencoders and Adam optimizers, the efficiency and accuracy problems of traditional rock crack detection methods are solved, rapid and accurate identification of rock cracks is achieved, and the field of geotechnical engineering is improved. technical level.
Patent Information
- Application Number
- CN202411258899.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-10
- Publication Date
- 2024-10-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional rock crack detection methods have problems such as high labor intensity, low efficiency, safety risks, and low detection accuracy. In particular, it is difficult to accurately identify cracks under complex geological conditions, and the limited scale of the data set results in weak model generalization capabilities.
An intelligent recognition method based on generative adversarial networks is adopted. Rock crack images are obtained through indoor experiments for preprocessing and binarization. Variational autoencoders are used for data enhancement. The generative adversarial network model is trained with the Adam optimizer to improve the generalization of the model. capabilities and detection accuracy.
It improves the accuracy and efficiency of rock crack detection, enhances the diversity and scale of data sets, improves the adaptability and stability of the model, achieves rapid and accurate identification of rock cracks, and promotes technological development in the field of geotechnical engineering. .
Smart Images

Figure CN118799736A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a method for intelligently identifying surrounding rock cracks based on a generative adversarial network, and belongs to the technical field of intelligent crack identification. Background Art
[0002] In the fields of geological engineering, geotechnical engineering and mining engineering, accurate identification of surrounding rock cracks is crucial for assessing the stability of rock masses, designing support structures and preventing geological disasters. Under load, the initiation, expansion and penetration of rock cracks usually lead to cracking of engineering rock masses and structural instability, causing major accidents such as landslides, tunnel collapses and mine water inrush, posing a serious threat to the safety of life and property.
[0003] Traditional rock fracture detection methods mainly include manual field measurement and image-based semi-automatic or automatic detection. Although manual field measurement is highly accurate, it has problems such as high labor intensity, low efficiency, high safety risks, and it is difficult to fully cover the fracture conditions under complex geological conditions. Image-based detection methods, although they have the advantages of non-contact, high efficiency, and safety, still face many challenges in practical applications, such as image quality is greatly affected by factors such as illumination and noise, the complex and changeable fracture morphology leads to low detection accuracy, and the limited size of the data set leads to weak model generalization ability.
[0004] In recent years, with the rapid development of computer vision, deep learning and other technologies, image processing and pattern recognition technologies have been increasingly used in rock crack detection. As a powerful deep learning model, generative adversarial network (GAN) has shown great potential in image generation and data enhancement. By training the GAN model, crack images that are highly similar to real images can be generated, thereby effectively expanding the size of the data set and improving the generalization ability of the model. At the same time, combined with advanced image preprocessing technology and feature extraction algorithms, the accuracy and efficiency of rock crack detection can be further improved.
[0005] Chinese patent application No. 202410439368.1 discloses a portable borehole crack identification system based on image intelligent recognition, which mainly consists of two parts: a borehole TV and a main computer. The system is easy to operate and can automatically complete image acquisition and processing. However, in the face of complex geological environments, the image quality is easily affected by light and noise, which affects the accuracy of crack identification. Summary of the invention
[0006] In order to achieve rapid and accurate identification of rock cracks, improve detection efficiency and accuracy, and provide strong technical support for research and application in the fields of geological engineering and rock mechanics, the present invention provides an intelligent identification method for surrounding rock cracks based on a generative adversarial network.
[0007] To achieve the above object, the technical solution adopted by the present invention is as follows: A method for intelligent identification of surrounding rock cracks based on a generative adversarial network, characterized by comprising the following steps: Step 1: Perform a loading test on the rock through an indoor test to simulate the actual stress environment of the rock underground, obtain the crack image after the rock is damaged as the original image, and convert the original image into a binary image of the rock crack after preprocessing and save it as a label image; Step 2: Enhance and expand the experimental data (that is, the original image) through the variational autoencoder (VAE), then convert the expanded original image into a binary image of rock fractures and save it as a label image, and use random division to divide the expanded experimental data into a test set and a training set in proportion; Step 3: Use the data in the training set as the input training model of the generative adversarial network, calculate the loss function and back-propagate, and use the Adam optimizer to optimize the model, iteratively train the model until the set model prediction accuracy is reached, save the model file that meets the requirements, and thus obtain the generated surrounding rock fracture image. The model prediction accuracy refers to the error between the generated surrounding rock fracture image and the label image of step 1 being less than or equal to the error value set by the model; Step 4: Use the test set to test the accuracy of the trained generative adversarial network model. If the accuracy meets the requirements, the trained generative adversarial network model becomes the surrounding rock fracture intelligent identification model. If the accuracy does not meet the requirements, readjust the model parameters for training until the tested accuracy meets the requirements. Step 5: Input the rock crack images collected on site directly into the surrounding rock crack intelligent identification model for crack detection.
[0008] Further, the specific process of step one is as follows: 1.1 Standard specimen preparation: The rock blocks sampled on site are processed into standard cylindrical specimens according to the engineering rock mass test method standards; 1.2 Indoor test: Perform uniaxial compression or triaxial compression test on rock specimens to simulate the real stress environment of rock underground and collect original image data of rock cracks after rock failure; 1.3 Preprocessing: The acquired original image of rock cracks is preprocessed and converted into a binary image. In the binary image, the crack part is marked and saved as a label image.
[0009] Further, in step 1.2, a high-definition camera or a professional image acquisition system is used to collect raw image data of rock fractures; Further: In step 1.3, a global threshold or adaptive threshold segmentation method is selected to convert the preprocessed original image into a binary image.
[0010] Further, the detailed steps of step 2 are: 2.1 Use variational autoencoder (VAE) to train the preprocessed original rock fracture images: VAE maps the original image to the probability distribution in the latent space through the encoder, and then trains a decoder to achieve the mapping from the latent space distribution to the real data distribution, and samples and reconstructs the image from this distribution. During the training process, the learnable variational posterior is introduced through the variational inference method to approximate the real posterior distribution, thereby estimating the parameters (mean and standard deviation) of the original image distribution, sampling the latent variable z from the Gaussian distribution in the latent space, and generating an image similar to the original image distribution through the decoder; 2.2 Perform data augmentation on the image generated in step 2.1 and the original image in step 1.2 to obtain the original augmented image. Shuffle the augmented experimental data and divide them into a test set and a training set in proportion, preferably with a ratio of 2:8.
[0011] Further, the specific process of step three; 3.1 Initialization parameters: Initialize the parameters of the generative adversarial network model, such as: lr =1 e -4, batch _ size =4 etc. 3.2 Calculation of loss function: Given the original augmented image and its label map as input data, the original augmented image and its label map are represented as {(In, Cn), n = 1, 2, 3..., N}, where In represents the original augmented image, Cn ∈ {0, 1} represents the corresponding label map, where 0 and 1 correspond to pixels classified as cracks and non-cracks, respectively. The original augmented image and its label map are used as model input and sent to the generative adversarial network model for training. The loss function is calculated according to the following formula: (1) Discriminator network With the generator Alternating Optimization to Solve the Adversarial Minimax Problem,Formula (1) represents a generative model G, whose goal is to deceive a differentiable discriminator D, which is trained to distinguish generated edges from real edges; In formula (1), C and denote the label map and the generated crack image respectively, and I is the original augmented image input to the generator; The smaller the error between the image generated by the generator and the label image, the better; The larger the score judged by the discriminator, the better. In other words, the discriminator cannot judge which is the generated image and which is the label image. Represents the error between the image generated by the generator and the label map; It represents the error of the crack image generated by the generator after being put into the discriminator; Log is the calculation formula; 3.3 Back-propagation iterative optimization of loss function: Use the back-propagation method to update the parameters in the loss function and iteratively calculate; 3.4 Optimize the model using Adam optimizer: Use Adam optimizer to adaptively adjust the learning rate to optimize the model parameters. Use SiLU activation function in the generator, set the initial learning rate to 0.0001, select 100 training rounds, input the training data into the generative adversarial network model for training, and determine whether the error between the final generated image and the true label image is less than the error value set by the model. If yes, the training is completed and the model file that meets the requirements is saved; if not, return to 3.3 and adjust the parameters of the model until the conditions are met.
[0012] Furthermore, in step 4, the accuracy of the trained generative adversarial network model is tested using the test set. If the accuracy does not meet the requirements, the model parameters are readjusted and steps 3.1-3.4 are repeated.
[0013] The beneficial effects of the present invention are: 1. Improve the accuracy of rock crack detection: By adopting high-precision indoor mechanical tests and professional image acquisition systems, the present invention can accurately record the crack conditions of rocks under different loading modes, providing a reliable data basis for subsequent crack detection. At the same time, the use of advanced image processing technology and generative adversarial network (GAN) models can further improve the recognition accuracy of crack images and reduce misjudgments and missed judgments.
[0014] 2. Enhance the diversity and scale of the data set: By using variational autoencoders (VAE) for image generation and combining data enhancement technology, the present invention can significantly expand the data set of rock fracture images. This not only improves the generalization ability of model training, but also enables the model to show stronger adaptability and stability when facing unknown or complex geological conditions.
[0015] 3. Improve model training efficiency: During the model training process, the present invention uses advanced optimization algorithms such as the Adam optimizer, which can adaptively adjust the learning rate and accelerate the convergence of the model. At the same time, through reasonable initialization parameter settings and iteration number selection, the efficiency of model training is further improved and the R&D cycle is shortened.
[0016] 4. Provide new ideas for rock crack identification: The successful application of this invention will promote the intelligent and automated development of rock crack detection technology. By applying advanced image processing technology and deep learning models to actual engineering detection, rock cracks can be quickly and accurately identified, detection efficiency and accuracy can be improved, and labor costs and labor intensity can be reduced. This is of great significance for improving the overall technical level and competitiveness in the field of geotechnical engineering. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. The drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings.
[0018] Figure 1 is a flowchart of an embodiment of the present invention; Figure 2 It is a flowchart of an embodiment of the present invention. DETAILED DESCRIPTION
[0019] In order to make those skilled in the art better understand the scheme of the present invention, the following will be combined with the embodiments of the present invention and the attached Figure 1 , the technical solution of the present invention is further described in detail. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0020] Embodiment: The rock in the embodiment is taken from a sandstone sample in a mining area in Inner Mongolia, and the sampling depth is 464.45m.
[0021] Combine the following Figure 1 and Figure 2 The specific steps of an embodiment of an intelligent identification method for surrounding rock fractures based on a generative adversarial network provided by the present invention are described in detail as follows: Step 1: Indoor testing of rock specimens and acquisition of crack images.
[0022] 1.1 Preparation of standard specimens: Sample rock blocks with good integrity and uniformity from the site, and process them into standard cylindrical specimens with a size of 50mm×100mm according to the requirements of the "Standard for Engineering Rock Mass Test Methods", ensuring that the two end surfaces of the rock specimens are parallel and smooth without obvious defects; 1.2 Indoor mechanical test: Use high-precision test equipment to conduct uniaxial compression test on the processed rock specimens. After the specimens are destroyed, use high-definition cameras or professional image acquisition systems to take original images of rock cracks immediately. During the shooting process, keep the camera position fixed and the light stable to reduce image distortion and noise interference; 1.3 Image preprocessing: The original rock crack image is imported into the image processing software for grayscale conversion, denoising, contrast enhancement and other preprocessing operations to improve the image quality. The global threshold or adaptive threshold segmentation method is used to convert the preprocessed original image into a binary image. In the binary image, the crack part is marked as white and the background part is marked as white. Black, save the binary image as the label map for subsequent processing; Step 2: Expand the experimental data through image enhancement methods.
[0023] 2.1 First, use the variational autoencoder (VAE) to sample images. The variational autoencoder maps the original image to a probability distribution in the latent space through the encoder, and then trains a decoder to achieve the mapping from the latent space distribution to the real data distribution, and reconstructs the image by sampling from this distribution; given an input x_i, use the variational inference method to introduce a learnable variational posterior Approximate the true posterior distribution p_θ(z|x_0), and then estimate the mean and standard deviation of the original image distribution. Then sample a z_i from the corresponding Gaussian distribution, output the parameters of the approximate original image distribution through the decoder, and sample from the distribution to generate an image with the same distribution as the original image. Then preprocess the generated image to obtain a binary image of rock fractures as its corresponding label map. 2.2 Perform data augmentation and expansion processing on the image generated in step 2.1 and the original image in step 1.3, including flipping, rotating, scaling, cropping, translating, and adding noise, to increase the diversity and scale of the data set. The expanded data set of 1000 items is shuffled by random partitioning, and 200 items are randomly selected as the test set, and the remaining data are used as the training set; Step 3: Use the training set to train the generative adversarial network model, calculate the loss function and backpropagate, and use the Adam optimizer to optimize the model to train the generative adversarial network.
[0024] 3.1 Initialization parameters: Initialize the parameters of the generator G and discriminator D in the generative adversarial network (GAN); 3.2 Calculation of loss function: Given an input image and its label map, the input data and its label are represented as {(In,Cn), n = 1, 2,3..., N}, where In represents the input image, Cn ∈ {0, 1} represents the corresponding label map, where 0 and 1 correspond to pixels classified as cracks and non-cracks, respectively. The input image and label map are fed into the model for training, and the loss function is calculated according to the following formula: (1) Discriminator network With the generator Alternating optimization to solve adversarial minimax problems; In formula (1), C and Denote the label map and the generated crack image respectively, and I is the original image input to the generator. This formula represents a generative model G, whose goal is to deceive a differentiable discriminator D, which is trained to distinguish generated edges from real edges; In addition, in formula (1) The smaller the error between the image generated by the generator and the label image, the better; The larger the score judged by the discriminator, the better. In other words, the discriminator cannot judge which is the generated image and which is the label image. Represents the error between the image generated by the generator and the label map; It represents the error of the crack image generated by the generator after being put into the discriminator; Log is the calculation formula; 3.3 Back-propagation iterative optimization of loss function: Use the back-propagation method to update the parameters in the loss function and iteratively calculate; 3.4 Optimize the model using Adam optimizer: Use Adam optimizer to adaptively adjust the learning rate to optimize the model parameters. Use SiLU activation function in the generator, set the initial learning rate to 0.0001, select 100 training rounds, input the training data into the generative adversarial network model for training, and judge whether the final generated image meets the prediction accuracy. If yes, the training is completed and the model file that meets the requirements is saved; if not, return to step 3.3, adjust the parameters of the model until the prediction accuracy is met, and save the trained model file for subsequent use; The model prediction accuracy refers to the error between the crack map generated by the training set training model and the label map of step 1.3 is less than or equal to the error value set by the model. In the embodiment, the error value is set to 0.001 or 0.0001; Step 4: Use the test set to test the accuracy of the trained generative adversarial network model: read the saved model file, take the original image in the test set as input, use the generative adversarial network model with the required training accuracy in step 3.4 to make predictions to test the accuracy of the trained generative adversarial network model, compare the crack image generated by the test set with the real label image in step 1.3, and evaluate the accuracy of the model. If the accuracy meets the requirements, the trained generative adversarial network model is the intelligent recognition model for surrounding rock cracks. If the accuracy does not meet the requirements, readjust the model parameters for training until the tested accuracy meets the requirements; The accuracy is determined by whether the error between the surrounding rock fracture image generated by the model after training with the test set input and the real label image in step 1 is less than or equal to the error value set by the model, that is, whether the error is less than or equal to 0.001 or 0.0001; Step 5: Input the rock crack images collected on site directly into the surrounding rock crack intelligent identification model for crack detection.
[0025] Of course, the above description is not a limitation of the present invention, and the present invention is not limited to the above examples. Changes, modifications, additions or substitutions made by technicians in this technical field within the essential scope of the present invention should also fall within the protection scope of the present invention.
Claims
1. A method for intelligent identification of surrounding rock cracks based on generative adversarial networks, characterized in that: The following steps are involved: Step 1: Perform a loading test on the rock through an indoor test to simulate the actual stress environment of the rock underground, obtain the crack image after the rock is damaged as the original image, and convert the original image into a binary image of the rock crack after preprocessing and save it as a label image; Step 2: Enhance and expand the experimental data, that is, the original image, through the variational autoencoder, and then convert the expanded original image into a rock fracture binary image and save it as a label image. Use random division to divide the expanded experimental data into a test set and a training set in proportion; Step 3: Use the data in the training set as the input training model of the generative adversarial network, calculate the loss function and back-propagate, and use the Adam optimizer to optimize the model, iteratively train the model until the set model prediction accuracy is reached, save the model file that meets the requirements, and thus obtain the generated surrounding rock fracture image. The model prediction accuracy refers to the error between the generated surrounding rock fracture image and the label image of step 1 being less than or equal to the error value set by the model; Step 4: Use the test set to test the accuracy of the trained generative adversarial network model. If the accuracy meets the requirements, the trained generative adversarial network model becomes the surrounding rock fracture intelligent identification model. If the accuracy does not meet the requirements, readjust the model parameters for training until the tested accuracy meets the requirements. Step 5: Input the rock crack images collected on site directly into the surrounding rock crack intelligent identification model for crack detection.
2. The method for intelligent identification of surrounding rock fissures based on a generative adversarial network according to claim 1, characterized in that: The specific process of step one is as follows: 1.1 Standard specimen preparation: The rock blocks sampled on site are processed into standard cylindrical specimens according to the engineering rock mass test method standards; 1.2 Indoor test: Perform uniaxial compression or triaxial compression test on rock specimens to simulate the real stress environment of rock underground and collect original image data of rock cracks after rock failure; 1.3 Preprocessing: The acquired original image of rock cracks is preprocessed and converted into a binary image. In the binary image, the crack part is marked and saved as a label image.
3. The method for intelligent identification of surrounding rock fissures based on generative adversarial networks according to claim 2, characterized in that: In step 1.2, a high-definition camera or image acquisition system is used to collect raw image data of rock fractures.
4. The method for intelligent identification of surrounding rock fissures based on generative adversarial networks according to claim 2, characterized in that: In step 1.3, a global threshold or adaptive threshold segmentation method is used to convert the preprocessed original image into a binary image.
5. The method for intelligent identification of surrounding rock fissures based on generative adversarial networks according to claim 1, characterized in that: The detailed steps of step 2 are: 2.1 Use the variational autoencoder to train the preprocessed original rock fracture images: The variational autoencoder maps the original image to the probability distribution in the latent space through the encoder, and then trains a decoder to achieve the mapping from the latent space distribution to the real data distribution, and samples and reconstructs the image from this distribution. During the training process, the learnable variational posterior is introduced through the variational inference method to approximate the real posterior distribution, thereby estimating the parameters of the original image distribution, sampling the latent variable z from the Gaussian distribution in the latent space, and generating an image similar to the original image distribution through the decoder; 2.2 Perform data augmentation on the image generated in step 2.1 and the original image in step 1.2 to obtain the original augmented image. Shuffle the augmented experimental data and divide them into a test set and a training set in proportion.
6. The method for intelligent identification of surrounding rock fissures based on generative adversarial networks according to claim 5, characterized in that: The ratio of the test set to the training set is 2:
8.
7. The method for intelligent identification of surrounding rock fissures based on a generative adversarial network according to claim 1, characterized in that: The specific process of step three: 3.1 Initialization parameters: Initialize the parameters of the generative adversarial network model; 3.2 Calculation of loss function: Given the original augmented image and its label map as input data, the original augmented image and its label map are represented as {(In, Cn), n = 1, 2, 3..., N}, where In represents the original augmented image, Cn ∈ {0, 1} represents the corresponding label map, where 0 and 1 correspond to pixels classified as cracks and non-cracks, respectively. The original augmented image and label map are used as model input and sent to the generative adversarial network model for training. The loss function is calculated according to the following formula: (1) Discriminator network With the generator Alternating Optimization to Solve the Adversarial Minimax Problem,Formula (1) represents a generative model G, whose goal is to deceive a differentiable discriminator D, which is trained to distinguish generated edges from real edges; In formula (1), C and denote the label map and the generated crack image respectively, and I is the original augmented image input to the generator; The smaller the error between the image generated by the generator and the label image, the better; The larger the score judged by the discriminator, the better. In other words, the discriminator cannot judge which is the generated image and which is the label image. Represents the error between the image generated by the generator and the label map; It represents the error of the crack image generated by the generator after being put into the discriminator; Log is the calculation formula; 3.3 Back-propagation iterative optimization of loss function: Use the back-propagation method to update the parameters in the loss function and iteratively calculate; 3.4 Optimize the model using Adam optimizer: Use Adam optimizer to adaptively adjust the learning rate to optimize the model parameters. Use SiLU activation function in the generator, set the initial learning rate to 0.0001, select 100 training rounds, input the training data into the generative adversarial network model for training, and determine whether the error between the final generated image and the true label image is less than the error value set by the model. If yes, the training is completed and the model file that meets the requirements is saved; if not, return to 3.3 and adjust the parameters of the model until the conditions are met.
Citation Information
Patent Citations
Pavement crack defect detection method based on generative adversarial network
CN110120038A
Bridge crack detection and classification method based on conditional filtering GAN
CN110147842A
Bridge crack automatic detection method based on generative adversarial network
CN111223087A
Human face expression recognition method based on variational auto-encoder
CN111582059A
Crack image compression sampling method based on generative adversarial network
CN111711820A
Cited By
Fractured coal and rock mass strength intelligent prediction method based on image recognition
CN119338830A
Tunnel surrounding rock fracture positioning method and device
CN119359681A
Coal rock scanning electron microscope image pore type classification method and classification model
CN120318604A
Forge piece crack recognition and positioning method and system based on binocular vision
CN120374549A
Mars weathered rock image generation method and device, electronic equipment and storage medium
CN120612384A
