A method for segmenting missing areas of crack growth traces based on deep learning
By combining deep learning methods with generative adversarial networks, the problems of low efficiency and low accuracy in segmenting areas with missing crack growth traces are solved, and accurate segmentation of areas with missing crack growth traces and intelligent tracing of the crack growth process are achieved.
Patent Information
- Application Number
- CN202111392850.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-23
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-11-23
AI Technical Summary
The existing technology has low efficiency and low accuracy in segmenting areas with missing crack growth traces, and requires a large amount of manual annotation, making it difficult to achieve intelligent tracing of micro-scale crack growth processes.
A method based on deep learning is used to generate an adversarial network through a combination of weak supervision and fully supervised training to form a fine contour segmentation model, and a multi-scale feature combination method is used to accurately segment the areas where crack expansion traces are missing.
It improves the accuracy of segmentation of areas with missing crack growth traces, reduces manual participation, and enables intelligent tracing of the crack growth process and identification of failure mechanisms.
Smart Images

Figure CN114066867B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer vision technology, and in particular to a method for segmenting a crack extension trace missing area based on deep learning. Background Art
[0002] The operational reliability and service safety of mechanical equipment directly affect national defense construction and national economic development. Large-scale structures usually contain some inevitable initial defects, such as metallurgical defects, manufacturing defects, etc., and they will also be subjected to random cyclic loads and complex environments during service, which will cause cracks. With the increase of service life, these defects or cracks will continue to expand until they cause fracture failure. From a microscopic perspective, the study of cracks is both the most important "method" and the only "physical evidence" of fracture failure. In-depth analysis of cracks is an important means to study their failure history and failure mechanism, and has important guiding significance for optimizing material design and modification, structural design and manufacturing processes.
[0003] Complex environmental factors and human factors can cause a certain degree of damage to the crack morphology, resulting in the loss of some traces of the crack propagation process. On the other hand, the texture characteristics of the crack are refined, complex, and irregular, and microscopic imaging technology is difficult to present the full picture of the subtle texture. The discontinuity and incompleteness of this crack propagation information make it impossible to accurately explore the cause and mechanism of failure. The use of new theories and methods to trace the missing information in the microscopic scale crack propagation process, thereby restoring the failure process and identifying the failure mechanism, is a new idea, new concept, and new technology with important value and bright prospects in the field of failure analysis.
[0004] However, the traditional method of segmenting the missing area of crack extension traces is done manually, such as using high-resolution electron microscopes and X-rays for processing, which requires specialized technicians and complex equipment, and is inefficient. Faced with complex crack missing areas, the detection accuracy is low, the generated missing area contour is coarse and the line edges are irregular, the contour is not smooth, and the filling content is inaccurate, resulting in incomplete texture repair in high-frequency areas. With the development of artificial intelligence and computer vision, deep learning methods are very promising in solving such problems. However, the contours of crack extension missing areas in micro-scale fracture images are complex and changeable. Existing methods usually require a large number of finely annotated images for training, and the annotation process is cumbersome and labor-intensive. Therefore, how to solve the generalization problem in the process of generating missing area contours, establish a deep reasoning network that can accurately express the contours of crack extension missing areas, determine the generation accuracy of missing areas, and optimize the training strategy of the network is the key to achieving accurate expression of the contours of extended crack missing areas, and it is also the core task of realizing intelligent tracing of micro-scale crack extension history. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a method for segmenting the missing area of crack extension traces based on deep learning in view of the deficiencies of the above-mentioned prior art, and to accurately extract the missing area of crack extension traces by utilizing the deep learning algorithm framework.
[0006] To solve the above technical problems, the technical solution adopted by the present invention is: a method for segmenting missing areas of crack extension traces based on deep learning, preprocessing images containing missing areas of crack extension traces, first marking a part of the data set images of the missing areas of crack extension traces with a bounding box using a labeling tool, and then inputting it into an auxiliary segmentation model for weak supervision training to obtain an accurate mask semantic segmentation image, and then inputting the mask semantic segmentation image into a missing area semantic segmentation model; at the same time, marking another part of the data set images of the missing areas of crack extension traces with a mask using a labeling tool, and then inputting it into a missing area semantic segmentation model for full supervision training; fusing a part of the data set images of the missing areas of crack extension traces input into the missing area semantic segmentation model for training and another part of the data set images of the missing areas of crack extension traces using a multi-scale feature combination method to obtain missing segmented areas; finally, using the game mechanism of a generative adversarial network, a fine contour segmentation model of the missing areas of crack extension traces is formed to accurately segment the missing areas of crack extension traces of the input image;
[0007] The specific steps include:
[0008] Step 1: Obtain images containing crack extension trace missing areas to form a data set; divide the data set into two parts: one part is a data set of crack extension trace missing areas that accounts for more than 70% of the total data set and is used for outer frame bounding box marking, called the data set of most crack extension trace missing areas; the other part is a data set of crack extension trace missing areas in the total data set that is marked by semantic segmentation mask, called the data set of a small part of crack extension trace missing areas;
[0009] Step 2: Pre-training process: For most of the crack extension trace missing area data sets, the outer bounding box is marked by a labeling tool, and the grayscale image of the missing area marked by the outer bounding box, the marked label image, and the original image containing the crack extension trace missing area are used as weakly supervised training data sets. The auxiliary segmentation model is weakly supervised and trained until the model converges to obtain the mask label image of most of the crack extension trace missing area data sets; wherein, the auxiliary segmentation model adopts the existing encoder-decoder segmentation model;
[0010] Step 2.1: Use annotation tools to mark the images in the dataset with most crack extension trace missing areas with bounding boxes, and obtain the texture grayscale image and label image of the missing area with bounding box marks;
[0011] Step 2.2: The original image in the dataset of most crack extension trace missing areas, the texture grayscale image of the missing area marked by the outer bounding box, and the label image are used as weak supervision datasets;
[0012] Step 2.3: Select a set of weakly supervised training data set samples from the weakly supervised data set, input them into the auxiliary segmentation model, and perform weakly supervised training on the auxiliary segmentation model;
[0013] Step 2.4: The segmentation encoder in the auxiliary segmentation model is used to extract the background shape of the bounding box label image and the image features of the missing area, and the logical relationship between the background shape of the bounding box and the image features of the missing area is learned to obtain the predicted missing area.
[0014] Step 2.5: Use the segmentation decoder to calculate the error between the predicted missing area and the background morphology, add a self-correction module to the segmentation decoder, and use the cross entropy loss in the self-correction module to gradually reduce the error between the predicted missing area and the background morphology;
[0015] Step 2.6: Repeat steps 2.1-2.5 until the auxiliary segmentation model converges and obtains the mask label image of the data set of most crack extension trace missing areas;
[0016] Step 3: Training process: Use annotation tools to perform pixel-level mask marking on a small part of the crack extension trace missing area dataset to obtain the marked missing area grayscale image and mask label image; and use the marked missing area grayscale image, mask label image and the original image of the crack extension trace missing area as the fully supervised training dataset; use the two types of missing area texture grayscale images and mask label images in the data set of most crack extension trace missing areas and the data set of a small part of the crack extension trace missing areas, input them into the missing area semantic segmentation model for semi-supervised training until the model converges, and obtain the accurate predicted missing areas of the data set of most crack extension trace missing areas and the data set of a small part of the crack extension trace missing areas; Among them, the missing area semantic segmentation model adopts the FasterR-CNN model;
[0017] The steps for training the missing region semantic segmentation model using a small dataset of missing regions of crack extension traces are as follows:
[0018] Step 3.1: Use the labeling tool Labelme to perform pixel-level mask marking on the images in the dataset where a small part of the crack extension trace is missing, and obtain the grayscale image of the marked missing area and the mask label image;
[0019] Step 3.2: The original image of the area where crack extension traces are missing, the grayscale image of the area where crack extension traces are missing marked by the labeling tool Labelme, and the mask label image are used as the fully supervised training data set;
[0020] Step 3.3: Select a set of fully supervised training data set samples from the fully supervised training data set, input them into the missing region semantic segmentation model, and train the missing region semantic segmentation model;
[0021] Step 3.4: Extract the background shape and image features of the missing area through the Resnet50 network in the missing area semantic segmentation model to obtain a shared feature layer; use the shared feature layer to obtain the suggestion box, decode the suggestion box, intercept the position with the missing area in the shared feature layer, and obtain the predicted missing area;
[0022] Step 3.5: Use the ROI module in the missing region semantic segmentation model to calculate the overlap between all the proposed boxes and the real boxes, and then filter them. Finally, adjust and convolve them to adjust the proposed boxes to the real boxes to obtain accurate predicted missing regions.
[0023] Step 3.6: Repeat steps 3.1-3.5 until the training of the dataset of the area with a small part of the crack extension trace missing is completed and the semantic segmentation model of the missing area converges;
[0024] The steps for training the missing region segmentation model using a dataset of missing regions of most crack extension traces are as follows:
[0025] Step 3.7: Input the mask label image obtained by the auxiliary segmentation model from the missing area image marked by the bounding box in step 2 and the original image of the missing area with crack extension traces into the missing area semantic segmentation model;
[0026] Step 3.8: The remaining steps are the same as steps 3.3-3.4, until most of the crack extension trace missing area data sets are trained and the missing area semantic segmentation model converges;
[0027] Step 4: Most of the crack extension trace missing area dataset images and a small part of the crack extension trace missing area dataset images trained by the input missing area semantic segmentation model are fused using a multi-scale feature combination method to train a fine contour model based on a generative adversarial network; wherein, the fine contour model based on a generative adversarial network adopts a GAN generative adversarial network;
[0028] Step 4.1: Use the original image of the crack extension trace missing area in the above steps 2 and 3, as well as the grayscale image and the mask label image obtained respectively as training data sets to train the fine contour model based on the generative adversarial network;
[0029] Step 4.2: Select a set of training data sets in step 4.1 as samples and input them into the fine contour model based on the generative adversarial network;
[0030] Step 4.3: Extract the contour features of the background shape and the missing area through the generator in the fine contour model based on the generative adversarial network, learn the logical relationship between the background shape and the contour features of the missing area, and obtain the predicted missing contour;
[0031] Step 4.4: Use the discriminator in the fine contour model of the generative adversarial network to calculate the error between the predicted missing contour and the true original contour, distinguish the predicted missing contour from the true original contour, and optimize the generator;
[0032] Step 4.5: Repeat steps 4.3-4.4 until the refined contour model based on the generative adversarial network converges;
[0033] Step 5: Perform segmentation acquisition process: take the original image with missing crack extension traces, the grayscale image with missing crack extension traces and the Mask label image as input images, use the fine contour model based on the generative adversarial network trained in step 4, alternately iterate and optimize the generator and the discriminator, and finally obtain a refined segmentation image of the missing area;
[0034] Step 5.1: Mark the image containing the missing area of the crack extension trace with a bounding box according to step 2 to obtain the texture grayscale image and label image of the missing area;
[0035] Step 5.2: Use the auxiliary segmentation model trained in step 2 to extract features from the texture grayscale image and label image of the missing area in step 5.1 to obtain an accurate mask label image;
[0036] Step 5.3: Input the original image containing the missing area of the crack extension trace, the texture grayscale image of the missing area, and the mask label image into the fine contour model based on the generative adversarial network;
[0037] Step 5.4: Extract multi-scale background morphology and missing area contour features through the generator in the fine contour model based on the generative adversarial network, predict the missing contour, and achieve reconstruction and repair of the contour in the missing area;
[0038] Step 5.5: Use the discriminator in the fine contour model based on the generative adversarial network to calculate the error between the predicted missing contour and the true original contour, perform adversarial loss training, reduce the error between the missing contour and the true contour, and optimize the generator;
[0039] Step 5.6: Combine the feature contour of the original image and the repaired feature contour in the missing area to finally obtain a complete and refined crack extension feature segmentation contour.
[0040] The beneficial effect of adopting the above technical solution is that the segmentation method of the missing area of crack extension traces based on deep learning provided by the present invention adjusts the composite edge texture of the multi-source image data training set by inputting the incomplete texture image of the missing area of crack extension traces. Through deep learning of the characteristics of the missing area of most crack extension traces and the characteristics of the missing area of a small part of the crack extension traces, supervised learning and generative adversarial "game" training mechanism, the intelligent segmentation of the missing area of crack extension traces is completed. Compared with the traditional method, the segmentation method of the present invention improves the segmentation accuracy, can segment the missing area in the crack extension process, and greatly reduces the degree of manual participation. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 A flow chart of a method for segmenting a crack extension trace missing area based on deep learning provided in an embodiment of the present invention;
[0042] Figure 2 A schematic diagram of the process of a method for segmenting a crack extension trace missing area based on deep learning provided in an embodiment of the present invention;
[0043] Figure 3 A schematic diagram of a pre-training process provided by an embodiment of the present invention;
[0044] Figure 4 A schematic diagram of a multi-source fusion mechanism adopted by a generator provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0045] The specific implementation of the present invention is further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.
[0046] In the present embodiment, a method for segmenting a missing region of crack extension traces based on deep learning is provided. The image containing the missing region of crack extension traces is preprocessed. A part of the data set images of the missing region of crack extension traces are first marked with a bounding box using a labeling tool, and then input into an auxiliary segmentation model for weak supervision training to obtain an accurate mask semantic segmentation image, and the mask semantic segmentation image is input into the missing region semantic segmentation model; at the same time, another part of the data set images of the missing region of crack extension traces are marked with a mask using a labeling tool, and then input into the missing region semantic segmentation model for full supervision training; a part of the data set images of the missing region of crack extension traces that have been trained by the missing region semantic segmentation model and another part of the data set images of the missing region of crack extension traces are fused using a multi-scale feature combination method to obtain the missing segmentation region; finally, a fine contour segmentation model of the missing region of crack extension traces is formed using the game mechanism of a generative adversarial network to accurately segment the missing region of crack extension traces of the input image; Figure 1 , 2 As shown, the specific steps include:
[0047] Step 1: Obtain images containing crack extension trace missing areas to form a data set; divide the data set into two parts: one part is a large crack extension trace missing area data set that accounts for more than 70% of the total data set and is used for outer frame bounding box marking, called the majority crack extension trace missing area data set; the other part is a small crack extension trace missing area data set in the total data set that is used for semantic segmentation mask marking, called the small part crack extension trace missing area data set;
[0048] Step 2: Pre-training process: Use the labeling tool LabelImg to mark the outer bounding box of most of the crack extension trace missing area data sets, and use the grayscale image of the missing area marked by the outer bounding box, the marked label image, and the original image containing the crack extension trace missing area as the weak supervision training data set, and perform weak supervision training on the auxiliary segmentation model until the model converges to obtain the mask label image of most of the crack extension trace missing area data sets; wherein, the auxiliary segmentation model adopts the existing encoder-decoder segmentation model;
[0049] Step 2.1: Use the labeling tool LabelImg to mark the images in the dataset where most crack extension traces are missing with bounding boxes, and obtain the texture grayscale image and label image of the missing area marked with bounding boxes;
[0050] Step 2.2: The original image in the dataset of most crack extension trace missing areas, the texture grayscale image of the missing area marked by the outer bounding box, and the label image are used as weak supervision datasets;
[0051] Step 2.3: Select a set of weakly supervised training data set samples from the weakly supervised data set, input them into the auxiliary segmentation model, and perform weakly supervised training on the auxiliary segmentation model;
[0052] Step 2.4: The segmentation encoder in the auxiliary segmentation model is used to extract the background shape of the bounding box label image and the image features of the missing area, and the logical relationship between the background shape of the bounding box and the image features of the missing area is learned to obtain the predicted missing area.
[0053] Step 2.5: Use the segmentation decoder to calculate the error between the predicted missing area and the background morphology, add a self-correction module to the segmentation decoder, and use the cross entropy loss in the self-correction module to gradually reduce the error between the predicted missing area and the background morphology;
[0054] Step 2.6: Repeat steps 2.1-2.5 until the auxiliary segmentation model converges and obtains the mask label image of the data set of most crack extension trace missing areas;
[0055] Step 3: Perform the training process, such as Figure 3 As shown in the figure: the labeling tool Labelme is used to perform pixel-level mask marking on the dataset of missing areas of a small part of crack extension traces, and the grayscale image of the marked missing area and the mask label image are obtained; the grayscale image of the marked missing area, the mask label image and the original image of the missing area of the crack extension trace are used as the fully supervised training dataset; the two types of missing area texture grayscale images and mask label images in the dataset of missing areas of most crack extension traces and the dataset of missing areas of a small part of crack extension traces are used to input into the missing area semantic segmentation model for semi-supervised training until the model converges, and the accurate predicted missing areas of the dataset of missing areas of most crack extension traces and the dataset of missing areas of a small part of crack extension traces are obtained; wherein, the missing area semantic segmentation model adopts the FasterR-CNN model;
[0056] The steps for training the missing region semantic segmentation model using a small dataset of missing regions of crack extension traces are as follows:
[0057] Step 3.1: Use the labeling tool Labelme to perform pixel-level mask marking on the images in the dataset where a small part of the crack extension trace is missing, and obtain the grayscale image of the marked missing area and the mask label image;
[0058] Step 3.2: The original image of the area where crack extension traces are missing, the grayscale image of the area where crack extension traces are missing marked by the labeling tool Labelme, and the mask label image are used as the fully supervised training data set;
[0059] Step 3.3: Select a set of fully supervised training data set samples from the fully supervised training data set, input them into the missing region semantic segmentation model, and train the missing region semantic segmentation model;
[0060] Step 3.4: Extract the background shape and image features of the missing area through the Resnet50 network in the missing area semantic segmentation model to obtain a shared feature layer; use the shared feature layer to obtain the suggestion box, decode the suggestion box, intercept the position with the missing area in the shared feature layer, and obtain the predicted missing area;
[0061] Step 3.5: Use the ROI module in the missing region semantic segmentation model to calculate the overlap between all the proposed boxes and the real boxes, and then filter them. Finally, adjust and convolve them to adjust the proposed boxes to the real boxes to obtain accurate predicted missing regions.
[0062] Step 3.6: Repeat steps 3.1-3.5 until the training of the dataset of the area with a small part of the crack extension trace missing is completed and the semantic segmentation model of the missing area converges;
[0063] The steps for training the missing region segmentation model using the missing region dataset of most crack extension traces are as follows:
[0064] Step 3.7: Input the mask label image obtained by the auxiliary segmentation model from the missing area image marked by the bounding box in step 2 and the original image of the missing area with crack extension traces into the missing area semantic segmentation model;
[0065] Step 3.8: The remaining steps are the same as steps 3.3-3.4, until most of the crack extension trace missing area data sets are trained and the missing area semantic segmentation model converges;
[0066] Step 4: Most of the crack extension trace missing area dataset images and a small part of the crack extension trace missing area dataset images trained by the input missing area semantic segmentation model are fused using a multi-scale feature combination method to train a fine contour model based on a generative adversarial network; wherein, the fine contour model based on a generative adversarial network adopts a GAN generative adversarial network;
[0067] Step 4.1: Use the original image of the crack extension trace missing area in the above steps 2 and 3, as well as the grayscale image and the mask label image obtained respectively as training data sets to train the fine contour model based on the generative adversarial network;
[0068] Step 4.2: Select a set of training data sets in step 4.1 as samples and input them into the fine contour model based on the generative adversarial network;
[0069] Step 4.3: Extract the contour features of the background shape and the missing area through the generator in the fine contour model based on the generative adversarial network, learn the logical relationship between the background shape and the contour features of the missing area, and obtain the predicted missing contour;
[0070] Step 4.4: Use the discriminator in the fine contour model of the generative adversarial network to calculate the error between the predicted missing contour and the true original contour, distinguish the predicted missing contour from the true original contour, and optimize the generator;
[0071] Step 4.5: Repeat steps 4.3-4.4 until the refined contour model based on the generative adversarial network converges;
[0072] In this embodiment, the GAN generative adversarial network includes a generator G (Generator) and a discriminator D (Discriminator). The generator randomly extracts samples from the noise of the prior distribution, obtains the corresponding generated samples through the generator, and distinguishes the two samples as much as possible between the real samples and the generated samples through the discriminator. After updating the discriminator k times in a cycle, a smaller learning rate is used to update the parameters of the generator once, and the generator is trained to reduce the gap between the generated samples and the real samples as much as possible, which is equivalent to making the discriminator make mistakes as much as possible. After multiple update iterations, the ideal situation is that the discriminator cannot distinguish whether the sample comes from the output of the generator or the real output.
[0073] In this embodiment, the texture grayscale image of the marked missing area and the Mask label image are used as training data sets to train the fine contour model based on the generative adversarial network; the GAN generative adversarial network extracts the background morphology and the contour features of the missing area through the generator. The logical relationship between the background morphology and the contour features of the missing area is learned to obtain the predicted missing contour; the discriminator is used to calculate the error between the predicted missing contour and the true original contour, learn to distinguish the predicted missing contour from the true original contour, and optimize the generator.
[0074] Among them, the generator integrates the knowledge distillation learning mechanism of model distillation and data distillation to improve the network training environment, such as Figure 4 As shown, a deep reasoning network based on multi-source memory and learning of representative crack extension feature contours is established to achieve high-precision expression of the contours.
[0075] The model distillation method adopts the method of training a multi-source synthesis network to fit the outputs of multiple single-source contour generation networks, introduces the loss function of the original single-source network into the multi-source synthesis network, aligns the contour output by the multi-source synthesis network with the single-source network mapping, evaporates the unrelated data structure, and outputs the contour texture with abstract correlation features.
[0076] The data distillation method trains the initial deep reasoning network through the synchronous iteration of multi-source data, and re-iterates the multi-source data to optimize the reasoning ability of the comprehensive network. It obtains the pseudo-labels of the contour data in an integrated manner, and uses the supervised data and pseudo-labeled unsupervised data to synchronously train the contour's deep reasoning network model.
[0077] The discriminator is constructed by adversarial loss and feature matching loss, which is defined as:
[0078]
[0079] Among them, λ a1 , f is the weight parameter of the loss function;
[0080] The adversarial loss is defined as:
[0081]
[0082] Among them, P real is the true contour map; G real is the real grayscale image; P pred is the prediction result of the generator; E represents expectation;
[0083] The feature matching loss stabilizes the training process by making the generator produce results that are similar to real images to generate the discriminator, which is defined as:
[0084]
[0085] Among them, L is the number of convolutional layers of the discriminator; N i is the activation result of the i-th layer of the discriminator;
[0086] Step 5: Perform segmentation acquisition process: take the original image with missing crack extension traces, the grayscale image with missing crack extension traces and the Mask label image as input images, use the fine contour model based on the generative adversarial network trained in step 4, alternately iterate and optimize the generator and the discriminator, and finally obtain a refined segmentation image of the missing area;
[0087] Step 5.1: Mark the image containing the missing area of the crack extension trace with a bounding box according to step 2 to obtain the texture grayscale image and label image of the missing area;
[0088] Step 5.2: Use the auxiliary segmentation model trained in step 2 to extract features from the texture grayscale image and label image of the missing area in step 5.1 to obtain an accurate mask label image;
[0089] Step 5.3: Input the original image containing the missing area of the crack extension trace, the texture grayscale image of the missing area, and the mask label image into the fine contour model based on the generative adversarial network;
[0090] Step 5.4: Extract multi-scale background morphology and missing area contour features through the generator in the fine contour model based on the generative adversarial network, predict the missing contour, and achieve reconstruction and repair of the contour in the missing area;
[0091] Step 5.5: Use the discriminator in the fine contour model based on the generative adversarial network to calculate the error between the predicted missing contour and the true original contour, perform adversarial loss training, reduce the error between the missing contour and the true contour, and optimize the generator;
[0092] Step 5.6: Combine the feature contour of the original image and the repaired feature contour in the missing area to finally obtain a complete and refined crack extension feature segmentation contour.
[0093] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some or all of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope defined by the claims of the present invention.
Claims
1. A method for segmenting crack extension trace missing areas based on deep learning, characterized in that: Preprocess the images containing the missing areas of crack extension traces. First, use the annotation tool to mark the outer borders of a part of the dataset images of the missing areas of crack extension traces, and then input them into the auxiliary segmentation model for weak supervision training to obtain an accurate mask semantic segmentation image, and then input the mask semantic segmentation image into the missing area semantic segmentation model; at the same time, use the annotation tool to mark the masks of another part of the dataset images of the missing areas of crack extension traces, and then input them into the missing area semantic segmentation model for full supervision training; A part of the crack extension trace missing area dataset images trained by the missing area semantic segmentation model and another part of the crack extension trace missing area dataset images are fused using a multi-scale feature combination method to obtain the missing segmentation area; finally, a fine contour segmentation model of the crack extension trace missing area is formed by using the game mechanism of the generative adversarial network to accurately segment the crack extension trace missing area of the input image; The specific steps include: Step 1: Acquire images containing crack extension trace missing areas to form a data set; divide the data set into two parts: one part is a data set of crack extension trace missing areas that accounts for more than 70% of the total data set and is used for outer frame marking, called the data set of most crack extension trace missing areas; the other part is a data set of crack extension trace missing areas in the total data set that is marked by semantic segmentation masks, called the data set of a small part of crack extension trace missing areas; Step 2: Pre-training process: Use annotation tools to mark the outer borders of most of the crack extension trace missing area datasets, and use the grayscale image of the missing area marked with the outer border, the marked label image, and the original image containing the crack extension trace missing area as weakly supervised training datasets, and perform weakly supervised training on the auxiliary segmentation model until the model converges to obtain the mask label image of most of the crack extension trace missing area datasets; wherein, the auxiliary segmentation model adopts the existing encoder-decoder segmentation model; Step 3: Conduct training process: Use annotation tools to perform pixel-level mask marking on a small part of the crack extension trace missing area dataset to obtain the marked missing area grayscale image and mask label image; and use the marked missing area grayscale image, mask label image and the original image of the crack extension trace missing area as the fully supervised training dataset; use the two types of missing area texture grayscale images and mask label images in the data set of most crack extension trace missing areas and the data set of a small part of the crack extension trace missing areas to input into the missing area semantic segmentation model for semi-supervised training until the model converges, and obtain the accurate predicted missing areas of the data set of most crack extension trace missing areas and the data set of a small part of the crack extension trace missing areas; Among them, the missing area semantic segmentation model adopts the Faster R-CNN model; Step 4: Most of the crack extension trace missing area dataset images and a small part of the crack extension trace missing area dataset images trained by the input missing area semantic segmentation model are fused using a multi-scale feature combination method to train a fine contour model based on a generative adversarial network; wherein, the fine contour model based on a generative adversarial network adopts a GAN generative adversarial network; Step 5: Perform segmentation acquisition process: take the original image with missing crack extension traces, the grayscale image with missing crack extension traces and the mask label image as input images, use the fine contour model based on the generative adversarial network trained in step 4, alternately iterate and optimize the generator and the discriminator, and finally obtain a refined segmentation image of the missing area; The specific method of step 2 is: Step 2.1: Use annotation tools to mark the outer borders of most images in the dataset of the missing area of crack extension traces, and obtain the texture grayscale image and label image of the missing area with outer border marks; Step 2.2: The original image in the dataset of most crack extension trace missing areas, the texture grayscale image of the missing area marked by the outer border, and the label image are used as weak supervision datasets; Step 2.3: Select a set of weakly supervised training data set samples from the weakly supervised data set, input them into the auxiliary segmentation model, and perform weakly supervised training on the auxiliary segmentation model; Step 2.4: extract the background shape of the outer border label image and the image features of the missing area through the segmentation encoder in the auxiliary segmentation model, learn the logical relationship between the background shape of the outer border and the image features of the missing area, and obtain the predicted missing area; Step 2.5: Use the segmentation decoder to calculate the error between the predicted missing area and the background morphology, add a self-correction module to the segmentation decoder, and use the cross entropy loss in the self-correction module to gradually reduce the error between the predicted missing area and the background morphology; Step 2.6: Repeat steps 2.1-2.5 until the auxiliary segmentation model converges and obtains the mask label image of the dataset of most crack extension trace missing areas; The steps of step 3 to train the missing area semantic segmentation model using a small part of the crack extension trace missing area data set are as follows: Step 3.1: Use the labeling tool Labelme to perform pixel-level mask marking on the images in the dataset where a small part of the crack extension trace is missing, and obtain the grayscale image of the marked missing area and the mask label image; Step 3.2: The original image of the area where crack extension traces are missing, the grayscale image of the area where crack extension traces are missing marked by the labeling tool Labelme, and the mask label image are used as the fully supervised training data set; Step 3.3: Select a set of fully supervised training data set samples from the fully supervised training data set, input them into the missing region semantic segmentation model, and train the missing region semantic segmentation model; Step 3.4: Extract the background shape and image features of the missing area through the Resnet50 network in the missing area semantic segmentation model to obtain a shared feature layer; use the shared feature layer to obtain the suggestion box, decode the suggestion box, intercept the position with the missing area in the shared feature layer, and obtain the predicted missing area; Step 3.5: Use the ROI module in the missing region semantic segmentation model to calculate the overlap between all the proposed boxes and the real boxes, and then filter them. Finally, adjust and convolve them to adjust the proposed boxes to the real boxes to obtain accurate predicted missing regions. Step 3.6: Repeat steps 3.1-3.5 until the training of the dataset of the area with a small part of the crack extension trace missing is completed and the semantic segmentation model of the missing area converges; The steps for training the missing region segmentation model using the missing region dataset of most crack extension traces are as follows: Step 3.7: Input the mask label image obtained by the auxiliary segmentation model from the missing area image marked by the outer border in step 2 and the original image of the missing area with crack extension traces into the missing area semantic segmentation model; Step 3.8: The remaining steps are the same as steps 3.3-3.4, until most of the crack extension trace missing area data sets are trained and the missing area semantic segmentation model converges; The specific method of step 4 is: Step 4.1: The original image of the crack extension trace missing area in the above steps 2 and 3, as well as the grayscale image and mask label image obtained respectively, are used as training data sets to train the fine contour model based on the generative adversarial network; Step 4.2: Select a set of training data sets in step 4.1 as samples and input them into the fine contour model based on the generative adversarial network; Step 4.3: Extract the contour features of the background shape and the missing area through the generator in the fine contour model based on the generative adversarial network, learn the logical relationship between the background shape and the contour features of the missing area, and obtain the predicted missing contour; Step 4.4: Use the discriminator in the fine contour model of the generative adversarial network to calculate the error between the predicted missing contour and the true original contour, distinguish the predicted missing contour from the true original contour, and optimize the generator; Step 4.5: Repeat steps 4.3-4.4 until the refined contour model based on the generative adversarial network converges; The specific method of step 5 is: Step 5.1: Mark the outer frame of the image containing the missing area of the crack extension trace according to step 2 to obtain the texture grayscale image and label image of the missing area; Step 5.2: Use the auxiliary segmentation model trained in step 2 to extract features from the texture grayscale image and label image of the missing area in step 5.1 to obtain an accurate mask label image; Step 5.3: Input the original image containing the missing area of the crack extension trace, the texture grayscale image of the missing area, and the mask label image into the fine contour model based on the generative adversarial network; Step 5.4: Extract multi-scale background morphology and missing area contour features through the generator in the fine contour model based on the generative adversarial network, predict the missing contour, and achieve reconstruction and repair of the contour in the missing area; Step 5.5: Use the discriminator in the fine contour model based on the generative adversarial network to calculate the error between the predicted missing contour and the true original contour, perform adversarial loss training, reduce the error between the missing contour and the true contour, and optimize the generator; Step 5.6: Combine the feature contour of the original image and the repaired feature contour in the missing area to finally obtain a complete and refined crack extension feature segmentation contour.
Citation Information
Patent Citations
Semi-supervised learning method and system based on target segmentation field self-learning
CN112381098A
Industrial equipment surface crack detection method and system based on semi-supervised semantic segmentation
CN113436169A
Systems and methods for multiple instance learning for classification and localization in biomedical imaging
US20190295252A1
